@cumulus-ui/components 0.1.0
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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/alert/interfaces.d.ts +107 -0
- package/dist/alert/interfaces.d.ts.map +1 -0
- package/dist/anchor-navigation/index.d.ts +5 -0
- package/dist/anchor-navigation/index.d.ts.map +1 -0
- package/dist/anchor-navigation/interfaces.d.ts +54 -0
- package/dist/anchor-navigation/interfaces.d.ts.map +1 -0
- package/dist/anchor-navigation/internal.d.ts +23 -0
- package/dist/anchor-navigation/internal.d.ts.map +1 -0
- package/dist/anchor-navigation/styles.d.ts +5 -0
- package/dist/anchor-navigation/styles.d.ts.map +1 -0
- package/dist/annotation-context/interfaces.d.ts +47 -0
- package/dist/annotation-context/interfaces.d.ts.map +1 -0
- package/dist/app-layout/interfaces.d.ts +264 -0
- package/dist/app-layout/interfaces.d.ts.map +1 -0
- package/dist/app-layout-toolbar/interfaces.d.ts +51 -0
- package/dist/app-layout-toolbar/interfaces.d.ts.map +1 -0
- package/dist/area-chart/interfaces.d.ts +55 -0
- package/dist/area-chart/interfaces.d.ts.map +1 -0
- package/dist/attribute-editor/interfaces.d.ts +159 -0
- package/dist/attribute-editor/interfaces.d.ts.map +1 -0
- package/dist/autosuggest/interfaces.d.ts +239 -0
- package/dist/autosuggest/interfaces.d.ts.map +1 -0
- package/dist/badge/index.d.ts +5 -0
- package/dist/badge/index.d.ts.map +1 -0
- package/dist/badge/interfaces.d.ts +26 -0
- package/dist/badge/interfaces.d.ts.map +1 -0
- package/dist/badge/internal.d.ts +8 -0
- package/dist/badge/internal.d.ts.map +1 -0
- package/dist/badge/styles.d.ts +5 -0
- package/dist/badge/styles.d.ts.map +1 -0
- package/dist/bar-chart/interfaces.d.ts +32 -0
- package/dist/bar-chart/interfaces.d.ts.map +1 -0
- package/dist/box/index.d.ts +5 -0
- package/dist/box/index.d.ts.map +1 -0
- package/dist/box/interfaces.d.ts +131 -0
- package/dist/box/interfaces.d.ts.map +1 -0
- package/dist/box/internal.d.ts +18 -0
- package/dist/box/internal.d.ts.map +1 -0
- package/dist/box/styles.d.ts +5 -0
- package/dist/box/styles.d.ts.map +1 -0
- package/dist/breadcrumb-group/interfaces.d.ts +53 -0
- package/dist/breadcrumb-group/interfaces.d.ts.map +1 -0
- package/dist/button/interfaces.d.ts +190 -0
- package/dist/button/interfaces.d.ts.map +1 -0
- package/dist/button-dropdown/interfaces.d.ts +380 -0
- package/dist/button-dropdown/interfaces.d.ts.map +1 -0
- package/dist/button-group/interfaces.d.ts +224 -0
- package/dist/button-group/interfaces.d.ts.map +1 -0
- package/dist/calendar/interfaces.d.ts +116 -0
- package/dist/calendar/interfaces.d.ts.map +1 -0
- package/dist/cards/interfaces.d.ts +212 -0
- package/dist/cards/interfaces.d.ts.map +1 -0
- package/dist/checkbox/base-checkbox.d.ts +44 -0
- package/dist/checkbox/base-checkbox.d.ts.map +1 -0
- package/dist/checkbox/index.d.ts +5 -0
- package/dist/checkbox/index.d.ts.map +1 -0
- package/dist/checkbox/interfaces.d.ts +73 -0
- package/dist/checkbox/interfaces.d.ts.map +1 -0
- package/dist/checkbox/internal.d.ts +22 -0
- package/dist/checkbox/internal.d.ts.map +1 -0
- package/dist/checkbox/styles.d.ts +5 -0
- package/dist/checkbox/styles.d.ts.map +1 -0
- package/dist/code-editor/interfaces.d.ts +132 -0
- package/dist/code-editor/interfaces.d.ts.map +1 -0
- package/dist/collection-preferences/interfaces.d.ts +287 -0
- package/dist/collection-preferences/interfaces.d.ts.map +1 -0
- package/dist/column-layout/interfaces.d.ts +41 -0
- package/dist/column-layout/interfaces.d.ts.map +1 -0
- package/dist/container/interfaces.d.ts +124 -0
- package/dist/container/interfaces.d.ts.map +1 -0
- package/dist/content-layout/interfaces.d.ts +44 -0
- package/dist/content-layout/interfaces.d.ts.map +1 -0
- package/dist/copy-to-clipboard/interfaces.d.ts +66 -0
- package/dist/copy-to-clipboard/interfaces.d.ts.map +1 -0
- package/dist/date-input/interfaces.d.ts +39 -0
- package/dist/date-input/interfaces.d.ts.map +1 -0
- package/dist/date-picker/interfaces.d.ts +111 -0
- package/dist/date-picker/interfaces.d.ts.map +1 -0
- package/dist/date-range-picker/interfaces.d.ts +496 -0
- package/dist/date-range-picker/interfaces.d.ts.map +1 -0
- package/dist/drawer/interfaces.d.ts +25 -0
- package/dist/drawer/interfaces.d.ts.map +1 -0
- package/dist/dropdown/interfaces.d.ts +111 -0
- package/dist/dropdown/interfaces.d.ts.map +1 -0
- package/dist/error-boundary/interfaces.d.ts +93 -0
- package/dist/error-boundary/interfaces.d.ts.map +1 -0
- package/dist/expandable-section/interfaces.d.ts +70 -0
- package/dist/expandable-section/interfaces.d.ts.map +1 -0
- package/dist/file-dropzone/index.d.ts +5 -0
- package/dist/file-dropzone/index.d.ts.map +1 -0
- package/dist/file-dropzone/interfaces.d.ts +8 -0
- package/dist/file-dropzone/interfaces.d.ts.map +1 -0
- package/dist/file-dropzone/internal.d.ts +14 -0
- package/dist/file-dropzone/internal.d.ts.map +1 -0
- package/dist/file-dropzone/styles.d.ts +5 -0
- package/dist/file-dropzone/styles.d.ts.map +1 -0
- package/dist/file-input/interfaces.d.ts +46 -0
- package/dist/file-input/interfaces.d.ts.map +1 -0
- package/dist/file-token-group/interfaces.d.ts +79 -0
- package/dist/file-token-group/interfaces.d.ts.map +1 -0
- package/dist/file-upload/interfaces.d.ts +92 -0
- package/dist/file-upload/interfaces.d.ts.map +1 -0
- package/dist/flashbar/interfaces.d.ts +210 -0
- package/dist/flashbar/interfaces.d.ts.map +1 -0
- package/dist/form/interfaces.d.ts +37 -0
- package/dist/form/interfaces.d.ts.map +1 -0
- package/dist/form-field/interfaces.d.ts +78 -0
- package/dist/form-field/interfaces.d.ts.map +1 -0
- package/dist/grid/index.d.ts +5 -0
- package/dist/grid/index.d.ts.map +1 -0
- package/dist/grid/interfaces.d.ts +47 -0
- package/dist/grid/interfaces.d.ts.map +1 -0
- package/dist/grid/internal.d.ts +16 -0
- package/dist/grid/internal.d.ts.map +1 -0
- package/dist/grid/styles.d.ts +5 -0
- package/dist/grid/styles.d.ts.map +1 -0
- package/dist/header/interfaces.d.ts +22 -0
- package/dist/header/interfaces.d.ts.map +1 -0
- package/dist/help-panel/interfaces.d.ts +15 -0
- package/dist/help-panel/interfaces.d.ts.map +1 -0
- package/dist/hotspot/interfaces.d.ts +19 -0
- package/dist/hotspot/interfaces.d.ts.map +1 -0
- package/dist/icon/icons/index.d.ts +4 -0
- package/dist/icon/icons/index.d.ts.map +1 -0
- package/dist/icon/index.d.ts +5 -0
- package/dist/icon/index.d.ts.map +1 -0
- package/dist/icon/interfaces.d.ts +45 -0
- package/dist/icon/interfaces.d.ts.map +1 -0
- package/dist/icon/internal.d.ts +17 -0
- package/dist/icon/internal.d.ts.map +1 -0
- package/dist/icon/styles.d.ts +5 -0
- package/dist/icon/styles.d.ts.map +1 -0
- package/dist/icon-provider/index.d.ts +5 -0
- package/dist/icon-provider/index.d.ts.map +1 -0
- package/dist/icon-provider/interfaces.d.ts +43 -0
- package/dist/icon-provider/interfaces.d.ts.map +1 -0
- package/dist/icon-provider/internal.d.ts +14 -0
- package/dist/icon-provider/internal.d.ts.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4541 -0
- package/dist/input/interfaces.d.ts +181 -0
- package/dist/input/interfaces.d.ts.map +1 -0
- package/dist/internal/components/dropdown/internal.d.ts +27 -0
- package/dist/internal/components/dropdown/internal.d.ts.map +1 -0
- package/dist/internal/components/dropdown/styles.d.ts +2 -0
- package/dist/internal/components/dropdown/styles.d.ts.map +1 -0
- package/dist/internal/components/navigable-group/index.d.ts +3 -0
- package/dist/internal/components/navigable-group/index.d.ts.map +1 -0
- package/dist/internal/components/navigable-group/navigable-group-controller.d.ts +42 -0
- package/dist/internal/components/navigable-group/navigable-group-controller.d.ts.map +1 -0
- package/dist/internal/context/form-field-context.d.ts +11 -0
- package/dist/internal/context/form-field-context.d.ts.map +1 -0
- package/dist/internal/events.d.ts +10 -0
- package/dist/internal/events.d.ts.map +1 -0
- package/dist/internal/focus.d.ts +28 -0
- package/dist/internal/focus.d.ts.map +1 -0
- package/dist/internal/generated/cloudscape-types.d.ts +49 -0
- package/dist/internal/generated/cloudscape-types.d.ts.map +1 -0
- package/dist/internal/generated/component-manifest.d.ts +457 -0
- package/dist/internal/generated/component-manifest.d.ts.map +1 -0
- package/dist/internal/hooks/use-controllable.d.ts +25 -0
- package/dist/internal/hooks/use-controllable.d.ts.map +1 -0
- package/dist/internal/hooks/use-focus-tracker.d.ts +24 -0
- package/dist/internal/hooks/use-focus-tracker.d.ts.map +1 -0
- package/dist/internal/hooks/use-unique-id.d.ts +2 -0
- package/dist/internal/hooks/use-unique-id.d.ts.map +1 -0
- package/dist/internal/mixins/form-associated.d.ts +40 -0
- package/dist/internal/mixins/form-associated.d.ts.map +1 -0
- package/dist/internal/slot-utils.d.ts +10 -0
- package/dist/internal/slot-utils.d.ts.map +1 -0
- package/dist/internal/styles/abstract-switch.d.ts +2 -0
- package/dist/internal/styles/abstract-switch.d.ts.map +1 -0
- package/dist/internal/styles/autosuggest-input.d.ts +2 -0
- package/dist/internal/styles/autosuggest-input.d.ts.map +1 -0
- package/dist/internal/styles/button-trigger.d.ts +2 -0
- package/dist/internal/styles/button-trigger.d.ts.map +1 -0
- package/dist/internal/styles/cartesian-chart.d.ts +2 -0
- package/dist/internal/styles/cartesian-chart.d.ts.map +1 -0
- package/dist/internal/styles/chart-filter.d.ts +2 -0
- package/dist/internal/styles/chart-filter.d.ts.map +1 -0
- package/dist/internal/styles/chart-legend.d.ts +2 -0
- package/dist/internal/styles/chart-legend.d.ts.map +1 -0
- package/dist/internal/styles/chart-plot.d.ts +2 -0
- package/dist/internal/styles/chart-plot.d.ts.map +1 -0
- package/dist/internal/styles/chart-popover.d.ts +2 -0
- package/dist/internal/styles/chart-popover.d.ts.map +1 -0
- package/dist/internal/styles/chart-series-details.d.ts +2 -0
- package/dist/internal/styles/chart-series-details.d.ts.map +1 -0
- package/dist/internal/styles/chart-series-marker.d.ts +2 -0
- package/dist/internal/styles/chart-series-marker.d.ts.map +1 -0
- package/dist/internal/styles/chart-status-container.d.ts +2 -0
- package/dist/internal/styles/chart-status-container.d.ts.map +1 -0
- package/dist/internal/styles/chart-wrapper.d.ts +2 -0
- package/dist/internal/styles/chart-wrapper.d.ts.map +1 -0
- package/dist/internal/styles/checkbox-icon.d.ts +2 -0
- package/dist/internal/styles/checkbox-icon.d.ts.map +1 -0
- package/dist/internal/styles/drag-handle-wrapper.d.ts +2 -0
- package/dist/internal/styles/drag-handle-wrapper.d.ts.map +1 -0
- package/dist/internal/styles/drag-handle.d.ts +2 -0
- package/dist/internal/styles/drag-handle.d.ts.map +1 -0
- package/dist/internal/styles/dropdown-footer.d.ts +2 -0
- package/dist/internal/styles/dropdown-footer.d.ts.map +1 -0
- package/dist/internal/styles/dropdown-status.d.ts +2 -0
- package/dist/internal/styles/dropdown-status.d.ts.map +1 -0
- package/dist/internal/styles/dropdown.d.ts +2 -0
- package/dist/internal/styles/dropdown.d.ts.map +1 -0
- package/dist/internal/styles/expand-toggle-button.d.ts +2 -0
- package/dist/internal/styles/expand-toggle-button.d.ts.map +1 -0
- package/dist/internal/styles/global.d.ts +3 -0
- package/dist/internal/styles/global.d.ts.map +1 -0
- package/dist/internal/styles/menu-dropdown.d.ts +2 -0
- package/dist/internal/styles/menu-dropdown.d.ts.map +1 -0
- package/dist/internal/styles/option.d.ts +2 -0
- package/dist/internal/styles/option.d.ts.map +1 -0
- package/dist/internal/styles/options-list.d.ts +2 -0
- package/dist/internal/styles/options-list.d.ts.map +1 -0
- package/dist/internal/styles/panel-resize-handle.d.ts +2 -0
- package/dist/internal/styles/panel-resize-handle.d.ts.map +1 -0
- package/dist/internal/styles/radio-button.d.ts +2 -0
- package/dist/internal/styles/radio-button.d.ts.map +1 -0
- package/dist/internal/styles/screenreader-only.d.ts +2 -0
- package/dist/internal/styles/screenreader-only.d.ts.map +1 -0
- package/dist/internal/styles/selectable-item.d.ts +2 -0
- package/dist/internal/styles/selectable-item.d.ts.map +1 -0
- package/dist/internal/styles/shared.d.ts +3 -0
- package/dist/internal/styles/shared.d.ts.map +1 -0
- package/dist/internal/styles/sortable-area.d.ts +2 -0
- package/dist/internal/styles/sortable-area.d.ts.map +1 -0
- package/dist/internal/styles/structured-item.d.ts +2 -0
- package/dist/internal/styles/structured-item.d.ts.map +1 -0
- package/dist/internal/styles/tab-trap.d.ts +2 -0
- package/dist/internal/styles/tab-trap.d.ts.map +1 -0
- package/dist/internal/styles/token-list.d.ts +2 -0
- package/dist/internal/styles/token-list.d.ts.map +1 -0
- package/dist/internal/styles/tooltip.d.ts +2 -0
- package/dist/internal/styles/tooltip.d.ts.map +1 -0
- package/dist/internal/theming.d.ts +2 -0
- package/dist/internal/theming.d.ts.map +1 -0
- package/dist/internal/token-utils.d.ts +46 -0
- package/dist/internal/token-utils.d.ts.map +1 -0
- package/dist/internal/tokens.d.ts +119 -0
- package/dist/internal/tokens.d.ts.map +1 -0
- package/dist/internal/utils/debounce.d.ts +8 -0
- package/dist/internal/utils/debounce.d.ts.map +1 -0
- package/dist/internal/utils/dom.d.ts +12 -0
- package/dist/internal/utils/dom.d.ts.map +1 -0
- package/dist/internal/utils/strings.d.ts +5 -0
- package/dist/internal/utils/strings.d.ts.map +1 -0
- package/dist/internal/utils/throttle.d.ts +7 -0
- package/dist/internal/utils/throttle.d.ts.map +1 -0
- package/dist/item-card/interfaces.d.ts +86 -0
- package/dist/item-card/interfaces.d.ts.map +1 -0
- package/dist/key-value-pairs/interfaces.d.ts +59 -0
- package/dist/key-value-pairs/interfaces.d.ts.map +1 -0
- package/dist/line-chart/interfaces.d.ts +18 -0
- package/dist/line-chart/interfaces.d.ts.map +1 -0
- package/dist/link/interfaces.d.ts +107 -0
- package/dist/link/interfaces.d.ts.map +1 -0
- package/dist/list/index.d.ts +5 -0
- package/dist/list/index.d.ts.map +1 -0
- package/dist/list/interfaces.d.ts +77 -0
- package/dist/list/interfaces.d.ts.map +1 -0
- package/dist/list/internal.d.ts +28 -0
- package/dist/list/internal.d.ts.map +1 -0
- package/dist/list/styles.d.ts +5 -0
- package/dist/list/styles.d.ts.map +1 -0
- package/dist/live-region/index.d.ts +5 -0
- package/dist/live-region/index.d.ts.map +1 -0
- package/dist/live-region/interfaces.d.ts +20 -0
- package/dist/live-region/interfaces.d.ts.map +1 -0
- package/dist/live-region/internal.d.ts +10 -0
- package/dist/live-region/internal.d.ts.map +1 -0
- package/dist/live-region/styles.d.ts +5 -0
- package/dist/live-region/styles.d.ts.map +1 -0
- package/dist/mixed-line-bar-chart/interfaces.d.ts +118 -0
- package/dist/mixed-line-bar-chart/interfaces.d.ts.map +1 -0
- package/dist/modal/interfaces.d.ts +91 -0
- package/dist/modal/interfaces.d.ts.map +1 -0
- package/dist/multiselect/interfaces.d.ts +121 -0
- package/dist/multiselect/interfaces.d.ts.map +1 -0
- package/dist/navigable-group/interfaces.d.ts +26 -0
- package/dist/navigable-group/interfaces.d.ts.map +1 -0
- package/dist/pagination/interfaces.d.ts +59 -0
- package/dist/pagination/interfaces.d.ts.map +1 -0
- package/dist/panel-layout/interfaces.d.ts +88 -0
- package/dist/panel-layout/interfaces.d.ts.map +1 -0
- package/dist/pie-chart/interfaces.d.ts +209 -0
- package/dist/pie-chart/interfaces.d.ts.map +1 -0
- package/dist/popover/interfaces.d.ts +92 -0
- package/dist/popover/interfaces.d.ts.map +1 -0
- package/dist/progress-bar/interfaces.d.ts +74 -0
- package/dist/progress-bar/interfaces.d.ts.map +1 -0
- package/dist/prompt-input/interfaces.d.ts +123 -0
- package/dist/prompt-input/interfaces.d.ts.map +1 -0
- package/dist/property-filter/interfaces.d.ts +344 -0
- package/dist/property-filter/interfaces.d.ts.map +1 -0
- package/dist/radio-button/interfaces.d.ts +2 -0
- package/dist/radio-button/interfaces.d.ts.map +1 -0
- package/dist/radio-group/index.d.ts +5 -0
- package/dist/radio-group/index.d.ts.map +1 -0
- package/dist/radio-group/interfaces.d.ts +76 -0
- package/dist/radio-group/interfaces.d.ts.map +1 -0
- package/dist/radio-group/internal.d.ts +33 -0
- package/dist/radio-group/internal.d.ts.map +1 -0
- package/dist/radio-group/styles.d.ts +5 -0
- package/dist/radio-group/styles.d.ts.map +1 -0
- package/dist/s3-resource-selector/interfaces.d.ts +234 -0
- package/dist/s3-resource-selector/interfaces.d.ts.map +1 -0
- package/dist/segmented-control/interfaces.d.ts +82 -0
- package/dist/segmented-control/interfaces.d.ts.map +1 -0
- package/dist/select/interfaces.d.ts +207 -0
- package/dist/select/interfaces.d.ts.map +1 -0
- package/dist/side-navigation/interfaces.d.ts +148 -0
- package/dist/side-navigation/interfaces.d.ts.map +1 -0
- package/dist/slider/interfaces.d.ts +98 -0
- package/dist/slider/interfaces.d.ts.map +1 -0
- package/dist/space-between/index.d.ts +5 -0
- package/dist/space-between/index.d.ts.map +1 -0
- package/dist/space-between/interfaces.d.ts +21 -0
- package/dist/space-between/interfaces.d.ts.map +1 -0
- package/dist/space-between/internal.d.ts +10 -0
- package/dist/space-between/internal.d.ts.map +1 -0
- package/dist/space-between/styles.d.ts +5 -0
- package/dist/space-between/styles.d.ts.map +1 -0
- package/dist/spinner/index.d.ts +5 -0
- package/dist/spinner/index.d.ts.map +1 -0
- package/dist/spinner/interfaces.d.ts +15 -0
- package/dist/spinner/interfaces.d.ts.map +1 -0
- package/dist/spinner/internal.d.ts +9 -0
- package/dist/spinner/internal.d.ts.map +1 -0
- package/dist/spinner/styles.d.ts +5 -0
- package/dist/spinner/styles.d.ts.map +1 -0
- package/dist/split-panel/interfaces.d.ts +64 -0
- package/dist/split-panel/interfaces.d.ts.map +1 -0
- package/dist/status-indicator/interfaces.d.ts +26 -0
- package/dist/status-indicator/interfaces.d.ts.map +1 -0
- package/dist/steps/interfaces.d.ts +53 -0
- package/dist/steps/interfaces.d.ts.map +1 -0
- package/dist/table/interfaces.d.ts +534 -0
- package/dist/table/interfaces.d.ts.map +1 -0
- package/dist/tabs/interfaces.d.ts +214 -0
- package/dist/tabs/interfaces.d.ts.map +1 -0
- package/dist/tag-editor/interfaces.d.ts +121 -0
- package/dist/tag-editor/interfaces.d.ts.map +1 -0
- package/dist/text-content/index.d.ts +5 -0
- package/dist/text-content/index.d.ts.map +1 -0
- package/dist/text-content/interfaces.d.ts +3 -0
- package/dist/text-content/interfaces.d.ts.map +1 -0
- package/dist/text-content/internal.d.ts +6 -0
- package/dist/text-content/internal.d.ts.map +1 -0
- package/dist/text-content/styles.d.ts +5 -0
- package/dist/text-content/styles.d.ts.map +1 -0
- package/dist/text-filter/interfaces.d.ts +102 -0
- package/dist/text-filter/interfaces.d.ts.map +1 -0
- package/dist/textarea/interfaces.d.ts +83 -0
- package/dist/textarea/interfaces.d.ts.map +1 -0
- package/dist/tiles/index.d.ts +5 -0
- package/dist/tiles/index.d.ts.map +1 -0
- package/dist/tiles/interfaces.d.ts +71 -0
- package/dist/tiles/interfaces.d.ts.map +1 -0
- package/dist/tiles/internal.d.ts +34 -0
- package/dist/tiles/internal.d.ts.map +1 -0
- package/dist/tiles/styles.d.ts +5 -0
- package/dist/tiles/styles.d.ts.map +1 -0
- package/dist/time-input/interfaces.d.ts +31 -0
- package/dist/time-input/interfaces.d.ts.map +1 -0
- package/dist/toggle/interfaces.d.ts +53 -0
- package/dist/toggle/interfaces.d.ts.map +1 -0
- package/dist/toggle-button/interfaces.d.ts +49 -0
- package/dist/toggle-button/interfaces.d.ts.map +1 -0
- package/dist/token/interfaces.d.ts +89 -0
- package/dist/token/interfaces.d.ts.map +1 -0
- package/dist/token-group/interfaces.d.ts +76 -0
- package/dist/token-group/interfaces.d.ts.map +1 -0
- package/dist/tooltip/interfaces.d.ts +30 -0
- package/dist/tooltip/interfaces.d.ts.map +1 -0
- package/dist/top-navigation/interfaces.d.ts +112 -0
- package/dist/top-navigation/interfaces.d.ts.map +1 -0
- package/dist/tree-view/index.d.ts +5 -0
- package/dist/tree-view/index.d.ts.map +1 -0
- package/dist/tree-view/interfaces.d.ts +79 -0
- package/dist/tree-view/interfaces.d.ts.map +1 -0
- package/dist/tree-view/internal.d.ts +24 -0
- package/dist/tree-view/internal.d.ts.map +1 -0
- package/dist/tree-view/styles.d.ts +5 -0
- package/dist/tree-view/styles.d.ts.map +1 -0
- package/dist/tutorial-panel/interfaces.d.ts +180 -0
- package/dist/tutorial-panel/interfaces.d.ts.map +1 -0
- package/dist/wizard/interfaces.d.ts +128 -0
- package/dist/wizard/interfaces.d.ts.map +1 -0
- package/package.json +62 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,4541 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// src/checkbox/internal.ts
|
|
13
|
+
import { css as css4, html, svg } from "lit";
|
|
14
|
+
import { property as property2 } from "lit/decorators.js";
|
|
15
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
16
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
17
|
+
import { LitElement } from "lit";
|
|
18
|
+
|
|
19
|
+
// src/internal/mixins/form-associated.ts
|
|
20
|
+
import { property } from "lit/decorators.js";
|
|
21
|
+
function FormAssociatedMixin(superClass) {
|
|
22
|
+
class FormAssociatedElement extends superClass {
|
|
23
|
+
// ── Constructor ───────────────────────────────────────────────────
|
|
24
|
+
constructor(...args) {
|
|
25
|
+
super(...args);
|
|
26
|
+
this._defaultValue = "";
|
|
27
|
+
this.name = "";
|
|
28
|
+
this.value = "";
|
|
29
|
+
this.disabled = false;
|
|
30
|
+
this.required = false;
|
|
31
|
+
this._internals = this.attachInternals();
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.formAssociated = true;
|
|
35
|
+
}
|
|
36
|
+
// ── Form value sync via Lit lifecycle ─────────────────────────────
|
|
37
|
+
willUpdate(changed) {
|
|
38
|
+
super.willUpdate(changed);
|
|
39
|
+
if (changed.has("value")) {
|
|
40
|
+
this.setFormValue(this.value);
|
|
41
|
+
}
|
|
42
|
+
if (changed.has("disabled")) {
|
|
43
|
+
this._internals.ariaDisabled = this.disabled ? "true" : "false";
|
|
44
|
+
}
|
|
45
|
+
if (changed.has("required")) {
|
|
46
|
+
this._internals.ariaRequired = this.required ? "true" : "false";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
connectedCallback() {
|
|
50
|
+
super.connectedCallback();
|
|
51
|
+
this._defaultValue = this.value;
|
|
52
|
+
}
|
|
53
|
+
// ── Public API (thin wrappers around ElementInternals) ────────────
|
|
54
|
+
setFormValue(value, state4) {
|
|
55
|
+
this._internals.setFormValue(value, state4);
|
|
56
|
+
}
|
|
57
|
+
setValidity(flags, message, anchor) {
|
|
58
|
+
if (flags && message) {
|
|
59
|
+
this._internals.setValidity(flags, message, anchor);
|
|
60
|
+
} else {
|
|
61
|
+
this._internals.setValidity({});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
reportValidity() {
|
|
65
|
+
return this._internals.reportValidity();
|
|
66
|
+
}
|
|
67
|
+
checkValidity() {
|
|
68
|
+
return this._internals.checkValidity();
|
|
69
|
+
}
|
|
70
|
+
get validity() {
|
|
71
|
+
return this._internals.validity;
|
|
72
|
+
}
|
|
73
|
+
get validationMessage() {
|
|
74
|
+
return this._internals.validationMessage;
|
|
75
|
+
}
|
|
76
|
+
// ── Form lifecycle callbacks ──────────────────────────────────────
|
|
77
|
+
formAssociatedCallback(_form) {
|
|
78
|
+
}
|
|
79
|
+
formResetCallback() {
|
|
80
|
+
this.value = this._defaultValue;
|
|
81
|
+
}
|
|
82
|
+
formDisabledCallback(disabled) {
|
|
83
|
+
this.disabled = disabled;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @param state - Previously saved value or `FormData` entry.
|
|
87
|
+
* @param _mode - `'restore'` (bfcache) or `'autocomplete'`.
|
|
88
|
+
*/
|
|
89
|
+
formStateRestoreCallback(state4, _mode) {
|
|
90
|
+
if (typeof state4 === "string") {
|
|
91
|
+
this.value = state4;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
__decorateClass([
|
|
96
|
+
property({ reflect: true })
|
|
97
|
+
], FormAssociatedElement.prototype, "name", 2);
|
|
98
|
+
__decorateClass([
|
|
99
|
+
property()
|
|
100
|
+
], FormAssociatedElement.prototype, "value", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
property({ type: Boolean, reflect: true })
|
|
103
|
+
], FormAssociatedElement.prototype, "disabled", 2);
|
|
104
|
+
__decorateClass([
|
|
105
|
+
property({ type: Boolean, reflect: true })
|
|
106
|
+
], FormAssociatedElement.prototype, "required", 2);
|
|
107
|
+
return FormAssociatedElement;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// src/internal/events.ts
|
|
111
|
+
function fireNonCancelableEvent(element, eventName, detail) {
|
|
112
|
+
element.dispatchEvent(
|
|
113
|
+
new CustomEvent(eventName, {
|
|
114
|
+
detail,
|
|
115
|
+
bubbles: true,
|
|
116
|
+
composed: true,
|
|
117
|
+
cancelable: false
|
|
118
|
+
})
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// src/internal/hooks/use-unique-id.ts
|
|
123
|
+
var counter = 0;
|
|
124
|
+
function generateUniqueId(prefix = "uid") {
|
|
125
|
+
return `cs-${prefix}-${++counter}`;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// src/checkbox/styles.ts
|
|
129
|
+
import { css as css2 } from "lit";
|
|
130
|
+
|
|
131
|
+
// src/internal/styles/shared.ts
|
|
132
|
+
import { css } from "lit";
|
|
133
|
+
var sharedStyles = css`
|
|
134
|
+
*,
|
|
135
|
+
*::before,
|
|
136
|
+
*::after {
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host([hidden]) {
|
|
141
|
+
display: none !important;
|
|
142
|
+
}
|
|
143
|
+
`;
|
|
144
|
+
|
|
145
|
+
// src/checkbox/styles.ts
|
|
146
|
+
var componentStyles = css2`
|
|
147
|
+
.root.root {
|
|
148
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
149
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
150
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
151
|
+
font-weight: 400;
|
|
152
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
153
|
+
-webkit-font-smoothing: auto;
|
|
154
|
+
-moz-osx-font-smoothing: auto;
|
|
155
|
+
display: flex;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.checkbox-control {
|
|
159
|
+
margin-block-start: calc((var(--line-height-body-m-2mh3ke, 20px) - var(--size-control-adm93y, 16px)) / 2);
|
|
160
|
+
min-block-size: var(--size-control-adm93y, 16px);
|
|
161
|
+
min-inline-size: var(--size-control-adm93y, 16px);
|
|
162
|
+
block-size: var(--size-control-adm93y, 16px);
|
|
163
|
+
inline-size: var(--size-control-adm93y, 16px);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.outline {
|
|
167
|
+
--awsui-style-focus-ring-box-shadow-6b9ypa: 0 0 0 var(--awsui-style-focus-ring-border-width-6b9ypa, 2px) var(--awsui-style-focus-ring-border-color-6b9ypa, var(--color-border-item-focused-uk47pl, #006ce0));
|
|
168
|
+
position: relative;
|
|
169
|
+
}
|
|
170
|
+
.outline {
|
|
171
|
+
outline: 2px dotted transparent;
|
|
172
|
+
outline-offset: calc(2px - 1px);
|
|
173
|
+
}
|
|
174
|
+
.outline::before {
|
|
175
|
+
content: " ";
|
|
176
|
+
display: block;
|
|
177
|
+
position: absolute;
|
|
178
|
+
inset-inline-start: calc(-1 * 2px);
|
|
179
|
+
inset-block-start: calc(-1 * 2px);
|
|
180
|
+
inline-size: calc(100% + 2px + 2px);
|
|
181
|
+
block-size: calc(100% + 2px + 2px);
|
|
182
|
+
border-start-start-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
183
|
+
border-start-end-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
184
|
+
border-end-start-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
185
|
+
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
186
|
+
box-shadow: var(--awsui-style-focus-ring-box-shadow-6b9ypa);
|
|
187
|
+
}
|
|
188
|
+
`;
|
|
189
|
+
|
|
190
|
+
// src/internal/styles/abstract-switch.ts
|
|
191
|
+
import { css as css3 } from "lit";
|
|
192
|
+
var abstractSwitchStyles = css3`
|
|
193
|
+
.content,
|
|
194
|
+
.description,
|
|
195
|
+
.label {
|
|
196
|
+
display: block;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.label {
|
|
200
|
+
color: var(--color-text-form-default-47mtz6, #0f141a);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.outline {
|
|
204
|
+
display: none;
|
|
205
|
+
}
|
|
206
|
+
.outline.show-outline {
|
|
207
|
+
display: block;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:host-context([data-awsui-focus-visible=true]) .native-input:focus + .outline {
|
|
211
|
+
display: block;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.wrapper {
|
|
215
|
+
min-inline-size: 0;
|
|
216
|
+
word-break: break-word;
|
|
217
|
+
display: flex;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.label-wrapper {
|
|
221
|
+
position: relative;
|
|
222
|
+
display: flex;
|
|
223
|
+
cursor: default;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.content {
|
|
227
|
+
min-inline-size: 0;
|
|
228
|
+
word-break: break-word;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.empty-content {
|
|
232
|
+
inline-size: 0px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.description {
|
|
236
|
+
color: var(--color-text-form-secondary-1nm780, #656871);
|
|
237
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
238
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
239
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
240
|
+
}
|
|
241
|
+
.description-bottom-padding {
|
|
242
|
+
padding-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.label,
|
|
246
|
+
.description {
|
|
247
|
+
padding-inline-start: var(--space-xs-ymlm0b, 8px);
|
|
248
|
+
}
|
|
249
|
+
.label-disabled,
|
|
250
|
+
.description-disabled {
|
|
251
|
+
color: var(--color-text-control-disabled-upk9lz, #b4b4bb);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.control {
|
|
255
|
+
position: relative;
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
}
|
|
259
|
+
.control > input, .control > svg, .control > .outline {
|
|
260
|
+
position: absolute;
|
|
261
|
+
inline-size: 100%;
|
|
262
|
+
block-size: 100%;
|
|
263
|
+
inset-block-start: 0;
|
|
264
|
+
inset-inline-start: 0;
|
|
265
|
+
}
|
|
266
|
+
.control > input {
|
|
267
|
+
opacity: 0;
|
|
268
|
+
z-index: 1;
|
|
269
|
+
-webkit-user-select: none;
|
|
270
|
+
user-select: none;
|
|
271
|
+
cursor: default;
|
|
272
|
+
margin-block: 0;
|
|
273
|
+
margin-inline: 0;
|
|
274
|
+
}
|
|
275
|
+
`;
|
|
276
|
+
|
|
277
|
+
// src/checkbox/internal.ts
|
|
278
|
+
var Base = FormAssociatedMixin(LitElement);
|
|
279
|
+
var hostStyles = css4`
|
|
280
|
+
:host { display: block; }
|
|
281
|
+
.label-wrapper { flex-direction: column; }
|
|
282
|
+
.checkbox-icon {
|
|
283
|
+
position: absolute;
|
|
284
|
+
inline-size: 100%;
|
|
285
|
+
block-size: 100%;
|
|
286
|
+
inset-block-start: 0;
|
|
287
|
+
inset-inline-start: 0;
|
|
288
|
+
}
|
|
289
|
+
.checkbox-icon > .styled-box {
|
|
290
|
+
fill: var(--color-background-control-default-4jb21l, #ffffff);
|
|
291
|
+
stroke: var(--color-border-control-default-sh3548, #8c8c94);
|
|
292
|
+
stroke-width: var(--border-width-field-2xc78x, 1px);
|
|
293
|
+
}
|
|
294
|
+
.checkbox-icon > .styled-box-checked,
|
|
295
|
+
.checkbox-icon > .styled-box-indeterminate {
|
|
296
|
+
fill: var(--color-background-control-checked-ka7kc2, #006ce0);
|
|
297
|
+
stroke: var(--color-border-control-checked-bdv28l, #006ce0);
|
|
298
|
+
}
|
|
299
|
+
.checkbox-icon > .styled-box-disabled,
|
|
300
|
+
.checkbox-icon > .styled-box-readonly {
|
|
301
|
+
fill: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
302
|
+
stroke: var(--color-border-control-disabled-uj7t08, #dedee3);
|
|
303
|
+
}
|
|
304
|
+
.checkbox-icon > .styled-line {
|
|
305
|
+
stroke: var(--color-foreground-control-default-eto4wy, #ffffff);
|
|
306
|
+
stroke-width: 2;
|
|
307
|
+
fill: none;
|
|
308
|
+
}
|
|
309
|
+
.checkbox-icon > .styled-line-disabled {
|
|
310
|
+
stroke: var(--color-foreground-control-disabled-txi6cf, #ffffff);
|
|
311
|
+
}
|
|
312
|
+
.checkbox-icon > .styled-line-readonly {
|
|
313
|
+
stroke: var(--color-foreground-control-read-only-7ydvuj, #656871);
|
|
314
|
+
}
|
|
315
|
+
`;
|
|
316
|
+
var CsCheckboxInternal = class extends Base {
|
|
317
|
+
constructor() {
|
|
318
|
+
super(...arguments);
|
|
319
|
+
this.checked = false;
|
|
320
|
+
this.indeterminate = false;
|
|
321
|
+
this.readOnly = false;
|
|
322
|
+
this.description = "";
|
|
323
|
+
this.ariaLabel = "";
|
|
324
|
+
this._labelId = generateUniqueId("checkbox-label");
|
|
325
|
+
this._descriptionId = generateUniqueId("checkbox-desc");
|
|
326
|
+
this._onHostClick = () => {
|
|
327
|
+
this._toggle();
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
static {
|
|
331
|
+
this.styles = [sharedStyles, componentStyles, abstractSwitchStyles, hostStyles];
|
|
332
|
+
}
|
|
333
|
+
connectedCallback() {
|
|
334
|
+
super.connectedCallback();
|
|
335
|
+
if (!this.value) {
|
|
336
|
+
this.value = "on";
|
|
337
|
+
}
|
|
338
|
+
this.addEventListener("click", this._onHostClick);
|
|
339
|
+
}
|
|
340
|
+
disconnectedCallback() {
|
|
341
|
+
super.disconnectedCallback();
|
|
342
|
+
this.removeEventListener("click", this._onHostClick);
|
|
343
|
+
}
|
|
344
|
+
willUpdate(changed) {
|
|
345
|
+
super.willUpdate(changed);
|
|
346
|
+
if (changed.has("checked") || changed.has("value")) {
|
|
347
|
+
this.setFormValue(this.checked ? this.value || "on" : null);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
_preventNativeToggle(e) {
|
|
351
|
+
e.preventDefault();
|
|
352
|
+
}
|
|
353
|
+
_toggle() {
|
|
354
|
+
if (this.disabled || this.readOnly) return;
|
|
355
|
+
this.checked = !this.checked;
|
|
356
|
+
this.indeterminate = false;
|
|
357
|
+
const detail = {
|
|
358
|
+
checked: this.checked,
|
|
359
|
+
indeterminate: false
|
|
360
|
+
};
|
|
361
|
+
fireNonCancelableEvent(this, "change", detail);
|
|
362
|
+
}
|
|
363
|
+
render() {
|
|
364
|
+
const styledBoxClasses = {
|
|
365
|
+
"styled-box": true,
|
|
366
|
+
"styled-box-checked": this.checked && !this.indeterminate,
|
|
367
|
+
"styled-box-indeterminate": this.indeterminate,
|
|
368
|
+
"styled-box-disabled": this.disabled,
|
|
369
|
+
"styled-box-readonly": this.readOnly
|
|
370
|
+
};
|
|
371
|
+
const styledLineClasses = {
|
|
372
|
+
"styled-line": true,
|
|
373
|
+
"styled-line-disabled": this.disabled,
|
|
374
|
+
"styled-line-readonly": this.readOnly
|
|
375
|
+
};
|
|
376
|
+
const hasDescription = this.description.length > 0;
|
|
377
|
+
const ariaDescribedBy = hasDescription ? this._descriptionId : void 0;
|
|
378
|
+
return html`
|
|
379
|
+
<label class="root wrapper" @click=${this._preventNativeToggle}>
|
|
380
|
+
<span class=${classMap({
|
|
381
|
+
"control": true,
|
|
382
|
+
"checkbox-control": true,
|
|
383
|
+
"checkbox-control--checked": this.checked && !this.indeterminate,
|
|
384
|
+
"checkbox-control--indeterminate": this.indeterminate
|
|
385
|
+
})}>
|
|
386
|
+
<input
|
|
387
|
+
type="checkbox"
|
|
388
|
+
class="native-input"
|
|
389
|
+
.checked=${this.checked}
|
|
390
|
+
.indeterminate=${this.indeterminate}
|
|
391
|
+
?disabled=${this.disabled}
|
|
392
|
+
?readonly=${this.readOnly}
|
|
393
|
+
aria-label=${ifDefined(this.ariaLabel || void 0)}
|
|
394
|
+
aria-describedby=${ifDefined(ariaDescribedBy)}
|
|
395
|
+
aria-checked=${this.indeterminate ? "mixed" : this.checked}
|
|
396
|
+
@click=${this._preventNativeToggle}
|
|
397
|
+
/>
|
|
398
|
+
<svg class="checkbox-icon" viewBox="0 0 16 16" aria-hidden="true"><rect class=${classMap(styledBoxClasses)} x="0.5" y="0.5" width="15" height="15" rx="3" ry="3" />${this.checked && !this.indeterminate ? svg`<polyline class=${classMap(styledLineClasses)} points="3.5,8 7,11 12,4" />` : this.indeterminate ? svg`<polyline class=${classMap(styledLineClasses)} points="3.5,8 12.5,8" />` : ""}</svg>
|
|
399
|
+
<span class="outline"></span>
|
|
400
|
+
</span>
|
|
401
|
+
<span class="label-wrapper">
|
|
402
|
+
<span id=${this._labelId} class=${classMap({
|
|
403
|
+
"label": true,
|
|
404
|
+
"label-disabled": this.disabled
|
|
405
|
+
})}>
|
|
406
|
+
<slot></slot>
|
|
407
|
+
</span>
|
|
408
|
+
${hasDescription ? html`
|
|
409
|
+
<span id=${this._descriptionId} class=${classMap({
|
|
410
|
+
"description": true,
|
|
411
|
+
"description-bottom-padding": true,
|
|
412
|
+
"description-disabled": this.disabled
|
|
413
|
+
})}>
|
|
414
|
+
${this.description}
|
|
415
|
+
</span>
|
|
416
|
+
` : ""}
|
|
417
|
+
</span>
|
|
418
|
+
</label>
|
|
419
|
+
`;
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
__decorateClass([
|
|
423
|
+
property2({ type: Boolean, reflect: true })
|
|
424
|
+
], CsCheckboxInternal.prototype, "checked", 2);
|
|
425
|
+
__decorateClass([
|
|
426
|
+
property2({ type: Boolean, reflect: true })
|
|
427
|
+
], CsCheckboxInternal.prototype, "indeterminate", 2);
|
|
428
|
+
__decorateClass([
|
|
429
|
+
property2({ type: Boolean, reflect: true })
|
|
430
|
+
], CsCheckboxInternal.prototype, "readOnly", 2);
|
|
431
|
+
__decorateClass([
|
|
432
|
+
property2({ type: String })
|
|
433
|
+
], CsCheckboxInternal.prototype, "description", 2);
|
|
434
|
+
__decorateClass([
|
|
435
|
+
property2({ type: String })
|
|
436
|
+
], CsCheckboxInternal.prototype, "ariaLabel", 2);
|
|
437
|
+
|
|
438
|
+
// src/checkbox/index.ts
|
|
439
|
+
var CsCheckbox = class extends CsCheckboxInternal {
|
|
440
|
+
};
|
|
441
|
+
customElements.define("cs-checkbox", CsCheckbox);
|
|
442
|
+
|
|
443
|
+
// src/spinner/internal.ts
|
|
444
|
+
import { css as css6, html as html2, LitElement as LitElement2 } from "lit";
|
|
445
|
+
import { property as property3 } from "lit/decorators.js";
|
|
446
|
+
import { classMap as classMap2 } from "lit/directives/class-map.js";
|
|
447
|
+
|
|
448
|
+
// src/spinner/styles.ts
|
|
449
|
+
import { css as css5 } from "lit";
|
|
450
|
+
var componentStyles2 = css5`
|
|
451
|
+
@keyframes awsui_spinner-rotator_1612d_1krck_1 {
|
|
452
|
+
0% {
|
|
453
|
+
transform: rotate(var(--awsui-spinner-rotator-from-6b9ypa));
|
|
454
|
+
}
|
|
455
|
+
100% {
|
|
456
|
+
transform: rotate(var(--awsui-spinner-rotator-to-6b9ypa));
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
@keyframes awsui_spinner-line-left_1612d_1krck_1 {
|
|
460
|
+
0% {
|
|
461
|
+
transform: rotate(var(--awsui-spinner-line-left-from-6b9ypa));
|
|
462
|
+
}
|
|
463
|
+
50% {
|
|
464
|
+
transform: rotate(var(--awsui-spinner-line-left-to-6b9ypa));
|
|
465
|
+
}
|
|
466
|
+
100% {
|
|
467
|
+
transform: rotate(var(--awsui-spinner-line-left-from-6b9ypa));
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
@keyframes awsui_spinner-line-right_1612d_1krck_1 {
|
|
471
|
+
0% {
|
|
472
|
+
transform: rotate(var(--awsui-spinner-line-right-from-6b9ypa));
|
|
473
|
+
}
|
|
474
|
+
50% {
|
|
475
|
+
transform: rotate(var(--awsui-spinner-line-right-to-6b9ypa));
|
|
476
|
+
}
|
|
477
|
+
100% {
|
|
478
|
+
transform: rotate(var(--awsui-spinner-line-right-from-6b9ypa));
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
.root {
|
|
482
|
+
--awsui-spinner-rotator-from-6b9ypa: 0deg;
|
|
483
|
+
--awsui-spinner-rotator-to-6b9ypa: 360deg;
|
|
484
|
+
--awsui-spinner-line-left-from-6b9ypa: 0deg;
|
|
485
|
+
--awsui-spinner-line-left-to-6b9ypa: 120deg;
|
|
486
|
+
--awsui-spinner-line-right-from-6b9ypa: 90deg;
|
|
487
|
+
--awsui-spinner-line-right-to-6b9ypa: -30deg;
|
|
488
|
+
display: inline-block;
|
|
489
|
+
vertical-align: top;
|
|
490
|
+
|
|
491
|
+
animation: awsui_spinner-rotator_1612d_1krck_1 0.7s linear infinite;
|
|
492
|
+
box-sizing: border-box;
|
|
493
|
+
line-height: 0;
|
|
494
|
+
|
|
495
|
+
}
|
|
496
|
+
.root.size-normal {
|
|
497
|
+
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
498
|
+
block-size: var(--size-icon-normal-levt08, 16px);
|
|
499
|
+
padding-block: calc((var(--size-icon-normal-levt08, 16px) - 12px) / 2);
|
|
500
|
+
padding-inline: calc((var(--size-icon-normal-levt08, 16px) - 12px) / 2);
|
|
501
|
+
margin-block: calc((var(--line-height-body-m-2mh3ke, 20px) - var(--size-icon-normal-levt08, 16px)) / 2);
|
|
502
|
+
box-sizing: border-box;
|
|
503
|
+
}
|
|
504
|
+
.root.size-big {
|
|
505
|
+
inline-size: var(--size-icon-big-7pq9l3, 32px);
|
|
506
|
+
block-size: var(--size-icon-big-7pq9l3, 32px);
|
|
507
|
+
padding-block: calc((var(--size-icon-big-7pq9l3, 32px) - 24px) / 2);
|
|
508
|
+
padding-inline: calc((var(--size-icon-big-7pq9l3, 32px) - 24px) / 2);
|
|
509
|
+
margin-block: calc((var(--line-height-heading-xl-hko6p0, 30px) - var(--size-icon-big-7pq9l3, 32px)) / 2);
|
|
510
|
+
box-sizing: border-box;
|
|
511
|
+
}
|
|
512
|
+
.root.size-large {
|
|
513
|
+
inline-size: var(--size-icon-large-mb6y6y, 48px);
|
|
514
|
+
block-size: var(--size-icon-large-mb6y6y, 48px);
|
|
515
|
+
padding-block: calc((var(--size-icon-large-mb6y6y, 48px) - 36px) / 2);
|
|
516
|
+
padding-inline: calc((var(--size-icon-large-mb6y6y, 48px) - 36px) / 2);
|
|
517
|
+
margin-block: calc((var(--line-height-display-l-vwanzp, 48px) - var(--size-icon-large-mb6y6y, 48px)) / 2);
|
|
518
|
+
box-sizing: border-box;
|
|
519
|
+
}
|
|
520
|
+
.root.variant-normal {
|
|
521
|
+
color: currentColor;
|
|
522
|
+
}
|
|
523
|
+
.root.variant-disabled {
|
|
524
|
+
color: var(--color-text-interactive-disabled-1bqmrl, #b4b4bb);
|
|
525
|
+
}
|
|
526
|
+
.root.variant-inverted {
|
|
527
|
+
color: var(--color-text-inverted-4v4dmq, #ffffff);
|
|
528
|
+
}
|
|
529
|
+
.root:dir(rtl) {
|
|
530
|
+
--awsui-spinner-rotator-from-6b9ypa: 360deg;
|
|
531
|
+
--awsui-spinner-rotator-to-6b9ypa: 0deg;
|
|
532
|
+
--awsui-spinner-line-left-from-6b9ypa: 0deg;
|
|
533
|
+
--awsui-spinner-line-left-to-6b9ypa: -120deg;
|
|
534
|
+
--awsui-spinner-line-right-from-6b9ypa: -90deg;
|
|
535
|
+
--awsui-spinner-line-right-to-6b9ypa: 30deg;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.circle {
|
|
539
|
+
display: inline-block;
|
|
540
|
+
inline-size: 50%;
|
|
541
|
+
block-size: 100%;
|
|
542
|
+
overflow: hidden;
|
|
543
|
+
position: relative;
|
|
544
|
+
}
|
|
545
|
+
.circle:after {
|
|
546
|
+
position: absolute;
|
|
547
|
+
box-sizing: border-box;
|
|
548
|
+
content: "";
|
|
549
|
+
border-start-start-radius: 50%;
|
|
550
|
+
border-start-end-radius: 50%;
|
|
551
|
+
border-end-start-radius: 50%;
|
|
552
|
+
border-end-end-radius: 50%;
|
|
553
|
+
border-block: 2px solid;
|
|
554
|
+
border-inline: 2px solid;
|
|
555
|
+
border-inline-end-color: transparent;
|
|
556
|
+
border-block-end-color: transparent;
|
|
557
|
+
}
|
|
558
|
+
.circle:after {
|
|
559
|
+
|
|
560
|
+
animation: 1.5s ease-in-out infinite;
|
|
561
|
+
inset-block-start: 0;
|
|
562
|
+
inset-inline-start: 0;
|
|
563
|
+
block-size: 100%;
|
|
564
|
+
inline-size: 200%;
|
|
565
|
+
}
|
|
566
|
+
.circle.circle-left:after {
|
|
567
|
+
inset-inline-start: 0;
|
|
568
|
+
|
|
569
|
+
animation-name: awsui_spinner-line-left_1612d_1krck_1;
|
|
570
|
+
}
|
|
571
|
+
.circle.circle-right:after {
|
|
572
|
+
inset-inline-start: -100%;
|
|
573
|
+
|
|
574
|
+
animation-name: awsui_spinner-line-right_1612d_1krck_1;
|
|
575
|
+
}
|
|
576
|
+
`;
|
|
577
|
+
|
|
578
|
+
// src/spinner/internal.ts
|
|
579
|
+
var hostStyles2 = css6`
|
|
580
|
+
:host {
|
|
581
|
+
display: inline-block;
|
|
582
|
+
vertical-align: top;
|
|
583
|
+
line-height: 0;
|
|
584
|
+
}
|
|
585
|
+
`;
|
|
586
|
+
var CsSpinnerInternal = class extends LitElement2 {
|
|
587
|
+
constructor() {
|
|
588
|
+
super(...arguments);
|
|
589
|
+
this.size = "normal";
|
|
590
|
+
this.variant = "normal";
|
|
591
|
+
}
|
|
592
|
+
static {
|
|
593
|
+
this.styles = [sharedStyles, componentStyles2, hostStyles2];
|
|
594
|
+
}
|
|
595
|
+
render() {
|
|
596
|
+
const classes = {
|
|
597
|
+
"root": true,
|
|
598
|
+
[`size-${this.size}`]: true,
|
|
599
|
+
[`variant-${this.variant}`]: true
|
|
600
|
+
};
|
|
601
|
+
return html2`
|
|
602
|
+
<span class=${classMap2(classes)} role="img" aria-label="Loading"><span class="circle circle-left"></span><span class="circle circle-right"></span></span>
|
|
603
|
+
`;
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
__decorateClass([
|
|
607
|
+
property3({ type: String, reflect: true })
|
|
608
|
+
], CsSpinnerInternal.prototype, "size", 2);
|
|
609
|
+
__decorateClass([
|
|
610
|
+
property3({ type: String, reflect: true })
|
|
611
|
+
], CsSpinnerInternal.prototype, "variant", 2);
|
|
612
|
+
|
|
613
|
+
// src/spinner/index.ts
|
|
614
|
+
var CsSpinner = class extends CsSpinnerInternal {
|
|
615
|
+
};
|
|
616
|
+
customElements.define("cs-spinner", CsSpinner);
|
|
617
|
+
|
|
618
|
+
// src/badge/internal.ts
|
|
619
|
+
import { css as css8, html as html3, LitElement as LitElement3 } from "lit";
|
|
620
|
+
import { property as property4 } from "lit/decorators.js";
|
|
621
|
+
import { classMap as classMap3 } from "lit/directives/class-map.js";
|
|
622
|
+
|
|
623
|
+
// src/badge/styles.ts
|
|
624
|
+
import { css as css7 } from "lit";
|
|
625
|
+
var componentStyles3 = css7`
|
|
626
|
+
.badge {
|
|
627
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
628
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
629
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
630
|
+
font-weight: 400;
|
|
631
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
632
|
+
-webkit-font-smoothing: auto;
|
|
633
|
+
-moz-osx-font-smoothing: auto;
|
|
634
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
635
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
636
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
637
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
638
|
+
display: inline-block;
|
|
639
|
+
border-start-start-radius: var(--border-radius-badge-exolfb, 4px);
|
|
640
|
+
border-start-end-radius: var(--border-radius-badge-exolfb, 4px);
|
|
641
|
+
border-end-start-radius: var(--border-radius-badge-exolfb, 4px);
|
|
642
|
+
border-end-end-radius: var(--border-radius-badge-exolfb, 4px);
|
|
643
|
+
border-block-style: solid;
|
|
644
|
+
border-inline-style: solid;
|
|
645
|
+
border-width: 0;
|
|
646
|
+
padding-block: 0;
|
|
647
|
+
padding-inline: var(--space-xs-ymlm0b, 8px);
|
|
648
|
+
color: var(--color-text-notification-default-1iey72, #f9f9fa);
|
|
649
|
+
}
|
|
650
|
+
.badge.badge-color-grey {
|
|
651
|
+
background-color: var(--color-background-notification-grey-x3vul6, #424650);
|
|
652
|
+
}
|
|
653
|
+
.badge.badge-color-green {
|
|
654
|
+
background-color: var(--color-background-notification-green-2rkyvu, #00802f);
|
|
655
|
+
}
|
|
656
|
+
.badge.badge-color-blue {
|
|
657
|
+
background-color: var(--color-background-notification-blue-4vnob8, #006ce0);
|
|
658
|
+
}
|
|
659
|
+
.badge.badge-color-red {
|
|
660
|
+
background-color: var(--color-background-notification-red-0487ea, #db0000);
|
|
661
|
+
}
|
|
662
|
+
.badge.badge-color-severity-critical {
|
|
663
|
+
background-color: var(--color-background-notification-severity-critical-0xl8pp, #870303);
|
|
664
|
+
color: var(--color-text-notification-severity-critical-tv4vw4, #f9f9fa);
|
|
665
|
+
}
|
|
666
|
+
.badge.badge-color-severity-high {
|
|
667
|
+
background-color: var(--color-background-notification-severity-high-8nbgdi, #ce3311);
|
|
668
|
+
color: var(--color-text-notification-severity-high-t4suvu, #f9f9fa);
|
|
669
|
+
}
|
|
670
|
+
.badge.badge-color-severity-medium {
|
|
671
|
+
background-color: var(--color-background-notification-severity-medium-lbljs2, #f89256);
|
|
672
|
+
color: var(--color-text-notification-severity-medium-8f60kb, #0f141a);
|
|
673
|
+
}
|
|
674
|
+
.badge.badge-color-severity-low {
|
|
675
|
+
background-color: var(--color-background-notification-severity-low-giz8b6, #f2cd54);
|
|
676
|
+
color: var(--color-text-notification-severity-low-gvojhi, #0f141a);
|
|
677
|
+
}
|
|
678
|
+
.badge.badge-color-severity-neutral {
|
|
679
|
+
background-color: var(--color-background-notification-severity-neutral-hnhgmv, #656871);
|
|
680
|
+
color: var(--color-text-notification-severity-neutral-ynm2wl, #f9f9fa);
|
|
681
|
+
}
|
|
682
|
+
`;
|
|
683
|
+
|
|
684
|
+
// src/badge/internal.ts
|
|
685
|
+
var hostStyles3 = css8`
|
|
686
|
+
:host {
|
|
687
|
+
display: inline-block;
|
|
688
|
+
line-height: 0;
|
|
689
|
+
}
|
|
690
|
+
`;
|
|
691
|
+
var CsBadgeInternal = class extends LitElement3 {
|
|
692
|
+
constructor() {
|
|
693
|
+
super(...arguments);
|
|
694
|
+
this.color = "grey";
|
|
695
|
+
}
|
|
696
|
+
static {
|
|
697
|
+
this.styles = [sharedStyles, componentStyles3, hostStyles3];
|
|
698
|
+
}
|
|
699
|
+
render() {
|
|
700
|
+
const classes = {
|
|
701
|
+
"badge": true,
|
|
702
|
+
[`badge-color-${this.color}`]: true
|
|
703
|
+
};
|
|
704
|
+
return html3`
|
|
705
|
+
<span class=${classMap3(classes)}>
|
|
706
|
+
<slot></slot>
|
|
707
|
+
</span>
|
|
708
|
+
`;
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
__decorateClass([
|
|
712
|
+
property4({ type: String, reflect: true })
|
|
713
|
+
], CsBadgeInternal.prototype, "color", 2);
|
|
714
|
+
|
|
715
|
+
// src/badge/index.ts
|
|
716
|
+
var CsBadge = class extends CsBadgeInternal {
|
|
717
|
+
};
|
|
718
|
+
customElements.define("cs-badge", CsBadge);
|
|
719
|
+
|
|
720
|
+
// src/live-region/internal.ts
|
|
721
|
+
import { css as css10, html as html4, LitElement as LitElement4 } from "lit";
|
|
722
|
+
import { property as property5 } from "lit/decorators.js";
|
|
723
|
+
import { classMap as classMap4 } from "lit/directives/class-map.js";
|
|
724
|
+
|
|
725
|
+
// src/live-region/styles.ts
|
|
726
|
+
import { css as css9 } from "lit";
|
|
727
|
+
var componentStyles4 = css9`
|
|
728
|
+
.root {
|
|
729
|
+
display: contents;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.root[hidden] {
|
|
733
|
+
display: none;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.announcer {
|
|
737
|
+
position: absolute !important;
|
|
738
|
+
inset-block-start: -9999px !important;
|
|
739
|
+
inset-inline-start: -9999px !important;
|
|
740
|
+
}
|
|
741
|
+
`;
|
|
742
|
+
|
|
743
|
+
// src/live-region/internal.ts
|
|
744
|
+
var hostStyles4 = css10`:host { display: contents; }`;
|
|
745
|
+
var CsLiveRegionInternal = class extends LitElement4 {
|
|
746
|
+
constructor() {
|
|
747
|
+
super(...arguments);
|
|
748
|
+
this.assertive = false;
|
|
749
|
+
this.tagName_ = "div";
|
|
750
|
+
this.hidden = false;
|
|
751
|
+
}
|
|
752
|
+
static {
|
|
753
|
+
this.styles = [sharedStyles, componentStyles4, hostStyles4];
|
|
754
|
+
}
|
|
755
|
+
render() {
|
|
756
|
+
const liveValue = this.assertive ? "assertive" : "polite";
|
|
757
|
+
const classes = {
|
|
758
|
+
"root": !this.hidden,
|
|
759
|
+
"announcer": !!this.hidden
|
|
760
|
+
};
|
|
761
|
+
if (this.tagName_ === "span") {
|
|
762
|
+
return html4`
|
|
763
|
+
<span class=${classMap4(classes)} aria-live=${liveValue} aria-atomic="true">
|
|
764
|
+
<slot></slot>
|
|
765
|
+
</span>
|
|
766
|
+
`;
|
|
767
|
+
}
|
|
768
|
+
return html4`
|
|
769
|
+
<div class=${classMap4(classes)} aria-live=${liveValue} aria-atomic="true">
|
|
770
|
+
<slot></slot>
|
|
771
|
+
</div>
|
|
772
|
+
`;
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
__decorateClass([
|
|
776
|
+
property5({ type: Boolean, reflect: true })
|
|
777
|
+
], CsLiveRegionInternal.prototype, "assertive", 2);
|
|
778
|
+
__decorateClass([
|
|
779
|
+
property5({ type: String, reflect: true, attribute: "tag-name" })
|
|
780
|
+
], CsLiveRegionInternal.prototype, "tagName_", 2);
|
|
781
|
+
__decorateClass([
|
|
782
|
+
property5({ type: Boolean, reflect: true })
|
|
783
|
+
], CsLiveRegionInternal.prototype, "hidden", 2);
|
|
784
|
+
|
|
785
|
+
// src/live-region/index.ts
|
|
786
|
+
var CsLiveRegion = class extends CsLiveRegionInternal {
|
|
787
|
+
};
|
|
788
|
+
customElements.define("cs-live-region", CsLiveRegion);
|
|
789
|
+
|
|
790
|
+
// src/icon/internal.ts
|
|
791
|
+
import { css as css12, html as html6, svg as svgTag, LitElement as LitElement6 } from "lit";
|
|
792
|
+
import { property as property7 } from "lit/decorators.js";
|
|
793
|
+
import { classMap as classMap5 } from "lit/directives/class-map.js";
|
|
794
|
+
import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
|
|
795
|
+
import { consume } from "@lit/context";
|
|
796
|
+
|
|
797
|
+
// src/icon/styles.ts
|
|
798
|
+
import { css as css11 } from "lit";
|
|
799
|
+
var componentStyles5 = css11`
|
|
800
|
+
.icon {
|
|
801
|
+
position: relative;
|
|
802
|
+
display: inline-block;
|
|
803
|
+
vertical-align: top;
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
}
|
|
808
|
+
.icon-flex-height {
|
|
809
|
+
display: inline-flex;
|
|
810
|
+
align-items: center;
|
|
811
|
+
}
|
|
812
|
+
.icon > svg {
|
|
813
|
+
pointer-events: none;
|
|
814
|
+
}
|
|
815
|
+
.icon > svg {
|
|
816
|
+
fill: none;
|
|
817
|
+
}
|
|
818
|
+
.icon > svg * {
|
|
819
|
+
stroke: currentColor;
|
|
820
|
+
}
|
|
821
|
+
.icon > svg .stroke-linejoin-round {
|
|
822
|
+
stroke-linejoin: round;
|
|
823
|
+
}
|
|
824
|
+
.icon > svg .stroke-linecap-square {
|
|
825
|
+
stroke-linecap: square;
|
|
826
|
+
}
|
|
827
|
+
.icon > svg .stroke-linecap-round {
|
|
828
|
+
stroke-linecap: round;
|
|
829
|
+
}
|
|
830
|
+
.icon > svg .filled {
|
|
831
|
+
fill: currentColor;
|
|
832
|
+
}
|
|
833
|
+
.icon > svg .no-stroke {
|
|
834
|
+
stroke: none;
|
|
835
|
+
}
|
|
836
|
+
.icon.size-small {
|
|
837
|
+
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
838
|
+
box-sizing: border-box;
|
|
839
|
+
}
|
|
840
|
+
.icon.size-small-mapped-height {
|
|
841
|
+
block-size: var(--line-height-body-s-nu5hx1, 16px);
|
|
842
|
+
padding-block: calc((var(--line-height-body-s-nu5hx1, 16px) - var(--size-icon-normal-levt08, 16px)) / 2);
|
|
843
|
+
padding-inline: 0;
|
|
844
|
+
}
|
|
845
|
+
.icon.size-small > svg,
|
|
846
|
+
.icon.size-small > img {
|
|
847
|
+
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
848
|
+
block-size: var(--size-icon-normal-levt08, 16px);
|
|
849
|
+
vertical-align: top;
|
|
850
|
+
}
|
|
851
|
+
.icon.size-small > svg,
|
|
852
|
+
.icon.size-small > svg * {
|
|
853
|
+
stroke-width: calc(var(--border-width-icon-small-z55i5t, 2px) / 1);
|
|
854
|
+
}
|
|
855
|
+
.icon.size-normal {
|
|
856
|
+
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
857
|
+
box-sizing: border-box;
|
|
858
|
+
}
|
|
859
|
+
.icon.size-normal-mapped-height {
|
|
860
|
+
block-size: var(--line-height-body-m-2mh3ke, 20px);
|
|
861
|
+
padding-block: calc((var(--line-height-body-m-2mh3ke, 20px) - var(--size-icon-normal-levt08, 16px)) / 2);
|
|
862
|
+
padding-inline: 0;
|
|
863
|
+
}
|
|
864
|
+
.icon.size-normal > svg,
|
|
865
|
+
.icon.size-normal > img {
|
|
866
|
+
inline-size: var(--size-icon-normal-levt08, 16px);
|
|
867
|
+
block-size: var(--size-icon-normal-levt08, 16px);
|
|
868
|
+
vertical-align: top;
|
|
869
|
+
}
|
|
870
|
+
.icon.size-normal > svg,
|
|
871
|
+
.icon.size-normal > svg * {
|
|
872
|
+
stroke-width: calc(var(--border-width-icon-normal-9h7vj7, 2px) / 1);
|
|
873
|
+
}
|
|
874
|
+
.icon.size-medium {
|
|
875
|
+
inline-size: var(--size-icon-medium-uv8xcz, 20px);
|
|
876
|
+
box-sizing: border-box;
|
|
877
|
+
}
|
|
878
|
+
.icon.size-medium-mapped-height {
|
|
879
|
+
block-size: var(--line-height-heading-l-mg5bx6, 24px);
|
|
880
|
+
padding-block: calc((var(--line-height-heading-l-mg5bx6, 24px) - var(--size-icon-medium-uv8xcz, 20px)) / 2);
|
|
881
|
+
padding-inline: 0;
|
|
882
|
+
}
|
|
883
|
+
.icon.size-medium > svg,
|
|
884
|
+
.icon.size-medium > img {
|
|
885
|
+
inline-size: var(--size-icon-medium-uv8xcz, 20px);
|
|
886
|
+
block-size: var(--size-icon-medium-uv8xcz, 20px);
|
|
887
|
+
vertical-align: top;
|
|
888
|
+
}
|
|
889
|
+
.icon.size-medium > svg,
|
|
890
|
+
.icon.size-medium > svg * {
|
|
891
|
+
stroke-width: calc(var(--border-width-icon-medium-b7icqv, 2px) / 1.25);
|
|
892
|
+
}
|
|
893
|
+
.icon.size-big {
|
|
894
|
+
inline-size: var(--size-icon-big-7pq9l3, 32px);
|
|
895
|
+
box-sizing: border-box;
|
|
896
|
+
}
|
|
897
|
+
.icon.size-big-mapped-height {
|
|
898
|
+
block-size: var(--line-height-heading-xl-hko6p0, 30px);
|
|
899
|
+
padding-block: calc((var(--line-height-heading-xl-hko6p0, 30px) - var(--size-icon-big-7pq9l3, 32px)) / 2);
|
|
900
|
+
padding-inline: 0;
|
|
901
|
+
}
|
|
902
|
+
.icon.size-big > svg,
|
|
903
|
+
.icon.size-big > img {
|
|
904
|
+
inline-size: var(--size-icon-big-7pq9l3, 32px);
|
|
905
|
+
block-size: var(--size-icon-big-7pq9l3, 32px);
|
|
906
|
+
vertical-align: top;
|
|
907
|
+
}
|
|
908
|
+
.icon.size-big > svg,
|
|
909
|
+
.icon.size-big > svg * {
|
|
910
|
+
stroke-width: calc(var(--border-width-icon-big-ymgy42, 3px) / 2);
|
|
911
|
+
}
|
|
912
|
+
.icon.size-large {
|
|
913
|
+
inline-size: var(--size-icon-large-mb6y6y, 48px);
|
|
914
|
+
box-sizing: border-box;
|
|
915
|
+
}
|
|
916
|
+
.icon.size-large-mapped-height {
|
|
917
|
+
block-size: var(--line-height-display-l-vwanzp, 48px);
|
|
918
|
+
padding-block: calc((var(--line-height-display-l-vwanzp, 48px) - var(--size-icon-large-mb6y6y, 48px)) / 2);
|
|
919
|
+
padding-inline: 0;
|
|
920
|
+
}
|
|
921
|
+
.icon.size-large > svg,
|
|
922
|
+
.icon.size-large > img {
|
|
923
|
+
inline-size: var(--size-icon-large-mb6y6y, 48px);
|
|
924
|
+
block-size: var(--size-icon-large-mb6y6y, 48px);
|
|
925
|
+
vertical-align: top;
|
|
926
|
+
}
|
|
927
|
+
.icon.size-large > svg,
|
|
928
|
+
.icon.size-large > svg * {
|
|
929
|
+
stroke-width: calc(var(--border-width-icon-large-u645rg, 4px) / 3);
|
|
930
|
+
}
|
|
931
|
+
.icon.variant-normal {
|
|
932
|
+
color: currentColor;
|
|
933
|
+
}
|
|
934
|
+
.icon.variant-disabled {
|
|
935
|
+
color: var(--color-text-interactive-disabled-1bqmrl, #b4b4bb);
|
|
936
|
+
}
|
|
937
|
+
.icon.variant-inverted {
|
|
938
|
+
color: var(--color-text-inverted-4v4dmq, #ffffff);
|
|
939
|
+
}
|
|
940
|
+
.icon.variant-subtle {
|
|
941
|
+
color: var(--color-text-icon-subtle-3sgxlr, #656871);
|
|
942
|
+
}
|
|
943
|
+
.icon.variant-warning {
|
|
944
|
+
color: var(--color-text-status-warning-6meo06, #855900);
|
|
945
|
+
}
|
|
946
|
+
.icon.variant-error {
|
|
947
|
+
color: var(--color-text-status-error-ksqavh, #db0000);
|
|
948
|
+
}
|
|
949
|
+
.icon.variant-success {
|
|
950
|
+
color: var(--color-text-status-success-ybmii8, #00802f);
|
|
951
|
+
}
|
|
952
|
+
.icon.variant-link {
|
|
953
|
+
color: var(--color-text-link-default-hude44, #006ce0);
|
|
954
|
+
}
|
|
955
|
+
.icon:is(.name-angle-left-double,
|
|
956
|
+
.name-angle-left,
|
|
957
|
+
.name-angle-right-double,
|
|
958
|
+
.name-angle-right,
|
|
959
|
+
.name-arrow-left,
|
|
960
|
+
.name-arrow-right,
|
|
961
|
+
.name-caret-left-filled,
|
|
962
|
+
.name-caret-right-filled,
|
|
963
|
+
.name-audio-full,
|
|
964
|
+
.name-audio-half,
|
|
965
|
+
.name-audio-off,
|
|
966
|
+
.name-external,
|
|
967
|
+
.name-redo,
|
|
968
|
+
.name-resize-area,
|
|
969
|
+
.name-send,
|
|
970
|
+
.name-shrink,
|
|
971
|
+
.name-undo,
|
|
972
|
+
.name-view-vertical):dir(rtl) {
|
|
973
|
+
transform: scaleX(-1);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.badge::after {
|
|
977
|
+
content: "";
|
|
978
|
+
position: absolute;
|
|
979
|
+
inline-size: 6px;
|
|
980
|
+
block-size: 6px;
|
|
981
|
+
border-start-start-radius: 4px;
|
|
982
|
+
border-start-end-radius: 4px;
|
|
983
|
+
border-end-start-radius: 4px;
|
|
984
|
+
border-end-end-radius: 4px;
|
|
985
|
+
background-color: var(--color-background-badge-icon-jyxnxa, #db0000);
|
|
986
|
+
inset-block-start: 0px;
|
|
987
|
+
inset-inline-end: -3px;
|
|
988
|
+
}
|
|
989
|
+
`;
|
|
990
|
+
|
|
991
|
+
// src/icon/icons/index.ts
|
|
992
|
+
import { svg as svg2 } from "lit";
|
|
993
|
+
var builtInIcons = {
|
|
994
|
+
"add-plus": svg2`<path d="M2.01 8h12M8 14l.01-12" />`,
|
|
995
|
+
"anchor-link": svg2`<path d="M5 8h6M7 12H5c-2.21 0-4-1.79-4-4s1.79-4 4-4h2M9 12h2c2.21 0 4-1.79 4-4s-1.79-4-4-4H9" class="stroke-linejoin-round" />`,
|
|
996
|
+
"angle-down": svg2`<path d="m2 5 6 6 6-6" class="stroke-linejoin-round" />`,
|
|
997
|
+
"angle-left-double": svg2`<path d="M8 2 2 8l6 6" class="stroke-linejoin-round" /><path d="M13 2 7 8l6 6" class="stroke-linejoin-round" />`,
|
|
998
|
+
"angle-left": svg2`<path d="M11 2 5 8l6 6" class="stroke-linejoin-round" />`,
|
|
999
|
+
"angle-right-double": svg2`<path d="m8 2 6 6-6 6" class="stroke-linejoin-round" /><path d="m3 2 6 6-6 6" class="stroke-linejoin-round" />`,
|
|
1000
|
+
"angle-right": svg2`<path d="m5 2 6 6-6 6" class="stroke-linejoin-round" />`,
|
|
1001
|
+
"angle-up": svg2`<path d="m2 11 6-6 6 6" class="stroke-linejoin-round" />`,
|
|
1002
|
+
"arrow-down": svg2`<path d="m3 9 5 5 5-5M8 14V1" class="stroke-linejoin-round" />`,
|
|
1003
|
+
"arrow-left": svg2`<path d="M7 3 2 8l5 5M2 8h13" class="stroke-linejoin-round" />`,
|
|
1004
|
+
"arrow-right": svg2`<path d="m9 3 5 5-5 5M14 8H1" class="stroke-linejoin-round" />`,
|
|
1005
|
+
"arrow-up": svg2`<path d="M13 7 8 2 3 7M8 2v13" class="stroke-linejoin-round" />`,
|
|
1006
|
+
"at-symbol": svg2`<path d="M9.5 13.75c-1.992.734-6.434 1.013-7.5-3.25-1-4 1.927-6.904 3.697-7.848 1.841-.982 5.523-1.48 7.34.944 1.888 2.516.63 6.29-.628 6.92-1.259.628-1.95.25-2.202 0a.902.902 0 0 1-.145-.191c-.258-.45-.12-1.01-.022-1.52l.678-3.518" class="stroke-linecap-round" /><path d="M10.718 6.643c-.315-.42-1.254-1.357-2.26-1.357-1.258 0-2.654 1.14-2.969 3.027-.314 1.888.63 2.643 1.573 2.643s2.202-.44 2.83-1.384" />`,
|
|
1007
|
+
"audio-full": svg2`<path d="M6.47 13.707 4 10.997H1v-6h3l2.47-2.71c.54-.59 1.53-.21 1.53.59v10.23c0 .8-.99 1.19-1.53.59v.01Z" class="stroke-linejoin-round" /><path d="M10 12.997c2.76 0 5-2.24 5-5s-2.24-5-5-5" /><path d="M10 9.997c1.1 0 2-.9 2-2s-.9-2-2-2" />`,
|
|
1008
|
+
"audio-half": svg2`<path d="M7.47 13.41 5 10.7H2v-6h3l2.47-2.71C8.01 1.4 9 1.78 9 2.58v10.23c0 .8-.99 1.19-1.53.59v.01Z" class="stroke-linejoin-round" /><path d="M11 9.71c1.1 0 2-.9 2-2s-.9-2-2-2" />`,
|
|
1009
|
+
"audio-off": svg2`<path d="M6.47 13.41 4 10.7H1v-6h3l2.47-2.71C7.01 1.4 8 1.78 8 2.58v10.23c0 .8-.99 1.19-1.53.59v.01ZM11 5.71l3.99 4M15 5.71 11 9.7" class="stroke-linejoin-round" />`,
|
|
1010
|
+
"backward-10-seconds": svg2`<path d="M5.95 14.01h-.96c-.56 0-1.02-.46-1.02-1.02v-2.96c0-.56.45-1.01 1.01-1.02h.96c.56 0 1.02.45 1.02 1.02v2.96c0 .56-.46 1.02-1.02 1.02h.01Z" class="stroke-linejoin-round" /><path d="M1 9v5" class="stroke-linecap-square" /><path d="M1 0v5h5" class="stroke-linejoin-round" /><path d="M9.976 15A7.154 7.154 0 0 0 15 8.164C15 4.204 11.804 1 7.852 1A7.148 7.148 0 0 0 1.5 4.875" class="stroke-linejoin-round" />`,
|
|
1011
|
+
"bug": svg2`<path d="M12 5.71a4 4 0 0 0-8 0v4a4 4 0 1 0 8 0v-4ZM15 8.71h-3M4 8.71H1M12 6H4M15 3.63l-3 2.08M15 13.78l-3-2.07M1 3.63l3 2.08M1 13.78l3-2.07" />`,
|
|
1012
|
+
"calendar": svg2`<path d="M14 2H2v12h12V2Z" class="stroke-linejoin-round" /><path d="M4 6V4h2v2H4ZM7 6V4h2v2H7ZM10 6V4h2v2h-2ZM4 9V7h2v2H4ZM7 9V7h2v2H7ZM4 12v-2h2v2H4ZM7 12v-2h2v2H7ZM10 9V7h2v2h-2Z" class="filled no-stroke" />`,
|
|
1013
|
+
"call": svg2`<path d="M13.99 7.083c0-2.76-2.24-5-5-5M11.07 10.002c-.6.58-1.55.61-2.14.02l-2.88-2.88a1.49 1.49 0 0 1 0-2.12c.52-.52.52-1.36 0-1.88l-.85-.85a.996.996 0 0 0-1.41 0l-.38.38a4.83 4.83 0 0 0 0 6.82l3.17 3.17a4.83 4.83 0 0 0 6.82 0l.38-.38a.996.996 0 0 0 0-1.41l-.85-.85c-.51-.51-1.34-.52-1.86-.02Z" class="stroke-linejoin-round" />`,
|
|
1014
|
+
"caret-down-filled": svg2`<path d="m8 11 4-6H4l4 6Z" class="filled stroke-linejoin-round" />`,
|
|
1015
|
+
"caret-down": svg2`<path d="m8 11 4-6H4l4 6Z" class="stroke-linejoin-round" />`,
|
|
1016
|
+
"caret-left-filled": svg2`<path d="m5 8 6 4V4L5 8Z" class="filled stroke-linejoin-round" />`,
|
|
1017
|
+
"caret-right-filled": svg2`<path d="m11 8-6 4V4l6 4Z" class="filled stroke-linejoin-round" />`,
|
|
1018
|
+
"caret-up-filled": svg2`<path d="m8 5 4 6H4l4-6Z" class="filled stroke-linejoin-round" />`,
|
|
1019
|
+
"caret-up": svg2`<path d="m8 5 4 6H4l4-6Z" class="stroke-linejoin-round" />`,
|
|
1020
|
+
"check": svg2`<path d="m1 9 4 4L15 2" class="stroke-linejoin-round" />`,
|
|
1021
|
+
"close": svg2`<path d="m2 1.71 12 12M2 13.71l12-12" class="stroke-linejoin-round" />`,
|
|
1022
|
+
"closed-caption-unavailable": svg2`<path d="M15 1H1v14h14V1Z" class="stroke-linejoin-round" /><path d="M7.51 10H5c-.55 0-.99-.44-.99-.99V7c0-.55.44-.99.99-.99h1.01M13 10h-2.51c-.55 0-.99-.44-.99-.99V7c0-.55.44-.99.99-.99H13M1 1l14 14" class="stroke-linejoin-round" />`,
|
|
1023
|
+
"closed-caption": svg2`<path d="M15 1H1v14h14V1Z" class="stroke-linejoin-round" /><path d="M7.51 10H5c-.55 0-.99-.44-.99-.99V7c0-.55.44-.99.99-.99h2.51M13 10h-2.51c-.55 0-.99-.44-.99-.99V7c0-.55.44-.99.99-.99H13" class="stroke-linejoin-round" />`,
|
|
1024
|
+
"command-prompt": svg2`<path d="M15 1H1v14h14V1ZM12 11H9" class="stroke-linejoin-round" /><path d="M4.71 11.3 8 8 4.71 4.71" class="stroke-linejoin-round" />`,
|
|
1025
|
+
"contact": svg2`<path d="M14 12c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h4v3l4-3h4Z" class="stroke-linejoin-round" />`,
|
|
1026
|
+
"copy": svg2`<path d="M15 5H5v10h10V5Z" class="stroke-linejoin-round" /><path d="M13 1H1v11" class="stroke-linejoin-round" />`,
|
|
1027
|
+
"delete-marker": svg2`<path d="M3 7V1h6l4 4v10h-3" class="stroke-linejoin-round" /><path d="M8 1v5h5M2 15l6-6M2 9.01l6.01 6" class="stroke-linejoin-round" />`,
|
|
1028
|
+
"download": svg2`<path d="M1 15h14M13 6l-5 5-5-5M8 10V1" class="stroke-linejoin-round" />`,
|
|
1029
|
+
"drag-indicator": svg2`<circle cx="5.5" cy="2.5" r="1.5" class="filled no-stroke" /><circle cx="5.5" cy="13.5" r="1.5" class="filled no-stroke" /><circle cx="5.5" cy="8" r="1.5" class="filled no-stroke" /><circle cx="10.5" cy="2.5" r="1.5" class="filled no-stroke" /><circle cx="10.5" cy="13.5" r="1.5" class="filled no-stroke" /><circle cx="10.5" cy="8" r="1.5" class="filled no-stroke" />`,
|
|
1030
|
+
"edit-gen-ai": svg2`<path d="m5.19 12.275-4.19.7.7-4.19 7.2-7.2c.78-.78 2.05-.78 2.83 0l.66.66c.78.78.78 2.05 0 2.83l-1.865 1.85M10.99 5.975l-3-3" class="stroke-linejoin-round" /><path d="m13.888 12.329-2.296-.921-.924-2.303c-.056-.14-.28-.14-.336 0l-.924 2.303-2.296.921S7 12.427 7 12.496c0 .07.042.14.112.168l.07.028 2.226.893.924 2.303s.098.112.168.112.14-.042.168-.112l.924-2.303 2.296-.921s.112-.098.112-.168-.042-.14-.112-.167Z" class="filled no-stroke" />`,
|
|
1031
|
+
"edit": svg2`<path d="m6.19 13.275-4.19.7.7-4.19 7.2-7.2c.78-.78 2.05-.78 2.83 0l.66.66c.78.78.78 2.05 0 2.83l-7.2 7.2ZM9 3.995l3 3" class="stroke-linejoin-round" />`,
|
|
1032
|
+
"ellipsis": svg2`<circle cx="8" cy="2.5" r="1.5" class="filled no-stroke" /><circle cx="8" cy="13.5" r="1.5" class="filled no-stroke" /><circle cx="8" cy="8" r="1.5" class="filled no-stroke" />`,
|
|
1033
|
+
"envelope": svg2`<path d="m1 3 7 6 7-6" class="stroke-linejoin-round" /><path d="M15 3H1v10h14V3Z" class="stroke-linejoin-round" />`,
|
|
1034
|
+
"exit-full-screen": svg2`<path d="M1 10.01h5V15M10 15v-5h5M6 1v5H1M15 6h-5V1" class="stroke-linejoin-round" />`,
|
|
1035
|
+
"expand": svg2`<path d="M14 7V2H9M10 6l4-4M6.99 14H2V9M6 10l-4 4M9 14h5V9M10 10l4 4M2 6.99V2h5M6 6 2 2" class="stroke-linejoin-round" />`,
|
|
1036
|
+
"external": svg2`<path d="M13 9.012v-6H7M13.02 3 7 9.01M3 5.012v8h8.01" class="stroke-linejoin-round" />`,
|
|
1037
|
+
"face-happy-filled": svg2`<path d="M7.995 1.103a6.887 6.887 0 0 0-6.892 6.892 6.887 6.887 0 0 0 6.892 6.892 6.887 6.887 0 0 0 6.892-6.892 6.887 6.887 0 0 0-6.892-6.892Zm-2.002 7.61A2.148 2.148 0 0 0 8 10.134c.914 0 1.706-.592 2.007-1.423l1.646.596c-.54 1.489-1.966 2.577-3.653 2.577-1.686 0-3.114-1.088-3.653-2.577l1.646-.596ZM7.148 6.03a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0Zm3.95 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0Z" class="filled no-stroke" /><path d="M8 .5A7.495 7.495 0 0 0 .5 8c0 4.146 3.354 7.5 7.5 7.5s7.5-3.354 7.5-7.5S12.146.5 8 .5Zm0 1.559c3.61 0 6.008 2.566 6.008 5.941 0 2.404-2.044 6.014-6.008 6.014-3.818 0-6.01-2.9-6.01-6.014 0-2.603 1.712-5.941 6.01-5.941Z" class="filled no-stroke" />`,
|
|
1038
|
+
"face-happy": svg2`<circle cx="8" cy="8" r="7" /><path d="M6 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.01 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" class="filled no-stroke" /><path d="M10.83 9.01c-.42 1.16-1.53 2-2.83 2s-2.41-.84-2.83-2" class="stroke-linejoin-round" />`,
|
|
1039
|
+
"face-neutral-filled": svg2`<path d="M7.995 1.103a6.887 6.887 0 0 0-6.892 6.892 6.887 6.887 0 0 0 6.892 6.892 6.887 6.887 0 0 0 6.892-6.892 6.887 6.887 0 0 0-6.892-6.892ZM11 10.875H5v-1.75h6v1.75ZM7.148 6.03a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0Zm3.95 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0Z" class="filled no-stroke" /><path d="M8 .5A7.495 7.495 0 0 0 .5 8c0 4.146 3.354 7.5 7.5 7.5s7.5-3.354 7.5-7.5S12.146.5 8 .5Zm0 1.559c3.61 0 6.008 2.566 6.008 5.941 0 2.404-2.044 6.014-6.008 6.014-3.818 0-6.01-2.9-6.01-6.014 0-2.603 1.712-5.941 6.01-5.941Z" class="filled no-stroke" />`,
|
|
1040
|
+
"face-neutral": svg2`<circle cx="8" cy="8" r="7" /><path d="M6 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.01 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" class="filled no-stroke" /><path d="M5 10h6" class="stroke-linejoin-round" />`,
|
|
1041
|
+
"face-sad-filled": svg2`<path d="M7.995 1.103a6.887 6.887 0 0 0-6.892 6.892 6.887 6.887 0 0 0 6.892 6.892 6.887 6.887 0 0 0 6.892-6.892 6.887 6.887 0 0 0-6.892-6.892Zm-3.648 9.6C4.887 9.212 6.314 8.124 8 8.124c1.687 0 3.114 1.088 3.653 2.577l-1.646.596A2.148 2.148 0 0 0 8 9.875c-.913 0-1.706.592-2.007 1.423l-1.646-.596ZM7.148 6.03a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0Zm3.95 0a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0Z" class="filled no-stroke" /><path d="M8 .5A7.495 7.495 0 0 0 .5 8c0 4.146 3.354 7.5 7.5 7.5s7.5-3.354 7.5-7.5S12.146.5 8 .5Zm0 1.559c3.61 0 6.008 2.566 6.008 5.941 0 2.404-2.044 6.014-6.008 6.014-3.818 0-6.01-2.9-6.01-6.014 0-2.603 1.712-5.941 6.01-5.941Z" class="filled no-stroke" />`,
|
|
1042
|
+
"face-sad": svg2`<circle cx="8" cy="8" r="7" /><path d="M6 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.01 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" class="filled no-stroke" /><path d="M10.83 11C10.41 9.84 9.3 9 8 9s-2.41.84-2.83 2" class="stroke-linejoin-round" />`,
|
|
1043
|
+
"file-open": svg2`<path d="M13 15H3V1h6l4 4v10Z" class="stroke-linejoin-round" /><path d="M8 1v5h5M3 8l7 7" class="stroke-linejoin-round" />`,
|
|
1044
|
+
"file": svg2`<path d="M13 15H3V1h6l4 4v10Z" class="stroke-linejoin-round" /><path d="M8 1v5h5" class="stroke-linejoin-round" />`,
|
|
1045
|
+
"filter": svg2`<path d="m1 3 5 5v7l4-2V8l5-5V1H1v2Z" class="stroke-linejoin-round" />`,
|
|
1046
|
+
"flag": svg2`<path d="M1.99 16V1M2 2.14c4 2.71 8-2.99 12-.28v7.28c-4-2.89-8 2.61-12-.28" class="stroke-linejoin-round" />`,
|
|
1047
|
+
"folder-open": svg2`<path d="M6 14h8l-3-7H1l2 7h3Z" class="stroke-linejoin-round" /><path d="M2 7V2h6l1 2h5c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1h-1" class="stroke-linejoin-round" />`,
|
|
1048
|
+
"folder": svg2`<path d="M15 5v9H2V2h6l1 2h5c.55 0 1 .45 1 1Z" class="stroke-linejoin-round" />`,
|
|
1049
|
+
"forward-10-seconds": svg2`<path d="M13.95 14.01h-.96c-.56 0-1.02-.46-1.02-1.02v-2.96c0-.56.45-1.01 1.01-1.02h.96c.56 0 1.02.45 1.02 1.02v2.96c0 .56-.46 1.02-1.02 1.02h.01Z" class="stroke-linejoin-round" /><path d="M9 9v5" class="stroke-linecap-square" /><path d="M15 0v5h-5" class="stroke-linejoin-round" /><path d="M6.024 15A7.154 7.154 0 0 1 1 8.164C1 4.204 4.196 1 8.148 1A7.148 7.148 0 0 1 14.5 4.875" class="stroke-linejoin-round" />`,
|
|
1050
|
+
"full-screen": svg2`<path d="M6 15H1v-5M15 10v5h-5M1 6V1h5M10 1h5v5" class="stroke-linejoin-round" />`,
|
|
1051
|
+
"gen-ai": svg2`<path d="M6.15 10.365 8 15.005l1.86-4.64 4.64-1.86-4.64-1.85L8 2.005l-1.85 4.65-4.65 1.85 4.65 1.86Z" class="stroke-linejoin-round" /><path d="M2.38 4.915c.02.05.07.08.12.08.05 0 .12-.08.12-.08l.66-1.64 1.64-.66a.13.13 0 0 0 .08-.12c0-.05-.08-.12-.08-.12l-1.64-.66-.66-1.64c-.04-.1-.2-.1-.24 0l-.66 1.64-1.64.66a.13.13 0 0 0-.08.12c0 .05.08.12.08.12l1.64.66.66 1.64Z" class="filled no-stroke" />`,
|
|
1052
|
+
"globe": svg2`<circle cx="8" cy="8" r="7" /><path d="M8 15c1.657 0 3-3.134 3-7S9.657 1 8 1 5 4.134 5 8s1.343 7 3 7ZM1 8h14" class="stroke-linejoin-round" />`,
|
|
1053
|
+
"grid-view": svg2`<path d="M6 10H2v4h4v-4ZM14 10h-4v4h4v-4ZM6 2H2v4h4V2ZM14 2h-4v4h4V2Z" class="stroke-linejoin-round" />`,
|
|
1054
|
+
"group-active": svg2`<circle cx="11" cy="7" r="3" class="filled no-stroke" /><circle cx="4.25" cy="4.25" r="2.75" class="filled no-stroke" /><path d="M6 14a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v2H6v-2Z" class="filled no-stroke" /><path d="M7.126 8H3a3 3 0 0 0-3 3v3h5a4 4 0 0 1 3.405-3.956A4 4 0 0 1 7.126 8Z" class="filled no-stroke" />`,
|
|
1055
|
+
"group": svg2`<path d="M15 16v-2a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v2" /><circle cx="11.25" cy="6.75" r="2.25" /><path d="M6.254 8.99H3a2.005 2.005 0 0 0-2.005 2.005v2h.01v-2C1.005 9.893 1.898 9 3 9h3.261a8.678 8.678 0 0 1-.007-.01Z" class="filled" /><circle cx="4.25" cy="4.25" r="2.25" />`,
|
|
1056
|
+
"heart-filled": svg2`<path d="M13.49 3.546C12.124 2.31 10.312 2.689 9 4L8 5 7 4c-1.301-1.302-3.114-1.69-4.491-.454a3.409 3.409 0 0 0-.133 4.95L7.952 14s.067.028.086 0l5.576-5.505a3.409 3.409 0 0 0-.133-4.95h.01Z" class="filled stroke-linejoin-round" />`,
|
|
1057
|
+
"heart": svg2`<path d="M13.752 2.873c-1.44-1.3-3.7-1.1-5.08.28l-.7.7-.7-.7c-1.37-1.37-3.63-1.58-5.08-.28a3.588 3.588 0 0 0-.14 5.21l5.87 5.87s.07.03.09 0l5.87-5.87a3.588 3.588 0 0 0-.14-5.21h.01Z" class="stroke-linejoin-round" />`,
|
|
1058
|
+
"history": svg2`<path d="M1 0v5l5-.04" class="stroke-linejoin-round" /><path d="M1 8c0 3.87 3.13 7 7 7s7-3.13 7-7-3.13-7-7-7C5.21 1 2.8 2.63 1.67 5" /><path d="M9 4v5H5" class="stroke-linejoin-round" />`,
|
|
1059
|
+
"insert-row": svg2`<path d="M6 11H1V2h14v4M12 7v8M8 11h8" class="stroke-linejoin-round" />`,
|
|
1060
|
+
"key": svg2`<path d="M10 1a5.002 5.002 0 0 0-4.6 6.96L1 12.36v2.65h4v-2h3v-2.42c.61.27 1.29.42 2 .42 2.76 0 5-2.24 5-5s-2.24-5-5-5V1Z" class="stroke-linejoin-round" /><path d="M10.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" class="filled no-stroke" />`,
|
|
1061
|
+
"keyboard": svg2`<path d="M15 2H1v12h14V2ZM4 11h8M4 8h2M4 5h2M7 8h2M7 5h2M10 8h2M10 5h2" />`,
|
|
1062
|
+
"light-dark": svg2`<circle cx="8" cy="8" r="7" /><path d="M8 15A7 7 0 1 0 8 1v14Z" class="filled no-stroke" />`,
|
|
1063
|
+
"list-view": svg2`<path d="M5 3h10M5 8h10M5 13h10" /><path d="M2.01 3.01H2V3h.01v.01ZM2.01 8.01H2V8h.01v.01ZM2.01 13.01H2V13h.01v.01Z" class="filled" />`,
|
|
1064
|
+
"location-pin": svg2`<path d="M8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" class="stroke-linejoin-round" /><path d="M12.01 9c.63-.83 1-1.87 1-3 0-2.76-2.24-5-5-5a5.002 5.002 0 0 0-4 8l4 6 4-6Z" class="stroke-linejoin-round" />`,
|
|
1065
|
+
"lock-private": svg2`<path d="M12 7H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM5 7V4c0-1.65 1.35-3 3-3s3 1.35 3 3v3" class="stroke-linejoin-round" />`,
|
|
1066
|
+
"map": svg2`<path d="M2 12.8V2l3.61 1.21V14L2 12.8ZM10.4 12.8V2L14 3.05V14l-3.6-1.2ZM5.61 14l4.79-1.2M5.61 3.21 10.4 2" class="stroke-linejoin-round" />`,
|
|
1067
|
+
"menu": svg2`<path d="M15 3H1M15 8H1M15 13H1" class="stroke-linejoin-round" />`,
|
|
1068
|
+
"microphone-off": svg2`<path d="M3 15.01h10M8 15v-3" /><path d="M6.6 8.43c.36.36.86.59 1.41.59 1.1 0 2-.9 2-2v-2L6.6 8.43Z" class="filled" /><path d="M13 7.01c0 2.76-2.24 5-5 5-1.28 0-2.45-.48-3.33-1.28M3 12.01l10-10" /><path d="M8.01 1.01c-1.1 0-2 .9-2 2v1.67l3.23-3.23c-.34-.27-.77-.44-1.23-.44Z" class="filled" /><path d="M3.01 7.01c0 .482-.162 1.263.33 1.75" />`,
|
|
1069
|
+
"microphone": svg2`<path d="M3 15h10M8 15v-3M10 3a2 2 0 1 0-4 0v4a2 2 0 1 0 4 0V3Z" class="stroke-linejoin-round" /><path d="M13 7c0 2.76-2.24 5-5 5S3 9.76 3 7" class="stroke-linejoin-round" />`,
|
|
1070
|
+
"mini-player": svg2`<path d="M14 10.01H8v4h6v-4Z" class="stroke-linejoin-round" /><path d="M5 14H2V2h12v5" class="stroke-linejoin-round" />`,
|
|
1071
|
+
"multiscreen": svg2`<path d="M15 5H5v7h10V5Z" class="stroke-linejoin-round" /><path d="M11 3V1.01L1.01 1 1 8h1.998M10 12v3M7 15h6" class="stroke-linejoin-round" />`,
|
|
1072
|
+
"notification": svg2`<path d="M14 12H2c-.39 0-.63-.44-.41-.76L4 8V5c0-2.21 1.79-4 4-4s4 1.79 4 4v3l2.41 3.24c.22.33-.02.76-.41.76ZM6 13c0 1.1.9 2 2 2s2-.9 2-2" class="stroke-linejoin-round" />`,
|
|
1073
|
+
"pause": svg2`<path d="M5 2v12M11 2v12" class="stroke-linejoin-round" />`,
|
|
1074
|
+
"play": svg2`<path d="m4 13.03 8-5-8-5v10Z" class="stroke-linejoin-round filled" />`,
|
|
1075
|
+
"redo": svg2`<path d="m11 2 4 4-4 4" class="stroke-linejoin-round" /><path d="M14 6H5.5C3.01 6 1 8.01 1 10.5S3.01 15 5.5 15H8" class="stroke-linejoin-round" />`,
|
|
1076
|
+
"refresh": svg2`<path d="M15 0v5l-5-.04" class="stroke-linejoin-round" /><path d="M15 8c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7c2.79 0 5.2 1.63 6.33 4" />`,
|
|
1077
|
+
"remove": svg2`<path d="M1 5h14M13 5l-1 10H4L3 5M5 5V2h6v3" class="stroke-linejoin-round" />`,
|
|
1078
|
+
"resize-area": svg2`<path d="M14 4 4 14M10 14l4-4" class="stroke-linejoin-round" />`,
|
|
1079
|
+
"script": svg2`<path d="M5 4 1 8l4 4M11 4l4 4-4 4" class="stroke-linejoin-round" /><path d="M7 13 9 3" />`,
|
|
1080
|
+
"search-gen-ai": svg2`<path d="M12.332 6.888c.028.07.098.112.168.112s.168-.112.168-.112l.924-2.298 2.296-.925A.182.182 0 0 0 16 3.497c0-.07-.112-.169-.112-.169l-2.296-.925-.924-2.298c-.056-.14-.28-.14-.336 0l-.924 2.298-2.296.925A.182.182 0 0 0 9 3.497c0 .07.112.168.112.168l2.296.925.924 2.298Z" class="filled no-stroke" /><path d="m11 11.005 4 4M11.9 8a5.002 5.002 0 1 1-8.36-4.605A4.996 4.996 0 0 1 8 2.105" class="stroke-linejoin-round" />`,
|
|
1081
|
+
"search": svg2`<path d="m11 11 4 4M7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10Z" class="stroke-linejoin-round" />`,
|
|
1082
|
+
"security": svg2`<path d="M8 1C6.29 2.53 4.13 3.32 2 3.48v3.48c0 2.05.76 3.88 1.71 5.14.92 1.22 2.32 2.21 4.29 2.9 1.97-.69 3.37-1.68 4.29-2.9A8.684 8.684 0 0 0 14 6.96V3.48C11.87 3.32 9.71 2.52 8 1Z" class="stroke-linejoin-round" /><path d="M8 4v5M8 10v2" />`,
|
|
1083
|
+
"send": svg2`<path d="m1 1 14 6.92L1 15l3-7-3-7ZM4 8h11" class="stroke-linejoin-round" />`,
|
|
1084
|
+
"settings": svg2`<path d="M6.11 1.729c.07-.42.44-.729.86-.729h2.02c.43 0 .79.31.86.729l.17.999c.05.29.24.529.5.679.06.03.11.06.17.1.25.15.56.2.84.1l.95-.35c.4-.15.85 0 1.07.38l1.01 1.747c.21.37.13.839-.2 1.108l-.78.64c-.23.189-.34.479-.33.768v.2c0 .29.11.579.33.769l.78.639c.33.27.42.739.2 1.108l-1.01 1.748c-.21.37-.66.529-1.06.38l-.95-.35a.966.966 0 0 0-.84.1c-.06.03-.11.07-.17.1-.26.14-.45.389-.5.679l-.17.998A.878.878 0 0 1 9 15H6.98a.87.87 0 0 1-.86-.729l-.17-.998a.988.988 0 0 0-.5-.68c-.06-.03-.11-.06-.17-.1a.996.996 0 0 0-.84-.1l-.95.35c-.4.15-.85 0-1.06-.38l-1.01-1.747a.873.873 0 0 1 .2-1.108l.78-.64c.23-.189.34-.479.33-.768v-.2c0-.3-.11-.579-.33-.769l-.78-.639a.861.861 0 0 1-.2-1.108l1.01-1.748c.21-.37.66-.529 1.07-.38l.95.35c.28.1.58.06.84-.1.06-.03.11-.07.17-.1.26-.14.45-.379.5-.678l.15-1Z" class="stroke-linecap-round stroke-linejoin-round" /><path d="M10 8c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2Z" class="stroke-linecap-round stroke-linejoin-round" />`,
|
|
1085
|
+
"share": svg2`<path d="M3.5 11a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM12.5 6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM12.5 15a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10.326 4.7 5.678 7.293M10.223 11.483l-4.448-1.96" />`,
|
|
1086
|
+
"shrink": svg2`<path d="M10 1v5h5M10.71 5.29 15 1M1 10h5v5M5.3 10.7 1 15" class="stroke-linejoin-round" />`,
|
|
1087
|
+
"slash": svg2`<path d="m10 4.5-4 7" /><rect x="1" y="1" width="14" height="14" rx="1" />`,
|
|
1088
|
+
"star-filled": svg2`<path d="m8 1 2.16 4.38 4.84.71-3.5 3.41.83 4.81L8 12.04l-4.33 2.27.83-4.81L1 6.09l4.84-.71L8 1Z" class="filled stroke-linejoin-round" />`,
|
|
1089
|
+
"star-half": svg2`<path d="M8 1v11.04l-4.33 2.27.83-4.81L1 6.09l4.84-.71L8 1Z" class="filled no-stroke" /><path d="m8 1 2.16 4.38 4.84.71-3.5 3.41.83 4.81L8 12.04l-4.33 2.27.83-4.81L1 6.09l4.84-.71L8 1Z" class="stroke-linejoin-round" />`,
|
|
1090
|
+
"star": svg2`<path d="m8 1 2.16 4.38 4.84.71-3.5 3.41.83 4.81L8 12.04l-4.33 2.27.83-4.81L1 6.09l4.84-.71L8 1Z" class="stroke-linejoin-round" />`,
|
|
1091
|
+
"status-in-progress": svg2`<circle cx="8" cy="8" r="7" /><path d="M9 7H7v2h2V7ZM6 7H4v2h2V7ZM12 7h-2v2h2V7Z" class="filled no-stroke" />`,
|
|
1092
|
+
"status-info": svg2`<circle cx="8" cy="8" r="7" /><path d="M8 12V7M8 6V4" />`,
|
|
1093
|
+
"status-negative": svg2`<circle cx="8" cy="8" r="7" /><path d="m5.5 5.5 5 5M10.5 5.5l-5 5" />`,
|
|
1094
|
+
"status-not-started": svg2`<circle cx="8" cy="8" r="7" />`,
|
|
1095
|
+
"status-pending": svg2`<circle cx="8" cy="8" r="7" /><path d="M8 4v5H4" class="stroke-linejoin-round" />`,
|
|
1096
|
+
"status-positive": svg2`<circle cx="8" cy="8" r="7" /><path d="M4.5 7.5 7 10l4-5" class="stroke-linejoin-round" />`,
|
|
1097
|
+
"status-stopped": svg2`<circle cx="8" cy="8" r="7" /><path d="M5 8h6" />`,
|
|
1098
|
+
"status-warning": svg2`<path d="M8 5v4M8 10v2M6.52 1.88l-5.33 9.76c-.13.23-.19.5-.19.76 0 .88.71 1.59 1.59 1.59H13.4c.88 0 1.59-.71 1.59-1.59 0-.27-.07-.53-.19-.76L9.48 1.88C9.18 1.34 8.62 1 8 1s-1.18.34-1.48.88Z" class="stroke-linejoin-round" />`,
|
|
1099
|
+
"stop-circle": svg2`<circle cx="8" cy="8" r="7" /><rect x="5" y="5" width="6" height="6" rx=".5" class="filled no-stroke" />`,
|
|
1100
|
+
"subtract-minus": svg2`<path d="M2 8h12" class="stroke-linejoin-round" />`,
|
|
1101
|
+
"suggestions-gen-ai": svg2`<path d="m15.888 3.329-2.296-.921-.924-2.303c-.056-.14-.28-.14-.336 0l-.924 2.303-2.296.921S9 3.427 9 3.497s.042.14.112.167l.07.028 2.226.893.924 2.303S12.43 7 12.5 7s.14-.042.168-.112l.924-2.303 2.296-.921S16 3.566 16 3.497c0-.07-.042-.14-.112-.168Z" class="filled no-stroke" /><path d="M12.348 8.45a5.09 5.09 0 0 1-1.358 1.53L10 15H6l-.99-5.02C3.8 9.07 3 7.63 3 6c0-2.76 2.24-5 5-5M10.5 12.005h-5" class="stroke-linejoin-round" />`,
|
|
1102
|
+
"suggestions": svg2`<path d="M8.12 15h-2l-.99-5.02C3.92 9.07 3.12 7.63 3.12 6c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.07-2.01 3.98L10.12 15h-2ZM11.12 12h-6" class="stroke-linejoin-round" />`,
|
|
1103
|
+
"support": svg2`<circle cx="8" cy="8" r="7" /><path d="M5.75 6.338c.13-1.178.811-2.339 2.37-2.339 1.472 0 2.435 1.312 2.042 2.468-.215.633-.916 1.132-1.385 1.578C8.162 8.631 8 9.2 8 10" /><path d="M8 12.01h.01V12H8v.01Z" class="filled" />`,
|
|
1104
|
+
"thumbs-down-filled": svg2`<path d="M1 1h2.01v9H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1Zm14.14 6.22-1.69-5.03C13.21 1.48 12.54 1 11.79 1H4.01v9l3.23 3.88c.6.72 1.77.29 1.77-.64V9h4.86c.92 0 1.57-.91 1.28-1.78h-.01Z" class="filled no-stroke" />`,
|
|
1105
|
+
"thumbs-down": svg2`<path d="M9 13.13V9h4.12c.6 0 1.02-.59.83-1.16l-1.6-4.77A1.58 1.58 0 0 0 10.86 2H1v8h4l2.41 3.61c.48.72 1.59.38 1.59-.48ZM5 2v8" class="stroke-linejoin-round" />`,
|
|
1106
|
+
"thumbs-up-filled": svg2`<path d="M3 15.001H1c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h2v9Zm10.86-8H9v-4.24c0-.93-1.17-1.36-1.77-.64L4 6.001v9h7.78c.75 0 1.42-.48 1.66-1.19l1.69-5.03c.29-.87-.36-1.78-1.28-1.78h.01Z" class="filled no-stroke" />`,
|
|
1107
|
+
"thumbs-up": svg2`<path d="M9 2.871v4.13h4.12c.6 0 1.02.59.83 1.16l-1.6 4.77a1.58 1.58 0 0 1-1.49 1.07H1v-8h4l2.41-3.61c.48-.72 1.59-.38 1.59.48ZM5 14.001v-8" class="stroke-linejoin-round" />`,
|
|
1108
|
+
"ticket": svg2`<path d="M13 8c0-1.1.9-2 2-2V3H1v3c1.1 0 2 .9 2 2s-.9 2-2 2v3h14v-3c-1.1 0-2-.9-2-2Z" class="stroke-linejoin-round" />`,
|
|
1109
|
+
"transcript": svg2`<path d="M15 1H1v14h14V1ZM9 10H4M12 6H4" class="stroke-linejoin-round" />`,
|
|
1110
|
+
"treeview-collapse": svg2`<path d="M14 2H2v12h12V2ZM5 8h6" class="stroke-linejoin-round" />`,
|
|
1111
|
+
"treeview-expand": svg2`<path d="M14 2H2v12h12V2ZM8 5v6M5 8h6" class="stroke-linejoin-round" />`,
|
|
1112
|
+
"undo": svg2`<path d="M5 2 1 6l4 4" class="stroke-linejoin-round" /><path d="M2 6h8.5c2.49 0 4.5 2.01 4.5 4.5S12.99 15 10.5 15H8" class="stroke-linejoin-round" />`,
|
|
1113
|
+
"unlocked": svg2`<path d="M11 7H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM9 7V4c0-1.65 1.35-3 3-3s3 1.35 3 3" class="stroke-linejoin-round" />`,
|
|
1114
|
+
"upload-download": svg2`<path d="m7 7-3 3-3-3M4 9V1M15 9l-3-3-3 3M12 7v8M0 14h8M8 2h8" class="stroke-linejoin-round" />`,
|
|
1115
|
+
"upload": svg2`<path d="M1 1h14M13 10 8 5l-5 5M8 6v9" class="stroke-linejoin-round" />`,
|
|
1116
|
+
"user-profile-active": svg2`<path d="M8 6a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 0 0 5ZM2 15.5v-3c0-1.66 1.34-3 3-3h6c1.66 0 3 1.34 3 3v3" class="filled" /><path d="M2 15.5v-3c0-1.66 1.34-3 3-3h6c1.66 0 3 1.34 3 3v3" class="stroke-linejoin-round" />`,
|
|
1117
|
+
"user-profile": svg2`<path d="M8 7c1.66 0 3-1.34 3-3S9.66 1 8 1 5 2.34 5 4s1.34 3 3 3Z" /><path d="M2 16v-3c0-1.66 1.34-3 3-3h6c1.66 0 3 1.34 3 3v3" class="stroke-linejoin-round" />`,
|
|
1118
|
+
"video-camera-off": svg2`<path d="M11 6V3H1v9.97h10V9.98L15 13V3.04L11 6ZM4 6l4 4M8 6.01 4 10" class="stroke-linejoin-round" />`,
|
|
1119
|
+
"video-camera-on": svg2`<path d="M11 6V3H1v9.97L11 13v-3l4 3V3.04L11 6Z" class="stroke-linejoin-round" />`,
|
|
1120
|
+
"video-camera-unavailable": svg2`<path d="M11 5.99V3H1v9.97h10V9.98L15 13V3.04l-4 2.95ZM4 8h4" class="stroke-linejoin-round" />`,
|
|
1121
|
+
"video-off": svg2`<circle cx="8" cy="7" r="5" /><path d="M3 15h10M8 15v-3M6.01 5.01 10 9M10 5 6 9" class="stroke-linejoin-round" />`,
|
|
1122
|
+
"video-on": svg2`<circle cx="8" cy="7" r="5" /><circle cx="8" cy="7" r="2" class="filled no-stroke" /><path d="M3 15h10M8 15v-3" />`,
|
|
1123
|
+
"video-unavailable": svg2`<circle cx="8" cy="7" r="5" /><path d="M3 15h10M6 7h4M8 15v-3" />`,
|
|
1124
|
+
"view-full": svg2`<path d="M15 1H1v14h14V1Z" class="stroke-linejoin-round" /><path d="M11.5 4h-7a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5Z" class="filled no-stroke" />`,
|
|
1125
|
+
"view-horizontal": svg2`<path d="M15 15V1H1v14h14Z" class="stroke-linejoin-round" /><path d="M11.5 7h-7a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5Z" class="filled no-stroke" />`,
|
|
1126
|
+
"view-vertical": svg2`<path d="M15 1H1v14h14V1Z" class="stroke-linejoin-round" /><path d="M11.5 4h-4a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5Z" class="filled no-stroke" />`,
|
|
1127
|
+
"zoom-in": svg2`<circle cx="7" cy="7" r="6" /><path d="m11 11 4 4M7 4v6M4 7l6 .01" />`,
|
|
1128
|
+
"zoom-out": svg2`<path d="m11 11 4 4" /><circle cx="7" cy="7" r="6" /><path d="m4 7 6 .01" />`,
|
|
1129
|
+
"zoom-to-fit": svg2`<path d="M11 5H5v6h6V5ZM6 1H1v5M10 1h5v5M6 15H1v-5M10 15h5v-5" class="stroke-linejoin-round" />`
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
// src/icon-provider/internal.ts
|
|
1133
|
+
import { LitElement as LitElement5, html as html5 } from "lit";
|
|
1134
|
+
import { property as property6 } from "lit/decorators.js";
|
|
1135
|
+
import { provide, createContext } from "@lit/context";
|
|
1136
|
+
var iconProviderContext = createContext(
|
|
1137
|
+
/* @__PURE__ */ Symbol("icon-provider-context")
|
|
1138
|
+
);
|
|
1139
|
+
var CsIconProviderInternal = class extends LitElement5 {
|
|
1140
|
+
constructor() {
|
|
1141
|
+
super(...arguments);
|
|
1142
|
+
this.icons = null;
|
|
1143
|
+
}
|
|
1144
|
+
createRenderRoot() {
|
|
1145
|
+
return this;
|
|
1146
|
+
}
|
|
1147
|
+
willUpdate() {
|
|
1148
|
+
if (this.icons === null) {
|
|
1149
|
+
this._resolver = void 0;
|
|
1150
|
+
} else {
|
|
1151
|
+
const iconMap = this.icons;
|
|
1152
|
+
this._resolver = (name) => {
|
|
1153
|
+
if (name in iconMap) {
|
|
1154
|
+
return iconMap[name] ?? void 0;
|
|
1155
|
+
}
|
|
1156
|
+
return void 0;
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
render() {
|
|
1161
|
+
return html5`<slot></slot>`;
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
__decorateClass([
|
|
1165
|
+
property6({ attribute: false })
|
|
1166
|
+
], CsIconProviderInternal.prototype, "icons", 2);
|
|
1167
|
+
__decorateClass([
|
|
1168
|
+
provide({ context: iconProviderContext })
|
|
1169
|
+
], CsIconProviderInternal.prototype, "_resolver", 2);
|
|
1170
|
+
|
|
1171
|
+
// src/icon/internal.ts
|
|
1172
|
+
var hostStyles5 = css12`:host { display: inline-block; vertical-align: top; line-height: 0; }`;
|
|
1173
|
+
var CsIconInternal = class extends LitElement6 {
|
|
1174
|
+
constructor() {
|
|
1175
|
+
super(...arguments);
|
|
1176
|
+
this.size = "normal";
|
|
1177
|
+
this.variant = "normal";
|
|
1178
|
+
this.ariaLabel = null;
|
|
1179
|
+
}
|
|
1180
|
+
static {
|
|
1181
|
+
this.styles = [sharedStyles, componentStyles5, hostStyles5];
|
|
1182
|
+
}
|
|
1183
|
+
render() {
|
|
1184
|
+
const hasAriaLabel = typeof this.ariaLabel === "string" && this.ariaLabel.length > 0;
|
|
1185
|
+
const classes = {
|
|
1186
|
+
"icon": true,
|
|
1187
|
+
[`size-${this.size}`]: true,
|
|
1188
|
+
[`size-${this.size}-mapped-height`]: true,
|
|
1189
|
+
[`variant-${this.variant}`]: true
|
|
1190
|
+
};
|
|
1191
|
+
return html6`
|
|
1192
|
+
<span
|
|
1193
|
+
class=${classMap5(classes)}
|
|
1194
|
+
role=${ifDefined2(hasAriaLabel ? "img" : void 0)}
|
|
1195
|
+
aria-label=${ifDefined2(hasAriaLabel ? this.ariaLabel : void 0)}
|
|
1196
|
+
aria-hidden=${hasAriaLabel ? "false" : "true"}
|
|
1197
|
+
>
|
|
1198
|
+
${this._renderContent()}
|
|
1199
|
+
</span>
|
|
1200
|
+
`;
|
|
1201
|
+
}
|
|
1202
|
+
_renderContent() {
|
|
1203
|
+
if (this.name) {
|
|
1204
|
+
if (this._iconResolver) {
|
|
1205
|
+
const override = this._iconResolver(this.name);
|
|
1206
|
+
if (override !== void 0 && override !== null) {
|
|
1207
|
+
return override;
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
const iconSvg = builtInIcons[this.name];
|
|
1211
|
+
if (iconSvg) {
|
|
1212
|
+
return this._wrapSvg(iconSvg);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
if (this.url) {
|
|
1216
|
+
const altText = this.ariaLabel ?? this.alt ?? "";
|
|
1217
|
+
return html6`<img src=${this.url} alt=${altText} />`;
|
|
1218
|
+
}
|
|
1219
|
+
return html6`<slot name="svg"></slot>`;
|
|
1220
|
+
}
|
|
1221
|
+
_wrapSvg(content) {
|
|
1222
|
+
return svgTag`<svg
|
|
1223
|
+
viewBox="0 0 16 16"
|
|
1224
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1225
|
+
focusable="false"
|
|
1226
|
+
aria-hidden="true"
|
|
1227
|
+
>${content}</svg>`;
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
__decorateClass([
|
|
1231
|
+
property7({ type: String, reflect: true })
|
|
1232
|
+
], CsIconInternal.prototype, "name", 2);
|
|
1233
|
+
__decorateClass([
|
|
1234
|
+
property7({ type: String, reflect: true })
|
|
1235
|
+
], CsIconInternal.prototype, "size", 2);
|
|
1236
|
+
__decorateClass([
|
|
1237
|
+
property7({ type: String, reflect: true })
|
|
1238
|
+
], CsIconInternal.prototype, "variant", 2);
|
|
1239
|
+
__decorateClass([
|
|
1240
|
+
property7({ type: String })
|
|
1241
|
+
], CsIconInternal.prototype, "url", 2);
|
|
1242
|
+
__decorateClass([
|
|
1243
|
+
property7({ type: String })
|
|
1244
|
+
], CsIconInternal.prototype, "alt", 2);
|
|
1245
|
+
__decorateClass([
|
|
1246
|
+
property7({ type: String, attribute: "arialabel" })
|
|
1247
|
+
], CsIconInternal.prototype, "ariaLabel", 2);
|
|
1248
|
+
__decorateClass([
|
|
1249
|
+
consume({ context: iconProviderContext, subscribe: true })
|
|
1250
|
+
], CsIconInternal.prototype, "_iconResolver", 2);
|
|
1251
|
+
|
|
1252
|
+
// src/icon/index.ts
|
|
1253
|
+
var CsIcon = class extends CsIconInternal {
|
|
1254
|
+
};
|
|
1255
|
+
customElements.define("cs-icon", CsIcon);
|
|
1256
|
+
|
|
1257
|
+
// src/icon-provider/index.ts
|
|
1258
|
+
var CsIconProvider = class extends CsIconProviderInternal {
|
|
1259
|
+
};
|
|
1260
|
+
customElements.define("cs-icon-provider", CsIconProvider);
|
|
1261
|
+
|
|
1262
|
+
// src/radio-group/internal.ts
|
|
1263
|
+
import { css as css15, html as html7 } from "lit";
|
|
1264
|
+
import { property as property8 } from "lit/decorators.js";
|
|
1265
|
+
import { classMap as classMap6 } from "lit/directives/class-map.js";
|
|
1266
|
+
import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
|
|
1267
|
+
import { LitElement as LitElement7 } from "lit";
|
|
1268
|
+
|
|
1269
|
+
// src/radio-group/styles.ts
|
|
1270
|
+
import { css as css13 } from "lit";
|
|
1271
|
+
var componentStyles6 = css13`
|
|
1272
|
+
.radio-group {
|
|
1273
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
1274
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
1275
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
1276
|
+
font-weight: 400;
|
|
1277
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
1278
|
+
-webkit-font-smoothing: auto;
|
|
1279
|
+
-moz-osx-font-smoothing: auto;
|
|
1280
|
+
}
|
|
1281
|
+
.radio-group:not(.horizontal-group) {
|
|
1282
|
+
display: block;
|
|
1283
|
+
}
|
|
1284
|
+
.radio-group.horizontal-group {
|
|
1285
|
+
display: flex;
|
|
1286
|
+
align-items: flex-start;
|
|
1287
|
+
flex-wrap: wrap;
|
|
1288
|
+
gap: var(--space-scaled-l-sej05l, 20px);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.radio + .radio:not(.horizontal) {
|
|
1292
|
+
margin-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
.radio--has-description + .radio:not(.horizontal) {
|
|
1296
|
+
margin-block-start: var(--space-scaled-xs-xwoogq, 8px);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
.radio.horizontal {
|
|
1300
|
+
max-inline-size: calc(16 * var(--space-scaled-xxl-6wgq96, 32px));
|
|
1301
|
+
}
|
|
1302
|
+
`;
|
|
1303
|
+
|
|
1304
|
+
// src/internal/styles/radio-button.ts
|
|
1305
|
+
import { css as css14 } from "lit";
|
|
1306
|
+
var radioButtonStyles = css14`
|
|
1307
|
+
.radio-control {
|
|
1308
|
+
margin-block-start: calc((var(--line-height-body-m-2mh3ke, 20px) - var(--size-control-adm93y, 16px)) / 2);
|
|
1309
|
+
min-block-size: var(--size-control-adm93y, 16px);
|
|
1310
|
+
min-inline-size: var(--size-control-adm93y, 16px);
|
|
1311
|
+
block-size: var(--size-control-adm93y, 16px);
|
|
1312
|
+
inline-size: var(--size-control-adm93y, 16px);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
.outline {
|
|
1316
|
+
--awsui-style-focus-ring-box-shadow-6b9ypa: 0 0 0 var(--awsui-style-focus-ring-border-width-6b9ypa, 2px) var(--awsui-style-focus-ring-border-color-6b9ypa, var(--color-border-item-focused-uk47pl, #006ce0));
|
|
1317
|
+
position: relative;
|
|
1318
|
+
}
|
|
1319
|
+
.outline {
|
|
1320
|
+
outline: 2px dotted transparent;
|
|
1321
|
+
outline-offset: calc(2px - 1px);
|
|
1322
|
+
}
|
|
1323
|
+
.outline::before {
|
|
1324
|
+
content: " ";
|
|
1325
|
+
display: block;
|
|
1326
|
+
position: absolute;
|
|
1327
|
+
inset-inline-start: calc(-1 * 2px);
|
|
1328
|
+
inset-block-start: calc(-1 * 2px);
|
|
1329
|
+
inline-size: calc(100% + 2px + 2px);
|
|
1330
|
+
block-size: calc(100% + 2px + 2px);
|
|
1331
|
+
border-start-start-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
1332
|
+
border-start-end-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
1333
|
+
border-end-start-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
1334
|
+
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
1335
|
+
box-shadow: var(--awsui-style-focus-ring-box-shadow-6b9ypa);
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.styled-circle-border {
|
|
1339
|
+
stroke: var(--color-border-control-default-sh3548, #8c8c94);
|
|
1340
|
+
fill: var(--color-background-control-default-4jb21l, #ffffff);
|
|
1341
|
+
}
|
|
1342
|
+
.styled-circle-border.styled-circle-disabled, .styled-circle-border.styled-circle-readonly {
|
|
1343
|
+
fill: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
1344
|
+
stroke: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.styled-circle-fill {
|
|
1348
|
+
stroke: var(--color-background-control-checked-ka7kc2, #006ce0);
|
|
1349
|
+
fill: var(--color-foreground-control-default-eto4wy, #ffffff);
|
|
1350
|
+
opacity: 0;
|
|
1351
|
+
transition: opacity var(--motion-duration-transition-quick-mcm2y0, 90ms) var(--motion-easing-transition-quick-qxak3i, linear);
|
|
1352
|
+
}
|
|
1353
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1354
|
+
.styled-circle-fill {
|
|
1355
|
+
animation: none;
|
|
1356
|
+
transition: none;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
.awsui-motion-disabled .styled-circle-fill, .awsui-mode-entering .styled-circle-fill {
|
|
1360
|
+
animation: none;
|
|
1361
|
+
transition: none;
|
|
1362
|
+
}
|
|
1363
|
+
.styled-circle-fill.styled-circle-checked {
|
|
1364
|
+
opacity: 1;
|
|
1365
|
+
}
|
|
1366
|
+
.styled-circle-fill.styled-circle-disabled {
|
|
1367
|
+
fill: var(--color-foreground-control-disabled-txi6cf, #ffffff);
|
|
1368
|
+
stroke: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
1369
|
+
}
|
|
1370
|
+
.styled-circle-fill.styled-circle-readonly {
|
|
1371
|
+
fill: var(--color-foreground-control-read-only-7ydvuj, #656871);
|
|
1372
|
+
stroke: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
1373
|
+
}
|
|
1374
|
+
`;
|
|
1375
|
+
|
|
1376
|
+
// src/radio-group/internal.ts
|
|
1377
|
+
var Base2 = FormAssociatedMixin(LitElement7);
|
|
1378
|
+
var hostStyles6 = css15`:host { display: block; }`;
|
|
1379
|
+
var CsRadioGroupInternal = class extends Base2 {
|
|
1380
|
+
constructor() {
|
|
1381
|
+
super(...arguments);
|
|
1382
|
+
this.value = "";
|
|
1383
|
+
this.items = [];
|
|
1384
|
+
this.controlAriaLabel = "";
|
|
1385
|
+
this.controlAriaRequired = false;
|
|
1386
|
+
this.controlAriaControls = "";
|
|
1387
|
+
this.readOnly = false;
|
|
1388
|
+
this.direction = "vertical";
|
|
1389
|
+
this._groupName = generateUniqueId("radio");
|
|
1390
|
+
this._focusedIndex = -1;
|
|
1391
|
+
this._onKeyDown = (e) => {
|
|
1392
|
+
const enabledIndices = this._getEnabledIndices();
|
|
1393
|
+
if (enabledIndices.length === 0) return;
|
|
1394
|
+
const isVertical = this.direction === "vertical";
|
|
1395
|
+
const prevKey = isVertical ? "ArrowUp" : "ArrowLeft";
|
|
1396
|
+
const nextKey = isVertical ? "ArrowDown" : "ArrowRight";
|
|
1397
|
+
const altPrevKey = "ArrowLeft";
|
|
1398
|
+
const altNextKey = "ArrowRight";
|
|
1399
|
+
let direction = 0;
|
|
1400
|
+
if (e.key === prevKey || e.key === altPrevKey) direction = -1;
|
|
1401
|
+
else if (e.key === nextKey || e.key === altNextKey) direction = 1;
|
|
1402
|
+
else return;
|
|
1403
|
+
e.preventDefault();
|
|
1404
|
+
const currentEnabledPos = enabledIndices.indexOf(this._focusedIndex);
|
|
1405
|
+
let nextPos;
|
|
1406
|
+
if (currentEnabledPos === -1) {
|
|
1407
|
+
nextPos = direction === 1 ? 0 : enabledIndices.length - 1;
|
|
1408
|
+
} else {
|
|
1409
|
+
nextPos = currentEnabledPos + direction;
|
|
1410
|
+
if (nextPos < 0) nextPos = enabledIndices.length - 1;
|
|
1411
|
+
else if (nextPos >= enabledIndices.length) nextPos = 0;
|
|
1412
|
+
}
|
|
1413
|
+
const nextIndex = enabledIndices[nextPos];
|
|
1414
|
+
this._focusedIndex = nextIndex;
|
|
1415
|
+
const inputs = this._getRadioInputs();
|
|
1416
|
+
if (inputs[nextIndex]) {
|
|
1417
|
+
inputs[nextIndex].focus();
|
|
1418
|
+
}
|
|
1419
|
+
if (!this.readOnly) {
|
|
1420
|
+
this._selectItem(this.items[nextIndex].value);
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
}
|
|
1424
|
+
static {
|
|
1425
|
+
this.styles = [sharedStyles, componentStyles6, abstractSwitchStyles, radioButtonStyles, hostStyles6];
|
|
1426
|
+
}
|
|
1427
|
+
connectedCallback() {
|
|
1428
|
+
super.connectedCallback();
|
|
1429
|
+
this.addEventListener("keydown", this._onKeyDown);
|
|
1430
|
+
}
|
|
1431
|
+
disconnectedCallback() {
|
|
1432
|
+
super.disconnectedCallback();
|
|
1433
|
+
this.removeEventListener("keydown", this._onKeyDown);
|
|
1434
|
+
}
|
|
1435
|
+
willUpdate(changed) {
|
|
1436
|
+
super.willUpdate(changed);
|
|
1437
|
+
if (changed.has("value")) {
|
|
1438
|
+
this.setFormValue(this.value || null);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
focus() {
|
|
1442
|
+
const inputs = this._getRadioInputs();
|
|
1443
|
+
if (inputs.length === 0) return;
|
|
1444
|
+
const selectedIdx = this._getSelectedIndex();
|
|
1445
|
+
const focusIdx = selectedIdx >= 0 ? selectedIdx : this._getFirstEnabledIndex();
|
|
1446
|
+
if (focusIdx >= 0) {
|
|
1447
|
+
inputs[focusIdx].focus();
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
_getRadioInputs() {
|
|
1451
|
+
const root = this.shadowRoot;
|
|
1452
|
+
if (!root) return [];
|
|
1453
|
+
return Array.from(root.querySelectorAll(".native-input"));
|
|
1454
|
+
}
|
|
1455
|
+
_getSelectedIndex() {
|
|
1456
|
+
return this.items.findIndex((item) => item.value === this.value);
|
|
1457
|
+
}
|
|
1458
|
+
_getFirstEnabledIndex() {
|
|
1459
|
+
return this.items.findIndex((item) => !item.disabled);
|
|
1460
|
+
}
|
|
1461
|
+
_getEnabledIndices() {
|
|
1462
|
+
return this.items.reduce((acc, item, i) => {
|
|
1463
|
+
if (!item.disabled) acc.push(i);
|
|
1464
|
+
return acc;
|
|
1465
|
+
}, []);
|
|
1466
|
+
}
|
|
1467
|
+
_onItemClick(item) {
|
|
1468
|
+
if (this.disabled || item.disabled || this.readOnly) return;
|
|
1469
|
+
this._selectItem(item.value);
|
|
1470
|
+
}
|
|
1471
|
+
_onFocus(index) {
|
|
1472
|
+
this._focusedIndex = index;
|
|
1473
|
+
}
|
|
1474
|
+
_selectItem(itemValue) {
|
|
1475
|
+
if (this.value === itemValue) return;
|
|
1476
|
+
this.value = itemValue;
|
|
1477
|
+
const detail = { value: itemValue };
|
|
1478
|
+
fireNonCancelableEvent(this, "change", detail);
|
|
1479
|
+
}
|
|
1480
|
+
_getTabIndex(index) {
|
|
1481
|
+
const selectedIdx = this._getSelectedIndex();
|
|
1482
|
+
if (selectedIdx >= 0) {
|
|
1483
|
+
return index === selectedIdx ? 0 : -1;
|
|
1484
|
+
}
|
|
1485
|
+
const firstEnabled = this._getFirstEnabledIndex();
|
|
1486
|
+
return index === firstEnabled ? 0 : -1;
|
|
1487
|
+
}
|
|
1488
|
+
render() {
|
|
1489
|
+
const groupName = this.name || this._groupName;
|
|
1490
|
+
const groupClasses = {
|
|
1491
|
+
"radio-group": true,
|
|
1492
|
+
"horizontal-group": this.direction === "horizontal"
|
|
1493
|
+
};
|
|
1494
|
+
return html7`
|
|
1495
|
+
<div
|
|
1496
|
+
class=${classMap6(groupClasses)}
|
|
1497
|
+
role="radiogroup"
|
|
1498
|
+
aria-label=${ifDefined3(this.controlAriaLabel || void 0)}
|
|
1499
|
+
aria-required=${ifDefined3(this.controlAriaRequired ? "true" : void 0)}
|
|
1500
|
+
aria-controls=${ifDefined3(this.controlAriaControls || void 0)}
|
|
1501
|
+
aria-disabled=${ifDefined3(this.disabled ? "true" : void 0)}
|
|
1502
|
+
aria-readonly=${ifDefined3(this.readOnly ? "true" : void 0)}
|
|
1503
|
+
>
|
|
1504
|
+
${this.items.map((item, index) => this._renderItem(item, index, groupName))}
|
|
1505
|
+
</div>
|
|
1506
|
+
`;
|
|
1507
|
+
}
|
|
1508
|
+
_renderItem(item, index, groupName) {
|
|
1509
|
+
const isChecked = item.value === this.value;
|
|
1510
|
+
const isDisabled = this.disabled || !!item.disabled;
|
|
1511
|
+
const itemId = item.controlId || generateUniqueId("radio-item");
|
|
1512
|
+
const descId = item.description ? `${itemId}-desc` : void 0;
|
|
1513
|
+
const itemClasses = {
|
|
1514
|
+
"radio": true,
|
|
1515
|
+
"radio--has-description": !!item.description,
|
|
1516
|
+
"horizontal": this.direction === "horizontal",
|
|
1517
|
+
"radio--checked": isChecked,
|
|
1518
|
+
"radio--disabled": isDisabled,
|
|
1519
|
+
"radio--readonly": this.readOnly
|
|
1520
|
+
};
|
|
1521
|
+
const controlClasses = {
|
|
1522
|
+
"radio-control": true,
|
|
1523
|
+
"radio-control--checked": isChecked,
|
|
1524
|
+
"radio-control--disabled": isDisabled
|
|
1525
|
+
};
|
|
1526
|
+
return html7`
|
|
1527
|
+
<label
|
|
1528
|
+
class=${classMap6(itemClasses)}
|
|
1529
|
+
@click=${(e) => {
|
|
1530
|
+
e.preventDefault();
|
|
1531
|
+
this._onItemClick(item);
|
|
1532
|
+
}}
|
|
1533
|
+
>
|
|
1534
|
+
<input
|
|
1535
|
+
type="radio"
|
|
1536
|
+
class="native-input"
|
|
1537
|
+
name=${groupName}
|
|
1538
|
+
.value=${item.value}
|
|
1539
|
+
.checked=${isChecked}
|
|
1540
|
+
?disabled=${isDisabled}
|
|
1541
|
+
?readonly=${this.readOnly}
|
|
1542
|
+
tabindex=${this._getTabIndex(index)}
|
|
1543
|
+
aria-describedby=${ifDefined3(descId)}
|
|
1544
|
+
@click=${(e) => e.preventDefault()}
|
|
1545
|
+
@focus=${() => this._onFocus(index)}
|
|
1546
|
+
/>
|
|
1547
|
+
<span class=${classMap6(controlClasses)}>
|
|
1548
|
+
<span class="radio-dot"></span>
|
|
1549
|
+
</span>
|
|
1550
|
+
<span class="radio-content">
|
|
1551
|
+
<span class=${classMap6({
|
|
1552
|
+
"radio-label": true,
|
|
1553
|
+
"radio-label--disabled": isDisabled
|
|
1554
|
+
})}>
|
|
1555
|
+
${item.label}
|
|
1556
|
+
</span>
|
|
1557
|
+
${item.description ? html7`
|
|
1558
|
+
<span
|
|
1559
|
+
id=${descId}
|
|
1560
|
+
class=${classMap6({
|
|
1561
|
+
"radio-description": true,
|
|
1562
|
+
"radio-description--disabled": isDisabled
|
|
1563
|
+
})}
|
|
1564
|
+
>
|
|
1565
|
+
${item.description}
|
|
1566
|
+
</span>
|
|
1567
|
+
` : ""}
|
|
1568
|
+
</span>
|
|
1569
|
+
</label>
|
|
1570
|
+
`;
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
__decorateClass([
|
|
1574
|
+
property8({ type: String })
|
|
1575
|
+
], CsRadioGroupInternal.prototype, "value", 2);
|
|
1576
|
+
__decorateClass([
|
|
1577
|
+
property8({ type: Array })
|
|
1578
|
+
], CsRadioGroupInternal.prototype, "items", 2);
|
|
1579
|
+
__decorateClass([
|
|
1580
|
+
property8({ type: String, attribute: "arialabel" })
|
|
1581
|
+
], CsRadioGroupInternal.prototype, "controlAriaLabel", 2);
|
|
1582
|
+
__decorateClass([
|
|
1583
|
+
property8({ type: Boolean, attribute: "ariarequired" })
|
|
1584
|
+
], CsRadioGroupInternal.prototype, "controlAriaRequired", 2);
|
|
1585
|
+
__decorateClass([
|
|
1586
|
+
property8({ type: String, attribute: "ariacontrols" })
|
|
1587
|
+
], CsRadioGroupInternal.prototype, "controlAriaControls", 2);
|
|
1588
|
+
__decorateClass([
|
|
1589
|
+
property8({ type: Boolean, reflect: true })
|
|
1590
|
+
], CsRadioGroupInternal.prototype, "readOnly", 2);
|
|
1591
|
+
__decorateClass([
|
|
1592
|
+
property8({ type: String })
|
|
1593
|
+
], CsRadioGroupInternal.prototype, "direction", 2);
|
|
1594
|
+
|
|
1595
|
+
// src/radio-group/index.ts
|
|
1596
|
+
var CsRadioGroup = class extends CsRadioGroupInternal {
|
|
1597
|
+
};
|
|
1598
|
+
customElements.define("cs-radio-group", CsRadioGroup);
|
|
1599
|
+
|
|
1600
|
+
// src/tiles/internal.ts
|
|
1601
|
+
import { css as css17, html as html8 } from "lit";
|
|
1602
|
+
import { property as property9 } from "lit/decorators.js";
|
|
1603
|
+
import { classMap as classMap7 } from "lit/directives/class-map.js";
|
|
1604
|
+
import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
|
|
1605
|
+
import { LitElement as LitElement8 } from "lit";
|
|
1606
|
+
|
|
1607
|
+
// src/tiles/styles.ts
|
|
1608
|
+
import { css as css16 } from "lit";
|
|
1609
|
+
var componentStyles7 = css16`
|
|
1610
|
+
div.column-layout {
|
|
1611
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
1612
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
1613
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
1614
|
+
font-weight: 400;
|
|
1615
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
1616
|
+
-webkit-font-smoothing: auto;
|
|
1617
|
+
-moz-osx-font-smoothing: auto;
|
|
1618
|
+
word-wrap: break-word;
|
|
1619
|
+
}
|
|
1620
|
+
div.column-layout > .grid {
|
|
1621
|
+
margin-block: calc(var(--space-grid-gutter-whc3jp, 20px) / -2);
|
|
1622
|
+
margin-inline: calc(var(--space-grid-gutter-whc3jp, 20px) / -2);
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
}
|
|
1626
|
+
div.column-layout > .grid.grid-no-gutters {
|
|
1627
|
+
margin-block: 0;
|
|
1628
|
+
margin-inline: 0;
|
|
1629
|
+
}
|
|
1630
|
+
div.column-layout > .grid.grid-variant-text-grid {
|
|
1631
|
+
margin-block: calc(-1 * var(--space-grid-gutter-whc3jp, 20px) / 2);
|
|
1632
|
+
margin-inline: calc(-1 * var(--space-grid-gutter-whc3jp, 20px));
|
|
1633
|
+
|
|
1634
|
+
}
|
|
1635
|
+
div.column-layout > .grid.grid-variant-text-grid > * {
|
|
1636
|
+
border-inline-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
|
|
1637
|
+
}
|
|
1638
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-breakpoint-default > *:nth-child(1n+1) {
|
|
1639
|
+
border-inline-start-width: 0;
|
|
1640
|
+
}
|
|
1641
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-1.grid-breakpoint-xxs > *:nth-child(1n+1) {
|
|
1642
|
+
border-inline-start-width: 0;
|
|
1643
|
+
}
|
|
1644
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-1.grid-breakpoint-xs > *:nth-child(1n+1) {
|
|
1645
|
+
border-inline-start-width: 0;
|
|
1646
|
+
}
|
|
1647
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-2.grid-breakpoint-xxs > *:nth-child(2n+1) {
|
|
1648
|
+
border-inline-start-width: 0;
|
|
1649
|
+
}
|
|
1650
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-2.grid-breakpoint-xs > *:nth-child(2n+1) {
|
|
1651
|
+
border-inline-start-width: 0;
|
|
1652
|
+
}
|
|
1653
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-3.grid-breakpoint-xxs > *:nth-child(2n+1) {
|
|
1654
|
+
border-inline-start-width: 0;
|
|
1655
|
+
}
|
|
1656
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-3.grid-breakpoint-xs > *:nth-child(3n+1) {
|
|
1657
|
+
border-inline-start-width: 0;
|
|
1658
|
+
}
|
|
1659
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-4.grid-breakpoint-xxs > *:nth-child(2n+1) {
|
|
1660
|
+
border-inline-start-width: 0;
|
|
1661
|
+
}
|
|
1662
|
+
div.column-layout > .grid.grid-variant-text-grid.grid-columns-4.grid-breakpoint-xs > *:nth-child(4n+1) {
|
|
1663
|
+
border-inline-start-width: 0;
|
|
1664
|
+
}
|
|
1665
|
+
div.column-layout > .grid:not(.grid-no-gutters) > * {
|
|
1666
|
+
padding-block: calc(var(--space-grid-gutter-whc3jp, 20px) / 2);
|
|
1667
|
+
padding-inline: calc(var(--space-grid-gutter-whc3jp, 20px) / 2);
|
|
1668
|
+
}
|
|
1669
|
+
div.column-layout > .grid:not(.grid-no-gutters).grid-variant-text-grid > * {
|
|
1670
|
+
padding-block: 0;
|
|
1671
|
+
padding-inline: var(--space-grid-gutter-whc3jp, 20px);
|
|
1672
|
+
margin-block: calc(var(--space-grid-gutter-whc3jp, 20px) / 2);
|
|
1673
|
+
margin-inline: 0;
|
|
1674
|
+
}
|
|
1675
|
+
div.column-layout > .grid.grid-vertical-borders > * {
|
|
1676
|
+
border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
|
|
1677
|
+
}
|
|
1678
|
+
div.column-layout > .grid.grid-vertical-borders.grid-breakpoint-default > *:nth-child(1n) {
|
|
1679
|
+
border-inline-end-width: 0;
|
|
1680
|
+
}
|
|
1681
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-1.grid-breakpoint-xxs > *:nth-child(1n) {
|
|
1682
|
+
border-inline-end-width: 0;
|
|
1683
|
+
}
|
|
1684
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-1.grid-breakpoint-xs > *:nth-child(1n) {
|
|
1685
|
+
border-inline-end-width: 0;
|
|
1686
|
+
}
|
|
1687
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-2.grid-breakpoint-xxs > *:nth-child(2n) {
|
|
1688
|
+
border-inline-end-width: 0;
|
|
1689
|
+
}
|
|
1690
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-2.grid-breakpoint-xs > *:nth-child(2n) {
|
|
1691
|
+
border-inline-end-width: 0;
|
|
1692
|
+
}
|
|
1693
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-3.grid-breakpoint-xxs > *:nth-child(2n) {
|
|
1694
|
+
border-inline-end-width: 0;
|
|
1695
|
+
}
|
|
1696
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-3.grid-breakpoint-xs > *:nth-child(3n) {
|
|
1697
|
+
border-inline-end-width: 0;
|
|
1698
|
+
}
|
|
1699
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-4.grid-breakpoint-xxs > *:nth-child(2n) {
|
|
1700
|
+
border-inline-end-width: 0;
|
|
1701
|
+
}
|
|
1702
|
+
div.column-layout > .grid.grid-vertical-borders.grid-columns-4.grid-breakpoint-xs > *:nth-child(4n) {
|
|
1703
|
+
border-inline-end-width: 0;
|
|
1704
|
+
}
|
|
1705
|
+
div.column-layout > .grid.grid-horizontal-borders > * {
|
|
1706
|
+
border-block-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
|
|
1707
|
+
}
|
|
1708
|
+
div.column-layout > .grid.grid-horizontal-borders > *:last-child {
|
|
1709
|
+
border-block-end-width: 0;
|
|
1710
|
+
}
|
|
1711
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-2.grid-breakpoint-xxs > *:nth-last-child(2):nth-child(2n+1) {
|
|
1712
|
+
border-block-end-width: 0;
|
|
1713
|
+
}
|
|
1714
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-2.grid-breakpoint-xs > *:nth-last-child(2):nth-child(2n+1) {
|
|
1715
|
+
border-block-end-width: 0;
|
|
1716
|
+
}
|
|
1717
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-3.grid-breakpoint-xxs > *:nth-last-child(2):nth-child(2n+1) {
|
|
1718
|
+
border-block-end-width: 0;
|
|
1719
|
+
}
|
|
1720
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-3.grid-breakpoint-xs > *:nth-last-child(2):nth-child(3n+1) {
|
|
1721
|
+
border-block-end-width: 0;
|
|
1722
|
+
}
|
|
1723
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-3.grid-breakpoint-xs > *:nth-last-child(2):nth-child(3n+2) {
|
|
1724
|
+
border-block-end-width: 0;
|
|
1725
|
+
}
|
|
1726
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-3.grid-breakpoint-xs > *:nth-last-child(3):nth-child(3n+1) {
|
|
1727
|
+
border-block-end-width: 0;
|
|
1728
|
+
}
|
|
1729
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-4.grid-breakpoint-xxs > *:nth-last-child(2):nth-child(2n+1) {
|
|
1730
|
+
border-block-end-width: 0;
|
|
1731
|
+
}
|
|
1732
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-4.grid-breakpoint-xs > *:nth-last-child(2):nth-child(4n+1) {
|
|
1733
|
+
border-block-end-width: 0;
|
|
1734
|
+
}
|
|
1735
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-4.grid-breakpoint-xs > *:nth-last-child(2):nth-child(4n+2) {
|
|
1736
|
+
border-block-end-width: 0;
|
|
1737
|
+
}
|
|
1738
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-4.grid-breakpoint-xs > *:nth-last-child(2):nth-child(4n+3) {
|
|
1739
|
+
border-block-end-width: 0;
|
|
1740
|
+
}
|
|
1741
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-4.grid-breakpoint-xs > *:nth-last-child(3):nth-child(4n+1) {
|
|
1742
|
+
border-block-end-width: 0;
|
|
1743
|
+
}
|
|
1744
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-4.grid-breakpoint-xs > *:nth-last-child(3):nth-child(4n+2) {
|
|
1745
|
+
border-block-end-width: 0;
|
|
1746
|
+
}
|
|
1747
|
+
div.column-layout > .grid.grid-horizontal-borders.grid-columns-4.grid-breakpoint-xs > *:nth-last-child(4):nth-child(4n+1) {
|
|
1748
|
+
border-block-end-width: 0;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
.root {
|
|
1752
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
1753
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
1754
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
1755
|
+
font-weight: 400;
|
|
1756
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
1757
|
+
-webkit-font-smoothing: auto;
|
|
1758
|
+
-moz-osx-font-smoothing: auto;
|
|
1759
|
+
min-inline-size: 0;
|
|
1760
|
+
word-break: break-word;
|
|
1761
|
+
display: block;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
.tile-container {
|
|
1765
|
+
box-sizing: border-box;
|
|
1766
|
+
display: flex;
|
|
1767
|
+
flex-direction: column;
|
|
1768
|
+
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-default-317xk5, #8c8c94);
|
|
1769
|
+
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-default-317xk5, #8c8c94);
|
|
1770
|
+
border-start-start-radius: var(--border-radius-tiles-wm1vgw, 8px);
|
|
1771
|
+
border-start-end-radius: var(--border-radius-tiles-wm1vgw, 8px);
|
|
1772
|
+
border-end-start-radius: var(--border-radius-tiles-wm1vgw, 8px);
|
|
1773
|
+
border-end-end-radius: var(--border-radius-tiles-wm1vgw, 8px);
|
|
1774
|
+
background: var(--color-background-input-default-ifz5bb, #ffffff);
|
|
1775
|
+
padding-block: var(--space-xs-ymlm0b, 8px);
|
|
1776
|
+
padding-inline: var(--space-scaled-m-m892r9, 16px);
|
|
1777
|
+
transition: border-color var(--motion-duration-transition-quick-mcm2y0, 90ms) var(--motion-easing-transition-quick-qxak3i, linear), background-color var(--motion-duration-transition-quick-mcm2y0, 90ms) var(--motion-easing-transition-quick-qxak3i, linear);
|
|
1778
|
+
}
|
|
1779
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1780
|
+
.tile-container {
|
|
1781
|
+
animation: none;
|
|
1782
|
+
transition: none;
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
.awsui-motion-disabled .tile-container, .awsui-mode-entering .tile-container {
|
|
1786
|
+
animation: none;
|
|
1787
|
+
transition: none;
|
|
1788
|
+
}
|
|
1789
|
+
.tile-container.refresh {
|
|
1790
|
+
padding-block: var(--space-xs-ymlm0b, 8px);
|
|
1791
|
+
padding-inline: var(--space-s-tvghoh, 12px);
|
|
1792
|
+
}
|
|
1793
|
+
.tile-container.refresh.selected:not(.disabled):not(.readonly) {
|
|
1794
|
+
box-shadow: inset 0 0 0 var(--border-width-field-2xc78x, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
1795
|
+
}
|
|
1796
|
+
.tile-container.has-metadata {
|
|
1797
|
+
padding-block-end: var(--space-s-tvghoh, 12px);
|
|
1798
|
+
}
|
|
1799
|
+
.tile-container.has-metadata.refresh {
|
|
1800
|
+
padding-block-end: var(--space-scaled-s-8ozaad, 12px);
|
|
1801
|
+
}
|
|
1802
|
+
.tile-container.selected {
|
|
1803
|
+
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
1804
|
+
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-item-selected-wl5ttm, #006ce0);
|
|
1805
|
+
background: var(--color-background-item-selected-9gppru, #f0fbff);
|
|
1806
|
+
}
|
|
1807
|
+
.tile-container.disabled {
|
|
1808
|
+
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-tiles-disabled-19olbu, #ebebf0);
|
|
1809
|
+
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-tiles-disabled-19olbu, #ebebf0);
|
|
1810
|
+
background: var(--color-background-tiles-disabled-4ynms7, #ebebf0);
|
|
1811
|
+
}
|
|
1812
|
+
.tile-container.readonly {
|
|
1813
|
+
background-color: var(--color-background-input-default-ifz5bb, #ffffff);
|
|
1814
|
+
border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
1815
|
+
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.columns {
|
|
1819
|
+
display: flex;
|
|
1820
|
+
flex-wrap: wrap;
|
|
1821
|
+
margin-block: calc(var(--space-tile-gutter-bi2bdv, 24px) / -4);
|
|
1822
|
+
margin-inline-start: calc(var(--space-tile-gutter-bi2bdv, 24px) / -4);
|
|
1823
|
+
margin-inline-end: calc(var(--space-tile-gutter-bi2bdv, 24px) / -4);
|
|
1824
|
+
}
|
|
1825
|
+
.columns.column-1 > .tile-container {
|
|
1826
|
+
margin-block: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1827
|
+
margin-inline: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1828
|
+
box-sizing: border-box;
|
|
1829
|
+
flex: 0 0 calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1830
|
+
max-inline-size: calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1831
|
+
}
|
|
1832
|
+
.columns.column-1 > .tile-container.breakpoint-xs {
|
|
1833
|
+
flex: 0 0 calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1834
|
+
max-inline-size: calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1835
|
+
}
|
|
1836
|
+
.columns.column-1 > .tile-container.breakpoint-xxs {
|
|
1837
|
+
flex: 0 0 calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1838
|
+
max-inline-size: calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1839
|
+
}
|
|
1840
|
+
.columns.column-2 > .tile-container {
|
|
1841
|
+
margin-block: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1842
|
+
margin-inline: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1843
|
+
box-sizing: border-box;
|
|
1844
|
+
flex: 0 0 calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1845
|
+
max-inline-size: calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1846
|
+
}
|
|
1847
|
+
.columns.column-2 > .tile-container.breakpoint-xs {
|
|
1848
|
+
flex: 0 0 calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1849
|
+
max-inline-size: calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1850
|
+
}
|
|
1851
|
+
.columns.column-2 > .tile-container.breakpoint-xxs {
|
|
1852
|
+
flex: 0 0 calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1853
|
+
max-inline-size: calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1854
|
+
}
|
|
1855
|
+
.columns.column-3 > .tile-container {
|
|
1856
|
+
margin-block: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1857
|
+
margin-inline: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1858
|
+
box-sizing: border-box;
|
|
1859
|
+
flex: 0 0 calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1860
|
+
max-inline-size: calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1861
|
+
}
|
|
1862
|
+
.columns.column-3 > .tile-container.breakpoint-xs {
|
|
1863
|
+
flex: 0 0 calc(33.3333333333% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1864
|
+
max-inline-size: calc(33.3333333333% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1865
|
+
}
|
|
1866
|
+
.columns.column-3 > .tile-container.breakpoint-xxs {
|
|
1867
|
+
flex: 0 0 calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1868
|
+
max-inline-size: calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1869
|
+
}
|
|
1870
|
+
.columns.column-4 > .tile-container {
|
|
1871
|
+
margin-block: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1872
|
+
margin-inline: calc(var(--space-tile-gutter-bi2bdv, 24px) / 4);
|
|
1873
|
+
box-sizing: border-box;
|
|
1874
|
+
flex: 0 0 calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1875
|
+
max-inline-size: calc(100% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1876
|
+
}
|
|
1877
|
+
.columns.column-4 > .tile-container.breakpoint-xs {
|
|
1878
|
+
flex: 0 0 calc(25% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1879
|
+
max-inline-size: calc(25% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1880
|
+
}
|
|
1881
|
+
.columns.column-4 > .tile-container.breakpoint-xxs {
|
|
1882
|
+
flex: 0 0 calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1883
|
+
max-inline-size: calc(50% - var(--space-tile-gutter-bi2bdv, 24px)/2);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
.control {
|
|
1887
|
+
flex-grow: 1;
|
|
1888
|
+
margin-block-end: var(--space-s-tvghoh, 12px);
|
|
1889
|
+
}
|
|
1890
|
+
.control.no-image {
|
|
1891
|
+
margin-block-end: 0;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
.image {
|
|
1895
|
+
text-align: center;
|
|
1896
|
+
}
|
|
1897
|
+
.image > img {
|
|
1898
|
+
max-inline-size: 100%;
|
|
1899
|
+
}
|
|
1900
|
+
.image.disabled > img {
|
|
1901
|
+
opacity: 0.3;
|
|
1902
|
+
}
|
|
1903
|
+
`;
|
|
1904
|
+
|
|
1905
|
+
// src/tiles/internal.ts
|
|
1906
|
+
var Base3 = FormAssociatedMixin(LitElement8);
|
|
1907
|
+
var hostStyles7 = css17`:host { display: block; }`;
|
|
1908
|
+
var CsTilesInternal = class extends Base3 {
|
|
1909
|
+
constructor() {
|
|
1910
|
+
super(...arguments);
|
|
1911
|
+
this.value = "";
|
|
1912
|
+
this.items = [];
|
|
1913
|
+
this.controlAriaLabel = "";
|
|
1914
|
+
this.controlAriaRequired = false;
|
|
1915
|
+
this.controlAriaControls = "";
|
|
1916
|
+
this.readOnly = false;
|
|
1917
|
+
this._groupName = generateUniqueId("tiles");
|
|
1918
|
+
this._focusedIndex = -1;
|
|
1919
|
+
this._onKeyDown = (e) => {
|
|
1920
|
+
const enabledIndices = this._getEnabledIndices();
|
|
1921
|
+
if (enabledIndices.length === 0) return;
|
|
1922
|
+
let direction = 0;
|
|
1923
|
+
if (e.key === "ArrowUp" || e.key === "ArrowLeft") direction = -1;
|
|
1924
|
+
else if (e.key === "ArrowDown" || e.key === "ArrowRight") direction = 1;
|
|
1925
|
+
else return;
|
|
1926
|
+
e.preventDefault();
|
|
1927
|
+
const currentEnabledPos = enabledIndices.indexOf(this._focusedIndex);
|
|
1928
|
+
let nextPos;
|
|
1929
|
+
if (currentEnabledPos === -1) {
|
|
1930
|
+
nextPos = direction === 1 ? 0 : enabledIndices.length - 1;
|
|
1931
|
+
} else {
|
|
1932
|
+
nextPos = currentEnabledPos + direction;
|
|
1933
|
+
if (nextPos < 0) nextPos = enabledIndices.length - 1;
|
|
1934
|
+
else if (nextPos >= enabledIndices.length) nextPos = 0;
|
|
1935
|
+
}
|
|
1936
|
+
const nextIndex = enabledIndices[nextPos];
|
|
1937
|
+
this._focusedIndex = nextIndex;
|
|
1938
|
+
const inputs = this._getRadioInputs();
|
|
1939
|
+
if (inputs[nextIndex]) {
|
|
1940
|
+
inputs[nextIndex].focus();
|
|
1941
|
+
}
|
|
1942
|
+
if (!this.readOnly) {
|
|
1943
|
+
this._selectItem(this.items[nextIndex].value);
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
}
|
|
1947
|
+
static {
|
|
1948
|
+
this.styles = [sharedStyles, componentStyles7, abstractSwitchStyles, radioButtonStyles, hostStyles7];
|
|
1949
|
+
}
|
|
1950
|
+
connectedCallback() {
|
|
1951
|
+
super.connectedCallback();
|
|
1952
|
+
this.addEventListener("keydown", this._onKeyDown);
|
|
1953
|
+
}
|
|
1954
|
+
disconnectedCallback() {
|
|
1955
|
+
super.disconnectedCallback();
|
|
1956
|
+
this.removeEventListener("keydown", this._onKeyDown);
|
|
1957
|
+
}
|
|
1958
|
+
willUpdate(changed) {
|
|
1959
|
+
super.willUpdate(changed);
|
|
1960
|
+
if (changed.has("value")) {
|
|
1961
|
+
this.setFormValue(this.value || null);
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
focus() {
|
|
1965
|
+
const inputs = this._getRadioInputs();
|
|
1966
|
+
if (inputs.length === 0) return;
|
|
1967
|
+
const selectedIdx = this._getSelectedIndex();
|
|
1968
|
+
const focusIdx = selectedIdx >= 0 ? selectedIdx : this._getFirstEnabledIndex();
|
|
1969
|
+
if (focusIdx >= 0) {
|
|
1970
|
+
inputs[focusIdx].focus();
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
_computeColumns() {
|
|
1974
|
+
if (this.columns !== void 0) return Math.min(Math.max(this.columns, 1), 4);
|
|
1975
|
+
const count = this.items.length;
|
|
1976
|
+
if (count === 4 || count === 8) return 2;
|
|
1977
|
+
return Math.min(count, 3);
|
|
1978
|
+
}
|
|
1979
|
+
_getRadioInputs() {
|
|
1980
|
+
const root = this.shadowRoot;
|
|
1981
|
+
if (!root) return [];
|
|
1982
|
+
return Array.from(root.querySelectorAll(".native-input"));
|
|
1983
|
+
}
|
|
1984
|
+
_getSelectedIndex() {
|
|
1985
|
+
return this.items.findIndex((item) => item.value === this.value);
|
|
1986
|
+
}
|
|
1987
|
+
_getFirstEnabledIndex() {
|
|
1988
|
+
return this.items.findIndex((item) => !item.disabled);
|
|
1989
|
+
}
|
|
1990
|
+
_getEnabledIndices() {
|
|
1991
|
+
return this.items.reduce((acc, item, i) => {
|
|
1992
|
+
if (!item.disabled) acc.push(i);
|
|
1993
|
+
return acc;
|
|
1994
|
+
}, []);
|
|
1995
|
+
}
|
|
1996
|
+
_onTileClick(item) {
|
|
1997
|
+
if (this.disabled || item.disabled || this.readOnly) return;
|
|
1998
|
+
this._selectItem(item.value);
|
|
1999
|
+
}
|
|
2000
|
+
_onFocus(index) {
|
|
2001
|
+
this._focusedIndex = index;
|
|
2002
|
+
}
|
|
2003
|
+
_selectItem(itemValue) {
|
|
2004
|
+
if (this.value === itemValue) return;
|
|
2005
|
+
this.value = itemValue;
|
|
2006
|
+
const detail = { value: itemValue };
|
|
2007
|
+
fireNonCancelableEvent(this, "change", detail);
|
|
2008
|
+
}
|
|
2009
|
+
_getTabIndex(index) {
|
|
2010
|
+
const selectedIdx = this._getSelectedIndex();
|
|
2011
|
+
if (selectedIdx >= 0) {
|
|
2012
|
+
return index === selectedIdx ? 0 : -1;
|
|
2013
|
+
}
|
|
2014
|
+
const firstEnabled = this._getFirstEnabledIndex();
|
|
2015
|
+
return index === firstEnabled ? 0 : -1;
|
|
2016
|
+
}
|
|
2017
|
+
render() {
|
|
2018
|
+
const groupName = this.name || this._groupName;
|
|
2019
|
+
const cols = this._computeColumns();
|
|
2020
|
+
return html8`
|
|
2021
|
+
<div
|
|
2022
|
+
class="root"
|
|
2023
|
+
role="radiogroup"
|
|
2024
|
+
aria-label=${ifDefined4(this.controlAriaLabel || void 0)}
|
|
2025
|
+
aria-required=${ifDefined4(this.controlAriaRequired ? "true" : void 0)}
|
|
2026
|
+
aria-controls=${ifDefined4(this.controlAriaControls || void 0)}
|
|
2027
|
+
aria-disabled=${ifDefined4(this.disabled ? "true" : void 0)}
|
|
2028
|
+
aria-readonly=${ifDefined4(this.readOnly ? "true" : void 0)}
|
|
2029
|
+
>
|
|
2030
|
+
<div class=${classMap7({
|
|
2031
|
+
"columns": true,
|
|
2032
|
+
[`column-${cols}`]: true
|
|
2033
|
+
})}>
|
|
2034
|
+
${this.items.map((item, index) => this._renderTile(item, index, groupName))}
|
|
2035
|
+
</div>
|
|
2036
|
+
</div>
|
|
2037
|
+
`;
|
|
2038
|
+
}
|
|
2039
|
+
_renderTile(item, index, groupName) {
|
|
2040
|
+
const isSelected = item.value === this.value;
|
|
2041
|
+
const isDisabled = this.disabled || !!item.disabled;
|
|
2042
|
+
const itemId = item.controlId || generateUniqueId("tile-item");
|
|
2043
|
+
const labelId = `${itemId}-label`;
|
|
2044
|
+
const descId = item.description ? `${itemId}-desc` : void 0;
|
|
2045
|
+
const tileClasses = {
|
|
2046
|
+
"tile-container": true,
|
|
2047
|
+
"refresh": true,
|
|
2048
|
+
"selected": isSelected,
|
|
2049
|
+
"disabled": isDisabled,
|
|
2050
|
+
"readonly": this.readOnly,
|
|
2051
|
+
"has-metadata": !!item.image
|
|
2052
|
+
};
|
|
2053
|
+
const controlClasses = {
|
|
2054
|
+
"control": true,
|
|
2055
|
+
"no-image": !item.image
|
|
2056
|
+
};
|
|
2057
|
+
return html8`
|
|
2058
|
+
<div
|
|
2059
|
+
class=${classMap7(tileClasses)}
|
|
2060
|
+
@click=${(e) => {
|
|
2061
|
+
e.preventDefault();
|
|
2062
|
+
this._onTileClick(item);
|
|
2063
|
+
}}
|
|
2064
|
+
>
|
|
2065
|
+
<div class=${classMap7(controlClasses)}>
|
|
2066
|
+
<input
|
|
2067
|
+
type="radio"
|
|
2068
|
+
class="native-input"
|
|
2069
|
+
name=${groupName}
|
|
2070
|
+
.value=${item.value}
|
|
2071
|
+
.checked=${isSelected}
|
|
2072
|
+
?disabled=${isDisabled}
|
|
2073
|
+
?readonly=${this.readOnly}
|
|
2074
|
+
tabindex=${this._getTabIndex(index)}
|
|
2075
|
+
aria-labelledby=${labelId}
|
|
2076
|
+
aria-describedby=${ifDefined4(descId)}
|
|
2077
|
+
@click=${(e) => e.preventDefault()}
|
|
2078
|
+
@focus=${() => this._onFocus(index)}
|
|
2079
|
+
/>
|
|
2080
|
+
<span class="tile-label-wrapper">
|
|
2081
|
+
<span
|
|
2082
|
+
id=${labelId}
|
|
2083
|
+
class=${classMap7({
|
|
2084
|
+
"tile-label": true,
|
|
2085
|
+
"tile-label--disabled": isDisabled
|
|
2086
|
+
})}>
|
|
2087
|
+
${item.label}
|
|
2088
|
+
</span>
|
|
2089
|
+
${item.description ? html8`
|
|
2090
|
+
<span
|
|
2091
|
+
id=${descId}
|
|
2092
|
+
class=${classMap7({
|
|
2093
|
+
"tile-description": true,
|
|
2094
|
+
"tile-description--disabled": isDisabled
|
|
2095
|
+
})}
|
|
2096
|
+
>
|
|
2097
|
+
${item.description}
|
|
2098
|
+
</span>
|
|
2099
|
+
` : ""}
|
|
2100
|
+
</span>
|
|
2101
|
+
</div>
|
|
2102
|
+
${item.image ? html8`
|
|
2103
|
+
<div class=${classMap7({
|
|
2104
|
+
"image": true,
|
|
2105
|
+
"disabled": isDisabled
|
|
2106
|
+
})}>
|
|
2107
|
+
${item.image}
|
|
2108
|
+
</div>
|
|
2109
|
+
` : ""}
|
|
2110
|
+
</div>
|
|
2111
|
+
`;
|
|
2112
|
+
}
|
|
2113
|
+
};
|
|
2114
|
+
__decorateClass([
|
|
2115
|
+
property9({ type: String })
|
|
2116
|
+
], CsTilesInternal.prototype, "value", 2);
|
|
2117
|
+
__decorateClass([
|
|
2118
|
+
property9({ type: Array })
|
|
2119
|
+
], CsTilesInternal.prototype, "items", 2);
|
|
2120
|
+
__decorateClass([
|
|
2121
|
+
property9({ type: String, attribute: "arialabel" })
|
|
2122
|
+
], CsTilesInternal.prototype, "controlAriaLabel", 2);
|
|
2123
|
+
__decorateClass([
|
|
2124
|
+
property9({ type: Boolean, attribute: "ariarequired" })
|
|
2125
|
+
], CsTilesInternal.prototype, "controlAriaRequired", 2);
|
|
2126
|
+
__decorateClass([
|
|
2127
|
+
property9({ type: String, attribute: "ariacontrols" })
|
|
2128
|
+
], CsTilesInternal.prototype, "controlAriaControls", 2);
|
|
2129
|
+
__decorateClass([
|
|
2130
|
+
property9({ type: Number })
|
|
2131
|
+
], CsTilesInternal.prototype, "columns", 2);
|
|
2132
|
+
__decorateClass([
|
|
2133
|
+
property9({ type: Boolean, reflect: true })
|
|
2134
|
+
], CsTilesInternal.prototype, "readOnly", 2);
|
|
2135
|
+
|
|
2136
|
+
// src/tiles/index.ts
|
|
2137
|
+
var CsTiles = class extends CsTilesInternal {
|
|
2138
|
+
};
|
|
2139
|
+
customElements.define("cs-tiles", CsTiles);
|
|
2140
|
+
|
|
2141
|
+
// src/list/internal.ts
|
|
2142
|
+
import { css as css20, html as html9, LitElement as LitElement9, nothing } from "lit";
|
|
2143
|
+
import { property as property10 } from "lit/decorators.js";
|
|
2144
|
+
import { classMap as classMap8 } from "lit/directives/class-map.js";
|
|
2145
|
+
import { ifDefined as ifDefined5 } from "lit/directives/if-defined.js";
|
|
2146
|
+
import { repeat } from "lit/directives/repeat.js";
|
|
2147
|
+
|
|
2148
|
+
// src/list/styles.ts
|
|
2149
|
+
import { css as css18 } from "lit";
|
|
2150
|
+
var componentStyles8 = css18`
|
|
2151
|
+
.root {
|
|
2152
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
2153
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
2154
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
2155
|
+
font-weight: 400;
|
|
2156
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
2157
|
+
-webkit-font-smoothing: auto;
|
|
2158
|
+
-moz-osx-font-smoothing: auto;
|
|
2159
|
+
list-style: none;
|
|
2160
|
+
padding-block: 0;
|
|
2161
|
+
padding-inline: 0;
|
|
2162
|
+
margin-block: 0;
|
|
2163
|
+
margin-inline: 0;
|
|
2164
|
+
position: relative;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
.item:not(:last-child) {
|
|
2168
|
+
border-block-end: var(--border-divider-list-width-tdfx1x, 1px) solid var(--color-border-divider-secondary-qoitch, #ebebf0);
|
|
2169
|
+
}
|
|
2170
|
+
.item:not(.disable-item-paddings) {
|
|
2171
|
+
padding-block: var(--space-scaled-xs-xwoogq, 8px);
|
|
2172
|
+
}
|
|
2173
|
+
.item:first-child.disable-paddings {
|
|
2174
|
+
padding-block-start: 0;
|
|
2175
|
+
}
|
|
2176
|
+
.item:last-child.disable-paddings {
|
|
2177
|
+
padding-block-end: 0;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
.sortable-item {
|
|
2181
|
+
display: flex;
|
|
2182
|
+
align-items: baseline;
|
|
2183
|
+
}
|
|
2184
|
+
.sortable-item:not(.disable-item-paddings) {
|
|
2185
|
+
column-gap: var(--space-xxs-hwfkai, 4px);
|
|
2186
|
+
}
|
|
2187
|
+
`;
|
|
2188
|
+
|
|
2189
|
+
// src/internal/styles/structured-item.ts
|
|
2190
|
+
import { css as css19 } from "lit";
|
|
2191
|
+
var structuredItemStyles = css19`
|
|
2192
|
+
.root {
|
|
2193
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
2194
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
2195
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
2196
|
+
font-weight: 400;
|
|
2197
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
2198
|
+
-webkit-font-smoothing: auto;
|
|
2199
|
+
-moz-osx-font-smoothing: auto;
|
|
2200
|
+
min-inline-size: 0;
|
|
2201
|
+
word-break: break-word;
|
|
2202
|
+
display: flex;
|
|
2203
|
+
flex: 1;
|
|
2204
|
+
flex-direction: row;
|
|
2205
|
+
align-items: baseline;
|
|
2206
|
+
column-gap: var(--space-xs-ymlm0b, 8px);
|
|
2207
|
+
}
|
|
2208
|
+
.root.disable-paddings {
|
|
2209
|
+
column-gap: 0;
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
.main {
|
|
2213
|
+
flex-grow: 1;
|
|
2214
|
+
display: flex;
|
|
2215
|
+
flex-direction: column;
|
|
2216
|
+
min-inline-size: 0;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
.content-wrap {
|
|
2220
|
+
flex-grow: 1;
|
|
2221
|
+
display: flex;
|
|
2222
|
+
align-items: baseline;
|
|
2223
|
+
flex-direction: row;
|
|
2224
|
+
column-gap: var(--space-xs-ymlm0b, 8px);
|
|
2225
|
+
}
|
|
2226
|
+
.disable-paddings > .main > .content-wrap {
|
|
2227
|
+
column-gap: 0;
|
|
2228
|
+
}
|
|
2229
|
+
.content-wrap.wrap-actions {
|
|
2230
|
+
flex-wrap: wrap;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
.content {
|
|
2234
|
+
flex-grow: 1;
|
|
2235
|
+
min-inline-size: 0;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.actions {
|
|
2239
|
+
flex-shrink: 0;
|
|
2240
|
+
margin-inline-start: auto;
|
|
2241
|
+
}
|
|
2242
|
+
`;
|
|
2243
|
+
|
|
2244
|
+
// src/list/internal.ts
|
|
2245
|
+
var hostStyles8 = css20`:host { display: block; }`;
|
|
2246
|
+
var CsListInternal = class extends LitElement9 {
|
|
2247
|
+
constructor() {
|
|
2248
|
+
super(...arguments);
|
|
2249
|
+
this.items = [];
|
|
2250
|
+
this.listLabel = "";
|
|
2251
|
+
this.listLabelledby = "";
|
|
2252
|
+
this.listDescribedby = "";
|
|
2253
|
+
this.sortable = false;
|
|
2254
|
+
this.sortDisabled = false;
|
|
2255
|
+
this.disableItemPaddings = false;
|
|
2256
|
+
this.disablePaddings = false;
|
|
2257
|
+
}
|
|
2258
|
+
static {
|
|
2259
|
+
this.styles = [sharedStyles, componentStyles8, structuredItemStyles, hostStyles8];
|
|
2260
|
+
}
|
|
2261
|
+
_renderListItem(rendered) {
|
|
2262
|
+
const itemClasses = {
|
|
2263
|
+
"item": true,
|
|
2264
|
+
"disable-item-paddings": this.disableItemPaddings,
|
|
2265
|
+
"disable-paddings": this.disablePaddings
|
|
2266
|
+
};
|
|
2267
|
+
return html9`
|
|
2268
|
+
<li class=${classMap8(itemClasses)} data-item-id=${rendered.id}>
|
|
2269
|
+
${rendered.icon ? html9`<span class="item-icon">${rendered.icon}</span>` : nothing}
|
|
2270
|
+
<span class="item-content">
|
|
2271
|
+
<span class="item-primary">${rendered.content}</span>
|
|
2272
|
+
${rendered.secondaryContent ? html9`<span class="item-secondary">${rendered.secondaryContent}</span>` : nothing}
|
|
2273
|
+
</span>
|
|
2274
|
+
${rendered.actions ? html9`<span class="item-actions">${rendered.actions}</span>` : nothing}
|
|
2275
|
+
</li>
|
|
2276
|
+
`;
|
|
2277
|
+
}
|
|
2278
|
+
render() {
|
|
2279
|
+
if (!this.renderItem) return nothing;
|
|
2280
|
+
const renderedItems = this.items.map((item) => this.renderItem(item));
|
|
2281
|
+
const tag = this.tagOverride ?? (this.sortable ? "ol" : "ul");
|
|
2282
|
+
const listClasses = {
|
|
2283
|
+
"root": true,
|
|
2284
|
+
"disable-paddings": this.disablePaddings
|
|
2285
|
+
};
|
|
2286
|
+
const content = repeat(
|
|
2287
|
+
renderedItems,
|
|
2288
|
+
(r) => r.id,
|
|
2289
|
+
(r) => this._renderListItem(r)
|
|
2290
|
+
);
|
|
2291
|
+
if (tag === "ol") {
|
|
2292
|
+
return html9`
|
|
2293
|
+
<ol
|
|
2294
|
+
class=${classMap8(listClasses)}
|
|
2295
|
+
role="list"
|
|
2296
|
+
aria-label=${ifDefined5(this.listLabel || void 0)}
|
|
2297
|
+
aria-labelledby=${ifDefined5(this.listLabelledby || void 0)}
|
|
2298
|
+
aria-describedby=${ifDefined5(this.listDescribedby || void 0)}
|
|
2299
|
+
>${content}</ol>
|
|
2300
|
+
`;
|
|
2301
|
+
}
|
|
2302
|
+
return html9`
|
|
2303
|
+
<ul
|
|
2304
|
+
class=${classMap8(listClasses)}
|
|
2305
|
+
role="list"
|
|
2306
|
+
aria-label=${ifDefined5(this.listLabel || void 0)}
|
|
2307
|
+
aria-labelledby=${ifDefined5(this.listLabelledby || void 0)}
|
|
2308
|
+
aria-describedby=${ifDefined5(this.listDescribedby || void 0)}
|
|
2309
|
+
>${content}</ul>
|
|
2310
|
+
`;
|
|
2311
|
+
}
|
|
2312
|
+
};
|
|
2313
|
+
__decorateClass([
|
|
2314
|
+
property10({ attribute: false })
|
|
2315
|
+
], CsListInternal.prototype, "items", 2);
|
|
2316
|
+
__decorateClass([
|
|
2317
|
+
property10({ attribute: false })
|
|
2318
|
+
], CsListInternal.prototype, "renderItem", 2);
|
|
2319
|
+
__decorateClass([
|
|
2320
|
+
property10({ type: String })
|
|
2321
|
+
], CsListInternal.prototype, "tagOverride", 2);
|
|
2322
|
+
__decorateClass([
|
|
2323
|
+
property10({ type: String, attribute: "label" })
|
|
2324
|
+
], CsListInternal.prototype, "listLabel", 2);
|
|
2325
|
+
__decorateClass([
|
|
2326
|
+
property10({ type: String, attribute: "labelledby" })
|
|
2327
|
+
], CsListInternal.prototype, "listLabelledby", 2);
|
|
2328
|
+
__decorateClass([
|
|
2329
|
+
property10({ type: String, attribute: "describedby" })
|
|
2330
|
+
], CsListInternal.prototype, "listDescribedby", 2);
|
|
2331
|
+
__decorateClass([
|
|
2332
|
+
property10({ type: Boolean })
|
|
2333
|
+
], CsListInternal.prototype, "sortable", 2);
|
|
2334
|
+
__decorateClass([
|
|
2335
|
+
property10({ type: Boolean })
|
|
2336
|
+
], CsListInternal.prototype, "sortDisabled", 2);
|
|
2337
|
+
__decorateClass([
|
|
2338
|
+
property10({ type: Boolean })
|
|
2339
|
+
], CsListInternal.prototype, "disableItemPaddings", 2);
|
|
2340
|
+
__decorateClass([
|
|
2341
|
+
property10({ type: Boolean })
|
|
2342
|
+
], CsListInternal.prototype, "disablePaddings", 2);
|
|
2343
|
+
__decorateClass([
|
|
2344
|
+
property10({ attribute: false })
|
|
2345
|
+
], CsListInternal.prototype, "i18nStrings", 2);
|
|
2346
|
+
|
|
2347
|
+
// src/list/index.ts
|
|
2348
|
+
var CsList = class extends CsListInternal {
|
|
2349
|
+
};
|
|
2350
|
+
customElements.define("cs-list", CsList);
|
|
2351
|
+
|
|
2352
|
+
// src/tree-view/internal.ts
|
|
2353
|
+
import { css as css22, html as html10, LitElement as LitElement10, nothing as nothing2 } from "lit";
|
|
2354
|
+
import { property as property11 } from "lit/decorators.js";
|
|
2355
|
+
import { classMap as classMap9 } from "lit/directives/class-map.js";
|
|
2356
|
+
import { ifDefined as ifDefined6 } from "lit/directives/if-defined.js";
|
|
2357
|
+
|
|
2358
|
+
// src/tree-view/styles.ts
|
|
2359
|
+
import { css as css21 } from "lit";
|
|
2360
|
+
var componentStyles9 = css21`
|
|
2361
|
+
.root {
|
|
2362
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
2363
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
2364
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
2365
|
+
font-weight: 400;
|
|
2366
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
2367
|
+
-webkit-font-smoothing: auto;
|
|
2368
|
+
-moz-osx-font-smoothing: auto;
|
|
2369
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
2370
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
2371
|
+
line-height: var(--line-height-heading-m-uoaqdh, 22px);
|
|
2372
|
+
padding-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
2373
|
+
padding-inline: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
.tree {
|
|
2377
|
+
list-style: none;
|
|
2378
|
+
margin-block: 0;
|
|
2379
|
+
margin-inline: 0;
|
|
2380
|
+
padding-block: 0;
|
|
2381
|
+
padding-inline: 0;
|
|
2382
|
+
}
|
|
2383
|
+
`;
|
|
2384
|
+
|
|
2385
|
+
// src/tree-view/internal.ts
|
|
2386
|
+
var hostStyles9 = css22`:host { display: block; }`;
|
|
2387
|
+
var CsTreeViewInternal = class extends LitElement10 {
|
|
2388
|
+
constructor() {
|
|
2389
|
+
super(...arguments);
|
|
2390
|
+
this.items = [];
|
|
2391
|
+
this.treeLabel = "";
|
|
2392
|
+
this.treeLabelledby = "";
|
|
2393
|
+
this.treeDescribedby = "";
|
|
2394
|
+
this._expandedSet = /* @__PURE__ */ new Set();
|
|
2395
|
+
}
|
|
2396
|
+
static {
|
|
2397
|
+
this.styles = [sharedStyles, componentStyles9, hostStyles9];
|
|
2398
|
+
}
|
|
2399
|
+
willUpdate(changed) {
|
|
2400
|
+
if (changed.has("expandedItems")) {
|
|
2401
|
+
this._expandedSet = new Set(this.expandedItems ?? []);
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
_isExpanded(id) {
|
|
2405
|
+
return this._expandedSet.has(id);
|
|
2406
|
+
}
|
|
2407
|
+
_handleToggle(item, id, expanded) {
|
|
2408
|
+
const detail = { id, item, expanded: !expanded };
|
|
2409
|
+
fireNonCancelableEvent(this, "itemToggle", detail);
|
|
2410
|
+
}
|
|
2411
|
+
_renderToggleIcon(expanded) {
|
|
2412
|
+
if (this.renderItemToggleIcon) {
|
|
2413
|
+
return html10`${this.renderItemToggleIcon({ expanded })}`;
|
|
2414
|
+
}
|
|
2415
|
+
const iconClasses = {
|
|
2416
|
+
"toggle-icon": true,
|
|
2417
|
+
"toggle-icon--expanded": expanded
|
|
2418
|
+
};
|
|
2419
|
+
return html10`
|
|
2420
|
+
<svg class=${classMap9(iconClasses)} width="16" height="16" viewBox="0 0 16 16" aria-hidden="true">
|
|
2421
|
+
<path d="M6 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2422
|
+
</svg>
|
|
2423
|
+
`;
|
|
2424
|
+
}
|
|
2425
|
+
_renderNode(item, index, level) {
|
|
2426
|
+
if (!this.renderItem || !this.getItemId || !this.getItemChildren) return html10``;
|
|
2427
|
+
const id = this.getItemId(item, index);
|
|
2428
|
+
const rendered = this.renderItem(item, index);
|
|
2429
|
+
const children = this.getItemChildren(item, index);
|
|
2430
|
+
const hasChildren = children !== void 0 && children.length > 0;
|
|
2431
|
+
const expanded = this._isExpanded(id);
|
|
2432
|
+
const expandLabel = this.i18nStrings?.expandButtonLabel?.(item) ?? "Expand";
|
|
2433
|
+
const collapseLabel = this.i18nStrings?.collapseButtonLabel?.(item) ?? "Collapse";
|
|
2434
|
+
const childrenClasses = {
|
|
2435
|
+
"tree": true,
|
|
2436
|
+
"tree--hidden": !expanded
|
|
2437
|
+
};
|
|
2438
|
+
return html10`
|
|
2439
|
+
<li
|
|
2440
|
+
class="node"
|
|
2441
|
+
role="treeitem"
|
|
2442
|
+
aria-expanded=${hasChildren ? String(expanded) : nothing2}
|
|
2443
|
+
data-node-id=${id}
|
|
2444
|
+
>
|
|
2445
|
+
<div class="node-row" tabindex=${level === 0 ? "0" : "-1"}>
|
|
2446
|
+
${hasChildren ? html10`
|
|
2447
|
+
<button
|
|
2448
|
+
class="toggle"
|
|
2449
|
+
aria-label=${expanded ? collapseLabel : expandLabel}
|
|
2450
|
+
@click=${() => this._handleToggle(item, id, expanded)}
|
|
2451
|
+
>
|
|
2452
|
+
${this._renderToggleIcon(expanded)}
|
|
2453
|
+
</button>` : html10`<span class="toggle-placeholder"></span>`}
|
|
2454
|
+
${rendered.icon ? html10`<span class="node-icon">${rendered.icon}</span>` : nothing2}
|
|
2455
|
+
<span class="node-content">
|
|
2456
|
+
<span class="node-primary">${rendered.content}</span>
|
|
2457
|
+
${rendered.secondaryContent ? html10`<span class="node-secondary">${rendered.secondaryContent}</span>` : nothing2}
|
|
2458
|
+
</span>
|
|
2459
|
+
${rendered.actions ? html10`<span class="node-actions">${rendered.actions}</span>` : nothing2}
|
|
2460
|
+
</div>
|
|
2461
|
+
${hasChildren ? html10`
|
|
2462
|
+
<ul class=${classMap9(childrenClasses)} role="group">
|
|
2463
|
+
${children.map((child, i) => this._renderNode(child, i, level + 1))}
|
|
2464
|
+
</ul>
|
|
2465
|
+
` : nothing2}
|
|
2466
|
+
</li>
|
|
2467
|
+
`;
|
|
2468
|
+
}
|
|
2469
|
+
render() {
|
|
2470
|
+
if (!this.renderItem || !this.getItemId || !this.getItemChildren) return nothing2;
|
|
2471
|
+
const rootClasses = {
|
|
2472
|
+
"root": true,
|
|
2473
|
+
"tree": true,
|
|
2474
|
+
"root--connector-lines": this.connectorLines === "vertical"
|
|
2475
|
+
};
|
|
2476
|
+
return html10`
|
|
2477
|
+
<ul
|
|
2478
|
+
class=${classMap9(rootClasses)}
|
|
2479
|
+
role="tree"
|
|
2480
|
+
aria-label=${ifDefined6(this.treeLabel || void 0)}
|
|
2481
|
+
aria-labelledby=${ifDefined6(this.treeLabelledby || void 0)}
|
|
2482
|
+
aria-describedby=${ifDefined6(this.treeDescribedby || void 0)}
|
|
2483
|
+
>
|
|
2484
|
+
${this.items.map((item, i) => this._renderNode(item, i, 0))}
|
|
2485
|
+
</ul>
|
|
2486
|
+
`;
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
__decorateClass([
|
|
2490
|
+
property11({ attribute: false })
|
|
2491
|
+
], CsTreeViewInternal.prototype, "items", 2);
|
|
2492
|
+
__decorateClass([
|
|
2493
|
+
property11({ attribute: false })
|
|
2494
|
+
], CsTreeViewInternal.prototype, "renderItem", 2);
|
|
2495
|
+
__decorateClass([
|
|
2496
|
+
property11({ attribute: false })
|
|
2497
|
+
], CsTreeViewInternal.prototype, "getItemId", 2);
|
|
2498
|
+
__decorateClass([
|
|
2499
|
+
property11({ attribute: false })
|
|
2500
|
+
], CsTreeViewInternal.prototype, "getItemChildren", 2);
|
|
2501
|
+
__decorateClass([
|
|
2502
|
+
property11({ attribute: false })
|
|
2503
|
+
], CsTreeViewInternal.prototype, "expandedItems", 2);
|
|
2504
|
+
__decorateClass([
|
|
2505
|
+
property11({ type: String, attribute: "label" })
|
|
2506
|
+
], CsTreeViewInternal.prototype, "treeLabel", 2);
|
|
2507
|
+
__decorateClass([
|
|
2508
|
+
property11({ type: String, attribute: "labelledby" })
|
|
2509
|
+
], CsTreeViewInternal.prototype, "treeLabelledby", 2);
|
|
2510
|
+
__decorateClass([
|
|
2511
|
+
property11({ type: String, attribute: "describedby" })
|
|
2512
|
+
], CsTreeViewInternal.prototype, "treeDescribedby", 2);
|
|
2513
|
+
__decorateClass([
|
|
2514
|
+
property11({ type: String })
|
|
2515
|
+
], CsTreeViewInternal.prototype, "connectorLines", 2);
|
|
2516
|
+
__decorateClass([
|
|
2517
|
+
property11({ attribute: false })
|
|
2518
|
+
], CsTreeViewInternal.prototype, "i18nStrings", 2);
|
|
2519
|
+
__decorateClass([
|
|
2520
|
+
property11({ attribute: false })
|
|
2521
|
+
], CsTreeViewInternal.prototype, "renderItemToggleIcon", 2);
|
|
2522
|
+
|
|
2523
|
+
// src/tree-view/index.ts
|
|
2524
|
+
var CsTreeView = class extends CsTreeViewInternal {
|
|
2525
|
+
};
|
|
2526
|
+
customElements.define("cs-tree-view", CsTreeView);
|
|
2527
|
+
|
|
2528
|
+
// src/box/internal.ts
|
|
2529
|
+
import { css as css24, html as html11, LitElement as LitElement11 } from "lit";
|
|
2530
|
+
import { property as property12 } from "lit/decorators.js";
|
|
2531
|
+
import { classMap as classMap10 } from "lit/directives/class-map.js";
|
|
2532
|
+
|
|
2533
|
+
// src/box/styles.ts
|
|
2534
|
+
import { css as css23 } from "lit";
|
|
2535
|
+
var componentStyles10 = css23`
|
|
2536
|
+
.box.p-variant.color-default, .box.b-variant.color-default, .box.strong-variant.color-default, .box.code-variant.color-default, .box.pre-variant.color-default, .box.samp-variant.color-default {
|
|
2537
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
.box.h1-variant.color-default, .box.h2-variant.color-default, .box.h3-variant.color-default, .box.h4-variant.color-default, .box.h5-variant.color-default {
|
|
2541
|
+
color: var(--color-text-heading-default-izpp46, #0f141a);
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
.box.small-variant.color-default {
|
|
2545
|
+
color: var(--color-text-small-m1tr70, #656871);
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
.box.a-variant.color-default {
|
|
2549
|
+
color: var(--color-text-link-default-hude44, #006ce0);
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
.box.small-variant.font-size-default, .box.code-variant.font-size-default {
|
|
2553
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
2554
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
2555
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.box.p-variant.font-size-default, .box.b-variant.font-size-default, .box.strong-variant.font-size-default, .box.pre-variant.font-size-default, .box.samp-variant.font-size-default, .box.a-variant.font-size-default {
|
|
2559
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
2560
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.box.h5-variant.font-size-default {
|
|
2564
|
+
font-size: var(--font-size-heading-xs-j8yzxv, 14px);
|
|
2565
|
+
line-height: var(--line-height-heading-xs-q9j004, 18px);
|
|
2566
|
+
letter-spacing: var(--letter-spacing-heading-xs-fgog7a, normal);
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.box.h4-variant.font-size-default {
|
|
2570
|
+
font-size: var(--font-size-heading-s-zp08en, 16px);
|
|
2571
|
+
line-height: var(--line-height-heading-s-hmi4vc, 20px);
|
|
2572
|
+
letter-spacing: var(--letter-spacing-heading-s-4st9ep, -0.005em);
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
.box.h3-variant.font-size-default {
|
|
2576
|
+
font-size: var(--font-size-heading-m-170yiy, 18px);
|
|
2577
|
+
line-height: var(--line-height-heading-m-uoaqdh, 22px);
|
|
2578
|
+
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
.box.h2-variant.font-size-default {
|
|
2582
|
+
font-size: var(--font-size-heading-l-vnacx6, 20px);
|
|
2583
|
+
line-height: var(--line-height-heading-l-mg5bx6, 24px);
|
|
2584
|
+
letter-spacing: var(--letter-spacing-heading-l-5v6ibv, -0.015em);
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
.box.h1-variant.font-size-default {
|
|
2588
|
+
font-size: var(--font-size-heading-xl-wvkbur, 24px);
|
|
2589
|
+
line-height: var(--line-height-heading-xl-hko6p0, 30px);
|
|
2590
|
+
letter-spacing: var(--letter-spacing-heading-xl-ckkb6u, -0.02em);
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
.box.p-variant.font-weight-default, .box.code-variant.font-weight-default, .box.pre-variant.font-weight-default, .box.samp-variant.font-weight-default, .box.small-variant.font-weight-default, .box.a-variant.font-weight-default {
|
|
2594
|
+
font-weight: 400;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
.box.strong-variant.font-weight-default, .box.b-variant.font-weight-default {
|
|
2598
|
+
font-weight: 700;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
.box.h5-variant.font-weight-default {
|
|
2602
|
+
font-weight: var(--font-weight-heading-xs-wqqpne, 700);
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
.box.h4-variant.font-weight-default {
|
|
2606
|
+
font-weight: var(--font-weight-heading-s-lcx0ai, 700);
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
.box.h3-variant.font-weight-default {
|
|
2610
|
+
font-weight: var(--font-weight-heading-m-zf82dr, 700);
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
.box.h2-variant.font-weight-default {
|
|
2614
|
+
font-weight: var(--font-weight-heading-l-0t6dwc, 700);
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
.box.h1-variant.font-weight-default {
|
|
2618
|
+
font-weight: var(--font-weight-heading-xl-u3m4we, 700);
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
.box.h1-variant, .box.h2-variant, .box.h3-variant, .box.h4-variant, .box.h5-variant, .box.p-variant {
|
|
2622
|
+
margin-block: 0;
|
|
2623
|
+
margin-inline: 0;
|
|
2624
|
+
text-decoration: none;
|
|
2625
|
+
padding-block: var(--space-xxs-hwfkai, 4px);
|
|
2626
|
+
padding-inline: 0;
|
|
2627
|
+
}
|
|
2628
|
+
.box.small-variant {
|
|
2629
|
+
display: inline-block;
|
|
2630
|
+
}
|
|
2631
|
+
.box.code-variant, .box.pre-variant, .box.samp-variant {
|
|
2632
|
+
font-family: var(--font-family-monospace-q47m7k, Monaco, Menlo, Consolas, "Courier Prime", Courier, "Courier New", monospace);
|
|
2633
|
+
background: transparent;
|
|
2634
|
+
}
|
|
2635
|
+
.box.key-label-variant {
|
|
2636
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
2637
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
2638
|
+
font-weight: var(--font-display-label-weight-zavpeo, 700);
|
|
2639
|
+
color: var(--color-text-label-28gfmc, #0f141a);
|
|
2640
|
+
margin-block-end: var(--space-key-value-gap-9glmqc, 0px);
|
|
2641
|
+
}
|
|
2642
|
+
.box.gen-ai-label-variant {
|
|
2643
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
2644
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
2645
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
2646
|
+
font-style: italic;
|
|
2647
|
+
color: var(--color-text-label-gen-ai-a2n3od, #7300e5);
|
|
2648
|
+
}
|
|
2649
|
+
.box.value-large-variant {
|
|
2650
|
+
font-family: var(--font-family-display-a93nj0, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
2651
|
+
font-size: var(--font-size-display-l-wa6woo, 42px);
|
|
2652
|
+
line-height: var(--line-height-display-l-vwanzp, 48px);
|
|
2653
|
+
letter-spacing: var(--letter-spacing-display-l-elyyxk, -0.03em);
|
|
2654
|
+
font-weight: var(--font-box-value-large-weight-wr00sw, 700);
|
|
2655
|
+
color: inherit;
|
|
2656
|
+
}
|
|
2657
|
+
.box.inline-code-variant {
|
|
2658
|
+
font-family: var(--font-family-monospace-q47m7k, Monaco, Menlo, Consolas, "Courier Prime", Courier, "Courier New", monospace);
|
|
2659
|
+
background: transparent;
|
|
2660
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
2661
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
2662
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
2663
|
+
border-start-start-radius: var(--space-static-xxs-ns94dp, 4px);
|
|
2664
|
+
border-start-end-radius: var(--space-static-xxs-ns94dp, 4px);
|
|
2665
|
+
border-end-start-radius: var(--space-static-xxs-ns94dp, 4px);
|
|
2666
|
+
border-end-end-radius: var(--space-static-xxs-ns94dp, 4px);
|
|
2667
|
+
background-color: var(--color-background-inline-code-un8udy, rgba(0, 0, 0, 0.1));
|
|
2668
|
+
padding-block: var(--space-static-xxxs-yidks1, 2px);
|
|
2669
|
+
padding-inline: var(--space-static-xxs-ns94dp, 4px);
|
|
2670
|
+
}
|
|
2671
|
+
.box.h1-variant.font-weight-default, .box.h2-variant.font-weight-default, .box.h3-variant.font-weight-default, .box.h4-variant.font-weight-default, .box.h5-variant.font-weight-default, .box.value-large-variant.font-weight-default, .box.font-weight-heavy {
|
|
2672
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
2673
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
.box.color-inverted {
|
|
2677
|
+
color: var(--color-text-notification-default-1iey72, #f9f9fa);
|
|
2678
|
+
}
|
|
2679
|
+
.box.color-text-label {
|
|
2680
|
+
color: var(--color-text-label-28gfmc, #0f141a);
|
|
2681
|
+
}
|
|
2682
|
+
.box.color-text-body-secondary {
|
|
2683
|
+
color: var(--color-text-body-secondary-yna5sb, #424650);
|
|
2684
|
+
}
|
|
2685
|
+
.box.color-text-status-error {
|
|
2686
|
+
color: var(--color-text-status-error-ksqavh, #db0000);
|
|
2687
|
+
}
|
|
2688
|
+
.box.color-text-status-success {
|
|
2689
|
+
color: var(--color-text-status-success-ybmii8, #00802f);
|
|
2690
|
+
}
|
|
2691
|
+
.box.color-text-status-info {
|
|
2692
|
+
color: var(--color-text-status-info-ue8bd2, #006ce0);
|
|
2693
|
+
}
|
|
2694
|
+
.box.color-text-status-inactive {
|
|
2695
|
+
color: var(--color-text-status-inactive-gy7337, #656871);
|
|
2696
|
+
}
|
|
2697
|
+
.box.color-text-status-warning {
|
|
2698
|
+
color: var(--color-text-status-warning-6meo06, #855900);
|
|
2699
|
+
}
|
|
2700
|
+
.box.color-inherit {
|
|
2701
|
+
color: inherit;
|
|
2702
|
+
}
|
|
2703
|
+
.box.font-size-body-s {
|
|
2704
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
2705
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
2706
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
2707
|
+
}
|
|
2708
|
+
.box.font-size-body-m {
|
|
2709
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
2710
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
2711
|
+
}
|
|
2712
|
+
.box.font-size-heading-xs {
|
|
2713
|
+
font-size: var(--font-size-heading-xs-j8yzxv, 14px);
|
|
2714
|
+
line-height: var(--line-height-heading-xs-q9j004, 18px);
|
|
2715
|
+
letter-spacing: var(--letter-spacing-heading-xs-fgog7a, normal);
|
|
2716
|
+
}
|
|
2717
|
+
.box.font-size-heading-s {
|
|
2718
|
+
font-size: var(--font-size-heading-s-zp08en, 16px);
|
|
2719
|
+
line-height: var(--line-height-heading-s-hmi4vc, 20px);
|
|
2720
|
+
letter-spacing: var(--letter-spacing-heading-s-4st9ep, -0.005em);
|
|
2721
|
+
}
|
|
2722
|
+
.box.font-size-heading-m {
|
|
2723
|
+
font-size: var(--font-size-heading-m-170yiy, 18px);
|
|
2724
|
+
line-height: var(--line-height-heading-m-uoaqdh, 22px);
|
|
2725
|
+
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
2726
|
+
}
|
|
2727
|
+
.box.font-size-heading-l {
|
|
2728
|
+
font-size: var(--font-size-heading-l-vnacx6, 20px);
|
|
2729
|
+
line-height: var(--line-height-heading-l-mg5bx6, 24px);
|
|
2730
|
+
letter-spacing: var(--letter-spacing-heading-l-5v6ibv, -0.015em);
|
|
2731
|
+
}
|
|
2732
|
+
.box.font-size-heading-xl {
|
|
2733
|
+
font-size: var(--font-size-heading-xl-wvkbur, 24px);
|
|
2734
|
+
line-height: var(--line-height-heading-xl-hko6p0, 30px);
|
|
2735
|
+
letter-spacing: var(--letter-spacing-heading-xl-ckkb6u, -0.02em);
|
|
2736
|
+
}
|
|
2737
|
+
.box.font-size-display-l {
|
|
2738
|
+
font-size: var(--font-size-display-l-wa6woo, 42px);
|
|
2739
|
+
line-height: var(--line-height-display-l-vwanzp, 48px);
|
|
2740
|
+
letter-spacing: var(--letter-spacing-display-l-elyyxk, -0.03em);
|
|
2741
|
+
}
|
|
2742
|
+
.box.font-weight-light {
|
|
2743
|
+
font-weight: 300;
|
|
2744
|
+
}
|
|
2745
|
+
.box.font-weight-normal {
|
|
2746
|
+
font-weight: 400;
|
|
2747
|
+
}
|
|
2748
|
+
.box.font-weight-bold {
|
|
2749
|
+
font-weight: 700;
|
|
2750
|
+
}
|
|
2751
|
+
.box.font-weight-heavy {
|
|
2752
|
+
font-weight: var(--font-weight-heavy-6yh4un, 700);
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
.t-left {
|
|
2756
|
+
text-align: start;
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
.t-right {
|
|
2760
|
+
text-align: end;
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
.t-center {
|
|
2764
|
+
text-align: center;
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
.box.p-n {
|
|
2768
|
+
padding-block: var(--space-scaled-none-nfyouv, 0px);
|
|
2769
|
+
padding-inline: var(--space-none-xk6qzf, 0px);
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
.box.p-top-n,
|
|
2773
|
+
.box.p-vertical-n {
|
|
2774
|
+
padding-block-start: var(--space-scaled-none-nfyouv, 0px);
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
.box.p-right-n,
|
|
2778
|
+
.box.p-horizontal-n {
|
|
2779
|
+
padding-inline-end: var(--space-none-xk6qzf, 0px);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
.box.p-bottom-n,
|
|
2783
|
+
.box.p-vertical-n {
|
|
2784
|
+
padding-block-end: var(--space-scaled-none-nfyouv, 0px);
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
.box.p-left-n,
|
|
2788
|
+
.box.p-horizontal-n {
|
|
2789
|
+
padding-inline-start: var(--space-none-xk6qzf, 0px);
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
.box.p-xxxs {
|
|
2793
|
+
padding-block: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
2794
|
+
padding-inline: var(--space-xxxs-pajhad, 2px);
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
.box.p-top-xxxs,
|
|
2798
|
+
.box.p-vertical-xxxs {
|
|
2799
|
+
padding-block-start: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
.box.p-right-xxxs,
|
|
2803
|
+
.box.p-horizontal-xxxs {
|
|
2804
|
+
padding-inline-end: var(--space-xxxs-pajhad, 2px);
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
.box.p-bottom-xxxs,
|
|
2808
|
+
.box.p-vertical-xxxs {
|
|
2809
|
+
padding-block-end: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
.box.p-left-xxxs,
|
|
2813
|
+
.box.p-horizontal-xxxs {
|
|
2814
|
+
padding-inline-start: var(--space-xxxs-pajhad, 2px);
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
.box.p-xxs {
|
|
2818
|
+
padding-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
2819
|
+
padding-inline: var(--space-xxs-hwfkai, 4px);
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
.box.p-top-xxs,
|
|
2823
|
+
.box.p-vertical-xxs {
|
|
2824
|
+
padding-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
.box.p-right-xxs,
|
|
2828
|
+
.box.p-horizontal-xxs {
|
|
2829
|
+
padding-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
.box.p-bottom-xxs,
|
|
2833
|
+
.box.p-vertical-xxs {
|
|
2834
|
+
padding-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
.box.p-left-xxs,
|
|
2838
|
+
.box.p-horizontal-xxs {
|
|
2839
|
+
padding-inline-start: var(--space-xxs-hwfkai, 4px);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
.box.p-xs {
|
|
2843
|
+
padding-block: var(--space-scaled-xs-xwoogq, 8px);
|
|
2844
|
+
padding-inline: var(--space-xs-ymlm0b, 8px);
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
.box.p-top-xs,
|
|
2848
|
+
.box.p-vertical-xs {
|
|
2849
|
+
padding-block-start: var(--space-scaled-xs-xwoogq, 8px);
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
.box.p-right-xs,
|
|
2853
|
+
.box.p-horizontal-xs {
|
|
2854
|
+
padding-inline-end: var(--space-xs-ymlm0b, 8px);
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
.box.p-bottom-xs,
|
|
2858
|
+
.box.p-vertical-xs {
|
|
2859
|
+
padding-block-end: var(--space-scaled-xs-xwoogq, 8px);
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
.box.p-left-xs,
|
|
2863
|
+
.box.p-horizontal-xs {
|
|
2864
|
+
padding-inline-start: var(--space-xs-ymlm0b, 8px);
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
.box.p-s {
|
|
2868
|
+
padding-block: var(--space-scaled-s-8ozaad, 12px);
|
|
2869
|
+
padding-inline: var(--space-s-tvghoh, 12px);
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
.box.p-top-s,
|
|
2873
|
+
.box.p-vertical-s {
|
|
2874
|
+
padding-block-start: var(--space-scaled-s-8ozaad, 12px);
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.box.p-right-s,
|
|
2878
|
+
.box.p-horizontal-s {
|
|
2879
|
+
padding-inline-end: var(--space-s-tvghoh, 12px);
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
.box.p-bottom-s,
|
|
2883
|
+
.box.p-vertical-s {
|
|
2884
|
+
padding-block-end: var(--space-scaled-s-8ozaad, 12px);
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
.box.p-left-s,
|
|
2888
|
+
.box.p-horizontal-s {
|
|
2889
|
+
padding-inline-start: var(--space-s-tvghoh, 12px);
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
.box.p-m {
|
|
2893
|
+
padding-block: var(--space-scaled-m-m892r9, 16px);
|
|
2894
|
+
padding-inline: var(--space-m-dsumyt, 16px);
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
.box.p-top-m,
|
|
2898
|
+
.box.p-vertical-m {
|
|
2899
|
+
padding-block-start: var(--space-scaled-m-m892r9, 16px);
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
.box.p-right-m,
|
|
2903
|
+
.box.p-horizontal-m {
|
|
2904
|
+
padding-inline-end: var(--space-m-dsumyt, 16px);
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
.box.p-bottom-m,
|
|
2908
|
+
.box.p-vertical-m {
|
|
2909
|
+
padding-block-end: var(--space-scaled-m-m892r9, 16px);
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
.box.p-left-m,
|
|
2913
|
+
.box.p-horizontal-m {
|
|
2914
|
+
padding-inline-start: var(--space-m-dsumyt, 16px);
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
.box.p-l {
|
|
2918
|
+
padding-block: var(--space-scaled-l-sej05l, 20px);
|
|
2919
|
+
padding-inline: var(--space-l-2ud1p3, 20px);
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
.box.p-top-l,
|
|
2923
|
+
.box.p-vertical-l {
|
|
2924
|
+
padding-block-start: var(--space-scaled-l-sej05l, 20px);
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
.box.p-right-l,
|
|
2928
|
+
.box.p-horizontal-l {
|
|
2929
|
+
padding-inline-end: var(--space-l-2ud1p3, 20px);
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
.box.p-bottom-l,
|
|
2933
|
+
.box.p-vertical-l {
|
|
2934
|
+
padding-block-end: var(--space-scaled-l-sej05l, 20px);
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
.box.p-left-l,
|
|
2938
|
+
.box.p-horizontal-l {
|
|
2939
|
+
padding-inline-start: var(--space-l-2ud1p3, 20px);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
.box.p-xl {
|
|
2943
|
+
padding-block: var(--space-scaled-xl-dunxp5, 24px);
|
|
2944
|
+
padding-inline: var(--space-xl-jfy3x4, 24px);
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
.box.p-top-xl,
|
|
2948
|
+
.box.p-vertical-xl {
|
|
2949
|
+
padding-block-start: var(--space-scaled-xl-dunxp5, 24px);
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
.box.p-right-xl,
|
|
2953
|
+
.box.p-horizontal-xl {
|
|
2954
|
+
padding-inline-end: var(--space-xl-jfy3x4, 24px);
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
.box.p-bottom-xl,
|
|
2958
|
+
.box.p-vertical-xl {
|
|
2959
|
+
padding-block-end: var(--space-scaled-xl-dunxp5, 24px);
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
.box.p-left-xl,
|
|
2963
|
+
.box.p-horizontal-xl {
|
|
2964
|
+
padding-inline-start: var(--space-xl-jfy3x4, 24px);
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
.box.p-xxl {
|
|
2968
|
+
padding-block: var(--space-scaled-xxl-6wgq96, 32px);
|
|
2969
|
+
padding-inline: var(--space-xxl-32srm4, 32px);
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
.box.p-top-xxl,
|
|
2973
|
+
.box.p-vertical-xxl {
|
|
2974
|
+
padding-block-start: var(--space-scaled-xxl-6wgq96, 32px);
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
.box.p-right-xxl,
|
|
2978
|
+
.box.p-horizontal-xxl {
|
|
2979
|
+
padding-inline-end: var(--space-xxl-32srm4, 32px);
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
.box.p-bottom-xxl,
|
|
2983
|
+
.box.p-vertical-xxl {
|
|
2984
|
+
padding-block-end: var(--space-scaled-xxl-6wgq96, 32px);
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
.box.p-left-xxl,
|
|
2988
|
+
.box.p-horizontal-xxl {
|
|
2989
|
+
padding-inline-start: var(--space-xxl-32srm4, 32px);
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
.box.p-xxxl {
|
|
2993
|
+
padding-block: var(--space-scaled-xxxl-hwoy7j, 40px);
|
|
2994
|
+
padding-inline: var(--space-xxxl-aut1u7, 40px);
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
.box.p-top-xxxl,
|
|
2998
|
+
.box.p-vertical-xxxl {
|
|
2999
|
+
padding-block-start: var(--space-scaled-xxxl-hwoy7j, 40px);
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
.box.p-right-xxxl,
|
|
3003
|
+
.box.p-horizontal-xxxl {
|
|
3004
|
+
padding-inline-end: var(--space-xxxl-aut1u7, 40px);
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
.box.p-bottom-xxxl,
|
|
3008
|
+
.box.p-vertical-xxxl {
|
|
3009
|
+
padding-block-end: var(--space-scaled-xxxl-hwoy7j, 40px);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.box.p-left-xxxl,
|
|
3013
|
+
.box.p-horizontal-xxxl {
|
|
3014
|
+
padding-inline-start: var(--space-xxxl-aut1u7, 40px);
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
.box.m-n {
|
|
3018
|
+
margin-block: var(--space-scaled-none-nfyouv, 0px);
|
|
3019
|
+
margin-inline: var(--space-none-xk6qzf, 0px);
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
.box.m-top-n,
|
|
3023
|
+
.box.m-vertical-n {
|
|
3024
|
+
margin-block-start: var(--space-scaled-none-nfyouv, 0px);
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
.box.m-right-n,
|
|
3028
|
+
.box.m-horizontal-n {
|
|
3029
|
+
margin-inline-end: var(--space-none-xk6qzf, 0px);
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
.box.m-bottom-n,
|
|
3033
|
+
.box.m-vertical-n {
|
|
3034
|
+
margin-block-end: var(--space-scaled-none-nfyouv, 0px);
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
.box.m-left-n,
|
|
3038
|
+
.box.m-horizontal-n {
|
|
3039
|
+
margin-inline-start: var(--space-none-xk6qzf, 0px);
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
.box.m-xxxs {
|
|
3043
|
+
margin-block: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
3044
|
+
margin-inline: var(--space-xxxs-pajhad, 2px);
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
.box.m-top-xxxs,
|
|
3048
|
+
.box.m-vertical-xxxs {
|
|
3049
|
+
margin-block-start: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
.box.m-right-xxxs,
|
|
3053
|
+
.box.m-horizontal-xxxs {
|
|
3054
|
+
margin-inline-end: var(--space-xxxs-pajhad, 2px);
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
.box.m-bottom-xxxs,
|
|
3058
|
+
.box.m-vertical-xxxs {
|
|
3059
|
+
margin-block-end: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
.box.m-left-xxxs,
|
|
3063
|
+
.box.m-horizontal-xxxs {
|
|
3064
|
+
margin-inline-start: var(--space-xxxs-pajhad, 2px);
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
.box.m-xxs {
|
|
3068
|
+
margin-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
3069
|
+
margin-inline: var(--space-xxs-hwfkai, 4px);
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
.box.m-top-xxs,
|
|
3073
|
+
.box.m-vertical-xxs {
|
|
3074
|
+
margin-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
.box.m-right-xxs,
|
|
3078
|
+
.box.m-horizontal-xxs {
|
|
3079
|
+
margin-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
.box.m-bottom-xxs,
|
|
3083
|
+
.box.m-vertical-xxs {
|
|
3084
|
+
margin-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
.box.m-left-xxs,
|
|
3088
|
+
.box.m-horizontal-xxs {
|
|
3089
|
+
margin-inline-start: var(--space-xxs-hwfkai, 4px);
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
.box.m-xs {
|
|
3093
|
+
margin-block: var(--space-scaled-xs-xwoogq, 8px);
|
|
3094
|
+
margin-inline: var(--space-xs-ymlm0b, 8px);
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
.box.m-top-xs,
|
|
3098
|
+
.box.m-vertical-xs {
|
|
3099
|
+
margin-block-start: var(--space-scaled-xs-xwoogq, 8px);
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
.box.m-right-xs,
|
|
3103
|
+
.box.m-horizontal-xs {
|
|
3104
|
+
margin-inline-end: var(--space-xs-ymlm0b, 8px);
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
.box.m-bottom-xs,
|
|
3108
|
+
.box.m-vertical-xs {
|
|
3109
|
+
margin-block-end: var(--space-scaled-xs-xwoogq, 8px);
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
.box.m-left-xs,
|
|
3113
|
+
.box.m-horizontal-xs {
|
|
3114
|
+
margin-inline-start: var(--space-xs-ymlm0b, 8px);
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
.box.m-s {
|
|
3118
|
+
margin-block: var(--space-scaled-s-8ozaad, 12px);
|
|
3119
|
+
margin-inline: var(--space-s-tvghoh, 12px);
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
.box.m-top-s,
|
|
3123
|
+
.box.m-vertical-s {
|
|
3124
|
+
margin-block-start: var(--space-scaled-s-8ozaad, 12px);
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
.box.m-right-s,
|
|
3128
|
+
.box.m-horizontal-s {
|
|
3129
|
+
margin-inline-end: var(--space-s-tvghoh, 12px);
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
.box.m-bottom-s,
|
|
3133
|
+
.box.m-vertical-s {
|
|
3134
|
+
margin-block-end: var(--space-scaled-s-8ozaad, 12px);
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
.box.m-left-s,
|
|
3138
|
+
.box.m-horizontal-s {
|
|
3139
|
+
margin-inline-start: var(--space-s-tvghoh, 12px);
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
.box.m-m {
|
|
3143
|
+
margin-block: var(--space-scaled-m-m892r9, 16px);
|
|
3144
|
+
margin-inline: var(--space-m-dsumyt, 16px);
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
.box.m-top-m,
|
|
3148
|
+
.box.m-vertical-m {
|
|
3149
|
+
margin-block-start: var(--space-scaled-m-m892r9, 16px);
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
.box.m-right-m,
|
|
3153
|
+
.box.m-horizontal-m {
|
|
3154
|
+
margin-inline-end: var(--space-m-dsumyt, 16px);
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
.box.m-bottom-m,
|
|
3158
|
+
.box.m-vertical-m {
|
|
3159
|
+
margin-block-end: var(--space-scaled-m-m892r9, 16px);
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
.box.m-left-m,
|
|
3163
|
+
.box.m-horizontal-m {
|
|
3164
|
+
margin-inline-start: var(--space-m-dsumyt, 16px);
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
.box.m-l {
|
|
3168
|
+
margin-block: var(--space-scaled-l-sej05l, 20px);
|
|
3169
|
+
margin-inline: var(--space-l-2ud1p3, 20px);
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
.box.m-top-l,
|
|
3173
|
+
.box.m-vertical-l {
|
|
3174
|
+
margin-block-start: var(--space-scaled-l-sej05l, 20px);
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
.box.m-right-l,
|
|
3178
|
+
.box.m-horizontal-l {
|
|
3179
|
+
margin-inline-end: var(--space-l-2ud1p3, 20px);
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
.box.m-bottom-l,
|
|
3183
|
+
.box.m-vertical-l {
|
|
3184
|
+
margin-block-end: var(--space-scaled-l-sej05l, 20px);
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
.box.m-left-l,
|
|
3188
|
+
.box.m-horizontal-l {
|
|
3189
|
+
margin-inline-start: var(--space-l-2ud1p3, 20px);
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
.box.m-xl {
|
|
3193
|
+
margin-block: var(--space-scaled-xl-dunxp5, 24px);
|
|
3194
|
+
margin-inline: var(--space-xl-jfy3x4, 24px);
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
.box.m-top-xl,
|
|
3198
|
+
.box.m-vertical-xl {
|
|
3199
|
+
margin-block-start: var(--space-scaled-xl-dunxp5, 24px);
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
.box.m-right-xl,
|
|
3203
|
+
.box.m-horizontal-xl {
|
|
3204
|
+
margin-inline-end: var(--space-xl-jfy3x4, 24px);
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
.box.m-bottom-xl,
|
|
3208
|
+
.box.m-vertical-xl {
|
|
3209
|
+
margin-block-end: var(--space-scaled-xl-dunxp5, 24px);
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
.box.m-left-xl,
|
|
3213
|
+
.box.m-horizontal-xl {
|
|
3214
|
+
margin-inline-start: var(--space-xl-jfy3x4, 24px);
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3217
|
+
.box.m-xxl {
|
|
3218
|
+
margin-block: var(--space-scaled-xxl-6wgq96, 32px);
|
|
3219
|
+
margin-inline: var(--space-xxl-32srm4, 32px);
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
.box.m-top-xxl,
|
|
3223
|
+
.box.m-vertical-xxl {
|
|
3224
|
+
margin-block-start: var(--space-scaled-xxl-6wgq96, 32px);
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
.box.m-right-xxl,
|
|
3228
|
+
.box.m-horizontal-xxl {
|
|
3229
|
+
margin-inline-end: var(--space-xxl-32srm4, 32px);
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
.box.m-bottom-xxl,
|
|
3233
|
+
.box.m-vertical-xxl {
|
|
3234
|
+
margin-block-end: var(--space-scaled-xxl-6wgq96, 32px);
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
.box.m-left-xxl,
|
|
3238
|
+
.box.m-horizontal-xxl {
|
|
3239
|
+
margin-inline-start: var(--space-xxl-32srm4, 32px);
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
.box.m-xxxl {
|
|
3243
|
+
margin-block: var(--space-scaled-xxxl-hwoy7j, 40px);
|
|
3244
|
+
margin-inline: var(--space-xxxl-aut1u7, 40px);
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
.box.m-top-xxxl,
|
|
3248
|
+
.box.m-vertical-xxxl {
|
|
3249
|
+
margin-block-start: var(--space-scaled-xxxl-hwoy7j, 40px);
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
.box.m-right-xxxl,
|
|
3253
|
+
.box.m-horizontal-xxxl {
|
|
3254
|
+
margin-inline-end: var(--space-xxxl-aut1u7, 40px);
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
.box.m-bottom-xxxl,
|
|
3258
|
+
.box.m-vertical-xxxl {
|
|
3259
|
+
margin-block-end: var(--space-scaled-xxxl-hwoy7j, 40px);
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
.box.m-left-xxxl,
|
|
3263
|
+
.box.m-horizontal-xxxl {
|
|
3264
|
+
margin-inline-start: var(--space-xxxl-aut1u7, 40px);
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
.box.d-block {
|
|
3268
|
+
display: block;
|
|
3269
|
+
}
|
|
3270
|
+
.box.d-inline {
|
|
3271
|
+
display: inline;
|
|
3272
|
+
}
|
|
3273
|
+
.box.d-inline-block {
|
|
3274
|
+
display: inline-block;
|
|
3275
|
+
}
|
|
3276
|
+
.box.d-none {
|
|
3277
|
+
display: none;
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
.f-left {
|
|
3281
|
+
float: inline-start;
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
.f-right {
|
|
3285
|
+
float: inline-end;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
.root {
|
|
3289
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
3290
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
3291
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
3292
|
+
font-weight: 400;
|
|
3293
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3294
|
+
-webkit-font-smoothing: auto;
|
|
3295
|
+
-moz-osx-font-smoothing: auto;
|
|
3296
|
+
}
|
|
3297
|
+
`;
|
|
3298
|
+
|
|
3299
|
+
// src/box/internal.ts
|
|
3300
|
+
var VARIANT_TAG_MAP = {
|
|
3301
|
+
div: "div",
|
|
3302
|
+
span: "span",
|
|
3303
|
+
h1: "h1",
|
|
3304
|
+
h2: "h2",
|
|
3305
|
+
h3: "h3",
|
|
3306
|
+
h4: "h4",
|
|
3307
|
+
h5: "h5",
|
|
3308
|
+
p: "p",
|
|
3309
|
+
strong: "strong",
|
|
3310
|
+
small: "small",
|
|
3311
|
+
code: "code",
|
|
3312
|
+
pre: "pre",
|
|
3313
|
+
samp: "samp",
|
|
3314
|
+
"awsui-key-label": "div",
|
|
3315
|
+
"awsui-gen-ai-label": "div",
|
|
3316
|
+
"awsui-value-large": "span",
|
|
3317
|
+
"awsui-inline-code": "code"
|
|
3318
|
+
};
|
|
3319
|
+
function variantCssClass(variant) {
|
|
3320
|
+
return variant.replace(/^awsui-/, "") + "-variant";
|
|
3321
|
+
}
|
|
3322
|
+
function isSpacingObject(value) {
|
|
3323
|
+
return typeof value === "object" && value !== null;
|
|
3324
|
+
}
|
|
3325
|
+
function spacingClasses(prefix, value) {
|
|
3326
|
+
if (!value) return {};
|
|
3327
|
+
if (typeof value === "string") {
|
|
3328
|
+
return { [`${prefix}-${value}`]: true };
|
|
3329
|
+
}
|
|
3330
|
+
if (isSpacingObject(value)) {
|
|
3331
|
+
const classes = {};
|
|
3332
|
+
const { top, right, bottom, left, horizontal, vertical } = value;
|
|
3333
|
+
if (top) classes[`${prefix}-top-${top}`] = true;
|
|
3334
|
+
if (right) classes[`${prefix}-right-${right}`] = true;
|
|
3335
|
+
if (bottom) classes[`${prefix}-bottom-${bottom}`] = true;
|
|
3336
|
+
if (left) classes[`${prefix}-left-${left}`] = true;
|
|
3337
|
+
if (horizontal) classes[`${prefix}-horizontal-${horizontal}`] = true;
|
|
3338
|
+
if (vertical) classes[`${prefix}-vertical-${vertical}`] = true;
|
|
3339
|
+
return classes;
|
|
3340
|
+
}
|
|
3341
|
+
return {};
|
|
3342
|
+
}
|
|
3343
|
+
var hostStyles10 = css24`
|
|
3344
|
+
:host { display: block; }
|
|
3345
|
+
:host([display="inline"]) { display: inline; }
|
|
3346
|
+
:host([display="inline-block"]) { display: inline-block; }
|
|
3347
|
+
:host([display="none"]) { display: none; }
|
|
3348
|
+
`;
|
|
3349
|
+
var CsBoxInternal = class extends LitElement11 {
|
|
3350
|
+
constructor() {
|
|
3351
|
+
super(...arguments);
|
|
3352
|
+
this.variant = "div";
|
|
3353
|
+
}
|
|
3354
|
+
static {
|
|
3355
|
+
this.styles = [sharedStyles, componentStyles10, hostStyles10];
|
|
3356
|
+
}
|
|
3357
|
+
render() {
|
|
3358
|
+
const tag = this.tagOverride || VARIANT_TAG_MAP[this.variant] || "div";
|
|
3359
|
+
const classes = {
|
|
3360
|
+
"box": true,
|
|
3361
|
+
[variantCssClass(this.variant)]: true,
|
|
3362
|
+
...this.display ? { [`d-${this.display}`]: true } : {},
|
|
3363
|
+
...this.textAlign ? { [`t-${this.textAlign}`]: true } : {},
|
|
3364
|
+
...this.float ? { [`f-${this.float}`]: true } : {},
|
|
3365
|
+
...this.fontSize ? { [`font-size-${this.fontSize}`]: true } : {},
|
|
3366
|
+
...this.fontWeight ? { [`font-weight-${this.fontWeight}`]: true } : {},
|
|
3367
|
+
...this.color ? { [`color-${this.color}`]: true } : {},
|
|
3368
|
+
...spacingClasses("m", this.margin),
|
|
3369
|
+
...spacingClasses("p", this.padding)
|
|
3370
|
+
};
|
|
3371
|
+
return this._renderTag(tag, classes);
|
|
3372
|
+
}
|
|
3373
|
+
_renderTag(tag, classes) {
|
|
3374
|
+
switch (tag) {
|
|
3375
|
+
case "div":
|
|
3376
|
+
return html11`<div class=${classMap10(classes)}><slot></slot></div>`;
|
|
3377
|
+
case "span":
|
|
3378
|
+
return html11`<span class=${classMap10(classes)}><slot></slot></span>`;
|
|
3379
|
+
case "h1":
|
|
3380
|
+
return html11`<h1 class=${classMap10(classes)}><slot></slot></h1>`;
|
|
3381
|
+
case "h2":
|
|
3382
|
+
return html11`<h2 class=${classMap10(classes)}><slot></slot></h2>`;
|
|
3383
|
+
case "h3":
|
|
3384
|
+
return html11`<h3 class=${classMap10(classes)}><slot></slot></h3>`;
|
|
3385
|
+
case "h4":
|
|
3386
|
+
return html11`<h4 class=${classMap10(classes)}><slot></slot></h4>`;
|
|
3387
|
+
case "h5":
|
|
3388
|
+
return html11`<h5 class=${classMap10(classes)}><slot></slot></h5>`;
|
|
3389
|
+
case "p":
|
|
3390
|
+
return html11`<p class=${classMap10(classes)}><slot></slot></p>`;
|
|
3391
|
+
case "strong":
|
|
3392
|
+
return html11`<strong class=${classMap10(classes)}><slot></slot></strong>`;
|
|
3393
|
+
case "small":
|
|
3394
|
+
return html11`<small class=${classMap10(classes)}><slot></slot></small>`;
|
|
3395
|
+
case "code":
|
|
3396
|
+
return html11`<code class=${classMap10(classes)}><slot></slot></code>`;
|
|
3397
|
+
case "pre":
|
|
3398
|
+
return html11`<pre class=${classMap10(classes)}><slot></slot></pre>`;
|
|
3399
|
+
case "samp":
|
|
3400
|
+
return html11`<samp class=${classMap10(classes)}><slot></slot></samp>`;
|
|
3401
|
+
default:
|
|
3402
|
+
return html11`<div class=${classMap10(classes)}><slot></slot></div>`;
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
};
|
|
3406
|
+
__decorateClass([
|
|
3407
|
+
property12({ type: String })
|
|
3408
|
+
], CsBoxInternal.prototype, "variant", 2);
|
|
3409
|
+
__decorateClass([
|
|
3410
|
+
property12({ type: String })
|
|
3411
|
+
], CsBoxInternal.prototype, "tagOverride", 2);
|
|
3412
|
+
__decorateClass([
|
|
3413
|
+
property12({ type: String, reflect: true })
|
|
3414
|
+
], CsBoxInternal.prototype, "display", 2);
|
|
3415
|
+
__decorateClass([
|
|
3416
|
+
property12({ attribute: false })
|
|
3417
|
+
], CsBoxInternal.prototype, "margin", 2);
|
|
3418
|
+
__decorateClass([
|
|
3419
|
+
property12({ attribute: false })
|
|
3420
|
+
], CsBoxInternal.prototype, "padding", 2);
|
|
3421
|
+
__decorateClass([
|
|
3422
|
+
property12({ type: String })
|
|
3423
|
+
], CsBoxInternal.prototype, "textAlign", 2);
|
|
3424
|
+
__decorateClass([
|
|
3425
|
+
property12({ type: String })
|
|
3426
|
+
], CsBoxInternal.prototype, "float", 2);
|
|
3427
|
+
__decorateClass([
|
|
3428
|
+
property12({ type: String })
|
|
3429
|
+
], CsBoxInternal.prototype, "fontSize", 2);
|
|
3430
|
+
__decorateClass([
|
|
3431
|
+
property12({ type: String })
|
|
3432
|
+
], CsBoxInternal.prototype, "fontWeight", 2);
|
|
3433
|
+
__decorateClass([
|
|
3434
|
+
property12({ type: String })
|
|
3435
|
+
], CsBoxInternal.prototype, "color", 2);
|
|
3436
|
+
|
|
3437
|
+
// src/box/index.ts
|
|
3438
|
+
var CsBox = class extends CsBoxInternal {
|
|
3439
|
+
};
|
|
3440
|
+
customElements.define("cs-box", CsBox);
|
|
3441
|
+
|
|
3442
|
+
// src/grid/internal.ts
|
|
3443
|
+
import { css as css26, html as html12, LitElement as LitElement12 } from "lit";
|
|
3444
|
+
import { property as property13, state } from "lit/decorators.js";
|
|
3445
|
+
import { classMap as classMap11 } from "lit/directives/class-map.js";
|
|
3446
|
+
|
|
3447
|
+
// src/grid/styles.ts
|
|
3448
|
+
import { css as css25 } from "lit";
|
|
3449
|
+
var componentStyles11 = css25`
|
|
3450
|
+
.grid {
|
|
3451
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
3452
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
3453
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
3454
|
+
font-weight: 400;
|
|
3455
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3456
|
+
-webkit-font-smoothing: auto;
|
|
3457
|
+
-moz-osx-font-smoothing: auto;
|
|
3458
|
+
display: flex;
|
|
3459
|
+
flex-wrap: wrap;
|
|
3460
|
+
margin-block: calc(var(--space-grid-gutter-whc3jp, 20px) / -2);
|
|
3461
|
+
margin-inline: calc(var(--space-grid-gutter-whc3jp, 20px) / -2);
|
|
3462
|
+
pointer-events: none;
|
|
3463
|
+
}
|
|
3464
|
+
.grid.no-gutters {
|
|
3465
|
+
margin-block: 0;
|
|
3466
|
+
margin-inline: 0;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
.grid-column {
|
|
3470
|
+
box-sizing: border-box;
|
|
3471
|
+
position: relative;
|
|
3472
|
+
padding-block: calc(var(--space-grid-gutter-whc3jp, 20px) / 2);
|
|
3473
|
+
padding-inline: calc(var(--space-grid-gutter-whc3jp, 20px) / 2);
|
|
3474
|
+
display: flex;
|
|
3475
|
+
}
|
|
3476
|
+
.grid.no-gutters > .grid-column {
|
|
3477
|
+
padding-block: 0;
|
|
3478
|
+
padding-inline: 0;
|
|
3479
|
+
}
|
|
3480
|
+
.grid-column.colspan-1 {
|
|
3481
|
+
flex: 0 0 8.3333333333%;
|
|
3482
|
+
max-inline-size: 8.3333333333%;
|
|
3483
|
+
}
|
|
3484
|
+
.grid-column.push-1 {
|
|
3485
|
+
inset-inline-start: 8.3333333333%;
|
|
3486
|
+
}
|
|
3487
|
+
.grid-column.pull-1 {
|
|
3488
|
+
inset-inline-end: 8.3333333333%;
|
|
3489
|
+
}
|
|
3490
|
+
.grid-column.colspan-2 {
|
|
3491
|
+
flex: 0 0 16.6666666667%;
|
|
3492
|
+
max-inline-size: 16.6666666667%;
|
|
3493
|
+
}
|
|
3494
|
+
.grid-column.push-2 {
|
|
3495
|
+
inset-inline-start: 16.6666666667%;
|
|
3496
|
+
}
|
|
3497
|
+
.grid-column.pull-2 {
|
|
3498
|
+
inset-inline-end: 16.6666666667%;
|
|
3499
|
+
}
|
|
3500
|
+
.grid-column.colspan-3 {
|
|
3501
|
+
flex: 0 0 25%;
|
|
3502
|
+
max-inline-size: 25%;
|
|
3503
|
+
}
|
|
3504
|
+
.grid-column.push-3 {
|
|
3505
|
+
inset-inline-start: 25%;
|
|
3506
|
+
}
|
|
3507
|
+
.grid-column.pull-3 {
|
|
3508
|
+
inset-inline-end: 25%;
|
|
3509
|
+
}
|
|
3510
|
+
.grid-column.colspan-4 {
|
|
3511
|
+
flex: 0 0 33.3333333333%;
|
|
3512
|
+
max-inline-size: 33.3333333333%;
|
|
3513
|
+
}
|
|
3514
|
+
.grid-column.push-4 {
|
|
3515
|
+
inset-inline-start: 33.3333333333%;
|
|
3516
|
+
}
|
|
3517
|
+
.grid-column.pull-4 {
|
|
3518
|
+
inset-inline-end: 33.3333333333%;
|
|
3519
|
+
}
|
|
3520
|
+
.grid-column.colspan-5 {
|
|
3521
|
+
flex: 0 0 41.6666666667%;
|
|
3522
|
+
max-inline-size: 41.6666666667%;
|
|
3523
|
+
}
|
|
3524
|
+
.grid-column.push-5 {
|
|
3525
|
+
inset-inline-start: 41.6666666667%;
|
|
3526
|
+
}
|
|
3527
|
+
.grid-column.pull-5 {
|
|
3528
|
+
inset-inline-end: 41.6666666667%;
|
|
3529
|
+
}
|
|
3530
|
+
.grid-column.colspan-6 {
|
|
3531
|
+
flex: 0 0 50%;
|
|
3532
|
+
max-inline-size: 50%;
|
|
3533
|
+
}
|
|
3534
|
+
.grid-column.push-6 {
|
|
3535
|
+
inset-inline-start: 50%;
|
|
3536
|
+
}
|
|
3537
|
+
.grid-column.pull-6 {
|
|
3538
|
+
inset-inline-end: 50%;
|
|
3539
|
+
}
|
|
3540
|
+
.grid-column.colspan-7 {
|
|
3541
|
+
flex: 0 0 58.3333333333%;
|
|
3542
|
+
max-inline-size: 58.3333333333%;
|
|
3543
|
+
}
|
|
3544
|
+
.grid-column.push-7 {
|
|
3545
|
+
inset-inline-start: 58.3333333333%;
|
|
3546
|
+
}
|
|
3547
|
+
.grid-column.pull-7 {
|
|
3548
|
+
inset-inline-end: 58.3333333333%;
|
|
3549
|
+
}
|
|
3550
|
+
.grid-column.colspan-8 {
|
|
3551
|
+
flex: 0 0 66.6666666667%;
|
|
3552
|
+
max-inline-size: 66.6666666667%;
|
|
3553
|
+
}
|
|
3554
|
+
.grid-column.push-8 {
|
|
3555
|
+
inset-inline-start: 66.6666666667%;
|
|
3556
|
+
}
|
|
3557
|
+
.grid-column.pull-8 {
|
|
3558
|
+
inset-inline-end: 66.6666666667%;
|
|
3559
|
+
}
|
|
3560
|
+
.grid-column.colspan-9 {
|
|
3561
|
+
flex: 0 0 75%;
|
|
3562
|
+
max-inline-size: 75%;
|
|
3563
|
+
}
|
|
3564
|
+
.grid-column.push-9 {
|
|
3565
|
+
inset-inline-start: 75%;
|
|
3566
|
+
}
|
|
3567
|
+
.grid-column.pull-9 {
|
|
3568
|
+
inset-inline-end: 75%;
|
|
3569
|
+
}
|
|
3570
|
+
.grid-column.colspan-10 {
|
|
3571
|
+
flex: 0 0 83.3333333333%;
|
|
3572
|
+
max-inline-size: 83.3333333333%;
|
|
3573
|
+
}
|
|
3574
|
+
.grid-column.push-10 {
|
|
3575
|
+
inset-inline-start: 83.3333333333%;
|
|
3576
|
+
}
|
|
3577
|
+
.grid-column.pull-10 {
|
|
3578
|
+
inset-inline-end: 83.3333333333%;
|
|
3579
|
+
}
|
|
3580
|
+
.grid-column.colspan-11 {
|
|
3581
|
+
flex: 0 0 91.6666666667%;
|
|
3582
|
+
max-inline-size: 91.6666666667%;
|
|
3583
|
+
}
|
|
3584
|
+
.grid-column.push-11 {
|
|
3585
|
+
inset-inline-start: 91.6666666667%;
|
|
3586
|
+
}
|
|
3587
|
+
.grid-column.pull-11 {
|
|
3588
|
+
inset-inline-end: 91.6666666667%;
|
|
3589
|
+
}
|
|
3590
|
+
.grid-column.colspan-12 {
|
|
3591
|
+
flex: 0 0 100%;
|
|
3592
|
+
max-inline-size: 100%;
|
|
3593
|
+
}
|
|
3594
|
+
.grid-column.push-12 {
|
|
3595
|
+
inset-inline-start: 100%;
|
|
3596
|
+
}
|
|
3597
|
+
.grid-column.pull-12 {
|
|
3598
|
+
inset-inline-end: 100%;
|
|
3599
|
+
}
|
|
3600
|
+
.grid-column.push-0 {
|
|
3601
|
+
inset-inline-start: auto;
|
|
3602
|
+
}
|
|
3603
|
+
.grid-column.pull-0 {
|
|
3604
|
+
inset-inline-end: auto;
|
|
3605
|
+
}
|
|
3606
|
+
.grid-column.offset-1 {
|
|
3607
|
+
margin-inline-start: 8.3333333333%;
|
|
3608
|
+
}
|
|
3609
|
+
.grid-column.offset-2 {
|
|
3610
|
+
margin-inline-start: 16.6666666667%;
|
|
3611
|
+
}
|
|
3612
|
+
.grid-column.offset-3 {
|
|
3613
|
+
margin-inline-start: 25%;
|
|
3614
|
+
}
|
|
3615
|
+
.grid-column.offset-4 {
|
|
3616
|
+
margin-inline-start: 33.3333333333%;
|
|
3617
|
+
}
|
|
3618
|
+
.grid-column.offset-5 {
|
|
3619
|
+
margin-inline-start: 41.6666666667%;
|
|
3620
|
+
}
|
|
3621
|
+
.grid-column.offset-6 {
|
|
3622
|
+
margin-inline-start: 50%;
|
|
3623
|
+
}
|
|
3624
|
+
.grid-column.offset-7 {
|
|
3625
|
+
margin-inline-start: 58.3333333333%;
|
|
3626
|
+
}
|
|
3627
|
+
.grid-column.offset-8 {
|
|
3628
|
+
margin-inline-start: 66.6666666667%;
|
|
3629
|
+
}
|
|
3630
|
+
.grid-column.offset-9 {
|
|
3631
|
+
margin-inline-start: 75%;
|
|
3632
|
+
}
|
|
3633
|
+
.grid-column.offset-10 {
|
|
3634
|
+
margin-inline-start: 83.3333333333%;
|
|
3635
|
+
}
|
|
3636
|
+
.grid-column.offset-11 {
|
|
3637
|
+
margin-inline-start: 91.6666666667%;
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
.restore-pointer-events {
|
|
3641
|
+
pointer-events: auto;
|
|
3642
|
+
inline-size: 100%;
|
|
3643
|
+
}
|
|
3644
|
+
`;
|
|
3645
|
+
|
|
3646
|
+
// src/grid/internal.ts
|
|
3647
|
+
function resolveNumericValue(value, defaultValue) {
|
|
3648
|
+
if (value === void 0) return defaultValue;
|
|
3649
|
+
if (typeof value === "number") return value;
|
|
3650
|
+
return value.default ?? defaultValue;
|
|
3651
|
+
}
|
|
3652
|
+
var hostStyles11 = css26`:host { display: block; }`;
|
|
3653
|
+
var CsGridInternal = class extends LitElement12 {
|
|
3654
|
+
constructor() {
|
|
3655
|
+
super(...arguments);
|
|
3656
|
+
this.disableGutters = false;
|
|
3657
|
+
this._childCount = 0;
|
|
3658
|
+
this._slotRef = null;
|
|
3659
|
+
this._onSlotChange = () => {
|
|
3660
|
+
if (!this._slotRef) return;
|
|
3661
|
+
const assigned = this._slotRef.assignedElements({ flatten: true });
|
|
3662
|
+
this._childCount = assigned.length;
|
|
3663
|
+
this._applyGridStyles(assigned);
|
|
3664
|
+
};
|
|
3665
|
+
}
|
|
3666
|
+
static {
|
|
3667
|
+
this.styles = [sharedStyles, componentStyles11, hostStyles11];
|
|
3668
|
+
}
|
|
3669
|
+
firstUpdated() {
|
|
3670
|
+
this._slotRef = this.renderRoot.querySelector("slot");
|
|
3671
|
+
if (this._slotRef) {
|
|
3672
|
+
this._slotRef.addEventListener("slotchange", this._onSlotChange);
|
|
3673
|
+
this._onSlotChange();
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
updated() {
|
|
3677
|
+
if (this._slotRef) {
|
|
3678
|
+
const assigned = this._slotRef.assignedElements({ flatten: true });
|
|
3679
|
+
this._applyGridStyles(assigned);
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
disconnectedCallback() {
|
|
3683
|
+
super.disconnectedCallback();
|
|
3684
|
+
if (this._slotRef) {
|
|
3685
|
+
this._slotRef.removeEventListener("slotchange", this._onSlotChange);
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
_applyGridStyles(children) {
|
|
3689
|
+
const defs = this.gridDefinition ?? [];
|
|
3690
|
+
children.forEach((child, index) => {
|
|
3691
|
+
const def = defs[index];
|
|
3692
|
+
const el = child;
|
|
3693
|
+
if (!def) {
|
|
3694
|
+
el.style.gridColumn = "";
|
|
3695
|
+
return;
|
|
3696
|
+
}
|
|
3697
|
+
const colspan = resolveNumericValue(def.colspan, 12);
|
|
3698
|
+
const offset = resolveNumericValue(def.offset, 0);
|
|
3699
|
+
if (offset > 0) {
|
|
3700
|
+
el.style.gridColumn = `${offset + 1} / span ${colspan}`;
|
|
3701
|
+
} else {
|
|
3702
|
+
el.style.gridColumn = `span ${colspan}`;
|
|
3703
|
+
}
|
|
3704
|
+
});
|
|
3705
|
+
}
|
|
3706
|
+
render() {
|
|
3707
|
+
void this._childCount;
|
|
3708
|
+
const classes = {
|
|
3709
|
+
"grid": true,
|
|
3710
|
+
"no-gutters": this.disableGutters
|
|
3711
|
+
};
|
|
3712
|
+
return html12`
|
|
3713
|
+
<div class=${classMap11(classes)}>
|
|
3714
|
+
<slot></slot>
|
|
3715
|
+
</div>
|
|
3716
|
+
`;
|
|
3717
|
+
}
|
|
3718
|
+
};
|
|
3719
|
+
__decorateClass([
|
|
3720
|
+
property13({ attribute: false })
|
|
3721
|
+
], CsGridInternal.prototype, "gridDefinition", 2);
|
|
3722
|
+
__decorateClass([
|
|
3723
|
+
property13({ type: Boolean })
|
|
3724
|
+
], CsGridInternal.prototype, "disableGutters", 2);
|
|
3725
|
+
__decorateClass([
|
|
3726
|
+
state()
|
|
3727
|
+
], CsGridInternal.prototype, "_childCount", 2);
|
|
3728
|
+
|
|
3729
|
+
// src/grid/index.ts
|
|
3730
|
+
var CsGrid = class extends CsGridInternal {
|
|
3731
|
+
};
|
|
3732
|
+
customElements.define("cs-grid", CsGrid);
|
|
3733
|
+
|
|
3734
|
+
// src/space-between/internal.ts
|
|
3735
|
+
import { css as css28, html as html13, LitElement as LitElement13 } from "lit";
|
|
3736
|
+
import { property as property14 } from "lit/decorators.js";
|
|
3737
|
+
import { classMap as classMap12 } from "lit/directives/class-map.js";
|
|
3738
|
+
|
|
3739
|
+
// src/space-between/styles.ts
|
|
3740
|
+
import { css as css27 } from "lit";
|
|
3741
|
+
var componentStyles12 = css27`
|
|
3742
|
+
.root {
|
|
3743
|
+
display: flex;
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3746
|
+
.child:empty {
|
|
3747
|
+
display: none;
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
/*
|
|
3751
|
+
* Horizontal variant
|
|
3752
|
+
*/
|
|
3753
|
+
.horizontal {
|
|
3754
|
+
flex-direction: row;
|
|
3755
|
+
flex-wrap: wrap;
|
|
3756
|
+
}
|
|
3757
|
+
.horizontal-xxxs {
|
|
3758
|
+
gap: var(--space-xxxs-pajhad, 2px);
|
|
3759
|
+
}
|
|
3760
|
+
.horizontal-xxs {
|
|
3761
|
+
gap: var(--space-xxs-hwfkai, 4px);
|
|
3762
|
+
}
|
|
3763
|
+
.horizontal-xs {
|
|
3764
|
+
gap: var(--space-xs-ymlm0b, 8px);
|
|
3765
|
+
}
|
|
3766
|
+
.horizontal-s {
|
|
3767
|
+
gap: var(--space-s-tvghoh, 12px);
|
|
3768
|
+
}
|
|
3769
|
+
.horizontal-m {
|
|
3770
|
+
gap: var(--space-m-dsumyt, 16px);
|
|
3771
|
+
}
|
|
3772
|
+
.horizontal-l {
|
|
3773
|
+
gap: var(--space-l-2ud1p3, 20px);
|
|
3774
|
+
}
|
|
3775
|
+
.horizontal-xl {
|
|
3776
|
+
gap: var(--space-xl-jfy3x4, 24px);
|
|
3777
|
+
}
|
|
3778
|
+
.horizontal-xxl {
|
|
3779
|
+
gap: var(--space-xxl-32srm4, 32px);
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
/*
|
|
3783
|
+
* Vertical variant
|
|
3784
|
+
*/
|
|
3785
|
+
.vertical {
|
|
3786
|
+
flex-direction: column;
|
|
3787
|
+
}
|
|
3788
|
+
.vertical-xxxs {
|
|
3789
|
+
row-gap: var(--space-xxxs-pajhad, 2px);
|
|
3790
|
+
}
|
|
3791
|
+
.vertical-xxs {
|
|
3792
|
+
row-gap: var(--space-xxs-hwfkai, 4px);
|
|
3793
|
+
}
|
|
3794
|
+
.vertical-xs {
|
|
3795
|
+
row-gap: var(--space-xs-ymlm0b, 8px);
|
|
3796
|
+
}
|
|
3797
|
+
.vertical-s {
|
|
3798
|
+
row-gap: var(--space-scaled-s-8ozaad, 12px);
|
|
3799
|
+
}
|
|
3800
|
+
.vertical-m {
|
|
3801
|
+
row-gap: var(--space-scaled-m-m892r9, 16px);
|
|
3802
|
+
}
|
|
3803
|
+
.vertical-l {
|
|
3804
|
+
row-gap: var(--space-scaled-l-sej05l, 20px);
|
|
3805
|
+
}
|
|
3806
|
+
.vertical-xl {
|
|
3807
|
+
row-gap: var(--space-scaled-xl-dunxp5, 24px);
|
|
3808
|
+
}
|
|
3809
|
+
.vertical-xxl {
|
|
3810
|
+
row-gap: var(--space-scaled-xxl-6wgq96, 32px);
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
.align-center {
|
|
3814
|
+
align-items: center;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
.align-start {
|
|
3818
|
+
align-items: start;
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
.align-end {
|
|
3822
|
+
align-items: end;
|
|
3823
|
+
}
|
|
3824
|
+
`;
|
|
3825
|
+
|
|
3826
|
+
// src/space-between/internal.ts
|
|
3827
|
+
var hostStyles12 = css28`:host { display: block; }`;
|
|
3828
|
+
var CsSpaceBetweenInternal = class extends LitElement13 {
|
|
3829
|
+
constructor() {
|
|
3830
|
+
super(...arguments);
|
|
3831
|
+
this.direction = "vertical";
|
|
3832
|
+
this.size = "s";
|
|
3833
|
+
}
|
|
3834
|
+
static {
|
|
3835
|
+
this.styles = [sharedStyles, componentStyles12, hostStyles12];
|
|
3836
|
+
}
|
|
3837
|
+
render() {
|
|
3838
|
+
const classes = {
|
|
3839
|
+
"root": true,
|
|
3840
|
+
[this.direction]: true,
|
|
3841
|
+
[`${this.direction}-${this.size}`]: true,
|
|
3842
|
+
"align-center": this.alignItems === "center",
|
|
3843
|
+
"align-start": this.alignItems === "start",
|
|
3844
|
+
"align-end": this.alignItems === "end"
|
|
3845
|
+
};
|
|
3846
|
+
return html13`
|
|
3847
|
+
<div class=${classMap12(classes)}>
|
|
3848
|
+
<slot></slot>
|
|
3849
|
+
</div>
|
|
3850
|
+
`;
|
|
3851
|
+
}
|
|
3852
|
+
};
|
|
3853
|
+
__decorateClass([
|
|
3854
|
+
property14({ type: String })
|
|
3855
|
+
], CsSpaceBetweenInternal.prototype, "direction", 2);
|
|
3856
|
+
__decorateClass([
|
|
3857
|
+
property14({ type: String })
|
|
3858
|
+
], CsSpaceBetweenInternal.prototype, "size", 2);
|
|
3859
|
+
__decorateClass([
|
|
3860
|
+
property14({ type: String })
|
|
3861
|
+
], CsSpaceBetweenInternal.prototype, "alignItems", 2);
|
|
3862
|
+
|
|
3863
|
+
// src/space-between/index.ts
|
|
3864
|
+
var CsSpaceBetween = class extends CsSpaceBetweenInternal {
|
|
3865
|
+
};
|
|
3866
|
+
customElements.define("cs-space-between", CsSpaceBetween);
|
|
3867
|
+
|
|
3868
|
+
// src/text-content/internal.ts
|
|
3869
|
+
import { css as css30, html as html14, LitElement as LitElement14 } from "lit";
|
|
3870
|
+
|
|
3871
|
+
// src/text-content/styles.ts
|
|
3872
|
+
import { css as css29 } from "lit";
|
|
3873
|
+
var componentStyles13 = css29`
|
|
3874
|
+
.text-content {
|
|
3875
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
3876
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
3877
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
3878
|
+
font-weight: 400;
|
|
3879
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3880
|
+
-webkit-font-smoothing: auto;
|
|
3881
|
+
-moz-osx-font-smoothing: auto;
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
}
|
|
3885
|
+
.text-content h1,
|
|
3886
|
+
.text-content h2,
|
|
3887
|
+
.text-content h3,
|
|
3888
|
+
.text-content h4,
|
|
3889
|
+
.text-content h5,
|
|
3890
|
+
.text-content p {
|
|
3891
|
+
font-family: inherit;
|
|
3892
|
+
font-weight: normal;
|
|
3893
|
+
text-decoration: none;
|
|
3894
|
+
margin-block: 0;
|
|
3895
|
+
margin-inline: 0;
|
|
3896
|
+
padding-block: var(--space-xxs-hwfkai, 4px);
|
|
3897
|
+
padding-inline: 0;
|
|
3898
|
+
}
|
|
3899
|
+
.text-content h1,
|
|
3900
|
+
.text-content h2,
|
|
3901
|
+
.text-content h3,
|
|
3902
|
+
.text-content h4,
|
|
3903
|
+
.text-content h5 {
|
|
3904
|
+
color: var(--color-text-heading-default-izpp46, #0f141a);
|
|
3905
|
+
}
|
|
3906
|
+
.text-content h1 {
|
|
3907
|
+
font-family: var(--font-family-heading-ugphat, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3908
|
+
font-size: var(--font-size-heading-xl-wvkbur, 24px);
|
|
3909
|
+
line-height: var(--line-height-heading-xl-hko6p0, 30px);
|
|
3910
|
+
letter-spacing: var(--letter-spacing-heading-xl-ckkb6u, -0.02em);
|
|
3911
|
+
font-weight: var(--font-weight-heading-xl-u3m4we, 700);
|
|
3912
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
3913
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
3914
|
+
}
|
|
3915
|
+
.text-content h2 {
|
|
3916
|
+
font-family: var(--font-family-heading-ugphat, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3917
|
+
font-size: var(--font-size-heading-l-vnacx6, 20px);
|
|
3918
|
+
line-height: var(--line-height-heading-l-mg5bx6, 24px);
|
|
3919
|
+
letter-spacing: var(--letter-spacing-heading-l-5v6ibv, -0.015em);
|
|
3920
|
+
font-weight: var(--font-weight-heading-l-0t6dwc, 700);
|
|
3921
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
3922
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
3923
|
+
}
|
|
3924
|
+
.text-content h3 {
|
|
3925
|
+
font-family: var(--font-family-heading-ugphat, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3926
|
+
font-size: var(--font-size-heading-m-170yiy, 18px);
|
|
3927
|
+
line-height: var(--line-height-heading-m-uoaqdh, 22px);
|
|
3928
|
+
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
3929
|
+
font-weight: var(--font-weight-heading-m-zf82dr, 700);
|
|
3930
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
3931
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
3932
|
+
}
|
|
3933
|
+
.text-content h4 {
|
|
3934
|
+
font-family: var(--font-family-heading-ugphat, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3935
|
+
font-size: var(--font-size-heading-s-zp08en, 16px);
|
|
3936
|
+
line-height: var(--line-height-heading-s-hmi4vc, 20px);
|
|
3937
|
+
letter-spacing: var(--letter-spacing-heading-s-4st9ep, -0.005em);
|
|
3938
|
+
font-weight: var(--font-weight-heading-s-lcx0ai, 700);
|
|
3939
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
3940
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
3941
|
+
}
|
|
3942
|
+
.text-content h5 {
|
|
3943
|
+
font-family: var(--font-family-heading-ugphat, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
3944
|
+
font-size: var(--font-size-heading-xs-j8yzxv, 14px);
|
|
3945
|
+
line-height: var(--line-height-heading-xs-q9j004, 18px);
|
|
3946
|
+
letter-spacing: var(--letter-spacing-heading-xs-fgog7a, normal);
|
|
3947
|
+
font-weight: var(--font-weight-heading-xs-wqqpne, 700);
|
|
3948
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
3949
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
3950
|
+
}
|
|
3951
|
+
.text-content b,
|
|
3952
|
+
.text-content strong {
|
|
3953
|
+
font-weight: 700;
|
|
3954
|
+
}
|
|
3955
|
+
.text-content p {
|
|
3956
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
3957
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
3958
|
+
color: inherit;
|
|
3959
|
+
}
|
|
3960
|
+
.text-content small {
|
|
3961
|
+
display: inline-block;
|
|
3962
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
3963
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
3964
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
3965
|
+
color: var(--color-text-small-m1tr70, #656871);
|
|
3966
|
+
}
|
|
3967
|
+
.text-content small a {
|
|
3968
|
+
font-size: inherit;
|
|
3969
|
+
text-underline-offset: 0.25em;
|
|
3970
|
+
text-decoration-thickness: 1px;
|
|
3971
|
+
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-hude44, #006ce0));
|
|
3972
|
+
font-weight: inherit;
|
|
3973
|
+
letter-spacing: normal;
|
|
3974
|
+
text-decoration-line: underline;
|
|
3975
|
+
text-decoration-color: currentColor;
|
|
3976
|
+
transition-property: color, -webkit-text-decoration;
|
|
3977
|
+
transition-property: color, text-decoration;
|
|
3978
|
+
transition-property: color, text-decoration, -webkit-text-decoration;
|
|
3979
|
+
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
3980
|
+
}
|
|
3981
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3982
|
+
.text-content small a {
|
|
3983
|
+
animation: none;
|
|
3984
|
+
transition: none;
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
.awsui-motion-disabled .text-content small a, .awsui-mode-entering .text-content small a {
|
|
3988
|
+
animation: none;
|
|
3989
|
+
transition: none;
|
|
3990
|
+
}
|
|
3991
|
+
.text-content small a:hover {
|
|
3992
|
+
cursor: pointer;
|
|
3993
|
+
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
3994
|
+
}
|
|
3995
|
+
.text-content small a:focus {
|
|
3996
|
+
outline: none;
|
|
3997
|
+
}
|
|
3998
|
+
.text-content small a:active {
|
|
3999
|
+
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
4000
|
+
}
|
|
4001
|
+
.text-content small a:active, .text-content small a:focus, .text-content small a:hover {
|
|
4002
|
+
text-decoration-line: underline;
|
|
4003
|
+
text-decoration-color: currentColor;
|
|
4004
|
+
}
|
|
4005
|
+
.text-content code,
|
|
4006
|
+
.text-content pre,
|
|
4007
|
+
.text-content samp {
|
|
4008
|
+
font-family: var(--font-family-monospace-q47m7k, Monaco, Menlo, Consolas, "Courier Prime", Courier, "Courier New", monospace);
|
|
4009
|
+
background: transparent;
|
|
4010
|
+
}
|
|
4011
|
+
.text-content code {
|
|
4012
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
4013
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
4014
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
4015
|
+
}
|
|
4016
|
+
.text-content a {
|
|
4017
|
+
text-underline-offset: 0.25em;
|
|
4018
|
+
text-decoration-thickness: 1px;
|
|
4019
|
+
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-hude44, #006ce0));
|
|
4020
|
+
font-weight: inherit;
|
|
4021
|
+
letter-spacing: normal;
|
|
4022
|
+
text-decoration-line: underline;
|
|
4023
|
+
text-decoration-color: currentColor;
|
|
4024
|
+
transition-property: color, -webkit-text-decoration;
|
|
4025
|
+
transition-property: color, text-decoration;
|
|
4026
|
+
transition-property: color, text-decoration, -webkit-text-decoration;
|
|
4027
|
+
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
4028
|
+
}
|
|
4029
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4030
|
+
.text-content a {
|
|
4031
|
+
animation: none;
|
|
4032
|
+
transition: none;
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
.awsui-motion-disabled .text-content a, .awsui-mode-entering .text-content a {
|
|
4036
|
+
animation: none;
|
|
4037
|
+
transition: none;
|
|
4038
|
+
}
|
|
4039
|
+
.text-content a:hover {
|
|
4040
|
+
cursor: pointer;
|
|
4041
|
+
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
4042
|
+
}
|
|
4043
|
+
.text-content a:focus {
|
|
4044
|
+
outline: none;
|
|
4045
|
+
}
|
|
4046
|
+
.text-content a:active {
|
|
4047
|
+
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-2hfec2, #002b66));
|
|
4048
|
+
}
|
|
4049
|
+
.text-content a:active, .text-content a:focus, .text-content a:hover {
|
|
4050
|
+
text-decoration-line: underline;
|
|
4051
|
+
text-decoration-color: currentColor;
|
|
4052
|
+
}
|
|
4053
|
+
.text-content a:focus {
|
|
4054
|
+
outline: thin dotted;
|
|
4055
|
+
outline: var(--border-link-focus-ring-outline-1p0hnu, 0);
|
|
4056
|
+
outline-offset: 2px;
|
|
4057
|
+
outline-color: var(--color-border-item-focused-uk47pl, #006ce0);
|
|
4058
|
+
border-start-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4059
|
+
border-start-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4060
|
+
border-end-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4061
|
+
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4062
|
+
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-39uvxr, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
4063
|
+
}
|
|
4064
|
+
.text-content ul,
|
|
4065
|
+
.text-content ol {
|
|
4066
|
+
padding-inline-start: var(--space-l-2ud1p3, 20px);
|
|
4067
|
+
margin-block: var(--space-scaled-xs-xwoogq, 8px);
|
|
4068
|
+
margin-inline: 0;
|
|
4069
|
+
list-style-position: outside;
|
|
4070
|
+
}
|
|
4071
|
+
.text-content ul + ul,
|
|
4072
|
+
.text-content ul + ol,
|
|
4073
|
+
.text-content ul > li + ul,
|
|
4074
|
+
.text-content ul > li + li,
|
|
4075
|
+
.text-content ul > li + ol,
|
|
4076
|
+
.text-content ul > li > ul,
|
|
4077
|
+
.text-content ul > li > ol,
|
|
4078
|
+
.text-content ol + ul,
|
|
4079
|
+
.text-content ol + ol,
|
|
4080
|
+
.text-content ol > li + ul,
|
|
4081
|
+
.text-content ol > li + li,
|
|
4082
|
+
.text-content ol > li + ol,
|
|
4083
|
+
.text-content ol > li > ul,
|
|
4084
|
+
.text-content ol > li > ol {
|
|
4085
|
+
padding-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
4086
|
+
}
|
|
4087
|
+
.text-content ul > li > ul,
|
|
4088
|
+
.text-content ul > li > ol,
|
|
4089
|
+
.text-content ol > li > ul,
|
|
4090
|
+
.text-content ol > li > ol {
|
|
4091
|
+
margin-block: 0;
|
|
4092
|
+
margin-inline: 0;
|
|
4093
|
+
}
|
|
4094
|
+
`;
|
|
4095
|
+
|
|
4096
|
+
// src/text-content/internal.ts
|
|
4097
|
+
var hostStyles13 = css30`:host { display: block; }`;
|
|
4098
|
+
var CsTextContentInternal = class extends LitElement14 {
|
|
4099
|
+
static {
|
|
4100
|
+
this.styles = [sharedStyles, componentStyles13, hostStyles13];
|
|
4101
|
+
}
|
|
4102
|
+
render() {
|
|
4103
|
+
return html14`
|
|
4104
|
+
<div class="text-content">
|
|
4105
|
+
<slot></slot>
|
|
4106
|
+
</div>
|
|
4107
|
+
`;
|
|
4108
|
+
}
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
// src/text-content/index.ts
|
|
4112
|
+
var CsTextContent = class extends CsTextContentInternal {
|
|
4113
|
+
};
|
|
4114
|
+
customElements.define("cs-text-content", CsTextContent);
|
|
4115
|
+
|
|
4116
|
+
// src/file-dropzone/internal.ts
|
|
4117
|
+
import { css as css32, html as html15, LitElement as LitElement15 } from "lit";
|
|
4118
|
+
import { state as state2 } from "lit/decorators.js";
|
|
4119
|
+
import { classMap as classMap13 } from "lit/directives/class-map.js";
|
|
4120
|
+
|
|
4121
|
+
// src/file-dropzone/styles.ts
|
|
4122
|
+
import { css as css31 } from "lit";
|
|
4123
|
+
var componentStyles14 = css31`
|
|
4124
|
+
.root {
|
|
4125
|
+
padding-block: var(--space-static-l-n53k41, 20px);
|
|
4126
|
+
padding-inline: var(--space-static-l-n53k41, 20px);
|
|
4127
|
+
border-start-start-radius: var(--border-radius-dropzone-eklq14, 12px);
|
|
4128
|
+
border-start-end-radius: var(--border-radius-dropzone-eklq14, 12px);
|
|
4129
|
+
border-end-start-radius: var(--border-radius-dropzone-eklq14, 12px);
|
|
4130
|
+
border-end-end-radius: var(--border-radius-dropzone-eklq14, 12px);
|
|
4131
|
+
color: var(--color-dropzone-text-default-djdnme, #424650);
|
|
4132
|
+
background-color: var(--color-dropzone-background-default-7efhmb, #ffffff);
|
|
4133
|
+
border-color: var(--color-dropzone-border-default-k648ha, #8c8c94);
|
|
4134
|
+
border-block: 1px dashed var(--color-dropzone-border-default-k648ha, #8c8c94);
|
|
4135
|
+
border-inline: 1px dashed var(--color-dropzone-border-default-k648ha, #8c8c94);
|
|
4136
|
+
}
|
|
4137
|
+
.root.hovered {
|
|
4138
|
+
color: var(--color-dropzone-text-hover-asw3rt, #424650);
|
|
4139
|
+
background-color: var(--color-dropzone-background-hover-mi8rlm, #f0fbff);
|
|
4140
|
+
border-block: 1px dashed var(--color-dropzone-border-hover-otpag5, #002b66);
|
|
4141
|
+
border-inline: 1px dashed var(--color-dropzone-border-hover-otpag5, #002b66);
|
|
4142
|
+
}
|
|
4143
|
+
|
|
4144
|
+
.content {
|
|
4145
|
+
display: flex;
|
|
4146
|
+
flex-direction: column;
|
|
4147
|
+
gap: var(--space-static-xxs-ns94dp, 4px);
|
|
4148
|
+
align-items: center;
|
|
4149
|
+
justify-content: center;
|
|
4150
|
+
}
|
|
4151
|
+
`;
|
|
4152
|
+
|
|
4153
|
+
// src/file-dropzone/internal.ts
|
|
4154
|
+
var hostStyles14 = css32`:host { display: block; }`;
|
|
4155
|
+
var CsFileDropzoneInternal = class extends LitElement15 {
|
|
4156
|
+
constructor() {
|
|
4157
|
+
super(...arguments);
|
|
4158
|
+
this._isDragging = false;
|
|
4159
|
+
this._dragCounter = 0;
|
|
4160
|
+
this._onDragEnter = (e) => {
|
|
4161
|
+
e.preventDefault();
|
|
4162
|
+
e.stopPropagation();
|
|
4163
|
+
this._dragCounter++;
|
|
4164
|
+
if (this._hasDragFiles(e)) {
|
|
4165
|
+
this._isDragging = true;
|
|
4166
|
+
}
|
|
4167
|
+
};
|
|
4168
|
+
this._onDragOver = (e) => {
|
|
4169
|
+
e.preventDefault();
|
|
4170
|
+
e.stopPropagation();
|
|
4171
|
+
};
|
|
4172
|
+
this._onDragLeave = (e) => {
|
|
4173
|
+
e.preventDefault();
|
|
4174
|
+
e.stopPropagation();
|
|
4175
|
+
this._dragCounter--;
|
|
4176
|
+
if (this._dragCounter <= 0) {
|
|
4177
|
+
this._dragCounter = 0;
|
|
4178
|
+
this._isDragging = false;
|
|
4179
|
+
}
|
|
4180
|
+
};
|
|
4181
|
+
this._onDrop = (e) => {
|
|
4182
|
+
e.preventDefault();
|
|
4183
|
+
e.stopPropagation();
|
|
4184
|
+
this._dragCounter = 0;
|
|
4185
|
+
this._isDragging = false;
|
|
4186
|
+
const files = Array.from(e.dataTransfer?.files ?? []);
|
|
4187
|
+
if (files.length > 0) {
|
|
4188
|
+
const detail = { value: files };
|
|
4189
|
+
fireNonCancelableEvent(this, "change", detail);
|
|
4190
|
+
}
|
|
4191
|
+
};
|
|
4192
|
+
}
|
|
4193
|
+
static {
|
|
4194
|
+
this.styles = [sharedStyles, componentStyles14, hostStyles14];
|
|
4195
|
+
}
|
|
4196
|
+
connectedCallback() {
|
|
4197
|
+
super.connectedCallback();
|
|
4198
|
+
}
|
|
4199
|
+
_hasDragFiles(e) {
|
|
4200
|
+
if (!e.dataTransfer) return false;
|
|
4201
|
+
return Array.from(e.dataTransfer.types).includes("Files");
|
|
4202
|
+
}
|
|
4203
|
+
render() {
|
|
4204
|
+
const classes = {
|
|
4205
|
+
"root": true,
|
|
4206
|
+
"hovered": this._isDragging
|
|
4207
|
+
};
|
|
4208
|
+
return html15`
|
|
4209
|
+
<div
|
|
4210
|
+
class=${classMap13(classes)}
|
|
4211
|
+
role="button"
|
|
4212
|
+
tabindex="0"
|
|
4213
|
+
aria-label="Drop files here"
|
|
4214
|
+
@dragenter=${this._onDragEnter}
|
|
4215
|
+
@dragover=${this._onDragOver}
|
|
4216
|
+
@dragleave=${this._onDragLeave}
|
|
4217
|
+
@drop=${this._onDrop}
|
|
4218
|
+
>
|
|
4219
|
+
<slot></slot>
|
|
4220
|
+
</div>
|
|
4221
|
+
`;
|
|
4222
|
+
}
|
|
4223
|
+
};
|
|
4224
|
+
__decorateClass([
|
|
4225
|
+
state2()
|
|
4226
|
+
], CsFileDropzoneInternal.prototype, "_isDragging", 2);
|
|
4227
|
+
|
|
4228
|
+
// src/file-dropzone/index.ts
|
|
4229
|
+
var CsFileDropzone = class extends CsFileDropzoneInternal {
|
|
4230
|
+
};
|
|
4231
|
+
customElements.define("cs-file-dropzone", CsFileDropzone);
|
|
4232
|
+
|
|
4233
|
+
// src/anchor-navigation/internal.ts
|
|
4234
|
+
import { css as css34, html as html16, LitElement as LitElement16 } from "lit";
|
|
4235
|
+
import { property as property15, state as state3 } from "lit/decorators.js";
|
|
4236
|
+
import { classMap as classMap14 } from "lit/directives/class-map.js";
|
|
4237
|
+
import { ifDefined as ifDefined7 } from "lit/directives/if-defined.js";
|
|
4238
|
+
|
|
4239
|
+
// src/anchor-navigation/styles.ts
|
|
4240
|
+
import { css as css33 } from "lit";
|
|
4241
|
+
var componentStyles15 = css33`
|
|
4242
|
+
.root {
|
|
4243
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
4244
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
4245
|
+
color: var(--color-text-body-default-vvtq8u, #0f141a);
|
|
4246
|
+
font-weight: 400;
|
|
4247
|
+
font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
4248
|
+
-webkit-font-smoothing: auto;
|
|
4249
|
+
-moz-osx-font-smoothing: auto;
|
|
4250
|
+
}
|
|
4251
|
+
|
|
4252
|
+
.anchor-list {
|
|
4253
|
+
list-style: none;
|
|
4254
|
+
margin-block: 0;
|
|
4255
|
+
margin-inline: 0;
|
|
4256
|
+
padding-block: 0;
|
|
4257
|
+
padding-inline: 0;
|
|
4258
|
+
position: relative;
|
|
4259
|
+
text-indent: 0;
|
|
4260
|
+
}
|
|
4261
|
+
.anchor-list::before {
|
|
4262
|
+
content: "";
|
|
4263
|
+
background-color: var(--color-border-divider-default-nr68jt, #c6c6cd);
|
|
4264
|
+
border-start-start-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4265
|
+
border-start-end-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4266
|
+
border-end-start-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4267
|
+
border-end-end-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4268
|
+
inset-block-end: -2px;
|
|
4269
|
+
pointer-events: none;
|
|
4270
|
+
position: absolute;
|
|
4271
|
+
inset-block-start: -2px;
|
|
4272
|
+
inline-size: 2px;
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
.anchor-item {
|
|
4276
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
4277
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
4278
|
+
color: var(--color-text-body-secondary-yna5sb, #424650);
|
|
4279
|
+
font-weight: 400;
|
|
4280
|
+
margin-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
4281
|
+
margin-inline: 0;
|
|
4282
|
+
transition: var(--motion-duration-slow-zji5vl, 180ms);
|
|
4283
|
+
transition-property: all;
|
|
4284
|
+
}
|
|
4285
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4286
|
+
.anchor-item {
|
|
4287
|
+
animation: none;
|
|
4288
|
+
transition: none;
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
.awsui-motion-disabled .anchor-item, .awsui-mode-entering .anchor-item {
|
|
4292
|
+
animation: none;
|
|
4293
|
+
transition: none;
|
|
4294
|
+
}
|
|
4295
|
+
.anchor-item--active {
|
|
4296
|
+
position: relative;
|
|
4297
|
+
}
|
|
4298
|
+
.anchor-item--active::before {
|
|
4299
|
+
content: "";
|
|
4300
|
+
background-color: var(--color-text-accent-n1kmht, #006ce0);
|
|
4301
|
+
border-start-start-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4302
|
+
border-start-end-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4303
|
+
border-end-start-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4304
|
+
border-end-end-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
4305
|
+
inset-block-end: -2px;
|
|
4306
|
+
pointer-events: none;
|
|
4307
|
+
position: absolute;
|
|
4308
|
+
inset-block-start: -2px;
|
|
4309
|
+
inline-size: 2px;
|
|
4310
|
+
}
|
|
4311
|
+
|
|
4312
|
+
.anchor-link {
|
|
4313
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
4314
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
4315
|
+
align-items: baseline;
|
|
4316
|
+
color: var(--color-text-body-secondary-yna5sb, #424650);
|
|
4317
|
+
display: flex;
|
|
4318
|
+
flex-direction: row;
|
|
4319
|
+
font-weight: 400;
|
|
4320
|
+
text-decoration: none;
|
|
4321
|
+
transition: var(--motion-duration-slow-zji5vl, 180ms);
|
|
4322
|
+
transition-property: all;
|
|
4323
|
+
}
|
|
4324
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4325
|
+
.anchor-link {
|
|
4326
|
+
animation: none;
|
|
4327
|
+
transition: none;
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
.awsui-motion-disabled .anchor-link, .awsui-mode-entering .anchor-link {
|
|
4331
|
+
animation: none;
|
|
4332
|
+
transition: none;
|
|
4333
|
+
}
|
|
4334
|
+
:host-context([data-awsui-focus-visible=true]) .anchor-link:focus {
|
|
4335
|
+
outline: thin dotted;
|
|
4336
|
+
outline: var(--border-link-focus-ring-outline-1p0hnu, 0);
|
|
4337
|
+
outline-offset: 2px;
|
|
4338
|
+
outline-color: var(--color-border-item-focused-uk47pl, #006ce0);
|
|
4339
|
+
border-start-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4340
|
+
border-start-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4341
|
+
border-end-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4342
|
+
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
4343
|
+
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-39uvxr, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
4344
|
+
}
|
|
4345
|
+
.anchor-link:hover {
|
|
4346
|
+
color: var(--color-text-accent-n1kmht, #006ce0);
|
|
4347
|
+
}
|
|
4348
|
+
.anchor-link:focus {
|
|
4349
|
+
outline: none;
|
|
4350
|
+
}
|
|
4351
|
+
.anchor-link:hover, .anchor-link:focus {
|
|
4352
|
+
text-decoration: none;
|
|
4353
|
+
}
|
|
4354
|
+
.anchor-link--active {
|
|
4355
|
+
font-weight: var(--font-wayfinding-link-active-weight-ny4hup, 700);
|
|
4356
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
4357
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
4358
|
+
color: var(--color-text-accent-n1kmht, #006ce0);
|
|
4359
|
+
}
|
|
4360
|
+
|
|
4361
|
+
.anchor-link-text {
|
|
4362
|
+
display: block;
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
.anchor-link-info {
|
|
4366
|
+
margin-inline-start: var(--space-xs-ymlm0b, 8px);
|
|
4367
|
+
font-size: var(--font-size-body-s-smc8cv, 12px);
|
|
4368
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
4369
|
+
letter-spacing: var(--letter-spacing-body-s-gq78ok, 0.005em);
|
|
4370
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
4371
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
4372
|
+
font-weight: 700;
|
|
4373
|
+
letter-spacing: 0.005em;
|
|
4374
|
+
color: var(--color-text-link-default-hude44, #006ce0);
|
|
4375
|
+
}
|
|
4376
|
+
`;
|
|
4377
|
+
|
|
4378
|
+
// src/anchor-navigation/internal.ts
|
|
4379
|
+
var hostStyles15 = css34`:host { display: block; }`;
|
|
4380
|
+
var CsAnchorNavigationInternal = class extends LitElement16 {
|
|
4381
|
+
constructor() {
|
|
4382
|
+
super(...arguments);
|
|
4383
|
+
this.anchors = [];
|
|
4384
|
+
this.scrollSpyOffset = 0;
|
|
4385
|
+
this._observedHref = "";
|
|
4386
|
+
this._observer = null;
|
|
4387
|
+
this._sectionMap = /* @__PURE__ */ new Map();
|
|
4388
|
+
}
|
|
4389
|
+
static {
|
|
4390
|
+
this.styles = [sharedStyles, componentStyles15, hostStyles15];
|
|
4391
|
+
}
|
|
4392
|
+
get _isControlled() {
|
|
4393
|
+
return this.activeHref !== void 0;
|
|
4394
|
+
}
|
|
4395
|
+
get _currentHref() {
|
|
4396
|
+
return this._isControlled ? this.activeHref ?? "" : this._observedHref;
|
|
4397
|
+
}
|
|
4398
|
+
connectedCallback() {
|
|
4399
|
+
super.connectedCallback();
|
|
4400
|
+
if (!this._isControlled) {
|
|
4401
|
+
this._setupScrollSpy();
|
|
4402
|
+
}
|
|
4403
|
+
}
|
|
4404
|
+
disconnectedCallback() {
|
|
4405
|
+
super.disconnectedCallback();
|
|
4406
|
+
this._teardownScrollSpy();
|
|
4407
|
+
}
|
|
4408
|
+
willUpdate(changed) {
|
|
4409
|
+
super.willUpdate(changed);
|
|
4410
|
+
if (changed.has("activeHref")) {
|
|
4411
|
+
if (this._isControlled) {
|
|
4412
|
+
this._teardownScrollSpy();
|
|
4413
|
+
} else {
|
|
4414
|
+
this._setupScrollSpy();
|
|
4415
|
+
}
|
|
4416
|
+
}
|
|
4417
|
+
if (changed.has("anchors") && !this._isControlled) {
|
|
4418
|
+
this._teardownScrollSpy();
|
|
4419
|
+
this._setupScrollSpy();
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
_setupScrollSpy() {
|
|
4423
|
+
this._teardownScrollSpy();
|
|
4424
|
+
const topMargin = this.scrollSpyOffset;
|
|
4425
|
+
this._observer = new IntersectionObserver(
|
|
4426
|
+
(entries) => this._handleIntersection(entries),
|
|
4427
|
+
{
|
|
4428
|
+
rootMargin: `-${topMargin}px 0px 0px 0px`,
|
|
4429
|
+
threshold: [0, 0.1, 0.5, 1]
|
|
4430
|
+
}
|
|
4431
|
+
);
|
|
4432
|
+
for (const anchor of this.anchors) {
|
|
4433
|
+
const id = anchor.href.replace(/^#/, "");
|
|
4434
|
+
const target = document.getElementById(id);
|
|
4435
|
+
if (target) {
|
|
4436
|
+
this._observer.observe(target);
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
}
|
|
4440
|
+
_handleIntersection(entries) {
|
|
4441
|
+
for (const entry of entries) {
|
|
4442
|
+
this._sectionMap.set(entry.target.id, entry);
|
|
4443
|
+
}
|
|
4444
|
+
let topMostId = "";
|
|
4445
|
+
let topMostY = Infinity;
|
|
4446
|
+
for (const [id, entry] of this._sectionMap) {
|
|
4447
|
+
if (entry.isIntersecting && entry.boundingClientRect.top < topMostY) {
|
|
4448
|
+
topMostY = entry.boundingClientRect.top;
|
|
4449
|
+
topMostId = id;
|
|
4450
|
+
}
|
|
4451
|
+
}
|
|
4452
|
+
if (topMostId && `#${topMostId}` !== this._observedHref) {
|
|
4453
|
+
this._observedHref = `#${topMostId}`;
|
|
4454
|
+
const anchor = this.anchors.find((a) => a.href === this._observedHref);
|
|
4455
|
+
if (anchor) {
|
|
4456
|
+
fireNonCancelableEvent(this, "activeHrefChange", anchor);
|
|
4457
|
+
}
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
_teardownScrollSpy() {
|
|
4461
|
+
this._observer?.disconnect();
|
|
4462
|
+
this._observer = null;
|
|
4463
|
+
this._sectionMap.clear();
|
|
4464
|
+
}
|
|
4465
|
+
_onAnchorClick(_e, anchor) {
|
|
4466
|
+
fireNonCancelableEvent(this, "follow", anchor);
|
|
4467
|
+
}
|
|
4468
|
+
render() {
|
|
4469
|
+
return html16`
|
|
4470
|
+
<nav
|
|
4471
|
+
class="root"
|
|
4472
|
+
aria-labelledby=${ifDefined7(this.ariaLabelledby)}
|
|
4473
|
+
>
|
|
4474
|
+
<ul class="anchor-list" role="list">
|
|
4475
|
+
${this.anchors.map((anchor) => {
|
|
4476
|
+
const isActive = this._currentHref === anchor.href;
|
|
4477
|
+
const indent = Math.max(0, anchor.level - 1) * 16;
|
|
4478
|
+
const linkClasses = {
|
|
4479
|
+
"anchor-link": true,
|
|
4480
|
+
"anchor-link--active": isActive
|
|
4481
|
+
};
|
|
4482
|
+
return html16`
|
|
4483
|
+
<li class=${classMap14({
|
|
4484
|
+
"anchor-item": true,
|
|
4485
|
+
"anchor-item--active": isActive
|
|
4486
|
+
})} style="padding-left: ${indent}px">
|
|
4487
|
+
<a
|
|
4488
|
+
class=${classMap14(linkClasses)}
|
|
4489
|
+
href=${anchor.href}
|
|
4490
|
+
aria-current=${ifDefined7(isActive ? "location" : void 0)}
|
|
4491
|
+
@click=${(e) => this._onAnchorClick(e, anchor)}
|
|
4492
|
+
>
|
|
4493
|
+
<span class="anchor-link-text">${anchor.text}</span>
|
|
4494
|
+
${anchor.info ? html16`<span class="anchor-link-info">${anchor.info}</span>` : ""}
|
|
4495
|
+
</a>
|
|
4496
|
+
</li>
|
|
4497
|
+
`;
|
|
4498
|
+
})}
|
|
4499
|
+
</ul>
|
|
4500
|
+
</nav>
|
|
4501
|
+
`;
|
|
4502
|
+
}
|
|
4503
|
+
};
|
|
4504
|
+
__decorateClass([
|
|
4505
|
+
property15({ type: Array })
|
|
4506
|
+
], CsAnchorNavigationInternal.prototype, "anchors", 2);
|
|
4507
|
+
__decorateClass([
|
|
4508
|
+
property15({ type: String })
|
|
4509
|
+
], CsAnchorNavigationInternal.prototype, "activeHref", 2);
|
|
4510
|
+
__decorateClass([
|
|
4511
|
+
property15({ type: Number })
|
|
4512
|
+
], CsAnchorNavigationInternal.prototype, "scrollSpyOffset", 2);
|
|
4513
|
+
__decorateClass([
|
|
4514
|
+
property15({ type: String })
|
|
4515
|
+
], CsAnchorNavigationInternal.prototype, "ariaLabelledby", 2);
|
|
4516
|
+
__decorateClass([
|
|
4517
|
+
state3()
|
|
4518
|
+
], CsAnchorNavigationInternal.prototype, "_observedHref", 2);
|
|
4519
|
+
|
|
4520
|
+
// src/anchor-navigation/index.ts
|
|
4521
|
+
var CsAnchorNavigation = class extends CsAnchorNavigationInternal {
|
|
4522
|
+
};
|
|
4523
|
+
customElements.define("cs-anchor-navigation", CsAnchorNavigation);
|
|
4524
|
+
export {
|
|
4525
|
+
CsAnchorNavigation,
|
|
4526
|
+
CsBadge,
|
|
4527
|
+
CsBox,
|
|
4528
|
+
CsCheckbox,
|
|
4529
|
+
CsFileDropzone,
|
|
4530
|
+
CsGrid,
|
|
4531
|
+
CsIcon,
|
|
4532
|
+
CsIconProvider,
|
|
4533
|
+
CsList,
|
|
4534
|
+
CsLiveRegion,
|
|
4535
|
+
CsRadioGroup,
|
|
4536
|
+
CsSpaceBetween,
|
|
4537
|
+
CsSpinner,
|
|
4538
|
+
CsTextContent,
|
|
4539
|
+
CsTiles,
|
|
4540
|
+
CsTreeView
|
|
4541
|
+
};
|