@cloudscape-design/components 3.0.1316 → 3.0.1318
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/action-card/interfaces.d.ts +3 -3
- package/action-card/interfaces.d.ts.map +1 -1
- package/action-card/interfaces.js.map +1 -1
- package/alert/interfaces.d.ts +3 -3
- package/alert/interfaces.d.ts.map +1 -1
- package/alert/interfaces.js.map +1 -1
- package/anchor-navigation/interfaces.d.ts +2 -2
- package/anchor-navigation/interfaces.d.ts.map +1 -1
- package/anchor-navigation/interfaces.js.map +1 -1
- package/annotation-context/interfaces.d.ts +1 -1
- package/annotation-context/interfaces.d.ts.map +1 -1
- package/annotation-context/interfaces.js.map +1 -1
- package/app-layout/classic.d.ts +1 -1
- package/app-layout/drawer/overflow-menu.d.ts +1 -1
- package/app-layout/drawer/overflow-menu.d.ts.map +1 -1
- package/app-layout/drawer/overflow-menu.js.map +1 -1
- package/app-layout/index.js.map +1 -1
- package/app-layout/interfaces.d.ts +3 -3
- package/app-layout/interfaces.d.ts.map +1 -1
- package/app-layout/interfaces.js.map +1 -1
- package/app-layout/internal.d.ts +1 -1
- package/app-layout/runtime-drawer/index.d.ts +1 -1
- package/app-layout/runtime-drawer/index.d.ts.map +1 -1
- package/app-layout/runtime-drawer/index.js.map +1 -1
- package/app-layout/visual-refresh/index.d.ts +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts +4 -4
- package/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.d.ts +4 -4
- package/app-layout-toolbar/index.js.map +1 -1
- package/area-chart/elements/use-highlight-details.d.ts +1 -1
- package/area-chart/elements/use-highlight-details.d.ts.map +1 -1
- package/area-chart/elements/use-highlight-details.js.map +1 -1
- package/area-chart/interfaces.d.ts +1 -1
- package/area-chart/interfaces.d.ts.map +1 -1
- package/area-chart/interfaces.js.map +1 -1
- package/area-chart/model/compute-chart-props.d.ts +2 -2
- package/area-chart/model/compute-chart-props.d.ts.map +1 -1
- package/area-chart/model/compute-chart-props.js +2 -0
- package/area-chart/model/compute-chart-props.js.map +1 -1
- package/area-chart/model/index.d.ts +1 -1
- package/area-chart/model/index.d.ts.map +1 -1
- package/area-chart/model/index.js.map +1 -1
- package/area-chart/model/use-chart-model.d.ts +1 -1
- package/area-chart/model/use-chart-model.d.ts.map +1 -1
- package/area-chart/model/use-chart-model.js.map +1 -1
- package/area-chart/model/use-filter-props.d.ts +1 -1
- package/area-chart/model/use-filter-props.d.ts.map +1 -1
- package/area-chart/model/use-filter-props.js.map +1 -1
- package/area-chart/model/use-highlight-props.d.ts +1 -1
- package/area-chart/model/use-highlight-props.d.ts.map +1 -1
- package/area-chart/model/use-highlight-props.js.map +1 -1
- package/area-chart/model/utils.d.ts +1 -1
- package/area-chart/model/utils.d.ts.map +1 -1
- package/area-chart/model/utils.js.map +1 -1
- package/attribute-editor/interfaces.d.ts +3 -3
- package/attribute-editor/interfaces.d.ts.map +1 -1
- package/attribute-editor/interfaces.js.map +1 -1
- package/attribute-editor/row.d.ts +2 -2
- package/attribute-editor/row.d.ts.map +1 -1
- package/attribute-editor/row.js.map +1 -1
- package/autosuggest/autosuggest-option.d.ts +1 -1
- package/autosuggest/autosuggest-option.d.ts.map +1 -1
- package/autosuggest/autosuggest-option.js.map +1 -1
- package/autosuggest/interfaces.d.ts +5 -5
- package/autosuggest/interfaces.d.ts.map +1 -1
- package/autosuggest/interfaces.js.map +1 -1
- package/autosuggest/internal.d.ts.map +1 -1
- package/autosuggest/internal.js +1 -1
- package/autosuggest/internal.js.map +1 -1
- package/autosuggest/load-more-controller.d.ts +1 -1
- package/autosuggest/load-more-controller.d.ts.map +1 -1
- package/autosuggest/load-more-controller.js.map +1 -1
- package/badge/interfaces.d.ts +2 -2
- package/badge/interfaces.d.ts.map +1 -1
- package/badge/interfaces.js.map +1 -1
- package/bar-chart/interfaces.d.ts +1 -1
- package/bar-chart/interfaces.d.ts.map +1 -1
- package/bar-chart/interfaces.js.map +1 -1
- package/box/interfaces.d.ts +2 -2
- package/box/interfaces.d.ts.map +1 -1
- package/box/interfaces.js.map +1 -1
- package/breadcrumb-group/all-items-dropdown.d.ts +1 -1
- package/breadcrumb-group/all-items-dropdown.d.ts.map +1 -1
- package/breadcrumb-group/all-items-dropdown.js.map +1 -1
- package/breadcrumb-group/interfaces.d.ts +2 -2
- package/breadcrumb-group/interfaces.d.ts.map +1 -1
- package/breadcrumb-group/interfaces.js.map +1 -1
- package/button/interfaces.d.ts +3 -3
- package/button/interfaces.d.ts.map +1 -1
- package/button/interfaces.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +3 -3
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/utils/use-button-dropdown.d.ts +1 -1
- package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
- package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
- package/button-group/file-input-item.d.ts +1 -1
- package/button-group/file-input-item.d.ts.map +1 -1
- package/button-group/file-input-item.js.map +1 -1
- package/button-group/icon-button-item.d.ts +1 -1
- package/button-group/icon-button-item.d.ts.map +1 -1
- package/button-group/icon-button-item.js +1 -1
- package/button-group/icon-button-item.js.map +1 -1
- package/button-group/icon-toggle-button-item.d.ts +1 -1
- package/button-group/icon-toggle-button-item.d.ts.map +1 -1
- package/button-group/icon-toggle-button-item.js.map +1 -1
- package/button-group/interfaces.d.ts +10 -2
- package/button-group/interfaces.d.ts.map +1 -1
- package/button-group/interfaces.js.map +1 -1
- package/button-group/item-element.d.ts +1 -1
- package/button-group/item-element.d.ts.map +1 -1
- package/button-group/item-element.js.map +1 -1
- package/button-group/menu-dropdown-item.d.ts +1 -1
- package/button-group/menu-dropdown-item.d.ts.map +1 -1
- package/button-group/menu-dropdown-item.js.map +1 -1
- package/calendar/interfaces.d.ts +3 -3
- package/calendar/interfaces.d.ts.map +1 -1
- package/calendar/interfaces.js.map +1 -1
- package/cards/interfaces.d.ts +2 -2
- package/cards/interfaces.d.ts.map +1 -1
- package/cards/interfaces.js.map +1 -1
- package/checkbox/base-checkbox.d.ts +3 -3
- package/checkbox/base-checkbox.d.ts.map +1 -1
- package/checkbox/base-checkbox.js.map +1 -1
- package/checkbox/interfaces.d.ts +2 -2
- package/checkbox/interfaces.d.ts.map +1 -1
- package/checkbox/interfaces.js.map +1 -1
- package/code-editor/error-screen.d.ts +1 -1
- package/code-editor/error-screen.d.ts.map +1 -1
- package/code-editor/error-screen.js.map +1 -1
- package/code-editor/interfaces.d.ts +3 -3
- package/code-editor/interfaces.d.ts.map +1 -1
- package/code-editor/interfaces.js.map +1 -1
- package/code-editor/listeners.d.ts +1 -1
- package/code-editor/listeners.d.ts.map +1 -1
- package/code-editor/listeners.js.map +1 -1
- package/code-editor/preferences-modal.js.map +1 -1
- package/collection-preferences/interfaces.d.ts +4 -4
- package/collection-preferences/interfaces.d.ts.map +1 -1
- package/collection-preferences/interfaces.js.map +1 -1
- package/column-layout/interfaces.d.ts +1 -1
- package/column-layout/interfaces.d.ts.map +1 -1
- package/column-layout/interfaces.js.map +1 -1
- package/container/interfaces.d.ts +1 -1
- package/container/interfaces.d.ts.map +1 -1
- package/container/interfaces.js.map +1 -1
- package/content-layout/interfaces.d.ts +1 -1
- package/content-layout/interfaces.d.ts.map +1 -1
- package/content-layout/interfaces.js.map +1 -1
- package/contexts/form-field.d.ts +2 -1
- package/contexts/form-field.d.ts.map +1 -1
- package/contexts/form-field.js +1 -1
- package/contexts/form-field.js.map +1 -1
- package/copy-to-clipboard/interfaces.d.ts +2 -2
- package/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/copy-to-clipboard/interfaces.js.map +1 -1
- package/date-input/interfaces.d.ts +3 -3
- package/date-input/interfaces.d.ts.map +1 -1
- package/date-input/interfaces.js.map +1 -1
- package/date-input/internal.d.ts.map +1 -1
- package/date-input/internal.js.map +1 -1
- package/date-picker/interfaces.d.ts +4 -4
- package/date-picker/interfaces.d.ts.map +1 -1
- package/date-picker/interfaces.js.map +1 -1
- package/date-range-picker/calendar/interfaces.d.ts +1 -1
- package/date-range-picker/calendar/interfaces.d.ts.map +1 -1
- package/date-range-picker/calendar/interfaces.js.map +1 -1
- package/date-range-picker/interfaces.d.ts +4 -4
- package/date-range-picker/interfaces.d.ts.map +1 -1
- package/date-range-picker/interfaces.js.map +1 -1
- package/divider/interfaces.d.ts +2 -2
- package/divider/interfaces.d.ts.map +1 -1
- package/divider/interfaces.js.map +1 -1
- package/drawer/interfaces.d.ts +2 -2
- package/drawer/interfaces.d.ts.map +1 -1
- package/drawer/interfaces.js.map +1 -1
- package/dropdown/interfaces.d.ts +1 -1
- package/dropdown/interfaces.d.ts.map +1 -1
- package/dropdown/interfaces.js.map +1 -1
- package/dropdown/internal.d.ts +1 -1
- package/dropdown/internal.d.ts.map +1 -1
- package/dropdown/internal.js.map +1 -1
- package/error-boundary/interfaces.d.ts +1 -1
- package/error-boundary/interfaces.d.ts.map +1 -1
- package/error-boundary/interfaces.js.map +1 -1
- package/expandable-section/interfaces.d.ts +2 -2
- package/expandable-section/interfaces.d.ts.map +1 -1
- package/expandable-section/interfaces.js.map +1 -1
- package/file-dropzone/interfaces.d.ts +2 -2
- package/file-dropzone/interfaces.d.ts.map +1 -1
- package/file-dropzone/interfaces.js.map +1 -1
- package/file-input/interfaces.d.ts +3 -3
- package/file-input/interfaces.d.ts.map +1 -1
- package/file-input/interfaces.js.map +1 -1
- package/file-token-group/file-token.d.ts +1 -1
- package/file-token-group/file-token.d.ts.map +1 -1
- package/file-token-group/file-token.js.map +1 -1
- package/file-token-group/interfaces.d.ts +2 -2
- package/file-token-group/interfaces.d.ts.map +1 -1
- package/file-token-group/interfaces.js.map +1 -1
- package/file-upload/interfaces.d.ts +3 -3
- package/file-upload/interfaces.d.ts.map +1 -1
- package/file-upload/interfaces.js.map +1 -1
- package/flashbar/common.d.ts +1 -1
- package/flashbar/interfaces.d.ts +2 -2
- package/flashbar/interfaces.d.ts.map +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/form/interfaces.d.ts +2 -2
- package/form/interfaces.d.ts.map +1 -1
- package/form/interfaces.js.map +1 -1
- package/form-field/interfaces.d.ts +2 -2
- package/form-field/interfaces.d.ts.map +1 -1
- package/form-field/interfaces.js.map +1 -1
- package/grid/interfaces.d.ts +2 -2
- package/grid/interfaces.d.ts.map +1 -1
- package/grid/interfaces.js.map +1 -1
- package/grid/internal.d.ts +1 -1
- package/grid/internal.d.ts.map +1 -1
- package/grid/internal.js.map +1 -1
- package/header/interfaces.d.ts +1 -1
- package/header/interfaces.d.ts.map +1 -1
- package/header/interfaces.js.map +1 -1
- package/help-panel/interfaces.d.ts +1 -1
- package/help-panel/interfaces.d.ts.map +1 -1
- package/help-panel/interfaces.js.map +1 -1
- package/hotspot/interfaces.d.ts +1 -1
- package/hotspot/interfaces.d.ts.map +1 -1
- package/hotspot/interfaces.js.map +1 -1
- package/icon/generated/icons.d.ts +2 -0
- package/icon/generated/icons.d.ts.map +1 -1
- package/icon/generated/icons.js +7 -0
- package/icon/generated/icons.js.map +1 -1
- package/icon/interfaces.d.ts +2 -2
- package/icon/interfaces.d.ts.map +1 -1
- package/icon/interfaces.js.map +1 -1
- package/icon-provider/interfaces.d.ts +2 -2
- package/icon-provider/interfaces.d.ts.map +1 -1
- package/icon-provider/interfaces.js.map +1 -1
- package/input/interfaces.d.ts +4 -4
- package/input/interfaces.d.ts.map +1 -1
- package/input/interfaces.js.map +1 -1
- package/input/internal.d.ts +3 -3
- package/input/internal.d.ts.map +1 -1
- package/input/internal.js.map +1 -1
- package/interfaces.d.ts +1 -1
- package/interfaces.d.ts.map +1 -1
- package/interfaces.js.map +1 -1
- package/internal/analytics/components/analytics-funnel.d.ts +2 -1
- package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
- package/internal/analytics/components/analytics-funnel.js.map +1 -1
- package/internal/analytics/context/analytics-context.d.ts +2 -1
- package/internal/analytics/context/analytics-context.d.ts.map +1 -1
- package/internal/analytics/context/analytics-context.js.map +1 -1
- package/internal/analytics/interfaces.d.ts +2 -15
- package/internal/analytics/interfaces.d.ts.map +1 -1
- package/internal/analytics/interfaces.js.map +1 -1
- package/internal/base-component/index.d.ts +4 -16
- package/internal/base-component/index.d.ts.map +1 -1
- package/internal/base-component/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/breakpoints.d.ts +3 -2
- package/internal/breakpoints.d.ts.map +1 -1
- package/internal/breakpoints.js.map +1 -1
- package/internal/components/autosuggest-input/index.d.ts +3 -3
- package/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/components/button-trigger/index.d.ts +2 -2
- package/internal/components/button-trigger/index.d.ts.map +1 -1
- package/internal/components/button-trigger/index.js.map +1 -1
- package/internal/components/cartesian-chart/block-end-labels.d.ts +1 -1
- package/internal/components/cartesian-chart/block-end-labels.d.ts.map +1 -1
- package/internal/components/cartesian-chart/block-end-labels.js.map +1 -1
- package/internal/components/cartesian-chart/interfaces.d.ts +1 -209
- package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
- package/internal/components/cartesian-chart/interfaces.js +2 -0
- package/internal/components/cartesian-chart/interfaces.js.map +1 -1
- package/internal/components/cartesian-chart/label-utils.d.ts +1 -1
- package/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
- package/internal/components/cartesian-chart/label-utils.js.map +1 -1
- package/internal/components/cartesian-chart/scales.d.ts +1 -1
- package/internal/components/cartesian-chart/scales.d.ts.map +1 -1
- package/internal/components/cartesian-chart/scales.js +0 -2
- package/internal/components/cartesian-chart/scales.js.map +1 -1
- package/internal/components/cartesian-chart/ticks.d.ts +1 -1
- package/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
- package/internal/components/cartesian-chart/ticks.js.map +1 -1
- package/internal/components/chart-filter/index.d.ts +1 -1
- package/internal/components/chart-filter/index.d.ts.map +1 -1
- package/internal/components/chart-filter/index.js.map +1 -1
- package/internal/components/chart-series-details/index.d.ts +1 -1
- package/internal/components/chart-series-details/index.d.ts.map +1 -1
- package/internal/components/chart-series-details/index.js.map +1 -1
- package/internal/components/chart-series-marker/index.d.ts +1 -1
- package/internal/components/chart-series-marker/index.d.ts.map +1 -1
- package/internal/components/chart-series-marker/index.js.map +1 -1
- package/internal/components/chart-status-container/index.d.ts +2 -2
- package/internal/components/chart-status-container/index.d.ts.map +1 -1
- package/internal/components/chart-status-container/index.js.map +1 -1
- package/internal/components/chart-wrapper/index.d.ts +1 -1
- package/internal/components/chart-wrapper/index.d.ts.map +1 -1
- package/internal/components/chart-wrapper/index.js.map +1 -1
- package/internal/components/checkbox-icon/index.d.ts +1 -1
- package/internal/components/checkbox-icon/index.d.ts.map +1 -1
- package/internal/components/checkbox-icon/index.js.map +1 -1
- package/internal/components/dropdown-status/index.d.ts +4 -4
- package/internal/components/dropdown-status/index.d.ts.map +1 -1
- package/internal/components/dropdown-status/index.js.map +1 -1
- package/internal/components/masked-input/interfaces.d.ts +2 -2
- package/internal/components/masked-input/interfaces.d.ts.map +1 -1
- package/internal/components/masked-input/interfaces.js.map +1 -1
- package/internal/components/masked-input/use-mask.d.ts +1 -1
- package/internal/components/masked-input/use-mask.d.ts.map +1 -1
- package/internal/components/masked-input/use-mask.js.map +1 -1
- package/internal/components/option/interfaces.d.ts +3 -26
- package/internal/components/option/interfaces.d.ts.map +1 -1
- package/internal/components/option/interfaces.js.map +1 -1
- package/internal/components/option/option-announcer.d.ts +1 -1
- package/internal/components/option/option-announcer.d.ts.map +1 -1
- package/internal/components/option/option-announcer.js.map +1 -1
- package/internal/components/option/utils/filter-options.d.ts +2 -1
- package/internal/components/option/utils/filter-options.d.ts.map +1 -1
- package/internal/components/option/utils/filter-options.js.map +1 -1
- package/internal/components/option/utils/flatten-options.d.ts +2 -1
- package/internal/components/option/utils/flatten-options.d.ts.map +1 -1
- package/internal/components/option/utils/flatten-options.js.map +1 -1
- package/internal/components/options-list/index.d.ts +3 -3
- package/internal/components/options-list/index.d.ts.map +1 -1
- package/internal/components/options-list/index.js +1 -1
- package/internal/components/options-list/index.js.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.d.ts +1 -1
- package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
- package/internal/components/radio-button/index.d.ts +1 -1
- package/internal/components/radio-button/index.d.ts.map +1 -1
- package/internal/components/radio-button/index.js.map +1 -1
- package/internal/components/radio-button/interfaces.d.ts +1 -128
- package/internal/components/radio-button/interfaces.d.ts.map +1 -1
- package/internal/components/radio-button/interfaces.js +2 -0
- package/internal/components/radio-button/interfaces.js.map +1 -1
- package/internal/components/selectable-item/interfaces.d.ts +1 -1
- package/internal/components/selectable-item/interfaces.d.ts.map +1 -1
- package/internal/components/selectable-item/interfaces.js.map +1 -1
- package/internal/components/sortable-area/interfaces.d.ts +3 -9
- package/internal/components/sortable-area/interfaces.d.ts.map +1 -1
- package/internal/components/sortable-area/interfaces.js.map +1 -1
- package/internal/components/token-list/token-limit-toggle.d.ts +1 -1
- package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
- package/internal/components/token-list/token-limit-toggle.js.map +1 -1
- package/internal/context/form-field-context.d.ts +3 -55
- package/internal/context/form-field-context.d.ts.map +1 -1
- package/internal/context/form-field-context.js.map +1 -1
- package/internal/do-not-use/feature-prompt/interfaces.d.ts +1 -1
- package/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -1
- package/internal/do-not-use/feature-prompt/interfaces.js.map +1 -1
- package/internal/do-not-use/feature-prompt/internal.d.ts +1 -1
- package/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -1
- package/internal/do-not-use/feature-prompt/internal.js.map +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/events/index.d.ts +2 -24
- package/internal/events/index.d.ts.map +1 -1
- package/internal/events/index.js.map +1 -1
- package/internal/generated/theming/index.cjs +6 -0
- package/internal/generated/theming/index.cjs.d.ts +27 -0
- package/internal/generated/theming/index.d.ts +27 -0
- package/internal/generated/theming/index.js +6 -0
- package/internal/hooks/check-controlled/index.d.ts +1 -1
- package/internal/hooks/check-controlled/index.d.ts.map +1 -1
- package/internal/hooks/check-controlled/index.js.map +1 -1
- package/internal/hooks/container-queries/use-container-breakpoints.d.ts +1 -1
- package/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
- package/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
- package/internal/hooks/use-base-component/index.d.ts +1 -1
- package/internal/hooks/use-base-component/index.d.ts.map +1 -1
- package/internal/hooks/use-base-component/index.js.map +1 -1
- package/internal/hooks/use-focus-tracker.d.ts +1 -1
- package/internal/hooks/use-focus-tracker.d.ts.map +1 -1
- package/internal/hooks/use-focus-tracker.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/controllers/drawers.d.ts +1 -1
- package/internal/plugins/controllers/drawers.d.ts.map +1 -1
- package/internal/plugins/controllers/drawers.js.map +1 -1
- package/internal/plugins/widget/interfaces.d.ts +1 -1
- package/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/internal/plugins/widget/interfaces.js.map +1 -1
- package/internal/utils/date-time/interfaces.d.ts +1 -16
- package/internal/utils/date-time/interfaces.d.ts.map +1 -1
- package/internal/utils/date-time/interfaces.js.map +1 -1
- package/internal/utils/with-native-attributes.d.ts +3 -2
- package/internal/utils/with-native-attributes.d.ts.map +1 -1
- package/internal/utils/with-native-attributes.js.map +1 -1
- package/item-card/interfaces.d.ts +2 -2
- package/item-card/interfaces.d.ts.map +1 -1
- package/item-card/interfaces.js.map +1 -1
- package/key-value-pairs/interfaces.d.ts +1 -1
- package/key-value-pairs/interfaces.d.ts.map +1 -1
- package/key-value-pairs/interfaces.js.map +1 -1
- package/link/interfaces.d.ts +3 -3
- package/link/interfaces.d.ts.map +1 -1
- package/link/interfaces.js.map +1 -1
- package/list/interfaces.d.ts +3 -3
- package/list/interfaces.d.ts.map +1 -1
- package/list/interfaces.js.map +1 -1
- package/live-region/interfaces.d.ts +1 -1
- package/live-region/interfaces.d.ts.map +1 -1
- package/live-region/interfaces.js.map +1 -1
- package/manifest.json +2 -2
- package/mixed-line-bar-chart/chart-container.d.ts +1 -1
- package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/mixed-line-bar-chart/format-highlighted.d.ts +1 -1
- package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
- package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
- package/mixed-line-bar-chart/interfaces.d.ts +1 -1
- package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
- package/mixed-line-bar-chart/interfaces.js.map +1 -1
- package/modal/interfaces.d.ts +3 -3
- package/modal/interfaces.d.ts.map +1 -1
- package/modal/interfaces.js.map +1 -1
- package/multiselect/embedded.d.ts +2 -2
- package/multiselect/interfaces.d.ts +2 -2
- package/multiselect/interfaces.d.ts.map +1 -1
- package/multiselect/interfaces.js.map +1 -1
- package/multiselect/internal.d.ts +1 -1
- package/multiselect/use-multiselect.d.ts +8 -8
- package/multiselect/use-multiselect.d.ts.map +1 -1
- package/multiselect/use-multiselect.js.map +1 -1
- package/navigable-group/interfaces.d.ts +1 -1
- package/navigable-group/interfaces.d.ts.map +1 -1
- package/navigable-group/interfaces.js.map +1 -1
- package/package.json +1 -1
- package/pagination/interfaces.d.ts +1 -1
- package/pagination/interfaces.d.ts.map +1 -1
- package/pagination/interfaces.js.map +1 -1
- package/pagination/internal.d.ts.map +1 -1
- package/pagination/internal.js.map +1 -1
- package/panel-layout/interfaces.d.ts +2 -2
- package/panel-layout/interfaces.d.ts.map +1 -1
- package/panel-layout/interfaces.js.map +1 -1
- package/pie-chart/interfaces.d.ts +2 -2
- package/pie-chart/interfaces.d.ts.map +1 -1
- package/pie-chart/interfaces.js.map +1 -1
- package/popover/interfaces.d.ts +1 -1
- package/popover/interfaces.d.ts.map +1 -1
- package/popover/interfaces.js.map +1 -1
- package/popover/internal.d.ts +1 -1
- package/popover/internal.d.ts.map +1 -1
- package/popover/internal.js.map +1 -1
- package/progress-bar/interfaces.d.ts +2 -2
- package/progress-bar/interfaces.d.ts.map +1 -1
- package/progress-bar/interfaces.js.map +1 -1
- package/prompt-input/core/menu-state.d.ts +2 -2
- package/prompt-input/core/menu-state.d.ts.map +1 -1
- package/prompt-input/core/menu-state.js.map +1 -1
- package/prompt-input/interfaces.d.ts +6 -6
- package/prompt-input/interfaces.d.ts.map +1 -1
- package/prompt-input/interfaces.js.map +1 -1
- package/property-filter/controller.d.ts +2 -2
- package/property-filter/controller.d.ts.map +1 -1
- package/property-filter/controller.js.map +1 -1
- package/property-filter/filter-options.js.map +1 -1
- package/property-filter/interfaces.d.ts +4 -4
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/property-editor.d.ts +2 -2
- package/property-filter/property-editor.d.ts.map +1 -1
- package/property-filter/property-editor.js.map +1 -1
- package/property-filter/property-filter-autosuggest.d.ts +1 -1
- package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
- package/property-filter/property-filter-autosuggest.js +1 -1
- package/property-filter/property-filter-autosuggest.js.map +1 -1
- package/property-filter/token-editor-inputs.d.ts +2 -2
- package/property-filter/token-editor-inputs.d.ts.map +1 -1
- package/property-filter/token-editor-inputs.js.map +1 -1
- package/property-filter/token-editor.d.ts +2 -2
- package/property-filter/token-editor.d.ts.map +1 -1
- package/property-filter/token-editor.js.map +1 -1
- package/property-filter/token.d.ts +2 -2
- package/property-filter/token.d.ts.map +1 -1
- package/property-filter/token.js.map +1 -1
- package/property-filter/use-load-items.d.ts +1 -1
- package/property-filter/use-load-items.d.ts.map +1 -1
- package/property-filter/use-load-items.js.map +1 -1
- package/radio-button/interfaces.d.ts +128 -2
- package/radio-button/interfaces.d.ts.map +1 -1
- package/radio-button/interfaces.js.map +1 -1
- package/radio-group/interfaces.d.ts +4 -4
- package/radio-group/interfaces.d.ts.map +1 -1
- package/radio-group/interfaces.js.map +1 -1
- package/s3-resource-selector/interfaces.d.ts +2 -2
- package/s3-resource-selector/interfaces.d.ts.map +1 -1
- package/s3-resource-selector/interfaces.js.map +1 -1
- package/s3-resource-selector/s3-in-context/index.d.ts +1 -1
- package/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
- package/s3-resource-selector/s3-in-context/index.js.map +1 -1
- package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +1 -1
- package/segmented-control/interfaces.d.ts +2 -2
- package/segmented-control/interfaces.d.ts.map +1 -1
- package/segmented-control/interfaces.js.map +1 -1
- package/select/interfaces.d.ts +5 -5
- package/select/interfaces.d.ts.map +1 -1
- package/select/interfaces.js.map +1 -1
- package/select/internal.d.ts.map +1 -1
- package/select/internal.js.map +1 -1
- package/select/parts/item.d.ts.map +1 -1
- package/select/parts/item.js.map +1 -1
- package/select/parts/multiselect-item.d.ts.map +1 -1
- package/select/parts/multiselect-item.js.map +1 -1
- package/select/parts/trigger.d.ts +2 -2
- package/select/parts/trigger.d.ts.map +1 -1
- package/select/parts/trigger.js.map +1 -1
- package/select/utils/connect-options.d.ts +2 -1
- package/select/utils/connect-options.d.ts.map +1 -1
- package/select/utils/connect-options.js.map +1 -1
- package/select/utils/use-announcement.d.ts +1 -1
- package/select/utils/use-announcement.d.ts.map +1 -1
- package/select/utils/use-announcement.js.map +1 -1
- package/select/utils/use-load-items.d.ts +2 -2
- package/select/utils/use-load-items.d.ts.map +1 -1
- package/select/utils/use-load-items.js.map +1 -1
- package/select/utils/use-native-search.d.ts +2 -1
- package/select/utils/use-native-search.d.ts.map +1 -1
- package/select/utils/use-native-search.js.map +1 -1
- package/select/utils/use-select.d.ts +4 -3
- package/select/utils/use-select.d.ts.map +1 -1
- package/select/utils/use-select.js.map +1 -1
- package/side-navigation/interfaces.d.ts +2 -2
- package/side-navigation/interfaces.d.ts.map +1 -1
- package/side-navigation/interfaces.js.map +1 -1
- package/side-navigation/parts.d.ts.map +1 -1
- package/side-navigation/parts.js.map +1 -1
- package/skeleton/interfaces.d.ts +1 -1
- package/skeleton/interfaces.d.ts.map +1 -1
- package/skeleton/interfaces.js.map +1 -1
- package/slider/interfaces.d.ts +3 -3
- package/slider/interfaces.d.ts.map +1 -1
- package/slider/interfaces.js.map +1 -1
- package/space-between/interfaces.d.ts +2 -2
- package/space-between/interfaces.d.ts.map +1 -1
- package/space-between/interfaces.js.map +1 -1
- package/spinner/interfaces.d.ts +2 -2
- package/spinner/interfaces.d.ts.map +1 -1
- package/spinner/interfaces.js.map +1 -1
- package/split-panel/interfaces.d.ts +1 -1
- package/split-panel/interfaces.d.ts.map +1 -1
- package/split-panel/interfaces.js.map +1 -1
- package/status-indicator/interfaces.d.ts +2 -2
- package/status-indicator/interfaces.d.ts.map +1 -1
- package/status-indicator/interfaces.js.map +1 -1
- package/steps/interfaces.d.ts +1 -1
- package/steps/interfaces.d.ts.map +1 -1
- package/steps/interfaces.js.map +1 -1
- package/table/interfaces.d.ts +2 -2
- package/table/interfaces.d.ts.map +1 -1
- package/table/interfaces.js.map +1 -1
- package/table/thead.d.ts +1 -1
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js.map +1 -1
- package/table/use-cell-editing.d.ts +1 -1
- package/table/use-cell-editing.d.ts.map +1 -1
- package/table/use-cell-editing.js.map +1 -1
- package/tabs/interfaces.d.ts +2 -2
- package/tabs/interfaces.d.ts.map +1 -1
- package/tabs/interfaces.js.map +1 -1
- package/tag-editor/index.d.ts.map +1 -1
- package/tag-editor/index.js.map +1 -1
- package/tag-editor/interfaces.d.ts +2 -2
- package/tag-editor/interfaces.d.ts.map +1 -1
- package/tag-editor/interfaces.js.map +1 -1
- package/tag-editor/internal.js.map +1 -1
- package/text-content/interfaces.d.ts +1 -1
- package/text-content/interfaces.d.ts.map +1 -1
- package/text-content/interfaces.js.map +1 -1
- package/text-filter/interfaces.d.ts +3 -3
- package/text-filter/interfaces.d.ts.map +1 -1
- package/text-filter/interfaces.js.map +1 -1
- package/textarea/interfaces.d.ts +4 -4
- package/textarea/interfaces.d.ts.map +1 -1
- package/textarea/interfaces.js.map +1 -1
- package/tiles/interfaces.d.ts +4 -4
- package/tiles/interfaces.d.ts.map +1 -1
- package/tiles/interfaces.js.map +1 -1
- package/time-input/interfaces.d.ts +2 -2
- package/time-input/interfaces.d.ts.map +1 -1
- package/time-input/interfaces.js.map +1 -1
- package/toggle/interfaces.d.ts +2 -2
- package/toggle/interfaces.d.ts.map +1 -1
- package/toggle/interfaces.js.map +1 -1
- package/toggle-button/interfaces.d.ts +2 -2
- package/toggle-button/interfaces.d.ts.map +1 -1
- package/toggle-button/interfaces.js.map +1 -1
- package/token/dismiss-button.d.ts +1 -1
- package/token/dismiss-button.d.ts.map +1 -1
- package/token/dismiss-button.js.map +1 -1
- package/token/interfaces.d.ts +2 -2
- package/token/interfaces.d.ts.map +1 -1
- package/token/interfaces.js.map +1 -1
- package/token-group/interfaces.d.ts +2 -2
- package/token-group/interfaces.d.ts.map +1 -1
- package/token-group/interfaces.js.map +1 -1
- package/tooltip/interfaces.d.ts +1 -1
- package/tooltip/interfaces.d.ts.map +1 -1
- package/tooltip/interfaces.js.map +1 -1
- package/top-navigation/interfaces.d.ts +2 -2
- package/top-navigation/interfaces.d.ts.map +1 -1
- package/top-navigation/interfaces.js.map +1 -1
- package/tree-view/interfaces.d.ts +2 -2
- package/tree-view/interfaces.d.ts.map +1 -1
- package/tree-view/interfaces.js.map +1 -1
- package/truncated-text/interfaces.d.ts +1 -1
- package/truncated-text/interfaces.d.ts.map +1 -1
- package/truncated-text/interfaces.js.map +1 -1
- package/tutorial-panel/index.js.map +1 -1
- package/tutorial-panel/interfaces.d.ts +2 -2
- package/tutorial-panel/interfaces.d.ts.map +1 -1
- package/tutorial-panel/interfaces.js.map +1 -1
- package/types/analytics.d.ts +15 -0
- package/types/analytics.d.ts.map +1 -0
- package/types/analytics.js +4 -0
- package/types/analytics.js.map +1 -0
- package/types/base-component.d.ts +14 -0
- package/types/base-component.d.ts.map +1 -0
- package/types/base-component.js +4 -0
- package/types/base-component.js.map +1 -0
- package/types/breakpoint.d.ts +1 -0
- package/types/breakpoint.d.ts.map +1 -0
- package/types/breakpoint.js +2 -0
- package/types/breakpoint.js.map +1 -0
- package/types/cartesian-chart.d.ts +209 -0
- package/types/cartesian-chart.d.ts.map +1 -0
- package/types/cartesian-chart.js +2 -0
- package/types/cartesian-chart.js.map +1 -0
- package/types/date-time.d.ts +16 -0
- package/types/date-time.d.ts.map +1 -0
- package/types/date-time.js +4 -0
- package/types/date-time.js.map +1 -0
- package/types/dropdown-status.d.ts.map +1 -0
- package/types/dropdown-status.js +2 -0
- package/types/dropdown-status.js.map +1 -0
- package/types/events.d.ts +24 -0
- package/types/events.d.ts.map +1 -0
- package/types/events.js +4 -0
- package/types/events.js.map +1 -0
- package/types/form-field.d.ts +54 -0
- package/types/form-field.d.ts.map +1 -0
- package/types/form-field.js +4 -0
- package/types/form-field.js.map +1 -0
- package/types/native-attributes.d.ts +2 -0
- package/types/native-attributes.d.ts.map +1 -0
- package/types/native-attributes.js +2 -0
- package/types/native-attributes.js.map +1 -0
- package/types/option.d.ts +26 -0
- package/types/option.d.ts.map +1 -0
- package/types/option.js +2 -0
- package/types/option.js.map +1 -0
- package/types/sortable-area.d.ts +8 -0
- package/types/sortable-area.d.ts.map +1 -0
- package/types/sortable-area.js +4 -0
- package/types/sortable-area.js.map +1 -0
- package/wizard/interfaces.d.ts +3 -3
- package/wizard/interfaces.d.ts.map +1 -1
- package/wizard/interfaces.js.map +1 -1
- package/internal/components/dropdown-status/interfaces.d.ts.map +0 -1
- package/internal/components/dropdown-status/interfaces.js +0 -2
- package/internal/components/dropdown-status/interfaces.js.map +0 -1
- /package/{internal/components/dropdown-status/interfaces.d.ts → types/dropdown-status.d.ts} +0 -0
|
@@ -236,6 +236,9 @@ export declare interface TypedOverride {
|
|
|
236
236
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
237
237
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
238
238
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
239
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
240
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
241
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
239
242
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
240
243
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
241
244
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -663,6 +666,9 @@ export declare interface TypedOverride {
|
|
|
663
666
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
664
667
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
665
668
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
669
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
670
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
671
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
666
672
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
667
673
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
668
674
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1090,6 +1096,9 @@ export declare interface TypedOverride {
|
|
|
1090
1096
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1091
1097
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1092
1098
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1099
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1100
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1101
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1093
1102
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1094
1103
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1095
1104
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1517,6 +1526,9 @@ export declare interface TypedOverride {
|
|
|
1517
1526
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1518
1527
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1519
1528
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1529
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1530
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1531
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1520
1532
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1521
1533
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1522
1534
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1944,6 +1956,9 @@ export declare interface TypedOverride {
|
|
|
1944
1956
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1945
1957
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1946
1958
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1959
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1960
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1961
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1947
1962
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1948
1963
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1949
1964
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -2371,6 +2386,9 @@ export declare interface TypedOverride {
|
|
|
2371
2386
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2372
2387
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2373
2388
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2389
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2390
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2391
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2374
2392
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2375
2393
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2376
2394
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -2798,6 +2816,9 @@ export declare interface TypedOverride {
|
|
|
2798
2816
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2799
2817
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2800
2818
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2819
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2820
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2821
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2801
2822
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2802
2823
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2803
2824
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -3225,6 +3246,9 @@ export declare interface TypedOverride {
|
|
|
3225
3246
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3226
3247
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3227
3248
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3249
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3250
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3251
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3228
3252
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3229
3253
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3230
3254
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -3652,6 +3676,9 @@ export declare interface TypedOverride {
|
|
|
3652
3676
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3653
3677
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3654
3678
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3679
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3680
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3681
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3655
3682
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3656
3683
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3657
3684
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -236,6 +236,9 @@ export declare interface TypedOverride {
|
|
|
236
236
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
237
237
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
238
238
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
239
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
240
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
241
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
239
242
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
240
243
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
241
244
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -663,6 +666,9 @@ export declare interface TypedOverride {
|
|
|
663
666
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
664
667
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
665
668
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
669
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
670
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
671
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
666
672
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
667
673
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
668
674
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1090,6 +1096,9 @@ export declare interface TypedOverride {
|
|
|
1090
1096
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1091
1097
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1092
1098
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1099
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1100
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1101
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1093
1102
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1094
1103
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1095
1104
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1517,6 +1526,9 @@ export declare interface TypedOverride {
|
|
|
1517
1526
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1518
1527
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1519
1528
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1529
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1530
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1531
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1520
1532
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1521
1533
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1522
1534
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -1944,6 +1956,9 @@ export declare interface TypedOverride {
|
|
|
1944
1956
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1945
1957
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1946
1958
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1959
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1960
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1961
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1947
1962
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1948
1963
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1949
1964
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -2371,6 +2386,9 @@ export declare interface TypedOverride {
|
|
|
2371
2386
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2372
2387
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2373
2388
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2389
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2390
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2391
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2374
2392
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2375
2393
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2376
2394
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -2798,6 +2816,9 @@ export declare interface TypedOverride {
|
|
|
2798
2816
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2799
2817
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2800
2818
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2819
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2820
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2821
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2801
2822
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2802
2823
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2803
2824
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -3225,6 +3246,9 @@ export declare interface TypedOverride {
|
|
|
3225
3246
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3226
3247
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3227
3248
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3249
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3250
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3251
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3228
3252
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3229
3253
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3230
3254
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -3652,6 +3676,9 @@ export declare interface TypedOverride {
|
|
|
3652
3676
|
colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3653
3677
|
colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3654
3678
|
colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3679
|
+
colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3680
|
+
colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3681
|
+
colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3655
3682
|
colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3656
3683
|
colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
3657
3684
|
colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -14085,6 +14085,9 @@ export var preset = {
|
|
|
14085
14085
|
"colorTextDropdownItemHighlighted",
|
|
14086
14086
|
"colorTextDropdownItemSecondary",
|
|
14087
14087
|
"colorTextEmpty",
|
|
14088
|
+
"colorTextExpandableSectionDefault",
|
|
14089
|
+
"colorTextExpandableSectionHover",
|
|
14090
|
+
"colorTextExpandableSectionNavigationIconDefault",
|
|
14088
14091
|
"colorBorderExpandableSectionDefault",
|
|
14089
14092
|
"colorTextFormDefault",
|
|
14090
14093
|
"colorTextFormLabel",
|
|
@@ -14598,6 +14601,9 @@ export var preset = {
|
|
|
14598
14601
|
"colorTextDropdownItemHighlighted",
|
|
14599
14602
|
"colorTextDropdownItemSecondary",
|
|
14600
14603
|
"colorTextEmpty",
|
|
14604
|
+
"colorTextExpandableSectionDefault",
|
|
14605
|
+
"colorTextExpandableSectionHover",
|
|
14606
|
+
"colorTextExpandableSectionNavigationIconDefault",
|
|
14601
14607
|
"colorTextFormDefault",
|
|
14602
14608
|
"colorTextFormSecondary",
|
|
14603
14609
|
"colorTextGroupLabel",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NonCancelableEventHandler } from '
|
|
1
|
+
import { NonCancelableEventHandler } from '../../../types/events';
|
|
2
2
|
export default function checkControlled<ValueType, EventDetailType>(componentName: string, propertyName: string, propertyValue: ValueType | undefined, handlerName: string, handlerValue: NonCancelableEventHandler<EventDetailType> | undefined): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGlE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAS,EAAE,eAAe,EAChE,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,SAAS,GAAG,SAAS,EACpC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,yBAAyB,CAAC,eAAe,CAAC,GAAG,SAAS,QAQrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,aAAqB,EACrB,YAAoB,EACpB,aAAoC,EACpC,WAAmB,EACnB,YAAoE;IAEpE,IAAI,aAAa,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/E,QAAQ,CACN,aAAa,EACb,kBAAkB,YAAY,wBAAwB,WAAW,oGAAoG,WAAW,aAAa,CAC9L,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NonCancelableEventHandler } from '
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,aAAqB,EACrB,YAAoB,EACpB,aAAoC,EACpC,WAAmB,EACnB,YAAoE;IAEpE,IAAI,aAAa,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/E,QAAQ,CACN,aAAa,EACb,kBAAkB,YAAY,wBAAwB,WAAW,oGAAoG,WAAW,aAAa,CAC9L,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport { isDevelopment } from '../../is-development';\n\nexport default function checkControlled<ValueType, EventDetailType>(\n componentName: string,\n propertyName: string,\n propertyValue: ValueType | undefined,\n handlerName: string,\n handlerValue: NonCancelableEventHandler<EventDetailType> | undefined\n) {\n if (propertyValue !== undefined && handlerValue === undefined && isDevelopment) {\n warnOnce(\n componentName,\n `You provided \\`${propertyName}\\` prop without an \\`${handlerName}\\` handler. This will render a read-only component. If the component should be mutable, set an \\`${handlerName}\\` handler.`\n );\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Breakpoint } from '
|
|
2
|
+
import { Breakpoint } from '../../../types/breakpoint';
|
|
3
3
|
/**
|
|
4
4
|
* Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific
|
|
5
5
|
* breakpoints you want to break at. "default" is always included as a fallback, so ["xs"] would trigger for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-container-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"use-container-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,EAAE,CAAC,SAAS,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAOvG,CAAC,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-container-breakpoints.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-container-breakpoints.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAA2D,QAAY;IAC5G,+EAA+E;IAC/E,MAAM,WAAW,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC;IACrC,OAAO,iBAAiB,CACtB,CAAC,IAAI,EAAE,kBAAkB,EAAE,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,kBAAkB,CAAC;IACvG,uDAAuD;IACvD,CAAC,WAAW,CAAC,CACkC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nimport { Breakpoint } from '../../../types/breakpoint';\nimport { getMatchingBreakpoint } from '../../breakpoints';\n\n/**\n * Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific\n * breakpoints you want to break at. \"default\" is always included as a fallback, so [\"xs\"] would trigger for\n * \"default\" and \"xs\".\n *\n * @param triggers The relevant breakpoints to trigger for.\n */\nexport function useContainerBreakpoints<T extends readonly Breakpoint[], E extends Element = any>(triggers?: T) {\n // triggers.join() gives us a stable value to use for the dependencies argument\n const triggersDep = triggers?.join();\n return useContainerQuery(\n (rect, previousBreakpoint) => getMatchingBreakpoint(rect.contentBoxWidth, triggers, previousBreakpoint),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [triggersDep]\n ) as ['default' | T[number] | null, React.Ref<E>];\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentConfiguration } from '@cloudscape-design/component-toolkit/internal';
|
|
3
|
-
import { AnalyticsMetadata } from '
|
|
3
|
+
import { AnalyticsMetadata } from '../../../types/analytics';
|
|
4
4
|
export interface InternalBaseComponentProps {
|
|
5
5
|
__internalRootRef?: React.Ref<any>;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,sBAAsB,EAIvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,sBAAsB,EAIvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAM7D,MAAM,WAAW,0BAA0B;IAKzC,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,iBAAiB,CAAC,EAAE,iBAAiB;;EAatC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAUvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAqB,EACrB,MAA+B,EAC/B,iBAAqC;IAErC,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACtH,MAAM,UAAU,GAAG,oBAAoB,CACrC,aAAa,EACb,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,EAChE,iBAAwB,CACzB,CAAC;IACF,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n ComponentConfiguration,\n useComponentMetadata,\n useComponentMetrics,\n useFocusVisible,\n} from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAUvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAqB,EACrB,MAA+B,EAC/B,iBAAqC;IAErC,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACtH,MAAM,UAAU,GAAG,oBAAoB,CACrC,aAAa,EACb,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,EAChE,iBAAwB,CACzB,CAAC;IACF,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n ComponentConfiguration,\n useComponentMetadata,\n useComponentMetrics,\n useFocusVisible,\n} from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '../../../types/analytics';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION, THEME } from '../../environment';\nimport { getVisualTheme } from '../../utils/get-visual-theme';\nimport { useVisualRefresh } from '../use-visual-mode';\nimport { useMissingStylesCheck } from './styles-check';\n\nexport interface InternalBaseComponentProps {\n // Typescript requires Ref type to be exact DOM element type it is assigned to, e.g. HTMLDivElement\n // Typical community practice is explicit type casting: https://stackoverflow.com/questions/61102101/cannot-assign-refobjecthtmldivelement-to-refobjecthtmlelement-instance\n // To avoid doing this, we use any to skip type checks. Treat this type as pass through, never\n // read `__internalRootRef.current`, use your own refs if you need\n __internalRootRef?: React.Ref<any>;\n}\n\n/**\n * This hook is used for components which are exported to customers. The returned __internalRootRef needs to be\n * attached to the (internal) component's root DOM node. The hook takes care of attaching the metadata to this\n * root DOM node and emits the telemetry for this component.\n */\nexport default function useBaseComponent(\n componentName: string,\n config?: ComponentConfiguration,\n analyticsMetadata?: AnalyticsMetadata\n) {\n const isVisualRefresh = useVisualRefresh();\n const theme = getVisualTheme(THEME, isVisualRefresh);\n useComponentMetrics(componentName, { packageSource: PACKAGE_SOURCE, packageVersion: PACKAGE_VERSION, theme }, config);\n const elementRef = useComponentMetadata(\n componentName,\n { packageName: PACKAGE_SOURCE, version: PACKAGE_VERSION, theme },\n analyticsMetadata as any\n );\n useMissingStylesCheck(elementRef);\n useFocusVisible(elementRef);\n return { __internalRootRef: elementRef };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-tracker.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,OAAO,CAAC;AAE5D,OAAO,
|
|
1
|
+
{"version":3,"file":"use-focus-tracker.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAI/D,UAAU,eAAe;IACvB,CAAC,UAAU,EAAE;QACX,MAAM,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACzC,OAAO,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;KAC/C,GAAG,IAAI,CAAC;CACV;AAED,eAAO,MAAM,eAAe,EAAE,eAoB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-tracker.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"use-focus-tracker.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAU5C,MAAM,CAAC,MAAM,eAAe,GAAoB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,YAAY,CAAC,OAAO,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE;YACvD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,MAAM,CAAC,CAAC;YACjC,CAAC;YACD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;SACF,CAAC,CAAC;QACH,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,GAAG,EAAE;;YACV,MAAA,YAAY,CAAC,OAAO,0CAAE,OAAO,EAAE,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { MutableRefObject, useEffect, useRef } from 'react';\n\nimport { NonCancelableEventHandler } from '../../types/events';\nimport { fireNonCancelableEvent } from '../events';\nimport FocusTracker from '../focus-tracker';\n\ninterface UseFocusTracker {\n (inputProps: {\n onBlur?: NonCancelableEventHandler<any>;\n onFocus?: NonCancelableEventHandler<any>;\n rootRef: MutableRefObject<HTMLElement | null>;\n }): void;\n}\n\nexport const useFocusTracker: UseFocusTracker = ({ rootRef, onBlur, onFocus }) => {\n const focusTracker = useRef<FocusTracker | null>(null);\n\n useEffect(() => {\n if (!rootRef.current) {\n return;\n }\n focusTracker.current = new FocusTracker(rootRef.current, {\n onFocusLeave: () => {\n fireNonCancelableEvent(onBlur);\n },\n onFocusEnter: () => {\n fireNonCancelableEvent(onFocus);\n },\n });\n focusTracker.current.initialize();\n return () => {\n focusTracker.current?.destroy();\n };\n }, [rootRef, onBlur, onFocus]);\n};\n"]}
|
package/internal/manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';
|
|
2
|
-
import { NonCancelableEventHandler } from '
|
|
2
|
+
import { NonCancelableEventHandler } from '../../../types/events';
|
|
3
3
|
type DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;
|
|
4
4
|
interface MountContentContext {
|
|
5
5
|
onVisibilityChange: DrawerVisibilityChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/controllers/drawers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/controllers/drawers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;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AW,oCAAf,GAAG,CAAC,WAAW,GAAK,IAAI,CAAC,WAAW,EAAC;QACrC,MAAA,GAAG,CAAC,YAAY,oCAAhB,GAAG,CAAC,YAAY,GAAK,IAAI,CAAC,YAAY,EAAC;QACvC,MAAA,GAAG,CAAC,gCAAgC,oCAApC,GAAG,CAAC,gCAAgC,GAAK,IAAI,CAAC,gCAAgC,EAAC;QAC/E,OAAO,GAAuB,CAAC;IACjC,CAAC;IAED,eAAe,CAAC,cAA2C,EAAE;;QAC3D,MAAA,WAAW,CAAC,mBAAmB,oCAA/B,WAAW,CAAC,mBAAmB,GAAK,IAAI,CAAC,mBAAmB,EAAC;QAC7D,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,gBAAgB,oCAA5B,WAAW,CAAC,gBAAgB,GAAK,IAAI,CAAC,gBAAgB,EAAC;QACvD,MAAA,WAAW,CAAC,eAAe,oCAA3B,WAAW,CAAC,eAAe,GAAK,IAAI,CAAC,eAAe,EAAC;QACrD,OAAO,WAAiC,CAAC;IAC3C,CAAC;CACF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport debounce from '../../debounce';\nimport { NonCancelableEventHandler } from '../../events';\nimport { reportRuntimeApiWarning } from '../helpers/metrics';\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\nexport interface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerConfig {\n id: string;\n type?: 'local' | 'global';\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n };\n isExpandable?: boolean;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n orderPriority?: number;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n}\n\nconst updatableProperties = [\n 'badge',\n 'resizable',\n 'defaultSize',\n 'orderPriority',\n 'defaultActive',\n 'onResize',\n] as const;\n\nexport type UpdateDrawerConfig = { id: DrawerConfig['id'] } & Partial<\n Pick<DrawerConfig, (typeof updatableProperties)[number]>\n>;\n\ntype DrawersRegistrationListener = (drawers: Array<DrawerConfig>) => void;\ntype DrawersUpdateListener = (drawers: Array<DrawerConfig>) => void;\n\nexport type DrawersToggledListener = (drawerId: string, params?: OpenCloseDrawerParams) => void;\ntype DrawersResizeListener = (drawerId: string, size: number) => void;\n\ninterface OpenCloseDrawerParams {\n initiatedByUserAction: boolean;\n}\n\nexport interface DrawersApiPublic {\n registerDrawer(config: DrawerConfig): void;\n updateDrawer(config: UpdateDrawerConfig): void;\n openDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n closeDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n resizeDrawer(drawerId: string, size: number): void;\n clearRegisteredDrawersForTesting(): void;\n}\n\nexport interface DrawersApiInternal {\n onDrawersRegistered(listener: DrawersRegistrationListener): () => void;\n onDrawerOpened(listener: DrawersToggledListener): () => void;\n onDrawerClosed(listener: DrawersToggledListener): () => void;\n onDrawerResize(listener: DrawersResizeListener): () => void;\n onDrawersUpdated(listener: DrawersUpdateListener): void;\n getDrawersState(): Array<DrawerConfig>;\n}\n\nexport class DrawersController {\n private drawers: Array<DrawerConfig> = [];\n private drawersRegistrationListener: DrawersRegistrationListener | null = null;\n private drawerOpenedListener: DrawersToggledListener | null = null;\n private drawerClosedListener: DrawersToggledListener | null = null;\n private drawersUpdateListeners: Array<DrawersUpdateListener> = [];\n private drawerResizeListener: DrawersResizeListener | null = null;\n\n scheduleUpdate = debounce(() => {\n this.drawersRegistrationListener?.(this.drawers);\n this.drawersUpdateListeners.forEach(drawersUpdateListeners => {\n drawersUpdateListeners?.(this.drawers);\n });\n }, 0);\n\n registerDrawer = (config: DrawerConfig) => {\n if (this.drawers.find(drawer => drawer.id === config.id)) {\n reportRuntimeApiWarning('app-layout-drawers', `drawer with id \"${config.id}\" is already registered`);\n }\n this.drawers = this.drawers.concat(config);\n this.scheduleUpdate();\n };\n\n updateDrawer = ({ id: drawerId, ...rest }: UpdateDrawerConfig) => {\n const drawerIndex = this.drawers.findIndex(({ id }) => id === drawerId);\n const oldDrawerConfig = this.drawers?.[drawerIndex];\n if (!oldDrawerConfig) {\n throw new Error(`[AwsUi] [runtime drawers] drawer with id ${drawerId} not found`);\n }\n const drawers = this.drawers.slice();\n const updatedDrawer = { ...oldDrawerConfig };\n for (const key of updatableProperties) {\n if (key in rest) {\n updatedDrawer[key] = (rest as any)[key];\n }\n }\n drawers[drawerIndex] = updatedDrawer;\n this.drawers = drawers;\n this.scheduleUpdate();\n };\n\n onDrawersRegistered = (listener: DrawersRegistrationListener) => {\n if (this.drawersRegistrationListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawersRegistered'\n );\n }\n this.drawersRegistrationListener = listener;\n this.scheduleUpdate();\n return () => {\n this.drawersRegistrationListener = null;\n this.drawersUpdateListeners = [];\n };\n };\n\n clearRegisteredDrawersForTesting = () => {\n this.drawers = [];\n };\n\n onDrawerOpened = (listener: DrawersToggledListener) => {\n if (this.drawerOpenedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerOpened'\n );\n }\n\n this.drawerOpenedListener = listener;\n\n return () => {\n this.drawerOpenedListener = null;\n };\n };\n\n onDrawerClosed = (listener: DrawersToggledListener) => {\n if (this.drawerClosedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerClosed'\n );\n }\n\n this.drawerClosedListener = listener;\n\n return () => {\n this.drawerClosedListener = null;\n };\n };\n\n openDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerOpenedListener?.(drawerId, params);\n };\n\n closeDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerClosedListener?.(drawerId, params);\n };\n\n onDrawersUpdated = (listener: DrawersUpdateListener) => {\n this.drawersUpdateListeners.push(listener);\n\n return () => {\n this.drawersUpdateListeners = this.drawersUpdateListeners.filter(item => item !== listener);\n };\n };\n\n onDrawerResize = (listener: DrawersResizeListener) => {\n if (this.drawerResizeListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerResize'\n );\n }\n\n this.drawerResizeListener = listener;\n\n return () => {\n this.drawerResizeListener = null;\n };\n };\n\n resizeDrawer = (drawerId: string, size: number) => {\n this.drawerResizeListener?.(drawerId, size);\n };\n\n getDrawersState = () => {\n return this.drawers;\n };\n\n installPublic(api: Partial<DrawersApiPublic> = {}): DrawersApiPublic {\n api.registerDrawer ??= this.registerDrawer;\n api.updateDrawer ??= this.updateDrawer;\n api.openDrawer ??= this.openDrawer;\n api.closeDrawer ??= this.closeDrawer;\n api.resizeDrawer ??= this.resizeDrawer;\n api.clearRegisteredDrawersForTesting ??= this.clearRegisteredDrawersForTesting;\n return api as DrawersApiPublic;\n }\n\n installInternal(internalApi: Partial<DrawersApiInternal> = {}): DrawersApiInternal {\n internalApi.onDrawersRegistered ??= this.onDrawersRegistered;\n internalApi.onDrawerOpened ??= this.onDrawerOpened;\n internalApi.onDrawerClosed ??= this.onDrawerClosed;\n internalApi.onDrawerResize ??= this.onDrawerResize;\n internalApi.onDrawersUpdated ??= this.onDrawersUpdated;\n internalApi.getDrawersState ??= this.getDrawersState;\n return internalApi as DrawersApiInternal;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"drawers.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/controllers/drawers.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AA0C7D,MAAM,mBAAmB,GAAG;IAC1B,OAAO;IACP,WAAW;IACX,aAAa;IACb,eAAe;IACf,eAAe;IACf,UAAU;CACF,CAAC;AAkCX,MAAM,OAAO,iBAAiB;IAA9B;QACU,YAAO,GAAwB,EAAE,CAAC;QAClC,gCAA2B,GAAuC,IAAI,CAAC;QACvE,yBAAoB,GAAkC,IAAI,CAAC;QAC3D,yBAAoB,GAAkC,IAAI,CAAC;QAC3D,2BAAsB,GAAiC,EAAE,CAAC;QAC1D,yBAAoB,GAAiC,IAAI,CAAC;QAElE,mBAAc,GAAG,QAAQ,CAAC,GAAG,EAAE;;YAC7B,MAAA,IAAI,CAAC,2BAA2B,qDAAG,IAAI,CAAC,OAAO,CAAC,CAAC;YACjD,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE;gBAC3D,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAG,IAAI,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC,CAAC,CAAC;QACL,CAAC,EAAE,CAAC,CAAC,CAAC;QAEN,mBAAc,GAAG,CAAC,MAAoB,EAAE,EAAE;YACxC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,M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GAAG,CAAC,UAAU,GAAK,IAAI,CAAC,UAAU,EAAC;QACnC,MAAA,GAAG,CAAC,WAAW,oCAAf,GAAG,CAAC,WAAW,GAAK,IAAI,CAAC,WAAW,EAAC;QACrC,MAAA,GAAG,CAAC,YAAY,oCAAhB,GAAG,CAAC,YAAY,GAAK,IAAI,CAAC,YAAY,EAAC;QACvC,MAAA,GAAG,CAAC,gCAAgC,oCAApC,GAAG,CAAC,gCAAgC,GAAK,IAAI,CAAC,gCAAgC,EAAC;QAC/E,OAAO,GAAuB,CAAC;IACjC,CAAC;IAED,eAAe,CAAC,cAA2C,EAAE;;QAC3D,MAAA,WAAW,CAAC,mBAAmB,oCAA/B,WAAW,CAAC,mBAAmB,GAAK,IAAI,CAAC,mBAAmB,EAAC;QAC7D,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,gBAAgB,oCAA5B,WAAW,CAAC,gBAAgB,GAAK,IAAI,CAAC,gBAAgB,EAAC;QACvD,MAAA,WAAW,CAAC,eAAe,oCAA3B,WAAW,CAAC,eAAe,GAAK,IAAI,CAAC,eAAe,EAAC;QACrD,OAAO,WAAiC,CAAC;IAC3C,CAAC;CACF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport debounce from '../../debounce';\nimport { reportRuntimeApiWarning } from '../helpers/metrics';\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\nexport interface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerConfig {\n id: string;\n type?: 'local' | 'global';\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n };\n isExpandable?: boolean;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n orderPriority?: number;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n}\n\nconst updatableProperties = [\n 'badge',\n 'resizable',\n 'defaultSize',\n 'orderPriority',\n 'defaultActive',\n 'onResize',\n] as const;\n\nexport type UpdateDrawerConfig = { id: DrawerConfig['id'] } & Partial<\n Pick<DrawerConfig, (typeof updatableProperties)[number]>\n>;\n\ntype DrawersRegistrationListener = (drawers: Array<DrawerConfig>) => void;\ntype DrawersUpdateListener = (drawers: Array<DrawerConfig>) => void;\n\nexport type DrawersToggledListener = (drawerId: string, params?: OpenCloseDrawerParams) => void;\ntype DrawersResizeListener = (drawerId: string, size: number) => void;\n\ninterface OpenCloseDrawerParams {\n initiatedByUserAction: boolean;\n}\n\nexport interface DrawersApiPublic {\n registerDrawer(config: DrawerConfig): void;\n updateDrawer(config: UpdateDrawerConfig): void;\n openDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n closeDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n resizeDrawer(drawerId: string, size: number): void;\n clearRegisteredDrawersForTesting(): void;\n}\n\nexport interface DrawersApiInternal {\n onDrawersRegistered(listener: DrawersRegistrationListener): () => void;\n onDrawerOpened(listener: DrawersToggledListener): () => void;\n onDrawerClosed(listener: DrawersToggledListener): () => void;\n onDrawerResize(listener: DrawersResizeListener): () => void;\n onDrawersUpdated(listener: DrawersUpdateListener): void;\n getDrawersState(): Array<DrawerConfig>;\n}\n\nexport class DrawersController {\n private drawers: Array<DrawerConfig> = [];\n private drawersRegistrationListener: DrawersRegistrationListener | null = null;\n private drawerOpenedListener: DrawersToggledListener | null = null;\n private drawerClosedListener: DrawersToggledListener | null = null;\n private drawersUpdateListeners: Array<DrawersUpdateListener> = [];\n private drawerResizeListener: DrawersResizeListener | null = null;\n\n scheduleUpdate = debounce(() => {\n this.drawersRegistrationListener?.(this.drawers);\n this.drawersUpdateListeners.forEach(drawersUpdateListeners => {\n drawersUpdateListeners?.(this.drawers);\n });\n }, 0);\n\n registerDrawer = (config: DrawerConfig) => {\n if (this.drawers.find(drawer => drawer.id === config.id)) {\n reportRuntimeApiWarning('app-layout-drawers', `drawer with id \"${config.id}\" is already registered`);\n }\n this.drawers = this.drawers.concat(config);\n this.scheduleUpdate();\n };\n\n updateDrawer = ({ id: drawerId, ...rest }: UpdateDrawerConfig) => {\n const drawerIndex = this.drawers.findIndex(({ id }) => id === drawerId);\n const oldDrawerConfig = this.drawers?.[drawerIndex];\n if (!oldDrawerConfig) {\n throw new Error(`[AwsUi] [runtime drawers] drawer with id ${drawerId} not found`);\n }\n const drawers = this.drawers.slice();\n const updatedDrawer = { ...oldDrawerConfig };\n for (const key of updatableProperties) {\n if (key in rest) {\n updatedDrawer[key] = (rest as any)[key];\n }\n }\n drawers[drawerIndex] = updatedDrawer;\n this.drawers = drawers;\n this.scheduleUpdate();\n };\n\n onDrawersRegistered = (listener: DrawersRegistrationListener) => {\n if (this.drawersRegistrationListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawersRegistered'\n );\n }\n this.drawersRegistrationListener = listener;\n this.scheduleUpdate();\n return () => {\n this.drawersRegistrationListener = null;\n this.drawersUpdateListeners = [];\n };\n };\n\n clearRegisteredDrawersForTesting = () => {\n this.drawers = [];\n };\n\n onDrawerOpened = (listener: DrawersToggledListener) => {\n if (this.drawerOpenedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerOpened'\n );\n }\n\n this.drawerOpenedListener = listener;\n\n return () => {\n this.drawerOpenedListener = null;\n };\n };\n\n onDrawerClosed = (listener: DrawersToggledListener) => {\n if (this.drawerClosedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerClosed'\n );\n }\n\n this.drawerClosedListener = listener;\n\n return () => {\n this.drawerClosedListener = null;\n };\n };\n\n openDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerOpenedListener?.(drawerId, params);\n };\n\n closeDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerClosedListener?.(drawerId, params);\n };\n\n onDrawersUpdated = (listener: DrawersUpdateListener) => {\n this.drawersUpdateListeners.push(listener);\n\n return () => {\n this.drawersUpdateListeners = this.drawersUpdateListeners.filter(item => item !== listener);\n };\n };\n\n onDrawerResize = (listener: DrawersResizeListener) => {\n if (this.drawerResizeListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerResize'\n );\n }\n\n this.drawerResizeListener = listener;\n\n return () => {\n this.drawerResizeListener = null;\n };\n };\n\n resizeDrawer = (drawerId: string, size: number) => {\n this.drawerResizeListener?.(drawerId, size);\n };\n\n getDrawersState = () => {\n return this.drawers;\n };\n\n installPublic(api: Partial<DrawersApiPublic> = {}): DrawersApiPublic {\n api.registerDrawer ??= this.registerDrawer;\n api.updateDrawer ??= this.updateDrawer;\n api.openDrawer ??= this.openDrawer;\n api.closeDrawer ??= this.closeDrawer;\n api.resizeDrawer ??= this.resizeDrawer;\n api.clearRegisteredDrawersForTesting ??= this.clearRegisteredDrawersForTesting;\n return api as DrawersApiPublic;\n }\n\n installInternal(internalApi: Partial<DrawersApiInternal> = {}): DrawersApiInternal {\n internalApi.onDrawersRegistered ??= this.onDrawersRegistered;\n internalApi.onDrawerOpened ??= this.onDrawerOpened;\n internalApi.onDrawerClosed ??= this.onDrawerClosed;\n internalApi.onDrawerResize ??= this.onDrawerResize;\n internalApi.onDrawersUpdated ??= this.onDrawersUpdated;\n internalApi.getDrawersState ??= this.getDrawersState;\n return internalApi as DrawersApiInternal;\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';
|
|
2
|
-
import { NonCancelableEventHandler } from '
|
|
2
|
+
import { NonCancelableEventHandler } from '../../../types/events';
|
|
3
3
|
interface Message<Type, Payload> {
|
|
4
4
|
type: Type;
|
|
5
5
|
payload: Payload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE,UAAU,OAAO,CAAC,IAAI,EAAE,OAAO;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,KAAK,sBAAsB,GAAG,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAC;AAE/E,UAAU,mBAAmB;IAC3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C,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\n\ninterface Message<Type, Payload> {\n type: Type;\n payload: Payload;\n}\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\ninterface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerPayload {\n id: string;\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n exitExpandedModeButton?: string;\n };\n isExpandable?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n customIcon?: string;\n };\n exitExpandedModeTrigger?: {\n customIcon?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n mountHeader?: (container: HTMLElement) => void;\n unmountHeader?: (container: HTMLElement) => void;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n onToggleFocusMode?: NonCancelableEventHandler<{ isExpanded: boolean }>;\n position?: 'side' | 'bottom';\n}\n\ntype Destructor = () => void;\nexport type MountContentPart<T> = (container: HTMLElement, data: T) => Destructor | void;\n\n/**\n * Describes a single feature entry in the notification drawer.\n *\n * The generic type `T` determines how feature text content is provided:\n * - When `T` is `string`, the values are rendered as plain text.\n * - When `T` is `ReactNode`, you must also provide `mountItem` on the parent\n * `FeatureNotificationsPayload` so the framework can mount the React content\n * into the DOM container.\n */\nexport interface Feature<T> {\n /** Unique identifier used for persistence tracking (seen/unseen state) and list keying. */\n id: string;\n /** Primary title displayed as the feature heading in both the notification drawer and the feature prompt popover. */\n header: T;\n /** Descriptive body rendered below the header in the notification drawer and the feature prompt popover. */\n content: T;\n /** Optional category label rendered between the release date and the content in the notification drawer. */\n contentCategory?: T;\n /** Publication date of the feature. Used for default filtering (last 90 days), descending sort order, and display formatting. */\n releaseDate: Date;\n}\n\nexport interface FeatureNotificationsPersistenceConfig {\n uniqueKey: string;\n}\n\ntype FeatureId = string;\ntype FeatureReleaseDateString = string;\nexport type PersistedFeaturesDict = Record<FeatureId, FeatureReleaseDateString>;\nexport type PersistFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig,\n value: PersistedFeaturesDict\n) => Promise<void>;\nexport type RetrieveFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig\n) => Promise<PersistedFeaturesDict>;\n\nexport interface FeatureNotificationsPayload<T> {\n /**\n * Unique identifier for the feature notifications.\n */\n id: string;\n /**\n * When set to `true`, prevents the feature prompt from automatically appearing\n * when unseen features are detected during registration. The prompt can still\n * be shown programmatically via the `showFeaturePromptIfPossible` message.\n *\n * @default false\n */\n suppressFeaturePrompt?: boolean;\n /**\n * List of features to display in the notification drawer. Each feature is filtered\n * by `filterFeatures` (or a default 90-day recency filter), sorted by `releaseDate`\n * in descending order, and tracked for seen/unseen state via persistence. The latest\n * unseen feature is used to populate the feature prompt, and opening the drawer marks\n * all features as seen.\n */\n features: Array<Feature<T>>;\n /**\n * Mounting function used to render each feature's `header`, `content`, and\n * `contentCategory` values into the DOM. Required when `T` is `ReactNode`\n * (or any non-string type) so the framework can mount the content into the\n * provided container element. When `T` is `string`, this can be omitted and\n * values are rendered as plain text.\n *\n * The function receives the target `container` element and the `data` value\n * (one of the feature's text fields), and should return an optional destructor\n * that will be called on unmount to clean up resources (e.g. `root.unmount()`).\n *\n * @example\n * ```ts\n * import { createRoot } from 'react-dom/client';\n *\n * mountItem: (container, data) => {\n * const root = createRoot(container);\n * root.render(data);\n * return () => root.unmount();\n * }\n * ```\n */\n mountItem?: MountContentPart<T>;\n /**\n * Optional URL rendered as a \"View all feature releases\" link at the bottom of the notification\n * drawer, allowing users to navigate to a dedicated page with the full list of\n * features.\n */\n featuresPageLink?: string;\n /**\n * Optional predicate to control which features are displayed. Applied to each\n * feature before sorting. When omitted, a default filter is used that only\n * keeps features with a `releaseDate` within the last 90 days.\n */\n filterFeatures?: (item: Feature<T>) => boolean;\n /**\n * Configuration for persisting seen/unseen state of features. The `uniqueKey`\n * is used as the storage key when saving and retrieving which features the user\n * has already viewed. When omitted, a default key (`'awsui-feature-notifications'`)\n * is used.\n */\n persistenceConfig?: FeatureNotificationsPersistenceConfig;\n /**\n * @internal\n * Optional override for saving the seen/unseen state of features. When provided,\n * this function is called instead of the built-in persistence mechanism when the\n * user opens the notification drawer and all features are marked as seen.\n * Receives the `persistenceConfig` and a dictionary mapping feature IDs to their\n * release date strings.\n */\n __persistFeatureNotifications?: PersistFeatureNotifications;\n /**\n * @internal\n * Optional override for retrieving the previously persisted seen/unseen state of\n * features. When provided, this function is called instead of the built-in retrieval\n * mechanism during registration to determine which features the user has already viewed.\n * Should return a dictionary mapping feature IDs to their release date strings.\n */\n __retrieveFeatureNotifications?: RetrieveFeatureNotifications;\n\n i18nStrings?: {\n titleText?: string;\n viewAllText?: string;\n closeButtonAriaLabel?: string;\n contentAriaLabel?: string;\n triggerButtonAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n };\n}\n\nexport type FeatureNotificationsPayloadPublic<T> = Omit<\n FeatureNotificationsPayload<T>,\n '__persistFeatureNotifications' | '__retrieveFeatureNotifications'\n>;\n\nexport type RegisterDrawerMessage = Message<'registerLeftDrawer' | 'registerBottomDrawer', DrawerPayload>;\nexport type RegisterFeatureNotificationsMessage<T> = Message<\n 'registerFeatureNotifications',\n FeatureNotificationsPayload<T>\n>;\nexport type UpdateDrawerConfigMessage = Message<\n 'updateDrawerConfig',\n Pick<DrawerPayload, 'id'> &\n Partial<Omit<DrawerPayload, 'mountContent' | 'unmountContent' | 'mountHeader' | 'unmountHeader'>>\n>;\nexport type OpenDrawerMessage = Message<'openDrawer', { id: string }>;\nexport type CloseDrawerMessage = Message<'closeDrawer', { id: string }>;\nexport type ResizeDrawerMessage = Message<'resizeDrawer', { id: string; size: number }>;\nexport type ExpandDrawerMessage = Message<'expandDrawer', { id: string }>;\nexport interface ExitExpandedModeMessage {\n type: 'exitExpandedMode';\n}\nexport interface ShowFeaturePromptIfPossible {\n type: 'showFeaturePromptIfPossible';\n}\nexport interface ClearFeatureNotifications {\n type: 'clearFeatureNotifications';\n}\n\nexport type AppLayoutUpdateMessage<T = unknown> =\n | UpdateDrawerConfigMessage\n | OpenDrawerMessage\n | CloseDrawerMessage\n | ResizeDrawerMessage\n | ExpandDrawerMessage\n | ExitExpandedModeMessage\n | RegisterFeatureNotificationsMessage<T>\n | ShowFeaturePromptIfPossible\n | ClearFeatureNotifications;\n\nexport type InitialMessage<T> = RegisterDrawerMessage | RegisterFeatureNotificationsMessage<T>;\n\nexport type WidgetMessage<T = unknown> = InitialMessage<T> | AppLayoutUpdateMessage<T>;\n"]}
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Specifies the granularity at which a date will be displayed.
|
|
3
|
-
**/
|
|
4
|
-
export type DateGranularity = 'day' | 'month';
|
|
5
|
-
/**
|
|
6
|
-
* The formats that allow for an editable value:
|
|
7
|
-
* * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).
|
|
8
|
-
* * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).
|
|
9
|
-
**/
|
|
10
|
-
export type EditableDateFormat = 'iso' | 'slashed';
|
|
11
|
-
/**
|
|
12
|
-
* The format that does note allow for an editable value
|
|
13
|
-
* * `long-localized`: a more human-readable, localized format, e.g.: January 30, 2024 (or January, 2024).
|
|
14
|
-
**/
|
|
15
|
-
export type StaticDateFormat = 'long-localized';
|
|
16
|
-
export type DateFormat = EditableDateFormat | StaticDateFormat;
|
|
1
|
+
export { DateFormat, DateGranularity, EditableDateFormat, StaticDateFormat } from '../../../types/date-time';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport { DateFormat, DateGranularity, EditableDateFormat, StaticDateFormat } from '../../../types/date-time';\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { NativeAttributes } from '../../types/native-attributes';
|
|
3
3
|
export type SkipWarnings = boolean | string[];
|
|
4
4
|
type NativeAttributesProps<AT extends React.HTMLAttributes<HTMLElement>> = {
|
|
5
5
|
tag: string;
|
|
@@ -15,4 +15,5 @@ interface ForwardRefType {
|
|
|
15
15
|
}
|
|
16
16
|
export declare function processAttributes<ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(rest: Omit<NativeAttributesProps<AT>, 'children' | 'tag' | 'skipWarnings' | 'componentName' | 'nativeAttributes'>, nativeAttributes: NativeAttributes<AT>, componentName: string, skipWarnings?: SkipWarnings): any;
|
|
17
17
|
declare const _default: ForwardRefType;
|
|
18
|
-
export default _default;
|
|
18
|
+
export default _default;
|
|
19
|
+
export { NativeAttributes } from '../../types/native-attributes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-native-attributes.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,
|
|
1
|
+
{"version":3,"file":"with-native-attributes.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAE9C,KAAK,qBAAqB,CAAC,EAAE,SAAS,KAAK,CAAC,c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