@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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export type OptionsFilteringType = 'none' | 'auto' | 'manual';
|
|
2
|
+
export declare namespace DropdownProps {
|
|
3
|
+
interface Style {
|
|
4
|
+
dropdown?: {
|
|
5
|
+
/**
|
|
6
|
+
* Background color of the dropdown content wrapper.
|
|
7
|
+
*/
|
|
8
|
+
background?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Border color of the dropdown content wrapper.
|
|
11
|
+
*/
|
|
12
|
+
borderColor?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Border radius of the dropdown content wrapper.
|
|
15
|
+
*/
|
|
16
|
+
borderRadius?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Border width of the dropdown content wrapper.
|
|
19
|
+
*/
|
|
20
|
+
borderWidth?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Alignment of the dropdown relative to its trigger.
|
|
26
|
+
*/
|
|
27
|
+
export type DropdownAlignment = 'start' | 'center';
|
|
28
|
+
/**
|
|
29
|
+
* Width constraint for the dropdown.
|
|
30
|
+
* - 'trigger': references the trigger element's width
|
|
31
|
+
* - number: width in pixels
|
|
32
|
+
*/
|
|
33
|
+
export type DropdownWidthConstraint = 'trigger' | number;
|
|
34
|
+
export interface OptionsLoadItemsDetail {
|
|
35
|
+
filteringText: string;
|
|
36
|
+
firstPage: boolean;
|
|
37
|
+
samePage: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface BaseDropdownHostProps extends ExpandToViewport {
|
|
40
|
+
/**
|
|
41
|
+
* If you have more than 500 options, enable this flag to apply a performance optimization
|
|
42
|
+
* that makes the filtering experience smoother. We don't recommend enabling the feature if you
|
|
43
|
+
* have less than 500 options, because the improvements to performance are offset by a
|
|
44
|
+
* visible scrolling lag.
|
|
45
|
+
*
|
|
46
|
+
* When you set this flag to `true`, it removes options that are not currently in view from the DOM.
|
|
47
|
+
* If your test accesses such options, you need to first scroll the options container
|
|
48
|
+
* to the correct offset, before performing any operations on them. Use the element returned
|
|
49
|
+
* by the `findOptionsContainer` test utility for this.
|
|
50
|
+
*/
|
|
51
|
+
virtualScroll?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface DropdownProps extends ExpandToViewport {
|
|
54
|
+
/** @slot trigger — The trigger element that opens/closes the dropdown */
|
|
55
|
+
/** @slot header — Optional header content that stays fixed at the top while */
|
|
56
|
+
/** @slot footer — Optional footer content that stays fixed at the bottom while */
|
|
57
|
+
/** @slot content — Main content of the dropdown */
|
|
58
|
+
/**
|
|
59
|
+
* Open state of the dropdown.
|
|
60
|
+
*/
|
|
61
|
+
open?: boolean;
|
|
62
|
+
/** @event outsideClick — CustomEvent<null> */
|
|
63
|
+
/**
|
|
64
|
+
* Minimum width for the dropdown in pixels. If no value is specified, the
|
|
65
|
+
* dropdown will shrink to fit its content.
|
|
66
|
+
*/
|
|
67
|
+
minWidth?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum width for the dropdown in pixels. If no value is specified, the
|
|
70
|
+
* dropdown will expand to fit its content.
|
|
71
|
+
*/
|
|
72
|
+
maxWidth?: number;
|
|
73
|
+
/** @event escape — CustomEvent<void> */
|
|
74
|
+
/** @event focusEnter — CustomEvent<Pick<FocusEvent, 'target' | 'relatedTarget'>> */
|
|
75
|
+
/** @event focusLeave — CustomEvent<Pick<FocusEvent, 'target' | 'relatedTarget'>> */
|
|
76
|
+
/**
|
|
77
|
+
* Adds `role` to the dropdown content element.
|
|
78
|
+
*/
|
|
79
|
+
ariaRole?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Adds `aria-label` to the dropdown content element.
|
|
82
|
+
*/
|
|
83
|
+
ariaLabel?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Adds `aria-labelledby` to the dropdown content element.
|
|
86
|
+
*/
|
|
87
|
+
ariaLabelledby?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Adds `aria-describedby` to the dropdown content element.
|
|
90
|
+
*/
|
|
91
|
+
ariaDescribedby?: string;
|
|
92
|
+
/**
|
|
93
|
+
* An object containing CSS properties to customize the dropdown's visual appearance.
|
|
94
|
+
*/
|
|
95
|
+
style?: DropdownProps.Style;
|
|
96
|
+
}
|
|
97
|
+
export interface ExpandToViewport {
|
|
98
|
+
/**
|
|
99
|
+
* By default, the dropdown height is constrained to fit inside the height of its next scrollable container element.
|
|
100
|
+
* Enabling this property will allow the dropdown to extend beyond that container by using fixed positioning and
|
|
101
|
+
* [React Portals](https://reactjs.org/docs/portals.html).
|
|
102
|
+
*
|
|
103
|
+
* Set this property if the dropdown would otherwise be constrained by a scrollable container,
|
|
104
|
+
* for example inside table and split view layouts.
|
|
105
|
+
*
|
|
106
|
+
* We recommend you use discretion, and don't enable this property unless necessary
|
|
107
|
+
* because fixed positioning results in a slight, visible lag when scrolling complex pages.
|
|
108
|
+
*/
|
|
109
|
+
expandToViewport?: boolean;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/dropdown/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAC9D,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,UAAU,KAAK;QACb,QAAQ,CAAC,EAAE;YACT;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB;;eAEG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;KACH;CACF;AACD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,CAAC;AACnD;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,MAAM,CAAC;AACzD,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAEzB;AACD,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,yEAAyE;IACzE,+EAA+E;IAC/E,kFAAkF;IAClF,mDAAmD;IACnD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8CAA8C;IAC9C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,oFAAoF;IACpF,oFAAoF;IACpF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC;CAC7B;AACD,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export interface ErrorBoundaryProps {
|
|
2
|
+
/**
|
|
3
|
+
* Optional identifier for the error boundary instance.
|
|
4
|
+
*
|
|
5
|
+
* When provided, the identifier is included in the `onError` callback payload.
|
|
6
|
+
* In the rendered output, the boundary wraps its content in a `<div>` with the
|
|
7
|
+
* attribute `data-awsui-boundary-id={errorBoundaryId}` to support debugging.
|
|
8
|
+
*/
|
|
9
|
+
errorBoundaryId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Callback invoked when an error is intercepted by the boundary.
|
|
12
|
+
* Use this function to record, log, or report errors (for example, to telemetry or monitoring systems).
|
|
13
|
+
*
|
|
14
|
+
* The callback receives a `detail` object containing:
|
|
15
|
+
* * `error` (Error): The thrown error instance.
|
|
16
|
+
* * `errorInfo` (unknown): Additional metadata captured by React.
|
|
17
|
+
* * `errorBoundaryId` (optional, string): The boundary identifier, if defined.
|
|
18
|
+
*/
|
|
19
|
+
onError: (detail: ErrorBoundaryProps.OnErrorDetail) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Controls how nested error boundaries behave.
|
|
22
|
+
*
|
|
23
|
+
* Several components—such as app layout, container, and modal include built-in
|
|
24
|
+
* error boundaries. These boundaries activate automatically when they detect
|
|
25
|
+
* an ancestor boundary, inheriting configuration from the closest one.
|
|
26
|
+
*
|
|
27
|
+
* When `suppressNested` is set to `true`, nested built-in error boundaries
|
|
28
|
+
* and nested standalone error boundaries with `suppressible=true` are disabled,
|
|
29
|
+
* so the errors propagate further up and are captured by this error boundary.
|
|
30
|
+
*/
|
|
31
|
+
suppressNested?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* When set to `true`, this error boundary can be suppressed by another error
|
|
34
|
+
* boundary with `suppressNested=true`, rendered above in the components tree.
|
|
35
|
+
*/
|
|
36
|
+
suppressible?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Optional custom renderer for the fallback UI displayed when an error occurs.
|
|
39
|
+
*
|
|
40
|
+
* The function receives the default slots derived from i18n configuration:
|
|
41
|
+
* * `header` (unknown): The fallback header text.
|
|
42
|
+
* * `description` (unknown): The fallback description text.
|
|
43
|
+
* * `action` (unknown): The fallback action element (a refresh button by default).
|
|
44
|
+
*
|
|
45
|
+
* Return a React node to fully override the default fallback presentation.
|
|
46
|
+
*/
|
|
47
|
+
renderFallback?: (props: ErrorBoundaryProps.FallbackProps) => unknown;
|
|
48
|
+
/**
|
|
49
|
+
* Localized strings and components used in the fallback UI.
|
|
50
|
+
*
|
|
51
|
+
* * `headerText` (string): Header text displayed in the fallback view.
|
|
52
|
+
* * `descriptionText` (string): Description text displayed in the fallback view. Supports embedding inline
|
|
53
|
+
* feedback actions by including `<Feedback>` pseudo-tags when `components.Feedback` is provided.
|
|
54
|
+
* * `refreshActionText` (string): Text for the default refresh action button.
|
|
55
|
+
* * `components.Feedback` (unknown): A component used to render
|
|
56
|
+
* inline feedback actions within the description text.
|
|
57
|
+
*
|
|
58
|
+
* @i18n
|
|
59
|
+
*/
|
|
60
|
+
i18nStrings?: ErrorBoundaryProps.I18nStrings;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace ErrorBoundaryProps {
|
|
63
|
+
interface FallbackProps {
|
|
64
|
+
header?: unknown;
|
|
65
|
+
description?: unknown;
|
|
66
|
+
action?: unknown;
|
|
67
|
+
}
|
|
68
|
+
interface I18nStrings {
|
|
69
|
+
headerText?: string;
|
|
70
|
+
descriptionText?: string;
|
|
71
|
+
refreshActionText?: string;
|
|
72
|
+
components?: {
|
|
73
|
+
Feedback?: unknown;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
interface I18nFeedbackProps {
|
|
77
|
+
children: unknown;
|
|
78
|
+
}
|
|
79
|
+
interface OnErrorDetail {
|
|
80
|
+
error: Error;
|
|
81
|
+
errorInfo: ErrorInfo;
|
|
82
|
+
errorBoundaryId?: string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export interface BuiltInErrorBoundaryProps {
|
|
86
|
+
/** @slot default */
|
|
87
|
+
wrapper?: (content: unknown) => unknown;
|
|
88
|
+
suppressNested?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface AppLayoutBuiltInErrorBoundaryProps extends BuiltInErrorBoundaryProps {
|
|
91
|
+
renderFallback?: ErrorBoundaryProps['renderFallback'];
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/error-boundary/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;OAQG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,kBAAkB,CAAC,aAAa,KAAK,IAAI,CAAC;IAC5D;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,aAAa,KAAK,OAAO,CAAC;IACtE;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC;CAE9C;AACD,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,UAAU,aAAa;QACrB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;IACD,UAAU,WAAW;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,UAAU,CAAC,EAAE;YACX,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB,CAAC;KACH;IACD,UAAU,iBAAiB;QACzB,QAAQ,EAAE,OAAO,CAAC;KACnB;IACD,UAAU,aAAa;QACrB,KAAK,EAAE,KAAK,CAAC;QACb,SAAS,EAAE,SAAS,CAAC;QACrB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF;AACD,MAAM,WAAW,yBAAyB;IACxC,oBAAoB;IACpB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,WAAW,kCAAmC,SAAQ,yBAAyB;IACnF,cAAc,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CACvD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare namespace ExpandableSectionProps {
|
|
2
|
+
interface AnalyticsMetadata {
|
|
3
|
+
instanceIdentifier?: string;
|
|
4
|
+
}
|
|
5
|
+
type Variant = 'default' | 'footer' | 'container' | 'navigation' | 'stacked' | 'inline';
|
|
6
|
+
interface ChangeDetail {
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
}
|
|
9
|
+
type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
|
|
10
|
+
}
|
|
11
|
+
export type InternalVariant = ExpandableSectionProps.Variant | 'compact';
|
|
12
|
+
export interface ExpandableSectionProps {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies additional analytics-related metadata.
|
|
15
|
+
* * `instanceIdentifier` - A unique string that identifies this component instance in your application.
|
|
16
|
+
* @analytics
|
|
17
|
+
*/
|
|
18
|
+
analyticsMetadata?: ExpandableSectionProps.AnalyticsMetadata;
|
|
19
|
+
/**
|
|
20
|
+
* Determines whether the component initially displays in expanded state (that is, with content visible). The component operates in an uncontrolled
|
|
21
|
+
* manner even if you provide a value for this property.
|
|
22
|
+
*/
|
|
23
|
+
defaultExpanded?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Determines whether the component is in the expanded state (that is, with content visible). The component operates in a controlled
|
|
26
|
+
* manner if you provide a value for this property.
|
|
27
|
+
*/
|
|
28
|
+
expanded?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The possible variants of an expandable section are as follows:
|
|
31
|
+
* * `default` - Use this variant in any context.
|
|
32
|
+
* * `footer` - Use this variant in container footers.
|
|
33
|
+
* * `container` - Use this variant in a detail page alongside other containers.
|
|
34
|
+
* * `navigation` - Use this variant in the navigation panel with anchors and custom styled content.
|
|
35
|
+
* It doesn't have any default styles.
|
|
36
|
+
* * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).
|
|
37
|
+
* * `inline` - Use this variant in any context where you need reduced padding around the header.
|
|
38
|
+
* @visualrefresh `stacked` variant
|
|
39
|
+
* */
|
|
40
|
+
variant?: ExpandableSectionProps.Variant;
|
|
41
|
+
/**
|
|
42
|
+
* Determines whether the content section's default padding is removed. This default padding is only present for the `container` variant.
|
|
43
|
+
*/
|
|
44
|
+
disableContentPaddings?: boolean;
|
|
45
|
+
/** @slot default — Primary content displayed in the expandable section element */
|
|
46
|
+
/** @slot header — / */
|
|
47
|
+
/** @slot headerText — The heading text */
|
|
48
|
+
/**
|
|
49
|
+
* Supplementary text below the heading. Use with the container, default or footer variants.
|
|
50
|
+
*/
|
|
51
|
+
headerDescription?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies secondary text that's displayed to the right of the heading title. Use with the container variant.
|
|
54
|
+
* Behaves similar to the Header component counter.
|
|
55
|
+
*/
|
|
56
|
+
headerCounter?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Overrides the default [HTML heading tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements).
|
|
59
|
+
* Use with the container variant (which defaults to H2) or default/footer variants (which default to DIV). Using this
|
|
60
|
+
* property does not change the visual appearance of the component. Note that this only works with the `headerText`
|
|
61
|
+
* slot (not with the deprecated `header`), and not with the navigation variant.
|
|
62
|
+
*/
|
|
63
|
+
headingTagOverride?: ExpandableSectionProps.HeadingTag;
|
|
64
|
+
/**
|
|
65
|
+
* Adds `aria-label` to the header element.
|
|
66
|
+
* Use to assign unique labels when there are multiple expandable sections with the same header text on one page.
|
|
67
|
+
*/
|
|
68
|
+
headerAriaLabel?: string;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/expandable-section/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,UAAU,iBAAiB;QACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;IACD,KAAK,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxF,UAAU,YAAY;QACpB,QAAQ,EAAE,OAAO,CAAC;KACnB;IACD,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACpD;AACD,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,OAAO,GAAG,SAAS,CAAC;AACzE,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,CAAC;IAC7D;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;SAUK;IACL,OAAO,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC;IACzC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kFAAkF;IAClF,uBAAuB;IACvB,0CAA0C;IAC1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC;IACvD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAI1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file-dropzone/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,qBAAa,cAAe,SAAQ,sBAAsB;CAAG;AAI7D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/file-dropzone/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;CAGjC;AACD,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,UAAU,YAAY;QACpB,KAAK,EAAE,IAAI,EAAE,CAAC;KACf;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class CsFileDropzoneInternal extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
private _isDragging;
|
|
5
|
+
private _dragCounter;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
private _onDragEnter;
|
|
8
|
+
private _onDragOver;
|
|
9
|
+
private _onDragLeave;
|
|
10
|
+
private _onDrop;
|
|
11
|
+
private _hasDragFiles;
|
|
12
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/file-dropzone/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAS5C,qBAAa,sBAAuB,SAAQ,UAAU;IACpD,OAAgB,MAAM,4BAA+C;IAGrE,OAAO,CAAC,WAAW,CAAS;IAE5B,OAAO,CAAC,YAAY,CAAK;IAEhB,iBAAiB,IAAI,IAAI;IAIlC,OAAO,CAAC,YAAY,CAOlB;IAEF,OAAO,CAAC,WAAW,CAGjB;IAEF,OAAO,CAAC,YAAY,CAQlB;IAEF,OAAO,CAAC,OAAO,CAWb;IAEF,OAAO,CAAC,aAAa;IAKZ,MAAM;CAqBhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/file-dropzone/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,eAAO,MAAM,eAAe,yBA4B3B,CAAC;AAEF,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface FileInputProps {
|
|
2
|
+
/**
|
|
3
|
+
* Variant of the file input. Defaults to "button".
|
|
4
|
+
*/
|
|
5
|
+
variant?: 'button' | 'icon';
|
|
6
|
+
/**
|
|
7
|
+
* Adds `aria-label` to the file input element. Use this to provide an accessible name for file inputs
|
|
8
|
+
* that don't have visible text, and to distinguish between multiple file inputs with identical visible text.
|
|
9
|
+
*/
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text displayed in the file input component. Used as the aria label if ariaLabel is not defined.
|
|
13
|
+
* @displayname text
|
|
14
|
+
*/
|
|
15
|
+
children?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the native file input `accept` attribute to describe the allow-list of file types.
|
|
18
|
+
*/
|
|
19
|
+
accept?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies whether to add aria-required to the file upload control.
|
|
22
|
+
*/
|
|
23
|
+
ariaRequired?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the native file input `multiple` attribute to allow users entering more than one file.
|
|
26
|
+
*/
|
|
27
|
+
multiple?: boolean;
|
|
28
|
+
/** @event change — CustomEvent<FileInputProps.ChangeDetail> */
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the currently selected file(s).
|
|
31
|
+
* If you want to clear the selection, use empty array.
|
|
32
|
+
*/
|
|
33
|
+
value: ReadonlyArray<File>;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace FileInputProps {
|
|
36
|
+
interface ChangeDetail {
|
|
37
|
+
value: File[];
|
|
38
|
+
}
|
|
39
|
+
interface Ref {
|
|
40
|
+
/**
|
|
41
|
+
* Sets focus on the file upload button.
|
|
42
|
+
*/
|
|
43
|
+
focus(): void;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/file-input/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+DAA+D;IAC/D;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CAC5B;AACD,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,UAAU,YAAY;QACpB,KAAK,EAAE,IAAI,EAAE,CAAC;KACf;IACD,UAAU,GAAG;QACX;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export interface FileTokenGroupProps {
|
|
2
|
+
/**
|
|
3
|
+
* Show file size in the token. Use `i18nStrings.formatFileSize` to customize it.
|
|
4
|
+
*/
|
|
5
|
+
showFileSize?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Show file last modified timestamp in the token. Use `i18nStrings.formatFileLastModified` to customize it.
|
|
8
|
+
*/
|
|
9
|
+
showFileLastModified?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Show file thumbnail in the token. Only supported for images.
|
|
12
|
+
*/
|
|
13
|
+
showFileThumbnail?: boolean;
|
|
14
|
+
/** @event dismiss — CustomEvent<FileTokenGroupProps.DismissDetail> */
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the direction in which tokens are aligned (`horizontal | vertical`).
|
|
21
|
+
*/
|
|
22
|
+
alignment?: FileTokenGroupProps.Alignment;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* An array of objects representing token items. Each token has the following properties:
|
|
26
|
+
*
|
|
27
|
+
* - `file` (string) - File value.
|
|
28
|
+
* - `loading` (boolean) - (Optional) Determine whether the token is loading.
|
|
29
|
+
* - `errorText` (string) - (Optional) Text that displays as a validation error message.
|
|
30
|
+
* - `warningText` (string) - (Optional) - Text that displays as a validation warning message.
|
|
31
|
+
*/
|
|
32
|
+
items: ReadonlyArray<FileTokenGroupProps.Item>;
|
|
33
|
+
/**
|
|
34
|
+
* Adds an `aria-label` to the "Show fewer" button.
|
|
35
|
+
* Use to assign unique labels when there are multiple file token groups with the same `limitShowFewer` label on one page.
|
|
36
|
+
*/
|
|
37
|
+
limitShowFewerAriaLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Adds an `aria-label` to the "Show more" button.
|
|
40
|
+
* Use to assign unique labels when there are multiple file token groups with the same `limitShowMore` label on one page.
|
|
41
|
+
*/
|
|
42
|
+
limitShowMoreAriaLabel?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies if the control is read-only, which prevents the
|
|
45
|
+
* user from modifying the value. A read-only control is still focusable.
|
|
46
|
+
*/
|
|
47
|
+
readOnly?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* An object containing all the localized strings required by the component:
|
|
50
|
+
* * `removeFileAriaLabel` (function): A function to render the ARIA label for file token remove button. Receives file index and file name.
|
|
51
|
+
* * `errorIconAriaLabel` (string): The ARIA label to be shown on the error file icon.
|
|
52
|
+
* * `warningIconAriaLabel` (string): The ARIA label to be shown on the warning file icon.
|
|
53
|
+
* * `formatFileSize` (function): (Optional) A function that takes file size in bytes, and produces a formatted string.
|
|
54
|
+
* * `formatFileLastModified` (function): (Optional) A function that takes the files last modified date, and produces a formatted string.
|
|
55
|
+
*/
|
|
56
|
+
i18nStrings?: FileTokenGroupProps.I18nStrings;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace FileTokenGroupProps {
|
|
59
|
+
interface DismissDetail {
|
|
60
|
+
fileIndex: number;
|
|
61
|
+
}
|
|
62
|
+
interface I18nStrings {
|
|
63
|
+
limitShowFewer?: string;
|
|
64
|
+
limitShowMore?: string;
|
|
65
|
+
removeFileAriaLabel?: (fileIndex: number, fileName: string) => string;
|
|
66
|
+
errorIconAriaLabel?: string;
|
|
67
|
+
warningIconAriaLabel?: string;
|
|
68
|
+
formatFileSize?: (sizeInBytes: number) => string;
|
|
69
|
+
formatFileLastModified?: (date: Date) => string;
|
|
70
|
+
}
|
|
71
|
+
type Alignment = 'horizontal' | 'vertical';
|
|
72
|
+
interface Item {
|
|
73
|
+
file: File;
|
|
74
|
+
loading?: boolean;
|
|
75
|
+
errorText?: null | string;
|
|
76
|
+
warningText?: null | string;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/file-token-group/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sEAAsE;IACtE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC;IAC1C;;;;;;;;OAQG;IACH,KAAK,EAAE,aAAa,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC/C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC;CAC/C;AACD,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,UAAU,aAAa;QACrB,SAAS,EAAE,MAAM,CAAC;KACnB;IACD,UAAU,WAAW;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;QACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;QACjD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;KACjD;IACD,KAAK,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;IAC3C,UAAU,IAAI;QACZ,IAAI,EAAE,IAAI,CAAC;QACX,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC7B;CACF"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export interface FileUploadProps {
|
|
2
|
+
/**
|
|
3
|
+
* Specifies the native file input `accept` attribute to describe the allow-list of file types.
|
|
4
|
+
*/
|
|
5
|
+
accept?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Specifies whether to add aria-required to the file upload control.
|
|
8
|
+
*/
|
|
9
|
+
ariaRequired?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Show file size in the token. Use `i18nStrings.formatFileSize` to customize it.
|
|
12
|
+
*/
|
|
13
|
+
showFileSize?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Show file last modified timestamp in the token. Use `i18nStrings.formatFileLastModified` to customize it.
|
|
16
|
+
*/
|
|
17
|
+
showFileLastModified?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Show file thumbnail in the token. Only supported for images.
|
|
20
|
+
*/
|
|
21
|
+
showFileThumbnail?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the native file input `multiple` attribute to allow users entering more than one file.
|
|
24
|
+
*/
|
|
25
|
+
multiple?: boolean;
|
|
26
|
+
/** @event change — CustomEvent<FileUploadProps.ChangeDetail> */
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the currently selected file(s).
|
|
29
|
+
* If you want to clear the selection, use empty array.
|
|
30
|
+
*/
|
|
31
|
+
value: ReadonlyArray<File>;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the maximum number of displayed file tokens. If the property isn't set, all of the tokens are displayed.
|
|
34
|
+
*/
|
|
35
|
+
tokenLimit?: number;
|
|
36
|
+
/** @slot constraintText — Constraint text that is displayed below the control */
|
|
37
|
+
/** @slot errorText — Text that displays as a validation error message */
|
|
38
|
+
/** @slot warningText — Text that displays as a validation warning message */
|
|
39
|
+
/**
|
|
40
|
+
* An array of file errors corresponding to the files in the `value`.
|
|
41
|
+
*/
|
|
42
|
+
fileErrors?: ReadonlyArray<null | string>;
|
|
43
|
+
/**
|
|
44
|
+
* An array of file warnings corresponding to the files in the `value`.
|
|
45
|
+
*/
|
|
46
|
+
fileWarnings?: ReadonlyArray<null | string>;
|
|
47
|
+
/**
|
|
48
|
+
* Alignment of the file tokens. Defaults to "vertical".
|
|
49
|
+
*/
|
|
50
|
+
fileTokenAlignment?: FileUploadProps.FileTokenAlignment;
|
|
51
|
+
/**
|
|
52
|
+
* An object containing all the localized strings required by the component:
|
|
53
|
+
* * `uploadButtonText` (function): A function to render the text of the file upload button. It takes `multiple` attribute to define plurality.
|
|
54
|
+
* * `dropzoneText` (function): A function to render the text shown in the dropzone. It takes `multiple` attribute to define plurality.
|
|
55
|
+
* * `removeFileAriaLabel` (function): A function to render the ARIA label for file token remove button.
|
|
56
|
+
* * `limitShowFewer` (string): The text of the show more tokens button.
|
|
57
|
+
* * `limitShowMore` (string): The text of the show fewer tokens button.
|
|
58
|
+
* * `errorIconAriaLabel` (string): The ARIA label to be shown on the error file icon.
|
|
59
|
+
* * `warningIconAriaLabel` (string): The ARIA label to be shown on the warning file icon.
|
|
60
|
+
* * `formatFileSize` (function): (Optional) A function that takes file size in bytes, and produces a formatted string.
|
|
61
|
+
* * `formatFileLastModified` (function): (Optional) A function that takes the files last modified date, and produces a formatted string.
|
|
62
|
+
*/
|
|
63
|
+
i18nStrings?: FileUploadProps.I18nStrings;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace FileUploadProps {
|
|
66
|
+
interface ChangeDetail {
|
|
67
|
+
value: File[];
|
|
68
|
+
}
|
|
69
|
+
interface DismissDetail {
|
|
70
|
+
index: number;
|
|
71
|
+
file: File;
|
|
72
|
+
}
|
|
73
|
+
type FileTokenAlignment = 'vertical' | 'horizontal';
|
|
74
|
+
interface I18nStrings {
|
|
75
|
+
uploadButtonText?: (multiple: boolean) => string;
|
|
76
|
+
dropzoneText?: (multiple: boolean) => string;
|
|
77
|
+
removeFileAriaLabel?: (fileIndex: number, fileName: string) => string;
|
|
78
|
+
limitShowFewer?: string;
|
|
79
|
+
limitShowMore?: string;
|
|
80
|
+
errorIconAriaLabel?: string;
|
|
81
|
+
warningIconAriaLabel?: string;
|
|
82
|
+
formatFileSize?: (sizeInBytes: number) => string;
|
|
83
|
+
formatFileLastModified?: (date: Date) => string;
|
|
84
|
+
}
|
|
85
|
+
interface Ref {
|
|
86
|
+
/**
|
|
87
|
+
* Sets focus on the file upload button.
|
|
88
|
+
*/
|
|
89
|
+
focus(): void;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/file-upload/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,yEAAyE;IACzE,6EAA6E;IAC7E;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;IAC1C;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;IAC5C;;OAEG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC;IACxD;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC;CAC3C;AACD,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,UAAU,YAAY;QACpB,KAAK,EAAE,IAAI,EAAE,CAAC;KACf;IACD,UAAU,aAAa;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,IAAI,CAAC;KACZ;IACD,KAAK,kBAAkB,GAAG,UAAU,GAAG,YAAY,CAAC;IACpD,UAAU,WAAW;QACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,MAAM,CAAC;QACjD,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,MAAM,CAAC;QAC7C,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;QACtE,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;QACjD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;KACjD;IACD,UAAU,GAAG;QACX;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|