@fluentui/web-components 3.0.0-alpha.9 → 3.0.0-beta.2
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 +225 -2
- package/README.md +4 -0
- package/dist/dts/accordion/accordion.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.options.d.ts +1 -1
- package/dist/dts/anchor-button/anchor-button.d.ts +64 -0
- package/dist/dts/anchor-button/anchor-button.definition.d.ts +10 -0
- package/dist/dts/anchor-button/anchor-button.options.d.ts +47 -0
- package/dist/dts/anchor-button/anchor-button.styles.d.ts +1 -0
- package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -0
- package/dist/dts/anchor-button/define.d.ts +1 -0
- package/dist/dts/anchor-button/index.d.ts +4 -0
- package/dist/dts/avatar/avatar.options.d.ts +1 -1
- package/dist/dts/badge/badge.d.ts +1 -1
- package/dist/dts/badge/badge.options.d.ts +2 -1
- package/dist/dts/button/button.d.ts +55 -0
- package/dist/dts/button/button.definition.d.ts +10 -0
- package/dist/dts/button/button.options.d.ts +47 -0
- package/dist/dts/button/button.styles.d.ts +1 -0
- package/dist/dts/button/button.template.d.ts +7 -0
- package/dist/dts/button/define.d.ts +1 -0
- package/dist/dts/button/index.d.ts +5 -0
- package/dist/dts/checkbox/checkbox.d.ts +35 -0
- package/dist/dts/checkbox/checkbox.definition.d.ts +9 -0
- package/dist/dts/checkbox/checkbox.options.d.ts +28 -0
- package/dist/dts/checkbox/checkbox.styles.d.ts +5 -0
- package/dist/dts/checkbox/checkbox.template.d.ts +7 -0
- package/dist/dts/checkbox/define.d.ts +1 -0
- package/dist/dts/checkbox/index.d.ts +5 -0
- package/dist/dts/compound-button/compound-button.d.ts +7 -0
- package/dist/dts/compound-button/compound-button.definition.d.ts +10 -0
- package/dist/dts/compound-button/compound-button.options.d.ts +51 -0
- package/dist/dts/compound-button/compound-button.styles.d.ts +1 -0
- package/dist/dts/compound-button/compound-button.template.d.ts +13 -0
- package/dist/dts/compound-button/define.d.ts +1 -0
- package/dist/dts/compound-button/index.d.ts +5 -0
- package/dist/dts/counter-badge/counter-badge.d.ts +1 -1
- package/dist/dts/counter-badge/counter-badge.options.d.ts +1 -1
- package/dist/dts/divider/divider.d.ts +1 -1
- package/dist/dts/divider/divider.options.d.ts +2 -1
- package/dist/dts/helpers.tests.d.ts +8 -0
- package/dist/dts/image/image.options.d.ts +1 -1
- package/dist/dts/index.d.ts +17 -0
- package/dist/dts/label/define.d.ts +1 -0
- package/dist/dts/label/index.d.ts +4 -0
- package/dist/dts/label/label.d.ts +42 -0
- package/dist/dts/label/label.definition.d.ts +10 -0
- package/dist/dts/label/label.options.d.ts +26 -0
- package/dist/dts/label/label.styles.d.ts +4 -0
- package/dist/dts/label/label.template.d.ts +8 -0
- package/dist/dts/menu-button/define.d.ts +1 -0
- package/dist/dts/menu-button/index.d.ts +5 -0
- package/dist/dts/menu-button/menu-button.d.ts +7 -0
- package/dist/dts/menu-button/menu-button.definition.d.ts +10 -0
- package/dist/dts/menu-button/menu-button.options.d.ts +47 -0
- package/dist/dts/menu-button/menu-button.template.d.ts +7 -0
- package/dist/dts/menu-item/define.d.ts +1 -0
- package/dist/dts/menu-item/index.d.ts +4 -0
- package/dist/dts/menu-item/menu-item.d.ts +9 -0
- package/dist/dts/menu-item/menu-item.definition.d.ts +11 -0
- package/dist/dts/menu-item/menu-item.styles.d.ts +4 -0
- package/dist/dts/menu-item/menu-item.template.d.ts +3 -0
- package/dist/dts/menu-list/define.d.ts +1 -0
- package/dist/dts/menu-list/index.d.ts +4 -0
- package/dist/dts/menu-list/menu-list.d.ts +9 -0
- package/dist/dts/menu-list/menu-list.definition.d.ts +11 -0
- package/dist/dts/menu-list/menu-list.styles.d.ts +4 -0
- package/dist/dts/menu-list/menu-list.template.d.ts +3 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +1 -1
- package/dist/dts/progress-bar/progress-bar.options.d.ts +1 -1
- package/dist/dts/progress-bar/progress-bar.styles.d.ts +1 -1
- package/dist/dts/radio/define.d.ts +1 -0
- package/dist/dts/radio/index.d.ts +4 -0
- package/dist/dts/radio/radio.d.ts +7 -0
- package/dist/dts/radio/radio.definition.d.ts +10 -0
- package/dist/dts/radio/radio.styles.d.ts +4 -0
- package/dist/dts/radio/radio.template.d.ts +3 -0
- package/dist/dts/radio-group/define.d.ts +1 -0
- package/dist/dts/radio-group/index.d.ts +5 -0
- package/dist/dts/radio-group/radio-group.d.ts +15 -0
- package/dist/dts/radio-group/radio-group.definition.d.ts +10 -0
- package/dist/dts/radio-group/radio-group.styles.d.ts +4 -0
- package/dist/dts/radio-group/radio-group.template.d.ts +3 -0
- package/dist/dts/slider/define.d.ts +1 -0
- package/dist/dts/slider/index.d.ts +5 -0
- package/dist/dts/slider/slider.d.ts +24 -0
- package/dist/dts/slider/slider.definition.d.ts +10 -0
- package/dist/dts/slider/slider.options.d.ts +15 -0
- package/dist/dts/slider/slider.styles.d.ts +4 -0
- package/dist/dts/slider/slider.template.d.ts +3 -0
- package/dist/dts/spinner/spinner.d.ts +1 -1
- package/dist/dts/spinner/spinner.options.d.ts +1 -1
- package/dist/dts/switch/index.d.ts +3 -3
- package/dist/dts/switch/switch.d.ts +1 -1
- package/dist/dts/switch/switch.options.d.ts +1 -1
- package/dist/dts/tab/define.d.ts +1 -0
- package/dist/dts/tab/index.d.ts +4 -0
- package/dist/dts/tab/tab.d.ts +8 -0
- package/dist/dts/tab/tab.definition.d.ts +2 -0
- package/dist/dts/tab/tab.styles.d.ts +1 -0
- package/dist/dts/tab/tab.template.d.ts +4 -0
- package/dist/dts/tab-panel/define.d.ts +1 -0
- package/dist/dts/tab-panel/index.d.ts +4 -0
- package/dist/dts/tab-panel/tab-panel.d.ts +3 -0
- package/dist/dts/tab-panel/tab-panel.definition.d.ts +2 -0
- package/dist/dts/tab-panel/tab-panel.styles.d.ts +1 -0
- package/dist/dts/tab-panel/tab-panel.template.d.ts +1 -0
- package/dist/dts/tabs/define.d.ts +1 -0
- package/dist/dts/tabs/index.d.ts +5 -0
- package/dist/dts/tabs/tabs.d.ts +88 -0
- package/dist/dts/tabs/tabs.definition.d.ts +2 -0
- package/dist/dts/tabs/tabs.options.d.ts +14 -0
- package/dist/dts/tabs/tabs.styles.d.ts +1 -0
- package/dist/dts/tabs/tabs.template.d.ts +1 -0
- package/dist/dts/text/text.options.d.ts +1 -1
- package/dist/dts/text-input/define.d.ts +1 -0
- package/dist/dts/text-input/index.d.ts +6 -0
- package/dist/dts/text-input/text-input.d.ts +26 -0
- package/dist/dts/text-input/text-input.definition.d.ts +10 -0
- package/dist/dts/text-input/text-input.options.d.ts +30 -0
- package/dist/dts/text-input/text-input.styles.d.ts +4 -0
- package/dist/dts/text-input/text-input.template.d.ts +6 -0
- package/dist/dts/theme/design-tokens.d.ts +384 -384
- package/dist/dts/theme/index.d.ts +2 -2
- package/dist/dts/theme/set-theme.d.ts +2 -0
- package/dist/dts/toggle-button/define.d.ts +1 -0
- package/dist/dts/toggle-button/index.d.ts +5 -0
- package/dist/dts/toggle-button/toggle-button.d.ts +48 -0
- package/dist/dts/toggle-button/toggle-button.definition.d.ts +10 -0
- package/dist/dts/toggle-button/toggle-button.options.d.ts +47 -0
- package/dist/dts/toggle-button/toggle-button.styles.d.ts +1 -0
- package/dist/dts/toggle-button/toggle-button.template.d.ts +7 -0
- package/dist/dts/utils/apply-mixins.d.ts +11 -0
- package/dist/esm/accordion/accordion.js +1 -1
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.styles.js +2 -1
- package/dist/esm/accordion/accordion.styles.js.map +1 -1
- package/dist/esm/accordion/accordion.template.js +1 -1
- package/dist/esm/accordion/accordion.template.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +7 -2
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +2 -1
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.template.js +3 -3
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.definition.js +21 -0
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.js +98 -0
- package/dist/esm/anchor-button/anchor-button.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.options.js +17 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.styles.js +11 -0
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.template.js +7 -0
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -0
- package/dist/esm/anchor-button/define.js +4 -0
- package/dist/esm/anchor-button/define.js.map +1 -0
- package/dist/esm/anchor-button/index.js +5 -0
- package/dist/esm/anchor-button/index.js.map +1 -0
- package/dist/esm/avatar/avatar.js +6 -1
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +2 -1
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/badge/badge.js +9 -2
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.options.js.map +1 -1
- package/dist/esm/badge/badge.template.js +2 -1
- package/dist/esm/badge/badge.template.js.map +1 -1
- package/dist/esm/button/button.definition.js +21 -0
- package/dist/esm/button/button.definition.js.map +1 -0
- package/dist/esm/button/button.js +77 -0
- package/dist/esm/button/button.js.map +1 -0
- package/dist/esm/button/button.options.js +30 -0
- package/dist/esm/button/button.options.js.map +1 -0
- package/dist/esm/button/button.styles.js +260 -0
- package/dist/esm/button/button.styles.js.map +1 -0
- package/dist/esm/button/button.template.js +7 -0
- package/dist/esm/button/button.template.js.map +1 -0
- package/dist/esm/button/define.js +4 -0
- package/dist/esm/button/define.js.map +1 -0
- package/dist/esm/button/index.js +6 -0
- package/dist/esm/button/index.js.map +1 -0
- package/dist/esm/checkbox/checkbox.definition.js +17 -0
- package/dist/esm/checkbox/checkbox.definition.js.map +1 -0
- package/dist/esm/checkbox/checkbox.js +24 -0
- package/dist/esm/checkbox/checkbox.js.map +1 -0
- package/dist/esm/checkbox/checkbox.options.js +25 -0
- package/dist/esm/checkbox/checkbox.options.js.map +1 -0
- package/dist/esm/checkbox/checkbox.styles.js +164 -0
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -0
- package/dist/esm/checkbox/checkbox.template.js +27 -0
- package/dist/esm/checkbox/checkbox.template.js.map +1 -0
- package/dist/esm/checkbox/define.js +4 -0
- package/dist/esm/checkbox/define.js.map +1 -0
- package/dist/esm/checkbox/index.js +6 -0
- package/dist/esm/checkbox/index.js.map +1 -0
- package/dist/esm/compound-button/compound-button.definition.js +21 -0
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -0
- package/dist/esm/compound-button/compound-button.js +8 -0
- package/dist/esm/compound-button/compound-button.js.map +1 -0
- package/dist/esm/compound-button/compound-button.options.js +17 -0
- package/dist/esm/compound-button/compound-button.options.js.map +1 -0
- package/dist/esm/compound-button/compound-button.styles.js +105 -0
- package/dist/esm/compound-button/compound-button.styles.js.map +1 -0
- package/dist/esm/compound-button/compound-button.template.js +60 -0
- package/dist/esm/compound-button/compound-button.template.js.map +1 -0
- package/dist/esm/compound-button/define.js +4 -0
- package/dist/esm/compound-button/define.js.map +1 -0
- package/dist/esm/compound-button/index.js +6 -0
- package/dist/esm/compound-button/index.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.js +9 -2
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/divider/divider.js +7 -2
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.options.js +1 -1
- package/dist/esm/divider/divider.options.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +18 -2
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/divider/divider.template.js +1 -1
- package/dist/esm/divider/divider.template.js.map +1 -1
- package/dist/esm/helpers.tests.js +29 -0
- package/dist/esm/helpers.tests.js.map +1 -0
- package/dist/esm/image/image.js +6 -1
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/image.styles.js +8 -1
- package/dist/esm/image/image.styles.js.map +1 -1
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/define.js +4 -0
- package/dist/esm/label/define.js.map +1 -0
- package/dist/esm/label/index.js +5 -0
- package/dist/esm/label/index.js.map +1 -0
- package/dist/esm/label/label.definition.js +18 -0
- package/dist/esm/label/label.definition.js.map +1 -0
- package/dist/esm/label/label.js +45 -0
- package/dist/esm/label/label.js.map +1 -0
- package/dist/esm/label/label.options.js +16 -0
- package/dist/esm/label/label.options.js.map +1 -0
- package/dist/esm/label/label.styles.js +38 -0
- package/dist/esm/label/label.styles.js.map +1 -0
- package/dist/esm/label/label.template.js +13 -0
- package/dist/esm/label/label.template.js.map +1 -0
- package/dist/esm/menu-button/define.js +4 -0
- package/dist/esm/menu-button/define.js.map +1 -0
- package/dist/esm/menu-button/index.js +6 -0
- package/dist/esm/menu-button/index.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition.js +21 -0
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -0
- package/dist/esm/menu-button/menu-button.js +8 -0
- package/dist/esm/menu-button/menu-button.js.map +1 -0
- package/dist/esm/menu-button/menu-button.options.js +17 -0
- package/dist/esm/menu-button/menu-button.options.js.map +1 -0
- package/dist/esm/menu-button/menu-button.template.js +10 -0
- package/dist/esm/menu-button/menu-button.template.js.map +1 -0
- package/dist/esm/menu-item/define.js +4 -0
- package/dist/esm/menu-item/define.js.map +1 -0
- package/dist/esm/menu-item/index.js +5 -0
- package/dist/esm/menu-item/index.js.map +1 -0
- package/dist/esm/menu-item/menu-item.definition.js +19 -0
- package/dist/esm/menu-item/menu-item.definition.js.map +1 -0
- package/dist/esm/menu-item/menu-item.js +9 -0
- package/dist/esm/menu-item/menu-item.js.map +1 -0
- package/dist/esm/menu-item/menu-item.styles.js +183 -0
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -0
- package/dist/esm/menu-item/menu-item.template.js +10 -0
- package/dist/esm/menu-item/menu-item.template.js.map +1 -0
- package/dist/esm/menu-list/define.js +4 -0
- package/dist/esm/menu-list/define.js.map +1 -0
- package/dist/esm/menu-list/index.js +5 -0
- package/dist/esm/menu-list/index.js.map +1 -0
- package/dist/esm/menu-list/menu-list.definition.js +19 -0
- package/dist/esm/menu-list/menu-list.definition.js.map +1 -0
- package/dist/esm/menu-list/menu-list.js +36 -0
- package/dist/esm/menu-list/menu-list.js.map +1 -0
- package/dist/esm/menu-list/menu-list.styles.js +24 -0
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -0
- package/dist/esm/menu-list/menu-list.template.js +3 -0
- package/dist/esm/menu-list/menu-list.template.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +7 -2
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +20 -3
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/esm/radio/define.js +4 -0
- package/dist/esm/radio/define.js.map +1 -0
- package/dist/esm/radio/index.js +5 -0
- package/dist/esm/radio/index.js.map +1 -0
- package/dist/esm/radio/radio.definition.js +18 -0
- package/dist/esm/radio/radio.definition.js.map +1 -0
- package/dist/esm/radio/radio.js +8 -0
- package/dist/esm/radio/radio.js.map +1 -0
- package/dist/esm/radio/radio.styles.js +118 -0
- package/dist/esm/radio/radio.styles.js.map +1 -0
- package/dist/esm/radio/radio.template.js +6 -0
- package/dist/esm/radio/radio.template.js.map +1 -0
- package/dist/esm/radio-group/define.js +4 -0
- package/dist/esm/radio-group/define.js.map +1 -0
- package/dist/esm/radio-group/index.js +6 -0
- package/dist/esm/radio-group/index.js.map +1 -0
- package/dist/esm/radio-group/radio-group.definition.js +18 -0
- package/dist/esm/radio-group/radio-group.definition.js.map +1 -0
- package/dist/esm/radio-group/radio-group.js +29 -0
- package/dist/esm/radio-group/radio-group.js.map +1 -0
- package/dist/esm/radio-group/radio-group.styles.js +52 -0
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -0
- package/dist/esm/radio-group/radio-group.template.js +3 -0
- package/dist/esm/radio-group/radio-group.template.js.map +1 -0
- package/dist/esm/slider/define.js +4 -0
- package/dist/esm/slider/define.js.map +1 -0
- package/dist/esm/slider/index.js +6 -0
- package/dist/esm/slider/index.js.map +1 -0
- package/dist/esm/slider/slider.definition.js +18 -0
- package/dist/esm/slider/slider.definition.js.map +1 -0
- package/dist/esm/slider/slider.js +64 -0
- package/dist/esm/slider/slider.js.map +1 -0
- package/dist/esm/slider/slider.options.js +10 -0
- package/dist/esm/slider/slider.options.js.map +1 -0
- package/dist/esm/slider/slider.styles.js +203 -0
- package/dist/esm/slider/slider.styles.js.map +1 -0
- package/dist/esm/slider/slider.template.js +5 -0
- package/dist/esm/slider/slider.template.js.map +1 -0
- package/dist/esm/spinner/spinner.js +7 -2
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +2 -1
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.template.js +1 -1
- package/dist/esm/spinner/spinner.template.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +5 -4
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/switch/index.js +3 -3
- package/dist/esm/switch/index.js.map +1 -1
- package/dist/esm/switch/switch.js +7 -2
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +30 -3
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +1 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/define.js +4 -0
- package/dist/esm/tab/define.js.map +1 -0
- package/dist/esm/tab/index.js +5 -0
- package/dist/esm/tab/index.js.map +1 -0
- package/dist/esm/tab/tab.definition.js +10 -0
- package/dist/esm/tab/tab.definition.js.map +1 -0
- package/dist/esm/tab/tab.js +20 -0
- package/dist/esm/tab/tab.js.map +1 -0
- package/dist/esm/tab/tab.styles.js +98 -0
- package/dist/esm/tab/tab.styles.js.map +1 -0
- package/dist/esm/tab/tab.template.js +13 -0
- package/dist/esm/tab/tab.template.js.map +1 -0
- package/dist/esm/tab-panel/define.js +4 -0
- package/dist/esm/tab-panel/define.js.map +1 -0
- package/dist/esm/tab-panel/index.js +5 -0
- package/dist/esm/tab-panel/index.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.definition.js +10 -0
- package/dist/esm/tab-panel/tab-panel.definition.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.js +4 -0
- package/dist/esm/tab-panel/tab-panel.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.styles.js +12 -0
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.template.js +3 -0
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -0
- package/dist/esm/tabs/define.js +4 -0
- package/dist/esm/tabs/define.js.map +1 -0
- package/dist/esm/tabs/index.js +6 -0
- package/dist/esm/tabs/index.js.map +1 -0
- package/dist/esm/tabs/tabs.definition.js +10 -0
- package/dist/esm/tabs/tabs.definition.js.map +1 -0
- package/dist/esm/tabs/tabs.js +163 -0
- package/dist/esm/tabs/tabs.js.map +1 -0
- package/dist/esm/tabs/tabs.options.js +12 -0
- package/dist/esm/tabs/tabs.options.js.map +1 -0
- package/dist/esm/tabs/tabs.styles.js +230 -0
- package/dist/esm/tabs/tabs.styles.js.map +1 -0
- package/dist/esm/tabs/tabs.template.js +3 -0
- package/dist/esm/tabs/tabs.template.js.map +1 -0
- package/dist/esm/text/text.js +6 -1
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +8 -2
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/text-input/define.js +4 -0
- package/dist/esm/text-input/define.js.map +1 -0
- package/dist/esm/text-input/index.js +7 -0
- package/dist/esm/text-input/index.js.map +1 -0
- package/dist/esm/text-input/text-input.definition.js +18 -0
- package/dist/esm/text-input/text-input.definition.js.map +1 -0
- package/dist/esm/text-input/text-input.js +21 -0
- package/dist/esm/text-input/text-input.js.map +1 -0
- package/dist/esm/text-input/text-input.options.js +20 -0
- package/dist/esm/text-input/text-input.options.js.map +1 -0
- package/dist/esm/text-input/text-input.styles.js +200 -0
- package/dist/esm/text-input/text-input.styles.js.map +1 -0
- package/dist/esm/text-input/text-input.template.js +6 -0
- package/dist/esm/text-input/text-input.template.js.map +1 -0
- package/dist/esm/theme/design-tokens.js +1 -1
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/index.js +2 -2
- package/dist/esm/theme/index.js.map +1 -1
- package/dist/esm/theme/set-theme.js +5 -0
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/toggle-button/define.js +4 -0
- package/dist/esm/toggle-button/define.js.map +1 -0
- package/dist/esm/toggle-button/index.js +6 -0
- package/dist/esm/toggle-button/index.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.definition.js +21 -0
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.js +107 -0
- package/dist/esm/toggle-button/toggle-button.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.options.js +17 -0
- package/dist/esm/toggle-button/toggle-button.options.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.styles.js +94 -0
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.template.js +7 -0
- package/dist/esm/toggle-button/toggle-button.template.js.map +1 -0
- package/dist/esm/utils/apply-mixins.js +26 -0
- package/dist/esm/utils/apply-mixins.js.map +1 -0
- package/dist/fluent-web-components.api.json +8842 -7023
- package/dist/storybook/108.78b731e00015540915a8.manager.bundle.js +1 -0
- package/dist/storybook/108.b31ec3a1.iframe.bundle.js +1 -0
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js +2 -0
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js.LICENSE.txt +17 -0
- package/dist/storybook/401.7edec720.iframe.bundle.js +2 -0
- package/dist/storybook/401.7edec720.iframe.bundle.js.LICENSE.txt +12 -0
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js +2 -0
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js.LICENSE.txt +12 -0
- package/dist/storybook/491.77b24750.iframe.bundle.js +1 -0
- package/dist/storybook/591.f5bf0d78d2f203de19f5.manager.bundle.js +2 -0
- package/dist/storybook/591.f5bf0d78d2f203de19f5.manager.bundle.js.LICENSE.txt +94 -0
- package/dist/storybook/651.e36cf1e8.iframe.bundle.js +462 -0
- package/dist/storybook/651.e36cf1e8.iframe.bundle.js.LICENSE.txt +46 -0
- package/dist/storybook/651.e36cf1e8.iframe.bundle.js.map +1 -0
- package/dist/storybook/709.22096ad4.iframe.bundle.js +2 -0
- package/dist/storybook/709.22096ad4.iframe.bundle.js.LICENSE.txt +8 -0
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js +2 -0
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js.LICENSE.txt +8 -0
- package/dist/storybook/721.46fa9f53.iframe.bundle.js +2 -0
- package/dist/storybook/721.46fa9f53.iframe.bundle.js.LICENSE.txt +31 -0
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js +2 -0
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js.LICENSE.txt +31 -0
- package/dist/storybook/858.da40ed98.iframe.bundle.js +1 -0
- package/dist/storybook/858.e08e25a6901d2e21e9d8.manager.bundle.js +1 -0
- package/dist/storybook/950.674e7934b4a26a022608.manager.bundle.js +1 -0
- package/dist/storybook/954.630c5748.iframe.bundle.js +1 -0
- package/dist/storybook/954.7f985e2fdf9f15a7748b.manager.bundle.js +1 -0
- 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 +364 -0
- package/dist/storybook/index.html +165 -0
- package/dist/storybook/main.5d7b916dc1e37293b1d8.manager.bundle.js +1 -0
- package/dist/storybook/main.696937e6.iframe.bundle.js +1 -0
- package/dist/storybook/project.json +1 -0
- package/dist/storybook/runtime~main.5d918fe7.iframe.bundle.js +1 -0
- package/dist/storybook/runtime~main.dbf00b470fe610082919.manager.bundle.js +1 -0
- package/dist/storybook/shell.css +83 -0
- package/dist/storybook/theme-switch.ts +13 -0
- package/dist/web-components.d.ts +1164 -50
- package/dist/web-components.js +7684 -3611
- package/dist/web-components.min.js +189 -128
- package/docs/api-report.md +585 -18
- package/package.json +129 -63
- package/playwright.config.ts +25 -0
- package/CHANGELOG.json +0 -2935
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './design-tokens.js';
|
|
2
|
-
export { setTheme } from './set-theme.js';
|
|
1
|
+
export { borderRadiusNone, borderRadiusSmall, borderRadiusMedium, borderRadiusLarge, borderRadiusXLarge, borderRadiusCircular, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontSizeHero1000, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero700, lineHeightHero800, lineHeightHero900, lineHeightHero1000, fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontWeightRegular, fontWeightMedium, fontWeightSemibold, fontWeightBold, strokeWidthThin, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, spacingHorizontalNone, spacingHorizontalXXS, spacingHorizontalXS, spacingHorizontalSNudge, spacingHorizontalS, spacingHorizontalMNudge, spacingHorizontalM, spacingHorizontalL, spacingHorizontalXL, spacingHorizontalXXL, spacingHorizontalXXXL, spacingVerticalNone, spacingVerticalXXS, spacingVerticalXS, spacingVerticalSNudge, spacingVerticalS, spacingVerticalMNudge, spacingVerticalM, spacingVerticalL, spacingVerticalXL, spacingVerticalXXL, spacingVerticalXXXL, durationUltraFast, durationFaster, durationFast, durationNormal, durationSlow, durationSlower, durationUltraSlow, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEaseMax, curveEasyEase, curveLinear, colorNeutralForeground1, colorNeutralForeground1Hover, colorNeutralForeground1Pressed, colorNeutralForeground1Selected, colorNeutralForeground2, colorNeutralForeground2Hover, colorNeutralForeground2Pressed, colorNeutralForeground2Selected, colorNeutralForeground2BrandHover, colorNeutralForeground2BrandPressed, colorNeutralForeground2BrandSelected, colorNeutralForeground3, colorNeutralForeground3Hover, colorNeutralForeground3Pressed, colorNeutralForeground3Selected, colorNeutralForeground3BrandHover, colorNeutralForeground3BrandPressed, colorNeutralForeground3BrandSelected, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInvertedDisabled, colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorBrandForegroundLinkSelected, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, colorNeutralForeground2LinkSelected, colorCompoundBrandForeground1, colorCompoundBrandForeground1Hover, colorCompoundBrandForeground1Pressed, colorBrandForeground1, colorBrandForeground2, colorNeutralForeground1Static, colorNeutralForegroundStaticInverted, colorNeutralForegroundInverted, colorNeutralForegroundInvertedHover, colorNeutralForegroundInvertedPressed, colorNeutralForegroundInvertedSelected, colorNeutralForegroundInverted2, colorNeutralForegroundOnBrand, colorNeutralForegroundInvertedLink, colorNeutralForegroundInvertedLinkHover, colorNeutralForegroundInvertedLinkPressed, colorNeutralForegroundInvertedLinkSelected, colorBrandForegroundInverted, colorBrandForegroundInvertedHover, colorBrandForegroundInvertedPressed, colorBrandForegroundOnLight, colorBrandForegroundOnLightHover, colorBrandForegroundOnLightPressed, colorBrandForegroundOnLightSelected, colorNeutralBackground1, colorNeutralBackground1Hover, colorNeutralBackground1Pressed, colorNeutralBackground1Selected, colorNeutralBackground2, colorNeutralBackground2Hover, colorNeutralBackground2Pressed, colorNeutralBackground2Selected, colorNeutralBackground3, colorNeutralBackground3Hover, colorNeutralBackground3Pressed, colorNeutralBackground3Selected, colorNeutralBackground4, colorNeutralBackground4Hover, colorNeutralBackground4Pressed, colorNeutralBackground4Selected, colorNeutralBackground5, colorNeutralBackground5Hover, colorNeutralBackground5Pressed, colorNeutralBackground5Selected, colorNeutralBackground6, colorNeutralBackgroundInverted, colorNeutralBackgroundStatic, colorSubtleBackground, colorSubtleBackgroundHover, colorSubtleBackgroundPressed, colorSubtleBackgroundSelected, colorSubtleBackgroundLightAlphaHover, colorSubtleBackgroundLightAlphaPressed, colorSubtleBackgroundLightAlphaSelected, colorSubtleBackgroundInverted, colorSubtleBackgroundInvertedHover, colorSubtleBackgroundInvertedPressed, colorSubtleBackgroundInvertedSelected, colorTransparentBackground, colorTransparentBackgroundHover, colorTransparentBackgroundPressed, colorTransparentBackgroundSelected, colorNeutralBackgroundDisabled, colorNeutralBackgroundInvertedDisabled, colorNeutralStencil1, colorNeutralStencil2, colorNeutralStencil1Alpha, colorNeutralStencil2Alpha, colorBackgroundOverlay, colorScrollbarOverlay, colorBrandBackground, colorBrandBackgroundHover, colorBrandBackgroundPressed, colorBrandBackgroundSelected, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorBrandBackgroundStatic, colorBrandBackground2, colorBrandBackgroundInverted, colorBrandBackgroundInvertedHover, colorBrandBackgroundInvertedPressed, colorBrandBackgroundInvertedSelected, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeAccessibleSelected, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStroke1Selected, colorNeutralStroke2, colorNeutralStroke3, colorNeutralStrokeOnBrand, colorNeutralStrokeOnBrand2, colorNeutralStrokeOnBrand2Hover, colorNeutralStrokeOnBrand2Pressed, colorNeutralStrokeOnBrand2Selected, colorBrandStroke1, colorBrandStroke2, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralStrokeDisabled, colorNeutralStrokeInvertedDisabled, colorTransparentStroke, colorTransparentStrokeInteractive, colorTransparentStrokeDisabled, colorStrokeFocus1, colorStrokeFocus2, colorNeutralShadowAmbient, colorNeutralShadowKey, colorNeutralShadowAmbientLighter, colorNeutralShadowKeyLighter, colorNeutralShadowAmbientDarker, colorNeutralShadowKeyDarker, colorBrandShadowAmbient, colorBrandShadowKey, colorPaletteRedBackground1, colorPaletteRedBackground2, colorPaletteRedBackground3, colorPaletteRedForeground1, colorPaletteRedForeground2, colorPaletteRedForeground3, colorPaletteRedBorderActive, colorPaletteRedBorder1, colorPaletteRedBorder2, colorPaletteGreenBackground1, colorPaletteGreenBackground2, colorPaletteGreenBackground3, colorPaletteGreenForeground1, colorPaletteGreenForeground2, colorPaletteGreenForeground3, colorPaletteGreenBorderActive, colorPaletteGreenBorder1, colorPaletteGreenBorder2, colorPaletteDarkOrangeBackground1, colorPaletteDarkOrangeBackground2, colorPaletteDarkOrangeBackground3, colorPaletteDarkOrangeForeground1, colorPaletteDarkOrangeForeground2, colorPaletteDarkOrangeForeground3, colorPaletteDarkOrangeBorderActive, colorPaletteDarkOrangeBorder1, colorPaletteDarkOrangeBorder2, colorPaletteYellowBackground1, colorPaletteYellowBackground2, colorPaletteYellowBackground3, colorPaletteYellowForeground1, colorPaletteYellowForeground2, colorPaletteYellowForeground3, colorPaletteYellowBorderActive, colorPaletteYellowBorder1, colorPaletteYellowBorder2, colorPaletteBerryBackground1, colorPaletteBerryBackground2, colorPaletteBerryBackground3, colorPaletteBerryForeground1, colorPaletteBerryForeground2, colorPaletteBerryForeground3, colorPaletteBerryBorderActive, colorPaletteBerryBorder1, colorPaletteBerryBorder2, colorPaletteLightGreenBackground1, colorPaletteLightGreenBackground2, colorPaletteLightGreenBackground3, colorPaletteLightGreenForeground1, colorPaletteLightGreenForeground2, colorPaletteLightGreenForeground3, colorPaletteLightGreenBorderActive, colorPaletteLightGreenBorder1, colorPaletteLightGreenBorder2, colorPaletteMarigoldBackground1, colorPaletteMarigoldBackground2, colorPaletteMarigoldBackground3, colorPaletteMarigoldForeground1, colorPaletteMarigoldForeground2, colorPaletteMarigoldForeground3, colorPaletteMarigoldBorderActive, colorPaletteMarigoldBorder1, colorPaletteMarigoldBorder2, colorPaletteDarkRedBackground2, colorPaletteDarkRedForeground2, colorPaletteDarkRedBorderActive, colorPaletteCranberryBackground2, colorPaletteCranberryForeground2, colorPaletteCranberryBorderActive, colorPalettePumpkinBackground2, colorPalettePumpkinForeground2, colorPalettePumpkinBorderActive, colorPalettePeachBackground2, colorPalettePeachForeground2, colorPalettePeachBorderActive, colorPaletteGoldBackground2, colorPaletteGoldForeground2, colorPaletteGoldBorderActive, colorPaletteBrassBackground2, colorPaletteBrassForeground2, colorPaletteBrassBorderActive, colorPaletteBrownBackground2, colorPaletteBrownForeground2, colorPaletteBrownBorderActive, colorPaletteForestBackground2, colorPaletteForestForeground2, colorPaletteForestBorderActive, colorPaletteSeafoamBackground2, colorPaletteSeafoamForeground2, colorPaletteSeafoamBorderActive, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenForeground2, colorPaletteDarkGreenBorderActive, colorPaletteLightTealBackground2, colorPaletteLightTealForeground2, colorPaletteLightTealBorderActive, colorPaletteTealBackground2, colorPaletteTealForeground2, colorPaletteTealBorderActive, colorPaletteSteelBackground2, colorPaletteSteelForeground2, colorPaletteSteelBorderActive, colorPaletteBlueBackground2, colorPaletteBlueForeground2, colorPaletteBlueBorderActive, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueForeground2, colorPaletteRoyalBlueBorderActive, colorPaletteCornflowerBackground2, colorPaletteCornflowerForeground2, colorPaletteCornflowerBorderActive, colorPaletteNavyBackground2, colorPaletteNavyForeground2, colorPaletteNavyBorderActive, colorPaletteLavenderBackground2, colorPaletteLavenderForeground2, colorPaletteLavenderBorderActive, colorPalettePurpleBackground2, colorPalettePurpleForeground2, colorPalettePurpleBorderActive, colorPaletteGrapeBackground2, colorPaletteGrapeForeground2, colorPaletteGrapeBorderActive, colorPaletteLilacBackground2, colorPaletteLilacForeground2, colorPaletteLilacBorderActive, colorPalettePinkBackground2, colorPalettePinkForeground2, colorPalettePinkBorderActive, colorPaletteMagentaBackground2, colorPaletteMagentaForeground2, colorPaletteMagentaBorderActive, colorPalettePlumBackground2, colorPalettePlumForeground2, colorPalettePlumBorderActive, colorPaletteBeigeBackground2, colorPaletteBeigeForeground2, colorPaletteBeigeBorderActive, colorPaletteMinkBackground2, colorPaletteMinkForeground2, colorPaletteMinkBorderActive, colorPalettePlatinumBackground2, colorPalettePlatinumForeground2, colorPalettePlatinumBorderActive, colorPaletteAnchorBackground2, colorPaletteAnchorForeground2, colorPaletteAnchorBorderActive, colorPaletteRedForegroundInverted, colorPaletteGreenForegroundInverted, colorPaletteYellowForegroundInverted, shadow2, shadow4, shadow8, shadow16, shadow28, shadow64, shadow2Brand, shadow4Brand, shadow8Brand, shadow16Brand, shadow28Brand, shadow64Brand, } from './design-tokens.js';
|
|
2
|
+
export { setTheme, setThemeFor } from './set-theme.js';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Theme } from '@fluentui/tokens';
|
|
2
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
3
|
/**
|
|
3
4
|
* Sets the theme tokens on defaultNode.
|
|
4
5
|
* @param theme Flat object of theme token values.
|
|
5
6
|
*/
|
|
6
7
|
export declare const setTheme: (theme: Theme) => void;
|
|
8
|
+
export declare const setThemeFor: (element: FASTElement, theme: Theme) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './toggle-button.js';
|
|
2
|
+
export * from './toggle-button.options.js';
|
|
3
|
+
export { template as ToggleButtonTemplate } from './toggle-button.template.js';
|
|
4
|
+
export { styles as ToggleButtonStyles } from './toggle-button.styles.js';
|
|
5
|
+
export { definition as ToggleButtonDefinition } from './toggle-button.definition.js';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Button } from '../button/button.js';
|
|
2
|
+
/**
|
|
3
|
+
* The base class used for constructing a fluent-toggle-button custom element
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class ToggleButton extends Button {
|
|
7
|
+
/**
|
|
8
|
+
* Tracks whether the "checked" property has been changed.
|
|
9
|
+
* This is necessary to provide consistent behavior with
|
|
10
|
+
* normal input checkboxes
|
|
11
|
+
*/
|
|
12
|
+
protected dirtyChecked: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Provides the default checkedness of the input element
|
|
15
|
+
* Passed down to proxy
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
* @remarks
|
|
19
|
+
* HTML Attribute: checked
|
|
20
|
+
*/
|
|
21
|
+
checkedAttribute: boolean;
|
|
22
|
+
protected checkedAttributeChanged(): void;
|
|
23
|
+
defaultChecked: boolean;
|
|
24
|
+
protected defaultCheckedChanged(): void;
|
|
25
|
+
/**
|
|
26
|
+
* The checked state of the control.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
checked: boolean;
|
|
31
|
+
protected checkedChanged(prev: boolean | undefined, next: boolean): void;
|
|
32
|
+
/**
|
|
33
|
+
* The current checkedness of the element. This property serves as a mechanism
|
|
34
|
+
* to set the `checked` property through both property assignment and the
|
|
35
|
+
* .setAttribute() method. This is useful for setting the field's checkedness
|
|
36
|
+
* in UI libraries that bind data through the .setAttribute() API
|
|
37
|
+
* and don't support IDL attribute binding.
|
|
38
|
+
*/
|
|
39
|
+
currentChecked: boolean;
|
|
40
|
+
currentCheckedChanged(prev: boolean | undefined, next: boolean): void;
|
|
41
|
+
constructor();
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
disconnectedCallback(): void;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
protected handleToggleButtonClick: (e: MouseEvent) => void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToggleButton } from './toggle-button.js';
|
|
2
|
+
/**
|
|
3
|
+
* The Fluent Toggle Button Element. Implements {@link @microsoft/fast-foundation#Button },
|
|
4
|
+
* {@link @microsoft/fast-foundation#buttonTemplate}
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
* @remarks
|
|
8
|
+
* HTML Element: \<fluent-toggle-button\>
|
|
9
|
+
*/
|
|
10
|
+
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof ToggleButton>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ButtonOptions } from '@microsoft/fast-foundation/button.js';
|
|
2
|
+
import type { ValuesOf } from '@microsoft/fast-foundation/utilities.js';
|
|
3
|
+
/**
|
|
4
|
+
* Toggle Button Appearance constants
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const ToggleButtonAppearance: {
|
|
8
|
+
readonly primary: "primary";
|
|
9
|
+
readonly outline: "outline";
|
|
10
|
+
readonly subtle: "subtle";
|
|
11
|
+
readonly secondary: "secondary";
|
|
12
|
+
readonly transparent: "transparent";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A Toggle Button can be secondary, primary, outline, subtle, transparent
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare type ToggleButtonAppearance = ValuesOf<typeof ToggleButtonAppearance>;
|
|
19
|
+
/**
|
|
20
|
+
* A Toggle Button can be square, circular or rounded.
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare const ToggleButtonShape: {
|
|
24
|
+
readonly circular: "circular";
|
|
25
|
+
readonly rounded: "rounded";
|
|
26
|
+
readonly square: "square";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* A Toggle Button can be square, circular or rounded
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare type ToggleButtonShape = ValuesOf<typeof ToggleButtonShape>;
|
|
33
|
+
/**
|
|
34
|
+
* A Toggle Button can be a size of small, medium or large.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare const ToggleButtonSize: {
|
|
38
|
+
readonly small: "small";
|
|
39
|
+
readonly medium: "medium";
|
|
40
|
+
readonly large: "large";
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* A Toggle Button can be on of several preset sizes.
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export declare type ToggleButtonSize = ValuesOf<typeof ToggleButtonSize>;
|
|
47
|
+
export { ButtonOptions as ToggleButtonOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apply mixins to a constructor.
|
|
3
|
+
* Sourced from {@link https://www.typescriptlang.org/docs/handbook/mixins.html | TypeScript Documentation }.
|
|
4
|
+
*
|
|
5
|
+
* TODO: Remove with https://github.com/microsoft/fast/pull/6797
|
|
6
|
+
* This was used for Badge where start/end was not yet implemented.
|
|
7
|
+
* The method itself was deprecated as it was largely intended to be "internals" for Fast Foundation.
|
|
8
|
+
* Adding here to avoid breaking of the existing API.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare function applyMixins(derivedCtor: any, ...baseCtors: any[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/accordion/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/accordion/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,aAAa;CAAG"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation/utilities.js';
|
|
3
3
|
export const styles = css `
|
|
4
4
|
${display('flex')}
|
|
5
5
|
|
|
6
6
|
:host {
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
width: 100%;
|
|
9
|
+
contain: content;
|
|
9
10
|
}
|
|
10
11
|
`;
|
|
11
12
|
//# sourceMappingURL=accordion.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.styles.js","sourceRoot":"","sources":["../../../src/accordion/accordion.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accordion.styles.js","sourceRoot":"","sources":["../../../src/accordion/accordion.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAElE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,MAAM,CAAC;;;;;;;CAOlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.template.js","sourceRoot":"","sources":["../../../src/accordion/accordion.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accordion.template.js","sourceRoot":"","sources":["../../../src/accordion/accordion.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAG5E,MAAM,CAAC,MAAM,QAAQ,GAAmC,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
2
7
|
import { attr } from '@microsoft/fast-element';
|
|
3
|
-
import { FASTAccordionItem } from '@microsoft/fast-foundation';
|
|
8
|
+
import { FASTAccordionItem } from '@microsoft/fast-foundation/accordion-item.js';
|
|
4
9
|
/**
|
|
5
10
|
* @internal
|
|
6
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAGjF;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IAApD;;QAYE;;;;;;WAMG;QAEI,UAAK,GAAY,KAAK,CAAC;IAYhC,CAAC;CAAA;AAtBC;IADC,IAAI;2CAC2B;AAUhC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;4CACI;AAW9B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAC;yDACgB"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation/utilities.js';
|
|
3
3
|
import { borderRadiusMedium, borderRadiusSmall, colorNeutralForeground1, colorNeutralForegroundDisabled, colorStrokeFocus1, colorStrokeFocus2, colorTransparentBackground, fontFamilyBase, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontWeightRegular, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalS, } from '../theme/design-tokens.js';
|
|
4
4
|
export const styles = css `
|
|
5
5
|
${display('block')}
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
8
|
max-width: fit-content;
|
|
9
|
+
contain: content;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.heading {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.styles.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accordion-item.styles.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,EAC9B,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC;;;;;;;;;;;;sBAYE,kBAAkB,IAAI,uBAAuB;qBAC9C,kBAAkB;mBACpB,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;;;;;;;;;;;;;;;;aAmBvB,uBAAuB;kBAClB,0BAA0B;mBACzB,iBAAiB;;;;;;;;;;;;;qBAaf,iBAAiB;;;;;;;;;;qBAUjB,kBAAkB;;;;;;gBAMvB,kBAAkB;;;;;;;qBAOb,kBAAkB;;;;;;;;;;qBAUlB,iBAAiB;;wBAEd,iBAAiB;kCACP,iBAAiB;;;;;;aAMtC,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgC1B,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
|
-
import { accordionItemTemplate } from '@microsoft/fast-foundation';
|
|
2
|
+
import { accordionItemTemplate } from '@microsoft/fast-foundation/accordion-item.js';
|
|
3
3
|
const chevronRight20Filled = html.partial(`<svg
|
|
4
4
|
width="20"
|
|
5
5
|
height="20"
|
|
@@ -10,7 +10,7 @@ const chevronRight20Filled = html.partial(`<svg
|
|
|
10
10
|
>
|
|
11
11
|
<path
|
|
12
12
|
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
13
|
-
fill="
|
|
13
|
+
fill="currentColor"
|
|
14
14
|
/>
|
|
15
15
|
</svg>`);
|
|
16
16
|
const chevronDown20Filled = html.partial(`<svg
|
|
@@ -23,7 +23,7 @@ const chevronDown20Filled = html.partial(`<svg
|
|
|
23
23
|
>
|
|
24
24
|
<path
|
|
25
25
|
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
26
|
-
fill="
|
|
26
|
+
fill="currentColor"
|
|
27
27
|
/>
|
|
28
28
|
</svg>`);
|
|
29
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.template.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accordion-item.template.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAGrF,MAAM,oBAAoB,GAAG,IAAI,CAAC,OAAO,CAAC;;;;;;;;;;;;OAYnC,CAAC,CAAC;AAET,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC;;;;;;;;;;;;OAYlC,CAAC,CAAC;AAET;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAuC,qBAAqB,CAAC;IAChF,aAAa,EAAE,oBAAoB;IACnC,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { AnchorButton } from './anchor-button.js';
|
|
3
|
+
import { styles } from './anchor-button.styles.js';
|
|
4
|
+
import { template } from './anchor-button.template.js';
|
|
5
|
+
/**
|
|
6
|
+
* The Fluent Anchor Button Element. Implements {@link @microsoft/fast-foundation#Anchor },
|
|
7
|
+
* {@link @microsoft/fast-foundation#anchorTemplate}
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
* @remarks
|
|
11
|
+
* HTML Element: \<fluent-anchor-button\>
|
|
12
|
+
*/
|
|
13
|
+
export const definition = AnchorButton.compose({
|
|
14
|
+
name: `${FluentDesignSystem.prefix}-anchor-button`,
|
|
15
|
+
template,
|
|
16
|
+
styles,
|
|
17
|
+
shadowOptions: {
|
|
18
|
+
delegatesFocus: true,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=anchor-button.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-button.definition.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC;IAC7C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,gBAAgB;IAClD,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACb,cAAc,EAAE,IAAI;KACrB;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { attr } from '@microsoft/fast-element';
|
|
8
|
+
import { FASTAnchor } from '@microsoft/fast-foundation/anchor.js';
|
|
9
|
+
/**
|
|
10
|
+
* The base class used for constructing a fluent-anchor-button custom element
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export class AnchorButton extends FASTAnchor {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* The anchor button has an icon only, no text content
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
* @remarks
|
|
21
|
+
* HTML Attribute: icon-only
|
|
22
|
+
*/
|
|
23
|
+
this.iconOnly = false;
|
|
24
|
+
/**
|
|
25
|
+
* The anchor button is disabled
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
* @remarks
|
|
29
|
+
* HTML Attribute: disabled-focusable
|
|
30
|
+
*/
|
|
31
|
+
this.disabled = false;
|
|
32
|
+
/**
|
|
33
|
+
* The anchor button is disabled but focusable
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
* @remarks
|
|
37
|
+
* HTML Attribute: disabled-focusable
|
|
38
|
+
*/
|
|
39
|
+
this.disabledFocusable = false;
|
|
40
|
+
/**
|
|
41
|
+
* Prevents disabledFocusable click events
|
|
42
|
+
*/
|
|
43
|
+
this.handleDisabledFocusableClick = (e) => {
|
|
44
|
+
if ((e && this.disabled) || this.disabledFocusable) {
|
|
45
|
+
e.stopImmediatePropagation();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
disabledChanged(prev, next) {
|
|
51
|
+
if (this.disabled) {
|
|
52
|
+
this.setAttribute('aria-disabled', 'true');
|
|
53
|
+
this.setAttribute('tabindex', '-1');
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
this.removeAttribute('aria-disabled');
|
|
57
|
+
this.removeAttribute('tabindex');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
disabledFocusableChanged(prev, next) {
|
|
61
|
+
if (!this.$fastController.isConnected) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (this.disabledFocusable) {
|
|
65
|
+
this.setAttribute('aria-disabled', 'true');
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this.removeAttribute('aria-disabled');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
connectedCallback() {
|
|
72
|
+
super.connectedCallback();
|
|
73
|
+
this.addEventListener('click', this.handleDisabledFocusableClick);
|
|
74
|
+
}
|
|
75
|
+
disconnectedCallback() {
|
|
76
|
+
super.disconnectedCallback();
|
|
77
|
+
this.removeEventListener('click', this.handleDisabledFocusableClick);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
__decorate([
|
|
81
|
+
attr
|
|
82
|
+
], AnchorButton.prototype, "appearance", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
attr
|
|
85
|
+
], AnchorButton.prototype, "shape", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
attr
|
|
88
|
+
], AnchorButton.prototype, "size", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
attr({ attribute: 'icon-only', mode: 'boolean' })
|
|
91
|
+
], AnchorButton.prototype, "iconOnly", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
attr({ mode: 'boolean' })
|
|
94
|
+
], AnchorButton.prototype, "disabled", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
attr({ attribute: 'disabled-focusable', mode: 'boolean' })
|
|
97
|
+
], AnchorButton.prototype, "disabledFocusable", void 0);
|
|
98
|
+
//# sourceMappingURL=anchor-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-button.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlE;;;GAGG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;IAA5C;;QA+BE;;;;;;WAMG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAEjC;;;;;;WAMG;QAEI,aAAQ,GAAa,KAAK,CAAC;QAWlC;;;;;;WAMG;QAEI,sBAAiB,GAAa,KAAK,CAAC;QAa3C;;WAEG;QACK,iCAA4B,GAAG,CAAC,CAAa,EAAQ,EAAE;YAC7D,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAClD,CAAC,CAAC,wBAAwB,EAAE,CAAC;gBAC7B,OAAO;aACR;QACH,CAAC,CAAC;IAaJ,CAAC;IApDW,eAAe,CAAC,IAAa,EAAE,IAAa;QACpD,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,IAAgC,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;YACvE,IAAgC,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;SACnE;aAAM;YACH,IAAgC,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;YAClE,IAAgC,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;SAChE;IACH,CAAC;IAWS,wBAAwB,CAAC,IAAa,EAAE,IAAa;QAC7D,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE;YACrC,OAAO;SACR;QAED,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAgC,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;SAC1E;aAAM;YACH,IAAgC,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;SACrE;IACH,CAAC;IAYM,iBAAiB;QACtB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAExB,IAAgC,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAClG,CAAC;IAEM,oBAAoB;QACzB,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAE3B,IAAgC,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,4BAA4B,CAAC,CAAC;IACrG,CAAC;CACF;AA7FC;IADC,IAAI;gDACkD;AAUvD;IADC,IAAI;2CACwC;AAU7C;IADC,IAAI;0CAC0B;AAU/B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACjB;AAUjC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACQ;AAmBlC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;uDAChB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ButtonAppearance, ButtonShape, ButtonSize } from '../button/button.options.js';
|
|
2
|
+
/**
|
|
3
|
+
* Anchor Button Appearance constants
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export const AnchorButtonAppearance = ButtonAppearance;
|
|
7
|
+
/**
|
|
8
|
+
* An Anchor Button can be square, circular or rounded.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export const AnchorButtonShape = ButtonShape;
|
|
12
|
+
/**
|
|
13
|
+
* An Anchor Button can be a size of small, medium or large.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export const AnchorButtonSize = ButtonSize;
|
|
17
|
+
//# sourceMappingURL=anchor-button.options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-button.options.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.options.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAExF;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAQvD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAQ7C;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { styles as ButtonStyles } from '../button/button.styles.js';
|
|
3
|
+
// Need to support icon hover styles
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${ButtonStyles}
|
|
6
|
+
|
|
7
|
+
.content {
|
|
8
|
+
text-align: center;
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
//# sourceMappingURL=anchor-button.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-button.styles.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAEpE,oCAAoC;AACpC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,YAAY;;;;;CAKf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-button.template.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAsC,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/anchor-button/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './anchor-button.js';
|
|
2
|
+
export * from './anchor-button.options.js';
|
|
3
|
+
export { template as AnchorButtonTemplate } from './anchor-button.template.js';
|
|
4
|
+
export { definition as AnchorButtonDefinition } from './anchor-button.definition.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/anchor-button/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
2
7
|
import { attr, FASTElement, nullableNumberConverter } from '@microsoft/fast-element';
|
|
3
8
|
import { getInitials } from '../utils/get-initials.js';
|
|
4
9
|
import { AvatarColor, AvatarNamedColor, } from './avatar.options.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/avatar/avatar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/avatar/avatar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAGL,WAAW,EACX,gBAAgB,GAGjB,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QAuEE;;;;;;;;;;WAUG;QAEI,UAAK,GAAiB,SAAS,CAAC;IA+CzC,CAAC;IAtCC;;;OAGG;IACI,aAAa;;QAClB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,OAAO;SACR;QAED,OAAO,IAAI,CAAC,KAAK,KAAK,WAAW,CAAC,QAAQ;YACxC,CAAC,CAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,MAAA,MAAA,IAAI,CAAC,OAAO,mCAAI,IAAI,CAAC,IAAI,mCAAI,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAiB;YACrG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IACjB,CAAC;IAED;;;OAGG;IACI,gBAAgB;;QACrB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAChC,OAAO;SACR;QAED,wDAAwD;QACxD,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,EAAE,CAAC;QAE7B,OAAO,CACL,MAAA,IAAI,CAAC,QAAQ,mCACb,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAE,IAA+B,CAAC,CAAC,SAAS,KAAK,KAAK,EAAE;YACpG,gBAAgB,EAAE,IAAI,IAAI,EAAE;SAC7B,CAAC,CACH,CAAC;IACJ,CAAC;;AAED;;GAEG;AACW,aAAM,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAxHvD;IADC,IAAI;oCAC4B;AAUjC;IADC,IAAI;wCACgC;AAiBrC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;oCACR;AAUrC;IADC,IAAI;qCACkC;AAavC;IADC,IAAI;sCACoC;AAUzC;IADC,IAAI;0CAC4C;AAcjD;IADC,IAAI;qCACkC;AAOvC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;uCACc;AA0ChD,2BAA2B;AAC3B,MAAM,WAAW,GAAG,CAAC,GAAW,EAAU,EAAE;IAC1C,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,KAAK,IAAI,GAAG,GAAW,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE;QACtD,MAAM,EAAE,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;QACtB,QAAQ,IAAI,CAAC,EAAE,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,iCAAiC;KACnF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation/utilities.js';
|
|
3
3
|
import { borderRadiusCircular, borderRadiusLarge, borderRadiusMedium, borderRadiusSmall, borderRadiusXLarge, colorBrandBackgroundStatic, colorNeutralBackground1, colorNeutralBackground6, colorNeutralForeground3, colorNeutralForegroundStaticInverted, colorPaletteAnchorBackground2, colorPaletteAnchorForeground2, colorPaletteBeigeBackground2, colorPaletteBeigeForeground2, colorPaletteBlueBackground2, colorPaletteBlueForeground2, colorPaletteBrassBackground2, colorPaletteBrassForeground2, colorPaletteBrownBackground2, colorPaletteBrownForeground2, colorPaletteCornflowerBackground2, colorPaletteCornflowerForeground2, colorPaletteCranberryBackground2, colorPaletteCranberryForeground2, colorPaletteDarkGreenBackground2, colorPaletteDarkGreenForeground2, colorPaletteDarkRedBackground2, colorPaletteDarkRedForeground2, colorPaletteForestBackground2, colorPaletteForestForeground2, colorPaletteGoldBackground2, colorPaletteGoldForeground2, colorPaletteGrapeBackground2, colorPaletteGrapeForeground2, colorPaletteLavenderBackground2, colorPaletteLavenderForeground2, colorPaletteLightTealBackground2, colorPaletteLightTealForeground2, colorPaletteLilacBackground2, colorPaletteLilacForeground2, colorPaletteMagentaBackground2, colorPaletteMagentaForeground2, colorPaletteMarigoldBackground2, colorPaletteMarigoldForeground2, colorPaletteMinkBackground2, colorPaletteMinkForeground2, colorPaletteNavyBackground2, colorPaletteNavyForeground2, colorPalettePeachBackground2, colorPalettePeachForeground2, colorPalettePinkBackground2, colorPalettePinkForeground2, colorPalettePlatinumBackground2, colorPalettePlatinumForeground2, colorPalettePlumBackground2, colorPalettePlumForeground2, colorPalettePumpkinBackground2, colorPalettePumpkinForeground2, colorPalettePurpleBackground2, colorPalettePurpleForeground2, colorPaletteRedBackground2, colorPaletteRedForeground2, colorPaletteRoyalBlueBackground2, colorPaletteRoyalBlueForeground2, colorPaletteSeafoamBackground2, colorPaletteSeafoamForeground2, colorPaletteSteelBackground2, colorPaletteSteelForeground2, colorPaletteTealBackground2, colorPaletteTealForeground2, curveAccelerateMax, curveAccelerateMid, curveAccelerateMin, curveDecelerateMax, curveDecelerateMid, curveDecelerateMin, curveEasyEase, curveEasyEaseMax, curveLinear, durationFaster, durationSlower, durationUltraSlow, fontFamilyBase, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontWeightRegular, fontWeightSemibold, shadow16, shadow28, shadow4, shadow8, strokeWidthThick, strokeWidthThicker, strokeWidthThickest, strokeWidthThin, } from '../theme/design-tokens.js';
|
|
4
4
|
const animations = {
|
|
5
5
|
fastOutSlowInMax: curveDecelerateMax,
|
|
@@ -29,6 +29,7 @@ export const styles = css `
|
|
|
29
29
|
border-radius: ${borderRadiusCircular};
|
|
30
30
|
color: ${colorNeutralForeground3};
|
|
31
31
|
background-color: ${colorNeutralBackground6};
|
|
32
|
+
contain: layout style;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.default-icon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.styles.js","sourceRoot":"","sources":["../../../src/avatar/avatar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"avatar.styles.js","sourceRoot":"","sources":["../../../src/avatar/avatar.styles.ts"],"names":[],"mappings":"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"}
|
package/dist/esm/badge/badge.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
2
7
|
import { attr, FASTElement } from '@microsoft/fast-element';
|
|
3
|
-
import {
|
|
8
|
+
import { StartEnd } from '@microsoft/fast-foundation/patterns.js';
|
|
9
|
+
// TODO: Remove with https://github.com/microsoft/fast/pull/6797
|
|
10
|
+
import { applyMixins } from '../utils/apply-mixins.js';
|
|
4
11
|
import { BadgeAppearance, BadgeColor } from './badge.options.js';
|
|
5
12
|
/**
|
|
6
13
|
* The base class used for constructing a fluent-badge custom element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/badge/badge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/badge/badge.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,gEAAgE;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAyB,MAAM,oBAAoB,CAAC;AAExF;;;GAGG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE;;;;;;WAMG;QAEI,eAAU,GAAoB,eAAe,CAAC,MAAM,CAAC;QAE5D;;;;;;WAMG;QAEI,UAAK,GAAe,UAAU,CAAC,KAAK,CAAC;IAoB9C,CAAC;CAAA;AA9BC;IADC,IAAI;yCACuD;AAU5D;IADC,IAAI;oCACuC;AAS5C;IADC,IAAI;oCACqB;AAU1B;IADC,IAAI;mCACmB;AAW1B,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.options.js","sourceRoot":"","sources":["../../../src/badge/badge.options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"badge.options.js","sourceRoot":"","sources":["../../../src/badge/badge.options.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,aAAa;IACzB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,aAAa;CACjB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
|
-
import { endSlotTemplate, startSlotTemplate
|
|
2
|
+
import { endSlotTemplate, startSlotTemplate } from '@microsoft/fast-foundation/patterns.js';
|
|
3
|
+
import { staticallyCompose } from '@microsoft/fast-foundation/utilities.js';
|
|
3
4
|
/**
|
|
4
5
|
* The template for the Badge component.
|
|
5
6
|
* @public
|