@fluentui/web-components 3.0.0-beta.8 → 3.0.0-beta.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +858 -103
- package/README.md +49 -16
- package/dist/dts/accordion/accordion.bench.d.ts +3 -0
- package/dist/dts/accordion/accordion.d.ts +35 -12
- package/dist/dts/accordion/accordion.options.d.ts +3 -3
- package/dist/dts/accordion/accordion.template.d.ts +1 -1
- package/dist/dts/accordion/index.d.ts +2 -1
- package/dist/dts/accordion-item/accordion-item.bench.d.ts +3 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +59 -26
- package/dist/dts/accordion-item/accordion-item.options.d.ts +3 -3
- package/dist/dts/accordion-item/accordion-item.template.d.ts +2 -2
- package/dist/dts/accordion-item/index.d.ts +3 -2
- package/dist/dts/anchor-button/anchor-button.bench.d.ts +3 -0
- package/dist/dts/anchor-button/anchor-button.d.ts +127 -80
- package/dist/dts/anchor-button/anchor-button.options.d.ts +26 -6
- package/dist/dts/anchor-button/anchor-button.template.d.ts +1 -1
- package/dist/dts/anchor-button/index.d.ts +4 -3
- package/dist/dts/avatar/avatar.bench.d.ts +3 -0
- package/dist/dts/avatar/avatar.d.ts +53 -25
- package/dist/dts/avatar/avatar.options.d.ts +6 -6
- package/dist/dts/avatar/avatar.template.d.ts +1 -1
- package/dist/dts/avatar/index.d.ts +2 -2
- package/dist/dts/badge/badge.bench.d.ts +3 -0
- package/dist/dts/badge/badge.d.ts +30 -0
- package/dist/dts/badge/badge.options.d.ts +6 -6
- package/dist/dts/badge/badge.template.d.ts +1 -1
- package/dist/dts/badge/index.d.ts +2 -2
- package/dist/dts/button/button.bench.d.ts +3 -0
- package/dist/dts/button/button.d.ts +206 -84
- package/dist/dts/button/button.definition.d.ts +3 -1
- package/dist/dts/button/button.options.d.ts +22 -8
- package/dist/dts/button/button.styles.d.ts +9 -0
- package/dist/dts/button/button.template.d.ts +9 -3
- package/dist/dts/button/index.d.ts +5 -4
- package/dist/dts/checkbox/checkbox.bench.d.ts +3 -0
- package/dist/dts/checkbox/checkbox.d.ts +324 -39
- package/dist/dts/checkbox/checkbox.options.d.ts +15 -12
- package/dist/dts/checkbox/checkbox.template.d.ts +3 -2
- package/dist/dts/checkbox/index.d.ts +4 -3
- package/dist/dts/compound-button/compound-button.bench.d.ts +3 -0
- package/dist/dts/compound-button/compound-button.options.d.ts +4 -9
- package/dist/dts/compound-button/compound-button.template.d.ts +1 -1
- package/dist/dts/compound-button/index.d.ts +2 -2
- package/dist/dts/counter-badge/counter-badge.bench.d.ts +3 -0
- package/dist/dts/counter-badge/counter-badge.d.ts +36 -0
- package/dist/dts/counter-badge/counter-badge.options.d.ts +6 -6
- package/dist/dts/counter-badge/counter-badge.template.d.ts +2 -2
- package/dist/dts/counter-badge/index.d.ts +2 -2
- package/dist/dts/dialog/dialog.bench.d.ts +3 -0
- package/dist/dts/dialog/dialog.d.ts +12 -146
- package/dist/dts/dialog/dialog.options.d.ts +2 -2
- package/dist/dts/dialog/dialog.template.d.ts +1 -1
- package/dist/dts/dialog/index.d.ts +2 -1
- package/dist/dts/dialog-body/define.d.ts +1 -0
- package/dist/dts/dialog-body/dialog-body.bench.d.ts +3 -0
- package/dist/dts/dialog-body/dialog-body.d.ts +14 -0
- package/dist/dts/dialog-body/dialog-body.definition.d.ts +9 -0
- package/dist/dts/dialog-body/dialog-body.styles.d.ts +4 -0
- package/dist/dts/dialog-body/dialog-body.template.d.ts +6 -0
- package/dist/dts/dialog-body/index.d.ts +4 -0
- package/dist/dts/divider/divider.bench.d.ts +3 -0
- package/dist/dts/divider/divider.d.ts +57 -11
- package/dist/dts/divider/divider.options.d.ts +4 -5
- package/dist/dts/divider/divider.template.d.ts +1 -1
- package/dist/dts/divider/index.d.ts +2 -2
- package/dist/dts/drawer/define.d.ts +1 -0
- package/dist/dts/drawer/drawer.d.ts +93 -0
- package/dist/dts/drawer/drawer.definition.d.ts +8 -0
- package/dist/dts/drawer/drawer.options.d.ts +40 -0
- package/dist/dts/drawer/drawer.styles.d.ts +4 -0
- package/dist/dts/drawer/drawer.template.d.ts +8 -0
- package/dist/dts/drawer/index.d.ts +5 -0
- package/dist/dts/drawer-body/define.d.ts +1 -0
- package/dist/dts/drawer-body/drawer-body.d.ts +20 -0
- package/dist/dts/drawer-body/drawer-body.definition.d.ts +8 -0
- package/dist/dts/drawer-body/drawer-body.styles.d.ts +4 -0
- package/dist/dts/drawer-body/drawer-body.template.d.ts +8 -0
- package/dist/dts/drawer-body/index.d.ts +4 -0
- package/dist/dts/dropdown/define.d.ts +1 -0
- package/dist/dts/dropdown/dropdown.d.ts +492 -0
- package/dist/dts/dropdown/dropdown.definition.d.ts +9 -0
- package/dist/dts/dropdown/dropdown.options.d.ts +53 -0
- package/dist/dts/dropdown/dropdown.styles.d.ts +6 -0
- package/dist/dts/dropdown/dropdown.template.d.ts +38 -0
- package/dist/dts/dropdown/index.d.ts +5 -0
- package/dist/dts/field/define.d.ts +1 -0
- package/dist/dts/field/field.bench.d.ts +3 -0
- package/dist/dts/field/field.d.ts +136 -0
- package/dist/dts/field/field.definition.d.ts +9 -0
- package/dist/dts/field/field.options.d.ts +43 -0
- package/dist/dts/field/field.styles.d.ts +6 -0
- package/dist/dts/field/field.template.d.ts +6 -0
- package/dist/dts/field/index.d.ts +6 -0
- package/dist/dts/form-associated/form-associated.d.ts +4 -78
- package/dist/dts/image/image.bench.d.ts +3 -0
- package/dist/dts/image/image.d.ts +36 -0
- package/dist/dts/image/image.options.d.ts +2 -3
- package/dist/dts/image/image.template.d.ts +1 -1
- package/dist/dts/image/index.d.ts +2 -2
- package/dist/dts/index-rollup.d.ts +42 -1
- package/dist/dts/index.d.ts +65 -31
- package/dist/dts/label/index.d.ts +2 -1
- package/dist/dts/label/label.bench.d.ts +3 -0
- package/dist/dts/label/label.d.ts +24 -2
- package/dist/dts/label/label.options.d.ts +2 -2
- package/dist/dts/label/label.template.d.ts +2 -2
- package/dist/dts/link/define.d.ts +1 -0
- package/dist/dts/link/index.d.ts +5 -0
- package/dist/dts/link/link.bench.d.ts +3 -0
- package/dist/dts/link/link.d.ts +45 -0
- package/dist/dts/link/link.definition.d.ts +7 -0
- package/dist/dts/link/link.options.d.ts +52 -0
- package/dist/dts/link/link.styles.d.ts +1 -0
- package/dist/dts/link/link.template.d.ts +12 -0
- package/dist/dts/listbox/define.d.ts +1 -0
- package/dist/dts/listbox/index.d.ts +5 -0
- package/dist/dts/listbox/listbox.d.ts +116 -0
- package/dist/dts/listbox/listbox.definition.d.ts +9 -0
- package/dist/dts/listbox/listbox.options.d.ts +10 -0
- package/dist/dts/listbox/listbox.styles.d.ts +6 -0
- package/dist/dts/listbox/listbox.template.d.ts +17 -0
- package/dist/dts/menu/index.d.ts +1 -1
- package/dist/dts/menu/menu.bench.d.ts +3 -0
- package/dist/dts/menu/menu.d.ts +87 -58
- package/dist/dts/menu/menu.template.d.ts +1 -1
- package/dist/dts/menu-button/index.d.ts +4 -3
- package/dist/dts/menu-button/menu-button.bench.d.ts +3 -0
- package/dist/dts/menu-button/menu-button.options.d.ts +5 -6
- package/dist/dts/menu-button/menu-button.template.d.ts +1 -1
- package/dist/dts/menu-item/index.d.ts +5 -3
- package/dist/dts/menu-item/menu-item.bench.d.ts +3 -0
- package/dist/dts/menu-item/menu-item.d.ts +34 -57
- package/dist/dts/menu-item/menu-item.options.d.ts +2 -2
- package/dist/dts/menu-list/index.d.ts +1 -1
- package/dist/dts/menu-list/menu-list.bench.d.ts +3 -0
- package/dist/dts/menu-list/menu-list.d.ts +12 -10
- package/dist/dts/menu-list/menu-list.template.d.ts +1 -1
- package/dist/dts/message-bar/define.d.ts +1 -0
- package/dist/dts/message-bar/index.d.ts +5 -0
- package/dist/dts/message-bar/message-bar.bench.d.ts +3 -0
- package/dist/dts/message-bar/message-bar.d.ts +66 -0
- package/dist/dts/message-bar/message-bar.definition.d.ts +9 -0
- package/dist/dts/message-bar/message-bar.options.d.ts +30 -0
- package/dist/dts/message-bar/message-bar.styles.d.ts +7 -0
- package/dist/dts/message-bar/message-bar.template.d.ts +14 -0
- package/dist/dts/option/define.d.ts +1 -0
- package/dist/dts/option/index.d.ts +5 -0
- package/dist/dts/option/option.d.ts +260 -0
- package/dist/dts/option/option.definition.d.ts +9 -0
- package/dist/dts/option/option.options.d.ts +20 -0
- package/dist/dts/option/option.styles.d.ts +6 -0
- package/dist/dts/option/option.template.d.ts +16 -0
- package/dist/dts/patterns/start-end.d.ts +20 -6
- package/dist/dts/progress-bar/index.d.ts +2 -2
- package/dist/dts/progress-bar/progress-bar.bench.d.ts +3 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +85 -16
- package/dist/dts/progress-bar/progress-bar.options.d.ts +4 -13
- package/dist/dts/progress-bar/progress-bar.template.d.ts +1 -2
- package/dist/dts/radio/index.d.ts +2 -1
- package/dist/dts/radio/radio.bench.d.ts +3 -0
- package/dist/dts/radio/radio.d.ts +38 -35
- package/dist/dts/radio/radio.options.d.ts +14 -0
- package/dist/dts/radio/radio.styles.d.ts +3 -1
- package/dist/dts/radio/radio.template.d.ts +14 -2
- package/dist/dts/radio-group/index.d.ts +2 -1
- package/dist/dts/radio-group/radio-group.bench.d.ts +3 -0
- package/dist/dts/radio-group/radio-group.d.ts +211 -49
- package/dist/dts/radio-group/radio-group.options.d.ts +1 -1
- package/dist/dts/radio-group/radio-group.template.d.ts +1 -1
- package/dist/dts/rating-display/define.d.ts +1 -0
- package/dist/dts/rating-display/index.d.ts +5 -0
- package/dist/dts/rating-display/rating-display.d.ts +150 -0
- package/dist/dts/rating-display/rating-display.definition.d.ts +9 -0
- package/dist/dts/rating-display/rating-display.options.d.ts +29 -0
- package/dist/dts/rating-display/rating-display.styles.d.ts +6 -0
- package/dist/dts/rating-display/rating-display.template.d.ts +14 -0
- package/dist/dts/slider/index.d.ts +3 -2
- package/dist/dts/slider/slider.bench.d.ts +3 -0
- package/dist/dts/slider/slider.d.ts +182 -38
- package/dist/dts/slider/slider.options.d.ts +6 -6
- package/dist/dts/slider/slider.template.d.ts +2 -2
- package/dist/dts/spinner/index.d.ts +2 -2
- package/dist/dts/spinner/spinner.bench.d.ts +3 -0
- package/dist/dts/spinner/spinner.d.ts +30 -5
- package/dist/dts/spinner/spinner.options.d.ts +2 -2
- package/dist/dts/spinner/spinner.template.d.ts +2 -5
- package/dist/dts/styles/partials/index.d.ts +1 -0
- package/dist/dts/styles/partials/typography.partials.d.ts +18 -0
- package/dist/dts/styles/states/index.d.ts +634 -0
- package/dist/dts/switch/index.d.ts +3 -2
- package/dist/dts/switch/switch.bench.d.ts +3 -0
- package/dist/dts/switch/switch.d.ts +3 -40
- package/dist/dts/switch/switch.options.d.ts +1 -1
- package/dist/dts/switch/switch.template.d.ts +2 -2
- package/dist/dts/tab/index.d.ts +4 -3
- package/dist/dts/tab/tab.bench.d.ts +3 -0
- package/dist/dts/tab/tab.d.ts +3 -2
- package/dist/dts/tab/tab.template.d.ts +2 -2
- package/dist/dts/tab-panel/index.d.ts +1 -1
- package/dist/dts/tab-panel/tab-panel.bench.d.ts +3 -0
- package/dist/dts/tab-panel/tab-panel.template.d.ts +2 -2
- package/dist/dts/tablist/define.d.ts +1 -0
- package/dist/dts/tablist/index.d.ts +5 -0
- package/dist/dts/tablist/tablist.bench.d.ts +3 -0
- package/dist/dts/tablist/tablist.d.ts +191 -0
- package/dist/dts/tablist/tablist.definition.d.ts +7 -0
- package/dist/dts/tablist/tablist.options.d.ts +44 -0
- package/dist/dts/tablist/tablist.styles.d.ts +4 -0
- package/dist/dts/tablist/tablist.template.d.ts +5 -0
- package/dist/dts/tabs/index.d.ts +5 -4
- package/dist/dts/tabs/tabs.bench.d.ts +3 -0
- package/dist/dts/tabs/tabs.d.ts +14 -10
- package/dist/dts/tabs/tabs.options.d.ts +6 -6
- package/dist/dts/tabs/tabs.template.d.ts +3 -3
- package/dist/dts/text/index.d.ts +2 -2
- package/dist/dts/text/text.bench.d.ts +3 -0
- package/dist/dts/text/text.d.ts +41 -2
- package/dist/dts/text/text.options.d.ts +4 -4
- package/dist/dts/text/text.template.d.ts +1 -1
- package/dist/dts/text-input/index.d.ts +5 -4
- package/dist/dts/text-input/text-input.bench.d.ts +3 -0
- package/dist/dts/text-input/text-input.d.ts +350 -65
- package/dist/dts/text-input/text-input.definition.d.ts +2 -3
- package/dist/dts/text-input/text-input.options.d.ts +22 -32
- package/dist/dts/text-input/text-input.styles.d.ts +5 -2
- package/dist/dts/text-input/text-input.template.d.ts +9 -3
- package/dist/dts/textarea/define.d.ts +1 -0
- package/dist/dts/textarea/index.d.ts +5 -0
- package/dist/dts/textarea/textarea.bench.d.ts +3 -0
- package/dist/dts/textarea/textarea.d.ts +390 -0
- package/dist/dts/textarea/textarea.definition.d.ts +9 -0
- package/dist/dts/textarea/textarea.options.d.ts +49 -0
- package/dist/dts/textarea/textarea.styles.d.ts +7 -0
- package/dist/dts/textarea/textarea.template.d.ts +12 -0
- package/dist/dts/theme/design-tokens.d.ts +2220 -384
- package/dist/dts/theme/index.d.ts +1 -1
- package/dist/dts/theme/set-theme.d.ts +27 -5
- package/dist/dts/theme/set-theme.global.bench.d.ts +3 -0
- package/dist/dts/theme/set-theme.local.bench.d.ts +3 -0
- package/dist/dts/theme/set-theme.shadow.bench.d.ts +3 -0
- package/dist/dts/toggle-button/index.d.ts +5 -4
- package/dist/dts/toggle-button/toggle-button.bench.d.ts +3 -0
- package/dist/dts/toggle-button/toggle-button.d.ts +29 -26
- package/dist/dts/toggle-button/toggle-button.options.d.ts +4 -5
- package/dist/dts/toggle-button/toggle-button.styles.d.ts +7 -0
- package/dist/dts/toggle-button/toggle-button.template.d.ts +1 -1
- package/dist/dts/tooltip/define.d.ts +1 -0
- package/dist/dts/tooltip/index.d.ts +5 -0
- package/dist/dts/tooltip/tooltip.d.ts +95 -0
- package/dist/dts/tooltip/tooltip.definition.d.ts +9 -0
- package/dist/dts/tooltip/tooltip.options.d.ts +24 -0
- package/dist/dts/tooltip/tooltip.styles.d.ts +5 -0
- package/dist/dts/tooltip/tooltip.template.d.ts +6 -0
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/utils/behaviors/match-media-stylesheet-behavior.d.ts +124 -0
- package/dist/dts/utils/benchmark-dependencies/tokens.d.ts +1 -0
- package/dist/dts/utils/benchmark-wrapper.d.ts +2 -0
- package/dist/dts/utils/converters.d.ts +17 -0
- package/dist/dts/utils/display.d.ts +17 -0
- package/dist/dts/utils/element-internals.d.ts +54 -0
- package/dist/dts/utils/focusable-element.d.ts +3 -0
- package/dist/dts/utils/index.d.ts +4 -0
- package/dist/dts/utils/language.d.ts +9 -0
- package/dist/dts/utils/root-active-element.d.ts +1 -0
- package/dist/dts/utils/support.d.ts +15 -0
- package/dist/dts/utils/template-helpers.d.ts +2 -3
- package/dist/dts/utils/typings.d.ts +1 -1
- package/dist/dts/utils/unique-id.d.ts +9 -0
- package/dist/esm/accordion/accordion.bench.js +30 -0
- package/dist/esm/accordion/accordion.bench.js.map +1 -0
- package/dist/esm/accordion/accordion.js +52 -97
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.options.js +1 -1
- package/dist/esm/accordion/accordion.styles.js +1 -1
- package/dist/esm/accordion/accordion.styles.js.map +1 -1
- package/dist/esm/accordion/accordion.template.js.map +1 -1
- package/dist/esm/accordion/index.js +2 -1
- package/dist/esm/accordion/index.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.bench.js +14 -0
- package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.js +80 -40
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.options.js +1 -1
- package/dist/esm/accordion-item/accordion-item.options.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +63 -85
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.template.js +24 -43
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
- package/dist/esm/accordion-item/index.js +2 -2
- package/dist/esm/accordion-item/index.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.bench.js +11 -0
- package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.definition.js +0 -3
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +153 -85
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.options.js +15 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.styles.js +12 -5
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js +7 -35
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/anchor-button/index.js +3 -3
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/avatar/avatar.bench.js +10 -0
- package/dist/esm/avatar/avatar.bench.js.map +1 -0
- package/dist/esm/avatar/avatar.js +72 -46
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +133 -132
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/avatar/avatar.template.js +2 -4
- package/dist/esm/avatar/avatar.template.js.map +1 -1
- package/dist/esm/avatar/index.js +2 -2
- package/dist/esm/avatar/index.js.map +1 -1
- package/dist/esm/badge/badge.bench.js +11 -0
- package/dist/esm/badge/badge.bench.js.map +1 -0
- package/dist/esm/badge/badge.js +41 -8
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.styles.js +17 -9
- package/dist/esm/badge/badge.styles.js.map +1 -1
- package/dist/esm/badge/badge.template.js.map +1 -1
- package/dist/esm/badge/index.js +2 -2
- package/dist/esm/badge/index.js.map +1 -1
- package/dist/esm/button/button.bench.js +11 -0
- package/dist/esm/button/button.bench.js.map +1 -0
- package/dist/esm/button/button.definition.js +3 -4
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/button.js +283 -130
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.options.js +10 -1
- package/dist/esm/button/button.options.js.map +1 -1
- package/dist/esm/button/button.styles.js +154 -136
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/button.template.js +13 -39
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/button/index.js +4 -4
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.bench.js +11 -0
- package/dist/esm/checkbox/checkbox.bench.js.map +1 -0
- package/dist/esm/checkbox/checkbox.definition.js +1 -1
- package/dist/esm/checkbox/checkbox.definition.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +417 -52
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/checkbox.options.js +0 -8
- package/dist/esm/checkbox/checkbox.options.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +141 -128
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/checkbox/checkbox.template.js +23 -34
- package/dist/esm/checkbox/checkbox.template.js.map +1 -1
- package/dist/esm/checkbox/index.js +3 -3
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/compound-button/compound-button.bench.js +15 -0
- package/dist/esm/compound-button/compound-button.bench.js.map +1 -0
- package/dist/esm/compound-button/compound-button.definition.js +0 -3
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.js +34 -35
- package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
- package/dist/esm/compound-button/compound-button.template.js +3 -39
- package/dist/esm/compound-button/compound-button.template.js.map +1 -1
- package/dist/esm/compound-button/index.js +2 -2
- package/dist/esm/compound-button/index.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.bench.js +11 -0
- package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.js +50 -9
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.styles.js +9 -8
- package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
- package/dist/esm/counter-badge/index.js +2 -2
- package/dist/esm/counter-badge/index.js.map +1 -1
- package/dist/esm/dialog/dialog.bench.js +11 -0
- package/dist/esm/dialog/dialog.bench.js.map +1 -0
- package/dist/esm/dialog/dialog.js +33 -312
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/dialog/dialog.options.js +1 -1
- package/dist/esm/dialog/dialog.options.js.map +1 -1
- package/dist/esm/dialog/dialog.styles.js +69 -85
- package/dist/esm/dialog/dialog.styles.js.map +1 -1
- package/dist/esm/dialog/dialog.template.js +17 -54
- package/dist/esm/dialog/dialog.template.js.map +1 -1
- package/dist/esm/dialog/index.js +2 -1
- package/dist/esm/dialog/index.js.map +1 -1
- package/dist/esm/dialog-body/define.js +4 -0
- package/dist/esm/dialog-body/define.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.bench.js +11 -0
- package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.definition.js +17 -0
- package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.js +22 -0
- package/dist/esm/dialog-body/dialog-body.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.styles.js +79 -0
- package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.template.js +42 -0
- package/dist/esm/dialog-body/dialog-body.template.js.map +1 -0
- package/dist/esm/dialog-body/index.js +5 -0
- package/dist/esm/dialog-body/index.js.map +1 -0
- package/dist/esm/divider/divider.bench.js +10 -0
- package/dist/esm/divider/divider.bench.js.map +1 -0
- package/dist/esm/divider/divider.js +77 -26
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.options.js +0 -1
- package/dist/esm/divider/divider.options.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +45 -44
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/divider/divider.template.js +1 -9
- package/dist/esm/divider/divider.template.js.map +1 -1
- package/dist/esm/divider/index.js +2 -2
- package/dist/esm/divider/index.js.map +1 -1
- package/dist/esm/drawer/define.js +4 -0
- package/dist/esm/drawer/define.js.map +1 -0
- package/dist/esm/drawer/drawer.definition.js +16 -0
- package/dist/esm/drawer/drawer.definition.js.map +1 -0
- package/dist/esm/drawer/drawer.js +132 -0
- package/dist/esm/drawer/drawer.js.map +1 -0
- package/dist/esm/drawer/drawer.options.js +25 -0
- package/dist/esm/drawer/drawer.options.js.map +1 -0
- package/dist/esm/drawer/drawer.styles.js +138 -0
- package/dist/esm/drawer/drawer.styles.js.map +1 -0
- package/dist/esm/drawer/drawer.template.js +28 -0
- package/dist/esm/drawer/drawer.template.js.map +1 -0
- package/dist/esm/drawer/index.js +6 -0
- package/dist/esm/drawer/index.js.map +1 -0
- package/dist/esm/drawer-body/define.js +4 -0
- package/dist/esm/drawer-body/define.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.definition.js +16 -0
- package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.js +21 -0
- package/dist/esm/drawer-body/drawer-body.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.styles.js +31 -0
- package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.template.js +21 -0
- package/dist/esm/drawer-body/drawer-body.template.js.map +1 -0
- package/dist/esm/drawer-body/index.js +5 -0
- package/dist/esm/drawer-body/index.js.map +1 -0
- package/dist/esm/dropdown/define.js +4 -0
- package/dist/esm/dropdown/define.js.map +1 -0
- package/dist/esm/dropdown/dropdown.definition.js +20 -0
- package/dist/esm/dropdown/dropdown.definition.js.map +1 -0
- package/dist/esm/dropdown/dropdown.js +779 -0
- package/dist/esm/dropdown/dropdown.js.map +1 -0
- package/dist/esm/dropdown/dropdown.options.js +43 -0
- package/dist/esm/dropdown/dropdown.options.js.map +1 -0
- package/dist/esm/dropdown/dropdown.styles.js +213 -0
- package/dist/esm/dropdown/dropdown.styles.js.map +1 -0
- package/dist/esm/dropdown/dropdown.template.js +92 -0
- package/dist/esm/dropdown/dropdown.template.js.map +1 -0
- package/dist/esm/dropdown/index.js +6 -0
- package/dist/esm/dropdown/index.js.map +1 -0
- package/dist/esm/field/define.js +4 -0
- package/dist/esm/field/define.js.map +1 -0
- package/dist/esm/field/field.bench.js +10 -0
- package/dist/esm/field/field.bench.js.map +1 -0
- package/dist/esm/field/field.definition.js +20 -0
- package/dist/esm/field/field.definition.js.map +1 -0
- package/dist/esm/field/field.js +211 -0
- package/dist/esm/field/field.js.map +1 -0
- package/dist/esm/field/field.options.js +27 -0
- package/dist/esm/field/field.options.js.map +1 -0
- package/dist/esm/field/field.styles.js +135 -0
- package/dist/esm/field/field.styles.js.map +1 -0
- package/dist/esm/field/field.template.js +26 -0
- package/dist/esm/field/field.template.js.map +1 -0
- package/dist/esm/field/index.js +6 -0
- package/dist/esm/field/index.js.map +1 -0
- package/dist/esm/form-associated/form-associated.js +69 -71
- package/dist/esm/form-associated/form-associated.js.map +1 -1
- package/dist/esm/image/image.bench.js +14 -0
- package/dist/esm/image/image.bench.js.map +1 -0
- package/dist/esm/image/image.js +52 -6
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/image.options.js +0 -1
- package/dist/esm/image/image.options.js.map +1 -1
- package/dist/esm/image/image.styles.js +14 -13
- package/dist/esm/image/image.styles.js.map +1 -1
- package/dist/esm/image/image.template.js.map +1 -1
- package/dist/esm/image/index.js +2 -2
- package/dist/esm/image/index.js.map +1 -1
- package/dist/esm/index-rollup.js +42 -1
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +50 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/index.js +2 -1
- package/dist/esm/label/index.js.map +1 -1
- package/dist/esm/label/label.bench.js +11 -0
- package/dist/esm/label/label.bench.js.map +1 -0
- package/dist/esm/label/label.js +33 -6
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/label/label.styles.js +28 -21
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/label/label.template.js.map +1 -1
- package/dist/esm/link/define.js +4 -0
- package/dist/esm/link/define.js.map +1 -0
- package/dist/esm/link/index.js +6 -0
- package/dist/esm/link/index.js.map +1 -0
- package/dist/esm/link/link.bench.js +11 -0
- package/dist/esm/link/link.bench.js.map +1 -0
- package/dist/esm/link/link.definition.js +15 -0
- package/dist/esm/link/link.definition.js.map +1 -0
- package/dist/esm/link/link.js +54 -0
- package/dist/esm/link/link.js.map +1 -0
- package/dist/esm/link/link.options.js +21 -0
- package/dist/esm/link/link.options.js.map +1 -0
- package/dist/esm/link/link.styles.js +72 -0
- package/dist/esm/link/link.styles.js.map +1 -0
- package/dist/esm/link/link.template.js +22 -0
- package/dist/esm/link/link.template.js.map +1 -0
- package/dist/esm/listbox/define.js +4 -0
- package/dist/esm/listbox/define.js.map +1 -0
- package/dist/esm/listbox/index.js +6 -0
- package/dist/esm/listbox/index.js.map +1 -0
- package/dist/esm/listbox/listbox.definition.js +17 -0
- package/dist/esm/listbox/listbox.definition.js.map +1 -0
- package/dist/esm/listbox/listbox.js +175 -0
- package/dist/esm/listbox/listbox.js.map +1 -0
- package/dist/esm/listbox/listbox.options.js +15 -0
- package/dist/esm/listbox/listbox.options.js.map +1 -0
- package/dist/esm/listbox/listbox.styles.js +26 -0
- package/dist/esm/listbox/listbox.styles.js.map +1 -0
- package/dist/esm/listbox/listbox.template.js +33 -0
- package/dist/esm/listbox/listbox.template.js.map +1 -0
- package/dist/esm/menu/index.js +1 -1
- package/dist/esm/menu/index.js.map +1 -1
- package/dist/esm/menu/menu.bench.js +31 -0
- package/dist/esm/menu/menu.bench.js.map +1 -0
- package/dist/esm/menu/menu.js +141 -182
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu/menu.styles.js +53 -9
- package/dist/esm/menu/menu.styles.js.map +1 -1
- package/dist/esm/menu/menu.template.js +3 -9
- package/dist/esm/menu/menu.template.js.map +1 -1
- package/dist/esm/menu-button/index.js +3 -3
- package/dist/esm/menu-button/index.js.map +1 -1
- package/dist/esm/menu-button/menu-button.bench.js +11 -0
- package/dist/esm/menu-button/menu-button.bench.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition.js +0 -3
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.template.js +5 -1
- package/dist/esm/menu-button/menu-button.template.js.map +1 -1
- package/dist/esm/menu-item/index.js +4 -3
- package/dist/esm/menu-item/index.js.map +1 -1
- package/dist/esm/menu-item/menu-item.bench.js +11 -0
- package/dist/esm/menu-item/menu-item.bench.js.map +1 -0
- package/dist/esm/menu-item/menu-item.js +101 -127
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-item/menu-item.styles.js +107 -131
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-item/menu-item.template.js +15 -50
- package/dist/esm/menu-item/menu-item.template.js.map +1 -1
- package/dist/esm/menu-list/index.js +1 -1
- package/dist/esm/menu-list/index.js.map +1 -1
- package/dist/esm/menu-list/menu-list.bench.js +21 -0
- package/dist/esm/menu-list/menu-list.bench.js.map +1 -0
- package/dist/esm/menu-list/menu-list.js +33 -67
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.js +5 -5
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.template.js +0 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/message-bar/define.js +4 -0
- package/dist/esm/message-bar/define.js.map +1 -0
- package/dist/esm/message-bar/index.js +6 -0
- package/dist/esm/message-bar/index.js.map +1 -0
- package/dist/esm/message-bar/message-bar.bench.js +56 -0
- package/dist/esm/message-bar/message-bar.bench.js.map +1 -0
- package/dist/esm/message-bar/message-bar.definition.js +20 -0
- package/dist/esm/message-bar/message-bar.definition.js.map +1 -0
- package/dist/esm/message-bar/message-bar.js +65 -0
- package/dist/esm/message-bar/message-bar.js.map +1 -0
- package/dist/esm/message-bar/message-bar.options.js +27 -0
- package/dist/esm/message-bar/message-bar.options.js.map +1 -0
- package/dist/esm/message-bar/message-bar.styles.js +108 -0
- package/dist/esm/message-bar/message-bar.styles.js.map +1 -0
- package/dist/esm/message-bar/message-bar.template.js +25 -0
- package/dist/esm/message-bar/message-bar.template.js.map +1 -0
- package/dist/esm/option/define.js +4 -0
- package/dist/esm/option/define.js.map +1 -0
- package/dist/esm/option/index.js +6 -0
- package/dist/esm/option/index.js.map +1 -0
- package/dist/esm/option/option.definition.js +17 -0
- package/dist/esm/option/option.definition.js.map +1 -0
- package/dist/esm/option/option.js +296 -0
- package/dist/esm/option/option.js.map +1 -0
- package/dist/esm/option/option.options.js +15 -0
- package/dist/esm/option/option.options.js.map +1 -0
- package/dist/esm/option/option.styles.js +127 -0
- package/dist/esm/option/option.styles.js.map +1 -0
- package/dist/esm/option/option.template.js +42 -0
- package/dist/esm/option/option.template.js.map +1 -0
- package/dist/esm/patterns/aria-globals.js +1 -6
- package/dist/esm/patterns/aria-globals.js.map +1 -1
- package/dist/esm/patterns/start-end.js +12 -0
- package/dist/esm/patterns/start-end.js.map +1 -1
- package/dist/esm/progress-bar/index.js +2 -2
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.bench.js +10 -0
- package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +100 -21
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +51 -129
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +8 -26
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/radio/index.js.map +1 -1
- package/dist/esm/radio/radio.bench.js +11 -0
- package/dist/esm/radio/radio.bench.js.map +1 -0
- package/dist/esm/radio/radio.js +57 -76
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio/radio.options.js +2 -0
- package/dist/esm/radio/radio.options.js.map +1 -0
- package/dist/esm/radio/radio.styles.js +97 -90
- package/dist/esm/radio/radio.styles.js.map +1 -1
- package/dist/esm/radio/radio.template.js +21 -24
- package/dist/esm/radio/radio.template.js.map +1 -1
- package/dist/esm/radio-group/index.js +2 -1
- package/dist/esm/radio-group/index.js.map +1 -1
- package/dist/esm/radio-group/radio-group.bench.js +21 -0
- package/dist/esm/radio-group/radio-group.bench.js.map +1 -0
- package/dist/esm/radio-group/radio-group.js +413 -319
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/radio-group/radio-group.styles.js +28 -33
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
- package/dist/esm/radio-group/radio-group.template.js +6 -21
- package/dist/esm/radio-group/radio-group.template.js.map +1 -1
- package/dist/esm/rating-display/define.js +4 -0
- package/dist/esm/rating-display/define.js.map +1 -0
- package/dist/esm/rating-display/index.js +6 -0
- package/dist/esm/rating-display/index.js.map +1 -0
- package/dist/esm/rating-display/rating-display.definition.js +17 -0
- package/dist/esm/rating-display/rating-display.definition.js.map +1 -0
- package/dist/esm/rating-display/rating-display.js +158 -0
- package/dist/esm/rating-display/rating-display.js.map +1 -0
- package/dist/esm/rating-display/rating-display.options.js +19 -0
- package/dist/esm/rating-display/rating-display.options.js.map +1 -0
- package/dist/esm/rating-display/rating-display.styles.js +126 -0
- package/dist/esm/rating-display/rating-display.styles.js.map +1 -0
- package/dist/esm/rating-display/rating-display.template.js +34 -0
- package/dist/esm/rating-display/rating-display.template.js.map +1 -0
- package/dist/esm/slider/index.js +2 -2
- package/dist/esm/slider/index.js.map +1 -1
- package/dist/esm/slider/slider-utilities.js.map +1 -1
- package/dist/esm/slider/slider.bench.js +10 -0
- package/dist/esm/slider/slider.bench.js.map +1 -0
- package/dist/esm/slider/slider.js +429 -229
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/slider/slider.styles.js +128 -131
- package/dist/esm/slider/slider.styles.js.map +1 -1
- package/dist/esm/slider/slider.template.js +11 -28
- package/dist/esm/slider/slider.template.js.map +1 -1
- package/dist/esm/spinner/index.js +2 -2
- package/dist/esm/spinner/index.js.map +1 -1
- package/dist/esm/spinner/spinner.bench.js +10 -0
- package/dist/esm/spinner/spinner.bench.js.map +1 -0
- package/dist/esm/spinner/spinner.js +39 -9
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +123 -61
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.template.js +16 -47
- package/dist/esm/spinner/spinner.template.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +119 -119
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/styles/partials/index.js +1 -0
- package/dist/esm/styles/partials/index.js.map +1 -1
- package/dist/esm/styles/partials/typography.partials.js +105 -0
- package/dist/esm/styles/partials/typography.partials.js.map +1 -0
- package/dist/esm/styles/states/index.js +636 -0
- package/dist/esm/styles/states/index.js.map +1 -0
- package/dist/esm/switch/index.js +2 -2
- package/dist/esm/switch/index.js.map +1 -1
- package/dist/esm/switch/switch.bench.js +11 -0
- package/dist/esm/switch/switch.bench.js.map +1 -0
- package/dist/esm/switch/switch.js +3 -54
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +63 -83
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +6 -16
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/index.js +3 -3
- package/dist/esm/tab/index.js.map +1 -1
- package/dist/esm/tab/tab.bench.js +11 -0
- package/dist/esm/tab/tab.bench.js.map +1 -0
- package/dist/esm/tab/tab.js +2 -7
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tab/tab.styles.js +21 -21
- package/dist/esm/tab/tab.styles.js.map +1 -1
- package/dist/esm/tab/tab.template.js.map +1 -1
- package/dist/esm/tab-panel/index.js +1 -1
- package/dist/esm/tab-panel/index.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.bench.js +13 -0
- package/dist/esm/tab-panel/tab-panel.bench.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.styles.js +2 -2
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
- package/dist/esm/tablist/define.js +4 -0
- package/dist/esm/tablist/define.js.map +1 -0
- package/dist/esm/tablist/index.js +6 -0
- package/dist/esm/tablist/index.js.map +1 -0
- package/dist/esm/tablist/tablist.bench.js +21 -0
- package/dist/esm/tablist/tablist.bench.js.map +1 -0
- package/dist/esm/tablist/tablist.definition.js +15 -0
- package/dist/esm/tablist/tablist.definition.js.map +1 -0
- package/dist/esm/tablist/tablist.js +389 -0
- package/dist/esm/tablist/tablist.js.map +1 -0
- package/dist/esm/tablist/tablist.options.js +24 -0
- package/dist/esm/tablist/tablist.options.js.map +1 -0
- package/dist/esm/tablist/tablist.styles.js +194 -0
- package/dist/esm/tablist/tablist.styles.js.map +1 -0
- package/dist/esm/tablist/tablist.template.js +10 -0
- package/dist/esm/tablist/tablist.template.js.map +1 -0
- package/dist/esm/tabs/index.js +4 -4
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs/tabs.bench.js +32 -0
- package/dist/esm/tabs/tabs.bench.js.map +1 -0
- package/dist/esm/tabs/tabs.js +19 -23
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/tabs/tabs.styles.js +50 -50
- package/dist/esm/tabs/tabs.styles.js.map +1 -1
- package/dist/esm/tabs/tabs.template.js.map +1 -1
- package/dist/esm/text/index.js +2 -2
- package/dist/esm/text/index.js.map +1 -1
- package/dist/esm/text/text.bench.js +13 -0
- package/dist/esm/text/text.bench.js.map +1 -0
- package/dist/esm/text/text.js +73 -7
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +64 -61
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/text/text.template.js.map +1 -1
- package/dist/esm/text-input/index.js +4 -4
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-input.bench.js +10 -0
- package/dist/esm/text-input/text-input.bench.js.map +1 -0
- package/dist/esm/text-input/text-input.definition.js +5 -3
- package/dist/esm/text-input/text-input.definition.js.map +1 -1
- package/dist/esm/text-input/text-input.js +366 -104
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.options.js +26 -19
- package/dist/esm/text-input/text-input.options.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +107 -96
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.template.js +45 -55
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/textarea/define.js +4 -0
- package/dist/esm/textarea/define.js.map +1 -0
- package/dist/esm/textarea/index.js +6 -0
- package/dist/esm/textarea/index.js.map +1 -0
- package/dist/esm/textarea/textarea.bench.js +10 -0
- package/dist/esm/textarea/textarea.bench.js.map +1 -0
- package/dist/esm/textarea/textarea.definition.js +20 -0
- package/dist/esm/textarea/textarea.definition.js.map +1 -0
- package/dist/esm/textarea/textarea.js +583 -0
- package/dist/esm/textarea/textarea.js.map +1 -0
- package/dist/esm/textarea/textarea.options.js +48 -0
- package/dist/esm/textarea/textarea.options.js.map +1 -0
- package/dist/esm/textarea/textarea.styles.js +268 -0
- package/dist/esm/textarea/textarea.styles.js.map +1 -0
- package/dist/esm/textarea/textarea.template.js +54 -0
- package/dist/esm/textarea/textarea.template.js.map +1 -0
- package/dist/esm/theme/design-tokens.js +2220 -384
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/index.js.map +1 -1
- package/dist/esm/theme/set-theme.global.bench.js +25 -0
- package/dist/esm/theme/set-theme.global.bench.js.map +1 -0
- package/dist/esm/theme/set-theme.js +185 -12
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/theme/set-theme.local.bench.js +27 -0
- package/dist/esm/theme/set-theme.local.bench.js.map +1 -0
- package/dist/esm/theme/set-theme.shadow.bench.js +29 -0
- package/dist/esm/theme/set-theme.shadow.bench.js.map +1 -0
- package/dist/esm/toggle-button/index.js +4 -4
- package/dist/esm/toggle-button/index.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.bench.js +11 -0
- package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.definition.js +0 -3
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.js +44 -91
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.js +56 -50
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/esm/tooltip/define.js +4 -0
- package/dist/esm/tooltip/define.js.map +1 -0
- package/dist/esm/tooltip/index.js +6 -0
- package/dist/esm/tooltip/index.js.map +1 -0
- package/dist/esm/tooltip/tooltip.definition.js +17 -0
- package/dist/esm/tooltip/tooltip.definition.js.map +1 -0
- package/dist/esm/tooltip/tooltip.js +199 -0
- package/dist/esm/tooltip/tooltip.js.map +1 -0
- package/dist/esm/tooltip/tooltip.options.js +19 -0
- package/dist/esm/tooltip/tooltip.options.js.map +1 -0
- package/dist/esm/tooltip/tooltip.styles.js +96 -0
- package/dist/esm/tooltip/tooltip.styles.js.map +1 -0
- package/dist/esm/tooltip/tooltip.template.js +11 -0
- package/dist/esm/tooltip/tooltip.template.js.map +1 -0
- package/dist/esm/utils/apply-mixins.js.map +1 -1
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js +142 -0
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +1 -0
- package/dist/esm/utils/benchmark-dependencies/tokens.js +2 -0
- package/dist/esm/utils/benchmark-dependencies/tokens.js.map +1 -0
- package/dist/esm/utils/benchmark-wrapper.js +18 -0
- package/dist/esm/utils/benchmark-wrapper.js.map +1 -0
- package/dist/esm/utils/converters.js +26 -0
- package/dist/esm/utils/converters.js.map +1 -0
- package/dist/esm/utils/direction.js +1 -2
- package/dist/esm/utils/direction.js.map +1 -1
- package/dist/esm/utils/display.js +15 -0
- package/dist/esm/utils/display.js.map +1 -0
- package/dist/esm/utils/element-internals.js +96 -0
- package/dist/esm/utils/element-internals.js.map +1 -0
- package/dist/esm/utils/focusable-element.js +10 -0
- package/dist/esm/utils/focusable-element.js.map +1 -0
- package/dist/esm/utils/get-initials.js +2 -2
- package/dist/esm/utils/get-initials.js.map +1 -1
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/language.js +12 -0
- package/dist/esm/utils/language.js.map +1 -0
- package/dist/esm/utils/root-active-element.js +9 -0
- package/dist/esm/utils/root-active-element.js.map +1 -0
- package/dist/esm/utils/support.js +16 -0
- package/dist/esm/utils/support.js.map +1 -0
- package/dist/esm/utils/template-helpers.js +1 -1
- package/dist/esm/utils/template-helpers.js.map +1 -1
- package/dist/esm/utils/unique-id.js +14 -0
- package/dist/esm/utils/unique-id.js.map +1 -0
- package/dist/esm/utils/whitespace-filter.js +1 -1
- package/dist/esm/utils/whitespace-filter.js.map +1 -1
- package/dist/web-components.d.ts +8201 -2510
- package/dist/web-components.js +11337 -7453
- package/dist/web-components.min.js +464 -259
- package/package.json +60 -159
- package/dist/dts/button/button.form-associated.d.ts +0 -14
- package/dist/dts/checkbox/checkbox.form-associated.d.ts +0 -14
- package/dist/dts/helpers.tests.d.ts +0 -8
- package/dist/dts/progress-bar/base-progress.d.ts +0 -41
- package/dist/dts/progress-ring/progress-ring.d.ts +0 -15
- package/dist/dts/progress-ring/progress-ring.options.d.ts +0 -9
- package/dist/dts/radio/radio.form-associated.d.ts +0 -14
- package/dist/dts/text-input/text-field.form-associated.d.ts +0 -14
- package/dist/esm/button/button.form-associated.js +0 -14
- package/dist/esm/button/button.form-associated.js.map +0 -1
- package/dist/esm/checkbox/checkbox.form-associated.js +0 -14
- package/dist/esm/checkbox/checkbox.form-associated.js.map +0 -1
- package/dist/esm/helpers.tests.js +0 -29
- package/dist/esm/helpers.tests.js.map +0 -1
- package/dist/esm/progress-bar/base-progress.js +0 -61
- package/dist/esm/progress-bar/base-progress.js.map +0 -1
- package/dist/esm/progress-ring/progress-ring.js +0 -16
- package/dist/esm/progress-ring/progress-ring.js.map +0 -1
- package/dist/esm/progress-ring/progress-ring.options.js +0 -2
- package/dist/esm/progress-ring/progress-ring.options.js.map +0 -1
- package/dist/esm/radio/radio.form-associated.js +0 -14
- package/dist/esm/radio/radio.form-associated.js.map +0 -1
- package/dist/esm/text-input/text-field.form-associated.js +0 -14
- package/dist/esm/text-input/text-field.form-associated.js.map +0 -1
- package/dist/fluent-web-components.api.json +0 -27410
- package/dist/storybook/108.78b731e00015540915a8.manager.bundle.js +0 -1
- package/dist/storybook/108.b31ec3a1.iframe.bundle.js +0 -1
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js +0 -2
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js.LICENSE.txt +0 -17
- package/dist/storybook/401.7edec720.iframe.bundle.js +0 -2
- package/dist/storybook/401.7edec720.iframe.bundle.js.LICENSE.txt +0 -12
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js +0 -2
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js.LICENSE.txt +0 -12
- package/dist/storybook/491.77b24750.iframe.bundle.js +0 -1
- package/dist/storybook/591.f5bf0d78d2f203de19f5.manager.bundle.js +0 -2
- package/dist/storybook/591.f5bf0d78d2f203de19f5.manager.bundle.js.LICENSE.txt +0 -94
- package/dist/storybook/709.22096ad4.iframe.bundle.js +0 -2
- package/dist/storybook/709.22096ad4.iframe.bundle.js.LICENSE.txt +0 -8
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js +0 -2
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js.LICENSE.txt +0 -8
- package/dist/storybook/711.b5d63aa3.iframe.bundle.js +0 -2
- package/dist/storybook/711.b5d63aa3.iframe.bundle.js.LICENSE.txt +0 -51
- package/dist/storybook/721.46fa9f53.iframe.bundle.js +0 -2
- package/dist/storybook/721.46fa9f53.iframe.bundle.js.LICENSE.txt +0 -31
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js +0 -2
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js.LICENSE.txt +0 -31
- package/dist/storybook/858.da40ed98.iframe.bundle.js +0 -1
- package/dist/storybook/858.e08e25a6901d2e21e9d8.manager.bundle.js +0 -1
- package/dist/storybook/950.674e7934b4a26a022608.manager.bundle.js +0 -1
- package/dist/storybook/954.630c5748.iframe.bundle.js +0 -1
- package/dist/storybook/954.7f985e2fdf9f15a7748b.manager.bundle.js +0 -1
- package/dist/storybook/SegoeUI-VF.ttf +0 -0
- package/dist/storybook/favicon.ico +0 -0
- package/dist/storybook/favicon.png +0 -0
- package/dist/storybook/iframe.html +0 -364
- package/dist/storybook/index.html +0 -165
- package/dist/storybook/main.588112e6.iframe.bundle.js +0 -2
- package/dist/storybook/main.588112e6.iframe.bundle.js.LICENSE.txt +0 -1
- package/dist/storybook/main.5d7b916dc1e37293b1d8.manager.bundle.js +0 -1
- package/dist/storybook/project.json +0 -1
- package/dist/storybook/runtime~main.5d918fe7.iframe.bundle.js +0 -1
- package/dist/storybook/runtime~main.dbf00b470fe610082919.manager.bundle.js +0 -1
- package/dist/storybook/shell.css +0 -83
- package/dist/storybook/theme-switch.ts +0 -13
- package/docs/api-report.md +0 -2969
- package/playwright.config.ts +0 -25
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { borderRadiusNone, borderRadiusSmall, borderRadiusMedium, borderRadiusLarge, borderRadiusXLarge, borderRadiusCircular, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontSizeHero1000, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero700, lineHeightHero800, lineHeightHero900, lineHeightHero1000, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontWeightRegular, fontWeightMedium, fontWeightSemibold, fontWeightBold, strokeWidthThin, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, spacingHorizontalNone, spacingHorizontalXXS, spacingHorizontalXS, spacingHorizontalSNudge, spacingHorizontalS, spacingHorizontalMNudge, spacingHorizontalM, spacingHorizontalL, spacingHorizontalXL, spacingHorizontalXXL, spacingHorizontalXXXL, spacingVerticalNone, spacingVerticalXXS, spacingVerticalXS, spacingVerticalSNudge, spacingVerticalS, spacingVerticalMNudge, spacingVerticalM, spacingVerticalL, spacingVerticalXL, spacingVerticalXXL, spacingVerticalXXXL, durationUltraFast, durationFaster, durationFast, durationNormal, durationSlow, durationSlower, durationUltraSlow, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEaseMax, curveEasyEase, curveLinear, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground2, colorNeutralForeground2Hover, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground3, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInvertedDisabled, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorBrandForeground1, colorBrandForeground2, colorNeutralForeground1Static, colorNeutralForegroundStaticInverted, colorNeutralForegroundInverted, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundInverted2, colorNeutralForegroundOnBrand, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundInverted, colorNeutralBackgroundStatic, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorNeutralBackgroundDisabled, colorNeutralBackgroundInvertedDisabled, colorNeutralStencil1, colorNeutralStencil2, colorNeutralStencil1Alpha, colorNeutralStencil2Alpha, colorBackgroundOverlay, colorScrollbarOverlay, colorBrandBackground, colorBrandBackgroundHover, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorBrandBackgroundStatic, colorBrandBackground2, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorTransparentStroke, colorTransparentStrokeInteractive, colorTransparentStrokeDisabled, colorStrokeFocus1, colorStrokeFocus2, colorNeutralShadowAmbient, colorNeutralShadowKey, colorNeutralShadowAmbientLighter, colorNeutralShadowKeyLighter, colorNeutralShadowAmbientDarker, colorNeutralShadowKeyDarker, colorBrandShadowAmbient, colorBrandShadowKey, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRedBorderActive, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteGreenBorderActive, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorPaletteYellowBorderActive, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBerryBorderActive, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightGreenBorderActive, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMarigoldBorderActive, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteDarkRedBackground2, colorPaletteDarkRedForeground2, colorPaletteDarkRedBorderActive, colorPaletteCranberryBackground2, colorPaletteCranberryForeground2, colorPaletteCranberryBorderActive, colorPalettePumpkinBackground2, colorPalettePumpkinForeground2, colorPalettePumpkinBorderActive, colorPalettePeachBackground2, colorPalettePeachForeground2, colorPalettePeachBorderActive, colorPaletteGoldBackground2, colorPaletteGoldForeground2, colorPaletteGoldBorderActive, colorPaletteBrassBackground2, colorPaletteBrassForeground2, colorPaletteBrassBorderActive, colorPaletteBrownBackground2, colorPaletteBrownForeground2, colorPaletteBrownBorderActive, colorPaletteForestBackground2, colorPaletteForestForeground2, colorPaletteForestBorderActive, colorPaletteSeafoamBackground2, colorPaletteSeafoamForeground2, colorPaletteSeafoamBorderActive, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenForeground2, colorPaletteDarkGreenBorderActive, colorPaletteLightTealBackground2, colorPaletteLightTealForeground2, colorPaletteLightTealBorderActive, colorPaletteTealBackground2, colorPaletteTealForeground2, colorPaletteTealBorderActive, colorPaletteSteelBackground2, colorPaletteSteelForeground2, colorPaletteSteelBorderActive, colorPaletteBlueBackground2, colorPaletteBlueForeground2, colorPaletteBlueBorderActive, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueForeground2, colorPaletteRoyalBlueBorderActive, colorPaletteCornflowerBackground2, colorPaletteCornflowerForeground2, colorPaletteCornflowerBorderActive, colorPaletteNavyBackground2, colorPaletteNavyForeground2, colorPaletteNavyBorderActive, colorPaletteLavenderBackground2, colorPaletteLavenderForeground2, colorPaletteLavenderBorderActive, colorPalettePurpleBackground2, colorPalettePurpleForeground2, colorPalettePurpleBorderActive, colorPaletteGrapeBackground2, colorPaletteGrapeForeground2, colorPaletteGrapeBorderActive, colorPaletteLilacBackground2, colorPaletteLilacForeground2, colorPaletteLilacBorderActive, colorPalettePinkBackground2, colorPalettePinkForeground2, colorPalettePinkBorderActive, colorPaletteMagentaBackground2, colorPaletteMagentaForeground2, colorPaletteMagentaBorderActive, colorPalettePlumBackground2, colorPalettePlumForeground2, colorPalettePlumBorderActive, colorPaletteBeigeBackground2, colorPaletteBeigeForeground2, colorPaletteBeigeBorderActive, colorPaletteMinkBackground2, colorPaletteMinkForeground2, colorPaletteMinkBorderActive, colorPalettePlatinumBackground2, colorPalettePlatinumForeground2, colorPalettePlatinumBorderActive, colorPaletteAnchorBackground2, colorPaletteAnchorForeground2, colorPaletteAnchorBorderActive, colorPaletteRedForegroundInverted, colorPaletteGreenForegroundInverted, colorPaletteYellowForegroundInverted, shadow2, shadow4, shadow8, shadow16, shadow28, shadow64, shadow2Brand, shadow4Brand, shadow8Brand, shadow16Brand, shadow28Brand, shadow64Brand, } from './design-tokens.js';
|
|
2
|
-
export { setTheme, setThemeFor } from './set-theme.js';
|
|
2
|
+
export { setTheme, setThemeFor, type Theme } from './set-theme.js';
|
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui/tokens';
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Not using the `Theme` type from `@fluentui/tokens` package to allow custom
|
|
3
|
+
* tokens to be added.
|
|
4
|
+
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
6
|
+
export type Theme = Record<string, string | number>;
|
|
7
|
+
/**
|
|
8
|
+
* Sets the theme tokens as CSS Custom Properties. The Custom Properties are
|
|
9
|
+
* set in a constructed stylesheet on `document.adoptedStyleSheets` if
|
|
10
|
+
* supported, and on `document.documentElement.style` as a fallback.
|
|
11
|
+
*
|
|
12
|
+
* @param theme - Flat object of theme tokens. Each object entry must follow
|
|
13
|
+
* these rules: the key is the name of the token, usually in camel case, it
|
|
14
|
+
* must be a valid CSS Custom Property name WITHOUT the starting two dashes
|
|
15
|
+
* (`--`), the two dashes are added inside the function; the value must be
|
|
16
|
+
* a valid CSS value, e.g. it cannot contain semicolons (`;`).
|
|
17
|
+
* Note that this argument is not limited to existing theme objects (from
|
|
18
|
+
* `@fluentui/tokens`), you can pass in an arbitrary theme object as long
|
|
19
|
+
* as each entry’s value is either a string or a number.
|
|
20
|
+
* @param node - The node to set the theme on, defaults to `document` for
|
|
21
|
+
* setting global theme.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare function setTheme(theme: Theme | null, node?: Document | HTMLElement): void;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @deprecated Use `setTheme(theme, element)` instead.
|
|
28
|
+
*/
|
|
29
|
+
export declare function setThemeFor(element: HTMLElement, theme: Theme | null): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from './toggle-button.js';
|
|
2
|
-
export * from './toggle-button.options.js';
|
|
3
|
-
export { template as ToggleButtonTemplate } from './toggle-button.template.js';
|
|
4
|
-
export { styles as ToggleButtonStyles } from './toggle-button.styles.js';
|
|
5
1
|
export { definition as ToggleButtonDefinition } from './toggle-button.definition.js';
|
|
2
|
+
export { ToggleButton } from './toggle-button.js';
|
|
3
|
+
export { ToggleButtonAppearance, ToggleButtonShape, ToggleButtonSize } from './toggle-button.options.js';
|
|
4
|
+
export type { ToggleButtonOptions } from './toggle-button.options.js';
|
|
5
|
+
export { styles as ToggleButtonStyles } from './toggle-button.styles.js';
|
|
6
|
+
export { template as ToggleButtonTemplate } from './toggle-button.template.js';
|
|
@@ -1,48 +1,51 @@
|
|
|
1
1
|
import { Button } from '../button/button.js';
|
|
2
2
|
/**
|
|
3
|
-
* The base class used for constructing a fluent-toggle-button custom element
|
|
3
|
+
* The base class used for constructing a `<fluent-toggle-button>` custom element.
|
|
4
|
+
*
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
6
7
|
export declare class ToggleButton extends Button {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Indicates the pressed state of the control.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
* @remarks
|
|
13
|
+
* HTML Attribute: `pressed`
|
|
11
14
|
*/
|
|
12
|
-
|
|
15
|
+
pressed: boolean;
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
17
|
+
* Updates the pressed state when the `pressed` property changes.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
protected pressedChanged(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Indicates the mixed state of the control. This property takes precedence over `pressed`.
|
|
16
24
|
*
|
|
17
25
|
* @public
|
|
18
26
|
* @remarks
|
|
19
|
-
* HTML Attribute:
|
|
27
|
+
* HTML Attribute: `mixed`
|
|
20
28
|
*/
|
|
21
|
-
|
|
22
|
-
protected checkedAttributeChanged(): void;
|
|
23
|
-
defaultChecked: boolean;
|
|
24
|
-
protected defaultCheckedChanged(): void;
|
|
29
|
+
mixed?: boolean;
|
|
25
30
|
/**
|
|
26
|
-
*
|
|
31
|
+
* Updates the pressed state when the `mixed` property changes.
|
|
27
32
|
*
|
|
28
|
-
* @
|
|
33
|
+
* @param previous - the previous mixed state
|
|
34
|
+
* @param next - the current mixed state
|
|
35
|
+
* @internal
|
|
29
36
|
*/
|
|
30
|
-
|
|
31
|
-
protected checkedChanged(prev: boolean | undefined, next: boolean): void;
|
|
37
|
+
protected mixedChanged(): void;
|
|
32
38
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* in UI libraries that bind data through the .setAttribute() API
|
|
37
|
-
* and don't support IDL attribute binding.
|
|
39
|
+
* Toggles the pressed state of the button.
|
|
40
|
+
*
|
|
41
|
+
* @override
|
|
38
42
|
*/
|
|
39
|
-
|
|
40
|
-
currentCheckedChanged(prev: boolean | undefined, next: boolean): void;
|
|
41
|
-
constructor();
|
|
43
|
+
protected press(): void;
|
|
42
44
|
connectedCallback(): void;
|
|
43
|
-
disconnectedCallback(): void;
|
|
44
45
|
/**
|
|
46
|
+
* Sets the `aria-pressed` attribute based on the `pressed` and `mixed` properties.
|
|
47
|
+
*
|
|
45
48
|
* @internal
|
|
46
49
|
*/
|
|
47
|
-
|
|
50
|
+
private setPressedState;
|
|
48
51
|
}
|
|
@@ -8,14 +8,13 @@ export declare const ToggleButtonAppearance: {
|
|
|
8
8
|
readonly primary: "primary";
|
|
9
9
|
readonly outline: "outline";
|
|
10
10
|
readonly subtle: "subtle";
|
|
11
|
-
readonly secondary: "secondary";
|
|
12
11
|
readonly transparent: "transparent";
|
|
13
12
|
};
|
|
14
13
|
/**
|
|
15
14
|
* A Toggle Button can be secondary, primary, outline, subtle, transparent
|
|
16
15
|
* @public
|
|
17
16
|
*/
|
|
18
|
-
export
|
|
17
|
+
export type ToggleButtonAppearance = ValuesOf<typeof ToggleButtonAppearance>;
|
|
19
18
|
/**
|
|
20
19
|
* A Toggle Button can be square, circular or rounded.
|
|
21
20
|
* @public
|
|
@@ -29,7 +28,7 @@ export declare const ToggleButtonShape: {
|
|
|
29
28
|
* A Toggle Button can be square, circular or rounded
|
|
30
29
|
* @public
|
|
31
30
|
*/
|
|
32
|
-
export
|
|
31
|
+
export type ToggleButtonShape = ValuesOf<typeof ToggleButtonShape>;
|
|
33
32
|
/**
|
|
34
33
|
* A Toggle Button can be a size of small, medium or large.
|
|
35
34
|
* @public
|
|
@@ -43,5 +42,5 @@ export declare const ToggleButtonSize: {
|
|
|
43
42
|
* A Toggle Button can be on of several preset sizes.
|
|
44
43
|
* @public
|
|
45
44
|
*/
|
|
46
|
-
export
|
|
47
|
-
export { ButtonOptions as ToggleButtonOptions };
|
|
45
|
+
export type ToggleButtonSize = ValuesOf<typeof ToggleButtonSize>;
|
|
46
|
+
export type { ButtonOptions as ToggleButtonOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { definition as TooltipDefinition } from './tooltip.definition.js';
|
|
2
|
+
export { Tooltip } from './tooltip.js';
|
|
3
|
+
export { TooltipPositioningOption } from './tooltip.options.js';
|
|
4
|
+
export { styles as TooltipStyles } from './tooltip.styles.js';
|
|
5
|
+
export { template as TooltipTemplate } from './tooltip.template.js';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import type { TooltipPositioningOption } from './tooltip.options.js';
|
|
3
|
+
/**
|
|
4
|
+
* A Tooltip Custom HTML Element.
|
|
5
|
+
* Based on ARIA APG Tooltip Pattern {@link https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/ }
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class Tooltip extends FASTElement {
|
|
9
|
+
/**
|
|
10
|
+
* The attached element internals
|
|
11
|
+
*/
|
|
12
|
+
elementInternals: ElementInternals;
|
|
13
|
+
/**
|
|
14
|
+
* The item ID
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
* @remarks
|
|
18
|
+
* HTML Attribute: id
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Set the delay for the tooltip
|
|
23
|
+
*/
|
|
24
|
+
delay?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The default delay for the tooltip
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
private defaultDelay;
|
|
30
|
+
/**
|
|
31
|
+
* Set the positioning of the tooltip
|
|
32
|
+
*/
|
|
33
|
+
positioning?: TooltipPositioningOption;
|
|
34
|
+
/**
|
|
35
|
+
* Updates the fallback styles when the positioning changes.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
positioningChanged(): void;
|
|
40
|
+
/**
|
|
41
|
+
* The id of the anchor element for the tooltip
|
|
42
|
+
*/
|
|
43
|
+
anchor: string;
|
|
44
|
+
/**
|
|
45
|
+
* Reference to the anchor element
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
private get anchorElement();
|
|
49
|
+
/**
|
|
50
|
+
* Reference to the anchor positioning style element
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
protected anchorPositioningStyleElement: HTMLStyleElement | null;
|
|
54
|
+
constructor();
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Shows the tooltip
|
|
59
|
+
* @param delay Number of milliseconds to delay showing the tooltip
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
showTooltip(delay?: number): void;
|
|
63
|
+
/**
|
|
64
|
+
* Hide the tooltip
|
|
65
|
+
* @param delay Number of milliseconds to delay hiding the tooltip
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
hideTooltip(delay?: number): void;
|
|
69
|
+
/**
|
|
70
|
+
* Show the tooltip on mouse enter
|
|
71
|
+
*/
|
|
72
|
+
mouseenterAnchorHandler: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Hide the tooltip on mouse leave
|
|
75
|
+
*/
|
|
76
|
+
mouseleaveAnchorHandler: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Show the tooltip on focus
|
|
79
|
+
*/
|
|
80
|
+
focusAnchorHandler: () => void;
|
|
81
|
+
/**
|
|
82
|
+
* Hide the tooltip on blur
|
|
83
|
+
*/
|
|
84
|
+
blurAnchorHandler: () => void;
|
|
85
|
+
private setFallbackStyles;
|
|
86
|
+
}
|
|
87
|
+
declare global {
|
|
88
|
+
interface Window {
|
|
89
|
+
CSS_ANCHOR_POLYFILL?: {
|
|
90
|
+
call: (options: {
|
|
91
|
+
element: HTMLStyleElement;
|
|
92
|
+
}) => void;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Tooltip } from './tooltip.js';
|
|
2
|
+
/**
|
|
3
|
+
* The {@link Tooltip } custom element definition.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* HTML Element: `<fluent-tooltip>`
|
|
8
|
+
*/
|
|
9
|
+
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof Tooltip>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ValuesOf } from '../utils/typings.js';
|
|
2
|
+
/**
|
|
3
|
+
* The TooltipPositioning options and their corresponding CSS values
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const TooltipPositioningOption: {
|
|
7
|
+
readonly 'above-start': "block-start span-inline-end";
|
|
8
|
+
readonly above: "block-start";
|
|
9
|
+
readonly 'above-end': "block-start span-inline-start";
|
|
10
|
+
readonly 'below-start': "block-end span-inline-end";
|
|
11
|
+
readonly below: "block-end";
|
|
12
|
+
readonly 'below-end': "block-end span-inline-start";
|
|
13
|
+
readonly 'before-top': "inline-start span-block-end";
|
|
14
|
+
readonly before: "inline-start";
|
|
15
|
+
readonly 'before-bottom': "inline-start span-block-start";
|
|
16
|
+
readonly 'after-top': "inline-end span-block-end";
|
|
17
|
+
readonly after: "inline-end";
|
|
18
|
+
readonly 'after-bottom': "inline-end span-block-start";
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The TooltipPositioning type
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type TooltipPositioningOption = ValuesOf<typeof TooltipPositioningOption>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.49.1"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ElementStyles, HostBehavior, HostController } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* An event listener fired by a {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList | MediaQueryList }.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type MediaQueryListListener = (this: MediaQueryList, ev?: MediaQueryListEvent) => void;
|
|
7
|
+
/**
|
|
8
|
+
* An abstract behavior to react to media queries. Implementations should implement
|
|
9
|
+
* the `constructListener` method to perform some action based on media query changes.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare abstract class MatchMediaBehavior implements HostBehavior {
|
|
14
|
+
/**
|
|
15
|
+
* The behavior needs to operate on element instances but elements might share a behavior instance.
|
|
16
|
+
* To ensure proper attachment / detachment per instance, we construct a listener for
|
|
17
|
+
* each bind invocation and cache the listeners by element reference.
|
|
18
|
+
*/
|
|
19
|
+
private listenerCache;
|
|
20
|
+
/**
|
|
21
|
+
* The media query that the behavior operates on.
|
|
22
|
+
*/
|
|
23
|
+
readonly query: MediaQueryList;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param query - The media query to operate from.
|
|
27
|
+
*/
|
|
28
|
+
constructor(query: MediaQueryList);
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a function that will be invoked with the MediaQueryList context
|
|
31
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
32
|
+
*/
|
|
33
|
+
protected abstract constructListener(controller: HostController): MediaQueryListListener;
|
|
34
|
+
/**
|
|
35
|
+
* Binds the behavior to the element.
|
|
36
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
37
|
+
*/
|
|
38
|
+
connectedCallback(controller: HostController): void;
|
|
39
|
+
/**
|
|
40
|
+
* Unbinds the behavior from the element.
|
|
41
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
42
|
+
*/
|
|
43
|
+
disconnectedCallback(controller: HostController): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A behavior to add or remove a stylesheet from an element based on a media query. The behavior ensures that
|
|
47
|
+
* styles are applied while the a query matches the environment and that styles are not applied if the query does
|
|
48
|
+
* not match the environment.
|
|
49
|
+
*
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare class MatchMediaStyleSheetBehavior extends MatchMediaBehavior {
|
|
53
|
+
/**
|
|
54
|
+
* The media query that the behavior operates on.
|
|
55
|
+
*/
|
|
56
|
+
readonly query: MediaQueryList;
|
|
57
|
+
/**
|
|
58
|
+
* The styles object to be managed by the behavior.
|
|
59
|
+
*/
|
|
60
|
+
readonly styles: ElementStyles;
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a {@link MatchMediaStyleSheetBehavior} instance.
|
|
63
|
+
* @param query - The media query to operate from.
|
|
64
|
+
* @param styles - The styles to coordinate with the query.
|
|
65
|
+
*/
|
|
66
|
+
constructor(query: MediaQueryList, styles: ElementStyles);
|
|
67
|
+
/**
|
|
68
|
+
* Defines a function to construct {@link MatchMediaStyleSheetBehavior | MatchMediaStyleSheetBehaviors} for
|
|
69
|
+
* a provided query.
|
|
70
|
+
* @param query - The media query to operate from.
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
* @example
|
|
74
|
+
*
|
|
75
|
+
* ```ts
|
|
76
|
+
* import { css } from "@microsoft/fast-element";
|
|
77
|
+
* import { MatchMediaStyleSheetBehavior } from "@fluentui/web-components";
|
|
78
|
+
*
|
|
79
|
+
* const landscapeBehavior = MatchMediaStyleSheetBehavior.with(
|
|
80
|
+
* window.matchMedia("(orientation: landscape)")
|
|
81
|
+
* );
|
|
82
|
+
*
|
|
83
|
+
* const styles = css`
|
|
84
|
+
* :host {
|
|
85
|
+
* width: 200px;
|
|
86
|
+
* height: 400px;
|
|
87
|
+
* }
|
|
88
|
+
* `
|
|
89
|
+
* .withBehaviors(landscapeBehavior(css`
|
|
90
|
+
* :host {
|
|
91
|
+
* width: 400px;
|
|
92
|
+
* height: 200px;
|
|
93
|
+
* }
|
|
94
|
+
* `))
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
static with(query: MediaQueryList): (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
98
|
+
/**
|
|
99
|
+
* Constructs a match-media listener for a provided element.
|
|
100
|
+
* @param source - the element for which to attach or detach styles.
|
|
101
|
+
*/
|
|
102
|
+
protected constructListener(controller: HostController): MediaQueryListListener;
|
|
103
|
+
/**
|
|
104
|
+
* Unbinds the behavior from the element.
|
|
105
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
removedCallback(controller: HostController<any>): void;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* This can be used to construct a behavior to apply a forced-colors only stylesheet.
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export declare const forcedColorsStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
115
|
+
/**
|
|
116
|
+
* This can be used to construct a behavior to apply a prefers color scheme: dark only stylesheet.
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
export declare const darkModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
120
|
+
/**
|
|
121
|
+
* This can be used to construct a behavior to apply a prefers color scheme: light only stylesheet.
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export declare const lightModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fluentui/tokens';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ValueConverter } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* A {@link ValueConverter} that makes sure the attribute and property values
|
|
4
|
+
* are a string representation of a number, e.g. `'10'` instead of `10`.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This converter allows any data type, but if the data is evaluated as `NaN`
|
|
8
|
+
* by `Number.isNaN()`, it’d be converted to an empty string. Otherwise, the
|
|
9
|
+
* converted value is a string of number.
|
|
10
|
+
*
|
|
11
|
+
* It is useful for somm custom element’s attributes and properties, e.g.
|
|
12
|
+
* `min`, `max`, `step` on an `<input type=range>`-like element, to align with
|
|
13
|
+
* the built-in HTML element behavior, those property values should be strings.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare const numberLikeStringConverter: ValueConverter;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define all possible CSS display values.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export type CSSDisplayPropertyValue = 'block' | 'contents' | 'flex' | 'grid' | 'inherit' | 'initial' | 'inline' | 'inline-block' | 'inline-flex' | 'inline-grid' | 'inline-table' | 'list-item' | 'none' | 'run-in' | 'table' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row' | 'table-row-group';
|
|
6
|
+
/**
|
|
7
|
+
* A CSS fragment to set `display: none;` when the host is hidden using the [hidden] attribute.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare const hidden = ":host([hidden]){display:none}";
|
|
11
|
+
/**
|
|
12
|
+
* Applies a CSS display property.
|
|
13
|
+
* Also adds CSS rules to not display the element when the [hidden] attribute is applied to the element.
|
|
14
|
+
* @param display - The CSS display property value
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare function display(displayValue: CSSDisplayPropertyValue): string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CustomStatesSetSupported } from './support.js';
|
|
2
|
+
/**
|
|
3
|
+
* Inference type for a CSS custom state selector.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type StateSelector<S> = S extends string ? `:state(${S})` | `[state--${S}]` : never;
|
|
7
|
+
export { CustomStatesSetSupported };
|
|
8
|
+
/**
|
|
9
|
+
* Returns a string that represents a CSS custom state selector.
|
|
10
|
+
*
|
|
11
|
+
* @param state - the state value.
|
|
12
|
+
* @returns a string that represents a CSS state selector, or a custom attribute selector if the browser does not
|
|
13
|
+
* support Custom States.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare function stateSelector<S extends string>(state: S): StateSelector<S>;
|
|
18
|
+
/**
|
|
19
|
+
* This function is used to toggle a state on the control. If the browser supports Custom States, the state is toggled
|
|
20
|
+
* on the `ElementInternals.states` set. If the browser does not support Custom States, the state is toggled on the host
|
|
21
|
+
* element as an attribute with the format `state--{state}`.
|
|
22
|
+
*
|
|
23
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet | CustomStateSet} interface
|
|
24
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | ElementInternals} interface
|
|
25
|
+
* @see The CSS {@link https://developer.mozilla.org/en-US/docs/Web/CSS/:state | `:state()`} pseudo-class
|
|
26
|
+
*
|
|
27
|
+
* @param elementInternals - the `ElementInternals` instance for the component
|
|
28
|
+
* @param state - the state to toggle
|
|
29
|
+
* @param force - force the state to be toggled on or off
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare function toggleState(elementInternals: ElementInternals | undefined, state: string | undefined, force?: boolean): void;
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given attribute value is a valid state. Attribute values are often kebab-cased, so this function converts
|
|
35
|
+
* the kebab-cased `state` to camelCase and checks if it exists in as a key in the `States` object.
|
|
36
|
+
*
|
|
37
|
+
* @param States - the object containing valid states for the attribute
|
|
38
|
+
* @param state - the state to check
|
|
39
|
+
* @returns true if the state is in the States object
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
export declare function hasMatchingState(States: Record<string, string> | undefined, state: string | undefined): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Swap an old state for a new state.
|
|
45
|
+
*
|
|
46
|
+
* @param elementInternals - the `ElementInternals` instance for the component
|
|
47
|
+
* @param prev - the previous state to remove
|
|
48
|
+
* @param next - the new state to add
|
|
49
|
+
* @param States - the object containing valid states for the attribute
|
|
50
|
+
* @param prefix - an optional prefix to add to the state
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
export declare function swapStates(elementInternals: ElementInternals, prev?: string | undefined, next?: string | undefined, States?: Record<string, string>, prefix?: string): void;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
export * from './converters.js';
|
|
1
2
|
export * from './direction.js';
|
|
2
3
|
export * from './typings.js';
|
|
3
4
|
export * from './template-helpers.js';
|
|
4
5
|
export * from './whitespace-filter.js';
|
|
6
|
+
export * from './display.js';
|
|
7
|
+
export * from './behaviors/match-media-stylesheet-behavior.js';
|
|
8
|
+
export * from './support.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines the current language code of an element.
|
|
3
|
+
*
|
|
4
|
+
* @param rootNode - the HTMLElement to begin the query from, usually "this" when used in a component controller
|
|
5
|
+
* @returns the language code of the element
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare function getLanguage(rootNode: HTMLElement): Intl.BCP47LanguageTag;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRootActiveElement(element: Element): Element | null;
|