@fluentui/web-components 3.0.0-rc.20 → 3.0.0-rc.22
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 +22 -2
- package/custom-elements.json +1594 -260
- package/dist/esm/accordion/accordion.definition-async.d.ts +10 -0
- package/dist/esm/accordion/accordion.definition-async.js +14 -0
- package/dist/esm/accordion/accordion.definition-async.js.map +1 -0
- package/dist/esm/accordion/accordion.js +1 -1
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.styles.css +8 -0
- package/dist/esm/accordion/accordion.template.html +5 -0
- package/dist/esm/accordion/define-async.d.ts +1 -0
- package/dist/esm/accordion/define-async.js +5 -0
- package/dist/esm/accordion/define-async.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition-async.d.ts +10 -0
- package/dist/esm/accordion-item/accordion-item.definition-async.js +14 -0
- package/dist/esm/accordion-item/accordion-item.definition-async.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.styles.css +170 -0
- package/dist/esm/accordion-item/accordion-item.template.html +47 -0
- package/dist/esm/accordion-item/define-async.d.ts +1 -0
- package/dist/esm/accordion-item/define-async.js +5 -0
- package/dist/esm/accordion-item/define-async.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.definition-async.d.ts +10 -0
- package/dist/esm/anchor-button/anchor-button.definition-async.js +14 -0
- package/dist/esm/anchor-button/anchor-button.definition-async.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.styles.css +225 -0
- package/dist/esm/anchor-button/anchor-button.template.html +13 -0
- package/dist/esm/anchor-button/define-async.d.ts +1 -0
- package/dist/esm/anchor-button/define-async.js +5 -0
- package/dist/esm/anchor-button/define-async.js.map +1 -0
- package/dist/esm/avatar/avatar.definition-async.d.ts +10 -0
- package/dist/esm/avatar/avatar.definition-async.js +14 -0
- package/dist/esm/avatar/avatar.definition-async.js.map +1 -0
- package/dist/esm/avatar/avatar.styles.css +475 -0
- package/dist/esm/avatar/avatar.template.html +17 -0
- package/dist/esm/avatar/define-async.d.ts +1 -0
- package/dist/esm/avatar/define-async.js +5 -0
- package/dist/esm/avatar/define-async.js.map +1 -0
- package/dist/esm/badge/badge.definition-async.d.ts +10 -0
- package/dist/esm/badge/badge.definition-async.js +14 -0
- package/dist/esm/badge/badge.definition-async.js.map +1 -0
- package/dist/esm/badge/badge.styles.css +268 -0
- package/dist/esm/badge/badge.template.html +5 -0
- package/dist/esm/badge/define-async.d.ts +1 -0
- package/dist/esm/badge/define-async.js +5 -0
- package/dist/esm/badge/define-async.js.map +1 -0
- package/dist/esm/button/button.definition-async.d.ts +10 -0
- package/dist/esm/button/button.definition-async.js +14 -0
- package/dist/esm/button/button.definition-async.js.map +1 -0
- package/dist/esm/button/button.styles.css +267 -0
- package/dist/esm/button/button.template.html +12 -0
- package/dist/esm/button/define-async.d.ts +1 -0
- package/dist/esm/button/define-async.js +5 -0
- package/dist/esm/button/define-async.js.map +1 -0
- package/dist/esm/checkbox/checkbox.base.js +9 -7
- package/dist/esm/checkbox/checkbox.base.js.map +1 -1
- package/dist/esm/checkbox/checkbox.definition-async.d.ts +10 -0
- package/dist/esm/checkbox/checkbox.definition-async.js +14 -0
- package/dist/esm/checkbox/checkbox.definition-async.js.map +1 -0
- package/dist/esm/checkbox/checkbox.styles.css +168 -0
- package/dist/esm/checkbox/checkbox.template.html +24 -0
- package/dist/esm/checkbox/define-async.d.ts +1 -0
- package/dist/esm/checkbox/define-async.js +5 -0
- package/dist/esm/checkbox/define-async.js.map +1 -0
- package/dist/esm/compound-button/compound-button.definition-async.d.ts +10 -0
- package/dist/esm/compound-button/compound-button.definition-async.js +14 -0
- package/dist/esm/compound-button/compound-button.definition-async.js.map +1 -0
- package/dist/esm/compound-button/compound-button.styles.css +372 -0
- package/dist/esm/compound-button/compound-button.template.html +13 -0
- package/dist/esm/compound-button/define-async.d.ts +1 -0
- package/dist/esm/compound-button/define-async.js +5 -0
- package/dist/esm/compound-button/define-async.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.definition-async.d.ts +10 -0
- package/dist/esm/counter-badge/counter-badge.definition-async.js +14 -0
- package/dist/esm/counter-badge/counter-badge.definition-async.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.styles.css +177 -0
- package/dist/esm/counter-badge/counter-badge.template.html +5 -0
- package/dist/esm/counter-badge/define-async.d.ts +1 -0
- package/dist/esm/counter-badge/define-async.js +5 -0
- package/dist/esm/counter-badge/define-async.js.map +1 -0
- package/dist/esm/dialog/define-async.d.ts +1 -0
- package/dist/esm/dialog/define-async.js +5 -0
- package/dist/esm/dialog/define-async.js.map +1 -0
- package/dist/esm/dialog/dialog.definition-async.d.ts +10 -0
- package/dist/esm/dialog/dialog.definition-async.js +14 -0
- package/dist/esm/dialog/dialog.definition-async.js.map +1 -0
- package/dist/esm/dialog/dialog.styles.css +86 -0
- package/dist/esm/dialog/dialog.template.html +16 -0
- package/dist/esm/dialog-body/define-async.d.ts +1 -0
- package/dist/esm/dialog-body/define-async.js +5 -0
- package/dist/esm/dialog-body/define-async.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.definition-async.d.ts +10 -0
- package/dist/esm/dialog-body/dialog-body.definition-async.js +14 -0
- package/dist/esm/dialog-body/dialog-body.definition-async.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.styles.css +87 -0
- package/dist/esm/dialog-body/dialog-body.template.html +11 -0
- package/dist/esm/divider/define-async.d.ts +1 -0
- package/dist/esm/divider/define-async.js +5 -0
- package/dist/esm/divider/define-async.js.map +1 -0
- package/dist/esm/divider/divider.definition-async.d.ts +10 -0
- package/dist/esm/divider/divider.definition-async.js +14 -0
- package/dist/esm/divider/divider.definition-async.js.map +1 -0
- package/dist/esm/divider/divider.styles.css +119 -0
- package/dist/esm/divider/divider.template.html +1 -0
- package/dist/esm/drawer/define-async.d.ts +1 -0
- package/dist/esm/drawer/define-async.js +5 -0
- package/dist/esm/drawer/define-async.js.map +1 -0
- package/dist/esm/drawer/drawer.definition-async.d.ts +10 -0
- package/dist/esm/drawer/drawer.definition-async.js +14 -0
- package/dist/esm/drawer/drawer.definition-async.js.map +1 -0
- package/dist/esm/drawer/drawer.styles.css +130 -0
- package/dist/esm/drawer/drawer.template.html +18 -0
- package/dist/esm/drawer-body/define-async.d.ts +1 -0
- package/dist/esm/drawer-body/define-async.js +5 -0
- package/dist/esm/drawer-body/define-async.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.definition-async.d.ts +10 -0
- package/dist/esm/drawer-body/drawer-body.definition-async.js +14 -0
- package/dist/esm/drawer-body/drawer-body.definition-async.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.styles.css +33 -0
- package/dist/esm/drawer-body/drawer-body.template.html +12 -0
- package/dist/esm/dropdown/define-async.d.ts +1 -0
- package/dist/esm/dropdown/define-async.js +5 -0
- package/dist/esm/dropdown/define-async.js.map +1 -0
- package/dist/esm/dropdown/dropdown.base.js +5 -4
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/dropdown/dropdown.definition-async.d.ts +10 -0
- package/dist/esm/dropdown/dropdown.definition-async.js +14 -0
- package/dist/esm/dropdown/dropdown.definition-async.js.map +1 -0
- package/dist/esm/dropdown/dropdown.styles.css +221 -0
- package/dist/esm/dropdown/dropdown.template.html +21 -0
- package/dist/esm/field/define-async.d.ts +1 -0
- package/dist/esm/field/define-async.js +5 -0
- package/dist/esm/field/define-async.js.map +1 -0
- package/dist/esm/field/field.definition-async.d.ts +10 -0
- package/dist/esm/field/field.definition-async.js +17 -0
- package/dist/esm/field/field.definition-async.js.map +1 -0
- package/dist/esm/field/field.styles.css +121 -0
- package/dist/esm/field/field.template.html +12 -0
- package/dist/esm/image/define-async.d.ts +1 -0
- package/dist/esm/image/define-async.js +5 -0
- package/dist/esm/image/define-async.js.map +1 -0
- package/dist/esm/image/image.definition-async.d.ts +10 -0
- package/dist/esm/image/image.definition-async.js +14 -0
- package/dist/esm/image/image.definition-async.js.map +1 -0
- package/dist/esm/image/image.styles.css +51 -0
- package/dist/esm/image/image.template.html +1 -0
- package/dist/esm/label/define-async.d.ts +1 -0
- package/dist/esm/label/define-async.js +5 -0
- package/dist/esm/label/define-async.js.map +1 -0
- package/dist/esm/label/label.definition-async.d.ts +10 -0
- package/dist/esm/label/label.definition-async.js +14 -0
- package/dist/esm/label/label.definition-async.js.map +1 -0
- package/dist/esm/label/label.styles.css +36 -0
- package/dist/esm/label/label.template.html +4 -0
- package/dist/esm/link/define-async.d.ts +1 -0
- package/dist/esm/link/define-async.js +5 -0
- package/dist/esm/link/define-async.js.map +1 -0
- package/dist/esm/link/link.definition-async.d.ts +10 -0
- package/dist/esm/link/link.definition-async.js +14 -0
- package/dist/esm/link/link.definition-async.js.map +1 -0
- package/dist/esm/link/link.styles.css +68 -0
- package/dist/esm/link/link.template.html +9 -0
- package/dist/esm/listbox/define-async.d.ts +1 -0
- package/dist/esm/listbox/define-async.js +5 -0
- package/dist/esm/listbox/define-async.js.map +1 -0
- package/dist/esm/listbox/listbox.definition-async.d.ts +10 -0
- package/dist/esm/listbox/listbox.definition-async.js +14 -0
- package/dist/esm/listbox/listbox.definition-async.js.map +1 -0
- package/dist/esm/listbox/listbox.styles.css +51 -0
- package/dist/esm/listbox/listbox.template.html +8 -0
- package/dist/esm/menu/define-async.d.ts +1 -0
- package/dist/esm/menu/define-async.js +5 -0
- package/dist/esm/menu/define-async.js.map +1 -0
- package/dist/esm/menu/menu.definition-async.d.ts +10 -0
- package/dist/esm/menu/menu.definition-async.js +14 -0
- package/dist/esm/menu/menu.definition-async.js.map +1 -0
- package/dist/esm/menu/menu.styles.css +53 -0
- package/dist/esm/menu/menu.template.html +7 -0
- package/dist/esm/menu/menu.template.js +1 -7
- package/dist/esm/menu/menu.template.js.map +1 -1
- package/dist/esm/menu-button/define-async.d.ts +1 -0
- package/dist/esm/menu-button/define-async.js +5 -0
- package/dist/esm/menu-button/define-async.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition-async.d.ts +10 -0
- package/dist/esm/menu-button/menu-button.definition-async.js +14 -0
- package/dist/esm/menu-button/menu-button.definition-async.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition.js +1 -1
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.styles.css +267 -0
- package/dist/esm/menu-button/menu-button.styles.d.ts +6 -0
- package/dist/esm/menu-button/menu-button.styles.js +8 -0
- package/dist/esm/menu-button/menu-button.styles.js.map +1 -0
- package/dist/esm/menu-button/menu-button.template.html +16 -0
- package/dist/esm/menu-item/define-async.d.ts +1 -0
- package/dist/esm/menu-item/define-async.js +5 -0
- package/dist/esm/menu-item/define-async.js.map +1 -0
- package/dist/esm/menu-item/menu-item.definition-async.d.ts +10 -0
- package/dist/esm/menu-item/menu-item.definition-async.js +14 -0
- package/dist/esm/menu-item/menu-item.definition-async.js.map +1 -0
- package/dist/esm/menu-item/menu-item.styles.css +152 -0
- package/dist/esm/menu-item/menu-item.template.html +19 -0
- package/dist/esm/menu-list/define-async.d.ts +1 -0
- package/dist/esm/menu-list/define-async.js +5 -0
- package/dist/esm/menu-list/define-async.js.map +1 -0
- package/dist/esm/menu-list/menu-list.base.js +3 -0
- package/dist/esm/menu-list/menu-list.base.js.map +1 -1
- package/dist/esm/menu-list/menu-list.definition-async.d.ts +10 -0
- package/dist/esm/menu-list/menu-list.definition-async.js +14 -0
- package/dist/esm/menu-list/menu-list.definition-async.js.map +1 -0
- package/dist/esm/menu-list/menu-list.styles.css +16 -0
- package/dist/esm/menu-list/menu-list.template.html +5 -0
- package/dist/esm/menu-list/menu-list.template.js +1 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/message-bar/define-async.d.ts +1 -0
- package/dist/esm/message-bar/define-async.js +5 -0
- package/dist/esm/message-bar/define-async.js.map +1 -0
- package/dist/esm/message-bar/message-bar.definition-async.d.ts +10 -0
- package/dist/esm/message-bar/message-bar.definition-async.js +14 -0
- package/dist/esm/message-bar/message-bar.definition-async.js.map +1 -0
- package/dist/esm/message-bar/message-bar.styles.css +98 -0
- package/dist/esm/message-bar/message-bar.template.html +8 -0
- package/dist/esm/option/define-async.d.ts +1 -0
- package/dist/esm/option/define-async.js +5 -0
- package/dist/esm/option/define-async.js.map +1 -0
- package/dist/esm/option/option.definition-async.d.ts +10 -0
- package/dist/esm/option/option.definition-async.js +14 -0
- package/dist/esm/option/option.definition-async.js.map +1 -0
- package/dist/esm/option/option.styles.css +131 -0
- package/dist/esm/option/option.template.html +21 -0
- package/dist/esm/progress-bar/define-async.d.ts +1 -0
- package/dist/esm/progress-bar/define-async.js +5 -0
- package/dist/esm/progress-bar/define-async.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.definition-async.d.ts +10 -0
- package/dist/esm/progress-bar/progress-bar.definition-async.js +14 -0
- package/dist/esm/progress-bar/progress-bar.definition-async.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.styles.css +99 -0
- package/dist/esm/progress-bar/progress-bar.template.html +3 -0
- package/dist/esm/radio/define-async.d.ts +1 -0
- package/dist/esm/radio/define-async.js +5 -0
- package/dist/esm/radio/define-async.js.map +1 -0
- package/dist/esm/radio/radio.definition-async.d.ts +10 -0
- package/dist/esm/radio/radio.definition-async.js +14 -0
- package/dist/esm/radio/radio.definition-async.js.map +1 -0
- package/dist/esm/radio/radio.styles.css +115 -0
- package/dist/esm/radio/radio.template.html +11 -0
- package/dist/esm/radio-group/define-async.d.ts +1 -0
- package/dist/esm/radio-group/define-async.js +5 -0
- package/dist/esm/radio-group/define-async.js.map +1 -0
- package/dist/esm/radio-group/radio-group.definition-async.d.ts +10 -0
- package/dist/esm/radio-group/radio-group.definition-async.js +14 -0
- package/dist/esm/radio-group/radio-group.definition-async.js.map +1 -0
- package/dist/esm/radio-group/radio-group.styles.css +41 -0
- package/dist/esm/radio-group/radio-group.template.html +12 -0
- package/dist/esm/rating-display/define-async.d.ts +1 -0
- package/dist/esm/rating-display/define-async.js +5 -0
- package/dist/esm/rating-display/define-async.js.map +1 -0
- package/dist/esm/rating-display/rating-display.definition-async.d.ts +10 -0
- package/dist/esm/rating-display/rating-display.definition-async.js +14 -0
- package/dist/esm/rating-display/rating-display.definition-async.js.map +1 -0
- package/dist/esm/rating-display/rating-display.styles.css +140 -0
- package/dist/esm/rating-display/rating-display.template.html +6 -0
- package/dist/esm/slider/define-async.d.ts +1 -0
- package/dist/esm/slider/define-async.js +5 -0
- package/dist/esm/slider/define-async.js.map +1 -0
- package/dist/esm/slider/slider.definition-async.d.ts +10 -0
- package/dist/esm/slider/slider.definition-async.js +14 -0
- package/dist/esm/slider/slider.definition-async.js.map +1 -0
- package/dist/esm/slider/slider.styles.css +189 -0
- package/dist/esm/slider/slider.template.html +17 -0
- package/dist/esm/spinner/define-async.d.ts +1 -0
- package/dist/esm/spinner/define-async.js +5 -0
- package/dist/esm/spinner/define-async.js.map +1 -0
- package/dist/esm/spinner/spinner.definition-async.d.ts +10 -0
- package/dist/esm/spinner/spinner.definition-async.js +14 -0
- package/dist/esm/spinner/spinner.definition-async.js.map +1 -0
- package/dist/esm/spinner/spinner.styles.css +155 -0
- package/dist/esm/spinner/spinner.template.html +13 -0
- package/dist/esm/switch/define-async.d.ts +1 -0
- package/dist/esm/switch/define-async.js +5 -0
- package/dist/esm/switch/define-async.js.map +1 -0
- package/dist/esm/switch/switch.definition-async.d.ts +10 -0
- package/dist/esm/switch/switch.definition-async.js +14 -0
- package/dist/esm/switch/switch.definition-async.js.map +1 -0
- package/dist/esm/switch/switch.styles.css +121 -0
- package/dist/esm/switch/switch.template.html +10 -0
- package/dist/esm/tab/define-async.d.ts +1 -0
- package/dist/esm/tab/define-async.js +5 -0
- package/dist/esm/tab/define-async.js.map +1 -0
- package/dist/esm/tab/tab.definition-async.d.ts +10 -0
- package/dist/esm/tab/tab.definition-async.js +14 -0
- package/dist/esm/tab/tab.definition-async.js.map +1 -0
- package/dist/esm/tab/tab.styles.css +118 -0
- package/dist/esm/tab/tab.template.html +7 -0
- package/dist/esm/tablist/define-async.d.ts +1 -0
- package/dist/esm/tablist/define-async.js +5 -0
- package/dist/esm/tablist/define-async.js.map +1 -0
- package/dist/esm/tablist/tablist.definition-async.d.ts +10 -0
- package/dist/esm/tablist/tablist.definition-async.js +14 -0
- package/dist/esm/tablist/tablist.definition-async.js.map +1 -0
- package/dist/esm/tablist/tablist.styles.css +203 -0
- package/dist/esm/tablist/tablist.template.html +9 -0
- package/dist/esm/text/define-async.d.ts +1 -0
- package/dist/esm/text/define-async.js +5 -0
- package/dist/esm/text/define-async.js.map +1 -0
- package/dist/esm/text/text.definition-async.d.ts +10 -0
- package/dist/esm/text/text.definition-async.js +14 -0
- package/dist/esm/text/text.definition-async.js.map +1 -0
- package/dist/esm/text/text.styles.css +104 -0
- package/dist/esm/text/text.template.html +1 -0
- package/dist/esm/text-input/define-async.d.ts +1 -0
- package/dist/esm/text-input/define-async.js +5 -0
- package/dist/esm/text-input/define-async.js.map +1 -0
- package/dist/esm/text-input/text-input.base.d.ts +0 -6
- package/dist/esm/text-input/text-input.base.js +3 -14
- package/dist/esm/text-input/text-input.base.js.map +1 -1
- package/dist/esm/text-input/text-input.definition-async.d.ts +10 -0
- package/dist/esm/text-input/text-input.definition-async.js +17 -0
- package/dist/esm/text-input/text-input.definition-async.js.map +1 -0
- package/dist/esm/text-input/text-input.styles.css +200 -0
- package/dist/esm/text-input/text-input.template.html +38 -0
- package/dist/esm/text-input/text-input.template.js +1 -2
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/textarea/define-async.d.ts +1 -0
- package/dist/esm/textarea/define-async.js +5 -0
- package/dist/esm/textarea/define-async.js.map +1 -0
- package/dist/esm/textarea/textarea.base.js +12 -10
- package/dist/esm/textarea/textarea.base.js.map +1 -1
- package/dist/esm/textarea/textarea.definition-async.d.ts +10 -0
- package/dist/esm/textarea/textarea.definition-async.js +17 -0
- package/dist/esm/textarea/textarea.definition-async.js.map +1 -0
- package/dist/esm/textarea/textarea.styles.css +258 -0
- package/dist/esm/textarea/textarea.template.html +29 -0
- package/dist/esm/toggle-button/define-async.d.ts +1 -0
- package/dist/esm/toggle-button/define-async.js +5 -0
- package/dist/esm/toggle-button/define-async.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.definition-async.d.ts +10 -0
- package/dist/esm/toggle-button/toggle-button.definition-async.js +14 -0
- package/dist/esm/toggle-button/toggle-button.definition-async.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.js +2 -3
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.css +358 -0
- package/dist/esm/toggle-button/toggle-button.template.html +12 -0
- package/dist/esm/tooltip/define-async.d.ts +1 -0
- package/dist/esm/tooltip/define-async.js +5 -0
- package/dist/esm/tooltip/define-async.js.map +1 -0
- package/dist/esm/tooltip/tooltip.d.ts +9 -9
- package/dist/esm/tooltip/tooltip.definition-async.d.ts +10 -0
- package/dist/esm/tooltip/tooltip.definition-async.js +14 -0
- package/dist/esm/tooltip/tooltip.definition-async.js.map +1 -0
- package/dist/esm/tooltip/tooltip.js +38 -6
- package/dist/esm/tooltip/tooltip.js.map +1 -1
- package/dist/esm/tooltip/tooltip.styles.css +86 -0
- package/dist/esm/tooltip/tooltip.template.html +1 -0
- package/dist/esm/tree/define-async.d.ts +1 -0
- package/dist/esm/tree/define-async.js +5 -0
- package/dist/esm/tree/define-async.js.map +1 -0
- package/dist/esm/tree/tree.definition-async.d.ts +10 -0
- package/dist/esm/tree/tree.definition-async.js +14 -0
- package/dist/esm/tree/tree.definition-async.js.map +1 -0
- package/dist/esm/tree/tree.styles.css +6 -0
- package/dist/esm/tree/tree.template.html +12 -0
- package/dist/esm/tree/tree.template.js +1 -0
- package/dist/esm/tree/tree.template.js.map +1 -1
- package/dist/esm/tree-item/define-async.d.ts +1 -0
- package/dist/esm/tree-item/define-async.js +5 -0
- package/dist/esm/tree-item/define-async.js.map +1 -0
- package/dist/esm/tree-item/tree-item.base.d.ts +1 -0
- package/dist/esm/tree-item/tree-item.base.js +12 -3
- package/dist/esm/tree-item/tree-item.base.js.map +1 -1
- package/dist/esm/tree-item/tree-item.definition-async.d.ts +10 -0
- package/dist/esm/tree-item/tree-item.definition-async.js +14 -0
- package/dist/esm/tree-item/tree-item.definition-async.js.map +1 -0
- package/dist/esm/tree-item/tree-item.styles.css +157 -0
- package/dist/esm/tree-item/tree-item.template.html +26 -0
- package/dist/esm/tree-item/tree-item.template.js +1 -1
- package/dist/esm/tree-item/tree-item.template.js.map +1 -1
- package/dist/web-components-all.js +140 -110
- package/dist/web-components-all.min.js +11 -11
- package/dist/web-components.d.ts +10 -6
- package/dist/web-components.js +139 -109
- package/dist/web-components.min.js +11 -11
- package/package.json +16 -2
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
|
|
2
|
+
:host([shape='square']) {
|
|
3
|
+
border-radius: var(--borderRadiusNone);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host([shape='rounded']) {
|
|
7
|
+
border-radius: var(--borderRadiusMedium);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host([shape='rounded']:is([size='tiny'], [size='extra-small'], [size='small'])) {
|
|
11
|
+
border-radius: var(--borderRadiusSmall);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
:host([appearance='tint']) {
|
|
16
|
+
background-color: var(--colorBrandBackground2);
|
|
17
|
+
color: var(--colorBrandForeground2);
|
|
18
|
+
border-color: var(--colorBrandStroke2);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([appearance='tint'][color='danger']) {
|
|
22
|
+
background-color: var(--colorPaletteRedBackground1);
|
|
23
|
+
color: var(--colorPaletteRedForeground1);
|
|
24
|
+
border-color: var(--colorPaletteRedBorder1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([appearance='tint'][color='important']) {
|
|
28
|
+
background-color: var(--colorNeutralForeground3);
|
|
29
|
+
color: var(--colorNeutralBackground1);
|
|
30
|
+
border-color: var(--colorTransparentStroke);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([appearance='tint'][color='informative']) {
|
|
34
|
+
background-color: var(--colorNeutralBackground4);
|
|
35
|
+
color: var(--colorNeutralForeground3);
|
|
36
|
+
border-color: var(--colorNeutralStroke2);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([appearance='tint'][color='severe']) {
|
|
40
|
+
background-color: var(--colorPaletteDarkOrangeBackground1);
|
|
41
|
+
color: var(--colorPaletteDarkOrangeForeground1);
|
|
42
|
+
border-color: var(--colorPaletteDarkOrangeBorder1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([appearance='tint'][color='subtle']) {
|
|
46
|
+
background-color: var(--colorNeutralBackground1);
|
|
47
|
+
color: var(--colorNeutralForeground3);
|
|
48
|
+
border-color: var(--colorNeutralStroke2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([appearance='tint'][color='success']) {
|
|
52
|
+
background-color: var(--colorPaletteGreenBackground1);
|
|
53
|
+
color: var(--colorPaletteGreenForeground1);
|
|
54
|
+
border-color: var(--colorPaletteGreenBorder2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([appearance='tint'][color='warning']) {
|
|
58
|
+
background-color: var(--colorPaletteYellowBackground1);
|
|
59
|
+
color: var(--colorPaletteYellowForeground2);
|
|
60
|
+
border-color: var(--colorPaletteYellowBorder1);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:host([appearance='outline']) {
|
|
65
|
+
border-color: currentColor;
|
|
66
|
+
color: var(--colorBrandForeground1);
|
|
67
|
+
background-color: initial;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([appearance='outline'][color='danger']) {
|
|
71
|
+
color: var(--colorPaletteRedForeground3);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([appearance='outline'][color='important']) {
|
|
75
|
+
color: var(--colorNeutralForeground3);
|
|
76
|
+
border-color: var(--colorNeutralStrokeAccessible);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([appearance='outline'][color='informative']) {
|
|
80
|
+
color: var(--colorNeutralForeground3);
|
|
81
|
+
border-color: var(--colorNeutralStroke2);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host([appearance='outline'][color='severe']) {
|
|
85
|
+
color: var(--colorPaletteDarkOrangeForeground3);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([appearance='outline'][color='subtle']) {
|
|
89
|
+
color: var(--colorNeutralForegroundStaticInverted);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([appearance='outline'][color='success']) {
|
|
93
|
+
color: var(--colorPaletteGreenForeground2);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([appearance='outline'][color='warning']) {
|
|
97
|
+
color: var(--colorPaletteYellowForeground2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:host([appearance='ghost']) {
|
|
102
|
+
color: var(--colorBrandForeground1);
|
|
103
|
+
background-color: initial;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([appearance='ghost'][color='danger']) {
|
|
107
|
+
color: var(--colorPaletteRedForeground3);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([appearance='ghost'][color='important']) {
|
|
111
|
+
color: var(--colorNeutralForeground1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([appearance='ghost'][color='informative']) {
|
|
115
|
+
color: var(--colorNeutralForeground3);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host([appearance='ghost'][color='severe']) {
|
|
119
|
+
color: var(--colorPaletteDarkOrangeForeground3);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([appearance='ghost'][color='subtle']) {
|
|
123
|
+
color: var(--colorNeutralForegroundInverted);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([appearance='ghost'][color='success']) {
|
|
127
|
+
color: var(--colorPaletteGreenForeground3);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([appearance='ghost'][color='warning']) {
|
|
131
|
+
color: var(--colorPaletteYellowForeground2);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:host([color='danger']) {
|
|
136
|
+
background-color: var(--colorPaletteRedBackground3);
|
|
137
|
+
color: var(--colorNeutralForegroundOnBrand);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host([color='important']) {
|
|
141
|
+
background-color: var(--colorNeutralForeground1);
|
|
142
|
+
color: var(--colorNeutralBackground1);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host([color='informative']) {
|
|
146
|
+
background-color: var(--colorNeutralBackground5);
|
|
147
|
+
color: var(--colorNeutralForeground3);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host([color='severe']) {
|
|
151
|
+
background-color: var(--colorPaletteDarkOrangeBackground3);
|
|
152
|
+
color: var(--colorNeutralForegroundOnBrand);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host([color='subtle']) {
|
|
156
|
+
background-color: var(--colorNeutralBackground1);
|
|
157
|
+
color: var(--colorNeutralForeground1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:host([color='success']) {
|
|
161
|
+
background-color: var(--colorPaletteGreenBackground3);
|
|
162
|
+
color: var(--colorNeutralForegroundOnBrand);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:host([color='warning']) {
|
|
166
|
+
background-color: var(--colorPaletteYellowBackground3);
|
|
167
|
+
color: var(--colorNeutralForeground1Static);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:host([size='tiny']) {
|
|
172
|
+
width: 6px;
|
|
173
|
+
height: 6px;
|
|
174
|
+
font-size: 4px;
|
|
175
|
+
line-height: 4px;
|
|
176
|
+
padding-inline: 0;
|
|
177
|
+
min-width: unset;
|
|
178
|
+
}
|
|
179
|
+
:host([size='tiny']) ::slotted(svg) {
|
|
180
|
+
font-size: 6px;
|
|
181
|
+
}
|
|
182
|
+
:host([size='extra-small']) {
|
|
183
|
+
width: 10px;
|
|
184
|
+
height: 10px;
|
|
185
|
+
font-size: 6px;
|
|
186
|
+
line-height: 6px;
|
|
187
|
+
padding-inline: 0;
|
|
188
|
+
min-width: unset;
|
|
189
|
+
}
|
|
190
|
+
:host([size='extra-small']) ::slotted(svg) {
|
|
191
|
+
font-size: 10px;
|
|
192
|
+
}
|
|
193
|
+
:host([size='small']) {
|
|
194
|
+
min-width: 16px;
|
|
195
|
+
height: 16px;
|
|
196
|
+
font-size: var(--fontSizeBase100);
|
|
197
|
+
line-height: var(--lineHeightBase100);
|
|
198
|
+
padding-inline: calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));
|
|
199
|
+
}
|
|
200
|
+
:host([size='small']) ::slotted(svg) {
|
|
201
|
+
font-size: 12px;
|
|
202
|
+
}
|
|
203
|
+
:host([size='large']) {
|
|
204
|
+
min-width: 24px;
|
|
205
|
+
height: 24px;
|
|
206
|
+
font-size: var(--fontSizeBase200);
|
|
207
|
+
line-height: var(--lineHeightBase200);
|
|
208
|
+
padding-inline: calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));
|
|
209
|
+
}
|
|
210
|
+
:host([size='large']) ::slotted(svg) {
|
|
211
|
+
font-size: 16px;
|
|
212
|
+
}
|
|
213
|
+
:host([size='extra-large']) {
|
|
214
|
+
min-width: 32px;
|
|
215
|
+
height: 32px;
|
|
216
|
+
font-size: var(--fontSizeBase200);
|
|
217
|
+
line-height: var(--lineHeightBase200);
|
|
218
|
+
padding-inline: calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));
|
|
219
|
+
}
|
|
220
|
+
:host([size='extra-large']) ::slotted(svg) {
|
|
221
|
+
font-size: 20px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
:host([hidden]){display:none}:host{display:inline-flex} :host {
|
|
226
|
+
position: relative;
|
|
227
|
+
box-sizing: border-box;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
font-family: var(--fontFamilyBase);
|
|
231
|
+
font-weight: var(--fontWeightSemibold);
|
|
232
|
+
font-size: var(--fontSizeBase200);
|
|
233
|
+
line-height: var(--lineHeightBase200);
|
|
234
|
+
min-width: 20px;
|
|
235
|
+
height: 20px;
|
|
236
|
+
padding-inline: calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));
|
|
237
|
+
border-radius: var(--borderRadiusCircular);
|
|
238
|
+
border-color: var(--colorTransparentStroke);
|
|
239
|
+
background-color: var(--colorBrandBackground);
|
|
240
|
+
color: var(--colorNeutralForegroundOnBrand);
|
|
241
|
+
contain: content;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
::slotted(svg) {
|
|
245
|
+
font-size: 12px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:host(:not([appearance='ghost']))::after {
|
|
249
|
+
position: absolute;
|
|
250
|
+
content: '';
|
|
251
|
+
top: 0;
|
|
252
|
+
left: 0;
|
|
253
|
+
bottom: 0;
|
|
254
|
+
right: 0;
|
|
255
|
+
border-style: solid;
|
|
256
|
+
border-width: var(--strokeWidthThin);
|
|
257
|
+
border-color: inherit;
|
|
258
|
+
border-radius: inherit;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
@media (forced-colors: active) {
|
|
263
|
+
:host,
|
|
264
|
+
:host([appearance='outline']),
|
|
265
|
+
:host([appearance='tint']) {
|
|
266
|
+
border-color: CanvasText;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-async.js","sourceRoot":"","sources":["../../../src/badge/define-async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,qBAAqB,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-button element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export declare const definition: PartialFASTElementDefinition;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tagName } from './button.options.js';
|
|
2
|
+
/**
|
|
3
|
+
* The async definition configuration for the fluent-button element.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used in server-side rendering (SSR) scenarios where the template
|
|
8
|
+
* is provided as a deferred option to be hydrated later.
|
|
9
|
+
*/
|
|
10
|
+
export const definition = {
|
|
11
|
+
name: tagName,
|
|
12
|
+
templateOptions: 'defer-and-hydrate',
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=button.definition-async.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.definition-async.js","sourceRoot":"","sources":["../../../src/button/button.definition-async.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAiC;IACtD,IAAI,EAAE,OAAO;IACb,eAAe,EAAE,mBAAmB;CACrC,CAAC"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
|
|
2
|
+
:host([hidden]){display:none}:host{display:inline-flex}
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
--icon-spacing: var(--spacingHorizontalSNudge);
|
|
6
|
+
position: relative;
|
|
7
|
+
contain: layout style;
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
align-items: center;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
text-align: center;
|
|
13
|
+
text-decoration-line: none;
|
|
14
|
+
margin: 0;
|
|
15
|
+
min-height: 32px;
|
|
16
|
+
outline-style: none;
|
|
17
|
+
background-color: var(--colorNeutralBackground1);
|
|
18
|
+
color: var(--colorNeutralForeground1);
|
|
19
|
+
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
|
|
20
|
+
padding: 0 var(--spacingHorizontalM);
|
|
21
|
+
min-width: 96px;
|
|
22
|
+
border-radius: var(--borderRadiusMedium);
|
|
23
|
+
font-size: var(--fontSizeBase300);
|
|
24
|
+
font-family: var(--fontFamilyBase);
|
|
25
|
+
font-weight: var(--fontWeightSemibold);
|
|
26
|
+
line-height: var(--lineHeightBase300);
|
|
27
|
+
transition-duration: var(--durationFaster);
|
|
28
|
+
transition-property: background, border, color;
|
|
29
|
+
transition-timing-function: var(--curveEasyEase);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
user-select: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.content {
|
|
35
|
+
display: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host(:hover) {
|
|
39
|
+
background-color: var(--colorNeutralBackground1Hover);
|
|
40
|
+
color: var(--colorNeutralForeground1Hover);
|
|
41
|
+
border-color: var(--colorNeutralStroke1Hover);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host(:hover:active) {
|
|
45
|
+
background-color: var(--colorNeutralBackground1Pressed);
|
|
46
|
+
border-color: var(--colorNeutralStroke1Pressed);
|
|
47
|
+
color: var(--colorNeutralForeground1Pressed);
|
|
48
|
+
outline-style: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host(:focus-visible) {
|
|
52
|
+
border-color: var(--colorTransparentStroke);
|
|
53
|
+
outline: var(--strokeWidthThick) solid var(--colorTransparentStroke);
|
|
54
|
+
box-shadow: var(--shadow4), 0 0 0 2px var(--colorStrokeFocus2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
58
|
+
:host {
|
|
59
|
+
transition-duration: 0.01ms;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
::slotted(svg) {
|
|
64
|
+
font-size: 20px;
|
|
65
|
+
height: 20px;
|
|
66
|
+
width: 20px;
|
|
67
|
+
fill: currentColor;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
::slotted([slot='start']) {
|
|
71
|
+
margin-inline-end: var(--icon-spacing);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
::slotted([slot='end']),
|
|
75
|
+
[slot='end'] {
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
margin-inline-start: var(--icon-spacing);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([icon-only]) {
|
|
81
|
+
min-width: 32px;
|
|
82
|
+
max-width: 32px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([size='small']) {
|
|
86
|
+
--icon-spacing: var(--spacingHorizontalXS);
|
|
87
|
+
min-height: 24px;
|
|
88
|
+
min-width: 64px;
|
|
89
|
+
padding: 0 var(--spacingHorizontalS);
|
|
90
|
+
border-radius: var(--borderRadiusSmall);
|
|
91
|
+
font-size: var(--fontSizeBase200);
|
|
92
|
+
line-height: var(--lineHeightBase200);
|
|
93
|
+
font-weight: var(--fontWeightRegular);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([size='small'][icon-only]) {
|
|
97
|
+
min-width: 24px;
|
|
98
|
+
max-width: 24px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([size='large']) {
|
|
102
|
+
min-height: 40px;
|
|
103
|
+
border-radius: var(--borderRadiusLarge);
|
|
104
|
+
padding: 0 var(--spacingHorizontalL);
|
|
105
|
+
font-size: var(--fontSizeBase400);
|
|
106
|
+
line-height: var(--lineHeightBase400);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:host([size='large'][icon-only]) {
|
|
110
|
+
min-width: 40px;
|
|
111
|
+
max-width: 40px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([size='large']) ::slotted(svg) {
|
|
115
|
+
font-size: 24px;
|
|
116
|
+
height: 24px;
|
|
117
|
+
width: 24px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host(:is([shape='circular'], [shape='circular']:focus-visible)) {
|
|
121
|
+
border-radius: var(--borderRadiusCircular);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host(:is([shape='square'], [shape='square']:focus-visible)) {
|
|
125
|
+
border-radius: var(--borderRadiusNone);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([appearance='primary']) {
|
|
129
|
+
background-color: var(--colorBrandBackground);
|
|
130
|
+
color: var(--colorNeutralForegroundOnBrand);
|
|
131
|
+
border-color: transparent;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host([appearance='primary']:hover) {
|
|
135
|
+
background-color: var(--colorBrandBackgroundHover);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host([appearance='primary']:is(:hover, :hover:active):not(:focus-visible)) {
|
|
139
|
+
border-color: transparent;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host([appearance='primary']:is(:hover, :hover:active)) {
|
|
143
|
+
color: var(--colorNeutralForegroundOnBrand);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([appearance='primary']:hover:active) {
|
|
147
|
+
background-color: var(--colorBrandBackgroundPressed);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host([appearance='primary']:focus-visible) {
|
|
151
|
+
border-color: var(--colorNeutralForegroundOnBrand);
|
|
152
|
+
box-shadow: var(--shadow2), 0 0 0 2px var(--colorStrokeFocus2);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host([appearance='outline']) {
|
|
156
|
+
background-color: var(--colorTransparentBackground);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:host([appearance='outline']:hover) {
|
|
160
|
+
background-color: var(--colorTransparentBackgroundHover);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:host([appearance='outline']:hover:active) {
|
|
164
|
+
background-color: var(--colorTransparentBackgroundPressed);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:host([appearance='subtle']) {
|
|
168
|
+
background-color: var(--colorSubtleBackground);
|
|
169
|
+
color: var(--colorNeutralForeground2);
|
|
170
|
+
border-color: transparent;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:host([appearance='subtle']:hover) {
|
|
174
|
+
background-color: var(--colorSubtleBackgroundHover);
|
|
175
|
+
color: var(--colorNeutralForeground2Hover);
|
|
176
|
+
border-color: transparent;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:host([appearance='subtle']:hover:active) {
|
|
180
|
+
background-color: var(--colorSubtleBackgroundPressed);
|
|
181
|
+
color: var(--colorNeutralForeground2Pressed);
|
|
182
|
+
border-color: transparent;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:host([appearance='subtle']:hover) ::slotted(svg) {
|
|
186
|
+
fill: var(--colorNeutralForeground2BrandHover);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:host([appearance='subtle']:hover:active) ::slotted(svg) {
|
|
190
|
+
fill: var(--colorNeutralForeground2BrandPressed);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host([appearance='transparent']) {
|
|
194
|
+
background-color: var(--colorTransparentBackground);
|
|
195
|
+
color: var(--colorNeutralForeground2);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
:host([appearance='transparent']:hover) {
|
|
199
|
+
background-color: var(--colorTransparentBackgroundHover);
|
|
200
|
+
color: var(--colorNeutralForeground2BrandHover);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:host([appearance='transparent']:hover:active) {
|
|
204
|
+
background-color: var(--colorTransparentBackgroundPressed);
|
|
205
|
+
color: var(--colorNeutralForeground2BrandPressed);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host(:is([appearance='transparent'], [appearance='transparent']:is(:hover, :active))) {
|
|
209
|
+
border-color: transparent;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
:host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable])),
|
|
216
|
+
:host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable]):hover),
|
|
217
|
+
:host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable]):hover:active) {
|
|
218
|
+
background-color: var(--colorNeutralBackgroundDisabled);
|
|
219
|
+
border-color: var(--colorNeutralStrokeDisabled);
|
|
220
|
+
color: var(--colorNeutralForegroundDisabled);
|
|
221
|
+
cursor: not-allowed;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host([appearance='primary']:is(:disabled, [disabled-focusable])),
|
|
225
|
+
:host([appearance='primary']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
|
|
226
|
+
border-color: transparent;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:host([appearance='outline']:is(:disabled, [disabled-focusable])),
|
|
230
|
+
:host([appearance='outline']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
|
|
231
|
+
background-color: var(--colorTransparentBackground);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
:host([appearance='subtle']:is(:disabled, [disabled-focusable])),
|
|
235
|
+
:host([appearance='subtle']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
|
|
236
|
+
background-color: var(--colorTransparentBackground);
|
|
237
|
+
border-color: transparent;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
:host([appearance='transparent']:is(:disabled, [disabled-focusable])),
|
|
241
|
+
:host([appearance='transparent']:is(:disabled, [disabled-focusable]):is(:hover, :hover:active)) {
|
|
242
|
+
border-color: transparent;
|
|
243
|
+
background-color: var(--colorTransparentBackground);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@media (forced-colors: active) {
|
|
247
|
+
:host {
|
|
248
|
+
background-color: ButtonFace;
|
|
249
|
+
color: ButtonText;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:host(:is(:hover, :focus-visible)) {
|
|
253
|
+
border-color: Highlight !important;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:host([appearance='primary']:not(:is(:hover, :focus-visible))) {
|
|
257
|
+
background-color: Highlight;
|
|
258
|
+
color: HighlightText;
|
|
259
|
+
forced-color-adjust: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
:host(:is(:disabled, [disabled-focusable], [appearance]:disabled, [appearance][disabled-focusable])) {
|
|
263
|
+
background-color: ButtonFace;
|
|
264
|
+
color: GrayText;
|
|
265
|
+
border-color: ButtonText;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<f-template name="fluent-button" shadowrootmode="open">
|
|
2
|
+
<template
|
|
3
|
+
@click="{clickHandler($e)}"
|
|
4
|
+
@keypress="{keypressHandler($e)}"
|
|
5
|
+
>{{styles}}
|
|
6
|
+
<slot name="start" f-ref="{start}"></slot>
|
|
7
|
+
<span class="content" part="content">
|
|
8
|
+
<slot f-slotted="{defaultSlottedContent}"></slot>
|
|
9
|
+
</span>
|
|
10
|
+
<slot name="end" f-ref="{end}"></slot>
|
|
11
|
+
</template>
|
|
12
|
+
</f-template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-async.js","sourceRoot":"","sources":["../../../src/button/define-async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAqB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -126,7 +126,7 @@ export class BaseCheckbox extends FASTElement {
|
|
|
126
126
|
* @internal
|
|
127
127
|
*/
|
|
128
128
|
requiredChanged(prev, next) {
|
|
129
|
-
if (this
|
|
129
|
+
if (this.elementInternals) {
|
|
130
130
|
this.setValidity();
|
|
131
131
|
this.elementInternals.ariaRequired = this.required ? 'true' : 'false';
|
|
132
132
|
}
|
|
@@ -165,7 +165,7 @@ export class BaseCheckbox extends FASTElement {
|
|
|
165
165
|
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
|
|
166
166
|
*/
|
|
167
167
|
get validationMessage() {
|
|
168
|
-
if (this.elementInternals
|
|
168
|
+
if (this.elementInternals?.validationMessage) {
|
|
169
169
|
return this.elementInternals.validationMessage;
|
|
170
170
|
}
|
|
171
171
|
if (!this._validationFallbackMessage) {
|
|
@@ -198,11 +198,11 @@ export class BaseCheckbox extends FASTElement {
|
|
|
198
198
|
}
|
|
199
199
|
set value(value) {
|
|
200
200
|
this._value = value;
|
|
201
|
-
if (this
|
|
201
|
+
if (this.elementInternals) {
|
|
202
202
|
this.setFormValue(value);
|
|
203
203
|
this.setValidity();
|
|
204
|
-
Observable.notify(this, 'value');
|
|
205
204
|
}
|
|
205
|
+
Observable.notify(this, 'value');
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
208
|
* Determines if the control can be submitted for constraint validation.
|
|
@@ -313,7 +313,9 @@ export class BaseCheckbox extends FASTElement {
|
|
|
313
313
|
* @internal
|
|
314
314
|
*/
|
|
315
315
|
setAriaChecked(value = this.checked) {
|
|
316
|
-
this.elementInternals
|
|
316
|
+
if (this.elementInternals) {
|
|
317
|
+
this.elementInternals.ariaChecked = value ? 'true' : 'false';
|
|
318
|
+
}
|
|
317
319
|
}
|
|
318
320
|
/**
|
|
319
321
|
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
|
|
@@ -321,7 +323,7 @@ export class BaseCheckbox extends FASTElement {
|
|
|
321
323
|
* @internal
|
|
322
324
|
*/
|
|
323
325
|
setFormValue(value, state) {
|
|
324
|
-
this.elementInternals
|
|
326
|
+
this.elementInternals?.setFormValue(value, value ?? state);
|
|
325
327
|
}
|
|
326
328
|
/**
|
|
327
329
|
* Sets a custom validity message.
|
|
@@ -343,7 +345,7 @@ export class BaseCheckbox extends FASTElement {
|
|
|
343
345
|
* @internal
|
|
344
346
|
*/
|
|
345
347
|
setValidity(flags, message, anchor) {
|
|
346
|
-
if (this
|
|
348
|
+
if (this.elementInternals) {
|
|
347
349
|
if (this.disabled || !this.required) {
|
|
348
350
|
this.elementInternals.setValidity({});
|
|
349
351
|
return;
|