@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/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2025 cumulus-ui contributors.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Cumulus UI
|
|
2
|
+
|
|
3
|
+
**Web components inspired by the [Cloudscape Design System](https://cloudscape.design) and [Rainforest](https://github.com/krhoyt/Rainforest)**
|
|
4
|
+
|
|
5
|
+
Built with [Lit 3](https://lit.dev) + TypeScript.
|
|
6
|
+
|
|
7
|
+
> **Status:** Early development — foundation infrastructure only.
|
|
8
|
+
|
|
9
|
+
## Design Philosophy
|
|
10
|
+
|
|
11
|
+
- **Web standards first** — native custom elements, no framework required
|
|
12
|
+
- **Cloudscape-inspired** — follows the [Cloudscape Design System](https://cloudscape.design) visual language and token system
|
|
13
|
+
- **Lit-powered** — built on [Lit 3](https://lit.dev) for reactive properties, shadow DOM, and efficient rendering
|
|
14
|
+
- **Type-safe** — full TypeScript with strict mode, exported `.d.ts` declarations
|
|
15
|
+
- **Tested** — real browser tests via Playwright, accessibility audits via axe-core
|
|
16
|
+
- **Dual output** — ESM for bundlers, CDN bundle for `<script>` tags
|
|
17
|
+
|
|
18
|
+
## References
|
|
19
|
+
|
|
20
|
+
- [Cloudscape Design System](https://cloudscape.design) — AWS's open-source design system
|
|
21
|
+
- [Rainforest](https://github.com/krhoyt/Rainforest) — Kevin Hoyt's Cloudscape-inspired web components
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
Apache 2.0
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare namespace AlertProps {
|
|
2
|
+
type Type = 'success' | 'error' | 'warning' | 'info';
|
|
3
|
+
interface Ref {
|
|
4
|
+
/**
|
|
5
|
+
* Sets focus on the alert content.
|
|
6
|
+
*/
|
|
7
|
+
focus(): void;
|
|
8
|
+
}
|
|
9
|
+
interface I18nStrings {
|
|
10
|
+
successIconAriaLabel?: string;
|
|
11
|
+
errorIconAriaLabel?: string;
|
|
12
|
+
warningIconAriaLabel?: string;
|
|
13
|
+
infoIconAriaLabel?: string;
|
|
14
|
+
dismissAriaLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
interface AnalyticsMetadata {
|
|
17
|
+
errorContext?: ErrorContext;
|
|
18
|
+
}
|
|
19
|
+
interface Style {
|
|
20
|
+
root?: {
|
|
21
|
+
background?: string;
|
|
22
|
+
borderColor?: string;
|
|
23
|
+
borderRadius?: string;
|
|
24
|
+
borderWidth?: string;
|
|
25
|
+
color?: string;
|
|
26
|
+
focusRing?: {
|
|
27
|
+
borderColor?: string;
|
|
28
|
+
borderRadius?: string;
|
|
29
|
+
borderWidth?: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
icon?: {
|
|
33
|
+
color?: string;
|
|
34
|
+
};
|
|
35
|
+
dismissButton?: {
|
|
36
|
+
color?: {
|
|
37
|
+
active?: string;
|
|
38
|
+
default?: string;
|
|
39
|
+
hover?: string;
|
|
40
|
+
};
|
|
41
|
+
focusRing?: {
|
|
42
|
+
borderColor?: string;
|
|
43
|
+
borderRadius?: string;
|
|
44
|
+
borderWidth?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
interface PersistenceConfig {
|
|
49
|
+
uniqueKey: string;
|
|
50
|
+
crossServicePersistence?: boolean;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export interface AlertProps {
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the type of message you want to display.
|
|
56
|
+
*/
|
|
57
|
+
type?: AlertProps.Type;
|
|
58
|
+
/**
|
|
59
|
+
* Provides a text alternative for the icon.
|
|
60
|
+
*
|
|
61
|
+
* @deprecated Use the label properties inside `i18nStrings` instead.
|
|
62
|
+
* If the label is assigned via the `i18nStrings` property, this label will be ignored.
|
|
63
|
+
*/
|
|
64
|
+
statusIconAriaLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Determines whether the alert is displayed.
|
|
67
|
+
* @deprecated Use conditional rendering in your code instead of this prop.
|
|
68
|
+
*/
|
|
69
|
+
visible?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Adds a close button to the alert when set to `true`.
|
|
72
|
+
* An `onDismiss` event is fired when a user clicks the button.
|
|
73
|
+
*/
|
|
74
|
+
dismissible?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Adds an aria-label to the dismiss button.
|
|
77
|
+
* @i18n
|
|
78
|
+
*
|
|
79
|
+
* @deprecated Use `i18nStrings.dismissAriaLabel` instead.
|
|
80
|
+
* If the label is assigned via the `i18nStrings` property, this label will be ignored.
|
|
81
|
+
*/
|
|
82
|
+
dismissAriaLabel?: string;
|
|
83
|
+
/** @slot default — Primary text displayed in the element */
|
|
84
|
+
/** @slot header — Heading text */
|
|
85
|
+
/** @slot buttonText — Displays an action button next to the message area when set */
|
|
86
|
+
/** @slot action — Specifies an action for the alert message */
|
|
87
|
+
/** @event dismiss — CustomEvent<void> */
|
|
88
|
+
/** @event buttonClick — CustomEvent<void> */
|
|
89
|
+
/**
|
|
90
|
+
* An object containing all the necessary localized strings required by the component.
|
|
91
|
+
* @property {AlertProps.I18nStrings} [i18nStrings] - optional
|
|
92
|
+
* @i18n
|
|
93
|
+
*/
|
|
94
|
+
i18nStrings?: AlertProps.I18nStrings;
|
|
95
|
+
/**
|
|
96
|
+
* Specifies additional analytics-related metadata.
|
|
97
|
+
* * `errorContext` - Identifies the error category and sub-category.
|
|
98
|
+
* @analytics
|
|
99
|
+
*/
|
|
100
|
+
analyticsMetadata?: AlertProps.AnalyticsMetadata;
|
|
101
|
+
/**
|
|
102
|
+
* An object containing CSS properties to customize the alert's visual appearance.
|
|
103
|
+
* Refer to the [style](/components/alert/?tabId=style) tab for more details.
|
|
104
|
+
*/
|
|
105
|
+
style?: AlertProps.Style;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/alert/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,KAAK,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACrD,UAAU,GAAG;QACX;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;IACD,UAAU,WAAW;QACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B;IACD,UAAU,iBAAiB;QACzB,YAAY,CAAC,EAAE,YAAY,CAAC;KAC7B;IACD,UAAU,KAAK;QACb,IAAI,CAAC,EAAE;YACL,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,SAAS,CAAC,EAAE;gBACV,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;SACH,CAAC;QACF,IAAI,CAAC,EAAE;YACL,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,aAAa,CAAC,EAAE;YACd,KAAK,CAAC,EAAE;gBACN,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,SAAS,CAAC,EAAE;gBACV,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;SACH,CAAC;KACH;IACD,UAAU,iBAAiB;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,uBAAuB,CAAC,EAAE,OAAO,CAAC;KACnC;CACF;AACD,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC;IACvB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4DAA4D;IAC5D,kCAAkC;IAClC,qFAAqF;IACrF,+DAA+D;IAC/D,yCAAyC;IACzC,6CAA6C;IAC7C;;;;OAIG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC;IACrC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACjD;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;CAO1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/anchor-navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE3D,qBAAa,kBAAmB,SAAQ,0BAA0B;CAAG;AAIrE,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface AnchorNavigationProps {
|
|
2
|
+
/**
|
|
3
|
+
* Adds `aria-labelledby` to the component.
|
|
4
|
+
*
|
|
5
|
+
* Use this property for identifying the header or title that labels the anchor navigation.
|
|
6
|
+
* To use it correctly, define an ID for the element either as label, and set the property to that ID.
|
|
7
|
+
*/
|
|
8
|
+
ariaLabelledby?: string;
|
|
9
|
+
/**
|
|
10
|
+
* List of anchors. Each anchor object has the following properties:
|
|
11
|
+
*
|
|
12
|
+
* * `text` (string) - The text for the anchor item.
|
|
13
|
+
* * `href` (string) - The `id` attribute of the target HTML element that the anchor refers to.
|
|
14
|
+
* For example: `"#section1.1"`
|
|
15
|
+
* * `level` (number) - Level of nesting of the anchor.
|
|
16
|
+
* * `info` (string | undefined) - Additional information to display next to the link, for example: "New" or "Updated".
|
|
17
|
+
*
|
|
18
|
+
* Note: The list of anchors should be sorted in the order they appear on the page.
|
|
19
|
+
*/
|
|
20
|
+
anchors: AnchorNavigationProps.Anchor[];
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the active anchor href. When set, the component will operate in a
|
|
23
|
+
* controlled manner, and internal scroll-spy will be disabled.
|
|
24
|
+
*/
|
|
25
|
+
activeHref?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the height (in pixels) to be considered as an offset when activating anchors.
|
|
28
|
+
* This is useful when you have a fixed or sticky header that might overlap with the content as you scroll.
|
|
29
|
+
*
|
|
30
|
+
* Defaults to 0.
|
|
31
|
+
*/
|
|
32
|
+
scrollSpyOffset?: number;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace AnchorNavigationProps {
|
|
35
|
+
interface Anchor {
|
|
36
|
+
/**
|
|
37
|
+
* The text for the anchor item.
|
|
38
|
+
*/
|
|
39
|
+
text: string;
|
|
40
|
+
/**
|
|
41
|
+
* The `href` of the anchor. For example: `"#section1.1"`".
|
|
42
|
+
*/
|
|
43
|
+
href: string;
|
|
44
|
+
/**
|
|
45
|
+
* Level of nesting of the anchor.
|
|
46
|
+
*/
|
|
47
|
+
level: number;
|
|
48
|
+
/**
|
|
49
|
+
* Additional information to display next to the link, for example: "New" or "Updated".
|
|
50
|
+
*/
|
|
51
|
+
info?: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/anchor-navigation/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;OAUG;IACH,OAAO,EAAE,qBAAqB,CAAC,MAAM,EAAE,CAAC;IACxC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAG1B;AACD,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,UAAU,MAAM;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
2
|
+
import type { AnchorNavigationProps } from './interfaces.js';
|
|
3
|
+
export declare class CsAnchorNavigationInternal extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
anchors: AnchorNavigationProps.Anchor[];
|
|
6
|
+
activeHref?: string;
|
|
7
|
+
scrollSpyOffset: number;
|
|
8
|
+
ariaLabelledby?: string;
|
|
9
|
+
private _observedHref;
|
|
10
|
+
private _observer;
|
|
11
|
+
private _sectionMap;
|
|
12
|
+
private get _isControlled();
|
|
13
|
+
private get _currentHref();
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
willUpdate(changed: PropertyValues): void;
|
|
17
|
+
private _setupScrollSpy;
|
|
18
|
+
private _handleIntersection;
|
|
19
|
+
private _teardownScrollSpy;
|
|
20
|
+
private _onAnchorClick;
|
|
21
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/anchor-navigation/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAMjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAI7D,qBAAa,0BAA2B,SAAQ,UAAU;IACxD,OAAgB,MAAM,4BAA+C;IAGrE,OAAO,EAAE,qBAAqB,CAAC,MAAM,EAAE,CAAM;IAG7C,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,eAAe,SAAK;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,OAAO,CAAC,aAAa,CAAM;IAE3B,OAAO,CAAC,SAAS,CAAqC;IACtD,OAAO,CAAC,WAAW,CAAgD;IAEnE,OAAO,KAAK,aAAa,GAExB;IAED,OAAO,KAAK,YAAY,GAEvB;IAEQ,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAK5B,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAiBlD,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,mBAAmB;IAwB3B,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,cAAc;IAIb,MAAM;CAqChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/anchor-navigation/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,eAAO,MAAM,eAAe,yBAuI3B,CAAC;AAEF,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { TutorialPanelProps } from '../tutorial-panel/interfaces.js';
|
|
2
|
+
export interface AnnotationContextProps {
|
|
3
|
+
/**
|
|
4
|
+
* The currently launched tutorial. This should be the object received
|
|
5
|
+
* in the `detail` property of the `onStartTutorial` event.
|
|
6
|
+
*/
|
|
7
|
+
currentTutorial: AnnotationContextProps.Tutorial | null;
|
|
8
|
+
/** @event stepChange — CustomEvent<AnnotationContextProps.StepChangeDetail> */
|
|
9
|
+
/** @event startTutorial — CustomEvent<TutorialPanelProps.TutorialDetail> */
|
|
10
|
+
/** @event exitTutorial — CustomEvent<TutorialPanelProps.TutorialDetail> */
|
|
11
|
+
/** @event finish — CustomEvent<void> */
|
|
12
|
+
/** @slot default — Put all page content inside this component's children */
|
|
13
|
+
/**
|
|
14
|
+
* An object containing all the necessary localized strings required by the component. The object should contain:
|
|
15
|
+
*
|
|
16
|
+
* * `finishButtonText` - Specifies the text that's displayed in the finish button.
|
|
17
|
+
* * `labelDismissAnnotation` - Specifies the aria-label for the dismiss button.
|
|
18
|
+
* * `labelHotspot` - Specifies the aria-label for the hotspot button. The `openState` argument is deprecated, it's handled by the hotspot button aria-expanded attribute.
|
|
19
|
+
* * `nextButtonText` - Specifies the text that's displayed in the next button.
|
|
20
|
+
* * `previousButtonText` - Specifies the text that's displayed in the previous button.
|
|
21
|
+
* * `stepCounterText` - Specifies the step counter text that's displayed in the annotation popover.
|
|
22
|
+
* * `taskTitle` - Specifies the title text that's displayed in the annotation popover.
|
|
23
|
+
*/
|
|
24
|
+
i18nStrings: AnnotationContextProps.I18nStrings;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace AnnotationContextProps {
|
|
27
|
+
interface StepChangeDetail {
|
|
28
|
+
step: number;
|
|
29
|
+
reason: 'next' | 'previous' | 'open' | 'auto-fallback';
|
|
30
|
+
}
|
|
31
|
+
interface OpenChangeDetail {
|
|
32
|
+
open: boolean;
|
|
33
|
+
}
|
|
34
|
+
type Task = TutorialPanelProps.Task;
|
|
35
|
+
type Step = TutorialPanelProps.Step;
|
|
36
|
+
type Tutorial = TutorialPanelProps.Tutorial;
|
|
37
|
+
interface I18nStrings {
|
|
38
|
+
nextButtonText: string;
|
|
39
|
+
previousButtonText: string;
|
|
40
|
+
finishButtonText: string;
|
|
41
|
+
labelDismissAnnotation: string;
|
|
42
|
+
labelHotspot: (openState: boolean, stepIndex: number, totalStepCount: number) => string;
|
|
43
|
+
stepCounterText: (stepIndex: number, totalStepCount: number) => string;
|
|
44
|
+
taskTitle: (taskIndex: number, taskTitle: string) => string;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/annotation-context/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,eAAe,EAAE,sBAAsB,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxD,+EAA+E;IAC/E,4EAA4E;IAC5E,2EAA2E;IAC3E,wCAAwC;IACxC,4EAA4E;IAC5E;;;;;;;;;;OAUG;IACH,WAAW,EAAE,sBAAsB,CAAC,WAAW,CAAC;CACjD;AACD,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,UAAU,gBAAgB;QACxB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,eAAe,CAAC;KACxD;IACD,UAAU,gBAAgB;QACxB,IAAI,EAAE,OAAO,CAAC;KACf;IACD,KAAK,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACpC,KAAK,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IACpC,KAAK,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC;IAC5C,UAAU,WAAW;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QACzB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;QACxF,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;QACvE,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;KAC7D;CACF"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { IconProps } from '../icon/interfaces.js';
|
|
2
|
+
export interface BaseLayoutProps {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies additional analytics-related metadata.
|
|
5
|
+
* * `instanceIdentifier` - A unique string that identifies this component instance in your application.
|
|
6
|
+
* * `flowType` - Identifies the type of flow represented by the component.
|
|
7
|
+
* **Note:** This API is currently experimental.
|
|
8
|
+
* @analytics
|
|
9
|
+
*/
|
|
10
|
+
analyticsMetadata?: AppLayoutProps.AnalyticsMetadata;
|
|
11
|
+
/**
|
|
12
|
+
* Determines the default behavior of the component based on some predefined page layouts.
|
|
13
|
+
* Individual properties will always take precedence over the default coming from the content type.
|
|
14
|
+
*/
|
|
15
|
+
contentType?: AppLayoutProps.ContentType;
|
|
16
|
+
/**
|
|
17
|
+
* Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.
|
|
18
|
+
* Each Drawer is an item in the drawers wrapper with the following properties:
|
|
19
|
+
* * id (string) - the id of the drawer.
|
|
20
|
+
* * content (unknown) - the content in the drawer.
|
|
21
|
+
* * trigger (DrawerTrigger) - the button that opens and closes the active drawer.
|
|
22
|
+
* * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.
|
|
23
|
+
* * badge (boolean) - Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.
|
|
24
|
+
* * resizable (boolean) - if the drawer is resizable or not.
|
|
25
|
+
* * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.
|
|
26
|
+
* * onResize (({ size: number }) => void) - Fired when the active drawer is resized.
|
|
27
|
+
*
|
|
28
|
+
* #### DrawerTrigger
|
|
29
|
+
* - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.
|
|
30
|
+
* - `iconSvg` (unknown) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)
|
|
31
|
+
*
|
|
32
|
+
* #### DrawerAriaLabels
|
|
33
|
+
* - `drawerName` (string) - Label for the drawer itself, and for the drawer trigger button tooltip text.
|
|
34
|
+
* - `closeButton` (string) - (Optional) Label for the close button.
|
|
35
|
+
* - `triggerButton` (string) - (Optional) Label for the trigger button. When `badge` is true, include the badge information in the label (for example, "Notifications, has unread messages").
|
|
36
|
+
* - `resizeHandle` (string) - (Optional) Label for the resize handle.
|
|
37
|
+
*/
|
|
38
|
+
drawers?: Array<AppLayoutProps.Drawer>;
|
|
39
|
+
/**
|
|
40
|
+
* The active drawer id. If you want to clear the active drawer, use `null`.
|
|
41
|
+
*/
|
|
42
|
+
activeDrawerId?: string | null;
|
|
43
|
+
/** @event drawerChange — CustomEvent<AppLayoutProps.DrawerChangeDetail> */
|
|
44
|
+
/**
|
|
45
|
+
* If `true`, disables outer paddings for the content slot.
|
|
46
|
+
*/
|
|
47
|
+
disableContentPaddings?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* State of the navigation drawer.
|
|
50
|
+
*/
|
|
51
|
+
navigationOpen?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Navigation drawer width in pixels.
|
|
54
|
+
*/
|
|
55
|
+
navigationWidth?: number;
|
|
56
|
+
/**
|
|
57
|
+
* If `true`, the navigation drawer is not displayed at all.
|
|
58
|
+
*/
|
|
59
|
+
navigationHide?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* State of the tools drawer.
|
|
62
|
+
*/
|
|
63
|
+
toolsOpen?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* If `true`, the tools drawer is not displayed at all.
|
|
66
|
+
*/
|
|
67
|
+
toolsHide?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Tools drawer width in pixels.
|
|
70
|
+
*/
|
|
71
|
+
toolsWidth?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Maximum main content panel width in pixels.
|
|
74
|
+
*
|
|
75
|
+
* If set to `Number.MAX_VALUE`, the main content panel will occupy the full available width.
|
|
76
|
+
*/
|
|
77
|
+
maxContentWidth?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Minimum main content panel width in pixels.
|
|
80
|
+
*/
|
|
81
|
+
minContentWidth?: number;
|
|
82
|
+
/**
|
|
83
|
+
* If true, the notification slot is rendered above the scrollable
|
|
84
|
+
* content area so it is always visible.
|
|
85
|
+
*/
|
|
86
|
+
stickyNotifications?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* CSS selector for the application header.
|
|
89
|
+
*/
|
|
90
|
+
headerSelector?: string;
|
|
91
|
+
/**
|
|
92
|
+
* CSS selector for the application footer.
|
|
93
|
+
*/
|
|
94
|
+
footerSelector?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Aria labels for the drawer operating buttons. Use this property to ensure accessibility.
|
|
97
|
+
*
|
|
98
|
+
* * `navigation` (string) - Label for the landmark that wraps the navigation drawer.
|
|
99
|
+
* * `navigationClose` (string) - Label for the button that closes the navigation drawer.
|
|
100
|
+
* * `navigationToggle` (string) - Label for the button that opens the navigation drawer.
|
|
101
|
+
* * `notification` (string) - Label for the region that contains notification messages.
|
|
102
|
+
* * `tools` (string) - Label for the landmark that wraps the tools drawer.
|
|
103
|
+
* * `toolsClose` (string) - Label for the button that closes the tools drawer.
|
|
104
|
+
* * `toolsToggle` (string) - Label for the button that opens the tools drawer.
|
|
105
|
+
* * `drawers` (string) - Label for the landmark that wraps the active drawer.
|
|
106
|
+
* * `drawersOverflow` (string) - Label for the ellipsis button with any overflow drawers.
|
|
107
|
+
* * `drawersOverflowWithBadge` (string) - Label for the ellipsis button with any overflow drawers, with a badge.
|
|
108
|
+
*
|
|
109
|
+
* Example:
|
|
110
|
+
* ```
|
|
111
|
+
* {
|
|
112
|
+
* navigation: "Navigation drawer",
|
|
113
|
+
* navigationClose: "Close navigation drawer",
|
|
114
|
+
* navigationToggle: "Open navigation drawer",
|
|
115
|
+
* notifications: "Notifications",
|
|
116
|
+
* tools: "Help panel",
|
|
117
|
+
* toolsClose: "Close help panel",
|
|
118
|
+
* toolsToggle: "Open help panel",
|
|
119
|
+
* drawers: "Drawers",
|
|
120
|
+
* drawersOverflow: "Overflow drawers",
|
|
121
|
+
* drawersOverflowWithBadge: "Overflow drawers (Unread notifications)"
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
* @i18n
|
|
125
|
+
*/
|
|
126
|
+
ariaLabels?: AppLayoutProps.Labels;
|
|
127
|
+
/** @slot navigation — Navigation drawer */
|
|
128
|
+
/** @slot contentHeader — Top area of the page content */
|
|
129
|
+
/**
|
|
130
|
+
* Disables overlap between `contentHeader` and `content` slots.
|
|
131
|
+
* @deprecated Replaced by the `disableOverlap` property of the [content layout](/components/content-layout/) component.
|
|
132
|
+
* @visualrefresh
|
|
133
|
+
*/
|
|
134
|
+
disableContentHeaderOverlap?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Determines the visual treatment for the breadcrumbs and notifications slots. Specifically:
|
|
137
|
+
* * `default` - Does not apply any visual treatment.
|
|
138
|
+
* * `high-contrast` - Applies high-contrast to both slots. Use in conjunction with `headerVariant="high-contrast"` in ContentLayout.
|
|
139
|
+
* @visualrefresh
|
|
140
|
+
*/
|
|
141
|
+
headerVariant?: 'default' | 'high-contrast';
|
|
142
|
+
/** @slot content — Main content */
|
|
143
|
+
/** @slot tools — Tools drawer */
|
|
144
|
+
/** @slot notifications — Displayed on top of the main content in the scrollable area */
|
|
145
|
+
/** @slot breadcrumbs — Use this slot to add the [breadcrumb group component](/components/breadcrumb-group/) to the app layout */
|
|
146
|
+
/** @event navigationChange — CustomEvent<AppLayoutProps.ChangeDetail> */
|
|
147
|
+
/** @event toolsChange — CustomEvent<AppLayoutProps.ChangeDetail> */
|
|
148
|
+
/** @slot splitPanel — Use this slot to add the [split panel component](/components/split-panel/) to the app layout */
|
|
149
|
+
/**
|
|
150
|
+
* The size of the split panel in pixels.
|
|
151
|
+
*/
|
|
152
|
+
splitPanelSize?: number;
|
|
153
|
+
/**
|
|
154
|
+
* State of the split panel.
|
|
155
|
+
*/
|
|
156
|
+
splitPanelOpen?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Controls the split panel preferences.
|
|
159
|
+
*
|
|
160
|
+
* By default, the preference is `{ position: 'bottom' }`.
|
|
161
|
+
*
|
|
162
|
+
* On smaller screens, the panel is forced to the `'bottom'` position and the `'side'` preference becomes disabled.
|
|
163
|
+
*/
|
|
164
|
+
splitPanelPreferences?: AppLayoutProps.SplitPanelPreferences;
|
|
165
|
+
}
|
|
166
|
+
export interface AppLayoutProps extends BaseLayoutProps {
|
|
167
|
+
/**
|
|
168
|
+
* Activates a backwards-compatibility mode for applications with non-fixed headers and footers.
|
|
169
|
+
* @deprecated This layout is being phased out and may miss some features.
|
|
170
|
+
*/
|
|
171
|
+
disableBodyScroll?: boolean;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace AppLayoutProps {
|
|
174
|
+
interface AnalyticsMetadata {
|
|
175
|
+
instanceIdentifier?: string;
|
|
176
|
+
flowType?: FlowType;
|
|
177
|
+
}
|
|
178
|
+
type ContentType = 'default' | 'form' | 'table' | 'cards' | 'wizard' | 'dashboard';
|
|
179
|
+
interface Ref {
|
|
180
|
+
/**
|
|
181
|
+
* Manually closes the navigation drawer if it is necessary for the current
|
|
182
|
+
* viewport size.
|
|
183
|
+
*/
|
|
184
|
+
closeNavigationIfNecessary(): void;
|
|
185
|
+
/**
|
|
186
|
+
* Opens the tools panel if it is not already open. Note that it is preferable
|
|
187
|
+
* to control the state by listening to `toolsChange` and providing `toolsOpen`.
|
|
188
|
+
*/
|
|
189
|
+
openTools(): void;
|
|
190
|
+
/**
|
|
191
|
+
* Focuses the tools panel if it is open. Use this to focus the tools panel
|
|
192
|
+
* after changing the content, for example when clicking on an 'info' link while
|
|
193
|
+
* the panel is already open.
|
|
194
|
+
*/
|
|
195
|
+
focusToolsClose(): void;
|
|
196
|
+
/**
|
|
197
|
+
* Focuses the active drawer. Use this to focus the active drawer after opening it programmatically.
|
|
198
|
+
*/
|
|
199
|
+
focusActiveDrawer(): void;
|
|
200
|
+
/**
|
|
201
|
+
* Focuses the split panel if it is open.
|
|
202
|
+
*/
|
|
203
|
+
focusSplitPanel(): void;
|
|
204
|
+
}
|
|
205
|
+
interface Drawer {
|
|
206
|
+
id: string;
|
|
207
|
+
content: unknown;
|
|
208
|
+
trigger?: {
|
|
209
|
+
iconName?: IconProps.Name;
|
|
210
|
+
iconSvg?: unknown;
|
|
211
|
+
customIcon?: unknown;
|
|
212
|
+
};
|
|
213
|
+
ariaLabels: DrawerAriaLabels;
|
|
214
|
+
badge?: boolean;
|
|
215
|
+
resizable?: boolean;
|
|
216
|
+
defaultSize?: number;
|
|
217
|
+
onResize?: (event: CustomEvent<{
|
|
218
|
+
size: number;
|
|
219
|
+
}>) => void;
|
|
220
|
+
preserveInactiveContent?: boolean;
|
|
221
|
+
}
|
|
222
|
+
interface DrawerAriaLabels {
|
|
223
|
+
drawerName: string;
|
|
224
|
+
closeButton?: string;
|
|
225
|
+
triggerButton?: string;
|
|
226
|
+
resizeHandle?: string;
|
|
227
|
+
resizeHandleTooltipText?: string;
|
|
228
|
+
}
|
|
229
|
+
interface Labels {
|
|
230
|
+
notifications?: string;
|
|
231
|
+
navigation?: string;
|
|
232
|
+
navigationToggle?: string;
|
|
233
|
+
navigationClose?: string;
|
|
234
|
+
tools?: string;
|
|
235
|
+
toolsToggle?: string;
|
|
236
|
+
toolsClose?: string;
|
|
237
|
+
drawers?: string;
|
|
238
|
+
drawersOverflow?: string;
|
|
239
|
+
drawersOverflowWithBadge?: string;
|
|
240
|
+
}
|
|
241
|
+
interface ChangeDetail {
|
|
242
|
+
open: boolean;
|
|
243
|
+
}
|
|
244
|
+
interface SplitPanelResizeDetail {
|
|
245
|
+
size: number;
|
|
246
|
+
}
|
|
247
|
+
interface SplitPanelPreferences {
|
|
248
|
+
position: 'side' | 'bottom';
|
|
249
|
+
}
|
|
250
|
+
type SplitPanelPosition = 'side' | 'bottom';
|
|
251
|
+
interface DrawerChangeDetail {
|
|
252
|
+
activeDrawerId: string | null;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
export type AppLayoutPropsWithDefaults = Omit<AppLayoutProps, 'contentType' | 'navigationWidth' | 'toolsWidth' | 'minContentWidth' | 'navigationOpen' | 'onNavigationChange'> & {
|
|
256
|
+
placement: {
|
|
257
|
+
insetBlockStart: number;
|
|
258
|
+
insetBlockEnd: number;
|
|
259
|
+
insetInlineStart: number;
|
|
260
|
+
insetInlineEnd: number;
|
|
261
|
+
inlineSize: number;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/app-layout/interfaces.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AppLayoutProps, BaseLayoutProps } from '../app-layout/interfaces.js';
|
|
2
|
+
export interface AppLayoutToolbarProps extends BaseLayoutProps {
|
|
3
|
+
/**
|
|
4
|
+
* If `true`, the navigation trigger is not displayed at all,
|
|
5
|
+
* while navigation drawer might be displayed, but opened using a custom trigger.
|
|
6
|
+
*/
|
|
7
|
+
navigationTriggerHide?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.
|
|
10
|
+
* Each Drawer is an item in the drawers wrapper with the following properties:
|
|
11
|
+
* * id (string) - the id of the drawer.
|
|
12
|
+
* * content (unknown) - the content in the drawer.
|
|
13
|
+
* * trigger (DrawerTrigger) - (Optional) the button that opens and closes the active drawer.
|
|
14
|
+
* If not set, a corresponding trigger button is not displayed, while the drawer might be displayed, but opened using a custom trigger.
|
|
15
|
+
* * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.
|
|
16
|
+
* * badge (boolean) - (Optional) Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.
|
|
17
|
+
* * resizable (boolean) - (Optional) if the drawer is resizable or not.
|
|
18
|
+
* * defaultSize (number) - (Optional) starting size of the drawer. if not set, defaults to 290.
|
|
19
|
+
* * onResize (({ size: number }) => void) - (Optional) Fired when the active drawer is resized.
|
|
20
|
+
*
|
|
21
|
+
* #### DrawerTrigger
|
|
22
|
+
* - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.
|
|
23
|
+
* - `iconSvg` (unknown) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)
|
|
24
|
+
*
|
|
25
|
+
* #### DrawerAriaLabels
|
|
26
|
+
* - `drawerName` (string) - Label for the drawer itself, and for the drawer trigger button tooltip text.
|
|
27
|
+
* - `closeButton` (string) - (Optional) Label for the close button.
|
|
28
|
+
* - `triggerButton` (string) - (Optional) Label for the trigger button.
|
|
29
|
+
* - `resizeHandle` (string) - (Optional) Label for the resize handle.
|
|
30
|
+
*/
|
|
31
|
+
drawers?: Array<AppLayoutToolbarProps.Drawer>;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace AppLayoutToolbarProps {
|
|
34
|
+
type AnalyticsMetadata = AppLayoutProps.AnalyticsMetadata;
|
|
35
|
+
type ContentType = AppLayoutProps.ContentType;
|
|
36
|
+
interface Ref extends AppLayoutProps.Ref {
|
|
37
|
+
/**
|
|
38
|
+
* Focuses the navigation. Use this to focus the navigation after opening it programmatically.
|
|
39
|
+
*/
|
|
40
|
+
focusNavigation(): void;
|
|
41
|
+
}
|
|
42
|
+
type Drawer = AppLayoutProps.Drawer;
|
|
43
|
+
type DrawerAriaLabels = AppLayoutProps.DrawerAriaLabels;
|
|
44
|
+
type Labels = AppLayoutProps.Labels;
|
|
45
|
+
type ChangeDetail = AppLayoutProps.ChangeDetail;
|
|
46
|
+
type SplitPanelResizeDetail = AppLayoutProps.SplitPanelResizeDetail;
|
|
47
|
+
type SplitPanelPreferences = AppLayoutProps.SplitPanelPreferences;
|
|
48
|
+
type SplitPanelPosition = AppLayoutProps.SplitPanelPosition;
|
|
49
|
+
type DrawerChangeDetail = AppLayoutProps.DrawerChangeDetail;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/app-layout-toolbar/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9E,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;CAC/C;AACD,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,KAAK,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,CAAC;IAC1D,KAAK,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAC9C,UAAU,GAAI,SAAQ,cAAc,CAAC,GAAG;QACtC;;WAEG;QACH,eAAe,IAAI,IAAI,CAAC;KACzB;IACD,KAAK,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;IACpC,KAAK,gBAAgB,GAAG,cAAc,CAAC,gBAAgB,CAAC;IACxD,KAAK,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;IACpC,KAAK,YAAY,GAAG,cAAc,CAAC,YAAY,CAAC;IAChD,KAAK,sBAAsB,GAAG,cAAc,CAAC,sBAAsB,CAAC;IACpE,KAAK,qBAAqB,GAAG,cAAc,CAAC,qBAAqB,CAAC;IAClE,KAAK,kBAAkB,GAAG,cAAc,CAAC,kBAAkB,CAAC;IAC5D,KAAK,kBAAkB,GAAG,cAAc,CAAC,kBAAkB,CAAC;CAC7D"}
|