@fluentui/web-components 3.0.0-beta.2 → 3.0.0-beta.20
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 +330 -103
- package/README.md +46 -15
- package/dist/dts/accordion/accordion.d.ts +47 -3
- package/dist/dts/accordion/accordion.definition.d.ts +0 -4
- package/dist/dts/accordion/accordion.options.d.ts +14 -0
- package/dist/dts/accordion/accordion.template.d.ts +4 -0
- package/dist/dts/accordion/index.d.ts +2 -1
- package/dist/dts/accordion-item/accordion-item.d.ts +78 -3
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +0 -3
- package/dist/dts/accordion-item/accordion-item.options.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.template.d.ts +2 -1
- package/dist/dts/accordion-item/index.d.ts +2 -2
- package/dist/dts/anchor-button/anchor-button.d.ts +116 -4
- package/dist/dts/anchor-button/anchor-button.definition.d.ts +0 -3
- package/dist/dts/anchor-button/anchor-button.options.d.ts +19 -2
- package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -2
- package/dist/dts/anchor-button/index.d.ts +2 -2
- package/dist/dts/avatar/avatar.options.d.ts +1 -1
- package/dist/dts/avatar/index.d.ts +2 -2
- package/dist/dts/badge/badge.d.ts +1 -1
- package/dist/dts/badge/badge.definition.d.ts +0 -3
- package/dist/dts/badge/badge.options.d.ts +2 -2
- package/dist/dts/badge/index.d.ts +2 -2
- package/dist/dts/button/button.d.ts +243 -22
- package/dist/dts/button/button.definition.d.ts +2 -3
- package/dist/dts/button/button.options.d.ts +39 -3
- package/dist/dts/button/button.styles.d.ts +5 -0
- package/dist/dts/button/button.template.d.ts +8 -0
- package/dist/dts/button/index.d.ts +2 -2
- package/dist/dts/checkbox/checkbox.d.ts +46 -3
- package/dist/dts/checkbox/checkbox.form-associated.d.ts +14 -0
- package/dist/dts/checkbox/checkbox.options.d.ts +1 -1
- package/dist/dts/checkbox/checkbox.template.d.ts +6 -1
- package/dist/dts/checkbox/index.d.ts +2 -2
- package/dist/dts/compound-button/compound-button.definition.d.ts +0 -3
- package/dist/dts/compound-button/compound-button.options.d.ts +6 -6
- package/dist/dts/compound-button/index.d.ts +2 -2
- package/dist/dts/counter-badge/counter-badge.d.ts +1 -1
- package/dist/dts/counter-badge/counter-badge.definition.d.ts +0 -4
- package/dist/dts/counter-badge/counter-badge.options.d.ts +1 -1
- package/dist/dts/counter-badge/index.d.ts +2 -2
- package/dist/dts/dialog/define.d.ts +1 -0
- package/dist/dts/dialog/dialog.d.ts +192 -0
- package/dist/dts/dialog/dialog.definition.d.ts +9 -0
- package/dist/dts/dialog/dialog.options.d.ts +11 -0
- package/dist/dts/dialog/dialog.styles.d.ts +4 -0
- package/dist/dts/dialog/dialog.template.d.ts +7 -0
- package/dist/dts/dialog/index.d.ts +5 -0
- package/dist/dts/divider/divider.d.ts +20 -4
- package/dist/dts/divider/divider.options.d.ts +30 -6
- package/dist/dts/divider/divider.template.d.ts +1 -0
- package/dist/dts/divider/index.d.ts +2 -2
- package/dist/dts/form-associated/form-associated.d.ts +104 -0
- package/dist/dts/image/image.options.d.ts +1 -1
- package/dist/dts/image/index.d.ts +2 -2
- package/dist/dts/index-rollup.d.ts +35 -1
- package/dist/dts/index.d.ts +36 -29
- package/dist/dts/label/index.d.ts +2 -1
- package/dist/dts/label/label.options.d.ts +1 -1
- package/dist/dts/menu/define.d.ts +1 -0
- package/dist/dts/menu/index.d.ts +4 -0
- package/dist/dts/menu/menu.d.ts +194 -0
- package/dist/dts/menu/menu.definition.d.ts +9 -0
- package/dist/dts/menu/menu.styles.d.ts +4 -0
- package/dist/dts/menu/menu.template.d.ts +4 -0
- package/dist/dts/menu-button/index.d.ts +2 -2
- package/dist/dts/menu-button/menu-button.definition.d.ts +0 -3
- package/dist/dts/menu-button/menu-button.options.d.ts +2 -2
- package/dist/dts/menu-item/index.d.ts +2 -1
- package/dist/dts/menu-item/menu-item.d.ts +161 -4
- package/dist/dts/menu-item/menu-item.definition.d.ts +0 -4
- package/dist/dts/menu-item/menu-item.options.d.ts +30 -0
- package/dist/dts/menu-item/menu-item.template.d.ts +2 -1
- package/dist/dts/menu-list/index.d.ts +1 -1
- package/dist/dts/menu-list/menu-list.d.ts +71 -4
- package/dist/dts/menu-list/menu-list.definition.d.ts +0 -4
- package/dist/dts/menu-list/menu-list.template.d.ts +1 -0
- package/dist/dts/patterns/aria-globals.d.ts +189 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/start-end.d.ts +44 -0
- package/dist/dts/progress-bar/base-progress.d.ts +41 -0
- package/dist/dts/progress-bar/index.d.ts +2 -2
- package/dist/dts/progress-bar/progress-bar.d.ts +11 -4
- package/dist/dts/progress-bar/progress-bar.options.d.ts +10 -1
- package/dist/dts/progress-bar/progress-bar.template.d.ts +2 -0
- package/dist/dts/radio/index.d.ts +1 -1
- package/dist/dts/radio/radio.d.ts +54 -3
- package/dist/dts/radio/radio.form-associated.d.ts +14 -0
- package/dist/dts/radio/radio.template.d.ts +2 -1
- package/dist/dts/radio-group/index.d.ts +2 -2
- package/dist/dts/radio-group/radio-group.d.ts +91 -2
- package/dist/dts/radio-group/radio-group.options.d.ts +17 -0
- package/dist/dts/radio-group/radio-group.template.d.ts +1 -0
- package/dist/dts/slider/index.d.ts +2 -2
- package/dist/dts/slider/slider-utilities.d.ts +5 -0
- package/dist/dts/slider/slider.d.ts +195 -5
- package/dist/dts/slider/slider.form-associated.d.ts +14 -0
- package/dist/dts/slider/slider.options.d.ts +43 -2
- package/dist/dts/slider/slider.template.d.ts +4 -2
- package/dist/dts/spinner/index.d.ts +2 -2
- package/dist/dts/spinner/spinner.d.ts +9 -2
- package/dist/dts/spinner/spinner.definition.d.ts +0 -4
- package/dist/dts/spinner/spinner.options.d.ts +1 -1
- package/dist/dts/spinner/spinner.template.d.ts +1 -2
- package/dist/dts/styles/partials/index.d.ts +1 -0
- package/dist/dts/styles/partials/typography.partials.d.ts +18 -0
- package/dist/dts/switch/index.d.ts +2 -2
- package/dist/dts/switch/switch.d.ts +34 -2
- package/dist/dts/switch/switch.form-associated.d.ts +14 -0
- package/dist/dts/switch/switch.options.d.ts +1 -1
- package/dist/dts/switch/switch.template.d.ts +2 -1
- package/dist/dts/tab/index.d.ts +1 -1
- package/dist/dts/tab/tab.d.ts +17 -2
- package/dist/dts/tab/tab.template.d.ts +3 -3
- package/dist/dts/tab-panel/index.d.ts +1 -1
- package/dist/dts/tab-panel/tab-panel.d.ts +2 -2
- package/dist/dts/tab-panel/tab-panel.template.d.ts +4 -1
- package/dist/dts/tabs/index.d.ts +2 -2
- package/dist/dts/tabs/tabs.d.ts +89 -4
- package/dist/dts/tabs/tabs.options.d.ts +21 -3
- package/dist/dts/tabs/tabs.template.d.ts +5 -1
- package/dist/dts/text/index.d.ts +2 -2
- package/dist/dts/text/text.options.d.ts +1 -1
- package/dist/dts/text-input/index.d.ts +2 -3
- package/dist/dts/text-input/text-field.form-associated.d.ts +14 -0
- package/dist/dts/text-input/text-input.d.ts +134 -6
- package/dist/dts/text-input/text-input.options.d.ts +32 -1
- package/dist/dts/text-input/text-input.template.d.ts +2 -1
- package/dist/dts/theme/design-tokens.d.ts +436 -384
- package/dist/dts/theme/set-theme.d.ts +1 -2
- package/dist/dts/toggle-button/index.d.ts +2 -2
- package/dist/dts/toggle-button/toggle-button.d.ts +29 -26
- package/dist/dts/toggle-button/toggle-button.definition.d.ts +0 -2
- package/dist/dts/toggle-button/toggle-button.options.d.ts +2 -2
- package/dist/dts/toggle-button/toggle-button.styles.d.ts +7 -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/direction.d.ts +10 -0
- package/dist/dts/utils/display.d.ts +17 -0
- package/dist/dts/utils/index.d.ts +6 -0
- package/dist/dts/utils/template-helpers.d.ts +16 -0
- package/dist/dts/utils/typings.d.ts +6 -0
- package/dist/dts/utils/whitespace-filter.d.ts +12 -0
- package/dist/esm/accordion/accordion.definition.js +0 -4
- package/dist/esm/accordion/accordion.definition.js.map +1 -1
- package/dist/esm/accordion/accordion.js +216 -3
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.options.js +9 -0
- package/dist/esm/accordion/accordion.options.js.map +1 -0
- 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 +11 -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.definition.js +0 -3
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +80 -4
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.template.js +47 -2
- 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.definition.js +0 -3
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +52 -4
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.options.js +11 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.styles.js +255 -3
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js +49 -1
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/anchor-button/index.js +2 -2
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +5 -5
- package/dist/esm/avatar/avatar.styles.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.definition.js +0 -3
- package/dist/esm/badge/badge.definition.js.map +1 -1
- package/dist/esm/badge/badge.js +1 -1
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.styles.js +8 -1
- package/dist/esm/badge/badge.styles.js.map +1 -1
- package/dist/esm/badge/badge.template.js +2 -2
- 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.definition.js +2 -6
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/button.js +262 -35
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.options.js +20 -0
- package/dist/esm/button/button.options.js.map +1 -1
- package/dist/esm/button/button.styles.js +54 -56
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/button.template.js +23 -1
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/button/index.js +2 -2
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.form-associated.js +14 -0
- package/dist/esm/checkbox/checkbox.form-associated.js.map +1 -0
- package/dist/esm/checkbox/checkbox.js +62 -4
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +1 -1
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/checkbox/checkbox.template.js +35 -7
- package/dist/esm/checkbox/checkbox.template.js.map +1 -1
- package/dist/esm/checkbox/index.js +2 -2
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/compound-button/compound-button.definition.js +0 -6
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
- package/dist/esm/compound-button/compound-button.options.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.js +7 -7
- package/dist/esm/compound-button/compound-button.template.js +4 -40
- 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.definition.js +0 -4
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js +1 -1
- package/dist/esm/counter-badge/counter-badge.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/define.js +4 -0
- package/dist/esm/dialog/define.js.map +1 -0
- package/dist/esm/dialog/dialog.definition.js +17 -0
- package/dist/esm/dialog/dialog.definition.js.map +1 -0
- package/dist/esm/dialog/dialog.js +370 -0
- package/dist/esm/dialog/dialog.js.map +1 -0
- package/dist/esm/dialog/dialog.options.js +10 -0
- package/dist/esm/dialog/dialog.options.js.map +1 -0
- package/dist/esm/dialog/dialog.styles.js +102 -0
- package/dist/esm/dialog/dialog.styles.js.map +1 -0
- package/dist/esm/dialog/dialog.template.js +61 -0
- package/dist/esm/dialog/dialog.template.js.map +1 -0
- package/dist/esm/dialog/index.js +6 -0
- package/dist/esm/dialog/index.js.map +1 -0
- package/dist/esm/divider/divider.js +29 -4
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.options.js +14 -5
- package/dist/esm/divider/divider.options.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +1 -1
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/divider/divider.template.js +12 -1
- 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/form-associated/form-associated.js +458 -0
- package/dist/esm/form-associated/form-associated.js.map +1 -0
- package/dist/esm/image/index.js +2 -2
- package/dist/esm/image/index.js.map +1 -1
- package/dist/esm/index-rollup.js +35 -1
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +36 -29
- 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.styles.js +1 -1
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/menu/define.js +4 -0
- package/dist/esm/menu/define.js.map +1 -0
- package/dist/esm/menu/index.js +5 -0
- package/dist/esm/menu/index.js.map +1 -0
- package/dist/esm/menu/menu.definition.js +17 -0
- package/dist/esm/menu/menu.definition.js.map +1 -0
- package/dist/esm/menu/menu.js +413 -0
- package/dist/esm/menu/menu.js.map +1 -0
- package/dist/esm/menu/menu.styles.js +17 -0
- package/dist/esm/menu/menu.styles.js.map +1 -0
- package/dist/esm/menu/menu.template.js +24 -0
- package/dist/esm/menu/menu.template.js.map +1 -0
- package/dist/esm/menu-button/index.js +2 -2
- package/dist/esm/menu-button/index.js.map +1 -1
- package/dist/esm/menu-button/menu-button.definition.js +0 -6
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.options.js.map +1 -1
- package/dist/esm/menu-button/menu-button.template.js +6 -2
- package/dist/esm/menu-button/menu-button.template.js.map +1 -1
- package/dist/esm/menu-item/index.js +2 -1
- package/dist/esm/menu-item/index.js.map +1 -1
- package/dist/esm/menu-item/menu-item.definition.js +0 -4
- package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +270 -4
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-item/menu-item.options.js +27 -0
- package/dist/esm/menu-item/menu-item.options.js.map +1 -0
- package/dist/esm/menu-item/menu-item.styles.js +1 -1
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-item/menu-item.template.js +57 -2
- 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.definition.js +0 -4
- package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +265 -10
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.js +1 -1
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.template.js +13 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/patterns/aria-globals.js +77 -0
- package/dist/esm/patterns/aria-globals.js.map +1 -0
- package/dist/esm/patterns/index.js +3 -0
- package/dist/esm/patterns/index.js.map +1 -0
- package/dist/esm/patterns/start-end.js +29 -0
- package/dist/esm/patterns/start-end.js.map +1 -0
- package/dist/esm/progress-bar/base-progress.js +61 -0
- package/dist/esm/progress-bar/base-progress.js.map +1 -0
- 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.js +10 -3
- 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 +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +25 -1
- 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.form-associated.js +14 -0
- package/dist/esm/radio/radio.form-associated.js.map +1 -0
- package/dist/esm/radio/radio.js +96 -3
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio/radio.styles.js +1 -1
- package/dist/esm/radio/radio.styles.js.map +1 -1
- package/dist/esm/radio/radio.template.js +28 -2
- package/dist/esm/radio/radio.template.js.map +1 -1
- package/dist/esm/radio-group/index.js +2 -2
- package/dist/esm/radio-group/index.js.map +1 -1
- package/dist/esm/radio-group/radio-group.js +346 -3
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/radio-group/radio-group.options.js +7 -0
- package/dist/esm/radio-group/radio-group.options.js.map +1 -0
- package/dist/esm/radio-group/radio-group.styles.js +1 -1
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
- package/dist/esm/radio-group/radio-group.template.js +30 -1
- package/dist/esm/radio-group/radio-group.template.js.map +1 -1
- package/dist/esm/slider/index.js +2 -2
- package/dist/esm/slider/index.js.map +1 -1
- package/dist/esm/slider/slider-utilities.js +12 -0
- package/dist/esm/slider/slider-utilities.js.map +1 -0
- package/dist/esm/slider/slider.form-associated.js +14 -0
- package/dist/esm/slider/slider.form-associated.js.map +1 -0
- package/dist/esm/slider/slider.js +432 -16
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/slider/slider.options.js +11 -1
- package/dist/esm/slider/slider.options.js.map +1 -1
- package/dist/esm/slider/slider.styles.js +1 -1
- package/dist/esm/slider/slider.styles.js.map +1 -1
- package/dist/esm/slider/slider.template.js +38 -1
- 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.definition.js +0 -4
- package/dist/esm/spinner/spinner.definition.js.map +1 -1
- package/dist/esm/spinner/spinner.js +12 -3
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +3 -17
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.template.js +8 -21
- package/dist/esm/spinner/spinner.template.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +1 -1
- 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/switch/index.js +2 -2
- package/dist/esm/switch/index.js.map +1 -1
- package/dist/esm/switch/switch.form-associated.js +14 -0
- package/dist/esm/switch/switch.form-associated.js.map +1 -0
- package/dist/esm/switch/switch.js +48 -3
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +4 -3
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +25 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/index.js +1 -1
- package/dist/esm/tab/index.js.map +1 -1
- package/dist/esm/tab/tab.js +14 -3
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tab/tab.styles.js +1 -1
- package/dist/esm/tab/tab.styles.js.map +1 -1
- package/dist/esm/tab/tab.template.js +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.js +2 -2
- package/dist/esm/tab-panel/tab-panel.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.template.js +8 -1
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
- package/dist/esm/tabs/index.js +2 -2
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs/tabs.js +278 -5
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/tabs/tabs.options.js +6 -2
- package/dist/esm/tabs/tabs.options.js.map +1 -1
- package/dist/esm/tabs/tabs.styles.js +1 -1
- package/dist/esm/tabs/tabs.styles.js.map +1 -1
- package/dist/esm/tabs/tabs.template.js +14 -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.styles.js +1 -1
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/text-input/index.js +2 -3
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-field.form-associated.js +14 -0
- package/dist/esm/text-input/text-field.form-associated.js.map +1 -0
- package/dist/esm/text-input/text-input.js +167 -7
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.options.js +26 -0
- package/dist/esm/text-input/text-input.options.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +1 -1
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.template.js +64 -1
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +437 -386
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.js +2 -2
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/toggle-button/index.js +2 -2
- package/dist/esm/toggle-button/index.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.definition.js +0 -5
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.js +42 -85
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.js +31 -26
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js +1 -1
- package/dist/esm/toggle-button/toggle-button.template.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/direction.js +15 -0
- package/dist/esm/utils/direction.js.map +1 -0
- package/dist/esm/utils/display.js +15 -0
- package/dist/esm/utils/display.js.map +1 -0
- package/dist/esm/utils/get-initials.js.map +1 -1
- package/dist/esm/utils/index.js +7 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/template-helpers.js +19 -0
- package/dist/esm/utils/template-helpers.js.map +1 -0
- package/dist/esm/utils/typings.js +3 -0
- package/dist/esm/utils/typings.js.map +1 -0
- package/dist/esm/utils/whitespace-filter.js +13 -0
- package/dist/esm/utils/whitespace-filter.js.map +1 -0
- package/dist/fluent-web-components.api.json +19311 -8362
- package/dist/web-components.d.ts +3349 -668
- package/dist/web-components.js +3572 -3894
- package/dist/web-components.min.js +340 -190
- package/docs/api-report.md +1327 -517
- package/package.json +20 -11
- package/playwright.config.ts +2 -3
- package/project.json +6 -0
- package/tensile.config.js +22 -0
- 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/651.e36cf1e8.iframe.bundle.js +0 -462
- package/dist/storybook/651.e36cf1e8.iframe.bundle.js.LICENSE.txt +0 -46
- package/dist/storybook/651.e36cf1e8.iframe.bundle.js.map +0 -1
- 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/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.5d7b916dc1e37293b1d8.manager.bundle.js +0 -1
- package/dist/storybook/main.696937e6.iframe.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
|
@@ -1,55 +1,276 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { StartEnd } from '../patterns/index.js';
|
|
3
|
+
import type { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize } from './button.options.js';
|
|
4
|
+
import { ButtonType } from './button.options.js';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* A Button Custom HTML Element.
|
|
7
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | `<button>`} element.
|
|
8
|
+
*
|
|
9
|
+
* @slot start - Content which can be provided before the button content
|
|
10
|
+
* @slot end - Content which can be provided after the button content
|
|
11
|
+
* @slot - The default slot for button content
|
|
12
|
+
* @csspart content - The button content container
|
|
13
|
+
*
|
|
5
14
|
* @public
|
|
6
15
|
*/
|
|
7
|
-
export declare class Button extends
|
|
16
|
+
export declare class Button extends FASTElement {
|
|
8
17
|
/**
|
|
9
|
-
*
|
|
18
|
+
* Indicates the styled appearance of the button.
|
|
10
19
|
*
|
|
11
20
|
* @public
|
|
12
21
|
* @remarks
|
|
13
|
-
* HTML Attribute: appearance
|
|
22
|
+
* HTML Attribute: `appearance`
|
|
14
23
|
*/
|
|
15
|
-
appearance?: ButtonAppearance
|
|
24
|
+
appearance?: ButtonAppearance;
|
|
16
25
|
/**
|
|
17
|
-
*
|
|
26
|
+
* Indicates the button should be focused when the page is loaded.
|
|
27
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
|
|
18
28
|
*
|
|
19
29
|
* @public
|
|
20
30
|
* @remarks
|
|
21
|
-
* HTML Attribute:
|
|
31
|
+
* HTML Attribute: `autofocus`
|
|
22
32
|
*/
|
|
23
|
-
|
|
33
|
+
autofocus: boolean;
|
|
24
34
|
/**
|
|
25
|
-
*
|
|
35
|
+
* Default slotted content.
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
defaultSlottedContent: HTMLElement[];
|
|
40
|
+
/**
|
|
41
|
+
* Sets the element's disabled state.
|
|
42
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled | `disabled`} attribute
|
|
26
43
|
*
|
|
27
44
|
* @public
|
|
28
45
|
* @remarks
|
|
29
|
-
* HTML Attribute:
|
|
46
|
+
* HTML Attribute: `disabled`
|
|
30
47
|
*/
|
|
31
|
-
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates that the button is focusable while disabled.
|
|
51
|
+
*
|
|
52
|
+
* @public
|
|
53
|
+
* @remarks
|
|
54
|
+
* HTML Attribute: `disabled-focusable`
|
|
55
|
+
*/
|
|
56
|
+
disabledFocusable: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the element's internal disabled state when the element is focusable while disabled.
|
|
59
|
+
*
|
|
60
|
+
* @param previous - the previous disabledFocusable value
|
|
61
|
+
* @param next - the current disabledFocusable value
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
disabledFocusableChanged(previous: boolean, next: boolean): void;
|
|
65
|
+
/**
|
|
66
|
+
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
67
|
+
*
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
protected elementInternals: ElementInternals;
|
|
71
|
+
/**
|
|
72
|
+
* The associated form element.
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
get form(): HTMLFormElement | null;
|
|
77
|
+
/**
|
|
78
|
+
* The URL that processes the form submission.
|
|
79
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formaction | `formaction`} attribute
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
* @remarks
|
|
83
|
+
* HTML Attribute: `formaction`
|
|
84
|
+
*/
|
|
85
|
+
formAction?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The form-associated flag.
|
|
88
|
+
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
static readonly formAssociated = true;
|
|
32
93
|
/**
|
|
33
|
-
* The
|
|
94
|
+
* The id of a form to associate the element to.
|
|
95
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#form | `form`} attribute
|
|
34
96
|
*
|
|
35
97
|
* @public
|
|
36
98
|
* @remarks
|
|
37
|
-
* HTML Attribute:
|
|
99
|
+
* HTML Attribute: `form`
|
|
100
|
+
*/
|
|
101
|
+
formAttribute?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The encoding type for the form submission.
|
|
104
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formenctype | `formenctype`} attribute
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
* @remarks
|
|
108
|
+
* HTML Attribute: `formenctype`
|
|
109
|
+
*/
|
|
110
|
+
formEnctype?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The HTTP method that the browser uses to submit the form.
|
|
113
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formmethod | `formmethod`} attribute
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
* @remarks
|
|
117
|
+
* HTML Attribute: `formmethod`
|
|
118
|
+
*/
|
|
119
|
+
formMethod?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Indicates that the form will not be validated when submitted.
|
|
122
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formnovalidate | `formnovalidate`} attribute
|
|
123
|
+
*
|
|
124
|
+
* @public
|
|
125
|
+
* @remarks
|
|
126
|
+
* HTML Attribute: `formnovalidate`
|
|
127
|
+
*/
|
|
128
|
+
formNoValidate?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The internal form submission fallback control.
|
|
131
|
+
*
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
private formSubmissionFallbackControl?;
|
|
135
|
+
/**
|
|
136
|
+
* The internal slot for the form submission fallback control.
|
|
137
|
+
*
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
private formSubmissionFallbackControlSlot?;
|
|
141
|
+
/**
|
|
142
|
+
* The target frame or window to open the form submission in.
|
|
143
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formtarget | `formtarget`} attribute
|
|
144
|
+
*
|
|
145
|
+
* @public
|
|
146
|
+
* @remarks
|
|
147
|
+
* HTML Attribute: `formtarget`
|
|
148
|
+
*/
|
|
149
|
+
formTarget?: ButtonFormTarget;
|
|
150
|
+
/**
|
|
151
|
+
* Indicates that the button should only display as an icon with no text content.
|
|
152
|
+
*
|
|
153
|
+
* @public
|
|
154
|
+
* @remarks
|
|
155
|
+
* HTML Attribute: `icon-only`
|
|
38
156
|
*/
|
|
39
157
|
iconOnly: boolean;
|
|
40
158
|
/**
|
|
41
|
-
*
|
|
159
|
+
* A reference to all associated label elements.
|
|
160
|
+
*
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
get labels(): ReadonlyArray<Node>;
|
|
164
|
+
/**
|
|
165
|
+
* The name of the element. This element's value will be surfaced during form submission under the provided name.
|
|
166
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name | `name`} attribute
|
|
42
167
|
*
|
|
43
168
|
* @public
|
|
44
169
|
* @remarks
|
|
45
|
-
* HTML Attribute:
|
|
170
|
+
* HTML Attribute: `name`
|
|
46
171
|
*/
|
|
47
|
-
|
|
48
|
-
protected disabledFocusableChanged(prev: boolean, next: boolean): void;
|
|
172
|
+
name?: string;
|
|
49
173
|
/**
|
|
50
|
-
*
|
|
174
|
+
* The shape of the button.
|
|
175
|
+
*
|
|
176
|
+
* @public
|
|
177
|
+
* @remarks
|
|
178
|
+
* HTML Attribute: `shape`
|
|
179
|
+
*/
|
|
180
|
+
shape?: ButtonShape;
|
|
181
|
+
/**
|
|
182
|
+
* The size of the button.
|
|
183
|
+
*
|
|
184
|
+
* @public
|
|
185
|
+
* @remarks
|
|
186
|
+
* HTML Attribute: `size`
|
|
187
|
+
*/
|
|
188
|
+
size?: ButtonSize;
|
|
189
|
+
/**
|
|
190
|
+
* The button type.
|
|
191
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type | `type`} attribute
|
|
192
|
+
*
|
|
193
|
+
* @public
|
|
194
|
+
* @remarks
|
|
195
|
+
* HTML Attribute: `type`
|
|
196
|
+
*/
|
|
197
|
+
type: ButtonType;
|
|
198
|
+
/**
|
|
199
|
+
* Removes the form submission fallback control when the type changes.
|
|
200
|
+
*
|
|
201
|
+
* @param previous - the previous type value
|
|
202
|
+
* @param next - the new type value
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
typeChanged(previous: ButtonType, next: ButtonType): void;
|
|
206
|
+
/**
|
|
207
|
+
* The value attribute.
|
|
208
|
+
*
|
|
209
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value | `value`} attribute
|
|
210
|
+
*
|
|
211
|
+
* @public
|
|
212
|
+
* @remarks
|
|
213
|
+
* HTML Attribute: `value`
|
|
51
214
|
*/
|
|
52
|
-
|
|
215
|
+
value?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Handles the button click event.
|
|
218
|
+
*
|
|
219
|
+
* @param e - The event object
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
clickHandler(e: Event): boolean | void;
|
|
53
223
|
connectedCallback(): void;
|
|
54
|
-
|
|
224
|
+
constructor();
|
|
225
|
+
/**
|
|
226
|
+
* This fallback creates a new slot, then creates a submit button to mirror the custom element's
|
|
227
|
+
* properties. The submit button is then appended to the slot and the form is submitted.
|
|
228
|
+
*
|
|
229
|
+
* @internal
|
|
230
|
+
* @privateRemarks
|
|
231
|
+
* This is a workaround until {@link https://github.com/WICG/webcomponents/issues/814 | WICG/webcomponents/issues/814} is resolved.
|
|
232
|
+
*/
|
|
233
|
+
private createAndInsertFormSubmissionFallbackControl;
|
|
234
|
+
/**
|
|
235
|
+
* Invoked when a connected component's form or fieldset has its disabled state changed.
|
|
236
|
+
*
|
|
237
|
+
* @param disabled - the disabled value of the form / fieldset
|
|
238
|
+
*
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
241
|
+
formDisabledCallback(disabled: boolean): void;
|
|
242
|
+
/**
|
|
243
|
+
* Handles keypress events for the button.
|
|
244
|
+
*
|
|
245
|
+
* @param e - the keyboard event
|
|
246
|
+
* @returns - the return value of the click handler
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
250
|
+
/**
|
|
251
|
+
* Presses the button.
|
|
252
|
+
*
|
|
253
|
+
* @public
|
|
254
|
+
*/
|
|
255
|
+
protected press(): void;
|
|
256
|
+
/**
|
|
257
|
+
* Resets the associated form.
|
|
258
|
+
*
|
|
259
|
+
* @public
|
|
260
|
+
*/
|
|
261
|
+
resetForm(): void;
|
|
262
|
+
/**
|
|
263
|
+
* Submits the associated form.
|
|
264
|
+
*
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
private submitForm;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* @internal
|
|
271
|
+
* @privateRemarks
|
|
272
|
+
* Mark internal because exporting class and interface of the same name confuses API documenter.
|
|
273
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
274
|
+
*/
|
|
275
|
+
export interface Button extends StartEnd {
|
|
55
276
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Button } from './button.js';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
3
|
+
* The definition for the Fluent Button component.
|
|
5
4
|
*
|
|
6
5
|
* @public
|
|
7
6
|
* @remarks
|
|
8
|
-
* HTML Element:
|
|
7
|
+
* HTML Element: `<fluent-button>`
|
|
9
8
|
*/
|
|
10
9
|
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof Button>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ValuesOf } from '
|
|
1
|
+
import { StartEndOptions } from '../patterns/index.js';
|
|
2
|
+
import type { ValuesOf } from '../utils/index.js';
|
|
3
|
+
import type { Button } from './button.js';
|
|
3
4
|
/**
|
|
4
5
|
* ButtonAppearance constants
|
|
5
6
|
* @public
|
|
@@ -44,4 +45,39 @@ export declare const ButtonSize: {
|
|
|
44
45
|
* @public
|
|
45
46
|
*/
|
|
46
47
|
export declare type ButtonSize = ValuesOf<typeof ButtonSize>;
|
|
47
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Button type values.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export declare const ButtonType: {
|
|
54
|
+
readonly submit: "submit";
|
|
55
|
+
readonly reset: "reset";
|
|
56
|
+
readonly button: "button";
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Type for button type values.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export declare type ButtonType = ValuesOf<typeof ButtonType>;
|
|
64
|
+
/**
|
|
65
|
+
* Button configuration options.
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export declare type ButtonOptions = StartEndOptions<Button>;
|
|
69
|
+
/**
|
|
70
|
+
* Button `formtarget` attribute values.
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare const ButtonFormTarget: {
|
|
74
|
+
readonly blank: "_blank";
|
|
75
|
+
readonly self: "_self";
|
|
76
|
+
readonly parent: "_parent";
|
|
77
|
+
readonly top: "_top";
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Types for the `formtarget` attribute values.
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare type ButtonFormTarget = ValuesOf<typeof ButtonFormTarget>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { Button } from './button.js';
|
|
3
|
+
import { ButtonOptions } from './button.options.js';
|
|
4
|
+
/**
|
|
5
|
+
* Generates a template for the Button component.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare function buttonTemplate<T extends Button>(options?: ButtonOptions): ElementViewTemplate<T>;
|
|
3
10
|
/**
|
|
4
11
|
* The template for the Button component.
|
|
12
|
+
*
|
|
5
13
|
* @public
|
|
6
14
|
*/
|
|
7
15
|
export declare const template: ElementViewTemplate<Button>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Button } from './button.js';
|
|
2
|
+
export { ButtonAppearance, ButtonFormTarget, ButtonShape, ButtonSize, ButtonType, ButtonOptions, } from './button.options.js';
|
|
3
3
|
export { template as ButtonTemplate } from './button.template.js';
|
|
4
4
|
export { styles as ButtonStyles } from './button.styles.js';
|
|
5
5
|
export { definition as ButtonDefinition } from './button.definition.js';
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { StaticallyComposableHTML } from '../utils/template-helpers.js';
|
|
2
|
+
import { FormAssociatedCheckbox } from './checkbox.form-associated.js';
|
|
2
3
|
import { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.options.js';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Checkbox configuration options
|
|
5
6
|
* @public
|
|
6
7
|
*/
|
|
7
|
-
export declare
|
|
8
|
+
export declare type CheckboxOptions = {
|
|
9
|
+
checkedIndicator?: StaticallyComposableHTML<Checkbox>;
|
|
10
|
+
indeterminateIndicator?: StaticallyComposableHTML<Checkbox>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A Checkbox Custom HTML Element.
|
|
14
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#checkbox | ARIA checkbox }.
|
|
15
|
+
*
|
|
16
|
+
* @slot checked-indicator - The checked indicator
|
|
17
|
+
* @slot indeterminate-indicator - The indeterminate indicator
|
|
18
|
+
* @slot - The default slot for the label
|
|
19
|
+
* @csspart control - The element representing the visual checkbox control
|
|
20
|
+
* @csspart label - The label
|
|
21
|
+
* @fires change - Emits a custom change event when the checked state changes
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare class Checkbox extends FormAssociatedCheckbox {
|
|
8
26
|
/**
|
|
9
27
|
* Sets shape of the checkbox.
|
|
10
28
|
*
|
|
@@ -32,4 +50,29 @@ export declare class Checkbox extends FASTCheckbox {
|
|
|
32
50
|
* HTML Attribute: label-position
|
|
33
51
|
*/
|
|
34
52
|
labelPosition?: CheckboxLabelPosition;
|
|
53
|
+
/**
|
|
54
|
+
* The element's value to be included in form submission when checked.
|
|
55
|
+
* Default to "on" to reach parity with input[type="checkbox"]
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
initialValue: string;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
defaultSlottedNodes: Node[];
|
|
64
|
+
/**
|
|
65
|
+
* The indeterminate state of the control
|
|
66
|
+
*/
|
|
67
|
+
indeterminate: boolean;
|
|
68
|
+
constructor();
|
|
69
|
+
private toggleChecked;
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
keypressHandler: (e: KeyboardEvent) => void;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
clickHandler: (e: MouseEvent) => void;
|
|
35
78
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { CheckableFormAssociated } from '../form-associated/form-associated.js';
|
|
3
|
+
declare class _Checkbox extends FASTElement {
|
|
4
|
+
}
|
|
5
|
+
interface _Checkbox extends CheckableFormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedCheckbox_base: typeof _Checkbox;
|
|
8
|
+
/**
|
|
9
|
+
* @beta
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormAssociatedCheckbox extends FormAssociatedCheckbox_base {
|
|
12
|
+
proxy: HTMLInputElement;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { Checkbox } from './checkbox.js';
|
|
2
|
+
import type { Checkbox, CheckboxOptions } from './checkbox.js';
|
|
3
|
+
/**
|
|
4
|
+
* Template for the Checkbox component
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function checkboxTemplate<T extends Checkbox>(options?: CheckboxOptions): ElementViewTemplate<T>;
|
|
3
8
|
/**
|
|
4
9
|
* Template for the Checkbox component
|
|
5
10
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Checkbox, CheckboxOptions } from './checkbox.js';
|
|
2
|
+
export { CheckboxLabelPosition, CheckboxShape, CheckboxSize } from './checkbox.options.js';
|
|
3
3
|
export { definition as CheckboxDefinition } from './checkbox.definition.js';
|
|
4
4
|
export { template as CheckboxTemplate } from './checkbox.template.js';
|
|
5
5
|
export { styles as CheckboxStyles } from './checkbox.styles.js';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { CompoundButton } from './compound-button.js';
|
|
2
2
|
/**
|
|
3
|
-
* The Fluent Compound Button Element. Implements {@link @microsoft/fast-foundation#Button },
|
|
4
|
-
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
5
|
-
*
|
|
6
3
|
* @public
|
|
7
4
|
* @remarks
|
|
8
5
|
* HTML Element: \<fluent-comopund-button\>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ButtonOptions } from '
|
|
2
|
-
import type { ValuesOf } from '
|
|
1
|
+
import type { ButtonOptions } from '../button/button.options.js';
|
|
2
|
+
import type { ValuesOf } from '../utils/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Compound Button Appearance constants
|
|
5
5
|
* @public
|
|
@@ -9,6 +9,10 @@ export declare const CompoundButtonAppearance: {
|
|
|
9
9
|
readonly outline: "outline";
|
|
10
10
|
readonly subtle: "subtle";
|
|
11
11
|
readonly secondary: "secondary";
|
|
12
|
+
/**
|
|
13
|
+
* A Compound Button can be secondary, primary, outline, subtle, transparent
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
12
16
|
readonly transparent: "transparent";
|
|
13
17
|
};
|
|
14
18
|
/**
|
|
@@ -36,10 +40,6 @@ export declare type CompoundButtonShape = ValuesOf<typeof CompoundButtonShape>;
|
|
|
36
40
|
*/
|
|
37
41
|
export declare const CompoundButtonSize: {
|
|
38
42
|
readonly small: "small";
|
|
39
|
-
/**
|
|
40
|
-
* A Compound Button can be on of several preset sizes.
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
43
|
readonly medium: "medium";
|
|
44
44
|
readonly large: "large";
|
|
45
45
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { CompoundButton } from './compound-button.js';
|
|
2
|
+
export { CompoundButtonAppearance, CompoundButtonShape, CompoundButtonSize } from './compound-button.options.js';
|
|
3
3
|
export { template as CompoundButtonTemplate } from './compound-button.template.js';
|
|
4
4
|
export { styles as CompoundButtonStyles } from './compound-button.styles.js';
|
|
5
5
|
export { definition as CompoundButtonDefinition } from './compound-button.definition.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { StartEnd } from '
|
|
2
|
+
import { StartEnd } from '../patterns/index.js';
|
|
3
3
|
import { CounterBadgeAppearance, CounterBadgeColor, CounterBadgeShape, CounterBadgeSize } from './counter-badge.options.js';
|
|
4
4
|
/**
|
|
5
5
|
* The base class used for constructing a fluent-badge custom element
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { CounterBadge } from './counter-badge.js';
|
|
2
2
|
/**
|
|
3
|
-
* The Fluent CounterBadge Element. Implements {@link @microsoft/fast-foundation#Badge },
|
|
4
|
-
* {@link @microsoft/fast-foundation#badgeTemplate}
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
3
|
* @public
|
|
8
4
|
* @remarks
|
|
9
5
|
* HTML Element: \<fluent-counter-badge\>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { CounterBadge } from './counter-badge.js';
|
|
2
|
+
export { CounterBadgeAppearance, CounterBadgeColor, CounterBadgeShape, CounterBadgeSize, } from './counter-badge.options.js';
|
|
3
3
|
export { template as CounterBadgeTemplate } from './counter-badge.template.js';
|
|
4
4
|
export { styles as CounterBadgeStyles } from './counter-badge.styles.js';
|
|
5
5
|
export { definition as CounterBadgeDefinition } from './counter-badge.definition.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|