@redvars/peacock 3.8.1 → 3.8.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/dist/{BaseInput-14YmcfK7.js → BaseInput-CU1zZYKc.js} +3 -3
- package/dist/{BaseInput-14YmcfK7.js.map → BaseInput-CU1zZYKc.js.map} +1 -1
- package/dist/ButtonConstants-CahP2_NA.js +4 -0
- package/dist/ButtonConstants-CahP2_NA.js.map +1 -0
- package/dist/{IndividualComponent-DUINtMGK.js → IndividualComponent-Bdwyrvd6.js} +2 -2
- package/dist/{IndividualComponent-DUINtMGK.js.map → IndividualComponent-Bdwyrvd6.js.map} +1 -1
- package/dist/{NativeHyperlinkMixin-DrYXyfMQ.js → NativeHyperlinkMixin-D9J4aBTy.js} +4 -30
- package/dist/NativeHyperlinkMixin-D9J4aBTy.js.map +1 -0
- package/dist/accordion-item.js +338 -0
- package/dist/accordion-item.js.map +1 -0
- package/dist/accordion.js +159 -0
- package/dist/accordion.js.map +1 -0
- package/dist/alert.js +190 -0
- package/dist/alert.js.map +1 -0
- package/dist/app-bar.js +324 -0
- package/dist/app-bar.js.map +1 -0
- package/dist/assets/components.css +1 -1
- package/dist/assets/components.css.map +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/attachable-controller-CAKVrfcG.js +119 -0
- package/dist/attachable-controller-CAKVrfcG.js.map +1 -0
- package/dist/avatar.js +114 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.js +91 -0
- package/dist/badge.js.map +1 -0
- package/dist/base-Cl6v8-BZ.js +9 -0
- package/dist/base-Cl6v8-BZ.js.map +1 -0
- package/dist/bottom-sheet.js +14 -5
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/breadcrumb-item.js +163 -0
- package/dist/breadcrumb-item.js.map +1 -0
- package/dist/breadcrumb.js +95 -0
- package/dist/breadcrumb.js.map +1 -0
- package/dist/button-group.js +87 -137
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +863 -133
- package/dist/button.js.map +1 -1
- package/dist/calendar-column-view.js +8 -4
- package/dist/calendar-column-view.js.map +1 -1
- package/dist/calendar-month-view.js +8 -4
- package/dist/calendar-month-view.js.map +1 -1
- package/dist/calendar.js +8 -4
- package/dist/calendar.js.map +1 -1
- package/dist/canvas.js +8 -4
- package/dist/canvas.js.map +1 -1
- package/dist/card-content.js +1 -1
- package/dist/card.js +23 -45
- package/dist/card.js.map +1 -1
- package/dist/cb-compound-expression.js +6 -2
- package/dist/cb-compound-expression.js.map +1 -1
- package/dist/cb-divider.js +7 -3
- package/dist/cb-divider.js.map +1 -1
- package/dist/cb-expression.js +6 -2
- package/dist/cb-expression.js.map +1 -1
- package/dist/cb-predicate.js +7 -3
- package/dist/cb-predicate.js.map +1 -1
- package/dist/{chart-bar-cn6rrna-.js → chart-bar-CYoGNXnK.js} +6 -2
- package/dist/{chart-bar-cn6rrna-.js.map → chart-bar-CYoGNXnK.js.map} +1 -1
- package/dist/chart-bar.js +7 -6
- package/dist/chart-bar.js.map +1 -1
- package/dist/chart-doughnut.js +8 -3
- package/dist/chart-doughnut.js.map +1 -1
- package/dist/chart-pie.js +8 -3
- package/dist/chart-pie.js.map +1 -1
- package/dist/chart-stacked-bar.js +7 -6
- package/dist/chart-stacked-bar.js.map +1 -1
- package/dist/checkbox.js +526 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chip.js +459 -0
- package/dist/chip.js.map +1 -0
- package/dist/{class-map-YU7g0o3B.js → class-map-DG7CA1et.js} +2 -2
- package/dist/{class-map-YU7g0o3B.js.map → class-map-DG7CA1et.js.map} +1 -1
- package/dist/clock.js +6 -2
- package/dist/clock.js.map +1 -1
- package/dist/code-editor.js +45 -30
- package/dist/code-editor.js.map +1 -1
- package/dist/code-highlighter.js +9 -5
- package/dist/code-highlighter.js.map +1 -1
- package/dist/condition-builder.js +5 -1
- package/dist/condition-builder.js.map +1 -1
- package/dist/container.js +141 -0
- package/dist/container.js.map +1 -0
- package/dist/custom-elements-jsdocs.json +721 -769
- package/dist/custom-elements.json +3213 -1979
- package/dist/datasource-B2eRh6Or.js +108 -0
- package/dist/datasource-B2eRh6Or.js.map +1 -0
- package/dist/dispatch-event-utils-CuEqjlPT.js.map +1 -1
- package/dist/divider.js +135 -0
- package/dist/divider.js.map +1 -0
- package/dist/dropdown-button.js +11 -6
- package/dist/dropdown-button.js.map +1 -1
- package/dist/element-internals-2CMts_0M.js +290 -0
- package/dist/element-internals-2CMts_0M.js.map +1 -0
- package/dist/elevation.js +94 -0
- package/dist/elevation.js.map +1 -0
- package/dist/empty-state.js +194 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/{event-manager-D-QCmUgR.js → event-manager-DTyX2uYD.js} +2 -2
- package/dist/{event-manager-D-QCmUgR.js.map → event-manager-DTyX2uYD.js.map} +1 -1
- package/dist/fab.js +138 -145
- package/dist/fab.js.map +1 -1
- package/dist/field.js +461 -0
- package/dist/field.js.map +1 -0
- package/dist/{popover-DUPmMVWS.js → floating-controller-CnUZnOhK.js} +2 -171
- package/dist/floating-controller-CnUZnOhK.js.map +1 -0
- package/dist/{flow-designer-node-BWrPuxAR.js → flow-designer-node-DsVwQTac.js} +7 -3
- package/dist/{flow-designer-node-BWrPuxAR.js.map → flow-designer-node-DsVwQTac.js.map} +1 -1
- package/dist/flow-designer-node.js +3 -3
- package/dist/flow-designer.js +19 -12
- package/dist/flow-designer.js.map +1 -1
- package/dist/focus-ring.js +126 -0
- package/dist/focus-ring.js.map +1 -0
- package/dist/form-associated-BXADnjOB.js +388 -0
- package/dist/form-associated-BXADnjOB.js.map +1 -0
- package/dist/html-editor.js +21 -9
- package/dist/html-editor.js.map +1 -1
- package/dist/hyperlink-DLvb6MXE.js +98 -0
- package/dist/hyperlink-DLvb6MXE.js.map +1 -0
- package/dist/icon-button.js +1064 -0
- package/dist/icon-button.js.map +1 -0
- package/dist/icon.js +170 -0
- package/dist/icon.js.map +1 -0
- package/dist/if-defined-BXZpRQ4P.js +10 -0
- package/dist/if-defined-BXZpRQ4P.js.map +1 -0
- package/dist/image.js +201 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +73 -20
- package/dist/index.js.map +1 -1
- package/dist/is-dark-mode-DOcaw4Yq.js.map +1 -1
- package/dist/is-link-Dk2OV3PM.js +6 -0
- package/dist/is-link-Dk2OV3PM.js.map +1 -0
- package/dist/item.js +212 -0
- package/dist/item.js.map +1 -0
- package/dist/link.js +75 -0
- package/dist/link.js.map +1 -0
- package/dist/list-D6JLh1uh.js +352 -0
- package/dist/list-D6JLh1uh.js.map +1 -0
- package/dist/list.js +14 -0
- package/dist/list.js.map +1 -0
- package/dist/{peacock-loader.js → loader.js} +83 -22
- package/dist/loader.js.map +1 -0
- package/dist/menu-item.js +318 -0
- package/dist/menu-item.js.map +1 -0
- package/dist/menu.js +534 -0
- package/dist/menu.js.map +1 -0
- package/dist/modal.js +9 -5
- package/dist/modal.js.map +1 -1
- package/dist/navigation-rail-item.js +385 -0
- package/dist/navigation-rail-item.js.map +1 -0
- package/dist/navigation-rail.js +217 -0
- package/dist/navigation-rail.js.map +1 -0
- package/dist/notification-manager.js +8 -4
- package/dist/notification-manager.js.map +1 -1
- package/dist/notification.js +8 -4
- package/dist/notification.js.map +1 -1
- package/dist/number-counter.js +7 -3
- package/dist/number-counter.js.map +1 -1
- package/dist/{observe-slot-change-D8Xg-kSS.js → observe-slot-change-DPxaZrZF.js} +3 -4
- package/dist/observe-slot-change-DPxaZrZF.js.map +1 -0
- package/dist/option.js +121 -0
- package/dist/option.js.map +1 -0
- package/dist/pagination.js +255 -0
- package/dist/pagination.js.map +1 -0
- package/dist/popover-content.js +7 -3
- package/dist/popover-content.js.map +1 -1
- package/dist/popover.js +175 -3
- package/dist/popover.js.map +1 -1
- package/dist/{property-1psGvXOq.js → property-B49QQ8pS.js} +2 -2
- package/dist/{property-1psGvXOq.js.map → property-B49QQ8pS.js.map} +1 -1
- package/dist/query-CHb9Ft_d.js +10 -0
- package/dist/query-CHb9Ft_d.js.map +1 -0
- package/dist/query-assigned-elements-BJaGSqM0.js +10 -0
- package/dist/query-assigned-elements-BJaGSqM0.js.map +1 -0
- package/dist/radio.js +476 -0
- package/dist/radio.js.map +1 -0
- package/dist/ripple.js +506 -0
- package/dist/ripple.js.map +1 -0
- package/dist/search.js +12 -7
- package/dist/search.js.map +1 -1
- package/dist/segmented-button-group.js +137 -0
- package/dist/segmented-button-group.js.map +1 -0
- package/dist/segmented-button.js +289 -0
- package/dist/segmented-button.js.map +1 -0
- package/dist/select-Dwtk0RIU.js +3937 -0
- package/dist/select-Dwtk0RIU.js.map +1 -0
- package/dist/side-sheet.js +8 -4
- package/dist/side-sheet.js.map +1 -1
- package/dist/skeleton.js +122 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/slider.js +346 -0
- package/dist/slider.js.map +1 -0
- package/dist/snackbar.js +335 -0
- package/dist/snackbar.js.map +1 -0
- package/dist/spinner.js +100 -0
- package/dist/spinner.js.map +1 -0
- package/dist/split-button.js +10 -5
- package/dist/split-button.js.map +1 -1
- package/dist/spread-B5cgadZl.js +32 -0
- package/dist/spread-B5cgadZl.js.map +1 -0
- package/dist/src/__internal/aria/aria.d.ts +98 -0
- package/dist/src/__internal/aria/delegate.d.ts +54 -0
- package/dist/src/__internal/events/dispatch-hooks.d.ts +80 -0
- package/dist/src/__internal/mixins/element-internals.d.ts +40 -0
- package/dist/src/__internal/mixins/form-associated.d.ts +174 -0
- package/dist/src/__internal/mixins/form-submitter.d.ts +59 -0
- package/dist/src/__internal/mixins/hyperlink.d.ts +42 -0
- package/dist/src/__internal/mixins/mixin.d.ts +49 -0
- package/dist/src/{__utils → __internal/utils}/observe-slot-change.d.ts +1 -0
- package/dist/src/accordion/accordion-item.d.ts +3 -1
- package/dist/src/accordion/accordion.d.ts +1 -1
- package/dist/src/alert/alert.d.ts +43 -0
- package/dist/src/alert/index.d.ts +1 -0
- package/dist/src/app-bar/app-bar.d.ts +92 -0
- package/dist/src/app-bar/index.d.ts +1 -0
- package/dist/src/avatar/avatar.d.ts +2 -0
- package/dist/src/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/src/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +1 -0
- package/dist/src/button/ButtonTypes.d.ts +5 -0
- package/dist/src/button/base-button/base-button.d.ts +18 -0
- package/dist/src/button/button/button.d.ts +29 -37
- package/dist/src/button/button-group/button-group.d.ts +17 -18
- package/dist/src/{fab → button/fab}/fab.d.ts +8 -26
- package/dist/src/button/icon-button/icon-button.d.ts +20 -27
- package/dist/src/button/index.d.ts +1 -0
- package/dist/src/calendar/calendar.d.ts +1 -1
- package/dist/src/canvas/canvas.d.ts +1 -1
- package/dist/src/card/card.d.ts +5 -6
- package/dist/src/chart-bar/chart-bar.d.ts +1 -1
- package/dist/src/chart-bar/chart-stacked-bar.d.ts +1 -1
- package/dist/src/checkbox/checkbox.d.ts +5 -1
- package/dist/src/chip/chip/chip.d.ts +9 -8
- package/dist/src/container/container.d.ts +5 -1
- package/dist/src/divider/divider.d.ts +2 -0
- package/dist/src/empty-state/empty-state.d.ts +1 -0
- package/dist/src/field/field.d.ts +19 -1
- package/dist/src/focus-ring/focus-ring.d.ts +3 -7
- package/dist/src/html-editor/html-editor.d.ts +1 -1
- package/dist/src/icon/icon.d.ts +9 -4
- package/dist/src/image/image.d.ts +4 -0
- package/dist/src/index.d.ts +7 -6
- package/dist/src/item/item.d.ts +20 -29
- package/dist/src/link/link.d.ts +1 -1
- package/dist/src/list/list-item.d.ts +7 -5
- package/dist/src/list/list.d.ts +3 -2
- package/dist/src/menu/menu/menu.d.ts +14 -0
- package/dist/src/menu/menu-item/menu-item.d.ts +10 -2
- package/dist/src/modal/modal.d.ts +1 -1
- package/dist/src/navigation-rail/navigation-rail-item.d.ts +5 -4
- package/dist/src/navigation-rail/navigation-rail.d.ts +1 -1
- package/dist/src/radio/radio.d.ts +5 -0
- package/dist/src/ripple/ripple.d.ts +10 -1
- package/dist/src/search/search.d.ts +1 -1
- package/dist/src/segmented-button/segmented-button-group.d.ts +2 -2
- package/dist/src/segmented-button/segmented-button.d.ts +2 -0
- package/dist/src/side-sheet/side-sheet.d.ts +1 -1
- package/dist/src/skeleton/skeleton.d.ts +1 -0
- package/dist/src/slider/slider.d.ts +1 -0
- package/dist/src/snackbar/snackbar.d.ts +12 -2
- package/dist/src/svg/svg.d.ts +5 -0
- package/dist/src/table/table.d.ts +5 -0
- package/dist/src/tabs/tab.d.ts +2 -7
- package/dist/src/toolbar/toolbar.d.ts +2 -2
- package/dist/{state-DwbEjqVk.js → state-DkTK9EGF.js} +2 -2
- package/dist/{state-DwbEjqVk.js.map → state-DkTK9EGF.js.map} +1 -1
- package/dist/{style-map-DVmWOuYy.js → style-map-BQD5Et1D.js} +2 -2
- package/dist/{style-map-DVmWOuYy.js.map → style-map-BQD5Et1D.js.map} +1 -1
- package/dist/sub-menu.js +241 -0
- package/dist/sub-menu.js.map +1 -0
- package/dist/svg.js +273 -0
- package/dist/svg.js.map +1 -0
- package/dist/tab-group.js +188 -0
- package/dist/tab-group.js.map +1 -0
- package/dist/tab-panel.js +61 -0
- package/dist/tab-panel.js.map +1 -0
- package/dist/tab.js +658 -0
- package/dist/tab.js.map +1 -0
- package/dist/table.js +620 -0
- package/dist/table.js.map +1 -0
- package/dist/tabs.js +240 -0
- package/dist/tabs.js.map +1 -0
- package/dist/throttle-C7ZAPqtu.js +24 -0
- package/dist/throttle-C7ZAPqtu.js.map +1 -0
- package/dist/toolbar.js +9 -5
- package/dist/toolbar.js.map +1 -1
- package/dist/tooltip.js +270 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{unsafe-html-BsGUjx94.js → unsafe-html-Ct0N2_UU.js} +2 -2
- package/dist/{unsafe-html-BsGUjx94.js.map → unsafe-html-Ct0N2_UU.js.map} +1 -1
- package/dist/when-DEJm_QN9.js +9 -0
- package/dist/when-DEJm_QN9.js.map +1 -0
- package/package.json +4 -2
- package/readme.md +3 -3
- package/scss/mixin.scss +8 -6
- package/src/__internal/aria/aria.ts +293 -0
- package/src/__internal/aria/delegate.ts +206 -0
- package/src/__internal/events/dispatch-hooks.ts +182 -0
- package/src/__internal/mixins/element-internals.ts +73 -0
- package/src/__internal/mixins/form-associated.ts +295 -0
- package/src/__internal/mixins/form-submitter.ts +133 -0
- package/src/__internal/mixins/hyperlink.ts +71 -0
- package/src/__internal/mixins/mixin.ts +58 -0
- package/src/{__utils → __internal/utils}/observe-slot-change.ts +2 -5
- package/src/accordion/accordion-item.ts +6 -2
- package/src/accordion/accordion.ts +4 -2
- package/src/accordion/demo/index.html +95 -90
- package/src/alert/alert.scss +82 -0
- package/src/{banner/banner.ts → alert/alert.ts} +22 -22
- package/src/alert/index.ts +1 -0
- package/src/app-bar/app-bar-colors.scss +17 -0
- package/src/app-bar/app-bar.scss +165 -0
- package/src/app-bar/app-bar.ts +155 -0
- package/src/app-bar/index.ts +1 -0
- package/src/avatar/avatar.ts +4 -0
- package/src/badge/badge.ts +2 -0
- package/src/bottom-sheet/bottom-sheet.ts +8 -2
- package/src/breadcrumb/breadcrumb/breadcrumb.ts +2 -0
- package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +3 -0
- package/src/button/ButtonTypes.ts +17 -0
- package/src/button/base-button/base-button.ts +85 -0
- package/src/button/button/button-base.scss +306 -0
- package/src/button/button/button-colors.scss +27 -32
- package/src/button/button/button-layers.scss +126 -39
- package/src/button/button/button-shapes.scss +73 -0
- package/src/button/button/button.scss +12 -286
- package/src/button/button/button.ts +174 -194
- package/src/button/button-group/button-group.scss +43 -36
- package/src/button/button-group/button-group.ts +26 -137
- package/src/{fab → button/fab}/fab-colors.scss +0 -10
- package/src/button/fab/fab-sizes.scss +37 -0
- package/src/button/fab/fab.scss +172 -0
- package/src/{fab → button/fab}/fab.ts +69 -105
- package/src/button/icon-button/icon-button-sizes.scss +18 -3
- package/src/button/icon-button/icon-button.scss +5 -0
- package/src/button/icon-button/icon-button.ts +111 -141
- package/src/button/index.ts +7 -0
- package/src/calendar/calendar.ts +2 -2
- package/src/canvas/canvas.ts +2 -2
- package/src/card/card.scss +3 -3
- package/src/card/card.ts +20 -40
- package/src/chart-bar/chart-bar.ts +2 -2
- package/src/chart-bar/chart-stacked-bar.ts +2 -2
- package/src/checkbox/checkbox.ts +12 -4
- package/src/chip/chip/chip.scss +1 -1
- package/src/chip/chip/chip.ts +35 -55
- package/src/chip/demo/index.html +30 -26
- package/src/code-editor/code-editor.ts +68 -58
- package/src/code-editor/demo/index.html +32 -27
- package/src/code-highlighter/code-highlighter.ts +1 -1
- package/src/code-highlighter/demo/index.html +24 -21
- package/src/container/container.ts +8 -2
- package/src/date-picker/date-picker.ts +2 -3
- package/src/divider/divider.ts +5 -1
- package/src/dropdown-button/demo/index.html +106 -101
- package/src/dropdown-button/dropdown-button.ts +1 -1
- package/src/elevation/elevation.ts +2 -0
- package/src/empty-state/empty-state.ts +3 -0
- package/src/field/field.ts +52 -33
- package/src/focus-ring/focus-ring.ts +5 -7
- package/src/html-editor/html-editor.ts +28 -16
- package/src/icon/datasource.ts +1 -1
- package/src/icon/icon.ts +27 -15
- package/src/image/image.ts +18 -6
- package/src/index.ts +24 -6
- package/src/input/input.ts +2 -2
- package/src/item/item.scss +126 -162
- package/src/item/item.ts +70 -323
- package/src/link/link.ts +3 -1
- package/src/list/list-item.scss +43 -31
- package/src/list/list-item.ts +79 -75
- package/src/list/list.scss +1 -13
- package/src/list/list.ts +6 -3
- package/src/{peacock-loader.ts → loader.ts} +91 -79
- package/src/menu/menu/menu.scss +14 -11
- package/src/menu/menu/menu.ts +20 -8
- package/src/menu/menu-item/menu-item.scss +35 -3
- package/src/menu/menu-item/menu-item.ts +40 -34
- package/src/menu/sub-menu/sub-menu.ts +3 -0
- package/src/modal/modal.ts +2 -2
- package/src/navigation-rail/navigation-rail-item.ts +21 -36
- package/src/navigation-rail/navigation-rail.scss +1 -0
- package/src/navigation-rail/navigation-rail.ts +4 -2
- package/src/number-field/number-field.ts +2 -2
- package/src/pagination/pagination.ts +2 -0
- package/src/popover/popover.ts +3 -3
- package/src/radio/radio.ts +13 -5
- package/src/ripple/ripple.ts +14 -1
- package/src/search/search.ts +3 -3
- package/src/segmented-button/segmented-button-group.ts +8 -4
- package/src/segmented-button/segmented-button.ts +4 -0
- package/src/select/option.ts +2 -0
- package/src/side-sheet/side-sheet.ts +2 -2
- package/src/sidebar-menu/sidebar-menu-item.ts +3 -2
- package/src/skeleton/skeleton.ts +3 -0
- package/src/slider/slider.ts +4 -1
- package/src/snackbar/snackbar.ts +40 -25
- package/src/spinner/spinner.ts +2 -0
- package/src/svg/svg.ts +27 -9
- package/src/switch/switch.ts +1 -1
- package/src/table/table.ts +16 -3
- package/src/tabs/demo/index.html +79 -79
- package/src/tabs/tab-group.ts +2 -0
- package/src/tabs/tab-panel.ts +2 -0
- package/src/tabs/tab.scss +4 -4
- package/src/tabs/tab.ts +16 -39
- package/src/tabs/tabs.ts +2 -0
- package/src/textarea/textarea.ts +2 -2
- package/src/time-picker/time-picker.ts +2 -2
- package/src/toolbar/toolbar.ts +3 -3
- package/src/tooltip/tooltip.ts +14 -8
- package/src/url-field/url-field.ts +2 -3
- package/dist/ButtonConstants-D06bY4uy.js +0 -114
- package/dist/ButtonConstants-D06bY4uy.js.map +0 -1
- package/dist/NativeHyperlinkMixin-DrYXyfMQ.js.map +0 -1
- package/dist/banner.js +0 -186
- package/dist/banner.js.map +0 -1
- package/dist/button-colors-D7sJyPy8.js +0 -586
- package/dist/button-colors-D7sJyPy8.js.map +0 -1
- package/dist/icon-CueRR7wx.js +0 -260
- package/dist/icon-CueRR7wx.js.map +0 -1
- package/dist/icon-button-CAzYr_qr.js +0 -318
- package/dist/icon-button-CAzYr_qr.js.map +0 -1
- package/dist/navigation-rail-CM_svs5_.js +0 -14184
- package/dist/navigation-rail-CM_svs5_.js.map +0 -1
- package/dist/observe-slot-change-D8Xg-kSS.js.map +0 -1
- package/dist/peacock-loader.js.map +0 -1
- package/dist/popover-DUPmMVWS.js.map +0 -1
- package/dist/query-QBcUV-L_.js +0 -15
- package/dist/query-QBcUV-L_.js.map +0 -1
- package/dist/src/banner/banner.d.ts +0 -43
- package/dist/src/banner/index.d.ts +0 -1
- package/dist/src/button/GroupButtonInterface.d.ts +0 -4
- package/src/banner/banner.scss +0 -82
- package/src/banner/index.ts +0 -1
- package/src/button/GroupButtonInterface.ts +0 -4
- package/src/button/button/only-button.scss +0 -13
- package/src/fab/fab-sizes.scss +0 -37
- package/src/fab/fab.scss +0 -143
- /package/dist/src/{__controllers → __internal/controllers}/attachable-controller.d.ts +0 -0
- /package/dist/src/{__controllers → __internal/controllers}/floating-controller.d.ts +0 -0
- /package/dist/src/{__directive → __internal/directive}/spread.d.ts +0 -0
- /package/dist/src/{__mixins → __internal/mixins}/MixinConstructor.d.ts +0 -0
- /package/dist/src/{__mixins → __internal/mixins}/NativeButtonMixin.d.ts +0 -0
- /package/dist/src/{__mixins → __internal/mixins}/NativeHyperlinkMixin.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/cache-fetch.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/copy-to-clipboard.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/dispatch-event-utils.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/is-dark-mode.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/is-in-viewport.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/is-link.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/observe-theme-change.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/sanitize-svg.d.ts +0 -0
- /package/dist/src/{__utils → __internal/utils}/throttle.d.ts +0 -0
- /package/dist/src/{fab → button/fab}/index.d.ts +0 -0
- /package/dist/src/{peacock-loader.d.ts → loader.d.ts} +0 -0
- /package/dist/test/{banner.test.d.ts → alert.test.d.ts} +0 -0
- /package/src/{__controllers → __internal/controllers}/attachable-controller.ts +0 -0
- /package/src/{__controllers → __internal/controllers}/floating-controller.ts +0 -0
- /package/src/{__directive → __internal/directive}/spread.ts +0 -0
- /package/src/{__mixins → __internal/mixins}/MixinConstructor.ts +0 -0
- /package/src/{__mixins → __internal/mixins}/NativeButtonMixin.ts +0 -0
- /package/src/{__mixins → __internal/mixins}/NativeHyperlinkMixin.ts +0 -0
- /package/src/{__mixins → __internal/mixins}/README.md +0 -0
- /package/src/{__utils → __internal/utils}/cache-fetch.ts +0 -0
- /package/src/{__utils → __internal/utils}/copy-to-clipboard.ts +0 -0
- /package/src/{__utils → __internal/utils}/dispatch-event-utils.ts +0 -0
- /package/src/{__utils → __internal/utils}/is-dark-mode.ts +0 -0
- /package/src/{__utils → __internal/utils}/is-in-viewport.ts +0 -0
- /package/src/{__utils → __internal/utils}/is-link.ts +0 -0
- /package/src/{__utils → __internal/utils}/observe-theme-change.ts +0 -0
- /package/src/{__utils → __internal/utils}/sanitize-svg.ts +0 -0
- /package/src/{__utils → __internal/utils}/throttle.ts +0 -0
- /package/src/{fab → button/fab}/index.ts +0 -0
package/dist/button.js
CHANGED
|
@@ -1,27 +1,771 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as n$1 } from './property-
|
|
3
|
-
import { e } from './
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { i, A, b, _ as __decorate, I as IndividualComponent, a as i$1 } from './IndividualComponent-Bdwyrvd6.js';
|
|
2
|
+
import { n as n$1 } from './property-B49QQ8pS.js';
|
|
3
|
+
import { e as e$1 } from './query-CHb9Ft_d.js';
|
|
4
|
+
import { e } from './class-map-DG7CA1et.js';
|
|
5
|
+
import { o } from './if-defined-BXZpRQ4P.js';
|
|
6
|
+
import { n } from './when-DEJm_QN9.js';
|
|
7
|
+
import { i as isLink } from './is-link-Dk2OV3PM.js';
|
|
8
|
+
import { o as observerSlotChangesWithCallback } from './observe-slot-change-DPxaZrZF.js';
|
|
8
9
|
import { i as isActivationClick, d as dispatchActivationClick } from './dispatch-event-utils-CuEqjlPT.js';
|
|
10
|
+
import { D as DISABLED_REASON_ID } from './ButtonConstants-CahP2_NA.js';
|
|
11
|
+
import { m as mixinDelegatesAria, a as mixinElementInternals } from './element-internals-2CMts_0M.js';
|
|
12
|
+
import { m as mixinFormSubmitter, a as mixinFormAssociated } from './form-associated-BXADnjOB.js';
|
|
13
|
+
import { m as mixinBaseButton, a as mixinHyperlink } from './hyperlink-DLvb6MXE.js';
|
|
14
|
+
import './base-Cl6v8-BZ.js';
|
|
9
15
|
import './directive-ZPhl09Yt.js';
|
|
16
|
+
import './throttle-C7ZAPqtu.js';
|
|
10
17
|
|
|
11
|
-
var css_248z
|
|
12
|
-
:
|
|
13
|
-
|
|
18
|
+
var css_248z = i`.button {
|
|
19
|
+
transition-property: inset, width, height, transform, opacity;
|
|
20
|
+
transition-duration: 200ms;
|
|
21
|
+
transition-timing-function: var(--easing-standard);
|
|
22
|
+
will-change: inset, transform, opacity;
|
|
14
23
|
}
|
|
15
24
|
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
.background {
|
|
26
|
+
display: block;
|
|
27
|
+
position: absolute;
|
|
28
|
+
inset: 0;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
background-color: var(--private-button-container-color);
|
|
31
|
+
opacity: var(--private-button-container-opacity, 1);
|
|
32
|
+
border-start-start-radius: var(--private-button-container-shape-start-start, var(--private-button-container-shape));
|
|
33
|
+
border-start-end-radius: var(--private-button-container-shape-start-end, var(--private-button-container-shape));
|
|
34
|
+
border-end-start-radius: var(--private-button-container-shape-end-start, var(--private-button-container-shape));
|
|
35
|
+
border-end-end-radius: var(--private-button-container-shape-end-end, var(--private-button-container-shape));
|
|
36
|
+
corner-shape: var(--private-button-container-shape-variant);
|
|
37
|
+
transition-property: inset, width, height, transform, opacity;
|
|
38
|
+
transition-duration: 200ms;
|
|
39
|
+
transition-timing-function: var(--easing-standard);
|
|
40
|
+
will-change: inset, transform, opacity;
|
|
18
41
|
}
|
|
19
42
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
43
|
+
.neo-background {
|
|
44
|
+
display: block;
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset: 0;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
background: var(--color-inverse-surface);
|
|
49
|
+
transform: translateX(0.25rem) translateY(0.25rem);
|
|
50
|
+
border-start-start-radius: var(--private-button-container-shape-start-start, var(--private-button-container-shape));
|
|
51
|
+
border-start-end-radius: var(--private-button-container-shape-start-end, var(--private-button-container-shape));
|
|
52
|
+
border-end-start-radius: var(--private-button-container-shape-end-start, var(--private-button-container-shape));
|
|
53
|
+
border-end-end-radius: var(--private-button-container-shape-end-end, var(--private-button-container-shape));
|
|
54
|
+
corner-shape: var(--private-button-container-shape-variant);
|
|
55
|
+
transition-property: inset, width, height, transform, opacity;
|
|
56
|
+
transition-duration: 200ms;
|
|
57
|
+
transition-timing-function: var(--easing-standard);
|
|
58
|
+
will-change: inset, transform, opacity;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.focus-ring {
|
|
62
|
+
z-index: 2;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
--focus-ring-container-shape-start-start: var(
|
|
65
|
+
--private-button-container-shape-start-start,
|
|
66
|
+
var(--private-button-container-shape)
|
|
67
|
+
);
|
|
68
|
+
--focus-ring-container-shape-start-end: var(
|
|
69
|
+
--private-button-container-shape-start-end,
|
|
70
|
+
var(--private-button-container-shape)
|
|
71
|
+
);
|
|
72
|
+
--focus-ring-container-shape-end-start: var(
|
|
73
|
+
--private-button-container-shape-end-start,
|
|
74
|
+
var(--private-button-container-shape)
|
|
75
|
+
);
|
|
76
|
+
--focus-ring-container-shape-end-end: var(
|
|
77
|
+
--private-button-container-shape-end-end,
|
|
78
|
+
var(--private-button-container-shape)
|
|
79
|
+
);
|
|
80
|
+
--focus-ring-container-shape-variant: var(
|
|
81
|
+
--private-button-container-shape-variant
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ripple {
|
|
86
|
+
border-start-start-radius: var(--private-button-container-shape-start-start, var(--private-button-container-shape));
|
|
87
|
+
border-start-end-radius: var(--private-button-container-shape-start-end, var(--private-button-container-shape));
|
|
88
|
+
border-end-start-radius: var(--private-button-container-shape-end-start, var(--private-button-container-shape));
|
|
89
|
+
border-end-end-radius: var(--private-button-container-shape-end-end, var(--private-button-container-shape));
|
|
90
|
+
corner-shape: var(--private-button-container-shape-variant);
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
--ripple-state-opacity: var(--private-button-state-opacity, 0);
|
|
93
|
+
--ripple-pressed-color: var(--private-button-state-color);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.skeleton {
|
|
97
|
+
display: block;
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset: 0;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
z-index: 2;
|
|
102
|
+
--skeleton-container-shape-start-start: var(
|
|
103
|
+
--private-button-container-shape-start-start,
|
|
104
|
+
var(--private-button-container-shape)
|
|
105
|
+
);
|
|
106
|
+
--skeleton-container-shape-start-end: var(
|
|
107
|
+
--private-button-container-shape-start-end,
|
|
108
|
+
var(--private-button-container-shape)
|
|
109
|
+
);
|
|
110
|
+
--skeleton-container-shape-end-start: var(
|
|
111
|
+
--private-button-container-shape-end-start,
|
|
112
|
+
var(--private-button-container-shape)
|
|
113
|
+
);
|
|
114
|
+
--skeleton-container-shape-end-end: var(
|
|
115
|
+
--private-button-container-shape-end-end,
|
|
116
|
+
var(--private-button-container-shape)
|
|
117
|
+
);
|
|
118
|
+
--skeleton-container-shape-variant: var(
|
|
119
|
+
--private-button-container-shape-variant
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.elevation {
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
transition-duration: 280ms;
|
|
126
|
+
--elevation-container-shape-start-start: var(
|
|
127
|
+
--private-button-container-shape-start-start,
|
|
128
|
+
var(--private-button-container-shape)
|
|
129
|
+
);
|
|
130
|
+
--elevation-container-shape-start-end: var(
|
|
131
|
+
--private-button-container-shape-start-end,
|
|
132
|
+
var(--private-button-container-shape)
|
|
133
|
+
);
|
|
134
|
+
--elevation-container-shape-end-start: var(
|
|
135
|
+
--private-button-container-shape-end-start,
|
|
136
|
+
var(--private-button-container-shape)
|
|
137
|
+
);
|
|
138
|
+
--elevation-container-shape-end-end: var(
|
|
139
|
+
--private-button-container-shape-end-end,
|
|
140
|
+
var(--private-button-container-shape)
|
|
141
|
+
);
|
|
142
|
+
--elevation-container-shape-variant: var(
|
|
143
|
+
--private-button-container-shape-variant
|
|
144
|
+
);
|
|
145
|
+
--elevation-level: var(--private-button-container-elevation-level);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.outline {
|
|
149
|
+
display: block;
|
|
150
|
+
position: absolute;
|
|
151
|
+
inset: 0;
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
z-index: 0;
|
|
154
|
+
border: var(--private-button-outline-width) solid var(--private-button-outline-color);
|
|
155
|
+
opacity: var(--private-button-outline-opacity, 1);
|
|
156
|
+
border-start-start-radius: var(--private-button-container-shape-start-start, var(--private-button-container-shape));
|
|
157
|
+
border-start-end-radius: var(--private-button-container-shape-start-end, var(--private-button-container-shape));
|
|
158
|
+
border-end-start-radius: var(--private-button-container-shape-end-start, var(--private-button-container-shape));
|
|
159
|
+
border-end-end-radius: var(--private-button-container-shape-end-end, var(--private-button-container-shape));
|
|
160
|
+
corner-shape: var(--private-button-container-shape-variant);
|
|
161
|
+
transition-property: inset, width, height, transform, opacity;
|
|
162
|
+
transition-duration: 200ms;
|
|
163
|
+
transition-timing-function: var(--easing-standard);
|
|
164
|
+
will-change: inset, transform, opacity;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.tooltip {
|
|
168
|
+
z-index: 3;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
* {
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.screen-reader-only {
|
|
176
|
+
display: none !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[hidden] {
|
|
180
|
+
display: none !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:host {
|
|
184
|
+
--button-icon-size: unset;
|
|
185
|
+
--button-container-padding: unset;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:host {
|
|
189
|
+
position: relative;
|
|
190
|
+
display: inline-flex;
|
|
191
|
+
min-height: var(--button-height);
|
|
192
|
+
--private-button-container-shape-start-start: var(
|
|
193
|
+
--button-container-shape-start-start,
|
|
194
|
+
var(--button-container-shape)
|
|
195
|
+
);
|
|
196
|
+
--private-button-container-shape-start-end: var(
|
|
197
|
+
--button-container-shape-start-end,
|
|
198
|
+
var(--button-container-shape)
|
|
199
|
+
);
|
|
200
|
+
--private-button-container-shape-end-start: var(
|
|
201
|
+
--button-container-shape-end-start,
|
|
202
|
+
var(--button-container-shape)
|
|
203
|
+
);
|
|
204
|
+
--private-button-container-shape-end-end: var(
|
|
205
|
+
--button-container-shape-end-end,
|
|
206
|
+
var(--button-container-shape)
|
|
207
|
+
);
|
|
208
|
+
--private-button-container-shape-variant: var(
|
|
209
|
+
--button-container-shape-variant
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/*
|
|
214
|
+
* Reset native button/link styles
|
|
215
|
+
*/
|
|
216
|
+
.native-button {
|
|
217
|
+
background: transparent;
|
|
218
|
+
border: none;
|
|
219
|
+
appearance: none;
|
|
220
|
+
margin: 0;
|
|
221
|
+
outline: none;
|
|
222
|
+
padding: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.native-link {
|
|
226
|
+
text-decoration: none;
|
|
227
|
+
color: inherit;
|
|
228
|
+
cursor: pointer;
|
|
229
|
+
}
|
|
230
|
+
.native-link:link, .native-link:visited, .native-link:hover, .native-link:active {
|
|
231
|
+
text-decoration: none;
|
|
232
|
+
color: inherit;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.button {
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
height: var(--button-height);
|
|
240
|
+
padding: 0 var(--button-container-padding, var(--private-button-container-padding));
|
|
241
|
+
width: 100%;
|
|
242
|
+
z-index: 0;
|
|
243
|
+
}
|
|
244
|
+
.button .label {
|
|
245
|
+
font-family: var(--font-family-sans) !important;
|
|
246
|
+
font-size: var(--private-button-font-size);
|
|
247
|
+
font-weight: var(--private-button-font-weight);
|
|
248
|
+
line-height: var(--private-button-line-height);
|
|
249
|
+
letter-spacing: var(--private-button-letter-spacing);
|
|
250
|
+
color: var(--private-button-label-text-color);
|
|
251
|
+
--icon-size: var(--button-icon-size, var(--private-button-icon-size));
|
|
252
|
+
--icon-color: var(--private-button-label-text-color);
|
|
253
|
+
pointer-events: none;
|
|
254
|
+
}
|
|
255
|
+
.button .touch {
|
|
256
|
+
position: absolute;
|
|
257
|
+
min-height: 2.5rem;
|
|
258
|
+
min-width: 2.5rem;
|
|
259
|
+
height: 100%;
|
|
260
|
+
width: 100%;
|
|
261
|
+
top: 50%;
|
|
262
|
+
left: 50%;
|
|
263
|
+
transform: translate(-50%, -50%);
|
|
264
|
+
cursor: var(--private-button-cursor, pointer);
|
|
265
|
+
}
|
|
266
|
+
.button {
|
|
267
|
+
/* make the icon slot itself collapsible so removal animates smoothly */
|
|
268
|
+
}
|
|
269
|
+
.button .icon-slot {
|
|
270
|
+
display: inline-flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
pointer-events: none;
|
|
274
|
+
}
|
|
275
|
+
.button .icon-slot::slotted(*) {
|
|
276
|
+
--icon-size: var(--button-icon-size, var(--private-button-icon-size));
|
|
277
|
+
--icon-color: var(--private-button-label-text-color);
|
|
278
|
+
opacity: var(--private-button-label-text-opacity, 1);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
:host(:not([skeleton])) .skeleton {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:host([skeleton]) .background {
|
|
286
|
+
display: none;
|
|
287
|
+
}
|
|
288
|
+
:host([skeleton]) .ripple {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Button variant definitions
|
|
294
|
+
*/
|
|
295
|
+
:host([variant=elevated]) {
|
|
296
|
+
--private-button-container-color: var(--elevated-button-container-color);
|
|
297
|
+
--private-button-label-text-color: var(--elevated-button-label-text-color);
|
|
298
|
+
--private-button-container-elevation-level: 1;
|
|
299
|
+
--private-button-state-color: var(--private-button-label-text-color);
|
|
300
|
+
}
|
|
301
|
+
:host([variant=elevated]):host(:hover:not([disabled], [soft-disabled], [skeleton])) {
|
|
302
|
+
--private-button-container-elevation-level: 2;
|
|
303
|
+
--private-button-state-opacity: 0.08;
|
|
304
|
+
}
|
|
305
|
+
:host([variant=elevated]):host(:active:not([disabled], [soft-disabled], [skeleton])) {
|
|
306
|
+
--private-button-container-elevation-level: 1;
|
|
307
|
+
--private-button-state-opacity: 0.12;
|
|
308
|
+
}
|
|
309
|
+
:host([variant=elevated]):host([disabled]), :host([variant=elevated]):host([soft-disabled]) {
|
|
310
|
+
--private-button-cursor: not-allowed;
|
|
311
|
+
--private-button-container-color: var(--color-on-surface);
|
|
312
|
+
--private-button-container-opacity: 0.1;
|
|
313
|
+
--private-button-label-text-color: var(--color-on-surface);
|
|
314
|
+
--private-button-label-text-opacity: 0.38;
|
|
315
|
+
}
|
|
316
|
+
:host([variant=elevated]):host([disabled]) .ripple, :host([variant=elevated]):host([soft-disabled]) .ripple {
|
|
317
|
+
display: none;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:host([variant=filled]) {
|
|
321
|
+
--private-button-container-color: var(--filled-button-container-color);
|
|
322
|
+
--private-button-label-text-color: var(--filled-button-label-text-color);
|
|
323
|
+
--private-button-state-color: var(--private-button-label-text-color);
|
|
324
|
+
}
|
|
325
|
+
:host([variant=filled]):host(:hover:not([disabled], [soft-disabled], [skeleton])) {
|
|
326
|
+
--private-button-container-elevation-level: 1;
|
|
327
|
+
--private-button-state-opacity: 0.08;
|
|
328
|
+
}
|
|
329
|
+
:host([variant=filled]):host(:active:not([disabled], [soft-disabled], [skeleton])) {
|
|
330
|
+
--private-button-container-elevation-level: 0;
|
|
331
|
+
--private-button-state-opacity: 0.1;
|
|
332
|
+
}
|
|
333
|
+
:host([variant=filled]):host([disabled]), :host([variant=filled]):host([soft-disabled]) {
|
|
334
|
+
--private-button-cursor: not-allowed;
|
|
335
|
+
--private-button-container-color: var(--color-on-surface);
|
|
336
|
+
--private-button-container-opacity: 0.1;
|
|
337
|
+
--private-button-label-text-color: var(--color-on-surface);
|
|
338
|
+
--private-button-label-text-opacity: 0.38;
|
|
339
|
+
}
|
|
340
|
+
:host([variant=filled]):host([disabled]) .ripple, :host([variant=filled]):host([soft-disabled]) .ripple {
|
|
341
|
+
display: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
:host([variant=tonal]) {
|
|
345
|
+
--private-button-container-color: var(--tonal-button-container-color);
|
|
346
|
+
--private-button-label-text-color: var(--tonal-button-label-text-color);
|
|
347
|
+
--private-button-state-color: var(--private-button-label-text-color);
|
|
348
|
+
}
|
|
349
|
+
:host([variant=tonal]):host(:hover:not([disabled], [soft-disabled], [skeleton])) {
|
|
350
|
+
--private-button-container-elevation-level: 1;
|
|
351
|
+
--private-button-state-opacity: 0.08;
|
|
352
|
+
}
|
|
353
|
+
:host([variant=tonal]):host(:active:not([disabled], [soft-disabled], [skeleton])) {
|
|
354
|
+
--private-button-container-elevation-level: 0;
|
|
355
|
+
--private-button-state-opacity: 0.12;
|
|
356
|
+
}
|
|
357
|
+
:host([variant=tonal]):host([disabled]), :host([variant=tonal]):host([soft-disabled]) {
|
|
358
|
+
--private-button-cursor: not-allowed;
|
|
359
|
+
--private-button-container-color: var(--color-on-surface);
|
|
360
|
+
--private-button-container-opacity: 0.1;
|
|
361
|
+
--private-button-label-text-color: var(--color-on-surface);
|
|
362
|
+
--private-button-label-text-opacity: 0.38;
|
|
363
|
+
}
|
|
364
|
+
:host([variant=tonal]):host([disabled]) .ripple, :host([variant=tonal]):host([soft-disabled]) .ripple {
|
|
365
|
+
display: none;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
:host([variant=outlined]) {
|
|
369
|
+
--private-button-outline-width: var(
|
|
370
|
+
--outlined-button-outline-width,
|
|
371
|
+
0.0675rem
|
|
372
|
+
);
|
|
373
|
+
--private-button-container-color: var(--outlined-button-container-color);
|
|
374
|
+
--private-button-outline-color: var(--outlined-button-outline-color);
|
|
375
|
+
--private-button-label-text-color: var(--outlined-button-label-text-color);
|
|
376
|
+
--private-button-state-color: var(--private-button-label-text-color);
|
|
377
|
+
}
|
|
378
|
+
:host([variant=outlined]):host(:hover:not([disabled], [soft-disabled], [skeleton])) {
|
|
379
|
+
--private-button-state-opacity: 0.08;
|
|
380
|
+
}
|
|
381
|
+
:host([variant=outlined]):host(:active:not([disabled], [soft-disabled], [skeleton])) {
|
|
382
|
+
--private-button-state-opacity: 0.12;
|
|
383
|
+
}
|
|
384
|
+
:host([variant=outlined]):host([disabled]), :host([variant=outlined]):host([soft-disabled]) {
|
|
385
|
+
--private-button-cursor: not-allowed;
|
|
386
|
+
--private-button-outline-color: var(--color-on-surface);
|
|
387
|
+
--private-button-label-text-color: var(--color-on-surface);
|
|
388
|
+
--private-button-label-text-opacity: 0.38;
|
|
389
|
+
--private-button-outline-opacity: 0.12;
|
|
390
|
+
}
|
|
391
|
+
:host([variant=outlined]):host([disabled]) .ripple, :host([variant=outlined]):host([soft-disabled]) .ripple {
|
|
392
|
+
display: none;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
:host([variant=text]) {
|
|
396
|
+
--private-button-label-text-color: var(--text-button-label-text-color);
|
|
397
|
+
--private-button-state-color: var(--private-button-label-text-color);
|
|
398
|
+
}
|
|
399
|
+
:host([variant=text]):host(:hover:not([disabled], [soft-disabled], [skeleton])) {
|
|
400
|
+
--private-button-state-opacity: 0.08;
|
|
401
|
+
}
|
|
402
|
+
:host([variant=text]):host(:active:not([disabled], [soft-disabled], [skeleton])) {
|
|
403
|
+
--private-button-state-opacity: 0.12;
|
|
404
|
+
}
|
|
405
|
+
:host([variant=text]):host([disabled]), :host([variant=text]):host([soft-disabled]) {
|
|
406
|
+
--private-button-cursor: not-allowed;
|
|
407
|
+
--private-button-label-text-color: var(--color-on-surface);
|
|
408
|
+
--private-button-label-text-opacity: 0.38;
|
|
409
|
+
}
|
|
410
|
+
:host([variant=text]):host([disabled]) .ripple, :host([variant=text]):host([soft-disabled]) .ripple {
|
|
411
|
+
display: none;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
:host([variant=neo]) {
|
|
415
|
+
--private-button-container-color: var(--neo-button-container-color);
|
|
416
|
+
--private-button-label-text-color: var(--neo-button-label-text-color);
|
|
417
|
+
--private-button-outline-width: var(
|
|
418
|
+
--outlined-button-outline-width,
|
|
419
|
+
0.125rem
|
|
420
|
+
);
|
|
421
|
+
--private-button-outline-color: var(--color-inverse-surface);
|
|
422
|
+
}
|
|
423
|
+
:host([variant=neo]) .focus-ring {
|
|
424
|
+
--focus-ring-color: var(--color-primary-container);
|
|
425
|
+
--focus-ring-inset: -2px;
|
|
426
|
+
}
|
|
427
|
+
:host([variant=neo]) .ripple {
|
|
428
|
+
display: none;
|
|
429
|
+
}
|
|
430
|
+
:host([variant=neo]):host(:active:not([disabled], [soft-disabled], [skeleton])) .background,
|
|
431
|
+
:host([variant=neo]):host(:active:not([disabled], [soft-disabled], [skeleton])) .button,
|
|
432
|
+
:host([variant=neo]):host(:active:not([disabled], [soft-disabled], [skeleton])) .outline,
|
|
433
|
+
:host([variant=neo]):host(:active:not([disabled], [soft-disabled], [skeleton])) .focus-ring {
|
|
434
|
+
transform: translateX(0.25rem) translateY(0.25rem);
|
|
435
|
+
}
|
|
436
|
+
:host([variant=neo]):host([disabled]) {
|
|
437
|
+
--private-button-container-color: var(--color-on-surface);
|
|
438
|
+
--private-button-container-opacity: 0.1;
|
|
439
|
+
--private-button-label-text-color: var(--color-on-surface);
|
|
440
|
+
--private-button-label-text-opacity: 0.38;
|
|
441
|
+
--private-button-outline-opacity: 0.12;
|
|
442
|
+
}
|
|
443
|
+
:host([variant=neo]):host([disabled]) .ripple {
|
|
444
|
+
display: none;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
:host([block]) {
|
|
448
|
+
width: 100%;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* -- Square Shape -- */
|
|
452
|
+
:host([shape=square]:not([selected])):host {
|
|
453
|
+
--button-container-shape-variant: squircle;
|
|
454
|
+
}
|
|
455
|
+
:host([shape=square]:not([selected])):host([size=xs]), :host([shape=square]:not([selected])):host([size=extra-small]), :host([shape=square]:not([selected])):host([size=sm]), :host([shape=square]:not([selected])):host([size=small]) {
|
|
456
|
+
--button-container-shape: var(--shape-corner-medium);
|
|
457
|
+
}
|
|
458
|
+
:host([shape=square]:not([selected])):host([size=xs]:active), :host([shape=square]:not([selected])):host([size=extra-small]:active), :host([shape=square]:not([selected])):host([size=sm]:active), :host([shape=square]:not([selected])):host([size=small]:active) {
|
|
459
|
+
--button-container-shape: var(--shape-corner-small);
|
|
460
|
+
}
|
|
461
|
+
:host([shape=square]:not([selected])):host([size=md]), :host([shape=square]:not([selected])):host([size=medium]), :host([shape=square]:not([selected])):host([size=lg]), :host([shape=square]:not([selected])):host([size=large]) {
|
|
462
|
+
--button-container-shape: var(--shape-corner-large);
|
|
463
|
+
}
|
|
464
|
+
:host([shape=square]:not([selected])):host([size=md]:active), :host([shape=square]:not([selected])):host([size=medium]:active), :host([shape=square]:not([selected])):host([size=lg]:active), :host([shape=square]:not([selected])):host([size=large]:active) {
|
|
465
|
+
--button-container-shape: var(--shape-corner-medium);
|
|
466
|
+
}
|
|
467
|
+
:host([shape=square]:not([selected])):host([size=xl]), :host([shape=square]:not([selected])):host([size=extra]) {
|
|
468
|
+
--button-container-shape: var(--shape-corner-extra-large);
|
|
469
|
+
}
|
|
470
|
+
:host([shape=square]:not([selected])):host([size=xl]:active), :host([shape=square]:not([selected])):host([size=extra]:active) {
|
|
471
|
+
--button-container-shape: var(--shape-corner-large);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
:host([shape=square][selected]),
|
|
475
|
+
:host([shape=square][selected]:active) {
|
|
476
|
+
--button-container-shape: var(--shape-corner-full);
|
|
477
|
+
--button-container-shape-variant: round;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* -- Round Shape -- */
|
|
481
|
+
:host([shape=round]:not([selected])),
|
|
482
|
+
:host([shape=round]:not([selected]):active),
|
|
483
|
+
:host([shape=narrow]:not([selected])),
|
|
484
|
+
:host([shape=narrow]:not([selected]):active),
|
|
485
|
+
:host([shape=wide]:not([selected])),
|
|
486
|
+
:host([shape=wide]:not([selected]):active) {
|
|
487
|
+
--button-container-shape: var(--shape-corner-full);
|
|
488
|
+
--button-container-shape-variant: round;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
:host([shape=round][selected]):host,
|
|
492
|
+
:host([shape=narrow][selected]):host,
|
|
493
|
+
:host([shape=wide][selected]):host {
|
|
494
|
+
--button-container-shape-variant: squircle;
|
|
495
|
+
}
|
|
496
|
+
:host([shape=round][selected]):host([size=xs]), :host([shape=round][selected]):host([size=extra-small]), :host([shape=round][selected]):host([size=sm]), :host([shape=round][selected]):host([size=small]),
|
|
497
|
+
:host([shape=narrow][selected]):host([size=xs]),
|
|
498
|
+
:host([shape=narrow][selected]):host([size=extra-small]),
|
|
499
|
+
:host([shape=narrow][selected]):host([size=sm]),
|
|
500
|
+
:host([shape=narrow][selected]):host([size=small]),
|
|
501
|
+
:host([shape=wide][selected]):host([size=xs]),
|
|
502
|
+
:host([shape=wide][selected]):host([size=extra-small]),
|
|
503
|
+
:host([shape=wide][selected]):host([size=sm]),
|
|
504
|
+
:host([shape=wide][selected]):host([size=small]) {
|
|
505
|
+
--button-container-shape: var(--shape-corner-medium);
|
|
506
|
+
}
|
|
507
|
+
:host([shape=round][selected]):host([size=xs]:active), :host([shape=round][selected]):host([size=extra-small]:active), :host([shape=round][selected]):host([size=sm]:active), :host([shape=round][selected]):host([size=small]:active),
|
|
508
|
+
:host([shape=narrow][selected]):host([size=xs]:active),
|
|
509
|
+
:host([shape=narrow][selected]):host([size=extra-small]:active),
|
|
510
|
+
:host([shape=narrow][selected]):host([size=sm]:active),
|
|
511
|
+
:host([shape=narrow][selected]):host([size=small]:active),
|
|
512
|
+
:host([shape=wide][selected]):host([size=xs]:active),
|
|
513
|
+
:host([shape=wide][selected]):host([size=extra-small]:active),
|
|
514
|
+
:host([shape=wide][selected]):host([size=sm]:active),
|
|
515
|
+
:host([shape=wide][selected]):host([size=small]:active) {
|
|
516
|
+
--button-container-shape: var(--shape-corner-small);
|
|
517
|
+
}
|
|
518
|
+
:host([shape=round][selected]):host([size=md]), :host([shape=round][selected]):host([size=medium]), :host([shape=round][selected]):host([size=lg]), :host([shape=round][selected]):host([size=large]),
|
|
519
|
+
:host([shape=narrow][selected]):host([size=md]),
|
|
520
|
+
:host([shape=narrow][selected]):host([size=medium]),
|
|
521
|
+
:host([shape=narrow][selected]):host([size=lg]),
|
|
522
|
+
:host([shape=narrow][selected]):host([size=large]),
|
|
523
|
+
:host([shape=wide][selected]):host([size=md]),
|
|
524
|
+
:host([shape=wide][selected]):host([size=medium]),
|
|
525
|
+
:host([shape=wide][selected]):host([size=lg]),
|
|
526
|
+
:host([shape=wide][selected]):host([size=large]) {
|
|
527
|
+
--button-container-shape: var(--shape-corner-large);
|
|
528
|
+
}
|
|
529
|
+
:host([shape=round][selected]):host([size=md]:active), :host([shape=round][selected]):host([size=medium]:active), :host([shape=round][selected]):host([size=lg]:active), :host([shape=round][selected]):host([size=large]:active),
|
|
530
|
+
:host([shape=narrow][selected]):host([size=md]:active),
|
|
531
|
+
:host([shape=narrow][selected]):host([size=medium]:active),
|
|
532
|
+
:host([shape=narrow][selected]):host([size=lg]:active),
|
|
533
|
+
:host([shape=narrow][selected]):host([size=large]:active),
|
|
534
|
+
:host([shape=wide][selected]):host([size=md]:active),
|
|
535
|
+
:host([shape=wide][selected]):host([size=medium]:active),
|
|
536
|
+
:host([shape=wide][selected]):host([size=lg]:active),
|
|
537
|
+
:host([shape=wide][selected]):host([size=large]:active) {
|
|
538
|
+
--button-container-shape: var(--shape-corner-medium);
|
|
539
|
+
}
|
|
540
|
+
:host([shape=round][selected]):host([size=xl]), :host([shape=round][selected]):host([size=extra]),
|
|
541
|
+
:host([shape=narrow][selected]):host([size=xl]),
|
|
542
|
+
:host([shape=narrow][selected]):host([size=extra]),
|
|
543
|
+
:host([shape=wide][selected]):host([size=xl]),
|
|
544
|
+
:host([shape=wide][selected]):host([size=extra]) {
|
|
545
|
+
--button-container-shape: var(--shape-corner-extra-large);
|
|
546
|
+
}
|
|
547
|
+
:host([shape=round][selected]):host([size=xl]:active), :host([shape=round][selected]):host([size=extra]:active),
|
|
548
|
+
:host([shape=narrow][selected]):host([size=xl]:active),
|
|
549
|
+
:host([shape=narrow][selected]):host([size=extra]:active),
|
|
550
|
+
:host([shape=wide][selected]):host([size=xl]:active),
|
|
551
|
+
:host([shape=wide][selected]):host([size=extra]:active) {
|
|
552
|
+
--button-container-shape: var(--shape-corner-large);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
:host([color=primary]:not([toggle])) {
|
|
556
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
557
|
+
--elevated-button-label-text-color: var(--color-primary);
|
|
558
|
+
--filled-button-container-color: var(--color-primary);
|
|
559
|
+
--filled-button-label-text-color: var(--color-on-primary);
|
|
560
|
+
--tonal-button-container-color: var(--color-primary-container);
|
|
561
|
+
--tonal-button-label-text-color: var(--color-on-primary-container);
|
|
562
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
563
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
564
|
+
--text-button-label-text-color: var(--color-primary);
|
|
565
|
+
--neo-button-container-color: var(--color-primary);
|
|
566
|
+
--neo-button-label-text-color: var(--color-on-primary);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
:host([color=primary][toggle][selected]) {
|
|
570
|
+
--filled-button-container-color: var(--color-primary);
|
|
571
|
+
--filled-button-label-text-color: var(--color-on-primary);
|
|
572
|
+
--tonal-button-container-color: var(--color-secondary);
|
|
573
|
+
--tonal-button-label-text-color: var(--color-on-secondary);
|
|
574
|
+
--elevated-button-container-color: var(--color-primary);
|
|
575
|
+
--elevated-button-label-text-color: var(--color-on-primary);
|
|
576
|
+
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
577
|
+
--outlined-button-container-color: var(--color-inverse-surface);
|
|
578
|
+
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
:host([color=primary][toggle]:not([selected])) {
|
|
582
|
+
--filled-button-container-color: var(--color-surface-container-high);
|
|
583
|
+
--filled-button-label-text-color: var(--color-on-surface);
|
|
584
|
+
--tonal-button-container-color: var(--color-primary-container);
|
|
585
|
+
--tonal-button-label-text-color: var(--color-on-primary-container);
|
|
586
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
587
|
+
--elevated-button-label-text-color: var(--color-primary);
|
|
588
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
589
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
:host([color=secondary]:not([toggle])) {
|
|
593
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
594
|
+
--elevated-button-label-text-color: var(--color-secondary);
|
|
595
|
+
--filled-button-container-color: var(--color-secondary);
|
|
596
|
+
--filled-button-label-text-color: var(--color-on-secondary);
|
|
597
|
+
--tonal-button-container-color: var(--color-secondary-container);
|
|
598
|
+
--tonal-button-label-text-color: var(--color-on-secondary-container);
|
|
599
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
600
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
601
|
+
--text-button-label-text-color: var(--color-secondary);
|
|
602
|
+
--neo-button-container-color: var(--color-secondary);
|
|
603
|
+
--neo-button-label-text-color: var(--color-on-secondary);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
:host([color=secondary][toggle][selected]) {
|
|
607
|
+
--filled-button-container-color: var(--color-secondary);
|
|
608
|
+
--filled-button-label-text-color: var(--color-on-secondary);
|
|
609
|
+
--tonal-button-container-color: var(--color-secondary);
|
|
610
|
+
--tonal-button-label-text-color: var(--color-on-secondary);
|
|
611
|
+
--elevated-button-container-color: var(--color-secondary);
|
|
612
|
+
--elevated-button-label-text-color: var(--color-on-secondary);
|
|
613
|
+
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
614
|
+
--outlined-button-container-color: var(--color-inverse-surface);
|
|
615
|
+
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
:host([color=secondary][toggle]:not([selected])) {
|
|
619
|
+
--filled-button-container-color: var(--color-surface-container-high);
|
|
620
|
+
--filled-button-label-text-color: var(--color-on-surface);
|
|
621
|
+
--tonal-button-container-color: var(--color-secondary-container);
|
|
622
|
+
--tonal-button-label-text-color: var(--color-on-secondary-container);
|
|
623
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
624
|
+
--elevated-button-label-text-color: var(--color-secondary);
|
|
625
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
626
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
:host([color=tertiary]:not([toggle])) {
|
|
630
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
631
|
+
--elevated-button-label-text-color: var(--color-tertiary);
|
|
632
|
+
--filled-button-container-color: var(--color-tertiary);
|
|
633
|
+
--filled-button-label-text-color: var(--color-on-tertiary);
|
|
634
|
+
--tonal-button-container-color: var(--color-tertiary-container);
|
|
635
|
+
--tonal-button-label-text-color: var(--color-on-tertiary-container);
|
|
636
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
637
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
638
|
+
--text-button-label-text-color: var(--color-tertiary);
|
|
639
|
+
--neo-button-container-color: var(--color-tertiary);
|
|
640
|
+
--neo-button-label-text-color: var(--color-on-tertiary);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
:host([color=tertiary][toggle][selected]) {
|
|
644
|
+
--filled-button-container-color: var(--color-tertiary);
|
|
645
|
+
--filled-button-label-text-color: var(--color-on-tertiary);
|
|
646
|
+
--tonal-button-container-color: var(--color-secondary);
|
|
647
|
+
--tonal-button-label-text-color: var(--color-on-secondary);
|
|
648
|
+
--elevated-button-container-color: var(--color-tertiary);
|
|
649
|
+
--elevated-button-label-text-color: var(--color-on-tertiary);
|
|
650
|
+
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
651
|
+
--outlined-button-container-color: var(--color-inverse-surface);
|
|
652
|
+
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
:host([color=tertiary][toggle]:not([selected])) {
|
|
656
|
+
--filled-button-container-color: var(--color-surface-container-high);
|
|
657
|
+
--filled-button-label-text-color: var(--color-on-surface);
|
|
658
|
+
--tonal-button-container-color: var(--color-tertiary-container);
|
|
659
|
+
--tonal-button-label-text-color: var(--color-on-tertiary-container);
|
|
660
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
661
|
+
--elevated-button-label-text-color: var(--color-tertiary);
|
|
662
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
663
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
:host([color=success]:not([toggle])) {
|
|
667
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
668
|
+
--elevated-button-label-text-color: var(--color-success);
|
|
669
|
+
--filled-button-container-color: var(--color-success);
|
|
670
|
+
--filled-button-label-text-color: var(--color-on-success);
|
|
671
|
+
--tonal-button-container-color: var(--color-success-container);
|
|
672
|
+
--tonal-button-label-text-color: var(--color-on-success-container);
|
|
673
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
674
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
675
|
+
--text-button-label-text-color: var(--color-success);
|
|
676
|
+
--neo-button-container-color: var(--color-success);
|
|
677
|
+
--neo-button-label-text-color: var(--color-on-success);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
:host([color=success][toggle][selected]) {
|
|
681
|
+
--filled-button-container-color: var(--color-success);
|
|
682
|
+
--filled-button-label-text-color: var(--color-on-success);
|
|
683
|
+
--tonal-button-container-color: var(--color-secondary);
|
|
684
|
+
--tonal-button-label-text-color: var(--color-on-secondary);
|
|
685
|
+
--elevated-button-container-color: var(--color-success);
|
|
686
|
+
--elevated-button-label-text-color: var(--color-on-success);
|
|
687
|
+
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
688
|
+
--outlined-button-container-color: var(--color-inverse-surface);
|
|
689
|
+
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
:host([color=success][toggle]:not([selected])) {
|
|
693
|
+
--filled-button-container-color: var(--color-surface-container-high);
|
|
694
|
+
--filled-button-label-text-color: var(--color-on-surface);
|
|
695
|
+
--tonal-button-container-color: var(--color-success-container);
|
|
696
|
+
--tonal-button-label-text-color: var(--color-on-success-container);
|
|
697
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
698
|
+
--elevated-button-label-text-color: var(--color-success);
|
|
699
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
700
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
:host([color=danger]:not([toggle])) {
|
|
704
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
705
|
+
--elevated-button-label-text-color: var(--color-error);
|
|
706
|
+
--filled-button-container-color: var(--color-error);
|
|
707
|
+
--filled-button-label-text-color: var(--color-on-error);
|
|
708
|
+
--tonal-button-container-color: var(--color-error-container);
|
|
709
|
+
--tonal-button-label-text-color: var(--color-on-error-container);
|
|
710
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
711
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
712
|
+
--text-button-label-text-color: var(--color-error);
|
|
713
|
+
--neo-button-container-color: var(--color-error);
|
|
714
|
+
--neo-button-label-text-color: var(--color-on-error);
|
|
715
|
+
}
|
|
23
716
|
|
|
24
|
-
|
|
717
|
+
:host([color=danger][toggle][selected]) {
|
|
718
|
+
--filled-button-container-color: var(--color-error);
|
|
719
|
+
--filled-button-label-text-color: var(--color-on-error);
|
|
720
|
+
--tonal-button-container-color: var(--color-secondary);
|
|
721
|
+
--tonal-button-label-text-color: var(--color-on-secondary);
|
|
722
|
+
--elevated-button-container-color: var(--color-error);
|
|
723
|
+
--elevated-button-label-text-color: var(--color-on-error);
|
|
724
|
+
--outlined-button-outline-color: var(--color-inverse-surface);
|
|
725
|
+
--outlined-button-container-color: var(--color-inverse-surface);
|
|
726
|
+
--outlined-button-label-text-color: var(--color-inverse-on-surface);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
:host([color=danger][toggle]:not([selected])) {
|
|
730
|
+
--filled-button-container-color: var(--color-surface-container-high);
|
|
731
|
+
--filled-button-label-text-color: var(--color-on-surface);
|
|
732
|
+
--tonal-button-container-color: var(--color-error-container);
|
|
733
|
+
--tonal-button-label-text-color: var(--color-on-error-container);
|
|
734
|
+
--elevated-button-container-color: var(--color-surface-container-low);
|
|
735
|
+
--elevated-button-label-text-color: var(--color-error);
|
|
736
|
+
--outlined-button-outline-color: var(--color-outline-variant);
|
|
737
|
+
--outlined-button-label-text-color: var(--color-on-surface-variant);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
:host([color=on-surface]) {
|
|
741
|
+
--filled-button-container-color: var(--color-on-surface);
|
|
742
|
+
--filled-button-label-text-color: var(--color-surface);
|
|
743
|
+
--tonal-button-container-color: var(--color-on-surface-container);
|
|
744
|
+
--tonal-button-label-text-color: var(--color-surface-container-high);
|
|
745
|
+
--elevated-button-container-color: var(--color-on-surface);
|
|
746
|
+
--elevated-button-label-text-color: var(--color-surface);
|
|
747
|
+
--outlined-button-outline-color: var(--color-on-surface);
|
|
748
|
+
--outlined-button-label-text-color: var(--color-on-surface);
|
|
749
|
+
--text-button-label-text-color: var(--color-on-surface);
|
|
750
|
+
--neo-button-container-color: var(--color-on-surface);
|
|
751
|
+
--neo-button-label-text-color: var(--color-surface);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
:host([color=surface]) {
|
|
755
|
+
--filled-button-container-color: var(--color-surface-container-high);
|
|
756
|
+
--filled-button-label-text-color: var(--color-on-surface);
|
|
757
|
+
--tonal-button-container-color: var(--color-surface-container-high);
|
|
758
|
+
--tonal-button-label-text-color: var(--color-on-surface-container);
|
|
759
|
+
--elevated-button-container-color: var(--color-surface);
|
|
760
|
+
--elevated-button-label-text-color: var(--color-on-surface);
|
|
761
|
+
--outlined-button-outline-color: var(--color-on-surface);
|
|
762
|
+
--outlined-button-label-text-color: var(--color-on-surface);
|
|
763
|
+
--text-button-label-text-color: var(--color-on-surface);
|
|
764
|
+
--neo-button-container-color: var(--color-surface);
|
|
765
|
+
--neo-button-label-text-color: var(--color-on-surface);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
:host([size=xs]),
|
|
25
769
|
:host([size=extra-small]) {
|
|
26
770
|
--button-height: 2rem;
|
|
27
771
|
--private-button-icon-size: 1rem;
|
|
@@ -75,6 +819,19 @@ var css_248z = i`:host([size=xs]),
|
|
|
75
819
|
--private-button-font-weight: var(--font-weight-regular) !important;
|
|
76
820
|
--private-button-line-height: 2.5rem !important;
|
|
77
821
|
--private-button-letter-spacing: 0 !important;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/* When both icon and label are present, apply the configured spacing */
|
|
825
|
+
:host([has-icon][has-label]) .button {
|
|
826
|
+
gap: var(--private-button-icon-label-spacing);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
:host(:not([trailing-icon])) .button {
|
|
830
|
+
flex-direction: row;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
:host([trailing-icon]) .button {
|
|
834
|
+
flex-direction: row-reverse;
|
|
78
835
|
}`;
|
|
79
836
|
|
|
80
837
|
/**
|
|
@@ -119,9 +876,11 @@ var css_248z = i`:host([size=xs]),
|
|
|
119
876
|
* ```
|
|
120
877
|
* @tags display
|
|
121
878
|
*/
|
|
122
|
-
let Button = class Button extends
|
|
879
|
+
let Button = class Button extends mixinBaseButton(mixinHyperlink(mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(i$1)))))) {
|
|
880
|
+
// ── Constructor ───────────────────────────────────────────────────────────
|
|
123
881
|
constructor() {
|
|
124
|
-
super(
|
|
882
|
+
super();
|
|
883
|
+
// ── Properties ───────────────────────────────────────────────────────────
|
|
125
884
|
/**
|
|
126
885
|
* Icon alignment.
|
|
127
886
|
* Possible values are `"start"`, `"end"`. Defaults to `"end"`.
|
|
@@ -132,6 +891,8 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
132
891
|
* Possible values are `"xs"`, `"sm"`, `"md"`, `"lg"`, `"xl"`. Defaults to `"sm"`.
|
|
133
892
|
*/
|
|
134
893
|
this.size = 'sm';
|
|
894
|
+
/** Shape of the button container. */
|
|
895
|
+
this.shape = 'square';
|
|
135
896
|
/**
|
|
136
897
|
* The visual style of the button.
|
|
137
898
|
*
|
|
@@ -147,34 +908,17 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
147
908
|
* Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.
|
|
148
909
|
*/
|
|
149
910
|
this.color = 'primary';
|
|
911
|
+
/** When true, renders the button in a loading skeleton state. */
|
|
150
912
|
this.skeleton = false;
|
|
913
|
+
/** When true, the button acts as a toggle. Use with `selected`. */
|
|
151
914
|
this.toggle = false;
|
|
915
|
+
/** When true (and `toggle` is set), the button is in the selected/pressed state. */
|
|
152
916
|
this.selected = false;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
*/
|
|
156
|
-
this.throttleDelay = 200;
|
|
157
|
-
/**
|
|
158
|
-
* States
|
|
159
|
-
*/
|
|
160
|
-
this.pressed = false;
|
|
161
|
-
// Query the internal control (button or link) on demand instead of
|
|
162
|
-
// keeping a persistent query reference.
|
|
163
|
-
// cleanup functions returned by observerSlotChangesWithCallback
|
|
917
|
+
// ── Private fields ────────────────────────────────────────────────────────
|
|
918
|
+
/** Cleanup returned by observerSlotChangesWithCallback for the icon slot. */
|
|
164
919
|
this.__iconSlotCleanup = null;
|
|
920
|
+
/** Cleanup returned by observerSlotChangesWithCallback for the label slot. */
|
|
165
921
|
this.__labelSlotCleanup = null;
|
|
166
|
-
this.__handlePress = (event) => {
|
|
167
|
-
if (this.disabled || this.skeleton || this.softDisabled)
|
|
168
|
-
return;
|
|
169
|
-
this.pressed =
|
|
170
|
-
(event instanceof KeyboardEvent &&
|
|
171
|
-
event.type === 'keydown' &&
|
|
172
|
-
(event.key === 'Enter' || event.key === ' ')) ||
|
|
173
|
-
event.type === 'mousedown';
|
|
174
|
-
};
|
|
175
|
-
this.__dispatchClickWithThrottle = event => {
|
|
176
|
-
this.__dispatchClick(event);
|
|
177
|
-
};
|
|
178
922
|
this.__dispatchClick = (event) => {
|
|
179
923
|
// If the button is soft-disabled or a disabled link, we need to explicitly
|
|
180
924
|
// prevent the click from propagating to other event listeners as well as
|
|
@@ -184,25 +928,33 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
184
928
|
event.preventDefault();
|
|
185
929
|
return;
|
|
186
930
|
}
|
|
187
|
-
|
|
188
|
-
if (!isActivationClick(event) || !control) {
|
|
931
|
+
if (!isActivationClick(event) || !this.buttonElement) {
|
|
189
932
|
return;
|
|
190
933
|
}
|
|
191
|
-
if (this.toggle) {
|
|
192
|
-
this.selected = !this.selected;
|
|
193
|
-
}
|
|
194
934
|
this.focus();
|
|
195
|
-
dispatchActivationClick(
|
|
935
|
+
dispatchActivationClick(this.buttonElement);
|
|
196
936
|
};
|
|
937
|
+
this.addEventListener('click', this.__dispatchClickWithThrottle);
|
|
197
938
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
939
|
+
// ── Lifecycle ─────────────────────────────────────────────────────────────
|
|
940
|
+
disconnectedCallback() {
|
|
941
|
+
// disconnect slot observers first to avoid callbacks during teardown
|
|
942
|
+
try {
|
|
943
|
+
this.__iconSlotCleanup?.();
|
|
944
|
+
}
|
|
945
|
+
catch (e) {
|
|
946
|
+
/* ignore */
|
|
947
|
+
}
|
|
948
|
+
try {
|
|
949
|
+
this.__labelSlotCleanup?.();
|
|
950
|
+
}
|
|
951
|
+
catch (e) {
|
|
952
|
+
/* ignore */
|
|
953
|
+
}
|
|
954
|
+
super.disconnectedCallback();
|
|
203
955
|
}
|
|
204
|
-
firstUpdated() {
|
|
205
|
-
|
|
956
|
+
firstUpdated(changedProperties) {
|
|
957
|
+
super.firstUpdated(changedProperties);
|
|
206
958
|
this.__convertTypeToVariantAndColor();
|
|
207
959
|
// Initialize slot presence tracking for smooth transitions when label/icon are added/removed
|
|
208
960
|
const iconSlot = this.renderRoot.querySelector('slot[name="icon"]');
|
|
@@ -219,38 +971,33 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
219
971
|
});
|
|
220
972
|
}
|
|
221
973
|
}
|
|
974
|
+
// ── Public methods ────────────────────────────────────────────────────────
|
|
975
|
+
focus() {
|
|
976
|
+
this.buttonElement?.focus();
|
|
977
|
+
}
|
|
978
|
+
blur() {
|
|
979
|
+
this.buttonElement?.blur();
|
|
980
|
+
}
|
|
981
|
+
// ── Private methods ───────────────────────────────────────────────────────
|
|
222
982
|
__convertTypeToVariantAndColor() {
|
|
223
|
-
if (this.
|
|
983
|
+
if (this.level === 'primary') {
|
|
224
984
|
this.color = 'primary';
|
|
225
985
|
this.variant = 'filled';
|
|
226
986
|
}
|
|
227
|
-
else if (this.
|
|
987
|
+
else if (this.level === 'secondary') {
|
|
228
988
|
this.color = 'surface';
|
|
229
|
-
this.variant = '
|
|
989
|
+
this.variant = 'tonal';
|
|
230
990
|
}
|
|
231
|
-
else if (this.
|
|
991
|
+
else if (this.level === 'tertiary') {
|
|
232
992
|
this.color = 'primary';
|
|
233
993
|
this.variant = 'text';
|
|
234
994
|
}
|
|
235
|
-
else if (this.
|
|
995
|
+
else if (this.level === 'danger') {
|
|
236
996
|
this.color = 'danger';
|
|
237
997
|
this.variant = 'filled';
|
|
238
998
|
}
|
|
239
999
|
}
|
|
240
|
-
|
|
241
|
-
const buttonId = isLink(this) ? 'link' : 'button';
|
|
242
|
-
return b `
|
|
243
|
-
<wc-focus-ring class="focus-ring" for=${buttonId}></wc-focus-ring>
|
|
244
|
-
<wc-elevation class="elevation"></wc-elevation>
|
|
245
|
-
${n(this.variant === 'neo', () => b `<div class="neo-background"></div>`)}
|
|
246
|
-
<div class="background"></div>
|
|
247
|
-
${n(this.variant === 'outlined' || this.variant === 'neo', () => b `<div class="outline"></div>`)}
|
|
248
|
-
<wc-ripple class="ripple" for=${buttonId}></wc-ripple>
|
|
249
|
-
<wc-skeleton class="skeleton"></wc-skeleton>
|
|
250
|
-
|
|
251
|
-
${this.renderButtonElement()} ${this.__renderTooltip()}
|
|
252
|
-
`;
|
|
253
|
-
}
|
|
1000
|
+
// ── Render helpers ────────────────────────────────────────────────────────
|
|
254
1001
|
renderButtonElement() {
|
|
255
1002
|
const isElementLink = isLink(this);
|
|
256
1003
|
const cssClasses = {
|
|
@@ -259,6 +1006,8 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
259
1006
|
'native-link': isElementLink,
|
|
260
1007
|
'trailing-icon': this.trailingIcon,
|
|
261
1008
|
};
|
|
1009
|
+
// Needed for closure conformance
|
|
1010
|
+
const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
|
|
262
1011
|
if (isElementLink) {
|
|
263
1012
|
return b `<a
|
|
264
1013
|
class=${e(cssClasses)}
|
|
@@ -266,14 +1015,11 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
266
1015
|
href=${this.href}
|
|
267
1016
|
target=${this.target}
|
|
268
1017
|
tabindex=${this.disabled ? '-1' : '0'}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
@keyup=${this.__handlePress}
|
|
273
|
-
role="button"
|
|
1018
|
+
aria-label="${ariaLabel || A}"
|
|
1019
|
+
aria-haspopup="${ariaHasPopup || A}"
|
|
1020
|
+
aria-expanded="${ariaExpanded || A}"
|
|
274
1021
|
aria-describedby=${o(this.softDisabled ? DISABLED_REASON_ID : undefined)}
|
|
275
1022
|
?aria-disabled=${this.softDisabled}
|
|
276
|
-
${spread(this.configAria)}
|
|
277
1023
|
>
|
|
278
1024
|
${this.renderButtonContent()}
|
|
279
1025
|
</a>`;
|
|
@@ -281,55 +1027,25 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
281
1027
|
return b `<button
|
|
282
1028
|
class=${e(cssClasses)}
|
|
283
1029
|
id="button"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
@keydown=${this.__handlePress}
|
|
288
|
-
@keyup=${this.__handlePress}
|
|
1030
|
+
aria-label="${ariaLabel || A}"
|
|
1031
|
+
aria-haspopup="${ariaHasPopup || A}"
|
|
1032
|
+
aria-expanded="${ariaExpanded || A}"
|
|
289
1033
|
aria-describedby=${o(this.softDisabled ? DISABLED_REASON_ID : undefined)}
|
|
290
1034
|
?aria-disabled=${this.softDisabled}
|
|
291
1035
|
?disabled=${this.disabled}
|
|
292
|
-
${spread(this.configAria)}
|
|
293
1036
|
>
|
|
294
1037
|
${this.renderButtonContent()}
|
|
295
1038
|
</button>
|
|
296
|
-
${this.
|
|
1039
|
+
${this.renderTooltip()}`;
|
|
297
1040
|
}
|
|
298
1041
|
renderButtonContent() {
|
|
299
1042
|
return b ` <slot class="icon-slot" name="icon"></slot>
|
|
300
1043
|
<slot class="label"></slot>
|
|
301
1044
|
<div class="touch"></div>
|
|
302
1045
|
|
|
303
|
-
${this.
|
|
304
|
-
}
|
|
305
|
-
connectedCallback() {
|
|
306
|
-
super.connectedCallback();
|
|
307
|
-
this.addEventListener('click', this.__dispatchClickWithThrottle);
|
|
308
|
-
window.addEventListener('mouseup', this.__handlePress);
|
|
1046
|
+
${this.renderDisabledReason(this.softDisabled)}`;
|
|
309
1047
|
}
|
|
310
|
-
|
|
311
|
-
// disconnect slot observers first to avoid callbacks during teardown
|
|
312
|
-
try {
|
|
313
|
-
this.__iconSlotCleanup?.();
|
|
314
|
-
}
|
|
315
|
-
catch (e) {
|
|
316
|
-
/* ignore */
|
|
317
|
-
}
|
|
318
|
-
try {
|
|
319
|
-
this.__labelSlotCleanup?.();
|
|
320
|
-
}
|
|
321
|
-
catch (e) {
|
|
322
|
-
/* ignore */
|
|
323
|
-
}
|
|
324
|
-
window.removeEventListener('mouseup', this.__handlePress);
|
|
325
|
-
this.removeEventListener('click', this.__dispatchClickWithThrottle);
|
|
326
|
-
super.disconnectedCallback();
|
|
327
|
-
}
|
|
328
|
-
getControl() {
|
|
329
|
-
return (this.renderRoot?.querySelector('#button') ??
|
|
330
|
-
this.renderRoot?.querySelector('#link'));
|
|
331
|
-
}
|
|
332
|
-
__renderDisabledReason(softDisabled) {
|
|
1048
|
+
renderDisabledReason(softDisabled) {
|
|
333
1049
|
if (softDisabled)
|
|
334
1050
|
return b `<div
|
|
335
1051
|
id=${DISABLED_REASON_ID}
|
|
@@ -341,21 +1057,38 @@ let Button = class Button extends NativeButtonMixin(NativeHyperlinkMixin(i$1)) {
|
|
|
341
1057
|
</div>`;
|
|
342
1058
|
return A;
|
|
343
1059
|
}
|
|
344
|
-
|
|
1060
|
+
renderTooltip() {
|
|
345
1061
|
if (this.tooltip) {
|
|
346
1062
|
const buttonId = isLink(this) ? 'link' : 'button';
|
|
347
|
-
return b `<wc-tooltip class="tooltip" for=${buttonId}
|
|
1063
|
+
return b `<wc-tooltip class="tooltip" for=${buttonId}
|
|
1064
|
+
>${this.tooltip}</wc-tooltip
|
|
1065
|
+
>`;
|
|
348
1066
|
}
|
|
349
1067
|
return A;
|
|
350
1068
|
}
|
|
1069
|
+
// ── Render ────────────────────────────────────────────────────────────────
|
|
1070
|
+
render() {
|
|
1071
|
+
const buttonId = isLink(this) ? 'link' : 'button';
|
|
1072
|
+
return b `
|
|
1073
|
+
<wc-focus-ring class="focus-ring" for=${buttonId}></wc-focus-ring>
|
|
1074
|
+
<wc-elevation class="elevation"></wc-elevation>
|
|
1075
|
+
${n(this.variant === 'neo', () => b `<div class="neo-background"></div>`)}
|
|
1076
|
+
<div class="background"></div>
|
|
1077
|
+
${n(this.variant === 'outlined' || this.variant === 'neo', () => b `<div class="outline"></div>`)}
|
|
1078
|
+
<wc-ripple class="ripple" for=${buttonId}></wc-ripple>
|
|
1079
|
+
<wc-skeleton class="skeleton"></wc-skeleton>
|
|
1080
|
+
|
|
1081
|
+
${this.renderButtonElement()} ${this.renderTooltip()}
|
|
1082
|
+
`;
|
|
1083
|
+
}
|
|
351
1084
|
};
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
];
|
|
1085
|
+
// ── Static ───────────────────────────────────────────────────────────────
|
|
1086
|
+
/** @nocollapse */ // eslint-disable-next-line
|
|
1087
|
+
Button.shadowRootOptions = {
|
|
1088
|
+
mode: 'open',
|
|
1089
|
+
delegatesFocus: true,
|
|
1090
|
+
};
|
|
1091
|
+
Button.styles = [css_248z];
|
|
359
1092
|
__decorate([
|
|
360
1093
|
n$1({ type: Boolean, reflect: true, attribute: 'trailing-icon' })
|
|
361
1094
|
], Button.prototype, "trailingIcon", void 0);
|
|
@@ -364,16 +1097,16 @@ __decorate([
|
|
|
364
1097
|
], Button.prototype, "size", void 0);
|
|
365
1098
|
__decorate([
|
|
366
1099
|
n$1({ type: String })
|
|
367
|
-
], Button.prototype, "
|
|
1100
|
+
], Button.prototype, "level", void 0);
|
|
1101
|
+
__decorate([
|
|
1102
|
+
n$1({ type: String, reflect: true })
|
|
1103
|
+
], Button.prototype, "shape", void 0);
|
|
368
1104
|
__decorate([
|
|
369
1105
|
n$1({ reflect: true })
|
|
370
1106
|
], Button.prototype, "variant", void 0);
|
|
371
1107
|
__decorate([
|
|
372
1108
|
n$1({ reflect: true })
|
|
373
1109
|
], Button.prototype, "color", void 0);
|
|
374
|
-
__decorate([
|
|
375
|
-
n$1({ reflect: true })
|
|
376
|
-
], Button.prototype, "configAria", void 0);
|
|
377
1110
|
__decorate([
|
|
378
1111
|
n$1({ type: Boolean, reflect: true })
|
|
379
1112
|
], Button.prototype, "skeleton", void 0);
|
|
@@ -383,15 +1116,12 @@ __decorate([
|
|
|
383
1116
|
__decorate([
|
|
384
1117
|
n$1({ type: Boolean, reflect: true })
|
|
385
1118
|
], Button.prototype, "selected", void 0);
|
|
386
|
-
__decorate([
|
|
387
|
-
n$1()
|
|
388
|
-
], Button.prototype, "throttleDelay", void 0);
|
|
389
1119
|
__decorate([
|
|
390
1120
|
n$1()
|
|
391
1121
|
], Button.prototype, "tooltip", void 0);
|
|
392
1122
|
__decorate([
|
|
393
|
-
|
|
394
|
-
], Button.prototype, "
|
|
1123
|
+
e$1('.button')
|
|
1124
|
+
], Button.prototype, "buttonElement", void 0);
|
|
395
1125
|
Button = __decorate([
|
|
396
1126
|
IndividualComponent
|
|
397
1127
|
], Button);
|