Skip to content

Commit

Permalink
refactor: update index exports
Browse files Browse the repository at this point in the history
  • Loading branch information
zedix committed Mar 7, 2024
1 parent 6eddc8f commit cbf474d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/components/dialog/dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export default class Dialog extends LitElement {
}

handleCloseDialog() {
// Note: as of Chrome 120 `<dialog>` and `[popover]` make use of the `CloseWatcher` internally.
// console.log(event, this.dialog.returnValue)
}

Expand Down
6 changes: 6 additions & 0 deletions src/components/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ import styles from './tooltip.styles';
* @link https://www.w3.org/TR/wai-aria-1.2/#tooltip
* @link https://open-ui.org/components/tooltip.research/
* @link https://github.com/microsoft/fast/tree/master/packages/web-components/fast-foundation/src/tooltip
* @link https://open-ui.org/components/popover-hint.research.explainer/
* @link https://github.com/w3c/csswg-drafts/issues/8930
*
* Accessibility:
* @link https://inclusive-components.design/tooltips-toggletips/
* @link https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html
*/
export class Tooltip extends LitElement {
static styles: CSSResultGroup = styles;
Expand Down
17 changes: 9 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Components
export { default as Button } from './components/button/button';
export { Details } from './components/details/details';
export { InputStepper } from './components/input-stepper/input-stepper';
export { Modal } from './components/modal/modal';
export { Popover } from './components/popover/popover';
export { Skeleton } from './components/skeleton/skeleton';
export { Spinner } from './components/spinner/spinner';
export { Tooltip } from './components/tooltip/tooltip';
export { default as Button } from './components/button/button.js';
export { default as Dialog } from './components/dialog/dialog.js';

export { Details } from './components/details/details.js';
export { InputStepper } from './components/input-stepper/input-stepper.js';
export { Skeleton } from './components/skeleton/skeleton.js';
export { Tooltip } from './components/tooltip/tooltip.js';
export { Popover } from './components/popover/popover.js';
export { Spinner } from './components/spinner/spinner.js';
1 change: 1 addition & 0 deletions src/mixins/form-element-mixin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DelegateFocusMixin } from './delegate-focus-mixin.js';

// https://web.dev/more-capable-form-controls
// https://github.com/open-wc/form-participation/tree/main
const formAssociatedSupported =
'ElementInternals' in window && 'setFormData' in window.ElementInternals;

Expand Down

0 comments on commit cbf474d

Please sign in to comment.