@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/tab.js
ADDED
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
import { i, _ as __decorate, I as IndividualComponent, a as i$1, b, A, c as __classPrivateFieldGet } from './IndividualComponent-Bdwyrvd6.js';
|
|
2
|
+
import { n } from './property-B49QQ8pS.js';
|
|
3
|
+
import { r } from './state-DkTK9EGF.js';
|
|
4
|
+
import { e } from './query-CHb9Ft_d.js';
|
|
5
|
+
import { e as e$1 } from './class-map-DG7CA1et.js';
|
|
6
|
+
import { i as isActivationClick, d as dispatchActivationClick } from './dispatch-event-utils-CuEqjlPT.js';
|
|
7
|
+
import { o as observerSlotChangesWithCallback } from './observe-slot-change-DPxaZrZF.js';
|
|
8
|
+
import { t as throttle } from './throttle-C7ZAPqtu.js';
|
|
9
|
+
import { i as isLink } from './is-link-Dk2OV3PM.js';
|
|
10
|
+
import { s as spread } from './spread-B5cgadZl.js';
|
|
11
|
+
import './base-Cl6v8-BZ.js';
|
|
12
|
+
import './directive-ZPhl09Yt.js';
|
|
13
|
+
|
|
14
|
+
var css_248z = i`* {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.screen-reader-only {
|
|
19
|
+
display: none !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[hidden] {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
height: 100%;
|
|
29
|
+
--tab-outline-color: var(--color-primary);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tab-element {
|
|
33
|
+
background: transparent;
|
|
34
|
+
border: none;
|
|
35
|
+
appearance: none;
|
|
36
|
+
margin: 0;
|
|
37
|
+
outline: none;
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.tab {
|
|
42
|
+
position: relative;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
height: 100%;
|
|
48
|
+
padding: 0 var(--_container-padding);
|
|
49
|
+
width: 100%;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
.tab .tab-content {
|
|
53
|
+
position: relative;
|
|
54
|
+
font-family: var(--typography-title-small-font-family) !important;
|
|
55
|
+
font-size: var(--typography-title-small-font-size) !important;
|
|
56
|
+
font-weight: var(--typography-title-small-font-weight) !important;
|
|
57
|
+
line-height: var(--typography-title-small-line-height) !important;
|
|
58
|
+
letter-spacing: var(--typography-title-small-letter-spacing) !important;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
z-index: 0;
|
|
65
|
+
color: var(--_label-text-color);
|
|
66
|
+
opacity: var(--_label-text-opacity, 1);
|
|
67
|
+
transition: color var(--duration-short4) var(--easing-standard), opacity var(--duration-short4) var(--easing-standard);
|
|
68
|
+
--icon-size: var(--tab-icon-size, var(--_tab-icon-size));
|
|
69
|
+
--icon-color: var(--_label-text-color);
|
|
70
|
+
}
|
|
71
|
+
.tab .tab-content ::slotted([slot=icon]) {
|
|
72
|
+
color: var(--_label-text-color);
|
|
73
|
+
--icon-size: var(--tab-icon-size, var(--_tab-icon-size));
|
|
74
|
+
--icon-color: var(--_label-text-color);
|
|
75
|
+
}
|
|
76
|
+
.tab .tab-content ::slotted([slot=badge]) {
|
|
77
|
+
--badge-color: var(--_tab-badge-color, var(--color-error));
|
|
78
|
+
}
|
|
79
|
+
.tab .indicator {
|
|
80
|
+
position: absolute;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
z-index: 1;
|
|
83
|
+
background: var(--_active-indicator-color);
|
|
84
|
+
border-radius: var(--_active-indicator-shape);
|
|
85
|
+
transform: scaleX(0.6);
|
|
86
|
+
transform-origin: center bottom;
|
|
87
|
+
height: var(--_active-indicator-height);
|
|
88
|
+
inset: auto 0px 0px;
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transition: transform var(--duration-medium2) var(--easing-standard), opacity var(--duration-short4) var(--easing-standard);
|
|
91
|
+
will-change: transform, opacity;
|
|
92
|
+
}
|
|
93
|
+
.tab .background {
|
|
94
|
+
position: absolute;
|
|
95
|
+
inset: 0;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
z-index: 0;
|
|
98
|
+
opacity: 0;
|
|
99
|
+
transform: scaleX(0.6);
|
|
100
|
+
transform-origin: center center;
|
|
101
|
+
transition: transform var(--duration-medium2) var(--easing-standard), opacity var(--duration-short4) var(--easing-standard), background-color var(--duration-short4) var(--easing-standard);
|
|
102
|
+
will-change: transform, opacity;
|
|
103
|
+
}
|
|
104
|
+
.tab.has-content .slot-container {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex: none;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
}
|
|
109
|
+
.tab.disabled {
|
|
110
|
+
cursor: not-allowed;
|
|
111
|
+
}
|
|
112
|
+
.tab {
|
|
113
|
+
/*
|
|
114
|
+
Background layers
|
|
115
|
+
*/
|
|
116
|
+
}
|
|
117
|
+
.tab .focus-ring {
|
|
118
|
+
z-index: 2;
|
|
119
|
+
--focus-ring-container-shape-start-start: var(--_container-shape-start-start);
|
|
120
|
+
--focus-ring-container-shape-start-end: var(--_container-shape-start-end);
|
|
121
|
+
--focus-ring-container-shape-end-start: var(--_container-shape-end-start);
|
|
122
|
+
--focus-ring-container-shape-end-end: var(--_container-shape-end-end);
|
|
123
|
+
--focus-ring-container-shape-variant: var(--_container-corner-shape-variant);
|
|
124
|
+
}
|
|
125
|
+
.tab .ripple {
|
|
126
|
+
corner-shape: var(--_container-corner-shape-variant);
|
|
127
|
+
--ripple-state-opacity: var(--_container-state-opacity, 0);
|
|
128
|
+
--ripple-pressed-color: var(--_container-state-color);
|
|
129
|
+
}
|
|
130
|
+
.tab .outline {
|
|
131
|
+
z-index: 1;
|
|
132
|
+
display: none;
|
|
133
|
+
position: absolute;
|
|
134
|
+
width: 100%;
|
|
135
|
+
height: 100%;
|
|
136
|
+
pointer-events: none;
|
|
137
|
+
border: var(--_outline-width) solid var(--_outline-color);
|
|
138
|
+
border-start-start-radius: var(--_container-shape-start-start);
|
|
139
|
+
border-start-end-radius: var(--_container-shape-start-end);
|
|
140
|
+
border-end-start-radius: var(--_container-shape-end-start);
|
|
141
|
+
border-end-end-radius: var(--_container-shape-end-end);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host-context([variant=primary]) .tab {
|
|
145
|
+
--_container-padding: 1rem;
|
|
146
|
+
--_tab-icon-size: 1.5rem;
|
|
147
|
+
--_tab-icon-label-spacing: 0.5rem;
|
|
148
|
+
--_tab-badge-label-spacing: 0.25rem;
|
|
149
|
+
--_tab-badge-color: var(--color-error);
|
|
150
|
+
--_label-text-color: var(--color-on-surface);
|
|
151
|
+
--_container-state-color: var(--_label-text-color);
|
|
152
|
+
--_container-shape-start-start: var(--shape-corner-small);
|
|
153
|
+
--_container-shape-start-end: var(--shape-corner-small);
|
|
154
|
+
--_container-shape-end-start: var(--shape-corner-small);
|
|
155
|
+
--_container-shape-end-end: var(--shape-corner-small);
|
|
156
|
+
--_active-indicator-color: var(--color-primary);
|
|
157
|
+
--_active-indicator-shape: 3px 3px 0 0;
|
|
158
|
+
--_active-indicator-height: 2px;
|
|
159
|
+
}
|
|
160
|
+
:host-context([variant=primary]) .tab .focus-ring {
|
|
161
|
+
inset: 3px 3px 4px 3px;
|
|
162
|
+
}
|
|
163
|
+
:host-context([variant=primary]) .tab .tab-content {
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
}
|
|
166
|
+
:host-context([variant=primary]) .tab .tab-content .icon-section {
|
|
167
|
+
position: relative;
|
|
168
|
+
}
|
|
169
|
+
:host-context([variant=primary]) .tab .tab-content .icon-section ::slotted([slot=badge]) {
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: 0;
|
|
172
|
+
left: calc(100% - 3px);
|
|
173
|
+
}
|
|
174
|
+
:host-context([variant=primary]) .tab .tab-content .icon-section ::slotted([slot=badge][value]) {
|
|
175
|
+
position: absolute;
|
|
176
|
+
top: 0;
|
|
177
|
+
left: calc(100% - 6px);
|
|
178
|
+
}
|
|
179
|
+
:host-context([variant=primary]) .tab.active .indicator {
|
|
180
|
+
opacity: 1;
|
|
181
|
+
transform: scaleX(1);
|
|
182
|
+
}
|
|
183
|
+
:host-context([variant=primary]) .tab.active .focus-ring {
|
|
184
|
+
inset: 3px 3px calc(4px + var(--_active-indicator-height)) 3px;
|
|
185
|
+
}
|
|
186
|
+
:host-context([variant=primary]) .tab:hover:not(:where(.disabled)) {
|
|
187
|
+
--_container-state-opacity: 0.08;
|
|
188
|
+
}
|
|
189
|
+
:host-context([variant=primary]) .tab:active:not(:where(.disabled)) {
|
|
190
|
+
--_container-state-opacity: 0.12;
|
|
191
|
+
}
|
|
192
|
+
:host-context([variant=primary]) .tab.disabled {
|
|
193
|
+
--_label-text-color: var(--color-on-surface);
|
|
194
|
+
--_label-text-opacity: 0.38;
|
|
195
|
+
}
|
|
196
|
+
:host-context([variant=primary]) .tab.disabled .ripple {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:host-context([variant=secondary]) .tab {
|
|
201
|
+
--_container-padding: 1rem;
|
|
202
|
+
--_tab-icon-size: 1.25rem;
|
|
203
|
+
--_tab-icon-label-spacing: 0.5rem;
|
|
204
|
+
--_tab-badge-label-spacing: 0.25rem;
|
|
205
|
+
--_tab-badge-color: var(--color-error);
|
|
206
|
+
--_label-text-color: var(--color-on-surface);
|
|
207
|
+
--_container-state-color: var(--_label-text-color);
|
|
208
|
+
--_container-shape-start-start: var(--shape-corner-small);
|
|
209
|
+
--_container-shape-start-end: var(--shape-corner-small);
|
|
210
|
+
--_container-shape-end-start: var(--shape-corner-small);
|
|
211
|
+
--_container-shape-end-end: var(--shape-corner-small);
|
|
212
|
+
--_active-indicator-color: var(--color-primary);
|
|
213
|
+
--_active-indicator-shape: 0;
|
|
214
|
+
--_active-indicator-height: 2px;
|
|
215
|
+
}
|
|
216
|
+
:host-context([variant=secondary]) .tab .focus-ring {
|
|
217
|
+
inset: 3px 3px 4px 3px;
|
|
218
|
+
}
|
|
219
|
+
:host-context([variant=secondary]) .tab .tab-content ::slotted([slot=icon]) {
|
|
220
|
+
margin-inline-end: var(--_tab-icon-label-spacing);
|
|
221
|
+
}
|
|
222
|
+
:host-context([variant=secondary]) .tab .tab-content ::slotted([slot=badge]) {
|
|
223
|
+
margin-inline-start: var(--_tab-badge-label-spacing);
|
|
224
|
+
}
|
|
225
|
+
:host-context([variant=secondary]) .tab.active .indicator {
|
|
226
|
+
opacity: 1;
|
|
227
|
+
transform: scaleX(1);
|
|
228
|
+
}
|
|
229
|
+
:host-context([variant=secondary]) .tab.active .focus-ring {
|
|
230
|
+
inset: 3px 3px calc(4px + var(--_active-indicator-height)) 3px;
|
|
231
|
+
}
|
|
232
|
+
:host-context([variant=secondary]) .tab:hover:not(:where(.disabled)) {
|
|
233
|
+
--_container-state-opacity: 0.08;
|
|
234
|
+
}
|
|
235
|
+
:host-context([variant=secondary]) .tab:active:not(:where(.disabled)) {
|
|
236
|
+
--_container-state-opacity: 0.12;
|
|
237
|
+
}
|
|
238
|
+
:host-context([variant=secondary]) .tab.disabled {
|
|
239
|
+
--_label-text-color: var(--color-on-surface);
|
|
240
|
+
--_label-text-opacity: 0.38;
|
|
241
|
+
}
|
|
242
|
+
:host-context([variant=secondary]) .tab.disabled .ripple {
|
|
243
|
+
display: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
:host-context([variant=filled]) .tab {
|
|
247
|
+
--_container-padding: 1rem;
|
|
248
|
+
--_tab-icon-size: 1.25rem;
|
|
249
|
+
--_tab-icon-label-spacing: 0.5rem;
|
|
250
|
+
--_tab-badge-label-spacing: 0.25rem;
|
|
251
|
+
--_tab-badge-color: var(--color-error);
|
|
252
|
+
--_label-text-color: var(--color-on-surface-variant);
|
|
253
|
+
--_container-state-color: var(--color-on-surface);
|
|
254
|
+
--_container-shape-start-start: var(--shape-corner-medium);
|
|
255
|
+
--_container-shape-start-end: var(--shape-corner-medium);
|
|
256
|
+
--_container-shape-end-start: var(--shape-corner-medium);
|
|
257
|
+
--_container-shape-end-end: var(--shape-corner-medium);
|
|
258
|
+
--_container-corner-shape-variant: squircle;
|
|
259
|
+
--_active-surface-color: var(--color-surface);
|
|
260
|
+
}
|
|
261
|
+
:host-context([variant=filled]) .tab .focus-ring {
|
|
262
|
+
inset: 2px;
|
|
263
|
+
}
|
|
264
|
+
:host-context([variant=filled]) .tab .tab-content ::slotted([slot=icon]) {
|
|
265
|
+
margin-inline-end: var(--_tab-icon-label-spacing);
|
|
266
|
+
}
|
|
267
|
+
:host-context([variant=filled]) .tab .tab-content ::slotted([slot=badge]) {
|
|
268
|
+
margin-inline-start: var(--_tab-badge-label-spacing);
|
|
269
|
+
}
|
|
270
|
+
:host-context([variant=filled]) .tab .indicator {
|
|
271
|
+
display: none;
|
|
272
|
+
}
|
|
273
|
+
:host-context([variant=filled]) .tab .ripple {
|
|
274
|
+
border-start-start-radius: var(--_container-shape-start-start);
|
|
275
|
+
border-start-end-radius: var(--_container-shape-start-end);
|
|
276
|
+
border-end-start-radius: var(--_container-shape-end-start);
|
|
277
|
+
border-end-end-radius: var(--_container-shape-end-end);
|
|
278
|
+
}
|
|
279
|
+
:host-context([variant=filled]) .tab .background {
|
|
280
|
+
corner-shape: var(--_container-corner-shape-variant);
|
|
281
|
+
border-start-start-radius: var(--_container-shape-start-start);
|
|
282
|
+
border-start-end-radius: var(--_container-shape-start-end);
|
|
283
|
+
border-end-start-radius: var(--_container-shape-end-start);
|
|
284
|
+
border-end-end-radius: var(--_container-shape-end-end);
|
|
285
|
+
background: var(--_active-surface-color);
|
|
286
|
+
}
|
|
287
|
+
:host-context([variant=filled]) .tab.active {
|
|
288
|
+
--_label-text-color: var(--color-on-surface);
|
|
289
|
+
}
|
|
290
|
+
:host-context([variant=filled]) .tab.active .background {
|
|
291
|
+
opacity: 1;
|
|
292
|
+
transform: scaleX(1);
|
|
293
|
+
}
|
|
294
|
+
:host-context([variant=filled]) .tab.active .ripple {
|
|
295
|
+
display: none;
|
|
296
|
+
}
|
|
297
|
+
:host-context([variant=filled]) .tab:hover:not(:where(.disabled)) {
|
|
298
|
+
--_container-state-opacity: 0.08;
|
|
299
|
+
}
|
|
300
|
+
:host-context([variant=filled]) .tab:active:not(:where(.disabled)) {
|
|
301
|
+
--_container-state-opacity: 0.12;
|
|
302
|
+
}
|
|
303
|
+
:host-context([variant=filled]) .tab.disabled {
|
|
304
|
+
--_label-text-color: var(--color-on-surface);
|
|
305
|
+
--_label-text-opacity: 0.38;
|
|
306
|
+
}
|
|
307
|
+
:host-context([variant=filled]) .tab.disabled .ripple {
|
|
308
|
+
display: none;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
:host-context([variant=contained]) .tab {
|
|
312
|
+
--_container-padding: 1rem;
|
|
313
|
+
--_tab-icon-size: 1.25rem;
|
|
314
|
+
--_tab-icon-label-spacing: 0.5rem;
|
|
315
|
+
--_tab-badge-label-spacing: 0.25rem;
|
|
316
|
+
--_tab-badge-color: var(--color-error);
|
|
317
|
+
--_label-text-color: var(--color-on-surface);
|
|
318
|
+
--_container-state-color: var(--color-primary);
|
|
319
|
+
--_container-shape-start-start: var(--shape-corner-small);
|
|
320
|
+
--_container-shape-start-end: var(--shape-corner-small);
|
|
321
|
+
--_container-shape-end-start: var(--shape-corner-small);
|
|
322
|
+
--_container-shape-end-end: var(--shape-corner-small);
|
|
323
|
+
--_container-corner-shape-variant: squircle;
|
|
324
|
+
--_active-surface-color: var(--color-secondary-container);
|
|
325
|
+
}
|
|
326
|
+
:host-context([variant=contained]) .tab .focus-ring {
|
|
327
|
+
inset: 2px;
|
|
328
|
+
}
|
|
329
|
+
:host-context([variant=contained]) .tab .tab-content ::slotted([slot=icon]) {
|
|
330
|
+
margin-inline-end: var(--_tab-icon-label-spacing);
|
|
331
|
+
}
|
|
332
|
+
:host-context([variant=contained]) .tab .tab-content ::slotted([slot=badge]) {
|
|
333
|
+
margin-inline-start: var(--_tab-badge-label-spacing);
|
|
334
|
+
}
|
|
335
|
+
:host-context([variant=contained]) .tab .indicator {
|
|
336
|
+
display: none;
|
|
337
|
+
}
|
|
338
|
+
:host-context([variant=contained]) .tab .ripple {
|
|
339
|
+
border-start-start-radius: var(--_container-shape-start-start);
|
|
340
|
+
border-start-end-radius: var(--_container-shape-start-end);
|
|
341
|
+
border-end-start-radius: var(--_container-shape-end-start);
|
|
342
|
+
border-end-end-radius: var(--_container-shape-end-end);
|
|
343
|
+
}
|
|
344
|
+
:host-context([variant=contained]) .tab .background {
|
|
345
|
+
corner-shape: var(--_container-corner-shape-variant);
|
|
346
|
+
border-start-start-radius: var(--_container-shape-start-start);
|
|
347
|
+
border-start-end-radius: var(--_container-shape-start-end);
|
|
348
|
+
border-end-start-radius: var(--_container-shape-end-start);
|
|
349
|
+
border-end-end-radius: var(--_container-shape-end-end);
|
|
350
|
+
background: var(--_active-surface-color);
|
|
351
|
+
}
|
|
352
|
+
:host-context([variant=contained]) .tab.active {
|
|
353
|
+
--_label-text-color: var(--color-on-secondary-container);
|
|
354
|
+
}
|
|
355
|
+
:host-context([variant=contained]) .tab.active .background {
|
|
356
|
+
opacity: 1;
|
|
357
|
+
transform: scaleX(1);
|
|
358
|
+
}
|
|
359
|
+
:host-context([variant=contained]) .tab:hover:not(:where(.disabled)) {
|
|
360
|
+
--_container-state-opacity: 0.08;
|
|
361
|
+
}
|
|
362
|
+
:host-context([variant=contained]) .tab:active:not(:where(.disabled)) {
|
|
363
|
+
--_container-state-opacity: 0.12;
|
|
364
|
+
}
|
|
365
|
+
:host-context([variant=contained]) .tab.disabled {
|
|
366
|
+
--_label-text-color: var(--color-on-surface);
|
|
367
|
+
--_label-text-opacity: 0.38;
|
|
368
|
+
}
|
|
369
|
+
:host-context([variant=contained]) .tab.disabled .ripple {
|
|
370
|
+
display: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@media (prefers-reduced-motion: reduce) {
|
|
374
|
+
.tab .tab-content,
|
|
375
|
+
.tab .indicator,
|
|
376
|
+
.tab .background {
|
|
377
|
+
transition: none;
|
|
378
|
+
}
|
|
379
|
+
}`;
|
|
380
|
+
|
|
381
|
+
var _Tab_id;
|
|
382
|
+
/**
|
|
383
|
+
* @label Tab
|
|
384
|
+
* @tag wc-tab
|
|
385
|
+
* @rawTag tab
|
|
386
|
+
*
|
|
387
|
+
* @summary A tab component for use within tabs.
|
|
388
|
+
* @overview
|
|
389
|
+
* <p>Tab represents an individual tab in a tabs component.</p>
|
|
390
|
+
*
|
|
391
|
+
* @example
|
|
392
|
+
* ```html
|
|
393
|
+
* <wc-tab>Tab Label</wc-tab>
|
|
394
|
+
* ```
|
|
395
|
+
* @tags navigation
|
|
396
|
+
*/
|
|
397
|
+
let Tab = class Tab extends i$1 {
|
|
398
|
+
focus() {
|
|
399
|
+
this.tabElement?.focus();
|
|
400
|
+
}
|
|
401
|
+
blur() {
|
|
402
|
+
this.tabElement?.blur();
|
|
403
|
+
}
|
|
404
|
+
constructor() {
|
|
405
|
+
super();
|
|
406
|
+
_Tab_id.set(this, crypto.randomUUID());
|
|
407
|
+
this.active = false;
|
|
408
|
+
this.disabled = false;
|
|
409
|
+
this.disabledReason = '';
|
|
410
|
+
/**
|
|
411
|
+
* Sets or retrieves the window or frame at which to target content.
|
|
412
|
+
*/
|
|
413
|
+
this.target = '_self';
|
|
414
|
+
this.hasFocus = false;
|
|
415
|
+
this.slotHasContent = false;
|
|
416
|
+
this.slotHasIcon = false;
|
|
417
|
+
this.slotHasBadge = false;
|
|
418
|
+
this._tabindex = 0;
|
|
419
|
+
this.__dispatchClickWithThrottle = event => {
|
|
420
|
+
this.__dispatchClick(event);
|
|
421
|
+
};
|
|
422
|
+
this.__dispatchClick = (event) => {
|
|
423
|
+
// If the button is soft-disabled or a disabled link, we need to explicitly
|
|
424
|
+
// prevent the click from propagating to other event listeners as well as
|
|
425
|
+
// prevent the default action.
|
|
426
|
+
if (this.disabled && this.href) {
|
|
427
|
+
event.stopImmediatePropagation();
|
|
428
|
+
event.preventDefault();
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
if (!isActivationClick(event) || !this.tabElement) {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
this.focus();
|
|
435
|
+
dispatchActivationClick(this.tabElement);
|
|
436
|
+
};
|
|
437
|
+
this._tabindex = 0;
|
|
438
|
+
this.addEventListener('click', this.__dispatchClickWithThrottle);
|
|
439
|
+
}
|
|
440
|
+
firstUpdated() {
|
|
441
|
+
if (typeof this.throttleDelay === 'number') {
|
|
442
|
+
this.__dispatchClickWithThrottle = throttle(this.__dispatchClick, this.throttleDelay);
|
|
443
|
+
}
|
|
444
|
+
observerSlotChangesWithCallback(this.renderRoot.querySelector('slot:not([name])'), hasContent => {
|
|
445
|
+
this.slotHasContent = hasContent;
|
|
446
|
+
this.requestUpdate();
|
|
447
|
+
});
|
|
448
|
+
observerSlotChangesWithCallback(this.renderRoot.querySelector('slot[name="icon"]'), hasContent => {
|
|
449
|
+
this.slotHasIcon = hasContent;
|
|
450
|
+
this.requestUpdate();
|
|
451
|
+
});
|
|
452
|
+
observerSlotChangesWithCallback(this.renderRoot.querySelector('slot[name="badge"]'), hasContent => {
|
|
453
|
+
this.slotHasBadge = hasContent;
|
|
454
|
+
this.requestUpdate();
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
__getParentTabsVariant() {
|
|
458
|
+
return this.closest('wc-tabs')?.variant ?? 'primary';
|
|
459
|
+
}
|
|
460
|
+
// private handleKeyDown(evt: KeyboardEvent) {
|
|
461
|
+
// if (this.disabled || this.showLoader) return;
|
|
462
|
+
// if (evt.key === 'Enter' || evt.key === ' ') {
|
|
463
|
+
// evt.preventDefault();
|
|
464
|
+
// this.isActive = true;
|
|
465
|
+
// this.dispatchTabClick();
|
|
466
|
+
// }
|
|
467
|
+
// }
|
|
468
|
+
render() {
|
|
469
|
+
const variant = this.__getParentTabsVariant();
|
|
470
|
+
const cssClasses = {
|
|
471
|
+
tab: true,
|
|
472
|
+
'tab-element': true,
|
|
473
|
+
disabled: this.disabled,
|
|
474
|
+
active: this.active,
|
|
475
|
+
[`variant-${variant}`]: true,
|
|
476
|
+
'has-content': this.slotHasContent,
|
|
477
|
+
'has-icon': this.slotHasIcon,
|
|
478
|
+
'has-badge': this.slotHasBadge,
|
|
479
|
+
};
|
|
480
|
+
if (!isLink(this)) {
|
|
481
|
+
return b `<button
|
|
482
|
+
id="button"
|
|
483
|
+
class=${e$1(cssClasses)}
|
|
484
|
+
tabindex="0"
|
|
485
|
+
?aria-describedby=${this.__getDisabledReasonID()}
|
|
486
|
+
aria-disabled=${`${this.disabled}`}
|
|
487
|
+
?disabled=${this.disabled}
|
|
488
|
+
${spread(this.configAria)}
|
|
489
|
+
>
|
|
490
|
+
${this.renderTabContent(variant)}
|
|
491
|
+
</button>`;
|
|
492
|
+
}
|
|
493
|
+
return b `<a
|
|
494
|
+
class=${e$1(cssClasses)}
|
|
495
|
+
id="button"
|
|
496
|
+
tabindex="0"
|
|
497
|
+
href=${this.href}
|
|
498
|
+
target=${this.target}
|
|
499
|
+
role="button"
|
|
500
|
+
?aria-describedby=${this.__getDisabledReasonID()}
|
|
501
|
+
aria-disabled=${`${this.disabled}`}
|
|
502
|
+
${spread(this.configAria)}
|
|
503
|
+
>
|
|
504
|
+
${this.renderTabContent(variant)}
|
|
505
|
+
</a>`;
|
|
506
|
+
}
|
|
507
|
+
renderTabContent(variant) {
|
|
508
|
+
switch (variant) {
|
|
509
|
+
case 'secondary':
|
|
510
|
+
return this.renderSecondaryTabContent();
|
|
511
|
+
case 'contained':
|
|
512
|
+
return this.renderContainedTabContent();
|
|
513
|
+
case 'filled':
|
|
514
|
+
return this.renderFilledTabContent();
|
|
515
|
+
case 'primary':
|
|
516
|
+
default:
|
|
517
|
+
return this.renderPrimaryTabContent();
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
renderPrimaryTabContent() {
|
|
521
|
+
return b `
|
|
522
|
+
<wc-focus-ring class="focus-ring" for="button"></wc-focus-ring>
|
|
523
|
+
<wc-elevation class="elevation"></wc-elevation>
|
|
524
|
+
<div class="background"></div>
|
|
525
|
+
<div class="outline"></div>
|
|
526
|
+
<wc-ripple class="ripple"></wc-ripple>
|
|
527
|
+
|
|
528
|
+
<div class="tab-content">
|
|
529
|
+
<div class="icon-section">
|
|
530
|
+
<slot name="badge"></slot>
|
|
531
|
+
<slot name="icon"></slot>
|
|
532
|
+
</div>
|
|
533
|
+
<div class="slot-container">
|
|
534
|
+
<slot></slot>
|
|
535
|
+
</div>
|
|
536
|
+
|
|
537
|
+
<div class="indicator"></div>
|
|
538
|
+
</div>
|
|
539
|
+
|
|
540
|
+
${this.__renderDisabledReason()}
|
|
541
|
+
`;
|
|
542
|
+
}
|
|
543
|
+
renderSecondaryTabContent() {
|
|
544
|
+
return b `
|
|
545
|
+
<wc-focus-ring class="focus-ring" for="button"></wc-focus-ring>
|
|
546
|
+
<wc-elevation class="elevation"></wc-elevation>
|
|
547
|
+
<div class="background"></div>
|
|
548
|
+
<div class="outline"></div>
|
|
549
|
+
<wc-ripple class="ripple"></wc-ripple>
|
|
550
|
+
|
|
551
|
+
<div class="tab-content">
|
|
552
|
+
<slot name="icon"></slot>
|
|
553
|
+
|
|
554
|
+
<div class="slot-container">
|
|
555
|
+
<slot></slot>
|
|
556
|
+
</div>
|
|
557
|
+
|
|
558
|
+
<slot name="badge"></slot>
|
|
559
|
+
</div>
|
|
560
|
+
|
|
561
|
+
<div class="indicator"></div>
|
|
562
|
+
|
|
563
|
+
${this.__renderDisabledReason()}
|
|
564
|
+
`;
|
|
565
|
+
}
|
|
566
|
+
renderContainedTabContent() {
|
|
567
|
+
return this.renderSegmentedTabContent();
|
|
568
|
+
}
|
|
569
|
+
renderFilledTabContent() {
|
|
570
|
+
return this.renderSegmentedTabContent();
|
|
571
|
+
}
|
|
572
|
+
renderSegmentedTabContent() {
|
|
573
|
+
return b `
|
|
574
|
+
<wc-focus-ring class="focus-ring" for="button"></wc-focus-ring>
|
|
575
|
+
<wc-elevation class="elevation"></wc-elevation>
|
|
576
|
+
<div class="background"></div>
|
|
577
|
+
<div class="outline"></div>
|
|
578
|
+
<wc-ripple class="ripple"></wc-ripple>
|
|
579
|
+
|
|
580
|
+
<div class="tab-content">
|
|
581
|
+
<slot name="icon"></slot>
|
|
582
|
+
|
|
583
|
+
<div class="slot-container">
|
|
584
|
+
<slot></slot>
|
|
585
|
+
</div>
|
|
586
|
+
|
|
587
|
+
<slot name="badge"></slot>
|
|
588
|
+
</div>
|
|
589
|
+
|
|
590
|
+
${this.__renderDisabledReason()}
|
|
591
|
+
`;
|
|
592
|
+
}
|
|
593
|
+
__getDisabledReasonID() {
|
|
594
|
+
return this.disabled && this.disabledReason
|
|
595
|
+
? `disabled-reason-${__classPrivateFieldGet(this, _Tab_id, "f")}`
|
|
596
|
+
: A;
|
|
597
|
+
}
|
|
598
|
+
__renderDisabledReason() {
|
|
599
|
+
const disabledReasonID = this.__getDisabledReasonID();
|
|
600
|
+
if (disabledReasonID)
|
|
601
|
+
return b `<div
|
|
602
|
+
id="disabled-reason-${__classPrivateFieldGet(this, _Tab_id, "f")}"
|
|
603
|
+
role="tooltip"
|
|
604
|
+
aria-label=${this.disabledReason}
|
|
605
|
+
class="screen-reader-only"
|
|
606
|
+
>
|
|
607
|
+
{this.disabledReason}
|
|
608
|
+
</div>`;
|
|
609
|
+
return A;
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
_Tab_id = new WeakMap();
|
|
613
|
+
Tab.styles = [css_248z];
|
|
614
|
+
__decorate([
|
|
615
|
+
n({ type: Boolean, reflect: true })
|
|
616
|
+
], Tab.prototype, "active", void 0);
|
|
617
|
+
__decorate([
|
|
618
|
+
n({ type: Boolean, reflect: true })
|
|
619
|
+
], Tab.prototype, "disabled", void 0);
|
|
620
|
+
__decorate([
|
|
621
|
+
n({ type: String })
|
|
622
|
+
], Tab.prototype, "disabledReason", void 0);
|
|
623
|
+
__decorate([
|
|
624
|
+
n({ type: String })
|
|
625
|
+
], Tab.prototype, "value", void 0);
|
|
626
|
+
__decorate([
|
|
627
|
+
n({ reflect: true })
|
|
628
|
+
], Tab.prototype, "configAria", void 0);
|
|
629
|
+
__decorate([
|
|
630
|
+
n()
|
|
631
|
+
], Tab.prototype, "target", void 0);
|
|
632
|
+
__decorate([
|
|
633
|
+
n({ type: String, reflect: true })
|
|
634
|
+
], Tab.prototype, "href", void 0);
|
|
635
|
+
__decorate([
|
|
636
|
+
n()
|
|
637
|
+
], Tab.prototype, "throttleDelay", void 0);
|
|
638
|
+
__decorate([
|
|
639
|
+
r()
|
|
640
|
+
], Tab.prototype, "hasFocus", void 0);
|
|
641
|
+
__decorate([
|
|
642
|
+
r()
|
|
643
|
+
], Tab.prototype, "slotHasContent", void 0);
|
|
644
|
+
__decorate([
|
|
645
|
+
r()
|
|
646
|
+
], Tab.prototype, "slotHasIcon", void 0);
|
|
647
|
+
__decorate([
|
|
648
|
+
r()
|
|
649
|
+
], Tab.prototype, "slotHasBadge", void 0);
|
|
650
|
+
__decorate([
|
|
651
|
+
e('.tab-element')
|
|
652
|
+
], Tab.prototype, "tabElement", void 0);
|
|
653
|
+
Tab = __decorate([
|
|
654
|
+
IndividualComponent
|
|
655
|
+
], Tab);
|
|
656
|
+
|
|
657
|
+
export { Tab };
|
|
658
|
+
//# sourceMappingURL=tab.js.map
|
package/dist/tab.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab.js","sources":["../../src/tabs/tab.ts"],"sourcesContent":["import { html, LitElement, nothing } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport {\n dispatchActivationClick,\n isActivationClick,\n} from '@/__internal/utils/dispatch-event-utils.js';\nimport { observerSlotChangesWithCallback } from '@/__internal/utils/observe-slot-change.js';\nimport { throttle } from '@/__internal/utils/throttle.js';\nimport { isLink } from '@/__internal/utils/is-link.js';\nimport { spread } from '@/__internal/directive/spread.js';\n\nimport styles from './tab.scss';\nimport type { Tabs } from './tabs.js';\nimport IndividualComponent from '@/IndividualComponent.js';\n\n/**\n * @label Tab\n * @tag wc-tab\n * @rawTag tab\n *\n * @summary A tab component for use within tabs.\n * @overview\n * <p>Tab represents an individual tab in a tabs component.</p>\n *\n * @example\n * ```html\n * <wc-tab>Tab Label</wc-tab>\n * ```\n * @tags navigation\n */\n@IndividualComponent\nexport class Tab extends LitElement {\n #id = crypto.randomUUID();\n\n static styles = [styles];\n\n @property({ type: Boolean, reflect: true }) active = false;\n\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n @property({ type: String }) disabledReason = '';\n\n @property({ type: String }) value?: string;\n\n @property({ reflect: true })\n configAria?: { [key: string]: any };\n\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n @property() target: string = '_self';\n\n @property({ type: String, reflect: true }) href?: string;\n\n /**\n * Sets the delay for throttle in milliseconds. When null (default), no throttle is applied.\n */\n @property() throttleDelay?: number;\n\n @state() hasFocus = false;\n\n @state() slotHasContent = false;\n\n @state() slotHasIcon = false;\n\n @state() slotHasBadge = false;\n\n private _tabindex = 0;\n\n @query('.tab-element') readonly tabElement!: HTMLElement | null;\n\n override focus() {\n this.tabElement?.focus();\n }\n\n override blur() {\n this.tabElement?.blur();\n }\n\n constructor() {\n super();\n this._tabindex = 0;\n this.addEventListener('click', this.__dispatchClickWithThrottle);\n }\n\n override firstUpdated() {\n if (typeof this.throttleDelay === 'number') {\n this.__dispatchClickWithThrottle = throttle(\n this.__dispatchClick,\n this.throttleDelay,\n );\n }\n observerSlotChangesWithCallback(\n this.renderRoot.querySelector('slot:not([name])'),\n hasContent => {\n this.slotHasContent = hasContent;\n this.requestUpdate();\n },\n );\n\n observerSlotChangesWithCallback(\n this.renderRoot.querySelector('slot[name=\"icon\"]'),\n hasContent => {\n this.slotHasIcon = hasContent;\n this.requestUpdate();\n },\n );\n\n observerSlotChangesWithCallback(\n this.renderRoot.querySelector('slot[name=\"badge\"]'),\n hasContent => {\n this.slotHasBadge = hasContent;\n this.requestUpdate();\n },\n );\n }\n\n __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void =\n event => {\n this.__dispatchClick(event);\n };\n\n __dispatchClick = (event: MouseEvent | KeyboardEvent) => {\n // If the button is soft-disabled or a disabled link, we need to explicitly\n // prevent the click from propagating to other event listeners as well as\n // prevent the default action.\n if (this.disabled && this.href) {\n event.stopImmediatePropagation();\n event.preventDefault();\n return;\n }\n\n if (!isActivationClick(event) || !this.tabElement) {\n return;\n }\n\n this.focus();\n dispatchActivationClick(this.tabElement);\n };\n\n __getParentTabsVariant(): Tabs['variant'] {\n return (this.closest('wc-tabs') as Tabs | null)?.variant ?? 'primary';\n }\n\n // private handleKeyDown(evt: KeyboardEvent) {\n // if (this.disabled || this.showLoader) return;\n // if (evt.key === 'Enter' || evt.key === ' ') {\n // evt.preventDefault();\n // this.isActive = true;\n // this.dispatchTabClick();\n // }\n // }\n\n render() {\n const variant = this.__getParentTabsVariant();\n\n const cssClasses = {\n tab: true,\n 'tab-element': true,\n disabled: this.disabled,\n active: this.active,\n [`variant-${variant}`]: true,\n 'has-content': this.slotHasContent,\n 'has-icon': this.slotHasIcon,\n 'has-badge': this.slotHasBadge,\n };\n\n if (!isLink(this)) {\n return html`<button\n id=\"button\"\n class=${classMap(cssClasses)}\n tabindex=\"0\"\n ?aria-describedby=${this.__getDisabledReasonID()}\n aria-disabled=${`${this.disabled}`}\n ?disabled=${this.disabled}\n ${spread(this.configAria)}\n >\n ${this.renderTabContent(variant)}\n </button>`;\n }\n\n return html`<a\n class=${classMap(cssClasses)}\n id=\"button\"\n tabindex=\"0\"\n href=${this.href}\n target=${this.target}\n role=\"button\"\n ?aria-describedby=${this.__getDisabledReasonID()}\n aria-disabled=${`${this.disabled}`}\n ${spread(this.configAria)}\n >\n ${this.renderTabContent(variant)}\n </a>`;\n }\n\n renderTabContent(variant: Tabs['variant']) {\n switch (variant) {\n case 'secondary':\n return this.renderSecondaryTabContent();\n case 'contained':\n return this.renderContainedTabContent();\n case 'filled':\n return this.renderFilledTabContent();\n case 'primary':\n default:\n return this.renderPrimaryTabContent();\n }\n }\n\n renderPrimaryTabContent() {\n return html`\n <wc-focus-ring class=\"focus-ring\" for=\"button\"></wc-focus-ring>\n <wc-elevation class=\"elevation\"></wc-elevation>\n <div class=\"background\"></div>\n <div class=\"outline\"></div>\n <wc-ripple class=\"ripple\"></wc-ripple>\n\n <div class=\"tab-content\">\n <div class=\"icon-section\">\n <slot name=\"badge\"></slot>\n <slot name=\"icon\"></slot>\n </div>\n <div class=\"slot-container\">\n <slot></slot>\n </div>\n\n <div class=\"indicator\"></div>\n </div>\n\n ${this.__renderDisabledReason()}\n `;\n }\n\n renderSecondaryTabContent() {\n return html`\n <wc-focus-ring class=\"focus-ring\" for=\"button\"></wc-focus-ring>\n <wc-elevation class=\"elevation\"></wc-elevation>\n <div class=\"background\"></div>\n <div class=\"outline\"></div>\n <wc-ripple class=\"ripple\"></wc-ripple>\n\n <div class=\"tab-content\">\n <slot name=\"icon\"></slot>\n\n <div class=\"slot-container\">\n <slot></slot>\n </div>\n\n <slot name=\"badge\"></slot>\n </div>\n\n <div class=\"indicator\"></div>\n\n ${this.__renderDisabledReason()}\n `;\n }\n\n renderContainedTabContent() {\n return this.renderSegmentedTabContent();\n }\n\n renderFilledTabContent() {\n return this.renderSegmentedTabContent();\n }\n\n renderSegmentedTabContent() {\n return html`\n <wc-focus-ring class=\"focus-ring\" for=\"button\"></wc-focus-ring>\n <wc-elevation class=\"elevation\"></wc-elevation>\n <div class=\"background\"></div>\n <div class=\"outline\"></div>\n <wc-ripple class=\"ripple\"></wc-ripple>\n\n <div class=\"tab-content\">\n <slot name=\"icon\"></slot>\n\n <div class=\"slot-container\">\n <slot></slot>\n </div>\n\n <slot name=\"badge\"></slot>\n </div>\n\n ${this.__renderDisabledReason()}\n `;\n }\n\n __getDisabledReasonID() {\n return this.disabled && this.disabledReason\n ? `disabled-reason-${this.#id}`\n : nothing;\n }\n\n __renderDisabledReason() {\n const disabledReasonID = this.__getDisabledReasonID();\n if (disabledReasonID)\n return html`<div\n id=\"disabled-reason-${this.#id}\"\n role=\"tooltip\"\n aria-label=${this.disabledReason}\n class=\"screen-reader-only\"\n >\n {this.disabledReason}\n </div>`;\n return nothing;\n }\n}\n"],"names":["LitElement","html","classMap","nothing","styles","property","state","query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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