@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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* @label App Bar
|
|
4
|
+
* @tag wc-app-bar
|
|
5
|
+
* @rawTag app-bar
|
|
6
|
+
*
|
|
7
|
+
* @summary A top app bar for page-level navigation and actions.
|
|
8
|
+
* @overview
|
|
9
|
+
* <p>The app bar component implements the top app bar pattern. It provides a
|
|
10
|
+
* consistent header for screens, housing a navigation icon, a page title/headline, and
|
|
11
|
+
* optional trailing action icons.</p>
|
|
12
|
+
*
|
|
13
|
+
* <p>Four size variants are available: <strong>small</strong> (64dp, single-row),
|
|
14
|
+
* <strong>center-aligned</strong> (64dp, centred headline), <strong>medium</strong>
|
|
15
|
+
* (112dp, headline below the row), and <strong>large</strong> (152dp, large headline).</p>
|
|
16
|
+
*
|
|
17
|
+
* <p>Use the <code>leading</code> slot for a navigation icon (e.g. a hamburger or back
|
|
18
|
+
* button), the default slot for the headline text, and the <code>trailing</code> slot for
|
|
19
|
+
* action icon buttons.</p>
|
|
20
|
+
*
|
|
21
|
+
* @slot leading - Navigation icon placed at the start of the bar.
|
|
22
|
+
* @slot - Headline / title text.
|
|
23
|
+
* @slot trailing - Trailing action icon buttons placed at the end of the bar.
|
|
24
|
+
*
|
|
25
|
+
* @cssprop --app-bar-container-color - Background color of the app bar.
|
|
26
|
+
* @cssprop --app-bar-container-height - Height of the bar in small / center-aligned variants.
|
|
27
|
+
* @cssprop --app-bar-headline-color - Color of the headline text.
|
|
28
|
+
* @cssprop --app-bar-leading-icon-color - Color of the leading slot icons.
|
|
29
|
+
* @cssprop --app-bar-trailing-icon-color - Color of the trailing slot icons.
|
|
30
|
+
* @cssprop --app-bar-shadow - Box-shadow applied when the bar is scrolled / elevated.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```html
|
|
34
|
+
* <!-- Small app bar (default) -->
|
|
35
|
+
* <wc-app-bar>
|
|
36
|
+
* <wc-icon-button slot="leading" variant="text"><wc-icon name="menu"></wc-icon></wc-icon-button>
|
|
37
|
+
* Page Title
|
|
38
|
+
* <wc-icon-button slot="trailing" variant="text"><wc-icon name="search"></wc-icon></wc-icon-button>
|
|
39
|
+
* <wc-icon-button slot="trailing" variant="text"><wc-icon name="more_vert"></wc-icon></wc-icon-button>
|
|
40
|
+
* </wc-app-bar>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```html
|
|
45
|
+
* <!-- Center-aligned app bar -->
|
|
46
|
+
* <wc-app-bar variant="center-aligned">
|
|
47
|
+
* <wc-icon-button slot="leading" variant="text"><wc-icon name="arrow_back"></wc-icon></wc-icon-button>
|
|
48
|
+
* Details
|
|
49
|
+
* <wc-icon-button slot="trailing" variant="text"><wc-icon name="more_vert"></wc-icon></wc-icon-button>
|
|
50
|
+
* </wc-app-bar>
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```html
|
|
55
|
+
* <!-- Medium app bar -->
|
|
56
|
+
* <wc-app-bar variant="medium">
|
|
57
|
+
* <wc-icon-button slot="leading" variant="text"><wc-icon name="menu"></wc-icon></wc-icon-button>
|
|
58
|
+
* Medium Headline
|
|
59
|
+
* <wc-icon-button slot="trailing" variant="text"><wc-icon name="search"></wc-icon></wc-icon-button>
|
|
60
|
+
* </wc-app-bar>
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```html
|
|
65
|
+
* <!-- Large app bar -->
|
|
66
|
+
* <wc-app-bar variant="large">
|
|
67
|
+
* <wc-icon-button slot="leading" variant="text"><wc-icon name="arrow_back"></wc-icon></wc-icon-button>
|
|
68
|
+
* Large Headline
|
|
69
|
+
* <wc-icon-button slot="trailing" variant="text"><wc-icon name="more_vert"></wc-icon></wc-icon-button>
|
|
70
|
+
* </wc-app-bar>
|
|
71
|
+
* ```
|
|
72
|
+
* @tags navigation display
|
|
73
|
+
*/
|
|
74
|
+
export declare class AppBar extends LitElement {
|
|
75
|
+
static styles: import("lit").CSSResultGroup[];
|
|
76
|
+
/**
|
|
77
|
+
* Visual variant of the app bar.
|
|
78
|
+
* - `"small"`: 64dp single-row bar with leading, title, and trailing (default).
|
|
79
|
+
* - `"center-aligned"`: 64dp single-row bar with a centred headline.
|
|
80
|
+
* - `"medium"`: Two-row bar (64dp top row + 48dp headline row).
|
|
81
|
+
* - `"large"`: Two-row bar with a larger headline (64dp top row + 88dp headline row).
|
|
82
|
+
*/
|
|
83
|
+
variant: 'small' | 'center-aligned' | 'medium' | 'large';
|
|
84
|
+
/**
|
|
85
|
+
* Whether the bar is in its scrolled state, which adds a shadow and optionally
|
|
86
|
+
* changes the container color to indicate elevation above page content.
|
|
87
|
+
*/
|
|
88
|
+
scrolled: boolean;
|
|
89
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
90
|
+
private __renderSingleRow;
|
|
91
|
+
private __renderTwoRow;
|
|
92
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AppBar } from './app-bar.js';
|
|
@@ -20,7 +20,9 @@ import { LitElement } from 'lit';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class Avatar extends LitElement {
|
|
22
22
|
static styles: import("lit").CSSResultGroup[];
|
|
23
|
+
/** Full name of the person. Used to derive initials when no `src` is provided. */
|
|
23
24
|
name: string;
|
|
25
|
+
/** URL of the avatar image. When provided, the image is displayed instead of initials. */
|
|
24
26
|
src?: string;
|
|
25
27
|
render(): import("lit-html").TemplateResult<1>;
|
|
26
28
|
private __getInitials;
|
|
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
* @label Bottom Sheet
|
|
4
4
|
* @tag wc-bottom-sheet
|
|
5
5
|
* @rawTag bottom-sheet
|
|
6
|
-
* @summary Bottom sheets slide up from the bottom of the screen to reveal additional content. Supports standard and modal variants
|
|
6
|
+
* @summary Bottom sheets slide up from the bottom of the screen to reveal additional content. Supports standard and modal variants.
|
|
7
7
|
*
|
|
8
8
|
* @cssprop --bottom-sheet-container-color - Background color of the sheet container.
|
|
9
9
|
* @cssprop --bottom-sheet-scrim-color - Color of the modal scrim overlay.
|
|
@@ -29,6 +29,7 @@ export declare class BreadcrumbItem extends LitElement {
|
|
|
29
29
|
* Custom separator character. If not provided, default "/" is used.
|
|
30
30
|
*/
|
|
31
31
|
separator?: string;
|
|
32
|
+
/** 1-based position among sibling breadcrumb items, used for schema.org `ListItem` metadata. */
|
|
32
33
|
private position;
|
|
33
34
|
connectedCallback(): void;
|
|
34
35
|
private calculatePosition;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
export type ButtonLevel = 'primary' | 'secondary' | 'tertiary' | 'danger';
|
|
3
|
+
export type ButtonShape = 'round' | 'square';
|
|
4
|
+
export type ButtonVariant = 'elevated' | 'filled' | 'tonal' | 'outlined' | 'text' | 'neo';
|
|
5
|
+
export type ButtonColor = 'primary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { WithElementInternals } from '@/__internal/mixins/element-internals.js';
|
|
3
|
+
import { MixinBase, MixinReturn } from '@/__internal/mixins/mixin.js';
|
|
4
|
+
/**
|
|
5
|
+
* 1. Define an interface for the members the mixin adds.
|
|
6
|
+
* This makes the type annotation much cleaner.
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseButton {
|
|
9
|
+
variant: string;
|
|
10
|
+
color: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
softDisabled: boolean;
|
|
13
|
+
disabledReason: string;
|
|
14
|
+
throttleDelay?: number;
|
|
15
|
+
__dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
|
|
16
|
+
__dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function mixinBaseButton<T extends MixinBase<LitElement & WithElementInternals>>(base: T): MixinReturn<T, BaseButton>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import type { ButtonSize, ButtonLevel, ButtonShape, ButtonVariant, ButtonColor } from '@/button/ButtonTypes.js';
|
|
3
|
+
export type { ButtonSize, ButtonLevel, ButtonShape, ButtonVariant, ButtonColor, } from '@/button/ButtonTypes.js';
|
|
4
|
+
declare const Button_base: import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<(abstract new (...args: any[]) => import("@/__internal/mixins/element-internals.js").WithElementInternals) & typeof LitElement & import("@/__internal/mixins/form-associated.js").FormAssociatedConstructor, import("@/__internal/mixins/form-associated.js").FormAssociated>, import("@/__internal/mixins/form-submitter.js").FormSubmitter>>, import("@/__internal/mixins/hyperlink.js").Hyperlink>, import("../base-button/base-button.js").BaseButton>;
|
|
4
5
|
/**
|
|
5
6
|
* @label Button
|
|
6
7
|
* @tag wc-button
|
|
@@ -43,7 +44,8 @@ declare const Button_base: typeof LitElement & import("../../__mixins/MixinConst
|
|
|
43
44
|
* ```
|
|
44
45
|
* @tags display
|
|
45
46
|
*/
|
|
46
|
-
export declare class Button extends Button_base
|
|
47
|
+
export declare class Button extends Button_base {
|
|
48
|
+
/** @nocollapse */ static shadowRootOptions: ShadowRootInit;
|
|
47
49
|
static styles: import("lit").CSSResultGroup[];
|
|
48
50
|
/**
|
|
49
51
|
* Icon alignment.
|
|
@@ -54,12 +56,13 @@ export declare class Button extends Button_base implements GroupButtonInterface
|
|
|
54
56
|
* Button size.
|
|
55
57
|
* Possible values are `"xs"`, `"sm"`, `"md"`, `"lg"`, `"xl"`. Defaults to `"sm"`.
|
|
56
58
|
*/
|
|
57
|
-
size:
|
|
59
|
+
size: ButtonSize;
|
|
58
60
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
+
* Level is preset of color and variant. If Level provided it overrides the default color and variant.
|
|
61
62
|
*/
|
|
62
|
-
|
|
63
|
+
level?: ButtonLevel;
|
|
64
|
+
/** Shape of the button container. */
|
|
65
|
+
shape: ButtonShape;
|
|
63
66
|
/**
|
|
64
67
|
* The visual style of the button.
|
|
65
68
|
*
|
|
@@ -70,45 +73,34 @@ export declare class Button extends Button_base implements GroupButtonInterface
|
|
|
70
73
|
* `"tonal"` is a light color button.
|
|
71
74
|
* `"elevated"` is elevated button
|
|
72
75
|
*/
|
|
73
|
-
variant:
|
|
76
|
+
variant: ButtonVariant;
|
|
74
77
|
/**
|
|
75
78
|
* Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.
|
|
76
79
|
*/
|
|
77
|
-
color:
|
|
78
|
-
/**
|
|
79
|
-
* Additional ARIA attributes to pass to the inner button/anchor element.
|
|
80
|
-
*/
|
|
81
|
-
configAria?: {
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
};
|
|
84
|
-
focus(): void;
|
|
85
|
-
blur(): void;
|
|
86
|
-
firstUpdated(): void;
|
|
87
|
-
__convertTypeToVariantAndColor(): void;
|
|
88
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
89
|
-
renderButtonElement(): import("lit-html").TemplateResult<1>;
|
|
90
|
-
renderButtonContent(): import("lit-html").TemplateResult<1>;
|
|
80
|
+
color: ButtonColor;
|
|
81
|
+
/** When true, renders the button in a loading skeleton state. */
|
|
91
82
|
skeleton: boolean;
|
|
83
|
+
/** When true, the button acts as a toggle. Use with `selected`. */
|
|
92
84
|
toggle: boolean;
|
|
85
|
+
/** When true (and `toggle` is set), the button is in the selected/pressed state. */
|
|
93
86
|
selected: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
|
|
96
|
-
*/
|
|
97
|
-
throttleDelay: number;
|
|
87
|
+
/** Optional tooltip text displayed on hover. */
|
|
98
88
|
tooltip?: string;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
*/
|
|
102
|
-
pressed: boolean;
|
|
89
|
+
private readonly buttonElement;
|
|
90
|
+
/** Cleanup returned by observerSlotChangesWithCallback for the icon slot. */
|
|
103
91
|
private __iconSlotCleanup;
|
|
92
|
+
/** Cleanup returned by observerSlotChangesWithCallback for the label slot. */
|
|
104
93
|
private __labelSlotCleanup;
|
|
105
|
-
|
|
94
|
+
constructor();
|
|
106
95
|
disconnectedCallback(): void;
|
|
107
|
-
|
|
108
|
-
|
|
96
|
+
firstUpdated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
97
|
+
focus(): void;
|
|
98
|
+
blur(): void;
|
|
99
|
+
__convertTypeToVariantAndColor(): void;
|
|
109
100
|
__dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
101
|
+
renderButtonElement(): import("lit-html").TemplateResult<1>;
|
|
102
|
+
renderButtonContent(): import("lit-html").TemplateResult<1>;
|
|
103
|
+
renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
104
|
+
renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
105
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
113
106
|
}
|
|
114
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { Button } from '../button/button.js';
|
|
2
|
+
import { Button, ButtonColor } from '../button/button.js';
|
|
3
3
|
import { IconButton } from '../icon-button/icon-button.js';
|
|
4
4
|
/**
|
|
5
5
|
* @label Button Group
|
|
@@ -10,9 +10,16 @@ import { IconButton } from '../icon-button/icon-button.js';
|
|
|
10
10
|
|
|
11
11
|
* @example
|
|
12
12
|
* ```html
|
|
13
|
-
* <wc-button-group
|
|
14
|
-
* <wc-icon-button toggle
|
|
15
|
-
*
|
|
13
|
+
* <wc-button-group connected="true">
|
|
14
|
+
* <wc-icon-button toggle="true" shaped="wide">
|
|
15
|
+
* <wc-icon name="format_bold"></wc-icon>
|
|
16
|
+
* </wc-icon-button>
|
|
17
|
+
* <wc-icon-button toggle="true" shaped="wide">
|
|
18
|
+
* <wc-icon name="format_italic"></wc-icon>
|
|
19
|
+
* </wc-icon-button>
|
|
20
|
+
* <wc-icon-button toggle="true" shaped="wide">
|
|
21
|
+
* <wc-icon name="format_underlined"></wc-icon>
|
|
22
|
+
* </wc-icon-button>
|
|
16
23
|
* </wc-button-group>
|
|
17
24
|
* ```
|
|
18
25
|
*
|
|
@@ -30,32 +37,24 @@ declare class ButtonGroup extends LitElement {
|
|
|
30
37
|
/**
|
|
31
38
|
* Layout variant of the button group.
|
|
32
39
|
* `"standard"` shows buttons with a small gap between them.
|
|
33
|
-
* `"connected"` places buttons with a 2px gap;
|
|
34
|
-
* rounded outer corners and middle buttons keep standard rounded corners.
|
|
35
|
-
* all buttons keep their default corner shape.
|
|
40
|
+
* `"connected"` places buttons with a 2px gap;
|
|
41
|
+
* rounded outer corners and middle buttons keep standard rounded corners.
|
|
36
42
|
* Defaults to `"standard"`.
|
|
37
43
|
*/
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Orientation of the button group.
|
|
41
|
-
* `"horizontal"` lays buttons out in a row.
|
|
42
|
-
* `"vertical"` stacks buttons in a column.
|
|
43
|
-
* Defaults to `"horizontal"`.
|
|
44
|
-
*/
|
|
45
|
-
orientation: 'horizontal' | 'vertical';
|
|
44
|
+
connected: boolean;
|
|
46
45
|
/**
|
|
47
46
|
* Color applied to all buttons in the group.
|
|
48
47
|
* Possible values are `"primary"`, `"success"`, `"danger"`, `"warning"`, `"surface"`, `"on-surface"`.
|
|
49
48
|
*/
|
|
50
|
-
color?:
|
|
49
|
+
color?: ButtonColor;
|
|
51
50
|
/**
|
|
52
51
|
* Visual style applied to all buttons in the group.
|
|
53
52
|
* Possible values are `"filled"`, `"tonal"`, `"outlined"`.
|
|
54
53
|
*/
|
|
55
|
-
|
|
54
|
+
variant?: 'filled' | 'tonal' | 'outlined';
|
|
56
55
|
updated(): void;
|
|
57
56
|
private _getSlottedElements;
|
|
58
|
-
private
|
|
57
|
+
private _syncButtonProperties;
|
|
59
58
|
render(): import("lit-html").TemplateResult<1>;
|
|
60
59
|
}
|
|
61
60
|
export default ButtonGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
|
-
declare const Fab_base: typeof LitElement & import("
|
|
2
|
+
declare const Fab_base: import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<(abstract new (...args: any[]) => import("@/__internal/mixins/element-internals.js").WithElementInternals) & typeof LitElement & import("@/__internal/mixins/form-associated.js").FormAssociatedConstructor, import("@/__internal/mixins/form-associated.js").FormAssociated>, import("@/__internal/mixins/form-submitter.js").FormSubmitter>>, import("@/__internal/mixins/hyperlink.js").Hyperlink>, import("../base-button/base-button.js").BaseButton>;
|
|
3
3
|
/**
|
|
4
4
|
* @label FAB
|
|
5
5
|
* @tag wc-fab
|
|
@@ -7,7 +7,7 @@ declare const Fab_base: typeof LitElement & import("../__mixins/MixinConstructor
|
|
|
7
7
|
*
|
|
8
8
|
* @summary The FAB (Floating Action Button) represents the primary action on a screen.
|
|
9
9
|
* @overview
|
|
10
|
-
* <p>A Floating Action Button (FAB) is a circular button that represents the primary action on a screen. It follows the
|
|
10
|
+
* <p>A Floating Action Button (FAB) is a circular button that represents the primary action on a screen. It follows the specification and supports four color roles and two variants.</p>
|
|
11
11
|
*
|
|
12
12
|
* @cssprop --fab-container-color: Background color of the FAB container.
|
|
13
13
|
* @cssprop --fab-label-text-color: Text and icon color of the FAB label.
|
|
@@ -23,7 +23,7 @@ declare const Fab_base: typeof LitElement & import("../__mixins/MixinConstructor
|
|
|
23
23
|
* @tags controls
|
|
24
24
|
*/
|
|
25
25
|
export declare class Fab extends Fab_base {
|
|
26
|
-
|
|
26
|
+
/** @nocollapse */ static shadowRootOptions: ShadowRootInit;
|
|
27
27
|
static styles: import("lit").CSSResultGroup[];
|
|
28
28
|
/**
|
|
29
29
|
* Optional label text for the extended FAB variant.
|
|
@@ -55,16 +55,6 @@ export declare class Fab extends Fab_base {
|
|
|
55
55
|
* If `true`, the FAB is in a lowered (resting) state with reduced elevation.
|
|
56
56
|
*/
|
|
57
57
|
lowered: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Additional ARIA attributes to pass to the inner button/anchor element.
|
|
60
|
-
*/
|
|
61
|
-
configAria?: {
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
|
|
66
|
-
*/
|
|
67
|
-
throttleDelay: number;
|
|
68
58
|
/**
|
|
69
59
|
* Tooltip text shown on hover.
|
|
70
60
|
*/
|
|
@@ -72,23 +62,15 @@ export declare class Fab extends Fab_base {
|
|
|
72
62
|
skeleton: boolean;
|
|
73
63
|
toggle: boolean;
|
|
74
64
|
selected: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* States
|
|
77
|
-
*/
|
|
78
|
-
pressed: boolean;
|
|
79
65
|
readonly buttonElement: HTMLElement | null;
|
|
80
|
-
|
|
81
|
-
disconnectedCallback(): void;
|
|
82
|
-
__handlePress: (event: KeyboardEvent | MouseEvent) => void;
|
|
83
|
-
__dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
|
|
66
|
+
constructor();
|
|
84
67
|
__dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
|
|
85
|
-
__renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
86
|
-
__renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
87
68
|
focus(): void;
|
|
88
69
|
blur(): void;
|
|
89
|
-
|
|
70
|
+
renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
71
|
+
renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
72
|
+
renderFabElement(isExtended: boolean): import("lit-html").TemplateResult<1>;
|
|
73
|
+
renderFabContent(isExtended: boolean): import("lit-html").TemplateResult<1>;
|
|
90
74
|
render(): import("lit-html").TemplateResult<1>;
|
|
91
|
-
__renderFabElement(isExtended: boolean): import("lit-html").TemplateResult<1>;
|
|
92
|
-
__renderFabContent(isExtended: boolean): import("lit-html").TemplateResult<1>;
|
|
93
75
|
}
|
|
94
76
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
|
-
import {
|
|
3
|
-
declare const IconButton_base: typeof LitElement & import("
|
|
2
|
+
import type { ButtonColor, ButtonLevel, ButtonShape, ButtonSize, ButtonVariant } from '@/button/ButtonTypes.js';
|
|
3
|
+
declare const IconButton_base: import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<(abstract new (...args: any[]) => import("@/__internal/mixins/element-internals.js").WithElementInternals) & typeof LitElement & import("@/__internal/mixins/form-associated.js").FormAssociatedConstructor, import("@/__internal/mixins/form-associated.js").FormAssociated>, import("@/__internal/mixins/form-submitter.js").FormSubmitter>>, import("@/__internal/mixins/hyperlink.js").Hyperlink>, import("../base-button/base-button.js").BaseButton>;
|
|
4
4
|
/**
|
|
5
5
|
* @label Icon Button
|
|
6
6
|
* @tag wc-icon-button
|
|
@@ -44,18 +44,21 @@ declare const IconButton_base: typeof LitElement & import("../../__mixins/MixinC
|
|
|
44
44
|
* ```
|
|
45
45
|
* @tags display
|
|
46
46
|
*/
|
|
47
|
-
export declare class IconButton extends IconButton_base
|
|
47
|
+
export declare class IconButton extends IconButton_base {
|
|
48
|
+
/** @nocollapse */ static shadowRootOptions: ShadowRootInit;
|
|
48
49
|
static styles: import("lit").CSSResultGroup[];
|
|
49
50
|
/**
|
|
50
51
|
* Button size.
|
|
51
52
|
* Possible values are `"xs"`, `"sm"`, `"md"`, `"lg"`, `"xl"`. Defaults to `"sm"`.
|
|
52
53
|
*/
|
|
53
|
-
size:
|
|
54
|
+
size: ButtonSize;
|
|
54
55
|
/**
|
|
55
56
|
* Type is preset of color and variant. Type will be only applied.
|
|
56
57
|
*
|
|
57
58
|
*/
|
|
58
|
-
|
|
59
|
+
level?: ButtonLevel;
|
|
60
|
+
/** Shape of the button container. */
|
|
61
|
+
shape?: ButtonShape;
|
|
59
62
|
/**
|
|
60
63
|
* The visual style of the button.
|
|
61
64
|
*
|
|
@@ -66,40 +69,30 @@ export declare class IconButton extends IconButton_base implements GroupButtonIn
|
|
|
66
69
|
* `"tonal"` is a light color button.
|
|
67
70
|
* `"elevated"` is elevated button
|
|
68
71
|
*/
|
|
69
|
-
variant:
|
|
72
|
+
variant: ButtonVariant;
|
|
70
73
|
/**
|
|
71
74
|
* Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.
|
|
72
75
|
*/
|
|
73
|
-
color:
|
|
74
|
-
/**
|
|
75
|
-
* Additional ARIA attributes to pass to the inner button/anchor element.
|
|
76
|
-
*/
|
|
77
|
-
configAria?: {
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
};
|
|
76
|
+
color: ButtonColor;
|
|
77
|
+
/** When true, renders the button in a loading skeleton state. */
|
|
80
78
|
skeleton: boolean;
|
|
79
|
+
/** When true, the button acts as a toggle. Use with `selected`. */
|
|
81
80
|
toggle: boolean;
|
|
81
|
+
/** When true (and `toggle` is set), the button is in the selected/pressed state. */
|
|
82
82
|
selected: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
|
|
85
|
-
*/
|
|
86
|
-
throttleDelay: number;
|
|
83
|
+
/** Optional tooltip text displayed on hover. */
|
|
87
84
|
tooltip?: string;
|
|
88
|
-
pressed: boolean;
|
|
89
85
|
readonly buttonElement: HTMLElement | null;
|
|
90
|
-
|
|
91
|
-
disconnectedCallback(): void;
|
|
92
|
-
__handlePress: (event: KeyboardEvent | MouseEvent) => void;
|
|
93
|
-
__dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
|
|
86
|
+
constructor();
|
|
94
87
|
__dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
|
|
95
|
-
__renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
96
|
-
__renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
97
88
|
focus(): void;
|
|
98
89
|
blur(): void;
|
|
99
|
-
firstUpdated(): void;
|
|
90
|
+
firstUpdated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
100
91
|
__convertTypeToVariantAndColor(): void;
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
93
|
+
renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
103
94
|
renderButtonContent(): import("lit-html").TemplateResult<1>;
|
|
95
|
+
renderButtonElement(): import("lit-html").TemplateResult<1>;
|
|
96
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
104
97
|
}
|
|
105
98
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Button } from './button/button.js';
|
|
2
2
|
export { default as ButtonGroup } from './button-group/button-group.js';
|
|
3
3
|
export { IconButton } from './icon-button/icon-button.js';
|
|
4
|
+
export type { ButtonSize, ButtonLevel, ButtonShape, ButtonVariant, ButtonColor, } from './ButtonTypes.js';
|
|
@@ -4,7 +4,7 @@ import type { CalendarViewType, EventType } from './types.js';
|
|
|
4
4
|
* @label Calendar
|
|
5
5
|
* @tag wc-calendar
|
|
6
6
|
* @rawTag calendar
|
|
7
|
-
* @summary A
|
|
7
|
+
* @summary A full calendar component for displaying events in day, week, or month views.
|
|
8
8
|
*
|
|
9
9
|
* @cssprop --calendar-border-color - Border color used throughout the calendar grid.
|
|
10
10
|
* @cssprop --calendar-event-bg-color - Background color for calendar events.
|
|
@@ -45,7 +45,7 @@ export type CanvasShape = CanvasCircleShape | CanvasRectShape | CanvasLineShape
|
|
|
45
45
|
* @label Canvas
|
|
46
46
|
* @tag wc-canvas
|
|
47
47
|
* @rawTag canvas
|
|
48
|
-
* @summary A
|
|
48
|
+
* @summary A SVG canvas for drawing shapes, lines, and connectors on a dotted grid.
|
|
49
49
|
*
|
|
50
50
|
* @cssprop --canvas-background - Background color for the canvas wrapper. Defaults to surface-container-low.
|
|
51
51
|
* @cssprop --canvas-dot-color - Color of the background grid dots. Defaults to outline-variant.
|
package/dist/src/card/card.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
2
|
type CardVariant = 'elevated' | 'filled' | 'outlined';
|
|
3
|
-
declare const Card_base: typeof LitElement & import("../
|
|
3
|
+
declare const Card_base: typeof LitElement & import("../__internal/mixins/MixinConstructor.js").MixinConstructor<import("@/__internal/mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface>;
|
|
4
4
|
/**
|
|
5
5
|
* @label Card
|
|
6
6
|
* @tag wc-card
|
|
7
7
|
* @rawTag card
|
|
8
|
-
* @summary A
|
|
8
|
+
* @summary A card surface for grouping related content.
|
|
9
9
|
* @cssprop --card-padding - Inner padding for the card container. Defaults to 1rem.
|
|
10
10
|
* @cssprop --card-shape - Corner radius for the card container. Defaults to a large radius.
|
|
11
11
|
* @cssprop --card-gap - Gap between slotted children.
|
|
@@ -31,21 +31,20 @@ export declare class Card extends Card_base {
|
|
|
31
31
|
*/
|
|
32
32
|
disabledReason: string;
|
|
33
33
|
/**
|
|
34
|
-
* Sets the delay for throttle in milliseconds.
|
|
34
|
+
* Sets the delay for throttle in milliseconds. When null (default), no throttle is applied.
|
|
35
35
|
*/
|
|
36
|
-
throttleDelay
|
|
36
|
+
throttleDelay?: number;
|
|
37
37
|
/**
|
|
38
38
|
* States
|
|
39
39
|
*/
|
|
40
|
-
isPressed: boolean;
|
|
41
40
|
private slotHasContent;
|
|
42
41
|
readonly cardElement: HTMLElement | null;
|
|
42
|
+
constructor();
|
|
43
43
|
firstUpdated(): void;
|
|
44
44
|
__dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
|
|
45
45
|
__dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
|
|
46
46
|
__getDisabledReasonID(): string | typeof nothing;
|
|
47
47
|
__renderDisabledReason(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
48
|
-
__handlePress: (event: KeyboardEvent | MouseEvent) => void;
|
|
49
48
|
render(): import("lit-html").TemplateResult<1>;
|
|
50
49
|
renderCardElement(isLinkElement: boolean, disableSlotTabbing: boolean): import("lit-html").TemplateResult<1>;
|
|
51
50
|
renderCardContent(disableSlotTabbing: boolean): import("lit-html").TemplateResult<1>;
|
|
@@ -9,7 +9,7 @@ export type ChartBarItem = {
|
|
|
9
9
|
* @label Chart Bar
|
|
10
10
|
* @tag wc-chart-bar
|
|
11
11
|
* @rawTag chart-bar
|
|
12
|
-
* @summary A vertical bar chart that follows
|
|
12
|
+
* @summary A vertical bar chart that follows color and spacing tokens.
|
|
13
13
|
* @tags charts
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
@@ -14,7 +14,7 @@ export type ChartStackedBarItem = {
|
|
|
14
14
|
* @label Chart Stacked Bar
|
|
15
15
|
* @tag wc-chart-stacked-bar
|
|
16
16
|
* @rawTag chart-stacked-bar
|
|
17
|
-
* @summary A stacked bar chart that groups series by category using
|
|
17
|
+
* @summary A stacked bar chart that groups series by category using tokens.
|
|
18
18
|
* @tags charts
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
@@ -6,7 +6,7 @@ import { LitElement } from 'lit';
|
|
|
6
6
|
* @summary Captures boolean input with an optional indeterminate mode.
|
|
7
7
|
* @overview
|
|
8
8
|
* <p>Checkboxes allow users to select one or more items from a set. Checkboxes can turn an option on or off.</p>
|
|
9
|
-
* <p>
|
|
9
|
+
* <p>checkboxes feature a smooth animation and clear visual states for checked, unchecked, and indeterminate.</p>
|
|
10
10
|
* @cssprop --checkbox-size: Size of the checkbox container.
|
|
11
11
|
* @cssprop --checkbox-selected-color: Color of the checkbox when selected.
|
|
12
12
|
* @cssprop --checkbox-unselected-color: Color of the checkbox border when unselected.
|
|
@@ -65,11 +65,15 @@ export declare class Checkbox extends LitElement {
|
|
|
65
65
|
* Configuration object for aria attributes.
|
|
66
66
|
*/
|
|
67
67
|
configAria: Record<string, string>;
|
|
68
|
+
/** True while the checkbox container has keyboard focus. */
|
|
68
69
|
private hasFocus;
|
|
70
|
+
/** True while the user is actively pressing the checkbox (mouse/keyboard). */
|
|
69
71
|
private isActive;
|
|
72
|
+
/** True when slotted label content is present. */
|
|
70
73
|
private slotHasContent;
|
|
71
74
|
private containerElement?;
|
|
72
75
|
private nativeElement?;
|
|
76
|
+
/** Captured `tabindex` attribute value forwarded to the inner container. */
|
|
73
77
|
private tabindex?;
|
|
74
78
|
connectedCallback(): void;
|
|
75
79
|
disconnectedCallback(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
|
-
declare const Chip_base:
|
|
2
|
+
declare const Chip_base: import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<import("../../__internal/mixins/mixin.js").MixinReturn<typeof LitElement, import("@/__internal/mixins/element-internals.js").WithElementInternals>>, import("@/__internal/mixins/hyperlink.js").Hyperlink>, import("@/button/base-button/base-button.js").BaseButton>;
|
|
3
3
|
/**
|
|
4
4
|
* @label Chip
|
|
5
5
|
* @tag wc-chip
|
|
@@ -13,6 +13,7 @@ declare const Chip_base: typeof LitElement & import("../../__mixins/MixinConstru
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export declare class Chip extends Chip_base {
|
|
16
|
+
/** @nocollapse */ static shadowRootOptions: ShadowRootInit;
|
|
16
17
|
static styles: import("lit").CSSResultGroup[];
|
|
17
18
|
/** If true, the tag will have a close icon. */
|
|
18
19
|
dismissible: boolean;
|
|
@@ -22,20 +23,20 @@ export declare class Chip extends Chip_base {
|
|
|
22
23
|
configAria?: {
|
|
23
24
|
[key: string]: any;
|
|
24
25
|
};
|
|
26
|
+
/** True when the `icon` slot contains at least one node. */
|
|
25
27
|
private _hasIconSlotContent;
|
|
28
|
+
/** When true, renders the chip in a loading skeleton state. */
|
|
26
29
|
skeleton: boolean;
|
|
27
|
-
|
|
30
|
+
/** When true, the chip is in the selected/pressed state. */
|
|
28
31
|
selected: boolean;
|
|
29
32
|
/**
|
|
30
|
-
* Sets the delay for throttle in milliseconds.
|
|
33
|
+
* Sets the delay for throttle in milliseconds. When null (default), no throttle is applied.
|
|
31
34
|
*/
|
|
32
|
-
throttleDelay
|
|
35
|
+
throttleDelay?: number;
|
|
36
|
+
/** Optional tooltip text displayed on hover. */
|
|
33
37
|
tooltip?: string;
|
|
34
|
-
pressed: boolean;
|
|
35
38
|
readonly buttonElement: HTMLElement | null;
|
|
36
|
-
|
|
37
|
-
disconnectedCallback(): void;
|
|
38
|
-
__handlePress: (event: KeyboardEvent | MouseEvent) => void;
|
|
39
|
+
constructor();
|
|
39
40
|
__dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
|
|
40
41
|
__dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
|
|
41
42
|
__renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
|