@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
package/dist/web-components.d.ts
CHANGED
|
@@ -1,53 +1,69 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { DividerOrientation } from '@microsoft/fast-foundation/divider.js';
|
|
5
|
-
import { DividerRole } from '@microsoft/fast-foundation/divider.js';
|
|
1
|
+
import type { Constructable } from '@microsoft/fast-element';
|
|
2
|
+
import { CSSDirective } from '@microsoft/fast-element';
|
|
3
|
+
import { Direction } from '@microsoft/fast-web-utilities';
|
|
6
4
|
import { ElementStyles } from '@microsoft/fast-element';
|
|
7
5
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
8
|
-
import { FASTAccordion } from '@microsoft/fast-foundation/accordion.js';
|
|
9
|
-
import { FASTAccordionItem } from '@microsoft/fast-foundation/accordion-item.js';
|
|
10
|
-
import { FASTAnchor } from '@microsoft/fast-foundation/anchor.js';
|
|
11
|
-
import { FASTButton } from '@microsoft/fast-foundation/button.js';
|
|
12
|
-
import { FASTCheckbox } from '@microsoft/fast-foundation/checkbox.js';
|
|
13
|
-
import { FASTDivider } from '@microsoft/fast-foundation/divider.js';
|
|
14
6
|
import { FASTElement } from '@microsoft/fast-element';
|
|
15
7
|
import { FASTElementDefinition } from '@microsoft/fast-element';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { FASTRadioGroup } from '@microsoft/fast-foundation/radio-group.js';
|
|
22
|
-
import { FASTSlider } from '@microsoft/fast-foundation/slider.js';
|
|
23
|
-
import { FASTSwitch } from '@microsoft/fast-foundation/switch.js';
|
|
24
|
-
import { FASTTab } from '@microsoft/fast-foundation/tab.js';
|
|
25
|
-
import { FASTTabPanel } from '@microsoft/fast-foundation/tab-panel.js';
|
|
26
|
-
import { FASTTabs } from '@microsoft/fast-foundation/tabs.js';
|
|
27
|
-
import { FASTTextField } from '@microsoft/fast-foundation/text-field.js';
|
|
28
|
-
import { MenuItemRole } from '@microsoft/fast-foundation/menu-item.js';
|
|
29
|
-
import { RadioGroupOrientation } from '@microsoft/fast-foundation/radio-group.js';
|
|
30
|
-
import { SliderOrientation } from '@microsoft/fast-foundation/slider.js';
|
|
31
|
-
import { StartEnd } from '@microsoft/fast-foundation/patterns.js';
|
|
32
|
-
import { StartEndOptions } from '@microsoft/fast-foundation/patterns.js';
|
|
33
|
-
import type { StaticallyComposableHTML } from '@microsoft/fast-foundation/utilities.js';
|
|
34
|
-
import { TabsOrientation } from '@microsoft/fast-foundation/tabs.js';
|
|
35
|
-
import { TextFieldType as TextInputType } from '@microsoft/fast-foundation/text-field.js';
|
|
8
|
+
import type { HostBehavior } from '@microsoft/fast-element';
|
|
9
|
+
import type { HostController } from '@microsoft/fast-element';
|
|
10
|
+
import { HTMLDirective } from '@microsoft/fast-element';
|
|
11
|
+
import { Orientation } from '@microsoft/fast-web-utilities';
|
|
12
|
+
import type { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
36
13
|
import type { Theme } from '@fluentui/tokens';
|
|
37
|
-
import
|
|
14
|
+
import { ViewTemplate } from '@microsoft/fast-element';
|
|
38
15
|
|
|
39
16
|
/**
|
|
40
|
-
*
|
|
17
|
+
* An Accordion Custom HTML Element
|
|
18
|
+
* Implements {@link https://www.w3.org/TR/wai-aria-practices-1.1/#accordion | ARIA Accordion}.
|
|
19
|
+
*
|
|
20
|
+
* @fires change - Fires a custom 'change' event when the active item changes
|
|
21
|
+
* @csspart item - The slot for the accordion items
|
|
41
22
|
* @public
|
|
42
23
|
*/
|
|
43
|
-
export declare class Accordion extends
|
|
24
|
+
export declare class Accordion extends FASTElement {
|
|
25
|
+
/**
|
|
26
|
+
* Controls the expand mode of the Accordion, either allowing
|
|
27
|
+
* single or multiple item expansion.
|
|
28
|
+
* @public
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* HTML attribute: expand-mode
|
|
32
|
+
*/
|
|
33
|
+
expandmode: AccordionExpandMode;
|
|
34
|
+
expandmodeChanged(prev: AccordionExpandMode, next: AccordionExpandMode): void;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
slottedAccordionItems: HTMLElement[];
|
|
39
|
+
protected accordionItems: Element[];
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
slottedAccordionItemsChanged(oldValue: HTMLElement[], newValue: HTMLElement[]): void;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
handleChange(source: any, propertyName: string): void;
|
|
48
|
+
private activeid;
|
|
49
|
+
private activeItemIndex;
|
|
50
|
+
private accordionIds;
|
|
51
|
+
private change;
|
|
52
|
+
private findExpandedItem;
|
|
53
|
+
private setItems;
|
|
54
|
+
private setSingleExpandMode;
|
|
55
|
+
private removeItemListeners;
|
|
56
|
+
private activeItemChange;
|
|
57
|
+
private handleExpandedChange;
|
|
58
|
+
private getItemIds;
|
|
59
|
+
private isSingleExpandMode;
|
|
60
|
+
private handleItemKeyDown;
|
|
61
|
+
private handleItemFocus;
|
|
62
|
+
private adjust;
|
|
63
|
+
private focusItem;
|
|
44
64
|
}
|
|
45
65
|
|
|
46
66
|
/**
|
|
47
|
-
* The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion },
|
|
48
|
-
* {@link @microsoft/fast-foundation#accordionTemplate}
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
67
|
* @public
|
|
52
68
|
* @remarks
|
|
53
69
|
* HTML Element: \<fluent-accordion\>
|
|
@@ -55,9 +71,72 @@ export declare class Accordion extends FASTAccordion {
|
|
|
55
71
|
export declare const accordionDefinition: FASTElementDefinition<typeof Accordion>;
|
|
56
72
|
|
|
57
73
|
/**
|
|
58
|
-
* @
|
|
74
|
+
* Expand mode for {@link FASTAccordion}
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare const AccordionExpandMode: {
|
|
78
|
+
readonly single: "single";
|
|
79
|
+
readonly multi: "multi";
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Type for the {@link FASTAccordion} Expand Mode
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @slot start - Content which can be provided between the heading and the icon
|
|
91
|
+
* @slot end - Content which can be provided between the start slot and icon
|
|
92
|
+
* @slot heading - Content which serves as the accordion item heading and text of the expand button
|
|
93
|
+
* @slot - The default slot for accordion item content
|
|
94
|
+
* @slot expanded-icon - The expanded icon
|
|
95
|
+
* @slot collapsed-icon - The collapsed icon
|
|
96
|
+
* @fires change - Fires a custom 'change' event when the button is invoked
|
|
97
|
+
* @csspart heading - Wraps the button
|
|
98
|
+
* @csspart button - The button which serves to invoke the item
|
|
99
|
+
* @csspart heading-content - Wraps the slot for the heading content within the button
|
|
100
|
+
* @csspart icon - The icon container
|
|
101
|
+
* @csspart region - The wrapper for the accordion item content
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
59
104
|
*/
|
|
60
|
-
export declare class AccordionItem extends
|
|
105
|
+
export declare class AccordionItem extends FASTElement {
|
|
106
|
+
/**
|
|
107
|
+
* Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the
|
|
108
|
+
* heading element.
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue 2
|
|
111
|
+
* @public
|
|
112
|
+
* @remarks
|
|
113
|
+
* HTML attribute: heading-level
|
|
114
|
+
*/
|
|
115
|
+
headinglevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
116
|
+
/**
|
|
117
|
+
* Expands or collapses the item.
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
* @remarks
|
|
121
|
+
* HTML attribute: expanded
|
|
122
|
+
*/
|
|
123
|
+
expanded: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Disables an accordion item
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
* @remarks
|
|
129
|
+
* HTML attribute: disabled
|
|
130
|
+
*/
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* The item ID
|
|
134
|
+
*
|
|
135
|
+
* @public
|
|
136
|
+
* @remarks
|
|
137
|
+
* HTML Attribute: id
|
|
138
|
+
*/
|
|
139
|
+
id: string;
|
|
61
140
|
/**
|
|
62
141
|
* Defines accordion header font size.
|
|
63
142
|
*
|
|
@@ -84,12 +163,26 @@ export declare class AccordionItem extends FASTAccordionItem {
|
|
|
84
163
|
* HTML Attribute: expandIconPosition
|
|
85
164
|
*/
|
|
86
165
|
expandIconPosition?: AccordionItemExpandIconPosition;
|
|
166
|
+
/**
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
169
|
+
expandbutton: HTMLElement;
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
clickHandler: (e: MouseEvent) => void;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Mark internal because exporting class and interface of the same name
|
|
178
|
+
* confuses API documenter.
|
|
179
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
export declare interface AccordionItem extends StartEnd {
|
|
87
183
|
}
|
|
88
184
|
|
|
89
185
|
/**
|
|
90
|
-
* The Fluent AccordionItem Element. Implements {@link @microsoft/fast-foundation#AccordionItem },
|
|
91
|
-
* {@link @microsoft/fast-foundation#accordionItemTemplate}
|
|
92
|
-
*
|
|
93
186
|
*
|
|
94
187
|
* @public
|
|
95
188
|
* @remarks
|
|
@@ -111,6 +204,15 @@ export declare const AccordionItemExpandIconPosition: {
|
|
|
111
204
|
*/
|
|
112
205
|
export declare type AccordionItemExpandIconPosition = ValuesOf<typeof AccordionItemExpandIconPosition>;
|
|
113
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Accordion Item configuration options
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
export declare type AccordionItemOptions = StartEndOptions<AccordionItem> & {
|
|
212
|
+
expandedIcon?: StaticallyComposableHTML<AccordionItem>;
|
|
213
|
+
collapsedIcon?: StaticallyComposableHTML<AccordionItem>;
|
|
214
|
+
};
|
|
215
|
+
|
|
114
216
|
/**
|
|
115
217
|
* An Accordion Item header font size can be small, medium, large, and extra-large
|
|
116
218
|
*/
|
|
@@ -140,10 +242,85 @@ export declare const accordionStyles: ElementStyles;
|
|
|
140
242
|
export declare const accordionTemplate: ElementViewTemplate<Accordion>;
|
|
141
243
|
|
|
142
244
|
/**
|
|
143
|
-
*
|
|
245
|
+
* An Anchor Custom HTML Element.
|
|
246
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
|
247
|
+
*
|
|
248
|
+
* @slot start - Content which can be provided before the anchor content
|
|
249
|
+
* @slot end - Content which can be provided after the anchor content
|
|
250
|
+
* @slot - The default slot for anchor content
|
|
251
|
+
* @csspart control - The anchor element
|
|
252
|
+
* @csspart content - The element wrapping anchor content
|
|
253
|
+
*
|
|
144
254
|
* @public
|
|
145
255
|
*/
|
|
146
|
-
export declare class AnchorButton extends
|
|
256
|
+
export declare class AnchorButton extends FASTElement {
|
|
257
|
+
/**
|
|
258
|
+
* Prompts the user to save the linked URL. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
259
|
+
* @public
|
|
260
|
+
* @remarks
|
|
261
|
+
* HTML Attribute: download
|
|
262
|
+
*/
|
|
263
|
+
download: string;
|
|
264
|
+
/**
|
|
265
|
+
* The URL the hyperlink references. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
266
|
+
* @public
|
|
267
|
+
* @remarks
|
|
268
|
+
* HTML Attribute: href
|
|
269
|
+
*/
|
|
270
|
+
href: string;
|
|
271
|
+
/**
|
|
272
|
+
* Hints at the language of the referenced resource. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
273
|
+
* @public
|
|
274
|
+
* @remarks
|
|
275
|
+
* HTML Attribute: hreflang
|
|
276
|
+
*/
|
|
277
|
+
hreflang: string;
|
|
278
|
+
/**
|
|
279
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
280
|
+
* @public
|
|
281
|
+
* @remarks
|
|
282
|
+
* HTML Attribute: ping
|
|
283
|
+
*/
|
|
284
|
+
ping: string;
|
|
285
|
+
/**
|
|
286
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
287
|
+
* @public
|
|
288
|
+
* @remarks
|
|
289
|
+
* HTML Attribute: referrerpolicy
|
|
290
|
+
*/
|
|
291
|
+
referrerpolicy: string;
|
|
292
|
+
/**
|
|
293
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
294
|
+
* @public
|
|
295
|
+
* @remarks
|
|
296
|
+
* HTML Attribute: rel
|
|
297
|
+
*/
|
|
298
|
+
rel: string;
|
|
299
|
+
/**
|
|
300
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
301
|
+
* @public
|
|
302
|
+
* @remarks
|
|
303
|
+
* HTML Attribute: target
|
|
304
|
+
*/
|
|
305
|
+
target: AnchorTarget;
|
|
306
|
+
/**
|
|
307
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
308
|
+
* @public
|
|
309
|
+
* @remarks
|
|
310
|
+
* HTML Attribute: type
|
|
311
|
+
*/
|
|
312
|
+
type: string;
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* Default slotted content
|
|
316
|
+
*
|
|
317
|
+
* @internal
|
|
318
|
+
*/
|
|
319
|
+
defaultSlottedContent: HTMLElement[];
|
|
320
|
+
/**
|
|
321
|
+
* References the root element
|
|
322
|
+
*/
|
|
323
|
+
control: HTMLAnchorElement;
|
|
147
324
|
/**
|
|
148
325
|
* The appearance the anchor button should have.
|
|
149
326
|
*
|
|
@@ -202,6 +379,15 @@ export declare class AnchorButton extends FASTAnchor {
|
|
|
202
379
|
disconnectedCallback(): void;
|
|
203
380
|
}
|
|
204
381
|
|
|
382
|
+
/**
|
|
383
|
+
* Mark internal because exporting class and interface of the same name
|
|
384
|
+
* confuses API documenter.
|
|
385
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
export declare interface AnchorButton extends StartEnd, DelegatesARIALink {
|
|
389
|
+
}
|
|
390
|
+
|
|
205
391
|
/**
|
|
206
392
|
* Anchor Button Appearance constants
|
|
207
393
|
* @public
|
|
@@ -221,16 +407,17 @@ export declare const AnchorButtonAppearance: {
|
|
|
221
407
|
export declare type AnchorButtonAppearance = ValuesOf<typeof AnchorButtonAppearance>;
|
|
222
408
|
|
|
223
409
|
/**
|
|
224
|
-
* The Fluent Anchor Button Element. Implements {@link @microsoft/fast-foundation#Anchor },
|
|
225
|
-
* {@link @microsoft/fast-foundation#anchorTemplate}
|
|
226
|
-
*
|
|
227
410
|
* @public
|
|
228
411
|
* @remarks
|
|
229
412
|
* HTML Element: \<fluent-anchor-button\>
|
|
230
413
|
*/
|
|
231
414
|
export declare const AnchorButtonDefinition: FASTElementDefinition<typeof AnchorButton>;
|
|
232
415
|
|
|
233
|
-
|
|
416
|
+
/**
|
|
417
|
+
* Anchor configuration options
|
|
418
|
+
* @public
|
|
419
|
+
*/
|
|
420
|
+
export declare type AnchorButtonOptions = StartEndOptions<AnchorButton>;
|
|
234
421
|
|
|
235
422
|
/**
|
|
236
423
|
* An Anchor Button can be square, circular or rounded.
|
|
@@ -270,6 +457,215 @@ export declare type AnchorButtonSize = ValuesOf<typeof AnchorButtonSize>;
|
|
|
270
457
|
*/
|
|
271
458
|
export declare const AnchorButtonTemplate: ElementViewTemplate<AnchorButton>;
|
|
272
459
|
|
|
460
|
+
/**
|
|
461
|
+
* Anchor target values.
|
|
462
|
+
*
|
|
463
|
+
* @public
|
|
464
|
+
*/
|
|
465
|
+
export declare const AnchorTarget: {
|
|
466
|
+
readonly _self: "_self";
|
|
467
|
+
readonly _blank: "_blank";
|
|
468
|
+
readonly _parent: "_parent";
|
|
469
|
+
readonly _top: "_top";
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Type for anchor target values.
|
|
474
|
+
*
|
|
475
|
+
* @public
|
|
476
|
+
*/
|
|
477
|
+
export declare type AnchorTarget = ValuesOf<typeof AnchorTarget>;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Some states and properties are applicable to all host language elements regardless of whether a role is applied.
|
|
481
|
+
* The following global states and properties are supported by all roles and by all base markup elements.
|
|
482
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#global_states}
|
|
483
|
+
*
|
|
484
|
+
* This is intended to be used as a mixin. Be sure you extend FASTElement.
|
|
485
|
+
*
|
|
486
|
+
* @public
|
|
487
|
+
*/
|
|
488
|
+
declare class ARIAGlobalStatesAndProperties {
|
|
489
|
+
/**
|
|
490
|
+
* Indicates whether assistive technologies will present all, or only parts of,
|
|
491
|
+
* the changed region based on the change notifications defined by the aria-relevant attribute.
|
|
492
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-atomic}
|
|
493
|
+
*
|
|
494
|
+
* @public
|
|
495
|
+
* @remarks
|
|
496
|
+
* HTML Attribute: aria-atomic
|
|
497
|
+
*/
|
|
498
|
+
ariaAtomic: 'true' | 'false' | string | null;
|
|
499
|
+
/**
|
|
500
|
+
* Indicates an element is being modified and that assistive technologies MAY want to wait
|
|
501
|
+
* until the modifications are complete before exposing them to the user.
|
|
502
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-busy}
|
|
503
|
+
*
|
|
504
|
+
* @public
|
|
505
|
+
* @remarks
|
|
506
|
+
* HTML Attribute: aria-busy
|
|
507
|
+
*/
|
|
508
|
+
ariaBusy: 'true' | 'false' | string | null;
|
|
509
|
+
/**
|
|
510
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
511
|
+
*
|
|
512
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-controls}
|
|
513
|
+
* @public
|
|
514
|
+
* @remarks
|
|
515
|
+
* HTML Attribute: aria-controls
|
|
516
|
+
*/
|
|
517
|
+
ariaControls: string | null;
|
|
518
|
+
/**
|
|
519
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
520
|
+
*
|
|
521
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-current}
|
|
522
|
+
* @public
|
|
523
|
+
* @remarks
|
|
524
|
+
* HTML Attribute: aria-current
|
|
525
|
+
*/
|
|
526
|
+
ariaCurrent: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | string | null;
|
|
527
|
+
/**
|
|
528
|
+
* Identifies the element (or elements) that describes the object.
|
|
529
|
+
*
|
|
530
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-describedby}
|
|
531
|
+
* @public
|
|
532
|
+
* @remarks
|
|
533
|
+
* HTML Attribute: aria-describedby
|
|
534
|
+
*/
|
|
535
|
+
ariaDescribedby: string | null;
|
|
536
|
+
/**
|
|
537
|
+
* Identifies the element that provides a detailed, extended description for the object.
|
|
538
|
+
*
|
|
539
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-details}
|
|
540
|
+
* @public
|
|
541
|
+
* @remarks
|
|
542
|
+
* HTML Attribute: aria-details
|
|
543
|
+
*/
|
|
544
|
+
ariaDetails: string | null;
|
|
545
|
+
/**
|
|
546
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
547
|
+
*
|
|
548
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-disabled}
|
|
549
|
+
* @public
|
|
550
|
+
* @remarks
|
|
551
|
+
* HTML Attribute: aria-disabled
|
|
552
|
+
*/
|
|
553
|
+
ariaDisabled: 'true' | 'false' | string | null;
|
|
554
|
+
/**
|
|
555
|
+
* Identifies the element that provides an error message for the object.
|
|
556
|
+
*
|
|
557
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage}
|
|
558
|
+
* @public
|
|
559
|
+
* @remarks
|
|
560
|
+
* HTML Attribute: aria-errormessage
|
|
561
|
+
*/
|
|
562
|
+
ariaErrormessage: string | null;
|
|
563
|
+
/**
|
|
564
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
565
|
+
* allows assistive technology to override the general default of reading in document source order.
|
|
566
|
+
*
|
|
567
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-flowto}
|
|
568
|
+
* @public
|
|
569
|
+
* @remarks
|
|
570
|
+
* HTML Attribute: aria-flowto
|
|
571
|
+
*/
|
|
572
|
+
ariaFlowto: string | null;
|
|
573
|
+
/**
|
|
574
|
+
* Indicates the availability and type of interactive popup element,
|
|
575
|
+
* such as menu or dialog, that can be triggered by an element.
|
|
576
|
+
*
|
|
577
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup}
|
|
578
|
+
* @public
|
|
579
|
+
* @remarks
|
|
580
|
+
* HTML Attribute: aria-haspopup
|
|
581
|
+
*/
|
|
582
|
+
ariaHaspopup: 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | string | null;
|
|
583
|
+
/**
|
|
584
|
+
* Indicates whether the element is exposed to an accessibility API
|
|
585
|
+
*
|
|
586
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-hidden}
|
|
587
|
+
* @public
|
|
588
|
+
* @remarks
|
|
589
|
+
* HTML Attribute: aria-hidden
|
|
590
|
+
*/
|
|
591
|
+
ariaHidden: 'false' | 'true' | string | null;
|
|
592
|
+
/**
|
|
593
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
594
|
+
*
|
|
595
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-invalid}
|
|
596
|
+
* @public
|
|
597
|
+
* @remarks
|
|
598
|
+
* HTML Attribute: aria-invalid
|
|
599
|
+
*/
|
|
600
|
+
ariaInvalid: 'false' | 'true' | 'grammar' | 'spelling' | string | null;
|
|
601
|
+
/**
|
|
602
|
+
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
|
|
603
|
+
*
|
|
604
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-keyshortcuts}
|
|
605
|
+
* @public
|
|
606
|
+
* @remarks
|
|
607
|
+
* HTML Attribute: aria-keyshortcuts
|
|
608
|
+
*/
|
|
609
|
+
ariaKeyshortcuts: string | null;
|
|
610
|
+
/**
|
|
611
|
+
* Defines a string value that labels the current element.
|
|
612
|
+
*
|
|
613
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-label}
|
|
614
|
+
* @public
|
|
615
|
+
* @remarks
|
|
616
|
+
* HTML Attribute: aria-label
|
|
617
|
+
*/
|
|
618
|
+
ariaLabel: string | null;
|
|
619
|
+
/**
|
|
620
|
+
* Identifies the element (or elements) that labels the current element.
|
|
621
|
+
*
|
|
622
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby}
|
|
623
|
+
* @public
|
|
624
|
+
* @remarks
|
|
625
|
+
* HTML Attribute: aria-labelledby
|
|
626
|
+
*/
|
|
627
|
+
ariaLabelledby: string | null;
|
|
628
|
+
/**
|
|
629
|
+
* Indicates that an element will be updated, and describes the types of updates the user agents,
|
|
630
|
+
* assistive technologies, and user can expect from the live region.
|
|
631
|
+
*
|
|
632
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-live}
|
|
633
|
+
* @public
|
|
634
|
+
* @remarks
|
|
635
|
+
* HTML Attribute: aria-live
|
|
636
|
+
*/
|
|
637
|
+
ariaLive: 'assertive' | 'off' | 'polite' | string | null;
|
|
638
|
+
/**
|
|
639
|
+
* Identifies an element (or elements) in order to define a visual,
|
|
640
|
+
* functional, or contextual parent/child relationship between DOM elements
|
|
641
|
+
* where the DOM hierarchy cannot be used to represent the relationship.
|
|
642
|
+
*
|
|
643
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-owns}
|
|
644
|
+
* @public
|
|
645
|
+
* @remarks
|
|
646
|
+
* HTML Attribute: aria-owns
|
|
647
|
+
*/
|
|
648
|
+
ariaOwns: string | null;
|
|
649
|
+
/**
|
|
650
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
651
|
+
*
|
|
652
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-relevant}
|
|
653
|
+
* @public
|
|
654
|
+
* @remarks
|
|
655
|
+
* HTML Attribute: aria-relevant
|
|
656
|
+
*/
|
|
657
|
+
ariaRelevant: 'additions' | 'additions text' | 'all' | 'removals' | 'text' | string | null;
|
|
658
|
+
/**
|
|
659
|
+
* Defines a human-readable, author-localized description for the role of an element.
|
|
660
|
+
*
|
|
661
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription}
|
|
662
|
+
* @public
|
|
663
|
+
* @remarks
|
|
664
|
+
* HTML Attribute: aria-roledescription
|
|
665
|
+
*/
|
|
666
|
+
ariaRoledescription: string | null;
|
|
667
|
+
}
|
|
668
|
+
|
|
273
669
|
/**
|
|
274
670
|
* The base class used for constructing a fluent-avatar custom element
|
|
275
671
|
* @public
|
|
@@ -622,9 +1018,6 @@ export declare const BadgeColor: {
|
|
|
622
1018
|
export declare type BadgeColor = ValuesOf<typeof BadgeColor>;
|
|
623
1019
|
|
|
624
1020
|
/**
|
|
625
|
-
* The Fluent Badge Element. Implements {@link @microsoft/fast-foundation#Badge },
|
|
626
|
-
* {@link @microsoft/fast-foundation#badgeTemplate}
|
|
627
|
-
*
|
|
628
1021
|
*
|
|
629
1022
|
* @public
|
|
630
1023
|
* @remarks
|
|
@@ -632,13 +1025,6 @@ export declare type BadgeColor = ValuesOf<typeof BadgeColor>;
|
|
|
632
1025
|
*/
|
|
633
1026
|
export declare const BadgeDefinition: FASTElementDefinition<typeof Badge>;
|
|
634
1027
|
|
|
635
|
-
/**
|
|
636
|
-
* @internal - marking as internal update when Badge PR for start/end is in
|
|
637
|
-
*/
|
|
638
|
-
export declare type BadgeOptions = StartEndOptions<Badge> & {
|
|
639
|
-
defaultContent?: StaticallyComposableHTML;
|
|
640
|
-
};
|
|
641
|
-
|
|
642
1028
|
/**
|
|
643
1029
|
* A Badge can be square, circular or rounded.
|
|
644
1030
|
* @public
|
|
@@ -681,70 +1067,420 @@ export declare const BadgeStyles: ElementStyles;
|
|
|
681
1067
|
|
|
682
1068
|
export declare const BadgeTemplate: ElementViewTemplate<Badge>;
|
|
683
1069
|
|
|
684
|
-
export declare const borderRadiusCircular: CSSDesignToken<string>;
|
|
685
|
-
|
|
686
|
-
export declare const borderRadiusLarge: CSSDesignToken<string>;
|
|
687
|
-
|
|
688
|
-
export declare const borderRadiusMedium: CSSDesignToken<string>;
|
|
689
|
-
|
|
690
|
-
export declare const borderRadiusNone: CSSDesignToken<string>;
|
|
691
|
-
|
|
692
|
-
export declare const borderRadiusSmall: CSSDesignToken<string>;
|
|
693
|
-
|
|
694
|
-
export declare const borderRadiusXLarge: CSSDesignToken<string>;
|
|
695
|
-
|
|
696
1070
|
/**
|
|
697
|
-
*
|
|
1071
|
+
* A base class for progress components.
|
|
698
1072
|
* @public
|
|
699
1073
|
*/
|
|
700
|
-
|
|
1074
|
+
declare class BaseProgress extends FASTElement {
|
|
701
1075
|
/**
|
|
702
|
-
* The
|
|
703
|
-
*
|
|
1076
|
+
* The value of the progress
|
|
704
1077
|
* @public
|
|
705
1078
|
* @remarks
|
|
706
|
-
* HTML Attribute:
|
|
1079
|
+
* HTML Attribute: value
|
|
707
1080
|
*/
|
|
708
|
-
|
|
1081
|
+
value: number | null;
|
|
1082
|
+
protected valueChanged(): void;
|
|
709
1083
|
/**
|
|
710
|
-
* The
|
|
711
|
-
*
|
|
1084
|
+
* The minimum value
|
|
712
1085
|
* @public
|
|
713
1086
|
* @remarks
|
|
714
|
-
* HTML Attribute:
|
|
1087
|
+
* HTML Attribute: min
|
|
715
1088
|
*/
|
|
716
|
-
|
|
1089
|
+
min: number;
|
|
1090
|
+
protected minChanged(): void;
|
|
717
1091
|
/**
|
|
718
|
-
* The
|
|
719
|
-
*
|
|
1092
|
+
* The maximum value
|
|
720
1093
|
* @public
|
|
721
1094
|
* @remarks
|
|
722
|
-
* HTML Attribute:
|
|
1095
|
+
* HTML Attribute: max
|
|
723
1096
|
*/
|
|
724
|
-
|
|
1097
|
+
max: number;
|
|
1098
|
+
protected maxChanged(): void;
|
|
725
1099
|
/**
|
|
726
|
-
*
|
|
727
|
-
*
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
1100
|
+
* Indicates progress in %
|
|
1101
|
+
* @internal
|
|
1102
|
+
*/
|
|
1103
|
+
percentComplete: number;
|
|
1104
|
+
/**
|
|
1105
|
+
* @internal
|
|
1106
|
+
*/
|
|
1107
|
+
connectedCallback(): void;
|
|
1108
|
+
private updatePercentComplete;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
*
|
|
1113
|
+
* @class TabList component
|
|
1114
|
+
* @public
|
|
1115
|
+
*/
|
|
1116
|
+
declare class BaseTabs extends FASTElement {
|
|
1117
|
+
/**
|
|
1118
|
+
* The orientation
|
|
1119
|
+
* @public
|
|
1120
|
+
* @remarks
|
|
1121
|
+
* HTML Attribute: orientation
|
|
1122
|
+
*/
|
|
1123
|
+
orientation: TabsOrientation;
|
|
1124
|
+
/**
|
|
1125
|
+
* @internal
|
|
1126
|
+
*/
|
|
1127
|
+
orientationChanged(): void;
|
|
1128
|
+
/**
|
|
1129
|
+
* The id of the active tab
|
|
1130
|
+
*
|
|
1131
|
+
* @public
|
|
1132
|
+
* @remarks
|
|
1133
|
+
* HTML Attribute: activeid
|
|
1134
|
+
*/
|
|
1135
|
+
activeid: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* @internal
|
|
1138
|
+
*/
|
|
1139
|
+
activeidChanged(oldValue: string, newValue: string): void;
|
|
1140
|
+
/**
|
|
1141
|
+
* @internal
|
|
1142
|
+
*/
|
|
1143
|
+
tabs: HTMLElement[];
|
|
1144
|
+
/**
|
|
1145
|
+
* @internal
|
|
1146
|
+
*/
|
|
1147
|
+
tabsChanged(): void;
|
|
1148
|
+
/**
|
|
1149
|
+
* @internal
|
|
1150
|
+
*/
|
|
1151
|
+
tabpanels: HTMLElement[];
|
|
1152
|
+
/**
|
|
1153
|
+
* @internal
|
|
1154
|
+
*/
|
|
1155
|
+
tabpanelsChanged(): void;
|
|
1156
|
+
/**
|
|
1157
|
+
* A reference to the active tab
|
|
1158
|
+
* @public
|
|
1159
|
+
*/
|
|
1160
|
+
activetab: HTMLElement;
|
|
1161
|
+
private prevActiveTabIndex;
|
|
1162
|
+
private activeTabIndex;
|
|
1163
|
+
private tabIds;
|
|
1164
|
+
private tabpanelIds;
|
|
1165
|
+
private change;
|
|
1166
|
+
private isDisabledElement;
|
|
1167
|
+
private isHiddenElement;
|
|
1168
|
+
private isFocusableElement;
|
|
1169
|
+
private getActiveIndex;
|
|
1170
|
+
/**
|
|
1171
|
+
* Function that is invoked whenever the selected tab or the tab collection changes.
|
|
1172
|
+
*
|
|
1173
|
+
* @public
|
|
1174
|
+
*/
|
|
1175
|
+
protected setTabs(): void;
|
|
1176
|
+
private setTabPanels;
|
|
1177
|
+
private getTabIds;
|
|
1178
|
+
private getTabPanelIds;
|
|
1179
|
+
private setComponent;
|
|
1180
|
+
private handleTabClick;
|
|
1181
|
+
private isHorizontal;
|
|
1182
|
+
private handleTabKeyDown;
|
|
1183
|
+
/**
|
|
1184
|
+
* The adjust method for FASTTabs
|
|
1185
|
+
* @public
|
|
1186
|
+
* @remarks
|
|
1187
|
+
* This method allows the active index to be adjusted by numerical increments
|
|
1188
|
+
*/
|
|
1189
|
+
adjust(adjustment: number): void;
|
|
1190
|
+
private adjustForward;
|
|
1191
|
+
private adjustBackward;
|
|
1192
|
+
private moveToTabByIndex;
|
|
1193
|
+
private focusTab;
|
|
1194
|
+
/**
|
|
1195
|
+
* @internal
|
|
1196
|
+
*/
|
|
1197
|
+
connectedCallback(): void;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export declare const borderRadiusCircular = "var(--borderRadiusCircular)";
|
|
1201
|
+
|
|
1202
|
+
export declare const borderRadiusLarge = "var(--borderRadiusLarge)";
|
|
1203
|
+
|
|
1204
|
+
export declare const borderRadiusMedium = "var(--borderRadiusMedium)";
|
|
1205
|
+
|
|
1206
|
+
export declare const borderRadiusNone = "var(--borderRadiusNone)";
|
|
1207
|
+
|
|
1208
|
+
export declare const borderRadiusSmall = "var(--borderRadiusSmall)";
|
|
1209
|
+
|
|
1210
|
+
export declare const borderRadiusXLarge = "var(--borderRadiusXLarge)";
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* A Button Custom HTML Element.
|
|
1214
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | `<button>`} element.
|
|
1215
|
+
*
|
|
1216
|
+
* @slot start - Content which can be provided before the button content
|
|
1217
|
+
* @slot end - Content which can be provided after the button content
|
|
1218
|
+
* @slot - The default slot for button content
|
|
1219
|
+
* @csspart content - The button content container
|
|
1220
|
+
*
|
|
1221
|
+
* @public
|
|
1222
|
+
*/
|
|
1223
|
+
export declare class Button extends FASTElement {
|
|
1224
|
+
/**
|
|
1225
|
+
* Indicates the styled appearance of the button.
|
|
1226
|
+
*
|
|
1227
|
+
* @public
|
|
1228
|
+
* @remarks
|
|
1229
|
+
* HTML Attribute: `appearance`
|
|
1230
|
+
*/
|
|
1231
|
+
appearance?: ButtonAppearance;
|
|
1232
|
+
/**
|
|
1233
|
+
* Indicates the button should be focused when the page is loaded.
|
|
1234
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
|
|
1235
|
+
*
|
|
1236
|
+
* @public
|
|
1237
|
+
* @remarks
|
|
1238
|
+
* HTML Attribute: `autofocus`
|
|
1239
|
+
*/
|
|
1240
|
+
autofocus: boolean;
|
|
1241
|
+
/**
|
|
1242
|
+
* Default slotted content.
|
|
1243
|
+
*
|
|
1244
|
+
* @public
|
|
1245
|
+
*/
|
|
1246
|
+
defaultSlottedContent: HTMLElement[];
|
|
1247
|
+
/**
|
|
1248
|
+
* Sets the element's disabled state.
|
|
1249
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled | `disabled`} attribute
|
|
1250
|
+
*
|
|
1251
|
+
* @public
|
|
1252
|
+
* @remarks
|
|
1253
|
+
* HTML Attribute: `disabled`
|
|
1254
|
+
*/
|
|
1255
|
+
disabled?: boolean;
|
|
1256
|
+
/**
|
|
1257
|
+
* Indicates that the button is focusable while disabled.
|
|
1258
|
+
*
|
|
1259
|
+
* @public
|
|
1260
|
+
* @remarks
|
|
1261
|
+
* HTML Attribute: `disabled-focusable`
|
|
1262
|
+
*/
|
|
1263
|
+
disabledFocusable: boolean;
|
|
1264
|
+
/**
|
|
1265
|
+
* Sets the element's internal disabled state when the element is focusable while disabled.
|
|
1266
|
+
*
|
|
1267
|
+
* @param previous - the previous disabledFocusable value
|
|
1268
|
+
* @param next - the current disabledFocusable value
|
|
1269
|
+
* @internal
|
|
1270
|
+
*/
|
|
1271
|
+
disabledFocusableChanged(previous: boolean, next: boolean): void;
|
|
1272
|
+
/**
|
|
1273
|
+
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
1274
|
+
*
|
|
1275
|
+
* @internal
|
|
1276
|
+
*/
|
|
1277
|
+
protected elementInternals: ElementInternals;
|
|
1278
|
+
/**
|
|
1279
|
+
* The associated form element.
|
|
1280
|
+
*
|
|
1281
|
+
* @public
|
|
1282
|
+
*/
|
|
1283
|
+
get form(): HTMLFormElement | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* The URL that processes the form submission.
|
|
1286
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formaction | `formaction`} attribute
|
|
1287
|
+
*
|
|
1288
|
+
* @public
|
|
1289
|
+
* @remarks
|
|
1290
|
+
* HTML Attribute: `formaction`
|
|
1291
|
+
*/
|
|
1292
|
+
formAction?: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* The form-associated flag.
|
|
1295
|
+
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
|
|
1296
|
+
*
|
|
1297
|
+
* @public
|
|
1298
|
+
*/
|
|
1299
|
+
static readonly formAssociated = true;
|
|
1300
|
+
/**
|
|
1301
|
+
* The id of a form to associate the element to.
|
|
1302
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#form | `form`} attribute
|
|
1303
|
+
*
|
|
1304
|
+
* @public
|
|
1305
|
+
* @remarks
|
|
1306
|
+
* HTML Attribute: `form`
|
|
1307
|
+
*/
|
|
1308
|
+
formAttribute?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* The encoding type for the form submission.
|
|
1311
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formenctype | `formenctype`} attribute
|
|
1312
|
+
*
|
|
1313
|
+
* @public
|
|
1314
|
+
* @remarks
|
|
1315
|
+
* HTML Attribute: `formenctype`
|
|
1316
|
+
*/
|
|
1317
|
+
formEnctype?: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* The HTTP method that the browser uses to submit the form.
|
|
1320
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formmethod | `formmethod`} attribute
|
|
1321
|
+
*
|
|
1322
|
+
* @public
|
|
1323
|
+
* @remarks
|
|
1324
|
+
* HTML Attribute: `formmethod`
|
|
1325
|
+
*/
|
|
1326
|
+
formMethod?: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* Indicates that the form will not be validated when submitted.
|
|
1329
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formnovalidate | `formnovalidate`} attribute
|
|
1330
|
+
*
|
|
1331
|
+
* @public
|
|
1332
|
+
* @remarks
|
|
1333
|
+
* HTML Attribute: `formnovalidate`
|
|
1334
|
+
*/
|
|
1335
|
+
formNoValidate?: boolean;
|
|
1336
|
+
/**
|
|
1337
|
+
* The internal form submission fallback control.
|
|
1338
|
+
*
|
|
1339
|
+
* @internal
|
|
1340
|
+
*/
|
|
1341
|
+
private formSubmissionFallbackControl?;
|
|
1342
|
+
/**
|
|
1343
|
+
* The internal slot for the form submission fallback control.
|
|
1344
|
+
*
|
|
1345
|
+
* @internal
|
|
1346
|
+
*/
|
|
1347
|
+
private formSubmissionFallbackControlSlot?;
|
|
1348
|
+
/**
|
|
1349
|
+
* The target frame or window to open the form submission in.
|
|
1350
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#formtarget | `formtarget`} attribute
|
|
1351
|
+
*
|
|
1352
|
+
* @public
|
|
1353
|
+
* @remarks
|
|
1354
|
+
* HTML Attribute: `formtarget`
|
|
1355
|
+
*/
|
|
1356
|
+
formTarget?: ButtonFormTarget;
|
|
1357
|
+
/**
|
|
1358
|
+
* Indicates that the button should only display as an icon with no text content.
|
|
1359
|
+
*
|
|
1360
|
+
* @public
|
|
1361
|
+
* @remarks
|
|
1362
|
+
* HTML Attribute: `icon-only`
|
|
731
1363
|
*/
|
|
732
1364
|
iconOnly: boolean;
|
|
733
1365
|
/**
|
|
734
|
-
*
|
|
1366
|
+
* A reference to all associated label elements.
|
|
1367
|
+
*
|
|
1368
|
+
* @public
|
|
1369
|
+
*/
|
|
1370
|
+
get labels(): ReadonlyArray<Node>;
|
|
1371
|
+
/**
|
|
1372
|
+
* The name of the element. This element's value will be surfaced during form submission under the provided name.
|
|
1373
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name | `name`} attribute
|
|
735
1374
|
*
|
|
736
1375
|
* @public
|
|
737
1376
|
* @remarks
|
|
738
|
-
* HTML Attribute:
|
|
1377
|
+
* HTML Attribute: `name`
|
|
739
1378
|
*/
|
|
740
|
-
|
|
741
|
-
protected disabledFocusableChanged(prev: boolean, next: boolean): void;
|
|
1379
|
+
name?: string;
|
|
742
1380
|
/**
|
|
743
|
-
*
|
|
1381
|
+
* The shape of the button.
|
|
1382
|
+
*
|
|
1383
|
+
* @public
|
|
1384
|
+
* @remarks
|
|
1385
|
+
* HTML Attribute: `shape`
|
|
744
1386
|
*/
|
|
745
|
-
|
|
1387
|
+
shape?: ButtonShape;
|
|
1388
|
+
/**
|
|
1389
|
+
* The size of the button.
|
|
1390
|
+
*
|
|
1391
|
+
* @public
|
|
1392
|
+
* @remarks
|
|
1393
|
+
* HTML Attribute: `size`
|
|
1394
|
+
*/
|
|
1395
|
+
size?: ButtonSize;
|
|
1396
|
+
/**
|
|
1397
|
+
* The button type.
|
|
1398
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type | `type`} attribute
|
|
1399
|
+
*
|
|
1400
|
+
* @public
|
|
1401
|
+
* @remarks
|
|
1402
|
+
* HTML Attribute: `type`
|
|
1403
|
+
*/
|
|
1404
|
+
type: ButtonType;
|
|
1405
|
+
/**
|
|
1406
|
+
* Removes the form submission fallback control when the type changes.
|
|
1407
|
+
*
|
|
1408
|
+
* @param previous - the previous type value
|
|
1409
|
+
* @param next - the new type value
|
|
1410
|
+
* @internal
|
|
1411
|
+
*/
|
|
1412
|
+
typeChanged(previous: ButtonType, next: ButtonType): void;
|
|
1413
|
+
/**
|
|
1414
|
+
* The value attribute.
|
|
1415
|
+
*
|
|
1416
|
+
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value | `value`} attribute
|
|
1417
|
+
*
|
|
1418
|
+
* @public
|
|
1419
|
+
* @remarks
|
|
1420
|
+
* HTML Attribute: `value`
|
|
1421
|
+
*/
|
|
1422
|
+
value?: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* Handles the button click event.
|
|
1425
|
+
*
|
|
1426
|
+
* @param e - The event object
|
|
1427
|
+
* @internal
|
|
1428
|
+
*/
|
|
1429
|
+
clickHandler(e: Event): boolean | void;
|
|
746
1430
|
connectedCallback(): void;
|
|
747
|
-
|
|
1431
|
+
constructor();
|
|
1432
|
+
/**
|
|
1433
|
+
* This fallback creates a new slot, then creates a submit button to mirror the custom element's
|
|
1434
|
+
* properties. The submit button is then appended to the slot and the form is submitted.
|
|
1435
|
+
*
|
|
1436
|
+
* @internal
|
|
1437
|
+
* @privateRemarks
|
|
1438
|
+
* This is a workaround until {@link https://github.com/WICG/webcomponents/issues/814 | WICG/webcomponents/issues/814} is resolved.
|
|
1439
|
+
*/
|
|
1440
|
+
private createAndInsertFormSubmissionFallbackControl;
|
|
1441
|
+
/**
|
|
1442
|
+
* Invoked when a connected component's form or fieldset has its disabled state changed.
|
|
1443
|
+
*
|
|
1444
|
+
* @param disabled - the disabled value of the form / fieldset
|
|
1445
|
+
*
|
|
1446
|
+
* @internal
|
|
1447
|
+
*/
|
|
1448
|
+
formDisabledCallback(disabled: boolean): void;
|
|
1449
|
+
/**
|
|
1450
|
+
* Handles keypress events for the button.
|
|
1451
|
+
*
|
|
1452
|
+
* @param e - the keyboard event
|
|
1453
|
+
* @returns - the return value of the click handler
|
|
1454
|
+
* @public
|
|
1455
|
+
*/
|
|
1456
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
1457
|
+
/**
|
|
1458
|
+
* Presses the button.
|
|
1459
|
+
*
|
|
1460
|
+
* @public
|
|
1461
|
+
*/
|
|
1462
|
+
protected press(): void;
|
|
1463
|
+
/**
|
|
1464
|
+
* Resets the associated form.
|
|
1465
|
+
*
|
|
1466
|
+
* @public
|
|
1467
|
+
*/
|
|
1468
|
+
resetForm(): void;
|
|
1469
|
+
/**
|
|
1470
|
+
* Submits the associated form.
|
|
1471
|
+
*
|
|
1472
|
+
* @internal
|
|
1473
|
+
*/
|
|
1474
|
+
private submitForm;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* @internal
|
|
1479
|
+
* @privateRemarks
|
|
1480
|
+
* Mark internal because exporting class and interface of the same name confuses API documenter.
|
|
1481
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
1482
|
+
*/
|
|
1483
|
+
export declare interface Button extends StartEnd {
|
|
748
1484
|
}
|
|
749
1485
|
|
|
750
1486
|
/**
|
|
@@ -766,17 +1502,37 @@ export declare const ButtonAppearance: {
|
|
|
766
1502
|
export declare type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
|
|
767
1503
|
|
|
768
1504
|
/**
|
|
769
|
-
* The
|
|
770
|
-
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
1505
|
+
* The definition for the Fluent Button component.
|
|
771
1506
|
*
|
|
772
1507
|
* @public
|
|
773
1508
|
* @remarks
|
|
774
|
-
* HTML Element:
|
|
1509
|
+
* HTML Element: `<fluent-button>`
|
|
775
1510
|
*/
|
|
776
1511
|
export declare const ButtonDefinition: FASTElementDefinition<typeof Button>;
|
|
777
1512
|
|
|
1513
|
+
/**
|
|
1514
|
+
* Button `formtarget` attribute values.
|
|
1515
|
+
* @public
|
|
1516
|
+
*/
|
|
1517
|
+
export declare const ButtonFormTarget: {
|
|
1518
|
+
readonly blank: "_blank";
|
|
1519
|
+
readonly self: "_self";
|
|
1520
|
+
readonly parent: "_parent";
|
|
1521
|
+
readonly top: "_top";
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Types for the `formtarget` attribute values.
|
|
1526
|
+
* @public
|
|
1527
|
+
*/
|
|
1528
|
+
export declare type ButtonFormTarget = ValuesOf<typeof ButtonFormTarget>;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* Button configuration options.
|
|
1532
|
+
* @public
|
|
1533
|
+
*/
|
|
1534
|
+
declare type ButtonOptions = StartEndOptions<Button>;
|
|
778
1535
|
export { ButtonOptions }
|
|
779
|
-
export { ButtonOptions as CompoundButtonOptions }
|
|
780
1536
|
export { ButtonOptions as MenuButtonOptions }
|
|
781
1537
|
export { ButtonOptions as ToggleButtonOptions }
|
|
782
1538
|
|
|
@@ -814,15 +1570,64 @@ export declare type ButtonSize = ValuesOf<typeof ButtonSize>;
|
|
|
814
1570
|
|
|
815
1571
|
/**
|
|
816
1572
|
* The template for the Button component.
|
|
1573
|
+
*
|
|
817
1574
|
* @public
|
|
818
1575
|
*/
|
|
819
1576
|
export declare const ButtonTemplate: ElementViewTemplate<Button>;
|
|
820
1577
|
|
|
821
1578
|
/**
|
|
822
|
-
*
|
|
1579
|
+
* Button type values.
|
|
1580
|
+
*
|
|
1581
|
+
* @public
|
|
1582
|
+
*/
|
|
1583
|
+
export declare const ButtonType: {
|
|
1584
|
+
readonly submit: "submit";
|
|
1585
|
+
readonly reset: "reset";
|
|
1586
|
+
readonly button: "button";
|
|
1587
|
+
};
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Type for button type values.
|
|
1591
|
+
*
|
|
1592
|
+
* @public
|
|
1593
|
+
*/
|
|
1594
|
+
export declare type ButtonType = ValuesOf<typeof ButtonType>;
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Creates a checkable form associated component.
|
|
1598
|
+
* @beta
|
|
1599
|
+
*/
|
|
1600
|
+
declare function CheckableFormAssociated<T extends ConstructableFormAssociated>(BaseCtor: T): T;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Base class for providing Custom Element Form Association with checkable features.
|
|
1604
|
+
*
|
|
1605
|
+
* @beta
|
|
1606
|
+
*/
|
|
1607
|
+
declare interface CheckableFormAssociated extends FormAssociated {
|
|
1608
|
+
currentChecked: boolean;
|
|
1609
|
+
dirtyChecked: boolean;
|
|
1610
|
+
checkedAttribute: boolean;
|
|
1611
|
+
defaultChecked: boolean;
|
|
1612
|
+
defaultCheckedChanged(oldValue: boolean | undefined, newValue: boolean): void;
|
|
1613
|
+
checked: boolean;
|
|
1614
|
+
checkedChanged(oldValue: boolean | undefined, newValue: boolean): void;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* A Checkbox Custom HTML Element.
|
|
1619
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#checkbox | ARIA checkbox }.
|
|
1620
|
+
*
|
|
1621
|
+
* @slot checked-indicator - The checked indicator
|
|
1622
|
+
* @slot indeterminate-indicator - The indeterminate indicator
|
|
1623
|
+
* @slot - The default slot for the label
|
|
1624
|
+
* @csspart control - The element representing the visual checkbox control
|
|
1625
|
+
* @csspart label - The label
|
|
1626
|
+
* @fires change - Emits a custom change event when the checked state changes
|
|
1627
|
+
*
|
|
823
1628
|
* @public
|
|
824
1629
|
*/
|
|
825
|
-
export declare class Checkbox extends
|
|
1630
|
+
export declare class Checkbox extends FormAssociatedCheckbox {
|
|
826
1631
|
/**
|
|
827
1632
|
* Sets shape of the checkbox.
|
|
828
1633
|
*
|
|
@@ -850,6 +1655,37 @@ export declare class Checkbox extends FASTCheckbox {
|
|
|
850
1655
|
* HTML Attribute: label-position
|
|
851
1656
|
*/
|
|
852
1657
|
labelPosition?: CheckboxLabelPosition;
|
|
1658
|
+
/**
|
|
1659
|
+
* The element's value to be included in form submission when checked.
|
|
1660
|
+
* Default to "on" to reach parity with input[type="checkbox"]
|
|
1661
|
+
*
|
|
1662
|
+
* @internal
|
|
1663
|
+
*/
|
|
1664
|
+
initialValue: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* @internal
|
|
1667
|
+
*/
|
|
1668
|
+
defaultSlottedNodes: Node[];
|
|
1669
|
+
/**
|
|
1670
|
+
* The indeterminate state of the control
|
|
1671
|
+
*/
|
|
1672
|
+
indeterminate: boolean;
|
|
1673
|
+
constructor();
|
|
1674
|
+
private toggleChecked;
|
|
1675
|
+
/**
|
|
1676
|
+
* @internal
|
|
1677
|
+
*/
|
|
1678
|
+
keypressHandler: (e: KeyboardEvent) => void;
|
|
1679
|
+
/**
|
|
1680
|
+
* @internal
|
|
1681
|
+
*/
|
|
1682
|
+
clickHandler: (e: MouseEvent) => void;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
declare class _Checkbox extends FASTElement {
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
declare interface _Checkbox extends CheckableFormAssociated {
|
|
853
1689
|
}
|
|
854
1690
|
|
|
855
1691
|
/**
|
|
@@ -872,6 +1708,15 @@ export declare const CheckboxLabelPosition: {
|
|
|
872
1708
|
|
|
873
1709
|
export declare type CheckboxLabelPosition = ValuesOf<typeof CheckboxLabelPosition>;
|
|
874
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* Checkbox configuration options
|
|
1713
|
+
* @public
|
|
1714
|
+
*/
|
|
1715
|
+
export declare type CheckboxOptions = {
|
|
1716
|
+
checkedIndicator?: StaticallyComposableHTML<Checkbox>;
|
|
1717
|
+
indeterminateIndicator?: StaticallyComposableHTML<Checkbox>;
|
|
1718
|
+
};
|
|
1719
|
+
|
|
875
1720
|
/**
|
|
876
1721
|
* Checkbox shape
|
|
877
1722
|
* @public
|
|
@@ -906,599 +1751,701 @@ export declare const CheckboxStyles: ElementStyles;
|
|
|
906
1751
|
*/
|
|
907
1752
|
export declare const CheckboxTemplate: ElementViewTemplate<Checkbox>;
|
|
908
1753
|
|
|
909
|
-
export declare const colorBackgroundOverlay
|
|
1754
|
+
export declare const colorBackgroundOverlay = "var(--colorBackgroundOverlay)";
|
|
1755
|
+
|
|
1756
|
+
export declare const colorBrandBackground = "var(--colorBrandBackground)";
|
|
1757
|
+
|
|
1758
|
+
export declare const colorBrandBackground2 = "var(--colorBrandBackground2)";
|
|
1759
|
+
|
|
1760
|
+
export declare const colorBrandBackground2Hover = "var(--colorBrandBackground2Hover)";
|
|
1761
|
+
|
|
1762
|
+
export declare const colorBrandBackground2Pressed = "var(--colorBrandBackground2Pressed)";
|
|
1763
|
+
|
|
1764
|
+
export declare const colorBrandBackground3Static = "var(--colorBrandBackground3Static)";
|
|
1765
|
+
|
|
1766
|
+
export declare const colorBrandBackground4Static = "var(--colorBrandBackground4Static)";
|
|
1767
|
+
|
|
1768
|
+
export declare const colorBrandBackgroundHover = "var(--colorBrandBackgroundHover)";
|
|
1769
|
+
|
|
1770
|
+
export declare const colorBrandBackgroundInverted = "var(--colorBrandBackgroundInverted)";
|
|
1771
|
+
|
|
1772
|
+
export declare const colorBrandBackgroundInvertedHover = "var(--colorBrandBackgroundInvertedHover)";
|
|
1773
|
+
|
|
1774
|
+
export declare const colorBrandBackgroundInvertedPressed = "var(--colorBrandBackgroundInvertedPressed)";
|
|
1775
|
+
|
|
1776
|
+
export declare const colorBrandBackgroundInvertedSelected = "var(--colorBrandBackgroundInvertedSelected)";
|
|
1777
|
+
|
|
1778
|
+
export declare const colorBrandBackgroundPressed = "var(--colorBrandBackgroundPressed)";
|
|
1779
|
+
|
|
1780
|
+
export declare const colorBrandBackgroundSelected = "var(--colorBrandBackgroundSelected)";
|
|
1781
|
+
|
|
1782
|
+
export declare const colorBrandBackgroundStatic = "var(--colorBrandBackgroundStatic)";
|
|
1783
|
+
|
|
1784
|
+
export declare const colorBrandForeground1 = "var(--colorBrandForeground1)";
|
|
1785
|
+
|
|
1786
|
+
export declare const colorBrandForeground2 = "var(--colorBrandForeground2)";
|
|
1787
|
+
|
|
1788
|
+
export declare const colorBrandForeground2Hover = "var(--colorBrandForeground2Hover)";
|
|
1789
|
+
|
|
1790
|
+
export declare const colorBrandForeground2Pressed = "var(--colorBrandForeground2Pressed)";
|
|
1791
|
+
|
|
1792
|
+
export declare const colorBrandForegroundInverted = "var(--colorBrandForegroundInverted)";
|
|
1793
|
+
|
|
1794
|
+
export declare const colorBrandForegroundInvertedHover = "var(--colorBrandForegroundInvertedHover)";
|
|
1795
|
+
|
|
1796
|
+
export declare const colorBrandForegroundInvertedPressed = "var(--colorBrandForegroundInvertedPressed)";
|
|
1797
|
+
|
|
1798
|
+
export declare const colorBrandForegroundLink = "var(--colorBrandForegroundLink)";
|
|
1799
|
+
|
|
1800
|
+
export declare const colorBrandForegroundLinkHover = "var(--colorBrandForegroundLinkHover)";
|
|
910
1801
|
|
|
911
|
-
export declare const
|
|
1802
|
+
export declare const colorBrandForegroundLinkPressed = "var(--colorBrandForegroundLinkPressed)";
|
|
912
1803
|
|
|
913
|
-
export declare const
|
|
1804
|
+
export declare const colorBrandForegroundLinkSelected = "var(--colorBrandForegroundLinkSelected)";
|
|
914
1805
|
|
|
915
|
-
export declare const
|
|
1806
|
+
export declare const colorBrandForegroundOnLight = "var(--colorBrandForegroundOnLight)";
|
|
916
1807
|
|
|
917
|
-
export declare const
|
|
1808
|
+
export declare const colorBrandForegroundOnLightHover = "var(--colorBrandForegroundOnLightHover)";
|
|
918
1809
|
|
|
919
|
-
export declare const
|
|
1810
|
+
export declare const colorBrandForegroundOnLightPressed = "var(--colorBrandForegroundOnLightPressed)";
|
|
920
1811
|
|
|
921
|
-
export declare const
|
|
1812
|
+
export declare const colorBrandForegroundOnLightSelected = "var(--colorBrandForegroundOnLightSelected)";
|
|
922
1813
|
|
|
923
|
-
export declare const
|
|
1814
|
+
export declare const colorBrandShadowAmbient = "var(--colorBrandShadowAmbient)";
|
|
924
1815
|
|
|
925
|
-
export declare const
|
|
1816
|
+
export declare const colorBrandShadowKey = "var(--colorBrandShadowKey)";
|
|
926
1817
|
|
|
927
|
-
export declare const
|
|
1818
|
+
export declare const colorBrandStroke1 = "var(--colorBrandStroke1)";
|
|
928
1819
|
|
|
929
|
-
export declare const
|
|
1820
|
+
export declare const colorBrandStroke2 = "var(--colorBrandStroke2)";
|
|
930
1821
|
|
|
931
|
-
export declare const
|
|
1822
|
+
export declare const colorBrandStroke2Contrast = "var(--colorBrandStroke2Contrast)";
|
|
932
1823
|
|
|
933
|
-
export declare const
|
|
1824
|
+
export declare const colorBrandStroke2Hover = "var(--colorBrandStroke2Hover)";
|
|
934
1825
|
|
|
935
|
-
export declare const
|
|
1826
|
+
export declare const colorBrandStroke2Pressed = "var(--colorBrandStroke2Pressed)";
|
|
936
1827
|
|
|
937
|
-
export declare const
|
|
1828
|
+
export declare const colorCompoundBrandBackground = "var(--colorCompoundBrandBackground)";
|
|
938
1829
|
|
|
939
|
-
export declare const
|
|
1830
|
+
export declare const colorCompoundBrandBackgroundHover = "var(--colorCompoundBrandBackgroundHover)";
|
|
940
1831
|
|
|
941
|
-
export declare const
|
|
1832
|
+
export declare const colorCompoundBrandBackgroundPressed = "var(--colorCompoundBrandBackgroundPressed)";
|
|
942
1833
|
|
|
943
|
-
export declare const
|
|
1834
|
+
export declare const colorCompoundBrandForeground1 = "var(--colorCompoundBrandForeground1)";
|
|
944
1835
|
|
|
945
|
-
export declare const
|
|
1836
|
+
export declare const colorCompoundBrandForeground1Hover = "var(--colorCompoundBrandForeground1Hover)";
|
|
946
1837
|
|
|
947
|
-
export declare const
|
|
1838
|
+
export declare const colorCompoundBrandForeground1Pressed = "var(--colorCompoundBrandForeground1Pressed)";
|
|
948
1839
|
|
|
949
|
-
export declare const
|
|
1840
|
+
export declare const colorCompoundBrandStroke = "var(--colorCompoundBrandStroke)";
|
|
950
1841
|
|
|
951
|
-
export declare const
|
|
1842
|
+
export declare const colorCompoundBrandStrokeHover = "var(--colorCompoundBrandStrokeHover)";
|
|
952
1843
|
|
|
953
|
-
export declare const
|
|
1844
|
+
export declare const colorCompoundBrandStrokePressed = "var(--colorCompoundBrandStrokePressed)";
|
|
954
1845
|
|
|
955
|
-
export declare const
|
|
1846
|
+
export declare const colorNeutralBackground1 = "var(--colorNeutralBackground1)";
|
|
956
1847
|
|
|
957
|
-
export declare const
|
|
1848
|
+
export declare const colorNeutralBackground1Hover = "var(--colorNeutralBackground1Hover)";
|
|
958
1849
|
|
|
959
|
-
export declare const
|
|
1850
|
+
export declare const colorNeutralBackground1Pressed = "var(--colorNeutralBackground1Pressed)";
|
|
960
1851
|
|
|
961
|
-
export declare const
|
|
1852
|
+
export declare const colorNeutralBackground1Selected = "var(--colorNeutralBackground1Selected)";
|
|
962
1853
|
|
|
963
|
-
export declare const
|
|
1854
|
+
export declare const colorNeutralBackground2 = "var(--colorNeutralBackground2)";
|
|
964
1855
|
|
|
965
|
-
export declare const
|
|
1856
|
+
export declare const colorNeutralBackground2Hover = "var(--colorNeutralBackground2Hover)";
|
|
966
1857
|
|
|
967
|
-
export declare const
|
|
1858
|
+
export declare const colorNeutralBackground2Pressed = "var(--colorNeutralBackground2Pressed)";
|
|
968
1859
|
|
|
969
|
-
export declare const
|
|
1860
|
+
export declare const colorNeutralBackground2Selected = "var(--colorNeutralBackground2Selected)";
|
|
970
1861
|
|
|
971
|
-
export declare const
|
|
1862
|
+
export declare const colorNeutralBackground3 = "var(--colorNeutralBackground3)";
|
|
972
1863
|
|
|
973
|
-
export declare const
|
|
1864
|
+
export declare const colorNeutralBackground3Hover = "var(--colorNeutralBackground3Hover)";
|
|
974
1865
|
|
|
975
|
-
export declare const
|
|
1866
|
+
export declare const colorNeutralBackground3Pressed = "var(--colorNeutralBackground3Pressed)";
|
|
976
1867
|
|
|
977
|
-
export declare const
|
|
1868
|
+
export declare const colorNeutralBackground3Selected = "var(--colorNeutralBackground3Selected)";
|
|
978
1869
|
|
|
979
|
-
export declare const
|
|
1870
|
+
export declare const colorNeutralBackground4 = "var(--colorNeutralBackground4)";
|
|
980
1871
|
|
|
981
|
-
export declare const
|
|
1872
|
+
export declare const colorNeutralBackground4Hover = "var(--colorNeutralBackground4Hover)";
|
|
982
1873
|
|
|
983
|
-
export declare const
|
|
1874
|
+
export declare const colorNeutralBackground4Pressed = "var(--colorNeutralBackground4Pressed)";
|
|
984
1875
|
|
|
985
|
-
export declare const
|
|
1876
|
+
export declare const colorNeutralBackground4Selected = "var(--colorNeutralBackground4Selected)";
|
|
986
1877
|
|
|
987
|
-
export declare const
|
|
1878
|
+
export declare const colorNeutralBackground5 = "var(--colorNeutralBackground5)";
|
|
988
1879
|
|
|
989
|
-
export declare const
|
|
1880
|
+
export declare const colorNeutralBackground5Hover = "var(--colorNeutralBackground5Hover)";
|
|
990
1881
|
|
|
991
|
-
export declare const
|
|
1882
|
+
export declare const colorNeutralBackground5Pressed = "var(--colorNeutralBackground5Pressed)";
|
|
992
1883
|
|
|
993
|
-
export declare const
|
|
1884
|
+
export declare const colorNeutralBackground5Selected = "var(--colorNeutralBackground5Selected)";
|
|
994
1885
|
|
|
995
|
-
export declare const
|
|
1886
|
+
export declare const colorNeutralBackground6 = "var(--colorNeutralBackground6)";
|
|
996
1887
|
|
|
997
|
-
export declare const
|
|
1888
|
+
export declare const colorNeutralBackgroundAlpha = "var(--colorNeutralBackgroundAlpha)";
|
|
998
1889
|
|
|
999
|
-
export declare const
|
|
1890
|
+
export declare const colorNeutralBackgroundAlpha2 = "var(--colorNeutralBackgroundAlpha2)";
|
|
1000
1891
|
|
|
1001
|
-
export declare const
|
|
1892
|
+
export declare const colorNeutralBackgroundDisabled = "var(--colorNeutralBackgroundDisabled)";
|
|
1002
1893
|
|
|
1003
|
-
export declare const
|
|
1894
|
+
export declare const colorNeutralBackgroundInverted = "var(--colorNeutralBackgroundInverted)";
|
|
1004
1895
|
|
|
1005
|
-
export declare const
|
|
1896
|
+
export declare const colorNeutralBackgroundInvertedDisabled = "var(--colorNeutralBackgroundInvertedDisabled)";
|
|
1006
1897
|
|
|
1007
|
-
export declare const
|
|
1898
|
+
export declare const colorNeutralBackgroundStatic = "var(--colorNeutralBackgroundStatic)";
|
|
1008
1899
|
|
|
1009
|
-
export declare const
|
|
1900
|
+
export declare const colorNeutralCardBackground = "var(--colorNeutralCardBackground)";
|
|
1010
1901
|
|
|
1011
|
-
export declare const
|
|
1902
|
+
export declare const colorNeutralCardBackgroundDisabled = "var(--colorNeutralCardBackgroundDisabled)";
|
|
1012
1903
|
|
|
1013
|
-
export declare const
|
|
1904
|
+
export declare const colorNeutralCardBackgroundHover = "var(--colorNeutralCardBackgroundHover)";
|
|
1014
1905
|
|
|
1015
|
-
export declare const
|
|
1906
|
+
export declare const colorNeutralCardBackgroundPressed = "var(--colorNeutralCardBackgroundPressed)";
|
|
1016
1907
|
|
|
1017
|
-
export declare const
|
|
1908
|
+
export declare const colorNeutralCardBackgroundSelected = "var(--colorNeutralCardBackgroundSelected)";
|
|
1018
1909
|
|
|
1019
|
-
export declare const
|
|
1910
|
+
export declare const colorNeutralForeground1 = "var(--colorNeutralForeground1)";
|
|
1020
1911
|
|
|
1021
|
-
export declare const
|
|
1912
|
+
export declare const colorNeutralForeground1Hover = "var(--colorNeutralForeground1Hover)";
|
|
1022
1913
|
|
|
1023
|
-
export declare const
|
|
1914
|
+
export declare const colorNeutralForeground1Pressed = "var(--colorNeutralForeground1Pressed)";
|
|
1024
1915
|
|
|
1025
|
-
export declare const
|
|
1916
|
+
export declare const colorNeutralForeground1Selected = "var(--colorNeutralForeground1Selected)";
|
|
1026
1917
|
|
|
1027
|
-
export declare const
|
|
1918
|
+
export declare const colorNeutralForeground1Static = "var(--colorNeutralForeground1Static)";
|
|
1028
1919
|
|
|
1029
|
-
export declare const
|
|
1920
|
+
export declare const colorNeutralForeground2 = "var(--colorNeutralForeground2)";
|
|
1030
1921
|
|
|
1031
|
-
export declare const
|
|
1922
|
+
export declare const colorNeutralForeground2BrandHover = "var(--colorNeutralForeground2BrandHover)";
|
|
1032
1923
|
|
|
1033
|
-
export declare const
|
|
1924
|
+
export declare const colorNeutralForeground2BrandPressed = "var(--colorNeutralForeground2BrandPressed)";
|
|
1034
1925
|
|
|
1035
|
-
export declare const
|
|
1926
|
+
export declare const colorNeutralForeground2BrandSelected = "var(--colorNeutralForeground2BrandSelected)";
|
|
1036
1927
|
|
|
1037
|
-
export declare const
|
|
1928
|
+
export declare const colorNeutralForeground2Hover = "var(--colorNeutralForeground2Hover)";
|
|
1038
1929
|
|
|
1039
|
-
export declare const
|
|
1930
|
+
export declare const colorNeutralForeground2Link = "var(--colorNeutralForeground2Link)";
|
|
1040
1931
|
|
|
1041
|
-
export declare const
|
|
1932
|
+
export declare const colorNeutralForeground2LinkHover = "var(--colorNeutralForeground2LinkHover)";
|
|
1042
1933
|
|
|
1043
|
-
export declare const
|
|
1934
|
+
export declare const colorNeutralForeground2LinkPressed = "var(--colorNeutralForeground2LinkPressed)";
|
|
1044
1935
|
|
|
1045
|
-
export declare const
|
|
1936
|
+
export declare const colorNeutralForeground2LinkSelected = "var(--colorNeutralForeground2LinkSelected)";
|
|
1046
1937
|
|
|
1047
|
-
export declare const
|
|
1938
|
+
export declare const colorNeutralForeground2Pressed = "var(--colorNeutralForeground2Pressed)";
|
|
1048
1939
|
|
|
1049
|
-
export declare const
|
|
1940
|
+
export declare const colorNeutralForeground2Selected = "var(--colorNeutralForeground2Selected)";
|
|
1050
1941
|
|
|
1051
|
-
export declare const
|
|
1942
|
+
export declare const colorNeutralForeground3 = "var(--colorNeutralForeground3)";
|
|
1052
1943
|
|
|
1053
|
-
export declare const
|
|
1944
|
+
export declare const colorNeutralForeground3BrandHover = "var(--colorNeutralForeground3BrandHover)";
|
|
1054
1945
|
|
|
1055
|
-
export declare const
|
|
1946
|
+
export declare const colorNeutralForeground3BrandPressed = "var(--colorNeutralForeground3BrandPressed)";
|
|
1056
1947
|
|
|
1057
|
-
export declare const
|
|
1948
|
+
export declare const colorNeutralForeground3BrandSelected = "var(--colorNeutralForeground3BrandSelected)";
|
|
1058
1949
|
|
|
1059
|
-
export declare const
|
|
1950
|
+
export declare const colorNeutralForeground3Hover = "var(--colorNeutralForeground3Hover)";
|
|
1060
1951
|
|
|
1061
|
-
export declare const
|
|
1952
|
+
export declare const colorNeutralForeground3Pressed = "var(--colorNeutralForeground3Pressed)";
|
|
1062
1953
|
|
|
1063
|
-
export declare const
|
|
1954
|
+
export declare const colorNeutralForeground3Selected = "var(--colorNeutralForeground3Selected)";
|
|
1064
1955
|
|
|
1065
|
-
export declare const
|
|
1956
|
+
export declare const colorNeutralForeground4 = "var(--colorNeutralForeground4)";
|
|
1066
1957
|
|
|
1067
|
-
export declare const
|
|
1958
|
+
export declare const colorNeutralForegroundDisabled = "var(--colorNeutralForegroundDisabled)";
|
|
1068
1959
|
|
|
1069
|
-
export declare const
|
|
1960
|
+
export declare const colorNeutralForegroundInverted = "var(--colorNeutralForegroundInverted)";
|
|
1070
1961
|
|
|
1071
|
-
export declare const
|
|
1962
|
+
export declare const colorNeutralForegroundInverted2 = "var(--colorNeutralForegroundInverted2)";
|
|
1072
1963
|
|
|
1073
|
-
export declare const
|
|
1964
|
+
export declare const colorNeutralForegroundInvertedDisabled = "var(--colorNeutralForegroundInvertedDisabled)";
|
|
1074
1965
|
|
|
1075
|
-
export declare const
|
|
1966
|
+
export declare const colorNeutralForegroundInvertedHover = "var(--colorNeutralForegroundInvertedHover)";
|
|
1076
1967
|
|
|
1077
|
-
export declare const
|
|
1968
|
+
export declare const colorNeutralForegroundInvertedLink = "var(--colorNeutralForegroundInvertedLink)";
|
|
1078
1969
|
|
|
1079
|
-
export declare const
|
|
1970
|
+
export declare const colorNeutralForegroundInvertedLinkHover = "var(--colorNeutralForegroundInvertedLinkHover)";
|
|
1080
1971
|
|
|
1081
|
-
export declare const
|
|
1972
|
+
export declare const colorNeutralForegroundInvertedLinkPressed = "var(--colorNeutralForegroundInvertedLinkPressed)";
|
|
1082
1973
|
|
|
1083
|
-
export declare const
|
|
1974
|
+
export declare const colorNeutralForegroundInvertedLinkSelected = "var(--colorNeutralForegroundInvertedLinkSelected)";
|
|
1084
1975
|
|
|
1085
|
-
export declare const
|
|
1976
|
+
export declare const colorNeutralForegroundInvertedPressed = "var(--colorNeutralForegroundInvertedPressed)";
|
|
1086
1977
|
|
|
1087
|
-
export declare const
|
|
1978
|
+
export declare const colorNeutralForegroundInvertedSelected = "var(--colorNeutralForegroundInvertedSelected)";
|
|
1088
1979
|
|
|
1089
|
-
export declare const
|
|
1980
|
+
export declare const colorNeutralForegroundOnBrand = "var(--colorNeutralForegroundOnBrand)";
|
|
1090
1981
|
|
|
1091
|
-
export declare const
|
|
1982
|
+
export declare const colorNeutralForegroundStaticInverted = "var(--colorNeutralForegroundStaticInverted)";
|
|
1092
1983
|
|
|
1093
|
-
export declare const
|
|
1984
|
+
export declare const colorNeutralShadowAmbient = "var(--colorNeutralShadowAmbient)";
|
|
1094
1985
|
|
|
1095
|
-
export declare const
|
|
1986
|
+
export declare const colorNeutralShadowAmbientDarker = "var(--colorNeutralShadowAmbientDarker)";
|
|
1096
1987
|
|
|
1097
|
-
export declare const
|
|
1988
|
+
export declare const colorNeutralShadowAmbientLighter = "var(--colorNeutralShadowAmbientLighter)";
|
|
1098
1989
|
|
|
1099
|
-
export declare const
|
|
1990
|
+
export declare const colorNeutralShadowKey = "var(--colorNeutralShadowKey)";
|
|
1100
1991
|
|
|
1101
|
-
export declare const
|
|
1992
|
+
export declare const colorNeutralShadowKeyDarker = "var(--colorNeutralShadowKeyDarker)";
|
|
1102
1993
|
|
|
1103
|
-
export declare const
|
|
1994
|
+
export declare const colorNeutralShadowKeyLighter = "var(--colorNeutralShadowKeyLighter)";
|
|
1104
1995
|
|
|
1105
|
-
export declare const
|
|
1996
|
+
export declare const colorNeutralStencil1 = "var(--colorNeutralStencil1)";
|
|
1106
1997
|
|
|
1107
|
-
export declare const
|
|
1998
|
+
export declare const colorNeutralStencil1Alpha = "var(--colorNeutralStencil1Alpha)";
|
|
1108
1999
|
|
|
1109
|
-
export declare const
|
|
2000
|
+
export declare const colorNeutralStencil2 = "var(--colorNeutralStencil2)";
|
|
1110
2001
|
|
|
1111
|
-
export declare const
|
|
2002
|
+
export declare const colorNeutralStencil2Alpha = "var(--colorNeutralStencil2Alpha)";
|
|
1112
2003
|
|
|
1113
|
-
export declare const
|
|
2004
|
+
export declare const colorNeutralStroke1 = "var(--colorNeutralStroke1)";
|
|
1114
2005
|
|
|
1115
|
-
export declare const
|
|
2006
|
+
export declare const colorNeutralStroke1Hover = "var(--colorNeutralStroke1Hover)";
|
|
1116
2007
|
|
|
1117
|
-
export declare const
|
|
2008
|
+
export declare const colorNeutralStroke1Pressed = "var(--colorNeutralStroke1Pressed)";
|
|
1118
2009
|
|
|
1119
|
-
export declare const
|
|
2010
|
+
export declare const colorNeutralStroke1Selected = "var(--colorNeutralStroke1Selected)";
|
|
1120
2011
|
|
|
1121
|
-
export declare const
|
|
2012
|
+
export declare const colorNeutralStroke2 = "var(--colorNeutralStroke2)";
|
|
1122
2013
|
|
|
1123
|
-
export declare const
|
|
2014
|
+
export declare const colorNeutralStroke3 = "var(--colorNeutralStroke3)";
|
|
1124
2015
|
|
|
1125
|
-
export declare const
|
|
2016
|
+
export declare const colorNeutralStrokeAccessible = "var(--colorNeutralStrokeAccessible)";
|
|
1126
2017
|
|
|
1127
|
-
export declare const
|
|
2018
|
+
export declare const colorNeutralStrokeAccessibleHover = "var(--colorNeutralStrokeAccessibleHover)";
|
|
1128
2019
|
|
|
1129
|
-
export declare const
|
|
2020
|
+
export declare const colorNeutralStrokeAccessiblePressed = "var(--colorNeutralStrokeAccessiblePressed)";
|
|
1130
2021
|
|
|
1131
|
-
export declare const
|
|
2022
|
+
export declare const colorNeutralStrokeAccessibleSelected = "var(--colorNeutralStrokeAccessibleSelected)";
|
|
1132
2023
|
|
|
1133
|
-
export declare const
|
|
2024
|
+
export declare const colorNeutralStrokeAlpha = "var(--colorNeutralStrokeAlpha)";
|
|
1134
2025
|
|
|
1135
|
-
export declare const
|
|
2026
|
+
export declare const colorNeutralStrokeAlpha2 = "var(--colorNeutralStrokeAlpha2)";
|
|
1136
2027
|
|
|
1137
|
-
export declare const
|
|
2028
|
+
export declare const colorNeutralStrokeDisabled = "var(--colorNeutralStrokeDisabled)";
|
|
1138
2029
|
|
|
1139
|
-
export declare const
|
|
2030
|
+
export declare const colorNeutralStrokeInvertedDisabled = "var(--colorNeutralStrokeInvertedDisabled)";
|
|
1140
2031
|
|
|
1141
|
-
export declare const
|
|
2032
|
+
export declare const colorNeutralStrokeOnBrand = "var(--colorNeutralStrokeOnBrand)";
|
|
1142
2033
|
|
|
1143
|
-
export declare const
|
|
2034
|
+
export declare const colorNeutralStrokeOnBrand2 = "var(--colorNeutralStrokeOnBrand2)";
|
|
1144
2035
|
|
|
1145
|
-
export declare const
|
|
2036
|
+
export declare const colorNeutralStrokeOnBrand2Hover = "var(--colorNeutralStrokeOnBrand2Hover)";
|
|
1146
2037
|
|
|
1147
|
-
export declare const
|
|
2038
|
+
export declare const colorNeutralStrokeOnBrand2Pressed = "var(--colorNeutralStrokeOnBrand2Pressed)";
|
|
1148
2039
|
|
|
1149
|
-
export declare const
|
|
2040
|
+
export declare const colorNeutralStrokeOnBrand2Selected = "var(--colorNeutralStrokeOnBrand2Selected)";
|
|
1150
2041
|
|
|
1151
|
-
export declare const
|
|
2042
|
+
export declare const colorNeutralStrokeSubtle = "var(--colorNeutralStrokeSubtle)";
|
|
1152
2043
|
|
|
1153
|
-
export declare const
|
|
2044
|
+
export declare const colorPaletteAnchorBackground2 = "var(--colorPaletteAnchorBackground2)";
|
|
1154
2045
|
|
|
1155
|
-
export declare const
|
|
2046
|
+
export declare const colorPaletteAnchorBorderActive = "var(--colorPaletteAnchorBorderActive)";
|
|
1156
2047
|
|
|
1157
|
-
export declare const
|
|
2048
|
+
export declare const colorPaletteAnchorForeground2 = "var(--colorPaletteAnchorForeground2)";
|
|
1158
2049
|
|
|
1159
|
-
export declare const
|
|
2050
|
+
export declare const colorPaletteBeigeBackground2 = "var(--colorPaletteBeigeBackground2)";
|
|
1160
2051
|
|
|
1161
|
-
export declare const
|
|
2052
|
+
export declare const colorPaletteBeigeBorderActive = "var(--colorPaletteBeigeBorderActive)";
|
|
1162
2053
|
|
|
1163
|
-
export declare const
|
|
2054
|
+
export declare const colorPaletteBeigeForeground2 = "var(--colorPaletteBeigeForeground2)";
|
|
1164
2055
|
|
|
1165
|
-
export declare const
|
|
2056
|
+
export declare const colorPaletteBerryBackground1 = "var(--colorPaletteBerryBackground1)";
|
|
1166
2057
|
|
|
1167
|
-
export declare const
|
|
2058
|
+
export declare const colorPaletteBerryBackground2 = "var(--colorPaletteBerryBackground2)";
|
|
1168
2059
|
|
|
1169
|
-
export declare const
|
|
2060
|
+
export declare const colorPaletteBerryBackground3 = "var(--colorPaletteBerryBackground3)";
|
|
1170
2061
|
|
|
1171
|
-
export declare const
|
|
2062
|
+
export declare const colorPaletteBerryBorder1 = "var(--colorPaletteBerryBorder1)";
|
|
1172
2063
|
|
|
1173
|
-
export declare const
|
|
2064
|
+
export declare const colorPaletteBerryBorder2 = "var(--colorPaletteBerryBorder2)";
|
|
1174
2065
|
|
|
1175
|
-
export declare const
|
|
2066
|
+
export declare const colorPaletteBerryBorderActive = "var(--colorPaletteBerryBorderActive)";
|
|
1176
2067
|
|
|
1177
|
-
export declare const
|
|
2068
|
+
export declare const colorPaletteBerryForeground1 = "var(--colorPaletteBerryForeground1)";
|
|
1178
2069
|
|
|
1179
|
-
export declare const
|
|
2070
|
+
export declare const colorPaletteBerryForeground2 = "var(--colorPaletteBerryForeground2)";
|
|
1180
2071
|
|
|
1181
|
-
export declare const
|
|
2072
|
+
export declare const colorPaletteBerryForeground3 = "var(--colorPaletteBerryForeground3)";
|
|
1182
2073
|
|
|
1183
|
-
export declare const
|
|
2074
|
+
export declare const colorPaletteBlueBackground2 = "var(--colorPaletteBlueBackground2)";
|
|
1184
2075
|
|
|
1185
|
-
export declare const
|
|
2076
|
+
export declare const colorPaletteBlueBorderActive = "var(--colorPaletteBlueBorderActive)";
|
|
1186
2077
|
|
|
1187
|
-
export declare const
|
|
2078
|
+
export declare const colorPaletteBlueForeground2 = "var(--colorPaletteBlueForeground2)";
|
|
1188
2079
|
|
|
1189
|
-
export declare const
|
|
2080
|
+
export declare const colorPaletteBrassBackground2 = "var(--colorPaletteBrassBackground2)";
|
|
1190
2081
|
|
|
1191
|
-
export declare const
|
|
2082
|
+
export declare const colorPaletteBrassBorderActive = "var(--colorPaletteBrassBorderActive)";
|
|
1192
2083
|
|
|
1193
|
-
export declare const
|
|
2084
|
+
export declare const colorPaletteBrassForeground2 = "var(--colorPaletteBrassForeground2)";
|
|
1194
2085
|
|
|
1195
|
-
export declare const
|
|
2086
|
+
export declare const colorPaletteBrownBackground2 = "var(--colorPaletteBrownBackground2)";
|
|
1196
2087
|
|
|
1197
|
-
export declare const
|
|
2088
|
+
export declare const colorPaletteBrownBorderActive = "var(--colorPaletteBrownBorderActive)";
|
|
1198
2089
|
|
|
1199
|
-
export declare const
|
|
2090
|
+
export declare const colorPaletteBrownForeground2 = "var(--colorPaletteBrownForeground2)";
|
|
1200
2091
|
|
|
1201
|
-
export declare const
|
|
2092
|
+
export declare const colorPaletteCornflowerBackground2 = "var(--colorPaletteCornflowerBackground2)";
|
|
1202
2093
|
|
|
1203
|
-
export declare const
|
|
2094
|
+
export declare const colorPaletteCornflowerBorderActive = "var(--colorPaletteCornflowerBorderActive)";
|
|
1204
2095
|
|
|
1205
|
-
export declare const
|
|
2096
|
+
export declare const colorPaletteCornflowerForeground2 = "var(--colorPaletteCornflowerForeground2)";
|
|
1206
2097
|
|
|
1207
|
-
export declare const
|
|
2098
|
+
export declare const colorPaletteCranberryBackground2 = "var(--colorPaletteCranberryBackground2)";
|
|
1208
2099
|
|
|
1209
|
-
export declare const
|
|
2100
|
+
export declare const colorPaletteCranberryBorderActive = "var(--colorPaletteCranberryBorderActive)";
|
|
1210
2101
|
|
|
1211
|
-
export declare const
|
|
2102
|
+
export declare const colorPaletteCranberryForeground2 = "var(--colorPaletteCranberryForeground2)";
|
|
1212
2103
|
|
|
1213
|
-
export declare const
|
|
2104
|
+
export declare const colorPaletteDarkGreenBackground2 = "var(--colorPaletteDarkGreenBackground2)";
|
|
1214
2105
|
|
|
1215
|
-
export declare const
|
|
2106
|
+
export declare const colorPaletteDarkGreenBorderActive = "var(--colorPaletteDarkGreenBorderActive)";
|
|
1216
2107
|
|
|
1217
|
-
export declare const
|
|
2108
|
+
export declare const colorPaletteDarkGreenForeground2 = "var(--colorPaletteDarkGreenForeground2)";
|
|
1218
2109
|
|
|
1219
|
-
export declare const
|
|
2110
|
+
export declare const colorPaletteDarkOrangeBackground1 = "var(--colorPaletteDarkOrangeBackground1)";
|
|
1220
2111
|
|
|
1221
|
-
export declare const
|
|
2112
|
+
export declare const colorPaletteDarkOrangeBackground2 = "var(--colorPaletteDarkOrangeBackground2)";
|
|
1222
2113
|
|
|
1223
|
-
export declare const
|
|
2114
|
+
export declare const colorPaletteDarkOrangeBackground3 = "var(--colorPaletteDarkOrangeBackground3)";
|
|
1224
2115
|
|
|
1225
|
-
export declare const
|
|
2116
|
+
export declare const colorPaletteDarkOrangeBorder1 = "var(--colorPaletteDarkOrangeBorder1)";
|
|
1226
2117
|
|
|
1227
|
-
export declare const
|
|
2118
|
+
export declare const colorPaletteDarkOrangeBorder2 = "var(--colorPaletteDarkOrangeBorder2)";
|
|
1228
2119
|
|
|
1229
|
-
export declare const
|
|
2120
|
+
export declare const colorPaletteDarkOrangeBorderActive = "var(--colorPaletteDarkOrangeBorderActive)";
|
|
1230
2121
|
|
|
1231
|
-
export declare const
|
|
2122
|
+
export declare const colorPaletteDarkOrangeForeground1 = "var(--colorPaletteDarkOrangeForeground1)";
|
|
1232
2123
|
|
|
1233
|
-
export declare const
|
|
2124
|
+
export declare const colorPaletteDarkOrangeForeground2 = "var(--colorPaletteDarkOrangeForeground2)";
|
|
1234
2125
|
|
|
1235
|
-
export declare const
|
|
2126
|
+
export declare const colorPaletteDarkOrangeForeground3 = "var(--colorPaletteDarkOrangeForeground3)";
|
|
1236
2127
|
|
|
1237
|
-
export declare const
|
|
2128
|
+
export declare const colorPaletteDarkRedBackground2 = "var(--colorPaletteDarkRedBackground2)";
|
|
1238
2129
|
|
|
1239
|
-
export declare const
|
|
2130
|
+
export declare const colorPaletteDarkRedBorderActive = "var(--colorPaletteDarkRedBorderActive)";
|
|
1240
2131
|
|
|
1241
|
-
export declare const
|
|
2132
|
+
export declare const colorPaletteDarkRedForeground2 = "var(--colorPaletteDarkRedForeground2)";
|
|
1242
2133
|
|
|
1243
|
-
export declare const
|
|
2134
|
+
export declare const colorPaletteForestBackground2 = "var(--colorPaletteForestBackground2)";
|
|
1244
2135
|
|
|
1245
|
-
export declare const
|
|
2136
|
+
export declare const colorPaletteForestBorderActive = "var(--colorPaletteForestBorderActive)";
|
|
1246
2137
|
|
|
1247
|
-
export declare const
|
|
2138
|
+
export declare const colorPaletteForestForeground2 = "var(--colorPaletteForestForeground2)";
|
|
1248
2139
|
|
|
1249
|
-
export declare const
|
|
2140
|
+
export declare const colorPaletteGoldBackground2 = "var(--colorPaletteGoldBackground2)";
|
|
1250
2141
|
|
|
1251
|
-
export declare const
|
|
2142
|
+
export declare const colorPaletteGoldBorderActive = "var(--colorPaletteGoldBorderActive)";
|
|
1252
2143
|
|
|
1253
|
-
export declare const
|
|
2144
|
+
export declare const colorPaletteGoldForeground2 = "var(--colorPaletteGoldForeground2)";
|
|
1254
2145
|
|
|
1255
|
-
export declare const
|
|
2146
|
+
export declare const colorPaletteGrapeBackground2 = "var(--colorPaletteGrapeBackground2)";
|
|
1256
2147
|
|
|
1257
|
-
export declare const
|
|
2148
|
+
export declare const colorPaletteGrapeBorderActive = "var(--colorPaletteGrapeBorderActive)";
|
|
1258
2149
|
|
|
1259
|
-
export declare const
|
|
2150
|
+
export declare const colorPaletteGrapeForeground2 = "var(--colorPaletteGrapeForeground2)";
|
|
1260
2151
|
|
|
1261
|
-
export declare const
|
|
2152
|
+
export declare const colorPaletteGreenBackground1 = "var(--colorPaletteGreenBackground1)";
|
|
1262
2153
|
|
|
1263
|
-
export declare const
|
|
2154
|
+
export declare const colorPaletteGreenBackground2 = "var(--colorPaletteGreenBackground2)";
|
|
1264
2155
|
|
|
1265
|
-
export declare const
|
|
2156
|
+
export declare const colorPaletteGreenBackground3 = "var(--colorPaletteGreenBackground3)";
|
|
1266
2157
|
|
|
1267
|
-
export declare const
|
|
2158
|
+
export declare const colorPaletteGreenBorder1 = "var(--colorPaletteGreenBorder1)";
|
|
1268
2159
|
|
|
1269
|
-
export declare const
|
|
2160
|
+
export declare const colorPaletteGreenBorder2 = "var(--colorPaletteGreenBorder2)";
|
|
1270
2161
|
|
|
1271
|
-
export declare const
|
|
2162
|
+
export declare const colorPaletteGreenBorderActive = "var(--colorPaletteGreenBorderActive)";
|
|
1272
2163
|
|
|
1273
|
-
export declare const
|
|
2164
|
+
export declare const colorPaletteGreenForeground1 = "var(--colorPaletteGreenForeground1)";
|
|
1274
2165
|
|
|
1275
|
-
export declare const
|
|
2166
|
+
export declare const colorPaletteGreenForeground2 = "var(--colorPaletteGreenForeground2)";
|
|
1276
2167
|
|
|
1277
|
-
export declare const
|
|
2168
|
+
export declare const colorPaletteGreenForeground3 = "var(--colorPaletteGreenForeground3)";
|
|
1278
2169
|
|
|
1279
|
-
export declare const
|
|
2170
|
+
export declare const colorPaletteGreenForegroundInverted = "var(--colorPaletteGreenForegroundInverted)";
|
|
1280
2171
|
|
|
1281
|
-
export declare const
|
|
2172
|
+
export declare const colorPaletteLavenderBackground2 = "var(--colorPaletteLavenderBackground2)";
|
|
1282
2173
|
|
|
1283
|
-
export declare const
|
|
2174
|
+
export declare const colorPaletteLavenderBorderActive = "var(--colorPaletteLavenderBorderActive)";
|
|
1284
2175
|
|
|
1285
|
-
export declare const
|
|
2176
|
+
export declare const colorPaletteLavenderForeground2 = "var(--colorPaletteLavenderForeground2)";
|
|
1286
2177
|
|
|
1287
|
-
export declare const
|
|
2178
|
+
export declare const colorPaletteLightGreenBackground1 = "var(--colorPaletteLightGreenBackground1)";
|
|
1288
2179
|
|
|
1289
|
-
export declare const
|
|
2180
|
+
export declare const colorPaletteLightGreenBackground2 = "var(--colorPaletteLightGreenBackground2)";
|
|
1290
2181
|
|
|
1291
|
-
export declare const
|
|
2182
|
+
export declare const colorPaletteLightGreenBackground3 = "var(--colorPaletteLightGreenBackground3)";
|
|
1292
2183
|
|
|
1293
|
-
export declare const
|
|
2184
|
+
export declare const colorPaletteLightGreenBorder1 = "var(--colorPaletteLightGreenBorder1)";
|
|
1294
2185
|
|
|
1295
|
-
export declare const
|
|
2186
|
+
export declare const colorPaletteLightGreenBorder2 = "var(--colorPaletteLightGreenBorder2)";
|
|
1296
2187
|
|
|
1297
|
-
export declare const
|
|
2188
|
+
export declare const colorPaletteLightGreenBorderActive = "var(--colorPaletteLightGreenBorderActive)";
|
|
1298
2189
|
|
|
1299
|
-
export declare const
|
|
2190
|
+
export declare const colorPaletteLightGreenForeground1 = "var(--colorPaletteLightGreenForeground1)";
|
|
1300
2191
|
|
|
1301
|
-
export declare const
|
|
2192
|
+
export declare const colorPaletteLightGreenForeground2 = "var(--colorPaletteLightGreenForeground2)";
|
|
1302
2193
|
|
|
1303
|
-
export declare const
|
|
2194
|
+
export declare const colorPaletteLightGreenForeground3 = "var(--colorPaletteLightGreenForeground3)";
|
|
1304
2195
|
|
|
1305
|
-
export declare const
|
|
2196
|
+
export declare const colorPaletteLightTealBackground2 = "var(--colorPaletteLightTealBackground2)";
|
|
1306
2197
|
|
|
1307
|
-
export declare const
|
|
2198
|
+
export declare const colorPaletteLightTealBorderActive = "var(--colorPaletteLightTealBorderActive)";
|
|
1308
2199
|
|
|
1309
|
-
export declare const
|
|
2200
|
+
export declare const colorPaletteLightTealForeground2 = "var(--colorPaletteLightTealForeground2)";
|
|
1310
2201
|
|
|
1311
|
-
export declare const
|
|
2202
|
+
export declare const colorPaletteLilacBackground2 = "var(--colorPaletteLilacBackground2)";
|
|
1312
2203
|
|
|
1313
|
-
export declare const
|
|
2204
|
+
export declare const colorPaletteLilacBorderActive = "var(--colorPaletteLilacBorderActive)";
|
|
1314
2205
|
|
|
1315
|
-
export declare const
|
|
2206
|
+
export declare const colorPaletteLilacForeground2 = "var(--colorPaletteLilacForeground2)";
|
|
1316
2207
|
|
|
1317
|
-
export declare const
|
|
2208
|
+
export declare const colorPaletteMagentaBackground2 = "var(--colorPaletteMagentaBackground2)";
|
|
1318
2209
|
|
|
1319
|
-
export declare const
|
|
2210
|
+
export declare const colorPaletteMagentaBorderActive = "var(--colorPaletteMagentaBorderActive)";
|
|
1320
2211
|
|
|
1321
|
-
export declare const
|
|
2212
|
+
export declare const colorPaletteMagentaForeground2 = "var(--colorPaletteMagentaForeground2)";
|
|
1322
2213
|
|
|
1323
|
-
export declare const
|
|
2214
|
+
export declare const colorPaletteMarigoldBackground1 = "var(--colorPaletteMarigoldBackground1)";
|
|
1324
2215
|
|
|
1325
|
-
export declare const
|
|
2216
|
+
export declare const colorPaletteMarigoldBackground2 = "var(--colorPaletteMarigoldBackground2)";
|
|
1326
2217
|
|
|
1327
|
-
export declare const
|
|
2218
|
+
export declare const colorPaletteMarigoldBackground3 = "var(--colorPaletteMarigoldBackground3)";
|
|
1328
2219
|
|
|
1329
|
-
export declare const
|
|
2220
|
+
export declare const colorPaletteMarigoldBorder1 = "var(--colorPaletteMarigoldBorder1)";
|
|
1330
2221
|
|
|
1331
|
-
export declare const
|
|
2222
|
+
export declare const colorPaletteMarigoldBorder2 = "var(--colorPaletteMarigoldBorder2)";
|
|
1332
2223
|
|
|
1333
|
-
export declare const
|
|
2224
|
+
export declare const colorPaletteMarigoldBorderActive = "var(--colorPaletteMarigoldBorderActive)";
|
|
1334
2225
|
|
|
1335
|
-
export declare const
|
|
2226
|
+
export declare const colorPaletteMarigoldForeground1 = "var(--colorPaletteMarigoldForeground1)";
|
|
1336
2227
|
|
|
1337
|
-
export declare const
|
|
2228
|
+
export declare const colorPaletteMarigoldForeground2 = "var(--colorPaletteMarigoldForeground2)";
|
|
1338
2229
|
|
|
1339
|
-
export declare const
|
|
2230
|
+
export declare const colorPaletteMarigoldForeground3 = "var(--colorPaletteMarigoldForeground3)";
|
|
1340
2231
|
|
|
1341
|
-
export declare const
|
|
2232
|
+
export declare const colorPaletteMinkBackground2 = "var(--colorPaletteMinkBackground2)";
|
|
1342
2233
|
|
|
1343
|
-
export declare const
|
|
2234
|
+
export declare const colorPaletteMinkBorderActive = "var(--colorPaletteMinkBorderActive)";
|
|
1344
2235
|
|
|
1345
|
-
export declare const
|
|
2236
|
+
export declare const colorPaletteMinkForeground2 = "var(--colorPaletteMinkForeground2)";
|
|
1346
2237
|
|
|
1347
|
-
export declare const
|
|
2238
|
+
export declare const colorPaletteNavyBackground2 = "var(--colorPaletteNavyBackground2)";
|
|
1348
2239
|
|
|
1349
|
-
export declare const
|
|
2240
|
+
export declare const colorPaletteNavyBorderActive = "var(--colorPaletteNavyBorderActive)";
|
|
1350
2241
|
|
|
1351
|
-
export declare const
|
|
2242
|
+
export declare const colorPaletteNavyForeground2 = "var(--colorPaletteNavyForeground2)";
|
|
1352
2243
|
|
|
1353
|
-
export declare const
|
|
2244
|
+
export declare const colorPalettePeachBackground2 = "var(--colorPalettePeachBackground2)";
|
|
1354
2245
|
|
|
1355
|
-
export declare const
|
|
2246
|
+
export declare const colorPalettePeachBorderActive = "var(--colorPalettePeachBorderActive)";
|
|
1356
2247
|
|
|
1357
|
-
export declare const
|
|
2248
|
+
export declare const colorPalettePeachForeground2 = "var(--colorPalettePeachForeground2)";
|
|
1358
2249
|
|
|
1359
|
-
export declare const
|
|
2250
|
+
export declare const colorPalettePinkBackground2 = "var(--colorPalettePinkBackground2)";
|
|
1360
2251
|
|
|
1361
|
-
export declare const
|
|
2252
|
+
export declare const colorPalettePinkBorderActive = "var(--colorPalettePinkBorderActive)";
|
|
1362
2253
|
|
|
1363
|
-
export declare const
|
|
2254
|
+
export declare const colorPalettePinkForeground2 = "var(--colorPalettePinkForeground2)";
|
|
1364
2255
|
|
|
1365
|
-
export declare const
|
|
2256
|
+
export declare const colorPalettePlatinumBackground2 = "var(--colorPalettePlatinumBackground2)";
|
|
1366
2257
|
|
|
1367
|
-
export declare const
|
|
2258
|
+
export declare const colorPalettePlatinumBorderActive = "var(--colorPalettePlatinumBorderActive)";
|
|
1368
2259
|
|
|
1369
|
-
export declare const
|
|
2260
|
+
export declare const colorPalettePlatinumForeground2 = "var(--colorPalettePlatinumForeground2)";
|
|
1370
2261
|
|
|
1371
|
-
export declare const
|
|
2262
|
+
export declare const colorPalettePlumBackground2 = "var(--colorPalettePlumBackground2)";
|
|
1372
2263
|
|
|
1373
|
-
export declare const
|
|
2264
|
+
export declare const colorPalettePlumBorderActive = "var(--colorPalettePlumBorderActive)";
|
|
1374
2265
|
|
|
1375
|
-
export declare const
|
|
2266
|
+
export declare const colorPalettePlumForeground2 = "var(--colorPalettePlumForeground2)";
|
|
1376
2267
|
|
|
1377
|
-
export declare const
|
|
2268
|
+
export declare const colorPalettePumpkinBackground2 = "var(--colorPalettePumpkinBackground2)";
|
|
1378
2269
|
|
|
1379
|
-
export declare const
|
|
2270
|
+
export declare const colorPalettePumpkinBorderActive = "var(--colorPalettePumpkinBorderActive)";
|
|
1380
2271
|
|
|
1381
|
-
export declare const
|
|
2272
|
+
export declare const colorPalettePumpkinForeground2 = "var(--colorPalettePumpkinForeground2)";
|
|
1382
2273
|
|
|
1383
|
-
export declare const
|
|
2274
|
+
export declare const colorPalettePurpleBackground2 = "var(--colorPalettePurpleBackground2)";
|
|
1384
2275
|
|
|
1385
|
-
export declare const
|
|
2276
|
+
export declare const colorPalettePurpleBorderActive = "var(--colorPalettePurpleBorderActive)";
|
|
1386
2277
|
|
|
1387
|
-
export declare const
|
|
2278
|
+
export declare const colorPalettePurpleForeground2 = "var(--colorPalettePurpleForeground2)";
|
|
1388
2279
|
|
|
1389
|
-
export declare const
|
|
2280
|
+
export declare const colorPaletteRedBackground1 = "var(--colorPaletteRedBackground1)";
|
|
1390
2281
|
|
|
1391
|
-
export declare const
|
|
2282
|
+
export declare const colorPaletteRedBackground2 = "var(--colorPaletteRedBackground2)";
|
|
1392
2283
|
|
|
1393
|
-
export declare const
|
|
2284
|
+
export declare const colorPaletteRedBackground3 = "var(--colorPaletteRedBackground3)";
|
|
1394
2285
|
|
|
1395
|
-
export declare const
|
|
2286
|
+
export declare const colorPaletteRedBorder1 = "var(--colorPaletteRedBorder1)";
|
|
1396
2287
|
|
|
1397
|
-
export declare const
|
|
2288
|
+
export declare const colorPaletteRedBorder2 = "var(--colorPaletteRedBorder2)";
|
|
1398
2289
|
|
|
1399
|
-
export declare const
|
|
2290
|
+
export declare const colorPaletteRedBorderActive = "var(--colorPaletteRedBorderActive)";
|
|
1400
2291
|
|
|
1401
|
-
export declare const
|
|
2292
|
+
export declare const colorPaletteRedForeground1 = "var(--colorPaletteRedForeground1)";
|
|
1402
2293
|
|
|
1403
|
-
export declare const
|
|
2294
|
+
export declare const colorPaletteRedForeground2 = "var(--colorPaletteRedForeground2)";
|
|
1404
2295
|
|
|
1405
|
-
export declare const
|
|
2296
|
+
export declare const colorPaletteRedForeground3 = "var(--colorPaletteRedForeground3)";
|
|
1406
2297
|
|
|
1407
|
-
export declare const
|
|
2298
|
+
export declare const colorPaletteRedForegroundInverted = "var(--colorPaletteRedForegroundInverted)";
|
|
1408
2299
|
|
|
1409
|
-
export declare const
|
|
2300
|
+
export declare const colorPaletteRoyalBlueBackground2 = "var(--colorPaletteRoyalBlueBackground2)";
|
|
1410
2301
|
|
|
1411
|
-
export declare const
|
|
2302
|
+
export declare const colorPaletteRoyalBlueBorderActive = "var(--colorPaletteRoyalBlueBorderActive)";
|
|
1412
2303
|
|
|
1413
|
-
export declare const
|
|
2304
|
+
export declare const colorPaletteRoyalBlueForeground2 = "var(--colorPaletteRoyalBlueForeground2)";
|
|
1414
2305
|
|
|
1415
|
-
export declare const
|
|
2306
|
+
export declare const colorPaletteSeafoamBackground2 = "var(--colorPaletteSeafoamBackground2)";
|
|
1416
2307
|
|
|
1417
|
-
export declare const
|
|
2308
|
+
export declare const colorPaletteSeafoamBorderActive = "var(--colorPaletteSeafoamBorderActive)";
|
|
1418
2309
|
|
|
1419
|
-
export declare const
|
|
2310
|
+
export declare const colorPaletteSeafoamForeground2 = "var(--colorPaletteSeafoamForeground2)";
|
|
1420
2311
|
|
|
1421
|
-
export declare const
|
|
2312
|
+
export declare const colorPaletteSteelBackground2 = "var(--colorPaletteSteelBackground2)";
|
|
1422
2313
|
|
|
1423
|
-
export declare const
|
|
2314
|
+
export declare const colorPaletteSteelBorderActive = "var(--colorPaletteSteelBorderActive)";
|
|
1424
2315
|
|
|
1425
|
-
export declare const
|
|
2316
|
+
export declare const colorPaletteSteelForeground2 = "var(--colorPaletteSteelForeground2)";
|
|
1426
2317
|
|
|
1427
|
-
export declare const
|
|
2318
|
+
export declare const colorPaletteTealBackground2 = "var(--colorPaletteTealBackground2)";
|
|
1428
2319
|
|
|
1429
|
-
export declare const
|
|
2320
|
+
export declare const colorPaletteTealBorderActive = "var(--colorPaletteTealBorderActive)";
|
|
1430
2321
|
|
|
1431
|
-
export declare const
|
|
2322
|
+
export declare const colorPaletteTealForeground2 = "var(--colorPaletteTealForeground2)";
|
|
1432
2323
|
|
|
1433
|
-
export declare const
|
|
2324
|
+
export declare const colorPaletteYellowBackground1 = "var(--colorPaletteYellowBackground1)";
|
|
1434
2325
|
|
|
1435
|
-
export declare const
|
|
2326
|
+
export declare const colorPaletteYellowBackground2 = "var(--colorPaletteYellowBackground2)";
|
|
1436
2327
|
|
|
1437
|
-
export declare const
|
|
2328
|
+
export declare const colorPaletteYellowBackground3 = "var(--colorPaletteYellowBackground3)";
|
|
1438
2329
|
|
|
1439
|
-
export declare const
|
|
2330
|
+
export declare const colorPaletteYellowBorder1 = "var(--colorPaletteYellowBorder1)";
|
|
1440
2331
|
|
|
1441
|
-
export declare const
|
|
2332
|
+
export declare const colorPaletteYellowBorder2 = "var(--colorPaletteYellowBorder2)";
|
|
1442
2333
|
|
|
1443
|
-
export declare const
|
|
2334
|
+
export declare const colorPaletteYellowBorderActive = "var(--colorPaletteYellowBorderActive)";
|
|
1444
2335
|
|
|
1445
|
-
export declare const
|
|
2336
|
+
export declare const colorPaletteYellowForeground1 = "var(--colorPaletteYellowForeground1)";
|
|
1446
2337
|
|
|
1447
|
-
export declare const
|
|
2338
|
+
export declare const colorPaletteYellowForeground2 = "var(--colorPaletteYellowForeground2)";
|
|
1448
2339
|
|
|
1449
|
-
export declare const
|
|
2340
|
+
export declare const colorPaletteYellowForeground3 = "var(--colorPaletteYellowForeground3)";
|
|
1450
2341
|
|
|
1451
|
-
export declare const
|
|
2342
|
+
export declare const colorPaletteYellowForegroundInverted = "var(--colorPaletteYellowForegroundInverted)";
|
|
1452
2343
|
|
|
1453
|
-
export declare const
|
|
2344
|
+
export declare const colorScrollbarOverlay = "var(--colorScrollbarOverlay)";
|
|
1454
2345
|
|
|
1455
|
-
export declare const
|
|
2346
|
+
export declare const colorStatusDangerBackground1 = "var(--colorStatusDangerBackground1)";
|
|
1456
2347
|
|
|
1457
|
-
export declare const
|
|
2348
|
+
export declare const colorStatusDangerBackground2 = "var(--colorStatusDangerBackground2)";
|
|
1458
2349
|
|
|
1459
|
-
export declare const
|
|
2350
|
+
export declare const colorStatusDangerBackground3 = "var(--colorStatusDangerBackground3)";
|
|
1460
2351
|
|
|
1461
|
-
export declare const
|
|
2352
|
+
export declare const colorStatusDangerBackground3Hover = "var(--colorStatusDangerBackground3Hover)";
|
|
1462
2353
|
|
|
1463
|
-
export declare const
|
|
2354
|
+
export declare const colorStatusDangerBackground3Pressed = "var(--colorStatusDangerBackground3Pressed)";
|
|
1464
2355
|
|
|
1465
|
-
export declare const
|
|
2356
|
+
export declare const colorStatusDangerBorder1 = "var(--colorStatusDangerBorder1)";
|
|
1466
2357
|
|
|
1467
|
-
export declare const
|
|
2358
|
+
export declare const colorStatusDangerBorder2 = "var(--colorStatusDangerBorder2)";
|
|
1468
2359
|
|
|
1469
|
-
export declare const
|
|
2360
|
+
export declare const colorStatusDangerBorderActive = "var(--colorStatusDangerBorderActive)";
|
|
1470
2361
|
|
|
1471
|
-
export declare const
|
|
2362
|
+
export declare const colorStatusDangerForeground1 = "var(--colorStatusDangerForeground1)";
|
|
1472
2363
|
|
|
1473
|
-
export declare const
|
|
2364
|
+
export declare const colorStatusDangerForeground2 = "var(--colorStatusDangerForeground2)";
|
|
1474
2365
|
|
|
1475
|
-
export declare const
|
|
2366
|
+
export declare const colorStatusDangerForeground3 = "var(--colorStatusDangerForeground3)";
|
|
1476
2367
|
|
|
1477
|
-
export declare const
|
|
2368
|
+
export declare const colorStatusDangerForegroundInverted = "var(--colorStatusDangerForegroundInverted)";
|
|
1478
2369
|
|
|
1479
|
-
export declare const
|
|
2370
|
+
export declare const colorStatusSuccessBackground1 = "var(--colorStatusSuccessBackground1)";
|
|
1480
2371
|
|
|
1481
|
-
export declare const
|
|
2372
|
+
export declare const colorStatusSuccessBackground2 = "var(--colorStatusSuccessBackground2)";
|
|
1482
2373
|
|
|
1483
|
-
export declare const
|
|
2374
|
+
export declare const colorStatusSuccessBackground3 = "var(--colorStatusSuccessBackground3)";
|
|
1484
2375
|
|
|
1485
|
-
export declare const
|
|
2376
|
+
export declare const colorStatusSuccessBorder1 = "var(--colorStatusSuccessBorder1)";
|
|
1486
2377
|
|
|
1487
|
-
export declare const
|
|
2378
|
+
export declare const colorStatusSuccessBorder2 = "var(--colorStatusSuccessBorder2)";
|
|
1488
2379
|
|
|
1489
|
-
export declare const
|
|
2380
|
+
export declare const colorStatusSuccessBorderActive = "var(--colorStatusSuccessBorderActive)";
|
|
1490
2381
|
|
|
1491
|
-
export declare const
|
|
2382
|
+
export declare const colorStatusSuccessForeground1 = "var(--colorStatusSuccessForeground1)";
|
|
1492
2383
|
|
|
1493
|
-
export declare const
|
|
2384
|
+
export declare const colorStatusSuccessForeground2 = "var(--colorStatusSuccessForeground2)";
|
|
1494
2385
|
|
|
1495
|
-
export declare const
|
|
2386
|
+
export declare const colorStatusSuccessForeground3 = "var(--colorStatusSuccessForeground3)";
|
|
1496
2387
|
|
|
1497
|
-
export declare const
|
|
2388
|
+
export declare const colorStatusSuccessForegroundInverted = "var(--colorStatusSuccessForegroundInverted)";
|
|
1498
2389
|
|
|
1499
|
-
export declare const
|
|
2390
|
+
export declare const colorStatusWarningBackground1 = "var(--colorStatusWarningBackground1)";
|
|
1500
2391
|
|
|
1501
|
-
export declare const
|
|
2392
|
+
export declare const colorStatusWarningBackground2 = "var(--colorStatusWarningBackground2)";
|
|
2393
|
+
|
|
2394
|
+
export declare const colorStatusWarningBackground3 = "var(--colorStatusWarningBackground3)";
|
|
2395
|
+
|
|
2396
|
+
export declare const colorStatusWarningBorder1 = "var(--colorStatusWarningBorder1)";
|
|
2397
|
+
|
|
2398
|
+
export declare const colorStatusWarningBorder2 = "var(--colorStatusWarningBorder2)";
|
|
2399
|
+
|
|
2400
|
+
export declare const colorStatusWarningBorderActive = "var(--colorStatusWarningBorderActive)";
|
|
2401
|
+
|
|
2402
|
+
export declare const colorStatusWarningForeground1 = "var(--colorStatusWarningForeground1)";
|
|
2403
|
+
|
|
2404
|
+
export declare const colorStatusWarningForeground2 = "var(--colorStatusWarningForeground2)";
|
|
2405
|
+
|
|
2406
|
+
export declare const colorStatusWarningForeground3 = "var(--colorStatusWarningForeground3)";
|
|
2407
|
+
|
|
2408
|
+
export declare const colorStatusWarningForegroundInverted = "var(--colorStatusWarningForegroundInverted)";
|
|
2409
|
+
|
|
2410
|
+
export declare const colorStrokeFocus1 = "var(--colorStrokeFocus1)";
|
|
2411
|
+
|
|
2412
|
+
export declare const colorStrokeFocus2 = "var(--colorStrokeFocus2)";
|
|
2413
|
+
|
|
2414
|
+
export declare const colorSubtleBackground = "var(--colorSubtleBackground)";
|
|
2415
|
+
|
|
2416
|
+
export declare const colorSubtleBackgroundHover = "var(--colorSubtleBackgroundHover)";
|
|
2417
|
+
|
|
2418
|
+
export declare const colorSubtleBackgroundInverted = "var(--colorSubtleBackgroundInverted)";
|
|
2419
|
+
|
|
2420
|
+
export declare const colorSubtleBackgroundInvertedHover = "var(--colorSubtleBackgroundInvertedHover)";
|
|
2421
|
+
|
|
2422
|
+
export declare const colorSubtleBackgroundInvertedPressed = "var(--colorSubtleBackgroundInvertedPressed)";
|
|
2423
|
+
|
|
2424
|
+
export declare const colorSubtleBackgroundInvertedSelected = "var(--colorSubtleBackgroundInvertedSelected)";
|
|
2425
|
+
|
|
2426
|
+
export declare const colorSubtleBackgroundLightAlphaHover = "var(--colorSubtleBackgroundLightAlphaHover)";
|
|
2427
|
+
|
|
2428
|
+
export declare const colorSubtleBackgroundLightAlphaPressed = "var(--colorSubtleBackgroundLightAlphaPressed)";
|
|
2429
|
+
|
|
2430
|
+
export declare const colorSubtleBackgroundLightAlphaSelected = "var(--colorSubtleBackgroundLightAlphaSelected)";
|
|
2431
|
+
|
|
2432
|
+
export declare const colorSubtleBackgroundPressed = "var(--colorSubtleBackgroundPressed)";
|
|
2433
|
+
|
|
2434
|
+
export declare const colorSubtleBackgroundSelected = "var(--colorSubtleBackgroundSelected)";
|
|
2435
|
+
|
|
2436
|
+
export declare const colorTransparentBackground = "var(--colorTransparentBackground)";
|
|
2437
|
+
|
|
2438
|
+
export declare const colorTransparentBackgroundHover = "var(--colorTransparentBackgroundHover)";
|
|
2439
|
+
|
|
2440
|
+
export declare const colorTransparentBackgroundPressed = "var(--colorTransparentBackgroundPressed)";
|
|
2441
|
+
|
|
2442
|
+
export declare const colorTransparentBackgroundSelected = "var(--colorTransparentBackgroundSelected)";
|
|
2443
|
+
|
|
2444
|
+
export declare const colorTransparentStroke = "var(--colorTransparentStroke)";
|
|
2445
|
+
|
|
2446
|
+
export declare const colorTransparentStrokeDisabled = "var(--colorTransparentStrokeDisabled)";
|
|
2447
|
+
|
|
2448
|
+
export declare const colorTransparentStrokeInteractive = "var(--colorTransparentStrokeInteractive)";
|
|
1502
2449
|
|
|
1503
2450
|
/**
|
|
1504
2451
|
* The base class used for constructing a fluent-compound-button custom element
|
|
@@ -1516,6 +2463,10 @@ export declare const CompoundButtonAppearance: {
|
|
|
1516
2463
|
readonly outline: "outline";
|
|
1517
2464
|
readonly subtle: "subtle";
|
|
1518
2465
|
readonly secondary: "secondary";
|
|
2466
|
+
/**
|
|
2467
|
+
* A Compound Button can be secondary, primary, outline, subtle, transparent
|
|
2468
|
+
* @public
|
|
2469
|
+
*/
|
|
1519
2470
|
readonly transparent: "transparent";
|
|
1520
2471
|
};
|
|
1521
2472
|
|
|
@@ -1526,9 +2477,6 @@ export declare const CompoundButtonAppearance: {
|
|
|
1526
2477
|
export declare type CompoundButtonAppearance = ValuesOf<typeof CompoundButtonAppearance>;
|
|
1527
2478
|
|
|
1528
2479
|
/**
|
|
1529
|
-
* The Fluent Compound Button Element. Implements {@link @microsoft/fast-foundation#Button },
|
|
1530
|
-
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
1531
|
-
*
|
|
1532
2480
|
* @public
|
|
1533
2481
|
* @remarks
|
|
1534
2482
|
* HTML Element: \<fluent-comopund-button\>
|
|
@@ -1557,10 +2505,6 @@ export declare type CompoundButtonShape = ValuesOf<typeof CompoundButtonShape>;
|
|
|
1557
2505
|
*/
|
|
1558
2506
|
export declare const CompoundButtonSize: {
|
|
1559
2507
|
readonly small: "small";
|
|
1560
|
-
/**
|
|
1561
|
-
* A Compound Button can be on of several preset sizes.
|
|
1562
|
-
* @public
|
|
1563
|
-
*/
|
|
1564
2508
|
readonly medium: "medium";
|
|
1565
2509
|
readonly large: "large";
|
|
1566
2510
|
};
|
|
@@ -1579,6 +2523,13 @@ export declare const CompoundButtonStyles: ElementStyles;
|
|
|
1579
2523
|
*/
|
|
1580
2524
|
export declare const CompoundButtonTemplate: ElementViewTemplate<CompoundButton>;
|
|
1581
2525
|
|
|
2526
|
+
/**
|
|
2527
|
+
* Combined type to describe a Constructable Form-Associated type.
|
|
2528
|
+
*
|
|
2529
|
+
* @beta
|
|
2530
|
+
*/
|
|
2531
|
+
declare type ConstructableFormAssociated = Constructable<HTMLElement & FASTElement>;
|
|
2532
|
+
|
|
1582
2533
|
/**
|
|
1583
2534
|
* The base class used for constructing a fluent-badge custom element
|
|
1584
2535
|
* @public
|
|
@@ -1705,22 +2656,12 @@ export declare const CounterBadgeColor: {
|
|
|
1705
2656
|
export declare type CounterBadgeColor = ValuesOf<typeof CounterBadgeColor>;
|
|
1706
2657
|
|
|
1707
2658
|
/**
|
|
1708
|
-
* The Fluent CounterBadge Element. Implements {@link @microsoft/fast-foundation#Badge },
|
|
1709
|
-
* {@link @microsoft/fast-foundation#badgeTemplate}
|
|
1710
|
-
*
|
|
1711
|
-
*
|
|
1712
2659
|
* @public
|
|
1713
2660
|
* @remarks
|
|
1714
2661
|
* HTML Element: \<fluent-counter-badge\>
|
|
1715
2662
|
*/
|
|
1716
2663
|
export declare const CounterBadgeDefinition: FASTElementDefinition<typeof CounterBadge>;
|
|
1717
2664
|
|
|
1718
|
-
/**
|
|
1719
|
-
* CounterBadge options
|
|
1720
|
-
* @public
|
|
1721
|
-
*/
|
|
1722
|
-
export declare type CounterBadgeOptions = BadgeOptions;
|
|
1723
|
-
|
|
1724
2665
|
/**
|
|
1725
2666
|
* A CounterBadge shape can be circular or rounded.
|
|
1726
2667
|
* @public
|
|
@@ -1766,31 +2707,324 @@ export declare const CounterBadgeStyles: ElementStyles;
|
|
|
1766
2707
|
*/
|
|
1767
2708
|
export declare const CounterBadgeTemplate: ElementViewTemplate<CounterBadge>;
|
|
1768
2709
|
|
|
1769
|
-
|
|
2710
|
+
/**
|
|
2711
|
+
* Define all possible CSS display values.
|
|
2712
|
+
* @public
|
|
2713
|
+
*/
|
|
2714
|
+
declare 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';
|
|
2715
|
+
|
|
2716
|
+
export declare const curveAccelerateMax = "var(--curveAccelerateMax)";
|
|
2717
|
+
|
|
2718
|
+
export declare const curveAccelerateMid = "var(--curveAccelerateMid)";
|
|
2719
|
+
|
|
2720
|
+
export declare const curveAccelerateMin = "var(--curveAccelerateMin)";
|
|
1770
2721
|
|
|
1771
|
-
export declare const
|
|
2722
|
+
export declare const curveDecelerateMax = "var(--curveDecelerateMax)";
|
|
1772
2723
|
|
|
1773
|
-
export declare const
|
|
2724
|
+
export declare const curveDecelerateMid = "var(--curveDecelerateMid)";
|
|
1774
2725
|
|
|
1775
|
-
export declare const
|
|
2726
|
+
export declare const curveDecelerateMin = "var(--curveDecelerateMin)";
|
|
1776
2727
|
|
|
1777
|
-
export declare const
|
|
2728
|
+
export declare const curveEasyEase = "var(--curveEasyEase)";
|
|
1778
2729
|
|
|
1779
|
-
export declare const
|
|
2730
|
+
export declare const curveEasyEaseMax = "var(--curveEasyEaseMax)";
|
|
1780
2731
|
|
|
1781
|
-
export declare const
|
|
2732
|
+
export declare const curveLinear = "var(--curveLinear)";
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* This can be used to construct a behavior to apply a prefers color scheme: dark only stylesheet.
|
|
2736
|
+
* @public
|
|
2737
|
+
*/
|
|
2738
|
+
export declare const darkModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* Includes ARIA states and properties relating to the ARIA link role
|
|
2742
|
+
*
|
|
2743
|
+
* @public
|
|
2744
|
+
*/
|
|
2745
|
+
declare class DelegatesARIALink {
|
|
2746
|
+
/**
|
|
2747
|
+
* See {@link https://www.w3.org/WAI/PF/aria/roles#link} for more information
|
|
2748
|
+
* @public
|
|
2749
|
+
* @remarks
|
|
2750
|
+
* HTML Attribute: aria-expanded
|
|
2751
|
+
*/
|
|
2752
|
+
ariaExpanded: 'true' | 'false' | string | null;
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* Mark internal because exporting class and interface of the same name
|
|
2757
|
+
* confuses API documenter.
|
|
2758
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
2759
|
+
* @internal
|
|
2760
|
+
*/
|
|
2761
|
+
declare interface DelegatesARIALink extends ARIAGlobalStatesAndProperties {
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
/**
|
|
2765
|
+
* Includes ARIA states and properties relating to the ARIA textbox role
|
|
2766
|
+
*
|
|
2767
|
+
* @public
|
|
2768
|
+
*/
|
|
2769
|
+
declare class DelegatesARIATextbox {
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
declare interface DelegatesARIATextbox extends ARIAGlobalStatesAndProperties {
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
/**
|
|
2776
|
+
* Dialog component that extends the FASTElement class.
|
|
2777
|
+
*
|
|
2778
|
+
* @public
|
|
2779
|
+
* @extends FASTElement
|
|
2780
|
+
*/
|
|
2781
|
+
export declare class Dialog extends FASTElement {
|
|
2782
|
+
/**
|
|
2783
|
+
* @private
|
|
2784
|
+
* Indicates whether focus is being trapped within the dialog
|
|
2785
|
+
*/
|
|
2786
|
+
private isTrappingFocus;
|
|
2787
|
+
/**
|
|
2788
|
+
* @public
|
|
2789
|
+
* Lifecycle method called when the element is connected to the DOM
|
|
2790
|
+
*/
|
|
2791
|
+
connectedCallback(): void;
|
|
2792
|
+
/**
|
|
2793
|
+
* @public
|
|
2794
|
+
* Lifecycle method called when the element is disconnected from the DOM
|
|
2795
|
+
*/
|
|
2796
|
+
disconnectedCallback(): void;
|
|
2797
|
+
/**
|
|
2798
|
+
* @public
|
|
2799
|
+
* The dialog element
|
|
2800
|
+
*/
|
|
2801
|
+
dialog: HTMLDialogElement;
|
|
2802
|
+
/**
|
|
2803
|
+
* @public
|
|
2804
|
+
* The title action elements
|
|
2805
|
+
*/
|
|
2806
|
+
titleAction: HTMLElement[];
|
|
2807
|
+
/**
|
|
2808
|
+
* @public
|
|
2809
|
+
* The default title action button
|
|
2810
|
+
*/
|
|
2811
|
+
defaultTitleAction?: Button;
|
|
2812
|
+
/**
|
|
2813
|
+
* @public
|
|
2814
|
+
* The ID of the element that describes the dialog
|
|
2815
|
+
*/
|
|
2816
|
+
ariaDescribedby?: string;
|
|
2817
|
+
/**
|
|
2818
|
+
* @public
|
|
2819
|
+
* The ID of the element that labels the dialog
|
|
2820
|
+
*/
|
|
2821
|
+
ariaLabelledby?: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* @public
|
|
2824
|
+
* The type of the dialog modal
|
|
2825
|
+
*/
|
|
2826
|
+
modalType: DialogModalType;
|
|
2827
|
+
/**
|
|
2828
|
+
* @public
|
|
2829
|
+
* Indicates whether the dialog is open
|
|
2830
|
+
*/
|
|
2831
|
+
open: boolean;
|
|
2832
|
+
/**
|
|
2833
|
+
* @public
|
|
2834
|
+
* Indicates whether the dialog has a title action
|
|
2835
|
+
*/
|
|
2836
|
+
noTitleAction: boolean;
|
|
2837
|
+
/**
|
|
2838
|
+
* @private
|
|
2839
|
+
* Indicates whether focus should be trapped within the dialog
|
|
2840
|
+
*/
|
|
2841
|
+
private trapFocus;
|
|
2842
|
+
/**
|
|
2843
|
+
* @public
|
|
2844
|
+
* Method called when the 'open' attribute changes
|
|
2845
|
+
*/
|
|
2846
|
+
openChanged(oldValue: boolean, newValue: boolean): void;
|
|
2847
|
+
/**
|
|
2848
|
+
* @public
|
|
2849
|
+
* Method called when the 'modalType' attribute changes
|
|
2850
|
+
*/
|
|
2851
|
+
modalTypeChanged(oldValue: DialogModalType, newValue: DialogModalType): void;
|
|
2852
|
+
/**
|
|
2853
|
+
* @public
|
|
2854
|
+
* Method to set the component's state based on its attributes
|
|
2855
|
+
*/
|
|
2856
|
+
setComponent(): void;
|
|
2857
|
+
/**
|
|
2858
|
+
* @public
|
|
2859
|
+
* Method to emit an event when the dialog's open state changes
|
|
2860
|
+
* @param dismissed - Indicates whether the dialog was dismissed
|
|
2861
|
+
*/
|
|
2862
|
+
onOpenChangeEvent: (dismissed?: boolean) => void;
|
|
2863
|
+
/**
|
|
2864
|
+
* @public
|
|
2865
|
+
* Method to show the dialog
|
|
2866
|
+
*/
|
|
2867
|
+
show(): void;
|
|
2868
|
+
/**
|
|
2869
|
+
* @public
|
|
2870
|
+
* Method to hide the dialog
|
|
2871
|
+
* @param dismissed - Indicates whether the dialog was dismissed
|
|
2872
|
+
*/
|
|
2873
|
+
hide(dismissed?: boolean): void;
|
|
2874
|
+
/**
|
|
2875
|
+
* @public
|
|
2876
|
+
* Method to dismiss the dialog
|
|
2877
|
+
*/
|
|
2878
|
+
dismiss(): void;
|
|
2879
|
+
/**
|
|
2880
|
+
* @public
|
|
2881
|
+
* Handles click events on the dialog
|
|
2882
|
+
* @param event - The click event
|
|
2883
|
+
* @returns boolean
|
|
2884
|
+
*/
|
|
2885
|
+
handleClick(event: Event): boolean;
|
|
2886
|
+
/**
|
|
2887
|
+
* @public
|
|
2888
|
+
* Handles keydown events on the dialog
|
|
2889
|
+
* @param e - The keydown event
|
|
2890
|
+
* @returns boolean | void
|
|
2891
|
+
*/
|
|
2892
|
+
handleKeydown: (e: KeyboardEvent) => boolean | void;
|
|
2893
|
+
/**
|
|
2894
|
+
* @private
|
|
2895
|
+
* Handles keydown events on the document
|
|
2896
|
+
* @param e - The keydown event
|
|
2897
|
+
*/
|
|
2898
|
+
private handleDocumentKeydown;
|
|
2899
|
+
/**
|
|
2900
|
+
* @private
|
|
2901
|
+
* Handles tab keydown events
|
|
2902
|
+
* @param e - The keydown event
|
|
2903
|
+
*/
|
|
2904
|
+
private handleTabKeyDown;
|
|
2905
|
+
/**
|
|
2906
|
+
* @private
|
|
2907
|
+
* Gets the bounds of the tab queue
|
|
2908
|
+
* @returns (HTMLElement | SVGElement)[]
|
|
2909
|
+
*/
|
|
2910
|
+
private getTabQueueBounds;
|
|
2911
|
+
/**
|
|
2912
|
+
* @private
|
|
2913
|
+
* Focuses the first element in the tab queue
|
|
2914
|
+
*/
|
|
2915
|
+
private focusFirstElement;
|
|
2916
|
+
/**
|
|
2917
|
+
* @private
|
|
2918
|
+
* Determines if focus should be forced
|
|
2919
|
+
* @param currentFocusElement - The currently focused element
|
|
2920
|
+
* @returns boolean
|
|
2921
|
+
*/
|
|
2922
|
+
private shouldForceFocus;
|
|
2923
|
+
/**
|
|
2924
|
+
* @private
|
|
2925
|
+
* Determines if focus should be trapped
|
|
2926
|
+
* @returns boolean
|
|
2927
|
+
*/
|
|
2928
|
+
private shouldTrapFocus;
|
|
2929
|
+
/**
|
|
2930
|
+
* @private
|
|
2931
|
+
* Handles focus events on the document
|
|
2932
|
+
* @param e - The focus event
|
|
2933
|
+
*/
|
|
2934
|
+
private handleDocumentFocus;
|
|
2935
|
+
/**
|
|
2936
|
+
* @private
|
|
2937
|
+
* Updates the state of focus trapping
|
|
2938
|
+
* @param shouldTrapFocusOverride - Optional override for whether focus should be trapped
|
|
2939
|
+
*/
|
|
2940
|
+
private updateTrapFocus;
|
|
2941
|
+
/**
|
|
2942
|
+
* @private
|
|
2943
|
+
* Reduces the list of tabbable items
|
|
2944
|
+
* @param elements - The current list of elements
|
|
2945
|
+
* @param element - The element to consider adding to the list
|
|
2946
|
+
* @returns HTMLElement[]
|
|
2947
|
+
*/
|
|
2948
|
+
private static reduceTabbableItems;
|
|
2949
|
+
/**
|
|
2950
|
+
* @private
|
|
2951
|
+
* Determines if an element is a focusable FASTElement
|
|
2952
|
+
* @param element - The element to check
|
|
2953
|
+
* @returns boolean
|
|
2954
|
+
*/
|
|
2955
|
+
private static isFocusableFastElement;
|
|
2956
|
+
/**
|
|
2957
|
+
* @private
|
|
2958
|
+
* Determines if an element has a tabbable shadow
|
|
2959
|
+
* @param element - The element to check
|
|
2960
|
+
* @returns boolean
|
|
2961
|
+
*/
|
|
2962
|
+
private static hasTabbableShadow;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
/**
|
|
2966
|
+
* The Fluent Dialog Element
|
|
2967
|
+
*
|
|
2968
|
+
* @public
|
|
2969
|
+
* @remarks
|
|
2970
|
+
* HTML Element: \<fluent-dialog\>
|
|
2971
|
+
*/
|
|
2972
|
+
export declare const DialogDefinition: FASTElementDefinition<typeof Dialog>;
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* Dialog modal type
|
|
2976
|
+
* @public
|
|
2977
|
+
*/
|
|
2978
|
+
export declare const DialogModalType: {
|
|
2979
|
+
readonly modal: "modal";
|
|
2980
|
+
readonly nonModal: "non-modal";
|
|
2981
|
+
readonly alert: "alert";
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
export declare type DialogModalType = ValuesOf<typeof DialogModalType>;
|
|
2985
|
+
|
|
2986
|
+
/** Dialog styles
|
|
2987
|
+
* @public
|
|
2988
|
+
*/
|
|
2989
|
+
export declare const DialogStyles: ElementStyles;
|
|
1782
2990
|
|
|
1783
|
-
|
|
2991
|
+
/**
|
|
2992
|
+
* Template for the Dialog component
|
|
2993
|
+
* @public
|
|
2994
|
+
*/
|
|
2995
|
+
export declare const DialogTemplate: ElementViewTemplate<Dialog>;
|
|
1784
2996
|
|
|
1785
|
-
|
|
2997
|
+
/**
|
|
2998
|
+
* Applies a CSS display property.
|
|
2999
|
+
* Also adds CSS rules to not display the element when the [hidden] attribute is applied to the element.
|
|
3000
|
+
* @param display - The CSS display property value
|
|
3001
|
+
* @public
|
|
3002
|
+
*/
|
|
3003
|
+
export declare function display(displayValue: CSSDisplayPropertyValue): string;
|
|
1786
3004
|
|
|
1787
3005
|
/**
|
|
1788
3006
|
* @class Divider component
|
|
1789
3007
|
*
|
|
1790
3008
|
* @remarks
|
|
1791
|
-
*
|
|
3009
|
+
* A divider groups sections of content to create visual rhythm and hierarchy. Use dividers along with spacing and headers to organize content in your layout.
|
|
1792
3010
|
*/
|
|
1793
|
-
export declare class Divider extends
|
|
3011
|
+
export declare class Divider extends FASTElement {
|
|
3012
|
+
/**
|
|
3013
|
+
* The role of the element.
|
|
3014
|
+
*
|
|
3015
|
+
* @public
|
|
3016
|
+
* @remarks
|
|
3017
|
+
* HTML Attribute: role
|
|
3018
|
+
*/
|
|
3019
|
+
role: DividerRole;
|
|
3020
|
+
/**
|
|
3021
|
+
* The orientation of the divider.
|
|
3022
|
+
*
|
|
3023
|
+
* @public
|
|
3024
|
+
* @remarks
|
|
3025
|
+
* HTML Attribute: orientation
|
|
3026
|
+
*/
|
|
3027
|
+
orientation: DividerOrientation;
|
|
1794
3028
|
/**
|
|
1795
3029
|
* @property alignContent
|
|
1796
3030
|
* @default center
|
|
@@ -1856,9 +3090,44 @@ export declare type DividerAppearance = ValuesOf<typeof DividerAppearance>;
|
|
|
1856
3090
|
*/
|
|
1857
3091
|
export declare const DividerDefinition: FASTElementDefinition<typeof Divider>;
|
|
1858
3092
|
|
|
1859
|
-
|
|
3093
|
+
/**
|
|
3094
|
+
* Divider orientation
|
|
3095
|
+
* @public
|
|
3096
|
+
*/
|
|
3097
|
+
export declare const DividerOrientation: {
|
|
3098
|
+
readonly horizontal: "horizontal"; /**
|
|
3099
|
+
* Divider roles
|
|
3100
|
+
* @public
|
|
3101
|
+
*/
|
|
3102
|
+
readonly vertical: "vertical";
|
|
3103
|
+
};
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* The types for Divider orientation
|
|
3107
|
+
* @public
|
|
3108
|
+
*/
|
|
3109
|
+
export declare type DividerOrientation = ValuesOf<typeof DividerOrientation>;
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Divider roles
|
|
3113
|
+
* @public
|
|
3114
|
+
*/
|
|
3115
|
+
export declare const DividerRole: {
|
|
3116
|
+
/**
|
|
3117
|
+
* The divider semantically separates content
|
|
3118
|
+
*/
|
|
3119
|
+
readonly separator: "separator";
|
|
3120
|
+
/**
|
|
3121
|
+
* The divider has no semantic value and is for visual presentation only.
|
|
3122
|
+
*/
|
|
3123
|
+
readonly presentation: "presentation";
|
|
3124
|
+
};
|
|
1860
3125
|
|
|
1861
|
-
|
|
3126
|
+
/**
|
|
3127
|
+
* The types for Divider roles
|
|
3128
|
+
* @public
|
|
3129
|
+
*/
|
|
3130
|
+
export declare type DividerRole = ValuesOf<typeof DividerRole>;
|
|
1862
3131
|
|
|
1863
3132
|
/** Divider styles
|
|
1864
3133
|
* @public
|
|
@@ -1871,19 +3140,29 @@ export declare const DividerStyles: ElementStyles;
|
|
|
1871
3140
|
*/
|
|
1872
3141
|
export declare const DividerTemplate: ElementViewTemplate<Divider>;
|
|
1873
3142
|
|
|
1874
|
-
export declare const durationFast
|
|
3143
|
+
export declare const durationFast = "var(--durationFast)";
|
|
1875
3144
|
|
|
1876
|
-
export declare const durationFaster
|
|
3145
|
+
export declare const durationFaster = "var(--durationFaster)";
|
|
1877
3146
|
|
|
1878
|
-
export declare const
|
|
3147
|
+
export declare const durationGentle = "var(--durationGentle)";
|
|
1879
3148
|
|
|
1880
|
-
export declare const
|
|
3149
|
+
export declare const durationNormal = "var(--durationNormal)";
|
|
1881
3150
|
|
|
1882
|
-
export declare const
|
|
3151
|
+
export declare const durationSlow = "var(--durationSlow)";
|
|
1883
3152
|
|
|
1884
|
-
export declare const
|
|
3153
|
+
export declare const durationSlower = "var(--durationSlower)";
|
|
1885
3154
|
|
|
1886
|
-
export declare const
|
|
3155
|
+
export declare const durationUltraFast = "var(--durationUltraFast)";
|
|
3156
|
+
|
|
3157
|
+
export declare const durationUltraSlow = "var(--durationUltraSlow)";
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* End configuration options
|
|
3161
|
+
* @public
|
|
3162
|
+
*/
|
|
3163
|
+
declare type EndOptions<TSource = any, TParent = any> = {
|
|
3164
|
+
end?: StaticallyComposableHTML<TSource, TParent>;
|
|
3165
|
+
};
|
|
1887
3166
|
|
|
1888
3167
|
export declare const FluentDesignSystem: Readonly<{
|
|
1889
3168
|
prefix: "fluent";
|
|
@@ -1891,39 +3170,142 @@ export declare const FluentDesignSystem: Readonly<{
|
|
|
1891
3170
|
registry: CustomElementRegistry;
|
|
1892
3171
|
}>;
|
|
1893
3172
|
|
|
1894
|
-
export declare const fontFamilyBase
|
|
3173
|
+
export declare const fontFamilyBase = "var(--fontFamilyBase)";
|
|
3174
|
+
|
|
3175
|
+
export declare const fontFamilyMonospace = "var(--fontFamilyMonospace)";
|
|
3176
|
+
|
|
3177
|
+
export declare const fontFamilyNumeric = "var(--fontFamilyNumeric)";
|
|
3178
|
+
|
|
3179
|
+
export declare const fontSizeBase100 = "var(--fontSizeBase100)";
|
|
3180
|
+
|
|
3181
|
+
export declare const fontSizeBase200 = "var(--fontSizeBase200)";
|
|
3182
|
+
|
|
3183
|
+
export declare const fontSizeBase300 = "var(--fontSizeBase300)";
|
|
3184
|
+
|
|
3185
|
+
export declare const fontSizeBase400 = "var(--fontSizeBase400)";
|
|
1895
3186
|
|
|
1896
|
-
export declare const
|
|
3187
|
+
export declare const fontSizeBase500 = "var(--fontSizeBase500)";
|
|
1897
3188
|
|
|
1898
|
-
export declare const
|
|
3189
|
+
export declare const fontSizeBase600 = "var(--fontSizeBase600)";
|
|
1899
3190
|
|
|
1900
|
-
export declare const
|
|
3191
|
+
export declare const fontSizeHero1000 = "var(--fontSizeHero1000)";
|
|
1901
3192
|
|
|
1902
|
-
export declare const
|
|
3193
|
+
export declare const fontSizeHero700 = "var(--fontSizeHero700)";
|
|
1903
3194
|
|
|
1904
|
-
export declare const
|
|
3195
|
+
export declare const fontSizeHero800 = "var(--fontSizeHero800)";
|
|
3196
|
+
|
|
3197
|
+
export declare const fontSizeHero900 = "var(--fontSizeHero900)";
|
|
3198
|
+
|
|
3199
|
+
export declare const fontWeightBold = "var(--fontWeightBold)";
|
|
3200
|
+
|
|
3201
|
+
export declare const fontWeightMedium = "var(--fontWeightMedium)";
|
|
3202
|
+
|
|
3203
|
+
export declare const fontWeightRegular = "var(--fontWeightRegular)";
|
|
3204
|
+
|
|
3205
|
+
export declare const fontWeightSemibold = "var(--fontWeightSemibold)";
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
* This can be used to construct a behavior to apply a forced-colors only stylesheet.
|
|
3209
|
+
* @public
|
|
3210
|
+
*/
|
|
3211
|
+
export declare const forcedColorsStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
3212
|
+
|
|
3213
|
+
/**
|
|
3214
|
+
* Base function for providing Custom Element Form Association.
|
|
3215
|
+
*
|
|
3216
|
+
* @beta
|
|
3217
|
+
*/
|
|
3218
|
+
declare function FormAssociated<T extends ConstructableFormAssociated>(BaseCtor: T): T;
|
|
3219
|
+
|
|
3220
|
+
/**
|
|
3221
|
+
* Base class for providing Custom Element Form Association.
|
|
3222
|
+
*
|
|
3223
|
+
* @beta
|
|
3224
|
+
*/
|
|
3225
|
+
declare interface FormAssociated extends Omit<ElementInternals, 'labels'> {
|
|
3226
|
+
dirtyValue: boolean;
|
|
3227
|
+
disabled: boolean;
|
|
3228
|
+
readonly elementInternals: ElementInternals | null;
|
|
3229
|
+
readonly formAssociated: boolean;
|
|
3230
|
+
initialValue: string;
|
|
3231
|
+
readonly labels: ReadonlyArray<Node[]>;
|
|
3232
|
+
name: string;
|
|
3233
|
+
required: boolean;
|
|
3234
|
+
value: string;
|
|
3235
|
+
currentValue: string;
|
|
3236
|
+
attachProxy(): void;
|
|
3237
|
+
detachProxy(): void;
|
|
3238
|
+
disabledChanged?(previous: boolean, next: boolean): void;
|
|
3239
|
+
formDisabledCallback?(disabled: boolean): void;
|
|
3240
|
+
formResetCallback(): void;
|
|
3241
|
+
initialValueChanged?(previous: string, next: string): void;
|
|
3242
|
+
nameChanged?(previous: string, next: string): void;
|
|
3243
|
+
requiredChanged(prev: boolean, next: boolean): void;
|
|
3244
|
+
stopPropagation(e: Event): void;
|
|
3245
|
+
/**
|
|
3246
|
+
* Sets the validity of the custom element. By default this uses the proxy element to determine
|
|
3247
|
+
* validity, but this can be extended or replaced in implementation.
|
|
3248
|
+
*
|
|
3249
|
+
* @param anchor - The anchor element to provide to ElementInternals.setValidity for surfacing the browser's constraint validation UI
|
|
3250
|
+
*/
|
|
3251
|
+
validate(anchor?: HTMLElement): void;
|
|
3252
|
+
valueChanged(previous: string, next: string): void;
|
|
3253
|
+
}
|
|
1905
3254
|
|
|
1906
|
-
|
|
3255
|
+
/**
|
|
3256
|
+
* @beta
|
|
3257
|
+
*/
|
|
3258
|
+
declare class FormAssociatedCheckbox extends FormAssociatedCheckbox_base {
|
|
3259
|
+
proxy: HTMLInputElement;
|
|
3260
|
+
}
|
|
1907
3261
|
|
|
1908
|
-
|
|
3262
|
+
declare const FormAssociatedCheckbox_base: typeof _Checkbox;
|
|
1909
3263
|
|
|
1910
|
-
|
|
3264
|
+
/**
|
|
3265
|
+
* @beta
|
|
3266
|
+
*/
|
|
3267
|
+
declare class FormAssociatedRadio extends FormAssociatedRadio_base {
|
|
3268
|
+
proxy: HTMLInputElement;
|
|
3269
|
+
}
|
|
1911
3270
|
|
|
1912
|
-
|
|
3271
|
+
declare const FormAssociatedRadio_base: typeof _Radio;
|
|
1913
3272
|
|
|
1914
|
-
|
|
3273
|
+
/**
|
|
3274
|
+
* @beta
|
|
3275
|
+
*/
|
|
3276
|
+
declare class FormAssociatedSlider extends FormAssociatedSlider_base {
|
|
3277
|
+
proxy: HTMLInputElement;
|
|
3278
|
+
}
|
|
1915
3279
|
|
|
1916
|
-
|
|
3280
|
+
declare const FormAssociatedSlider_base: typeof _Slider;
|
|
1917
3281
|
|
|
1918
|
-
|
|
3282
|
+
/**
|
|
3283
|
+
* @beta
|
|
3284
|
+
*/
|
|
3285
|
+
declare class FormAssociatedSwitch extends FormAssociatedSwitch_base {
|
|
3286
|
+
proxy: HTMLInputElement;
|
|
3287
|
+
}
|
|
1919
3288
|
|
|
1920
|
-
|
|
3289
|
+
declare const FormAssociatedSwitch_base: typeof _Switch;
|
|
1921
3290
|
|
|
1922
|
-
|
|
3291
|
+
/**
|
|
3292
|
+
* @beta
|
|
3293
|
+
*/
|
|
3294
|
+
declare class FormAssociatedTextField extends FormAssociatedTextField_base {
|
|
3295
|
+
proxy: HTMLInputElement;
|
|
3296
|
+
}
|
|
1923
3297
|
|
|
1924
|
-
|
|
3298
|
+
declare const FormAssociatedTextField_base: typeof _TextField;
|
|
1925
3299
|
|
|
1926
|
-
|
|
3300
|
+
/**
|
|
3301
|
+
* Determines the current localization direction of an element.
|
|
3302
|
+
*
|
|
3303
|
+
* @param rootNode - the HTMLElement to begin the query from, usually "this" when used in a component controller
|
|
3304
|
+
* @returns the localization direction of the element
|
|
3305
|
+
*
|
|
3306
|
+
* @public
|
|
3307
|
+
*/
|
|
3308
|
+
export declare const getDirection: (rootNode: HTMLElement) => Direction;
|
|
1927
3309
|
|
|
1928
3310
|
/**
|
|
1929
3311
|
* The base class used for constucting a fluent image custom element
|
|
@@ -2030,107 +3412,417 @@ export declare const ImageTemplate: ElementViewTemplate<Image_2>;
|
|
|
2030
3412
|
*/
|
|
2031
3413
|
export declare class Label extends FASTElement {
|
|
2032
3414
|
/**
|
|
2033
|
-
* Specifies font size of a label
|
|
2034
|
-
*
|
|
3415
|
+
* Specifies font size of a label
|
|
3416
|
+
*
|
|
3417
|
+
* @public
|
|
3418
|
+
* @default 'medium'
|
|
3419
|
+
* @remarks
|
|
3420
|
+
* HTML Attribute: size
|
|
3421
|
+
*/
|
|
3422
|
+
size?: LabelSize;
|
|
3423
|
+
/**
|
|
3424
|
+
* Specifies font weight of a label
|
|
3425
|
+
*
|
|
3426
|
+
* @public
|
|
3427
|
+
* @default 'regular'
|
|
3428
|
+
* @remarks
|
|
3429
|
+
* HTML Attribute: weight
|
|
3430
|
+
*/
|
|
3431
|
+
weight?: LabelWeight;
|
|
3432
|
+
/**
|
|
3433
|
+
* Specifies styles for label when associated input is disabled
|
|
3434
|
+
*
|
|
3435
|
+
* @public
|
|
3436
|
+
* @remarks
|
|
3437
|
+
* HTML Attribute: disabled
|
|
3438
|
+
*/
|
|
3439
|
+
disabled: boolean;
|
|
3440
|
+
/**
|
|
3441
|
+
* Specifies styles for label when associated input is a required field
|
|
3442
|
+
*
|
|
3443
|
+
* @public
|
|
3444
|
+
* @remarks
|
|
3445
|
+
* HTML Attribute: required
|
|
3446
|
+
*/
|
|
3447
|
+
required: boolean;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
/**
|
|
3451
|
+
* The Fluent Label Element.
|
|
3452
|
+
*
|
|
3453
|
+
*
|
|
3454
|
+
* @public
|
|
3455
|
+
* @remarks
|
|
3456
|
+
* HTML Element: \<fluent-label\>
|
|
3457
|
+
*/
|
|
3458
|
+
export declare const LabelDefinition: FASTElementDefinition<typeof Label>;
|
|
3459
|
+
|
|
3460
|
+
/**
|
|
3461
|
+
* A Labels font size can be small, medium, or large
|
|
3462
|
+
*/
|
|
3463
|
+
export declare const LabelSize: {
|
|
3464
|
+
readonly small: "small";
|
|
3465
|
+
readonly medium: "medium";
|
|
3466
|
+
readonly large: "large";
|
|
3467
|
+
};
|
|
3468
|
+
|
|
3469
|
+
/**
|
|
3470
|
+
* Applies font size to label
|
|
3471
|
+
* @public
|
|
3472
|
+
*/
|
|
3473
|
+
export declare type LabelSize = ValuesOf<typeof LabelSize>;
|
|
3474
|
+
|
|
3475
|
+
/** Label styles
|
|
3476
|
+
* @public
|
|
3477
|
+
*/
|
|
3478
|
+
export declare const LabelStyles: ElementStyles;
|
|
3479
|
+
|
|
3480
|
+
export declare const LabelTemplate: ElementViewTemplate<Label>;
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
* A label can have a font weight of regular or strong
|
|
3484
|
+
*/
|
|
3485
|
+
export declare const LabelWeight: {
|
|
3486
|
+
readonly regular: "regular";
|
|
3487
|
+
readonly semibold: "semibold";
|
|
3488
|
+
};
|
|
3489
|
+
|
|
3490
|
+
/**
|
|
3491
|
+
* Applies font weight to label
|
|
3492
|
+
* @public
|
|
3493
|
+
*/
|
|
3494
|
+
export declare type LabelWeight = ValuesOf<typeof LabelWeight>;
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* This can be used to construct a behavior to apply a prefers color scheme: light only stylesheet.
|
|
3498
|
+
* @public
|
|
3499
|
+
*/
|
|
3500
|
+
export declare const lightModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
3501
|
+
|
|
3502
|
+
export declare const lineHeightBase100 = "var(--lineHeightBase100)";
|
|
3503
|
+
|
|
3504
|
+
export declare const lineHeightBase200 = "var(--lineHeightBase200)";
|
|
3505
|
+
|
|
3506
|
+
export declare const lineHeightBase300 = "var(--lineHeightBase300)";
|
|
3507
|
+
|
|
3508
|
+
export declare const lineHeightBase400 = "var(--lineHeightBase400)";
|
|
3509
|
+
|
|
3510
|
+
export declare const lineHeightBase500 = "var(--lineHeightBase500)";
|
|
3511
|
+
|
|
3512
|
+
export declare const lineHeightBase600 = "var(--lineHeightBase600)";
|
|
3513
|
+
|
|
3514
|
+
export declare const lineHeightHero1000 = "var(--lineHeightHero1000)";
|
|
3515
|
+
|
|
3516
|
+
export declare const lineHeightHero700 = "var(--lineHeightHero700)";
|
|
3517
|
+
|
|
3518
|
+
export declare const lineHeightHero800 = "var(--lineHeightHero800)";
|
|
3519
|
+
|
|
3520
|
+
export declare const lineHeightHero900 = "var(--lineHeightHero900)";
|
|
3521
|
+
|
|
3522
|
+
/**
|
|
3523
|
+
* An abstract behavior to react to media queries. Implementations should implement
|
|
3524
|
+
* the `constructListener` method to perform some action based on media query changes.
|
|
3525
|
+
*
|
|
3526
|
+
* @public
|
|
3527
|
+
*/
|
|
3528
|
+
export declare abstract class MatchMediaBehavior implements HostBehavior {
|
|
3529
|
+
/**
|
|
3530
|
+
* The behavior needs to operate on element instances but elements might share a behavior instance.
|
|
3531
|
+
* To ensure proper attachment / detachment per instance, we construct a listener for
|
|
3532
|
+
* each bind invocation and cache the listeners by element reference.
|
|
3533
|
+
*/
|
|
3534
|
+
private listenerCache;
|
|
3535
|
+
/**
|
|
3536
|
+
* The media query that the behavior operates on.
|
|
3537
|
+
*/
|
|
3538
|
+
readonly query: MediaQueryList;
|
|
3539
|
+
/**
|
|
3540
|
+
*
|
|
3541
|
+
* @param query - The media query to operate from.
|
|
3542
|
+
*/
|
|
3543
|
+
constructor(query: MediaQueryList);
|
|
3544
|
+
/**
|
|
3545
|
+
* Constructs a function that will be invoked with the MediaQueryList context
|
|
3546
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
3547
|
+
*/
|
|
3548
|
+
protected abstract constructListener(controller: HostController): MediaQueryListListener;
|
|
3549
|
+
/**
|
|
3550
|
+
* Binds the behavior to the element.
|
|
3551
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
3552
|
+
*/
|
|
3553
|
+
connectedCallback(controller: HostController): void;
|
|
3554
|
+
/**
|
|
3555
|
+
* Unbinds the behavior from the element.
|
|
3556
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
3557
|
+
*/
|
|
3558
|
+
disconnectedCallback(controller: HostController): void;
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
/**
|
|
3562
|
+
* A behavior to add or remove a stylesheet from an element based on a media query. The behavior ensures that
|
|
3563
|
+
* styles are applied while the a query matches the environment and that styles are not applied if the query does
|
|
3564
|
+
* not match the environment.
|
|
3565
|
+
*
|
|
3566
|
+
* @public
|
|
3567
|
+
*/
|
|
3568
|
+
export declare class MatchMediaStyleSheetBehavior extends MatchMediaBehavior {
|
|
3569
|
+
/**
|
|
3570
|
+
* The media query that the behavior operates on.
|
|
3571
|
+
*/
|
|
3572
|
+
readonly query: MediaQueryList;
|
|
3573
|
+
/**
|
|
3574
|
+
* The styles object to be managed by the behavior.
|
|
3575
|
+
*/
|
|
3576
|
+
readonly styles: ElementStyles;
|
|
3577
|
+
/**
|
|
3578
|
+
* Constructs a {@link MatchMediaStyleSheetBehavior} instance.
|
|
3579
|
+
* @param query - The media query to operate from.
|
|
3580
|
+
* @param styles - The styles to coordinate with the query.
|
|
3581
|
+
*/
|
|
3582
|
+
constructor(query: MediaQueryList, styles: ElementStyles);
|
|
3583
|
+
/**
|
|
3584
|
+
* Defines a function to construct {@link MatchMediaStyleSheetBehavior | MatchMediaStyleSheetBehaviors} for
|
|
3585
|
+
* a provided query.
|
|
3586
|
+
* @param query - The media query to operate from.
|
|
3587
|
+
*
|
|
3588
|
+
* @public
|
|
3589
|
+
* @example
|
|
3590
|
+
*
|
|
3591
|
+
* ```ts
|
|
3592
|
+
* import { css } from "@microsoft/fast-element";
|
|
3593
|
+
* import { MatchMediaStyleSheetBehavior } from "@fluentui/web-components";
|
|
3594
|
+
*
|
|
3595
|
+
* const landscapeBehavior = MatchMediaStyleSheetBehavior.with(
|
|
3596
|
+
* window.matchMedia("(orientation: landscape)")
|
|
3597
|
+
* );
|
|
3598
|
+
*
|
|
3599
|
+
* const styles = css`
|
|
3600
|
+
* :host {
|
|
3601
|
+
* width: 200px;
|
|
3602
|
+
* height: 400px;
|
|
3603
|
+
* }
|
|
3604
|
+
* `
|
|
3605
|
+
* .withBehaviors(landscapeBehavior(css`
|
|
3606
|
+
* :host {
|
|
3607
|
+
* width: 400px;
|
|
3608
|
+
* height: 200px;
|
|
3609
|
+
* }
|
|
3610
|
+
* `))
|
|
3611
|
+
* ```
|
|
3612
|
+
*/
|
|
3613
|
+
static with(query: MediaQueryList): (styles: ElementStyles) => MatchMediaStyleSheetBehavior;
|
|
3614
|
+
/**
|
|
3615
|
+
* Constructs a match-media listener for a provided element.
|
|
3616
|
+
* @param source - the element for which to attach or detach styles.
|
|
3617
|
+
*/
|
|
3618
|
+
protected constructListener(controller: HostController): MediaQueryListListener;
|
|
3619
|
+
/**
|
|
3620
|
+
* Unbinds the behavior from the element.
|
|
3621
|
+
* @param controller - The host controller orchestrating this behavior.
|
|
3622
|
+
* @internal
|
|
3623
|
+
*/
|
|
3624
|
+
removedCallback(controller: HostController<any>): void;
|
|
3625
|
+
}
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* An event listener fired by a {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList | MediaQueryList }.
|
|
3629
|
+
* @public
|
|
3630
|
+
*/
|
|
3631
|
+
export declare type MediaQueryListListener = (this: MediaQueryList, ev?: MediaQueryListEvent) => void;
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* The Menu class represents a menu component.
|
|
3635
|
+
* @public
|
|
3636
|
+
*/
|
|
3637
|
+
export declare class Menu extends FASTElement {
|
|
3638
|
+
/**
|
|
3639
|
+
* Determines if the menu should open on hover.
|
|
3640
|
+
* @public
|
|
3641
|
+
*/
|
|
3642
|
+
openOnHover?: boolean;
|
|
3643
|
+
/**
|
|
3644
|
+
* Determines if the menu should open on right click.
|
|
3645
|
+
* @public
|
|
3646
|
+
*/
|
|
3647
|
+
openOnContext?: boolean;
|
|
3648
|
+
/**
|
|
3649
|
+
* Determines if the menu should close on scroll.
|
|
3650
|
+
* @public
|
|
3651
|
+
*/
|
|
3652
|
+
closeOnScroll?: boolean;
|
|
3653
|
+
/**
|
|
3654
|
+
* Determines if the menu open state should persis on click of menu item
|
|
3655
|
+
* @public
|
|
3656
|
+
*/
|
|
3657
|
+
persistOnItemClick?: boolean;
|
|
3658
|
+
/**
|
|
3659
|
+
* Defines whether the menu is open or not.
|
|
3660
|
+
* @public
|
|
3661
|
+
*/
|
|
3662
|
+
open: boolean;
|
|
3663
|
+
/**
|
|
3664
|
+
* Holds the slotted menu list.
|
|
3665
|
+
* @public
|
|
3666
|
+
*/
|
|
3667
|
+
slottedMenuList: MenuList[];
|
|
3668
|
+
/**
|
|
3669
|
+
* Holds the slotted triggers.
|
|
3670
|
+
* @public
|
|
3671
|
+
*/
|
|
3672
|
+
slottedTriggers: HTMLElement[];
|
|
3673
|
+
/**
|
|
3674
|
+
* The positioning container of the menu.
|
|
3675
|
+
* @internal
|
|
3676
|
+
*/
|
|
3677
|
+
positioningContainer?: HTMLElement;
|
|
3678
|
+
/**
|
|
3679
|
+
* The trigger element of the menu.
|
|
3680
|
+
* @private
|
|
3681
|
+
*/
|
|
3682
|
+
private _trigger?;
|
|
3683
|
+
/**
|
|
3684
|
+
* The menu list element of the menu.
|
|
3685
|
+
* @private
|
|
3686
|
+
*/
|
|
3687
|
+
private _menuList?;
|
|
3688
|
+
/**
|
|
3689
|
+
* Holds a reference to a function that is used to cleanup resources.
|
|
2035
3690
|
* @public
|
|
2036
|
-
* @default 'medium'
|
|
2037
|
-
* @remarks
|
|
2038
|
-
* HTML Attribute: size
|
|
2039
3691
|
*/
|
|
2040
|
-
|
|
3692
|
+
cleanup?: () => void;
|
|
2041
3693
|
/**
|
|
2042
|
-
*
|
|
2043
|
-
*
|
|
3694
|
+
* Called when the element is connected to the DOM.
|
|
3695
|
+
* Sets up the component.
|
|
2044
3696
|
* @public
|
|
2045
|
-
* @default 'regular'
|
|
2046
|
-
* @remarks
|
|
2047
|
-
* HTML Attribute: weight
|
|
2048
3697
|
*/
|
|
2049
|
-
|
|
3698
|
+
connectedCallback(): void;
|
|
2050
3699
|
/**
|
|
2051
|
-
*
|
|
2052
|
-
*
|
|
3700
|
+
* Called when the element is disconnected from the DOM.
|
|
3701
|
+
* Removes event listeners.
|
|
2053
3702
|
* @public
|
|
2054
|
-
* @remarks
|
|
2055
|
-
* HTML Attribute: disabled
|
|
2056
3703
|
*/
|
|
2057
|
-
|
|
3704
|
+
disconnectedCallback(): void;
|
|
2058
3705
|
/**
|
|
2059
|
-
*
|
|
2060
|
-
*
|
|
3706
|
+
* Sets the component.
|
|
3707
|
+
* Sets the trigger and menu list elements and adds event listeners.
|
|
2061
3708
|
* @public
|
|
2062
|
-
* @remarks
|
|
2063
|
-
* HTML Attribute: required
|
|
2064
3709
|
*/
|
|
2065
|
-
|
|
3710
|
+
setComponent(): void;
|
|
3711
|
+
/**
|
|
3712
|
+
* Toggles the open state of the menu.
|
|
3713
|
+
* @public
|
|
3714
|
+
*/
|
|
3715
|
+
toggleMenu: () => void;
|
|
3716
|
+
/**
|
|
3717
|
+
* Closes the menu.
|
|
3718
|
+
* @public
|
|
3719
|
+
*/
|
|
3720
|
+
closeMenu: () => void;
|
|
3721
|
+
/**
|
|
3722
|
+
* Opens the menu.
|
|
3723
|
+
* @public
|
|
3724
|
+
*/
|
|
3725
|
+
openMenu: (e?: Event) => void;
|
|
3726
|
+
/**
|
|
3727
|
+
* Focuses on the menu list.
|
|
3728
|
+
* @public
|
|
3729
|
+
*/
|
|
3730
|
+
focusMenuList(): void;
|
|
3731
|
+
/**
|
|
3732
|
+
* Focuses on the menu trigger.
|
|
3733
|
+
* @public
|
|
3734
|
+
*/
|
|
3735
|
+
focusTrigger(): void;
|
|
3736
|
+
/**
|
|
3737
|
+
* Called whenever the open state changes.
|
|
3738
|
+
* Updates the 'aria-expanded' attribute and sets the positioning of the menu.
|
|
3739
|
+
* Sets menu list position
|
|
3740
|
+
* emits openChanged event
|
|
3741
|
+
* @public
|
|
3742
|
+
* @param {boolean} oldValue - The previous value of 'open'.
|
|
3743
|
+
* @param {boolean} newValue - The new value of 'open'.
|
|
3744
|
+
*/
|
|
3745
|
+
openChanged(oldValue: boolean, newValue: boolean): void;
|
|
3746
|
+
/**
|
|
3747
|
+
* Called whenever the 'openOnHover' property changes.
|
|
3748
|
+
* Adds or removes a 'mouseover' event listener to the trigger based on the new value.
|
|
3749
|
+
* @public
|
|
3750
|
+
* @param {boolean} oldValue - The previous value of 'openOnHover'.
|
|
3751
|
+
* @param {boolean} newValue - The new value of 'openOnHover'.
|
|
3752
|
+
*/
|
|
3753
|
+
openOnHoverChanged(oldValue: boolean, newValue: boolean): void;
|
|
3754
|
+
/**
|
|
3755
|
+
* Called whenever the 'persistOnItemClick' property changes.
|
|
3756
|
+
* Adds or removes a 'click' event listener to the menu list based on the new value.
|
|
3757
|
+
* @public
|
|
3758
|
+
* @param {boolean} oldValue - The previous value of 'persistOnItemClick'.
|
|
3759
|
+
* @param {boolean} newValue - The new value of 'persistOnItemClick'.
|
|
3760
|
+
*/
|
|
3761
|
+
persistOnItemClickChanged(oldValue: boolean, newValue: boolean): void;
|
|
3762
|
+
/**
|
|
3763
|
+
* Called whenever the 'openOnContext' property changes.
|
|
3764
|
+
* Adds or removes a 'contextmenu' event listener to the trigger based on the new value.
|
|
3765
|
+
* @public
|
|
3766
|
+
* @param {boolean} oldValue - The previous value of 'openOnContext'.
|
|
3767
|
+
* @param {boolean} newValue - The new value of 'openOnContext'.
|
|
3768
|
+
*/
|
|
3769
|
+
openOnContextChanged(oldValue: boolean, newValue: boolean): void;
|
|
3770
|
+
/**
|
|
3771
|
+
* Called whenever the 'closeOnScroll' property changes.
|
|
3772
|
+
* Adds or removes a 'closeOnScroll' event listener to the trigger based on the new value.
|
|
3773
|
+
* @public
|
|
3774
|
+
* @param {boolean} oldValue - The previous value of 'closeOnScroll'.
|
|
3775
|
+
* @param {boolean} newValue - The new value of 'closeOnScroll'.
|
|
3776
|
+
*/
|
|
3777
|
+
closeOnScrollChanged(oldValue: boolean, newValue: boolean): void;
|
|
3778
|
+
/**
|
|
3779
|
+
* The task to set the positioning of the menu.
|
|
3780
|
+
* @protected
|
|
3781
|
+
*/
|
|
3782
|
+
protected setPositioningTask: () => void;
|
|
3783
|
+
/**
|
|
3784
|
+
* Sets the positioning of the menu.
|
|
3785
|
+
* @protected
|
|
3786
|
+
*/
|
|
3787
|
+
protected setPositioning(): void;
|
|
3788
|
+
/**
|
|
3789
|
+
* Adds event listeners.
|
|
3790
|
+
* Adds click and keydown event listeners to the trigger and a click event listener to the document.
|
|
3791
|
+
* If 'openOnHover' is true, adds a 'mouseover' event listener to the trigger.
|
|
3792
|
+
* @public
|
|
3793
|
+
*/
|
|
3794
|
+
private addListeners;
|
|
3795
|
+
/**
|
|
3796
|
+
* Removes event listeners.
|
|
3797
|
+
* Removes click and keydown event listeners from the trigger and a click event listener from the document.
|
|
3798
|
+
* Also removes 'mouseover' event listeners from the trigger.
|
|
3799
|
+
* @private
|
|
3800
|
+
*/
|
|
3801
|
+
private removeListeners;
|
|
3802
|
+
/**
|
|
3803
|
+
* Handles keyboard interaction for the menu.
|
|
3804
|
+
* Closes the menu and focuses on the trigger when the Escape key is pressed.
|
|
3805
|
+
* Closes the menu when the Tab key is pressed.
|
|
3806
|
+
* @public
|
|
3807
|
+
* @param {KeyboardEvent} e - the keyboard event
|
|
3808
|
+
*/
|
|
3809
|
+
handleMenuKeydown(e: KeyboardEvent): boolean | void;
|
|
3810
|
+
/**
|
|
3811
|
+
* Handles keyboard interaction for the trigger.
|
|
3812
|
+
* Toggles the menu when the Space or Enter key is pressed.
|
|
3813
|
+
* If the menu is open, focuses on the menu list.
|
|
3814
|
+
* @public
|
|
3815
|
+
* @param {KeyboardEvent} e - the keyboard event
|
|
3816
|
+
*/
|
|
3817
|
+
handleTriggerKeydown: (e: KeyboardEvent) => boolean | void;
|
|
3818
|
+
/**
|
|
3819
|
+
* Handles document click events to close the menu when a click occurs outside of the menu or the trigger.
|
|
3820
|
+
* @private
|
|
3821
|
+
* @param {Event} e - The event triggered on document click.
|
|
3822
|
+
*/
|
|
3823
|
+
private handleDocumentClick;
|
|
2066
3824
|
}
|
|
2067
3825
|
|
|
2068
|
-
/**
|
|
2069
|
-
* The Fluent Label Element.
|
|
2070
|
-
*
|
|
2071
|
-
*
|
|
2072
|
-
* @public
|
|
2073
|
-
* @remarks
|
|
2074
|
-
* HTML Element: \<fluent-label\>
|
|
2075
|
-
*/
|
|
2076
|
-
export declare const LabelDefinition: FASTElementDefinition<typeof Label>;
|
|
2077
|
-
|
|
2078
|
-
/**
|
|
2079
|
-
* A Labels font size can be small, medium, or large
|
|
2080
|
-
*/
|
|
2081
|
-
declare const LabelSize: {
|
|
2082
|
-
readonly small: "small";
|
|
2083
|
-
readonly medium: "medium";
|
|
2084
|
-
readonly large: "large";
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
/**
|
|
2088
|
-
* Applies font size to label
|
|
2089
|
-
* @public
|
|
2090
|
-
*/
|
|
2091
|
-
declare type LabelSize = ValuesOf<typeof LabelSize>;
|
|
2092
|
-
|
|
2093
|
-
/** Label styles
|
|
2094
|
-
* @public
|
|
2095
|
-
*/
|
|
2096
|
-
export declare const LabelStyles: ElementStyles;
|
|
2097
|
-
|
|
2098
|
-
export declare const LabelTemplate: ElementViewTemplate<Label>;
|
|
2099
|
-
|
|
2100
|
-
/**
|
|
2101
|
-
* A label can have a font weight of regular or strong
|
|
2102
|
-
*/
|
|
2103
|
-
declare const LabelWeight: {
|
|
2104
|
-
readonly regular: "regular";
|
|
2105
|
-
readonly semibold: "semibold";
|
|
2106
|
-
};
|
|
2107
|
-
|
|
2108
|
-
/**
|
|
2109
|
-
* Applies font weight to label
|
|
2110
|
-
* @public
|
|
2111
|
-
*/
|
|
2112
|
-
declare type LabelWeight = ValuesOf<typeof LabelWeight>;
|
|
2113
|
-
|
|
2114
|
-
export declare const lineHeightBase100: CSSDesignToken<string>;
|
|
2115
|
-
|
|
2116
|
-
export declare const lineHeightBase200: CSSDesignToken<string>;
|
|
2117
|
-
|
|
2118
|
-
export declare const lineHeightBase300: CSSDesignToken<string>;
|
|
2119
|
-
|
|
2120
|
-
export declare const lineHeightBase400: CSSDesignToken<string>;
|
|
2121
|
-
|
|
2122
|
-
export declare const lineHeightBase500: CSSDesignToken<string>;
|
|
2123
|
-
|
|
2124
|
-
export declare const lineHeightBase600: CSSDesignToken<string>;
|
|
2125
|
-
|
|
2126
|
-
export declare const lineHeightHero1000: CSSDesignToken<string>;
|
|
2127
|
-
|
|
2128
|
-
export declare const lineHeightHero700: CSSDesignToken<string>;
|
|
2129
|
-
|
|
2130
|
-
export declare const lineHeightHero800: CSSDesignToken<string>;
|
|
2131
|
-
|
|
2132
|
-
export declare const lineHeightHero900: CSSDesignToken<string>;
|
|
2133
|
-
|
|
2134
3826
|
/**
|
|
2135
3827
|
* The base class used for constructing a fluent-menu-button custom element
|
|
2136
3828
|
* @public
|
|
@@ -2157,9 +3849,6 @@ export declare const MenuButtonAppearance: {
|
|
|
2157
3849
|
export declare type MenuButtonAppearance = ValuesOf<typeof MenuButtonAppearance>;
|
|
2158
3850
|
|
|
2159
3851
|
/**
|
|
2160
|
-
* The Fluent Menu Button Element. Implements {@link @microsoft/fast-foundation#Button },
|
|
2161
|
-
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
2162
|
-
*
|
|
2163
3852
|
* @public
|
|
2164
3853
|
* @remarks
|
|
2165
3854
|
* HTML Element: \<fluent-button\>
|
|
@@ -2205,26 +3894,209 @@ export declare type MenuButtonSize = ValuesOf<typeof MenuButtonSize>;
|
|
|
2205
3894
|
export declare const MenuButtonTemplate: ElementViewTemplate<MenuButton>;
|
|
2206
3895
|
|
|
2207
3896
|
/**
|
|
2208
|
-
* The
|
|
3897
|
+
* The Fluent Menu Element.
|
|
3898
|
+
*
|
|
3899
|
+
* @public
|
|
3900
|
+
* @remarks
|
|
3901
|
+
* HTML Element: <fluent-menu>
|
|
3902
|
+
*/
|
|
3903
|
+
export declare const MenuDefinition: FASTElementDefinition<typeof Menu>;
|
|
3904
|
+
|
|
3905
|
+
/**
|
|
3906
|
+
* A Switch Custom HTML Element.
|
|
3907
|
+
* Implements {@link https://www.w3.org/TR/wai-aria-1.1/#menuitem | ARIA menuitem }, {@link https://www.w3.org/TR/wai-aria-1.1/#menuitemcheckbox | ARIA menuitemcheckbox}, or {@link https://www.w3.org/TR/wai-aria-1.1/#menuitemradio | ARIA menuitemradio }.
|
|
3908
|
+
*
|
|
3909
|
+
* @slot checked-indicator - The checked indicator
|
|
3910
|
+
* @slot radio-indicator - The radio indicator
|
|
3911
|
+
* @slot start - Content which can be provided before the menu item content
|
|
3912
|
+
* @slot end - Content which can be provided after the menu item content
|
|
3913
|
+
* @slot - The default slot for menu item content
|
|
3914
|
+
* @slot expand-collapse-indicator - The expand/collapse indicator
|
|
3915
|
+
* @slot submenu - Used to nest menu's within menu items
|
|
3916
|
+
* @csspart input-container - The element representing the visual checked or radio indicator
|
|
3917
|
+
* @csspart checkbox - The element wrapping the `menuitemcheckbox` indicator
|
|
3918
|
+
* @csspart radio - The element wrapping the `menuitemradio` indicator
|
|
3919
|
+
* @csspart content - The element wrapping the menu item content
|
|
3920
|
+
* @csspart expand-collapse-glyph-container - The element wrapping the expand collapse element
|
|
3921
|
+
* @csspart expand-collapse - The expand/collapse element
|
|
3922
|
+
* @csspart submenu-region - The container for the submenu, used for positioning
|
|
3923
|
+
* @fires expanded-change - Fires a custom 'expanded-change' event when the expanded state changes
|
|
3924
|
+
* @fires change - Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked
|
|
3925
|
+
*
|
|
2209
3926
|
* @public
|
|
2210
3927
|
*/
|
|
2211
|
-
export declare class MenuItem extends
|
|
3928
|
+
export declare class MenuItem extends FASTElement {
|
|
3929
|
+
/**
|
|
3930
|
+
* The disabled state of the element.
|
|
3931
|
+
*
|
|
3932
|
+
* @public
|
|
3933
|
+
* @remarks
|
|
3934
|
+
* HTML Attribute: disabled
|
|
3935
|
+
*/
|
|
3936
|
+
disabled: boolean;
|
|
3937
|
+
/**
|
|
3938
|
+
* The expanded state of the element.
|
|
3939
|
+
*
|
|
3940
|
+
* @public
|
|
3941
|
+
* @remarks
|
|
3942
|
+
* HTML Attribute: expanded
|
|
3943
|
+
*/
|
|
3944
|
+
expanded: boolean;
|
|
3945
|
+
protected expandedChanged(prev: boolean | undefined, next: boolean): void;
|
|
3946
|
+
/**
|
|
3947
|
+
* The role of the element.
|
|
3948
|
+
*
|
|
3949
|
+
* @public
|
|
3950
|
+
* @remarks
|
|
3951
|
+
* HTML Attribute: role
|
|
3952
|
+
*/
|
|
3953
|
+
role: MenuItemRole;
|
|
3954
|
+
/**
|
|
3955
|
+
* Cleanup function for the submenu positioner.
|
|
3956
|
+
*
|
|
3957
|
+
* @public
|
|
3958
|
+
*/
|
|
3959
|
+
cleanup: () => void;
|
|
3960
|
+
/**
|
|
3961
|
+
* The checked value of the element.
|
|
3962
|
+
*
|
|
3963
|
+
* @public
|
|
3964
|
+
* @remarks
|
|
3965
|
+
* HTML Attribute: checked
|
|
3966
|
+
*/
|
|
3967
|
+
checked: boolean;
|
|
3968
|
+
protected checkedChanged(oldValue: boolean, newValue: boolean): void;
|
|
3969
|
+
/**
|
|
3970
|
+
* The hidden attribute.
|
|
3971
|
+
*
|
|
3972
|
+
* @public
|
|
3973
|
+
* @remarks
|
|
3974
|
+
* HTML Attribute: hidden
|
|
3975
|
+
*/
|
|
3976
|
+
hidden: boolean;
|
|
3977
|
+
/**
|
|
3978
|
+
* The submenu slotted content.
|
|
3979
|
+
*
|
|
3980
|
+
* @internal
|
|
3981
|
+
*/
|
|
3982
|
+
slottedSubmenu: HTMLElement[];
|
|
3983
|
+
/**
|
|
3984
|
+
* @internal
|
|
3985
|
+
*/
|
|
3986
|
+
get hasSubmenu(): boolean;
|
|
3987
|
+
/**
|
|
3988
|
+
* Sets the submenu and updates its position.
|
|
3989
|
+
*
|
|
3990
|
+
* @internal
|
|
3991
|
+
*/
|
|
3992
|
+
protected slottedSubmenuChanged(prev: HTMLElement[] | undefined, next: HTMLElement[]): void;
|
|
3993
|
+
/**
|
|
3994
|
+
* The container for the submenu.
|
|
3995
|
+
*
|
|
3996
|
+
* @internal
|
|
3997
|
+
*/
|
|
3998
|
+
submenuContainer: HTMLDivElement;
|
|
3999
|
+
/**
|
|
4000
|
+
* @internal
|
|
4001
|
+
*/
|
|
4002
|
+
submenu: HTMLElement | undefined;
|
|
4003
|
+
private focusSubmenuOnLoad;
|
|
4004
|
+
/**
|
|
4005
|
+
* @internal
|
|
4006
|
+
*/
|
|
4007
|
+
disconnectedCallback(): void;
|
|
4008
|
+
/**
|
|
4009
|
+
* @internal
|
|
4010
|
+
*/
|
|
4011
|
+
handleMenuItemKeyDown: (e: KeyboardEvent) => boolean;
|
|
4012
|
+
/**
|
|
4013
|
+
* @internal
|
|
4014
|
+
*/
|
|
4015
|
+
handleMenuItemClick: (e: MouseEvent) => boolean;
|
|
4016
|
+
/**
|
|
4017
|
+
* @internal
|
|
4018
|
+
*/
|
|
4019
|
+
submenuLoaded: () => void;
|
|
4020
|
+
/**
|
|
4021
|
+
* @internal
|
|
4022
|
+
*/
|
|
4023
|
+
handleMouseOver: (e: MouseEvent) => boolean;
|
|
4024
|
+
/**
|
|
4025
|
+
* @internal
|
|
4026
|
+
*/
|
|
4027
|
+
handleMouseOut: (e: MouseEvent) => boolean;
|
|
4028
|
+
/**
|
|
4029
|
+
* @internal
|
|
4030
|
+
*/
|
|
4031
|
+
private closeSubMenu;
|
|
4032
|
+
/**
|
|
4033
|
+
* @internal
|
|
4034
|
+
*/
|
|
4035
|
+
private expandAndFocus;
|
|
4036
|
+
/**
|
|
4037
|
+
* @internal
|
|
4038
|
+
*/
|
|
4039
|
+
private invoke;
|
|
4040
|
+
/**
|
|
4041
|
+
* Calculate and apply submenu positioning.
|
|
4042
|
+
*
|
|
4043
|
+
* @public
|
|
4044
|
+
*/
|
|
4045
|
+
updateSubmenu(): void;
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
/**
|
|
4049
|
+
* Mark internal because exporting class and interface of the same name
|
|
4050
|
+
* confuses API documenter.
|
|
4051
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
4052
|
+
* @internal
|
|
4053
|
+
*/
|
|
4054
|
+
export declare interface MenuItem extends StartEnd {
|
|
2212
4055
|
}
|
|
2213
4056
|
|
|
2214
4057
|
export declare type MenuItemColumnCount = 0 | 1 | 2;
|
|
2215
4058
|
|
|
2216
4059
|
/**
|
|
2217
|
-
* The Fluent Menu Item Element. Implements {@link @microsoft/fast-foundation#MenuItem },
|
|
2218
|
-
* {@link @microsoft/fast-foundation#menuItemTemplate}
|
|
2219
|
-
*
|
|
2220
|
-
*
|
|
2221
4060
|
* @public
|
|
2222
4061
|
* @remarks
|
|
2223
4062
|
* HTML Element: <fluent-menu-item>
|
|
2224
4063
|
*/
|
|
2225
4064
|
export declare const MenuItemDefinition: FASTElementDefinition<typeof MenuItem>;
|
|
2226
4065
|
|
|
2227
|
-
|
|
4066
|
+
/**
|
|
4067
|
+
* Menu Item configuration options
|
|
4068
|
+
* @public
|
|
4069
|
+
*/
|
|
4070
|
+
export declare type MenuItemOptions = StartEndOptions<MenuItem> & {
|
|
4071
|
+
checkboxIndicator?: StaticallyComposableHTML<MenuItem>;
|
|
4072
|
+
expandCollapseGlyph?: StaticallyComposableHTML<MenuItem>;
|
|
4073
|
+
radioIndicator?: StaticallyComposableHTML<MenuItem>;
|
|
4074
|
+
};
|
|
4075
|
+
|
|
4076
|
+
/**
|
|
4077
|
+
* Menu items roles.
|
|
4078
|
+
* @public
|
|
4079
|
+
*/
|
|
4080
|
+
export declare const MenuItemRole: {
|
|
4081
|
+
/**
|
|
4082
|
+
* The menu item has a "menuitem" role
|
|
4083
|
+
*/
|
|
4084
|
+
readonly menuitem: "menuitem";
|
|
4085
|
+
/**
|
|
4086
|
+
* The menu item has a "menuitemcheckbox" role
|
|
4087
|
+
*/
|
|
4088
|
+
readonly menuitemcheckbox: "menuitemcheckbox";
|
|
4089
|
+
/**
|
|
4090
|
+
* The menu item has a "menuitemradio" role
|
|
4091
|
+
*/
|
|
4092
|
+
readonly menuitemradio: "menuitemradio";
|
|
4093
|
+
};
|
|
4094
|
+
|
|
4095
|
+
/**
|
|
4096
|
+
* The types for menu item roles
|
|
4097
|
+
* @public
|
|
4098
|
+
*/
|
|
4099
|
+
export declare type MenuItemRole = ValuesOf<typeof MenuItemRole>;
|
|
2228
4100
|
|
|
2229
4101
|
/** MenuItem styles
|
|
2230
4102
|
* @public
|
|
@@ -2234,19 +4106,82 @@ export declare const MenuItemStyles: ElementStyles;
|
|
|
2234
4106
|
export declare const MenuItemTemplate: ElementViewTemplate<MenuItem>;
|
|
2235
4107
|
|
|
2236
4108
|
/**
|
|
2237
|
-
*
|
|
4109
|
+
* A Menu Custom HTML Element.
|
|
4110
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#menu | ARIA menu }.
|
|
4111
|
+
*
|
|
4112
|
+
* @slot - The default slot for the menu items
|
|
4113
|
+
*
|
|
2238
4114
|
* @public
|
|
2239
4115
|
*/
|
|
2240
|
-
export declare class MenuList extends
|
|
2241
|
-
|
|
4116
|
+
export declare class MenuList extends FASTElement {
|
|
4117
|
+
/**
|
|
4118
|
+
* @internal
|
|
4119
|
+
*/
|
|
4120
|
+
items: HTMLElement[];
|
|
4121
|
+
protected itemsChanged(oldValue: HTMLElement[], newValue: HTMLElement[]): void;
|
|
4122
|
+
protected menuItems: Element[] | undefined;
|
|
4123
|
+
private expandedItem;
|
|
4124
|
+
/**
|
|
4125
|
+
* The index of the focusable element in the items array
|
|
4126
|
+
* defaults to -1
|
|
4127
|
+
*/
|
|
4128
|
+
private focusIndex;
|
|
4129
|
+
private static focusableElementRoles;
|
|
4130
|
+
/**
|
|
4131
|
+
* @internal
|
|
4132
|
+
*/
|
|
4133
|
+
connectedCallback(): void;
|
|
4134
|
+
/**
|
|
4135
|
+
* @internal
|
|
4136
|
+
*/
|
|
4137
|
+
disconnectedCallback(): void;
|
|
4138
|
+
/**
|
|
4139
|
+
* @internal
|
|
4140
|
+
*/
|
|
4141
|
+
readonly isNestedMenu: () => boolean;
|
|
4142
|
+
/**
|
|
4143
|
+
* Focuses the first item in the menu.
|
|
4144
|
+
*
|
|
4145
|
+
* @public
|
|
4146
|
+
*/
|
|
4147
|
+
focus(): void;
|
|
4148
|
+
/**
|
|
4149
|
+
* Collapses any expanded menu items.
|
|
4150
|
+
*
|
|
4151
|
+
* @public
|
|
4152
|
+
*/
|
|
4153
|
+
collapseExpandedItem(): void;
|
|
4154
|
+
/**
|
|
4155
|
+
* @internal
|
|
4156
|
+
*/
|
|
4157
|
+
handleMenuKeyDown(e: KeyboardEvent): void | boolean;
|
|
4158
|
+
/**
|
|
4159
|
+
* if focus is moving out of the menu, reset to a stable initial state
|
|
4160
|
+
* @internal
|
|
4161
|
+
*/
|
|
4162
|
+
handleFocusOut: (e: FocusEvent) => void;
|
|
4163
|
+
private handleItemFocus;
|
|
4164
|
+
private handleExpandedChanged;
|
|
4165
|
+
private removeItemListeners;
|
|
2242
4166
|
private static elementIndent;
|
|
4167
|
+
protected setItems(): void;
|
|
4168
|
+
handleChange(source: any, propertyName: string): void;
|
|
4169
|
+
/**
|
|
4170
|
+
* handle change from child element
|
|
4171
|
+
*/
|
|
4172
|
+
private changeHandler;
|
|
4173
|
+
/**
|
|
4174
|
+
* check if the item is a menu item
|
|
4175
|
+
*/
|
|
4176
|
+
protected isMenuItemElement: (el: Element) => el is HTMLElement;
|
|
4177
|
+
/**
|
|
4178
|
+
* check if the item is focusable
|
|
4179
|
+
*/
|
|
4180
|
+
private isFocusableElement;
|
|
4181
|
+
private setFocus;
|
|
2243
4182
|
}
|
|
2244
4183
|
|
|
2245
4184
|
/**
|
|
2246
|
-
* The Fluent MenuList Element. Implements {@link @microsoft/fast-foundation#Menu },
|
|
2247
|
-
* {@link @microsoft/fast-foundation#menuTemplate}
|
|
2248
|
-
*
|
|
2249
|
-
*
|
|
2250
4185
|
* @public
|
|
2251
4186
|
* @remarks
|
|
2252
4187
|
* HTML Element: <fluent-menu-list>
|
|
@@ -2260,11 +4195,25 @@ export declare const MenuListStyles: ElementStyles;
|
|
|
2260
4195
|
|
|
2261
4196
|
export declare const MenuListTemplate: ElementViewTemplate<MenuList>;
|
|
2262
4197
|
|
|
4198
|
+
/** Menu styles
|
|
4199
|
+
* @public
|
|
4200
|
+
*/
|
|
4201
|
+
export declare const MenuStyles: ElementStyles;
|
|
4202
|
+
|
|
4203
|
+
export declare const MenuTemplate: ElementViewTemplate<Menu>;
|
|
4204
|
+
|
|
2263
4205
|
/**
|
|
2264
|
-
*
|
|
4206
|
+
* An Progress HTML Element.
|
|
4207
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
4208
|
+
*
|
|
4209
|
+
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
4210
|
+
* @csspart progress - Represents the progress element
|
|
4211
|
+
* @csspart determinate - The determinate indicator
|
|
4212
|
+
* @csspart indeterminate - The indeterminate indicator
|
|
4213
|
+
*
|
|
2265
4214
|
* @public
|
|
2266
4215
|
*/
|
|
2267
|
-
declare class
|
|
4216
|
+
export declare class ProgressBar extends BaseProgress {
|
|
2268
4217
|
/**
|
|
2269
4218
|
* The thickness of the progress bar
|
|
2270
4219
|
*
|
|
@@ -2288,7 +4237,6 @@ declare class ProgressBar_2 extends FASTProgress {
|
|
|
2288
4237
|
*/
|
|
2289
4238
|
validationState: ProgressBarValidationState | null;
|
|
2290
4239
|
}
|
|
2291
|
-
export { ProgressBar_2 as ProgressBar }
|
|
2292
4240
|
|
|
2293
4241
|
/**
|
|
2294
4242
|
* The Fluent ProgressBar Element.
|
|
@@ -2298,7 +4246,7 @@ export { ProgressBar_2 as ProgressBar }
|
|
|
2298
4246
|
* @remarks
|
|
2299
4247
|
* HTML Element: \<fluent-progress-bar\>
|
|
2300
4248
|
*/
|
|
2301
|
-
export declare const ProgressBarDefinition: FASTElementDefinition<typeof
|
|
4249
|
+
export declare const ProgressBarDefinition: FASTElementDefinition<typeof ProgressBar>;
|
|
2302
4250
|
|
|
2303
4251
|
/**
|
|
2304
4252
|
* ProgressBarShape Constants
|
|
@@ -2320,7 +4268,7 @@ export declare type ProgressBarShape = ValuesOf<typeof ProgressBarShape>;
|
|
|
2320
4268
|
*/
|
|
2321
4269
|
export declare const ProgressBarStyles: ElementStyles;
|
|
2322
4270
|
|
|
2323
|
-
export declare const ProgressBarTemplate: ElementViewTemplate<
|
|
4271
|
+
export declare const ProgressBarTemplate: ElementViewTemplate<ProgressBar>;
|
|
2324
4272
|
|
|
2325
4273
|
/**
|
|
2326
4274
|
* ProgressBarThickness Constants
|
|
@@ -2354,12 +4302,71 @@ export declare const ProgressBarValidationState: {
|
|
|
2354
4302
|
export declare type ProgressBarValidationState = ValuesOf<typeof ProgressBarValidationState>;
|
|
2355
4303
|
|
|
2356
4304
|
/**
|
|
2357
|
-
*
|
|
4305
|
+
* Progress configuration options
|
|
2358
4306
|
* @public
|
|
2359
4307
|
*/
|
|
2360
|
-
export declare
|
|
4308
|
+
export declare type ProgressOptions = {
|
|
4309
|
+
indeterminateIndicator1?: StaticallyComposableHTML<ProgressBar>;
|
|
4310
|
+
indeterminateIndicator2?: StaticallyComposableHTML<ProgressBar>;
|
|
4311
|
+
};
|
|
4312
|
+
|
|
4313
|
+
/**
|
|
4314
|
+
* A Radio Custom HTML Element.
|
|
4315
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#radio | ARIA radio }.
|
|
4316
|
+
*
|
|
4317
|
+
* @slot checked-indicator - The checked indicator
|
|
4318
|
+
* @slot - The default slot for the label
|
|
4319
|
+
* @csspart control - The element representing the visual radio control
|
|
4320
|
+
* @csspart label - The label
|
|
4321
|
+
* @fires change - Emits a custom change event when the checked state changes
|
|
4322
|
+
*
|
|
4323
|
+
* @public
|
|
4324
|
+
*/
|
|
4325
|
+
export declare class Radio extends FormAssociatedRadio implements RadioControl {
|
|
4326
|
+
/**
|
|
4327
|
+
* The name of the radio. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname | name attribute} for more info.
|
|
4328
|
+
*/
|
|
4329
|
+
name: string;
|
|
4330
|
+
/**
|
|
4331
|
+
* The element's value to be included in form submission when checked.
|
|
4332
|
+
* Default to "on" to reach parity with input[type="radio"]
|
|
4333
|
+
*
|
|
4334
|
+
* @internal
|
|
4335
|
+
*/
|
|
4336
|
+
initialValue: string;
|
|
4337
|
+
/**
|
|
4338
|
+
* @internal
|
|
4339
|
+
*/
|
|
4340
|
+
defaultSlottedNodes: Node[];
|
|
4341
|
+
private get radioGroup();
|
|
4342
|
+
/**
|
|
4343
|
+
* @internal
|
|
4344
|
+
*/
|
|
4345
|
+
defaultCheckedChanged(): void;
|
|
4346
|
+
constructor();
|
|
4347
|
+
/**
|
|
4348
|
+
* @internal
|
|
4349
|
+
*/
|
|
4350
|
+
connectedCallback(): void;
|
|
4351
|
+
private isInsideRadioGroup;
|
|
4352
|
+
/**
|
|
4353
|
+
* Handles key presses on the radio.
|
|
4354
|
+
* @beta
|
|
4355
|
+
*/
|
|
4356
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
declare class _Radio extends FASTElement {
|
|
2361
4360
|
}
|
|
2362
4361
|
|
|
4362
|
+
declare interface _Radio extends CheckableFormAssociated {
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
/**
|
|
4366
|
+
* @public
|
|
4367
|
+
*/
|
|
4368
|
+
export declare type RadioControl = Pick<HTMLInputElement, 'checked' | 'disabled' | 'focus' | 'setAttribute' | 'getAttribute'>;
|
|
4369
|
+
|
|
2363
4370
|
/**
|
|
2364
4371
|
* The Fluent Radio Element.
|
|
2365
4372
|
*
|
|
@@ -2374,7 +4381,7 @@ export declare const RadioDefinition: FASTElementDefinition<typeof Radio>;
|
|
|
2374
4381
|
* The base class used for constructing a fluent-radio-group custom element
|
|
2375
4382
|
* @public
|
|
2376
4383
|
*/
|
|
2377
|
-
export declare class RadioGroup extends
|
|
4384
|
+
export declare class RadioGroup extends FASTElement {
|
|
2378
4385
|
/**
|
|
2379
4386
|
* sets radio layout styles
|
|
2380
4387
|
*
|
|
@@ -2383,6 +4390,94 @@ export declare class RadioGroup extends FASTRadioGroup {
|
|
|
2383
4390
|
* HTML Attribute: stacked
|
|
2384
4391
|
*/
|
|
2385
4392
|
stacked: boolean;
|
|
4393
|
+
/**
|
|
4394
|
+
* When true, the child radios will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
4395
|
+
* @public
|
|
4396
|
+
* @remarks
|
|
4397
|
+
* HTML Attribute: readonly
|
|
4398
|
+
*/
|
|
4399
|
+
readOnly: boolean;
|
|
4400
|
+
/**
|
|
4401
|
+
* Disables the radio group and child radios.
|
|
4402
|
+
*
|
|
4403
|
+
* @public
|
|
4404
|
+
* @remarks
|
|
4405
|
+
* HTML Attribute: disabled
|
|
4406
|
+
*/
|
|
4407
|
+
disabled: boolean;
|
|
4408
|
+
/**
|
|
4409
|
+
* The name of the radio group. Setting this value will set the name value
|
|
4410
|
+
* for all child radio elements.
|
|
4411
|
+
*
|
|
4412
|
+
* @public
|
|
4413
|
+
* @remarks
|
|
4414
|
+
* HTML Attribute: name
|
|
4415
|
+
*/
|
|
4416
|
+
name: string;
|
|
4417
|
+
protected nameChanged(): void;
|
|
4418
|
+
/**
|
|
4419
|
+
* The value of the checked radio
|
|
4420
|
+
*
|
|
4421
|
+
* @public
|
|
4422
|
+
* @remarks
|
|
4423
|
+
* HTML Attribute: value
|
|
4424
|
+
*/
|
|
4425
|
+
value: string;
|
|
4426
|
+
protected valueChanged(): void;
|
|
4427
|
+
/**
|
|
4428
|
+
* The orientation of the group
|
|
4429
|
+
*
|
|
4430
|
+
* @public
|
|
4431
|
+
* @remarks
|
|
4432
|
+
* HTML Attribute: orientation
|
|
4433
|
+
*/
|
|
4434
|
+
orientation: RadioGroupOrientation;
|
|
4435
|
+
childItems: HTMLElement[];
|
|
4436
|
+
/**
|
|
4437
|
+
* @internal
|
|
4438
|
+
*/
|
|
4439
|
+
slottedRadioButtons: HTMLElement[];
|
|
4440
|
+
protected slottedRadioButtonsChanged(oldValue: unknown, newValue: HTMLElement[]): void;
|
|
4441
|
+
private selectedRadio;
|
|
4442
|
+
private focusedRadio;
|
|
4443
|
+
private direction;
|
|
4444
|
+
private get parentToolbar();
|
|
4445
|
+
private get isInsideToolbar();
|
|
4446
|
+
private get isInsideFoundationToolbar();
|
|
4447
|
+
/**
|
|
4448
|
+
* @internal
|
|
4449
|
+
*/
|
|
4450
|
+
connectedCallback(): void;
|
|
4451
|
+
disconnectedCallback(): void;
|
|
4452
|
+
private setupRadioButtons;
|
|
4453
|
+
private radioChangeHandler;
|
|
4454
|
+
private moveToRadioByIndex;
|
|
4455
|
+
private moveRightOffGroup;
|
|
4456
|
+
private moveLeftOffGroup;
|
|
4457
|
+
/**
|
|
4458
|
+
* @internal
|
|
4459
|
+
*/
|
|
4460
|
+
focusOutHandler: (e: FocusEvent) => boolean | void;
|
|
4461
|
+
/**
|
|
4462
|
+
* @internal
|
|
4463
|
+
*/
|
|
4464
|
+
handleDisabledClick: (e: MouseEvent) => void | boolean;
|
|
4465
|
+
/**
|
|
4466
|
+
* @internal
|
|
4467
|
+
*/
|
|
4468
|
+
clickHandler: (e: MouseEvent) => void | boolean;
|
|
4469
|
+
private shouldMoveOffGroupToTheRight;
|
|
4470
|
+
private shouldMoveOffGroupToTheLeft;
|
|
4471
|
+
private checkFocusedRadio;
|
|
4472
|
+
private moveRight;
|
|
4473
|
+
private moveLeft;
|
|
4474
|
+
/**
|
|
4475
|
+
* keyboard handling per https://w3c.github.io/aria-practices/#for-radio-groups-not-contained-in-a-toolbar
|
|
4476
|
+
* navigation is different when there is an ancestor with role='toolbar'
|
|
4477
|
+
*
|
|
4478
|
+
* @internal
|
|
4479
|
+
*/
|
|
4480
|
+
keydownHandler: (e: KeyboardEvent) => boolean | void;
|
|
2386
4481
|
}
|
|
2387
4482
|
|
|
2388
4483
|
/**
|
|
@@ -2395,7 +4490,23 @@ export declare class RadioGroup extends FASTRadioGroup {
|
|
|
2395
4490
|
*/
|
|
2396
4491
|
export declare const RadioGroupDefinition: FASTElementDefinition<typeof RadioGroup>;
|
|
2397
4492
|
|
|
2398
|
-
|
|
4493
|
+
/**
|
|
4494
|
+
* Radio Group orientation
|
|
4495
|
+
* @public
|
|
4496
|
+
*/
|
|
4497
|
+
export declare const RadioGroupOrientation: {
|
|
4498
|
+
readonly horizontal: "horizontal"; /**
|
|
4499
|
+
* Radio Group orientation
|
|
4500
|
+
* @public
|
|
4501
|
+
*/
|
|
4502
|
+
readonly vertical: "vertical";
|
|
4503
|
+
};
|
|
4504
|
+
|
|
4505
|
+
/**
|
|
4506
|
+
* Types of Radio Group orientation
|
|
4507
|
+
* @public
|
|
4508
|
+
*/
|
|
4509
|
+
export declare type RadioGroupOrientation = ValuesOf<typeof RadioGroupOrientation>;
|
|
2399
4510
|
|
|
2400
4511
|
/** RadioGroup styles
|
|
2401
4512
|
* @public
|
|
@@ -2404,6 +4515,14 @@ export declare const RadioGroupStyles: ElementStyles;
|
|
|
2404
4515
|
|
|
2405
4516
|
export declare const RadioGroupTemplate: ElementViewTemplate<RadioGroup>;
|
|
2406
4517
|
|
|
4518
|
+
/**
|
|
4519
|
+
* Radio configuration options
|
|
4520
|
+
* @public
|
|
4521
|
+
*/
|
|
4522
|
+
export declare type RadioOptions = {
|
|
4523
|
+
checkedIndicator?: StaticallyComposableHTML<Radio>;
|
|
4524
|
+
};
|
|
4525
|
+
|
|
2407
4526
|
/** Radio styles
|
|
2408
4527
|
* @public
|
|
2409
4528
|
*/
|
|
@@ -2411,43 +4530,50 @@ export declare const RadioStyles: ElementStyles;
|
|
|
2411
4530
|
|
|
2412
4531
|
export declare const RadioTemplate: ElementViewTemplate<Radio>;
|
|
2413
4532
|
|
|
4533
|
+
/**
|
|
4534
|
+
* @internal
|
|
4535
|
+
*/
|
|
4536
|
+
export declare const roleForMenuItem: {
|
|
4537
|
+
[value in keyof typeof MenuItemRole]: (typeof MenuItemRole)[value];
|
|
4538
|
+
};
|
|
4539
|
+
|
|
2414
4540
|
/**
|
|
2415
4541
|
* Sets the theme tokens on defaultNode.
|
|
2416
4542
|
* @param theme Flat object of theme token values.
|
|
2417
4543
|
*/
|
|
2418
4544
|
export declare const setTheme: (theme: Theme) => void;
|
|
2419
4545
|
|
|
2420
|
-
export declare const setThemeFor: (element:
|
|
4546
|
+
export declare const setThemeFor: (element: HTMLElement, theme: Theme) => void;
|
|
2421
4547
|
|
|
2422
|
-
export declare const shadow16
|
|
4548
|
+
export declare const shadow16 = "var(--shadow16)";
|
|
2423
4549
|
|
|
2424
|
-
export declare const shadow16Brand
|
|
4550
|
+
export declare const shadow16Brand = "var(--shadow16Brand)";
|
|
2425
4551
|
|
|
2426
|
-
export declare const shadow2
|
|
4552
|
+
export declare const shadow2 = "var(--shadow2)";
|
|
2427
4553
|
|
|
2428
|
-
export declare const shadow28
|
|
4554
|
+
export declare const shadow28 = "var(--shadow28)";
|
|
2429
4555
|
|
|
2430
|
-
export declare const shadow28Brand
|
|
4556
|
+
export declare const shadow28Brand = "var(--shadow28Brand)";
|
|
2431
4557
|
|
|
2432
|
-
export declare const shadow2Brand
|
|
4558
|
+
export declare const shadow2Brand = "var(--shadow2Brand)";
|
|
2433
4559
|
|
|
2434
|
-
export declare const shadow4
|
|
4560
|
+
export declare const shadow4 = "var(--shadow4)";
|
|
2435
4561
|
|
|
2436
|
-
export declare const shadow4Brand
|
|
4562
|
+
export declare const shadow4Brand = "var(--shadow4Brand)";
|
|
2437
4563
|
|
|
2438
|
-
export declare const shadow64
|
|
4564
|
+
export declare const shadow64 = "var(--shadow64)";
|
|
2439
4565
|
|
|
2440
|
-
export declare const shadow64Brand
|
|
4566
|
+
export declare const shadow64Brand = "var(--shadow64Brand)";
|
|
2441
4567
|
|
|
2442
|
-
export declare const shadow8
|
|
4568
|
+
export declare const shadow8 = "var(--shadow8)";
|
|
2443
4569
|
|
|
2444
|
-
export declare const shadow8Brand
|
|
4570
|
+
export declare const shadow8Brand = "var(--shadow8Brand)";
|
|
2445
4571
|
|
|
2446
4572
|
/**
|
|
2447
4573
|
* The base class used for constructing a fluent-slider custom element
|
|
2448
4574
|
* @public
|
|
2449
4575
|
*/
|
|
2450
|
-
export declare class Slider extends
|
|
4576
|
+
export declare class Slider extends FormAssociatedSlider implements SliderConfiguration {
|
|
2451
4577
|
/**
|
|
2452
4578
|
* The size of the slider
|
|
2453
4579
|
* @public
|
|
@@ -2456,14 +4582,220 @@ export declare class Slider extends FASTSlider {
|
|
|
2456
4582
|
*/
|
|
2457
4583
|
size?: SliderSize;
|
|
2458
4584
|
handleChange(source: any, propertyName: string): void;
|
|
4585
|
+
private stepStyles?;
|
|
4586
|
+
/**
|
|
4587
|
+
* Handles changes to step styling based on the step value
|
|
4588
|
+
* NOTE: This function is not a changed callback, stepStyles is not observable
|
|
4589
|
+
*/
|
|
4590
|
+
private handleStepStyles;
|
|
4591
|
+
/**
|
|
4592
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
4593
|
+
*
|
|
4594
|
+
* @public
|
|
4595
|
+
* @remarks
|
|
4596
|
+
* HTML Attribute: readonly
|
|
4597
|
+
*/
|
|
4598
|
+
readOnly: boolean;
|
|
4599
|
+
protected readOnlyChanged(): void;
|
|
4600
|
+
/**
|
|
4601
|
+
* @internal
|
|
4602
|
+
*/
|
|
4603
|
+
track: HTMLDivElement;
|
|
4604
|
+
/**
|
|
4605
|
+
* @internal
|
|
4606
|
+
*/
|
|
4607
|
+
thumb: HTMLDivElement;
|
|
4608
|
+
/**
|
|
4609
|
+
* @internal
|
|
4610
|
+
*/
|
|
4611
|
+
stepMultiplier: number;
|
|
4612
|
+
/**
|
|
4613
|
+
* @internal
|
|
4614
|
+
*/
|
|
4615
|
+
direction: Direction;
|
|
4616
|
+
/**
|
|
4617
|
+
* @internal
|
|
4618
|
+
*/
|
|
4619
|
+
isDragging: boolean;
|
|
4620
|
+
/**
|
|
4621
|
+
* @internal
|
|
4622
|
+
*/
|
|
4623
|
+
position: string;
|
|
4624
|
+
/**
|
|
4625
|
+
* @internal
|
|
4626
|
+
*/
|
|
4627
|
+
trackWidth: number;
|
|
4628
|
+
/**
|
|
4629
|
+
* @internal
|
|
4630
|
+
*/
|
|
4631
|
+
trackMinWidth: number;
|
|
4632
|
+
/**
|
|
4633
|
+
* @internal
|
|
4634
|
+
*/
|
|
4635
|
+
trackHeight: number;
|
|
4636
|
+
/**
|
|
4637
|
+
* @internal
|
|
4638
|
+
*/
|
|
4639
|
+
trackLeft: number;
|
|
4640
|
+
/**
|
|
4641
|
+
* @internal
|
|
4642
|
+
*/
|
|
4643
|
+
trackMinHeight: number;
|
|
4644
|
+
/**
|
|
4645
|
+
* The value property, typed as a number.
|
|
4646
|
+
*
|
|
4647
|
+
* @public
|
|
4648
|
+
*/
|
|
4649
|
+
get valueAsNumber(): number;
|
|
4650
|
+
set valueAsNumber(next: number);
|
|
4651
|
+
/**
|
|
4652
|
+
* Custom function that generates a string for the component's "aria-valuetext" attribute based on the current value.
|
|
4653
|
+
*
|
|
4654
|
+
* @public
|
|
4655
|
+
*/
|
|
4656
|
+
valueTextFormatter: (value: string) => string | null;
|
|
4657
|
+
/**
|
|
4658
|
+
* @internal
|
|
4659
|
+
*/
|
|
4660
|
+
valueChanged(previous: string, next: string): void;
|
|
4661
|
+
/**
|
|
4662
|
+
* The minimum allowed value.
|
|
4663
|
+
*
|
|
4664
|
+
* @defaultValue - 0
|
|
4665
|
+
* @public
|
|
4666
|
+
* @remarks
|
|
4667
|
+
* HTML Attribute: min
|
|
4668
|
+
*/
|
|
4669
|
+
min: number;
|
|
4670
|
+
protected minChanged(): void;
|
|
4671
|
+
/**
|
|
4672
|
+
* The maximum allowed value.
|
|
4673
|
+
*
|
|
4674
|
+
* @defaultValue - 10
|
|
4675
|
+
* @public
|
|
4676
|
+
* @remarks
|
|
4677
|
+
* HTML Attribute: max
|
|
4678
|
+
*/
|
|
4679
|
+
max: number;
|
|
4680
|
+
protected maxChanged(): void;
|
|
4681
|
+
/**
|
|
4682
|
+
* Value to increment or decrement via arrow keys, mouse click or drag.
|
|
4683
|
+
*
|
|
4684
|
+
* @public
|
|
4685
|
+
* @remarks
|
|
4686
|
+
* HTML Attribute: step
|
|
4687
|
+
*/
|
|
4688
|
+
step: number | undefined;
|
|
4689
|
+
protected stepChanged(): void;
|
|
4690
|
+
/**
|
|
4691
|
+
* The orientation of the slider.
|
|
4692
|
+
*
|
|
4693
|
+
* @public
|
|
4694
|
+
* @remarks
|
|
4695
|
+
* HTML Attribute: orientation
|
|
4696
|
+
*/
|
|
4697
|
+
orientation: Orientation;
|
|
4698
|
+
protected orientationChanged(): void;
|
|
4699
|
+
/**
|
|
4700
|
+
* The selection mode.
|
|
4701
|
+
*
|
|
4702
|
+
* @public
|
|
4703
|
+
* @remarks
|
|
4704
|
+
* HTML Attribute: mode
|
|
4705
|
+
*/
|
|
4706
|
+
mode: SliderMode;
|
|
4707
|
+
/**
|
|
4708
|
+
* @internal
|
|
4709
|
+
*/
|
|
2459
4710
|
connectedCallback(): void;
|
|
4711
|
+
/**
|
|
4712
|
+
* @internal
|
|
4713
|
+
*/
|
|
2460
4714
|
disconnectedCallback(): void;
|
|
2461
|
-
private stepStyles?;
|
|
2462
4715
|
/**
|
|
2463
|
-
*
|
|
2464
|
-
*
|
|
4716
|
+
* Increment the value by the step
|
|
4717
|
+
*
|
|
4718
|
+
* @public
|
|
4719
|
+
*/
|
|
4720
|
+
increment(): void;
|
|
4721
|
+
/**
|
|
4722
|
+
* Decrement the value by the step
|
|
4723
|
+
*
|
|
4724
|
+
* @public
|
|
4725
|
+
*/
|
|
4726
|
+
decrement(): void;
|
|
4727
|
+
keypressHandler: (e: KeyboardEvent) => void;
|
|
4728
|
+
/**
|
|
4729
|
+
* Gets the actual step value for the slider
|
|
4730
|
+
*
|
|
4731
|
+
*/
|
|
4732
|
+
private get stepValue();
|
|
4733
|
+
/**
|
|
4734
|
+
* Places the thumb based on the current value
|
|
4735
|
+
*
|
|
4736
|
+
* @public
|
|
4737
|
+
* @param direction - writing mode
|
|
4738
|
+
*/
|
|
4739
|
+
private setThumbPositionForOrientation;
|
|
4740
|
+
/**
|
|
4741
|
+
* Update the step multiplier used to ensure rounding errors from steps that
|
|
4742
|
+
* are not whole numbers
|
|
4743
|
+
*/
|
|
4744
|
+
private updateStepMultiplier;
|
|
4745
|
+
private setupTrackConstraints;
|
|
4746
|
+
private setupListeners;
|
|
4747
|
+
/**
|
|
4748
|
+
* @internal
|
|
4749
|
+
*/
|
|
4750
|
+
initialValue: string;
|
|
4751
|
+
private get midpoint();
|
|
4752
|
+
private setupDefaultValue;
|
|
4753
|
+
/**
|
|
4754
|
+
* Handle mouse moves during a thumb drag operation
|
|
4755
|
+
* If the event handler is null it removes the events
|
|
4756
|
+
*/
|
|
4757
|
+
handleThumbMouseDown: (event: MouseEvent | null) => void;
|
|
4758
|
+
/**
|
|
4759
|
+
* Handle mouse moves during a thumb drag operation
|
|
4760
|
+
*/
|
|
4761
|
+
private handleMouseMove;
|
|
4762
|
+
/**
|
|
4763
|
+
* Calculate the new value based on the given raw pixel value.
|
|
4764
|
+
*
|
|
4765
|
+
* @param rawValue - the value to be converted to a constrained value
|
|
4766
|
+
* @returns the constrained value
|
|
4767
|
+
*
|
|
4768
|
+
* @internal
|
|
4769
|
+
*/
|
|
4770
|
+
calculateNewValue(rawValue: number): number;
|
|
4771
|
+
/**
|
|
4772
|
+
* Handle a window mouse up during a drag operation
|
|
2465
4773
|
*/
|
|
2466
|
-
private
|
|
4774
|
+
private handleWindowMouseUp;
|
|
4775
|
+
private stopDragging;
|
|
4776
|
+
/**
|
|
4777
|
+
*
|
|
4778
|
+
* @param e - MouseEvent or null. If there is no event handler it will remove the events
|
|
4779
|
+
*/
|
|
4780
|
+
handleMouseDown: (e: MouseEvent | null) => void;
|
|
4781
|
+
private convertToConstrainedValue;
|
|
4782
|
+
}
|
|
4783
|
+
|
|
4784
|
+
declare class _Slider extends FASTElement {
|
|
4785
|
+
}
|
|
4786
|
+
|
|
4787
|
+
declare interface _Slider extends FormAssociated {
|
|
4788
|
+
}
|
|
4789
|
+
|
|
4790
|
+
/**
|
|
4791
|
+
* @public
|
|
4792
|
+
*/
|
|
4793
|
+
export declare interface SliderConfiguration {
|
|
4794
|
+
max: number;
|
|
4795
|
+
min: number;
|
|
4796
|
+
orientation?: SliderOrientation;
|
|
4797
|
+
direction?: Direction;
|
|
4798
|
+
disabled?: boolean;
|
|
2467
4799
|
}
|
|
2468
4800
|
|
|
2469
4801
|
/**
|
|
@@ -2476,7 +4808,40 @@ export declare class Slider extends FASTSlider {
|
|
|
2476
4808
|
*/
|
|
2477
4809
|
export declare const SliderDefinition: FASTElementDefinition<typeof Slider>;
|
|
2478
4810
|
|
|
2479
|
-
|
|
4811
|
+
/**
|
|
4812
|
+
* @public
|
|
4813
|
+
*/
|
|
4814
|
+
export declare const SliderMode: {
|
|
4815
|
+
readonly singleValue: "single-value";
|
|
4816
|
+
};
|
|
4817
|
+
|
|
4818
|
+
/**
|
|
4819
|
+
* The types for the selection mode of the slider
|
|
4820
|
+
* @public
|
|
4821
|
+
*/
|
|
4822
|
+
export declare type SliderMode = ValuesOf<typeof SliderMode>;
|
|
4823
|
+
|
|
4824
|
+
/**
|
|
4825
|
+
* Slider configuration options
|
|
4826
|
+
* @public
|
|
4827
|
+
*/
|
|
4828
|
+
export declare type SliderOptions = {
|
|
4829
|
+
thumb?: StaticallyComposableHTML<Slider>;
|
|
4830
|
+
};
|
|
4831
|
+
|
|
4832
|
+
/**
|
|
4833
|
+
* @public
|
|
4834
|
+
*/
|
|
4835
|
+
export declare const SliderOrientation: {
|
|
4836
|
+
readonly horizontal: "horizontal";
|
|
4837
|
+
readonly vertical: "vertical";
|
|
4838
|
+
};
|
|
4839
|
+
|
|
4840
|
+
/**
|
|
4841
|
+
* The types for the orientation of the slider
|
|
4842
|
+
* @public
|
|
4843
|
+
*/
|
|
4844
|
+
export declare type SliderOrientation = ValuesOf<typeof SliderOrientation>;
|
|
2480
4845
|
|
|
2481
4846
|
/**
|
|
2482
4847
|
* SliderSize Constants
|
|
@@ -2498,57 +4863,63 @@ export declare type SliderSize = ValuesOf<typeof SliderSize>;
|
|
|
2498
4863
|
*/
|
|
2499
4864
|
export declare const SliderStyles: ElementStyles;
|
|
2500
4865
|
|
|
2501
|
-
export declare const SliderTemplate: ElementViewTemplate<
|
|
4866
|
+
export declare const SliderTemplate: ElementViewTemplate<Slider>;
|
|
2502
4867
|
|
|
2503
|
-
export declare const spacingHorizontalL
|
|
4868
|
+
export declare const spacingHorizontalL = "var(--spacingHorizontalL)";
|
|
2504
4869
|
|
|
2505
|
-
export declare const spacingHorizontalM
|
|
4870
|
+
export declare const spacingHorizontalM = "var(--spacingHorizontalM)";
|
|
2506
4871
|
|
|
2507
|
-
export declare const spacingHorizontalMNudge
|
|
4872
|
+
export declare const spacingHorizontalMNudge = "var(--spacingHorizontalMNudge)";
|
|
2508
4873
|
|
|
2509
|
-
export declare const spacingHorizontalNone
|
|
4874
|
+
export declare const spacingHorizontalNone = "var(--spacingHorizontalNone)";
|
|
2510
4875
|
|
|
2511
|
-
export declare const spacingHorizontalS
|
|
4876
|
+
export declare const spacingHorizontalS = "var(--spacingHorizontalS)";
|
|
2512
4877
|
|
|
2513
|
-
export declare const spacingHorizontalSNudge
|
|
4878
|
+
export declare const spacingHorizontalSNudge = "var(--spacingHorizontalSNudge)";
|
|
2514
4879
|
|
|
2515
|
-
export declare const spacingHorizontalXL
|
|
4880
|
+
export declare const spacingHorizontalXL = "var(--spacingHorizontalXL)";
|
|
2516
4881
|
|
|
2517
|
-
export declare const spacingHorizontalXS
|
|
4882
|
+
export declare const spacingHorizontalXS = "var(--spacingHorizontalXS)";
|
|
2518
4883
|
|
|
2519
|
-
export declare const spacingHorizontalXXL
|
|
4884
|
+
export declare const spacingHorizontalXXL = "var(--spacingHorizontalXXL)";
|
|
2520
4885
|
|
|
2521
|
-
export declare const spacingHorizontalXXS
|
|
4886
|
+
export declare const spacingHorizontalXXS = "var(--spacingHorizontalXXS)";
|
|
2522
4887
|
|
|
2523
|
-
export declare const spacingHorizontalXXXL
|
|
4888
|
+
export declare const spacingHorizontalXXXL = "var(--spacingHorizontalXXXL)";
|
|
2524
4889
|
|
|
2525
|
-
export declare const spacingVerticalL
|
|
4890
|
+
export declare const spacingVerticalL = "var(--spacingVerticalL)";
|
|
2526
4891
|
|
|
2527
|
-
export declare const spacingVerticalM
|
|
4892
|
+
export declare const spacingVerticalM = "var(--spacingVerticalM)";
|
|
2528
4893
|
|
|
2529
|
-
export declare const spacingVerticalMNudge
|
|
4894
|
+
export declare const spacingVerticalMNudge = "var(--spacingVerticalMNudge)";
|
|
2530
4895
|
|
|
2531
|
-
export declare const spacingVerticalNone
|
|
4896
|
+
export declare const spacingVerticalNone = "var(--spacingVerticalNone)";
|
|
2532
4897
|
|
|
2533
|
-
export declare const spacingVerticalS
|
|
4898
|
+
export declare const spacingVerticalS = "var(--spacingVerticalS)";
|
|
2534
4899
|
|
|
2535
|
-
export declare const spacingVerticalSNudge
|
|
4900
|
+
export declare const spacingVerticalSNudge = "var(--spacingVerticalSNudge)";
|
|
2536
4901
|
|
|
2537
|
-
export declare const spacingVerticalXL
|
|
4902
|
+
export declare const spacingVerticalXL = "var(--spacingVerticalXL)";
|
|
2538
4903
|
|
|
2539
|
-
export declare const spacingVerticalXS
|
|
4904
|
+
export declare const spacingVerticalXS = "var(--spacingVerticalXS)";
|
|
2540
4905
|
|
|
2541
|
-
export declare const spacingVerticalXXL
|
|
4906
|
+
export declare const spacingVerticalXXL = "var(--spacingVerticalXXL)";
|
|
2542
4907
|
|
|
2543
|
-
export declare const spacingVerticalXXS
|
|
4908
|
+
export declare const spacingVerticalXXS = "var(--spacingVerticalXXS)";
|
|
2544
4909
|
|
|
2545
|
-
export declare const spacingVerticalXXXL
|
|
4910
|
+
export declare const spacingVerticalXXXL = "var(--spacingVerticalXXXL)";
|
|
2546
4911
|
|
|
2547
4912
|
/**
|
|
2548
4913
|
* The base class used for constructing a fluent-spinner custom element
|
|
2549
4914
|
* @public
|
|
2550
4915
|
*/
|
|
2551
|
-
export declare class Spinner extends
|
|
4916
|
+
export declare class Spinner extends FASTElement {
|
|
4917
|
+
/**
|
|
4918
|
+
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
4919
|
+
*
|
|
4920
|
+
* @internal
|
|
4921
|
+
*/
|
|
4922
|
+
protected elementInternals: ElementInternals;
|
|
2552
4923
|
/**
|
|
2553
4924
|
* The size of the spinner
|
|
2554
4925
|
*
|
|
@@ -2566,6 +4937,7 @@ export declare class Spinner extends FASTProgressRing {
|
|
|
2566
4937
|
* HTML Attribute: appearance
|
|
2567
4938
|
*/
|
|
2568
4939
|
appearance?: SpinnerAppearance;
|
|
4940
|
+
constructor();
|
|
2569
4941
|
}
|
|
2570
4942
|
|
|
2571
4943
|
/**
|
|
@@ -2584,10 +4956,6 @@ export declare const SpinnerAppearance: {
|
|
|
2584
4956
|
export declare type SpinnerAppearance = ValuesOf<typeof SpinnerAppearance>;
|
|
2585
4957
|
|
|
2586
4958
|
/**
|
|
2587
|
-
* The Fluent Spinner Element. Implements {@link @microsoft/fast-foundation#ProgressRing },
|
|
2588
|
-
* {@link @microsoft/fast-foundation#progress-ringTemplate}
|
|
2589
|
-
*
|
|
2590
|
-
*
|
|
2591
4959
|
* @public
|
|
2592
4960
|
* @remarks
|
|
2593
4961
|
* HTML Element: \<fluent-spinner\>
|
|
@@ -2616,21 +4984,60 @@ export declare type SpinnerSize = ValuesOf<typeof SpinnerSize>;
|
|
|
2616
4984
|
|
|
2617
4985
|
export declare const SpinnerStyles: ElementStyles;
|
|
2618
4986
|
|
|
2619
|
-
export declare const SpinnerTemplate:
|
|
4987
|
+
export declare const SpinnerTemplate: ViewTemplate<Spinner, any>;
|
|
4988
|
+
|
|
4989
|
+
/**
|
|
4990
|
+
* A mixin class implementing start and end slots.
|
|
4991
|
+
* These are generally used to decorate text elements with icons or other visual indicators.
|
|
4992
|
+
* @public
|
|
4993
|
+
*/
|
|
4994
|
+
declare class StartEnd {
|
|
4995
|
+
start: HTMLSlotElement;
|
|
4996
|
+
end: HTMLSlotElement;
|
|
4997
|
+
}
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* Start/End configuration options
|
|
5001
|
+
* @public
|
|
5002
|
+
*/
|
|
5003
|
+
declare type StartEndOptions<TSource = any, TParent = any> = StartOptions<TSource, TParent> & EndOptions<TSource, TParent>;
|
|
5004
|
+
|
|
5005
|
+
/**
|
|
5006
|
+
* Start configuration options
|
|
5007
|
+
* @public
|
|
5008
|
+
*/
|
|
5009
|
+
declare type StartOptions<TSource = any, TParent = any> = {
|
|
5010
|
+
start?: StaticallyComposableHTML<TSource, TParent>;
|
|
5011
|
+
};
|
|
5012
|
+
|
|
5013
|
+
/**
|
|
5014
|
+
* A value that can be statically composed into a
|
|
5015
|
+
* foundation template.
|
|
5016
|
+
* @remarks
|
|
5017
|
+
* When providing a string, take care to ensure that it is
|
|
5018
|
+
* safe and will not enable an XSS attack.
|
|
5019
|
+
* @public
|
|
5020
|
+
*/
|
|
5021
|
+
declare type StaticallyComposableHTML<TSource = any, TParent = any> = string | HTMLDirective | SyntheticViewTemplate<TSource, TParent> | undefined;
|
|
2620
5022
|
|
|
2621
|
-
export declare const strokeWidthThick
|
|
5023
|
+
export declare const strokeWidthThick = "var(--strokeWidthThick)";
|
|
2622
5024
|
|
|
2623
|
-
export declare const strokeWidthThicker
|
|
5025
|
+
export declare const strokeWidthThicker = "var(--strokeWidthThicker)";
|
|
2624
5026
|
|
|
2625
|
-
export declare const strokeWidthThickest
|
|
5027
|
+
export declare const strokeWidthThickest = "var(--strokeWidthThickest)";
|
|
2626
5028
|
|
|
2627
|
-
export declare const strokeWidthThin
|
|
5029
|
+
export declare const strokeWidthThin = "var(--strokeWidthThin)";
|
|
2628
5030
|
|
|
5031
|
+
/**
|
|
5032
|
+
* The styles for the Button component.
|
|
5033
|
+
*
|
|
5034
|
+
* @public
|
|
5035
|
+
*/
|
|
2629
5036
|
declare const styles: ElementStyles;
|
|
2630
5037
|
export { styles as ButtonStyles }
|
|
2631
5038
|
export { styles as MenuButtonStyles }
|
|
2632
5039
|
|
|
2633
|
-
export declare class Switch extends
|
|
5040
|
+
export declare class Switch extends FormAssociatedSwitch {
|
|
2634
5041
|
/**
|
|
2635
5042
|
* The label position of the switch
|
|
2636
5043
|
*
|
|
@@ -2640,6 +5047,40 @@ export declare class Switch extends FASTSwitch {
|
|
|
2640
5047
|
* HTML Attribute: labelposition
|
|
2641
5048
|
*/
|
|
2642
5049
|
labelPosition: SwitchLabelPosition | undefined;
|
|
5050
|
+
/**
|
|
5051
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
5052
|
+
* @public
|
|
5053
|
+
* @remarks
|
|
5054
|
+
* HTML Attribute: readonly
|
|
5055
|
+
*/
|
|
5056
|
+
readOnly: boolean;
|
|
5057
|
+
protected readOnlyChanged(): void;
|
|
5058
|
+
/**
|
|
5059
|
+
* The element's value to be included in form submission when checked.
|
|
5060
|
+
* Default to "on" to reach parity with input[type="checkbox"]
|
|
5061
|
+
*
|
|
5062
|
+
* @internal
|
|
5063
|
+
*/
|
|
5064
|
+
initialValue: string;
|
|
5065
|
+
/**
|
|
5066
|
+
* @internal
|
|
5067
|
+
*/
|
|
5068
|
+
defaultSlottedNodes: Node[];
|
|
5069
|
+
constructor();
|
|
5070
|
+
/**
|
|
5071
|
+
* @internal
|
|
5072
|
+
*/
|
|
5073
|
+
keypressHandler: (e: KeyboardEvent) => void;
|
|
5074
|
+
/**
|
|
5075
|
+
* @internal
|
|
5076
|
+
*/
|
|
5077
|
+
clickHandler: (e: MouseEvent) => void;
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
declare class _Switch extends FASTElement {
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
declare interface _Switch extends CheckableFormAssociated {
|
|
2643
5084
|
}
|
|
2644
5085
|
|
|
2645
5086
|
/**
|
|
@@ -2667,6 +5108,10 @@ export declare const SwitchLabelPosition: {
|
|
|
2667
5108
|
*/
|
|
2668
5109
|
export declare type SwitchLabelPosition = ValuesOf<typeof SwitchLabelPosition>;
|
|
2669
5110
|
|
|
5111
|
+
export declare type SwitchOptions = {
|
|
5112
|
+
switch?: StaticallyComposableHTML<Switch>;
|
|
5113
|
+
};
|
|
5114
|
+
|
|
2670
5115
|
export declare const SwitchStyles: ElementStyles;
|
|
2671
5116
|
|
|
2672
5117
|
export declare const SwitchTemplate: ElementViewTemplate<Switch>;
|
|
@@ -2674,29 +5119,39 @@ export declare const SwitchTemplate: ElementViewTemplate<Switch>;
|
|
|
2674
5119
|
/**
|
|
2675
5120
|
* Tab extends the FASTTab and is a child of the TabList
|
|
2676
5121
|
*/
|
|
2677
|
-
export declare class Tab extends
|
|
5122
|
+
export declare class Tab extends FASTElement {
|
|
5123
|
+
/**
|
|
5124
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute} for more information.
|
|
5125
|
+
* @public
|
|
5126
|
+
* @remarks
|
|
5127
|
+
* HTML Attribute: disabled
|
|
5128
|
+
*/
|
|
5129
|
+
disabled: boolean;
|
|
2678
5130
|
private styles;
|
|
2679
5131
|
connectedCallback(): void;
|
|
2680
5132
|
}
|
|
2681
5133
|
|
|
5134
|
+
export declare interface Tab extends StartEnd {
|
|
5135
|
+
}
|
|
5136
|
+
|
|
2682
5137
|
export declare const TabDefinition: FASTElementDefinition<typeof Tab>;
|
|
2683
5138
|
|
|
2684
|
-
|
|
5139
|
+
/**
|
|
5140
|
+
* Tab configuration options
|
|
5141
|
+
* @public
|
|
5142
|
+
*/
|
|
5143
|
+
export declare type TabOptions = StartEndOptions<Tab>;
|
|
5144
|
+
|
|
5145
|
+
export declare class TabPanel extends FASTElement {
|
|
2685
5146
|
}
|
|
2686
5147
|
|
|
2687
5148
|
export declare const TabPanelDefinition: FASTElementDefinition<typeof TabPanel>;
|
|
2688
5149
|
|
|
2689
5150
|
export declare const TabPanelStyles: ElementStyles;
|
|
2690
5151
|
|
|
2691
|
-
export declare const TabPanelTemplate: ElementViewTemplate<
|
|
5152
|
+
export declare const TabPanelTemplate: ElementViewTemplate<TabPanel, any>;
|
|
2692
5153
|
|
|
2693
|
-
|
|
2694
|
-
* TabList extends FASTTabs and is used for constructing a fluent-tab-list custom html element.
|
|
2695
|
-
*
|
|
2696
|
-
* @class TabList component
|
|
2697
|
-
* @public
|
|
2698
|
-
*/
|
|
2699
|
-
export declare class Tabs extends FASTTabs {
|
|
5154
|
+
export declare class Tabs extends BaseTabs {
|
|
2700
5155
|
/**
|
|
2701
5156
|
* activeTabData
|
|
2702
5157
|
* The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
|
|
@@ -2777,6 +5232,9 @@ export declare class Tabs extends FASTTabs {
|
|
|
2777
5232
|
tabsChanged(): void;
|
|
2778
5233
|
}
|
|
2779
5234
|
|
|
5235
|
+
export declare interface Tabs extends StartEnd {
|
|
5236
|
+
}
|
|
5237
|
+
|
|
2780
5238
|
export declare const TabsAppearance: {
|
|
2781
5239
|
readonly subtle: "subtle";
|
|
2782
5240
|
readonly transparent: "transparent";
|
|
@@ -2786,7 +5244,26 @@ export declare type TabsAppearance = ValuesOf<typeof TabsAppearance>;
|
|
|
2786
5244
|
|
|
2787
5245
|
export declare const TabsDefinition: FASTElementDefinition<typeof Tabs>;
|
|
2788
5246
|
|
|
2789
|
-
|
|
5247
|
+
/**
|
|
5248
|
+
* Tabs option configuration options
|
|
5249
|
+
* @public
|
|
5250
|
+
*/
|
|
5251
|
+
export declare type TabsOptions = StartEndOptions<Tabs>;
|
|
5252
|
+
|
|
5253
|
+
/**
|
|
5254
|
+
* The orientation of the component
|
|
5255
|
+
* @public
|
|
5256
|
+
*/
|
|
5257
|
+
export declare const TabsOrientation: {
|
|
5258
|
+
readonly horizontal: "horizontal";
|
|
5259
|
+
readonly vertical: "vertical";
|
|
5260
|
+
};
|
|
5261
|
+
|
|
5262
|
+
/**
|
|
5263
|
+
* The types for the Tabs component
|
|
5264
|
+
* @public
|
|
5265
|
+
*/
|
|
5266
|
+
export declare type TabsOrientation = ValuesOf<typeof TabsOrientation>;
|
|
2790
5267
|
|
|
2791
5268
|
export declare const TabsSize: {
|
|
2792
5269
|
readonly small: "small";
|
|
@@ -2798,11 +5275,11 @@ export declare type TabsSize = ValuesOf<typeof TabsSize>;
|
|
|
2798
5275
|
|
|
2799
5276
|
export declare const TabsStyles: ElementStyles;
|
|
2800
5277
|
|
|
2801
|
-
export declare const TabsTemplate: ElementViewTemplate<
|
|
5278
|
+
export declare const TabsTemplate: ElementViewTemplate<Tabs, any>;
|
|
2802
5279
|
|
|
2803
5280
|
export declare const TabStyles: ElementStyles;
|
|
2804
5281
|
|
|
2805
|
-
export declare const TabTemplate: ElementViewTemplate<
|
|
5282
|
+
export declare const TabTemplate: ElementViewTemplate<Tab, any>;
|
|
2806
5283
|
|
|
2807
5284
|
/**
|
|
2808
5285
|
* The base class used for constructing a fluent-text custom element
|
|
@@ -2922,6 +5399,12 @@ export declare type TextAlign = ValuesOf<typeof TextAlign>;
|
|
|
2922
5399
|
*/
|
|
2923
5400
|
export declare const TextDefinition: FASTElementDefinition<typeof Text_2>;
|
|
2924
5401
|
|
|
5402
|
+
declare class _TextField extends FASTElement {
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
declare interface _TextField extends FormAssociated {
|
|
5406
|
+
}
|
|
5407
|
+
|
|
2925
5408
|
/**
|
|
2926
5409
|
* TextFont Constants
|
|
2927
5410
|
* @public
|
|
@@ -2938,11 +5421,7 @@ export declare const TextFont: {
|
|
|
2938
5421
|
*/
|
|
2939
5422
|
export declare type TextFont = ValuesOf<typeof TextFont>;
|
|
2940
5423
|
|
|
2941
|
-
|
|
2942
|
-
* The base class used for constructing a fluent-text-input custom element
|
|
2943
|
-
* @public
|
|
2944
|
-
*/
|
|
2945
|
-
export declare class TextInput extends FASTTextField {
|
|
5424
|
+
export declare class TextInput extends FormAssociatedTextField {
|
|
2946
5425
|
/**
|
|
2947
5426
|
* Defines TextInput control size
|
|
2948
5427
|
*
|
|
@@ -2961,6 +5440,126 @@ export declare class TextInput extends FASTTextField {
|
|
|
2961
5440
|
* HTML Attribute: appearance
|
|
2962
5441
|
*/
|
|
2963
5442
|
appearance?: TextInputAppearance;
|
|
5443
|
+
/**
|
|
5444
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
5445
|
+
* @public
|
|
5446
|
+
* @remarks
|
|
5447
|
+
* HTML Attribute: readonly
|
|
5448
|
+
*/
|
|
5449
|
+
readOnly: boolean;
|
|
5450
|
+
protected readOnlyChanged(): void;
|
|
5451
|
+
/**
|
|
5452
|
+
* Indicates that this element should get focus after the page finishes loading. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautofocus | autofocus HTML attribute} for more information.
|
|
5453
|
+
* @public
|
|
5454
|
+
* @remarks
|
|
5455
|
+
* HTML Attribute: autofocus
|
|
5456
|
+
*/
|
|
5457
|
+
autofocus: boolean;
|
|
5458
|
+
protected autofocusChanged(): void;
|
|
5459
|
+
/**
|
|
5460
|
+
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
5461
|
+
* @public
|
|
5462
|
+
* @remarks
|
|
5463
|
+
* HTML Attribute: placeholder
|
|
5464
|
+
* Using this attribute does is not a valid substitute for a labeling element.
|
|
5465
|
+
*/
|
|
5466
|
+
placeholder: string;
|
|
5467
|
+
protected placeholderChanged(): void;
|
|
5468
|
+
/**
|
|
5469
|
+
* Allows setting a type or mode of text.
|
|
5470
|
+
* @public
|
|
5471
|
+
* @remarks
|
|
5472
|
+
* HTML Attribute: type
|
|
5473
|
+
*/
|
|
5474
|
+
type: TextInputType;
|
|
5475
|
+
private typeChanged;
|
|
5476
|
+
/**
|
|
5477
|
+
* Allows associating a {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist | datalist} to the element by {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/id}.
|
|
5478
|
+
* @public
|
|
5479
|
+
* @remarks
|
|
5480
|
+
* HTML Attribute: list
|
|
5481
|
+
*/
|
|
5482
|
+
list: string;
|
|
5483
|
+
protected listChanged(): void;
|
|
5484
|
+
/**
|
|
5485
|
+
* The maximum number of characters a user can enter.
|
|
5486
|
+
* @public
|
|
5487
|
+
* @remarks
|
|
5488
|
+
* HTMLAttribute: maxlength
|
|
5489
|
+
*/
|
|
5490
|
+
maxlength: number;
|
|
5491
|
+
protected maxlengthChanged(): void;
|
|
5492
|
+
/**
|
|
5493
|
+
* The minimum number of characters a user can enter.
|
|
5494
|
+
* @public
|
|
5495
|
+
* @remarks
|
|
5496
|
+
* HTMLAttribute: minlength
|
|
5497
|
+
*/
|
|
5498
|
+
minlength: number;
|
|
5499
|
+
protected minlengthChanged(): void;
|
|
5500
|
+
/**
|
|
5501
|
+
* A regular expression that the value must match to pass validation.
|
|
5502
|
+
* @public
|
|
5503
|
+
* @remarks
|
|
5504
|
+
* HTMLAttribute: pattern
|
|
5505
|
+
*/
|
|
5506
|
+
pattern: string;
|
|
5507
|
+
protected patternChanged(): void;
|
|
5508
|
+
/**
|
|
5509
|
+
* Sets the width of the element to a specified number of characters.
|
|
5510
|
+
* @public
|
|
5511
|
+
* @remarks
|
|
5512
|
+
* HTMLAttribute: size
|
|
5513
|
+
*/
|
|
5514
|
+
size: number;
|
|
5515
|
+
protected sizeChanged(): void;
|
|
5516
|
+
/**
|
|
5517
|
+
* Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
|
|
5518
|
+
* @public
|
|
5519
|
+
* @remarks
|
|
5520
|
+
* HTMLAttribute: size
|
|
5521
|
+
*/
|
|
5522
|
+
spellcheck: boolean;
|
|
5523
|
+
protected spellcheckChanged(): void;
|
|
5524
|
+
/**
|
|
5525
|
+
* @internal
|
|
5526
|
+
*/
|
|
5527
|
+
defaultSlottedNodes: Node[];
|
|
5528
|
+
/**
|
|
5529
|
+
* A reference to the internal input element
|
|
5530
|
+
* @internal
|
|
5531
|
+
*/
|
|
5532
|
+
control: HTMLInputElement;
|
|
5533
|
+
/**
|
|
5534
|
+
* @internal
|
|
5535
|
+
*/
|
|
5536
|
+
connectedCallback(): void;
|
|
5537
|
+
/**
|
|
5538
|
+
* Selects all the text in the text field
|
|
5539
|
+
*
|
|
5540
|
+
* @public
|
|
5541
|
+
*/
|
|
5542
|
+
select(): void;
|
|
5543
|
+
/**
|
|
5544
|
+
* Handles the internal control's `input` event
|
|
5545
|
+
* @internal
|
|
5546
|
+
*/
|
|
5547
|
+
handleTextInput(): void;
|
|
5548
|
+
/**
|
|
5549
|
+
* Change event handler for inner control.
|
|
5550
|
+
* @remarks
|
|
5551
|
+
* "Change" events are not `composable` so they will not
|
|
5552
|
+
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
5553
|
+
* the change event, emitting a `change` event whenever the internal
|
|
5554
|
+
* control emits a `change` event
|
|
5555
|
+
* @internal
|
|
5556
|
+
*/
|
|
5557
|
+
handleChange(): void;
|
|
5558
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
5559
|
+
validate(): void;
|
|
5560
|
+
}
|
|
5561
|
+
|
|
5562
|
+
export declare interface TextInput extends StartEnd, DelegatesARIATextbox {
|
|
2964
5563
|
}
|
|
2965
5564
|
|
|
2966
5565
|
/**
|
|
@@ -3006,6 +5605,8 @@ export declare type TextInputControlSize = ValuesOf<typeof TextInputControlSize>
|
|
|
3006
5605
|
*/
|
|
3007
5606
|
export declare const TextInputDefinition: FASTElementDefinition<typeof TextInput>;
|
|
3008
5607
|
|
|
5608
|
+
export declare type TextInputOptions = StartEndOptions<TextInput>;
|
|
5609
|
+
|
|
3009
5610
|
/** TextInput styles
|
|
3010
5611
|
* @public
|
|
3011
5612
|
*/
|
|
@@ -3016,7 +5617,38 @@ export declare const TextInputStyles: ElementStyles;
|
|
|
3016
5617
|
*/
|
|
3017
5618
|
export declare const TextInputTemplate: ElementViewTemplate<TextInput>;
|
|
3018
5619
|
|
|
3019
|
-
|
|
5620
|
+
/**
|
|
5621
|
+
* Text field sub-types
|
|
5622
|
+
* @public
|
|
5623
|
+
*/
|
|
5624
|
+
export declare const TextInputType: {
|
|
5625
|
+
/**
|
|
5626
|
+
* An email TextInput
|
|
5627
|
+
*/
|
|
5628
|
+
readonly email: "email";
|
|
5629
|
+
/**
|
|
5630
|
+
* A password TextInput
|
|
5631
|
+
*/
|
|
5632
|
+
readonly password: "password";
|
|
5633
|
+
/**
|
|
5634
|
+
* A telephone TextInput
|
|
5635
|
+
*/
|
|
5636
|
+
readonly tel: "tel";
|
|
5637
|
+
/**
|
|
5638
|
+
* A text TextInput
|
|
5639
|
+
*/
|
|
5640
|
+
readonly text: "text";
|
|
5641
|
+
/**
|
|
5642
|
+
* A URL TextInput
|
|
5643
|
+
*/
|
|
5644
|
+
readonly url: "url";
|
|
5645
|
+
};
|
|
5646
|
+
|
|
5647
|
+
/**
|
|
5648
|
+
* Types for the text field sub-types
|
|
5649
|
+
* @public
|
|
5650
|
+
*/
|
|
5651
|
+
export declare type TextInputType = ValuesOf<typeof TextInputType>;
|
|
3020
5652
|
|
|
3021
5653
|
/**
|
|
3022
5654
|
* TextSize constants
|
|
@@ -3070,51 +5702,54 @@ export declare const TextWeight: {
|
|
|
3070
5702
|
export declare type TextWeight = ValuesOf<typeof TextWeight>;
|
|
3071
5703
|
|
|
3072
5704
|
/**
|
|
3073
|
-
* The base class used for constructing a fluent-toggle-button custom element
|
|
5705
|
+
* The base class used for constructing a `<fluent-toggle-button>` custom element.
|
|
5706
|
+
*
|
|
3074
5707
|
* @public
|
|
3075
5708
|
*/
|
|
3076
5709
|
export declare class ToggleButton extends Button {
|
|
3077
5710
|
/**
|
|
3078
|
-
*
|
|
3079
|
-
*
|
|
3080
|
-
*
|
|
5711
|
+
* Indicates the pressed state of the control.
|
|
5712
|
+
*
|
|
5713
|
+
* @public
|
|
5714
|
+
* @remarks
|
|
5715
|
+
* HTML Attribute: `pressed`
|
|
5716
|
+
*/
|
|
5717
|
+
pressed: boolean;
|
|
5718
|
+
/**
|
|
5719
|
+
* Updates the pressed state when the `pressed` property changes.
|
|
5720
|
+
*
|
|
5721
|
+
* @internal
|
|
3081
5722
|
*/
|
|
3082
|
-
protected
|
|
5723
|
+
protected pressedChanged(): void;
|
|
3083
5724
|
/**
|
|
3084
|
-
*
|
|
3085
|
-
* Passed down to proxy
|
|
5725
|
+
* Indicates the mixed state of the control. This property takes precedence over `pressed`.
|
|
3086
5726
|
*
|
|
3087
5727
|
* @public
|
|
3088
5728
|
* @remarks
|
|
3089
|
-
* HTML Attribute:
|
|
5729
|
+
* HTML Attribute: `mixed`
|
|
3090
5730
|
*/
|
|
3091
|
-
|
|
3092
|
-
protected checkedAttributeChanged(): void;
|
|
3093
|
-
defaultChecked: boolean;
|
|
3094
|
-
protected defaultCheckedChanged(): void;
|
|
5731
|
+
mixed?: boolean;
|
|
3095
5732
|
/**
|
|
3096
|
-
*
|
|
5733
|
+
* Updates the pressed state when the `mixed` property changes.
|
|
3097
5734
|
*
|
|
3098
|
-
* @
|
|
5735
|
+
* @param previous - the previous mixed state
|
|
5736
|
+
* @param next - the current mixed state
|
|
5737
|
+
* @internal
|
|
3099
5738
|
*/
|
|
3100
|
-
|
|
3101
|
-
protected checkedChanged(prev: boolean | undefined, next: boolean): void;
|
|
5739
|
+
protected mixedChanged(): void;
|
|
3102
5740
|
/**
|
|
3103
|
-
*
|
|
3104
|
-
*
|
|
3105
|
-
*
|
|
3106
|
-
* in UI libraries that bind data through the .setAttribute() API
|
|
3107
|
-
* and don't support IDL attribute binding.
|
|
5741
|
+
* Toggles the pressed state of the button.
|
|
5742
|
+
*
|
|
5743
|
+
* @override
|
|
3108
5744
|
*/
|
|
3109
|
-
|
|
3110
|
-
currentCheckedChanged(prev: boolean | undefined, next: boolean): void;
|
|
3111
|
-
constructor();
|
|
5745
|
+
protected press(): void;
|
|
3112
5746
|
connectedCallback(): void;
|
|
3113
|
-
disconnectedCallback(): void;
|
|
3114
5747
|
/**
|
|
5748
|
+
* Sets the `aria-pressed` attribute based on the `pressed` and `mixed` properties.
|
|
5749
|
+
*
|
|
3115
5750
|
* @internal
|
|
3116
5751
|
*/
|
|
3117
|
-
|
|
5752
|
+
private setPressedState;
|
|
3118
5753
|
}
|
|
3119
5754
|
|
|
3120
5755
|
/**
|
|
@@ -3136,8 +5771,6 @@ export declare const ToggleButtonAppearance: {
|
|
|
3136
5771
|
export declare type ToggleButtonAppearance = ValuesOf<typeof ToggleButtonAppearance>;
|
|
3137
5772
|
|
|
3138
5773
|
/**
|
|
3139
|
-
* The Fluent Toggle Button Element. Implements {@link @microsoft/fast-foundation#Button },
|
|
3140
|
-
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
3141
5774
|
*
|
|
3142
5775
|
* @public
|
|
3143
5776
|
* @remarks
|
|
@@ -3177,6 +5810,13 @@ export declare const ToggleButtonSize: {
|
|
|
3177
5810
|
*/
|
|
3178
5811
|
export declare type ToggleButtonSize = ValuesOf<typeof ToggleButtonSize>;
|
|
3179
5812
|
|
|
5813
|
+
/**
|
|
5814
|
+
* The styles for the ToggleButton component.
|
|
5815
|
+
*
|
|
5816
|
+
* @public
|
|
5817
|
+
* @privateRemarks
|
|
5818
|
+
* TODO: Need to support icon hover styles
|
|
5819
|
+
*/
|
|
3180
5820
|
export declare const ToggleButtonStyles: ElementStyles;
|
|
3181
5821
|
|
|
3182
5822
|
/**
|
|
@@ -3185,4 +5825,45 @@ export declare const ToggleButtonStyles: ElementStyles;
|
|
|
3185
5825
|
*/
|
|
3186
5826
|
export declare const ToggleButtonTemplate: ElementViewTemplate<ToggleButton>;
|
|
3187
5827
|
|
|
5828
|
+
export declare const typographyBody1StrongerStyles: CSSDirective;
|
|
5829
|
+
|
|
5830
|
+
export declare const typographyBody1StrongStyles: CSSDirective;
|
|
5831
|
+
|
|
5832
|
+
export declare const typographyBody1Styles: CSSDirective;
|
|
5833
|
+
|
|
5834
|
+
export declare const typographyBody2Styles: CSSDirective;
|
|
5835
|
+
|
|
5836
|
+
export declare const typographyCaption1StrongerStyles: CSSDirective;
|
|
5837
|
+
|
|
5838
|
+
export declare const typographyCaption1StrongStyles: CSSDirective;
|
|
5839
|
+
|
|
5840
|
+
export declare const typographyCaption1Styles: CSSDirective;
|
|
5841
|
+
|
|
5842
|
+
export declare const typographyCaption2StrongStyles: CSSDirective;
|
|
5843
|
+
|
|
5844
|
+
export declare const typographyCaption2Styles: CSSDirective;
|
|
5845
|
+
|
|
5846
|
+
export declare const typographyDisplayStyles: CSSDirective;
|
|
5847
|
+
|
|
5848
|
+
export declare const typographyLargeTitleStyles: CSSDirective;
|
|
5849
|
+
|
|
5850
|
+
export declare const typographySubtitle1Styles: CSSDirective;
|
|
5851
|
+
|
|
5852
|
+
export declare const typographySubtitle2StrongerStyles: CSSDirective;
|
|
5853
|
+
|
|
5854
|
+
export declare const typographySubtitle2Styles: CSSDirective;
|
|
5855
|
+
|
|
5856
|
+
export declare const typographyTitle1Styles: CSSDirective;
|
|
5857
|
+
|
|
5858
|
+
export declare const typographyTitle2Styles: CSSDirective;
|
|
5859
|
+
|
|
5860
|
+
export declare const typographyTitle3Styles: CSSDirective;
|
|
5861
|
+
|
|
5862
|
+
/**
|
|
5863
|
+
* Helper for enumerating a type from a const object
|
|
5864
|
+
* Example: export type Foo = ValuesOf\<typeof Foo\>
|
|
5865
|
+
* @public
|
|
5866
|
+
*/
|
|
5867
|
+
declare type ValuesOf<T> = T[keyof T];
|
|
5868
|
+
|
|
3188
5869
|
export { }
|