@cloudscape-design/components 3.0.1381 → 3.0.1383
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/button-dropdown/interfaces.d.ts +5 -0
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal-interfaces.d.ts +1 -1
- package/button-dropdown/internal-interfaces.d.ts.map +1 -1
- package/button-dropdown/internal-interfaces.js.map +1 -1
- package/button-dropdown/internal.js +2 -2
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/items-list.d.ts +1 -1
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +2 -2
- package/button-dropdown/items-list.js.map +1 -1
- package/button-dropdown/utils/move-highlight.d.ts +4 -2
- package/button-dropdown/utils/move-highlight.d.ts.map +1 -1
- package/button-dropdown/utils/move-highlight.js +13 -21
- package/button-dropdown/utils/move-highlight.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 +8 -6
- package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
- package/button-dropdown/utils/use-highlighted-menu.d.ts +2 -2
- package/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
- package/button-dropdown/utils/use-highlighted-menu.js +14 -4
- package/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
- package/button-dropdown/utils/utils.d.ts +1 -0
- package/button-dropdown/utils/utils.d.ts.map +1 -1
- package/button-dropdown/utils/utils.js +1 -0
- package/button-dropdown/utils/utils.js.map +1 -1
- package/calendar/interfaces.d.ts +2 -1
- package/calendar/interfaces.d.ts.map +1 -1
- package/calendar/interfaces.js.map +1 -1
- package/calendar/internal.d.ts.map +1 -1
- package/calendar/internal.js +3 -1
- package/calendar/internal.js.map +1 -1
- package/checkbox/internal.d.ts +6 -0
- package/checkbox/internal.d.ts.map +1 -1
- package/checkbox/internal.js +2 -2
- package/checkbox/internal.js.map +1 -1
- package/checkbox/styles.css.js +7 -3
- package/checkbox/styles.scoped.css +72 -16
- package/checkbox/styles.selectors.js +7 -3
- package/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +3 -2
- package/date-range-picker/index.js.map +1 -1
- package/date-range-picker/interfaces.d.ts +2 -1
- package/date-range-picker/interfaces.d.ts.map +1 -1
- package/date-range-picker/interfaces.js.map +1 -1
- package/dialog/index.d.ts +3 -0
- package/dialog/index.d.ts.map +1 -0
- package/dialog/index.js +21 -0
- package/dialog/index.js.map +1 -0
- package/dialog/interfaces.d.ts +40 -0
- package/dialog/interfaces.d.ts.map +1 -0
- package/dialog/interfaces.js +2 -0
- package/dialog/interfaces.js.map +1 -0
- package/dialog/internal.d.ts +13 -0
- package/dialog/internal.d.ts.map +1 -0
- package/dialog/internal.js +39 -0
- package/dialog/internal.js.map +1 -0
- package/dialog/styles.css.js +13 -0
- package/dialog/styles.scoped.css +126 -0
- package/dialog/styles.selectors.js +14 -0
- package/dialog/test-classes/styles.css.js +11 -0
- package/dialog/test-classes/styles.scoped.css +12 -0
- package/dialog/test-classes/styles.selectors.js +12 -0
- package/dialog/use-focus-restore.d.ts +5 -0
- package/dialog/use-focus-restore.d.ts.map +1 -0
- package/dialog/use-focus-restore.js +34 -0
- package/dialog/use-focus-restore.js.map +1 -0
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +9 -2
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/styles.css.js +44 -43
- package/expandable-section/styles.scoped.css +92 -88
- package/expandable-section/styles.selectors.js +44 -43
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.en.js +1 -1
- package/i18n/messages/all.en.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/i18n/messages-types.d.ts +3 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/icon/internal.d.ts +3 -0
- package/icon/internal.d.ts.map +1 -1
- package/icon/internal.js +10 -2
- package/icon/internal.js.map +1 -1
- package/icon/styles.css.js +43 -42
- package/icon/styles.scoped.css +126 -98
- package/icon/styles.selectors.js +43 -42
- package/icon-provider/context.d.ts +3 -1
- package/icon-provider/context.d.ts.map +1 -1
- package/icon-provider/context.js +2 -0
- package/icon-provider/context.js.map +1 -1
- package/icon-provider/interfaces.d.ts +39 -1
- package/icon-provider/interfaces.d.ts.map +1 -1
- package/icon-provider/interfaces.js.map +1 -1
- package/icon-provider/internal.d.ts +2 -1
- package/icon-provider/internal.d.ts.map +1 -1
- package/icon-provider/internal.js +17 -3
- package/icon-provider/internal.js.map +1 -1
- package/icon-provider/use-component-icons.d.ts +3 -0
- package/icon-provider/use-component-icons.d.ts.map +1 -0
- package/icon-provider/use-component-icons.js +9 -0
- package/icon-provider/use-component-icons.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/base-theme/styles.scoped.css +24 -0
- package/internal/components/abstract-switch/index.d.ts +4 -0
- package/internal/components/abstract-switch/index.d.ts.map +1 -1
- package/internal/components/abstract-switch/index.js +5 -3
- package/internal/components/abstract-switch/index.js.map +1 -1
- package/internal/components/checkbox-icon/index.d.ts.map +1 -1
- package/internal/components/checkbox-icon/index.js +8 -2
- package/internal/components/checkbox-icon/index.js.map +1 -1
- package/internal/components/checkbox-icon/styles.css.js +9 -9
- package/internal/components/checkbox-icon/styles.scoped.css +18 -18
- package/internal/components/checkbox-icon/styles.selectors.js +9 -9
- package/internal/components/customizable-icon/index.d.ts +22 -0
- package/internal/components/customizable-icon/index.d.ts.map +1 -0
- package/internal/components/customizable-icon/index.js +12 -0
- package/internal/components/customizable-icon/index.js.map +1 -0
- package/internal/components/expand-toggle-button/index.d.ts +4 -0
- package/internal/components/expand-toggle-button/index.d.ts.map +1 -1
- package/internal/components/expand-toggle-button/index.js +6 -3
- package/internal/components/expand-toggle-button/index.js.map +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +11 -0
- package/internal/generated/styles/tokens.js +11 -0
- package/internal/generated/theming/index.cjs +157 -1
- package/internal/generated/theming/index.cjs.d.ts +582 -5
- package/internal/generated/theming/index.d.cts +4308 -0
- package/internal/generated/theming/index.d.ts +99 -0
- package/internal/generated/theming/index.js +157 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/locale/normalize-locale.js +8 -5
- package/internal/utils/locale/normalize-locale.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +4 -1
- package/split-panel/bottom.d.ts +2 -1
- package/split-panel/bottom.d.ts.map +1 -1
- package/split-panel/bottom.js.map +1 -1
- package/split-panel/content-props.d.ts +16 -0
- package/split-panel/content-props.d.ts.map +1 -0
- package/split-panel/content-props.js +2 -0
- package/split-panel/content-props.js.map +1 -0
- package/split-panel/interfaces.d.ts +0 -13
- package/split-panel/interfaces.d.ts.map +1 -1
- package/split-panel/interfaces.js.map +1 -1
- package/split-panel/side.d.ts +2 -1
- package/split-panel/side.d.ts.map +1 -1
- package/split-panel/side.js.map +1 -1
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +3 -1
- package/table/body-cell/td-element.js.map +1 -1
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +8 -2
- package/table/header-cell/index.js.map +1 -1
- package/table/internal.js +1 -1
- package/table/internal.js.map +1 -1
- package/test-utils/dom/dialog/index.d.ts +25 -0
- package/test-utils/dom/dialog/index.js +43 -0
- package/test-utils/dom/dialog/index.js.map +1 -0
- package/test-utils/dom/index.d.ts +28 -0
- package/test-utils/dom/index.js +21 -2
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/selectors/dialog/index.d.ts +25 -0
- package/test-utils/selectors/dialog/index.js +43 -0
- package/test-utils/selectors/dialog/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +18 -0
- package/test-utils/selectors/index.js +16 -2
- package/test-utils/selectors/index.js.map +1 -1
- package/tree-view/interfaces.d.ts +3 -0
- package/tree-view/interfaces.d.ts.map +1 -1
- package/tree-view/interfaces.js.map +1 -1
- package/tree-view/tree-item/index.d.ts.map +1 -1
- package/tree-view/tree-item/index.js +3 -1
- package/tree-view/tree-item/index.js.map +1 -1
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import generatedIcons from '../icon/generated/icons';
|
|
5
|
-
import { InternalIconContext } from './context';
|
|
6
|
-
function InternalIconProvider({ children, icons }) {
|
|
5
|
+
import { InternalComponentIconsContext, InternalIconContext } from './context';
|
|
6
|
+
function InternalIconProvider({ children, icons, componentIcons }) {
|
|
7
7
|
const contextIcons = useContext(InternalIconContext);
|
|
8
|
+
const contextComponentIcons = useContext(InternalComponentIconsContext);
|
|
8
9
|
let iconsToProvide = generatedIcons;
|
|
9
10
|
// Merge the context icons with the custom icons, this allows child instances of IconProvider to persist parent configurations
|
|
10
11
|
if (icons !== null) {
|
|
@@ -19,7 +20,20 @@ function InternalIconProvider({ children, icons }) {
|
|
|
19
20
|
});
|
|
20
21
|
iconsToProvide = { ...contextIcons, ...clonedIcons };
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
// Merge with inherited component icons, per component and per icon (closest provider wins).
|
|
24
|
+
let componentIconsToProvide = contextComponentIcons;
|
|
25
|
+
if (componentIcons === null) {
|
|
26
|
+
componentIconsToProvide = {};
|
|
27
|
+
}
|
|
28
|
+
else if (componentIcons) {
|
|
29
|
+
componentIconsToProvide = { ...contextComponentIcons };
|
|
30
|
+
for (const name of Object.keys(componentIcons)) {
|
|
31
|
+
const value = componentIcons[name];
|
|
32
|
+
componentIconsToProvide[name] = value === null ? undefined : { ...contextComponentIcons[name], ...value };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return (React.createElement(InternalIconContext.Provider, { value: iconsToProvide },
|
|
36
|
+
React.createElement(InternalComponentIconsContext.Provider, { value: componentIconsToProvide }, children)));
|
|
23
37
|
}
|
|
24
38
|
export default InternalIconProvider;
|
|
25
39
|
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/icon-provider/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/icon-provider/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEt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,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;YACnC,uBAAuB,CAAC,IAAI,CAAC,GAAG,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,qBAAqB,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC;QAC5G,CAAC;IACH,CAAC;IAED,OAAO,CACL,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,cAAc;QACjD,oBAAC,6BAA6B,CAAC,QAAQ,IAAC,KAAK,EAAE,uBAAuB,IACnE,QAAQ,CAC8B,CACZ,CAChC,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useContext } from 'react';\n\nimport generatedIcons from '../icon/generated/icons';\nimport { InternalComponentIconsContext, InternalIconContext } from './context';\nimport { IconProviderProps } from './interfaces';\n\nfunction InternalIconProvider({ children, icons, componentIcons }: IconProviderProps) {\n const contextIcons = useContext(InternalIconContext);\n const contextComponentIcons = useContext(InternalComponentIconsContext);\n\n let iconsToProvide: IconProviderProps.Icons = generatedIcons;\n\n // Merge the context icons with the custom icons, this allows child instances of IconProvider to persist parent configurations\n if (icons !== null) {\n const clonedIcons = { ...icons };\n\n // Reset null icon values to their generated default, or the inherited context value for custom icons\n Object.keys(clonedIcons).forEach(name => {\n const iconName = name as keyof typeof generatedIcons;\n if (clonedIcons[iconName] === null) {\n clonedIcons[iconName] = generatedIcons[iconName] ?? contextIcons[iconName];\n }\n });\n\n iconsToProvide = { ...contextIcons, ...clonedIcons };\n }\n\n // Merge with inherited component icons, per component and per icon (closest provider wins).\n let componentIconsToProvide: IconProviderProps.ComponentIcons = contextComponentIcons;\n if (componentIcons === null) {\n componentIconsToProvide = {};\n } else if (componentIcons) {\n componentIconsToProvide = { ...contextComponentIcons };\n for (const name of Object.keys(componentIcons) as (keyof IconProviderProps.ComponentIcons)[]) {\n const value = componentIcons[name];\n componentIconsToProvide[name] = value === null ? undefined : { ...contextComponentIcons[name], ...value };\n }\n }\n\n return (\n <InternalIconContext.Provider value={iconsToProvide}>\n <InternalComponentIconsContext.Provider value={componentIconsToProvide}>\n {children}\n </InternalComponentIconsContext.Provider>\n </InternalIconContext.Provider>\n );\n}\n\nexport default InternalIconProvider;\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IconProviderProps } from './interfaces';
|
|
2
|
+
/** Returns the custom icons provided for the given component via `IconProvider` `componentIcons`. */
|
|
3
|
+
export declare function useInternalComponentIcons<K extends keyof IconProviderProps.ComponentIcons>(component: K): IconProviderProps.ComponentIcons[K];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-component-icons.d.ts","sourceRoot":"","sources":["../../../src/icon-provider/use-component-icons.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qGAAqG;AACrG,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,MAAM,iBAAiB,CAAC,cAAc,EACxF,SAAS,EAAE,CAAC,GACX,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC,CAErC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { InternalComponentIconsContext } from './context';
|
|
5
|
+
/** Returns the custom icons provided for the given component via `IconProvider` `componentIcons`. */
|
|
6
|
+
export function useInternalComponentIcons(component) {
|
|
7
|
+
return useContext(InternalComponentIconsContext)[component];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=use-component-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-component-icons.js","sourceRoot":"","sources":["../../../src/icon-provider/use-component-icons.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAG1D,qGAAqG;AACrG,MAAM,UAAU,yBAAyB,CACvC,SAAY;IAEZ,OAAO,UAAU,CAAC,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC;AAC9D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useContext } from 'react';\n\nimport { InternalComponentIconsContext } from './context';\nimport { IconProviderProps } from './interfaces';\n\n/** Returns the custom icons provided for the given component via `IconProvider` `componentIcons`. */\nexport function useInternalComponentIcons<K extends keyof IconProviderProps.ComponentIcons>(\n component: K\n): IconProviderProps.ComponentIcons[K] {\n return useContext(InternalComponentIconsContext)[component];\n}\n"]}
|
package/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { default as CopyToClipboard, CopyToClipboardProps } from './copy-to-clip
|
|
|
26
26
|
export { default as DateInput, DateInputProps } from './date-input/index.js';
|
|
27
27
|
export { default as DatePicker, DatePickerProps } from './date-picker/index.js';
|
|
28
28
|
export { default as DateRangePicker, DateRangePickerProps } from './date-range-picker/index.js';
|
|
29
|
+
export { default as Dialog, DialogProps } from './dialog/index.js';
|
|
29
30
|
export { default as Divider, DividerProps } from './divider/index.js';
|
|
30
31
|
export { default as Drawer, DrawerProps } from './drawer/index.js';
|
|
31
32
|
export { default as Dropdown, DropdownProps } from './dropdown/index.js';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,KAAK,EA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AM,wBAAwB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnE,cAAc,iBAAiB,CAAC"}
|
package/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export { default as CopyToClipboard } from './copy-to-clipboard/index.js';
|
|
|
26
26
|
export { default as DateInput } from './date-input/index.js';
|
|
27
27
|
export { default as DatePicker } from './date-picker/index.js';
|
|
28
28
|
export { default as DateRangePicker } from './date-range-picker/index.js';
|
|
29
|
+
export { default as Dialog } from './dialog/index.js';
|
|
29
30
|
export { default as Divider } from './divider/index.js';
|
|
30
31
|
export { default as Drawer } from './drawer/index.js';
|
|
31
32
|
export { default as Dropdown } from './dropdown/index.js';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAmB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAyB,MAAM,8BAA8B,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAA0B,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAyB,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAwB,MAAM,6BAA6B,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAoB,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAiB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,GAAG,EAAY,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAwB,MAAM,6BAA6B,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAuB,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE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,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,mBAAmB,CAAC;AACnE,cAAc,iBAAiB,CAAC","sourcesContent":["export { default as ActionCard, ActionCardProps } from './action-card/index.js';\nexport { default as Alert, AlertProps } from './alert/index.js';\nexport { default as AnchorNavigation, AnchorNavigationProps } from './anchor-navigation/index.js';\nexport { default as AnnotationContext, AnnotationContextProps } from './annotation-context/index.js';\nexport { default as AppLayout, AppLayoutProps } from './app-layout/index.js';\nexport { default as AppLayoutToolbar, AppLayoutToolbarProps } from './app-layout-toolbar/index.js';\nexport { default as AreaChart, AreaChartProps } from './area-chart/index.js';\nexport { default as AttributeEditor, AttributeEditorProps } from './attribute-editor/index.js';\nexport { default as Autosuggest, AutosuggestProps } from './autosuggest/index.js';\nexport { default as Badge, BadgeProps } from './badge/index.js';\nexport { default as BarChart, BarChartProps } from './bar-chart/index.js';\nexport { default as Box, BoxProps } from './box/index.js';\nexport { default as BreadcrumbGroup, BreadcrumbGroupProps } from './breadcrumb-group/index.js';\nexport { default as Button, ButtonProps } from './button/index.js';\nexport { default as ButtonDropdown, ButtonDropdownProps } from './button-dropdown/index.js';\nexport { default as ButtonGroup, ButtonGroupProps } from './button-group/index.js';\nexport { default as Calendar, CalendarProps } from './calendar/index.js';\nexport { default as Cards, CardsProps } from './cards/index.js';\nexport { default as Checkbox, CheckboxProps } from './checkbox/index.js';\nexport { default as CodeEditor, CodeEditorProps } from './code-editor/index.js';\nexport { default as CollectionPreferences, CollectionPreferencesProps } from './collection-preferences/index.js';\nexport { default as ColumnLayout, ColumnLayoutProps } from './column-layout/index.js';\nexport { default as Container, ContainerProps } from './container/index.js';\nexport { default as ContentLayout, ContentLayoutProps } from './content-layout/index.js';\nexport { default as CopyToClipboard, CopyToClipboardProps } from './copy-to-clipboard/index.js';\nexport { default as DateInput, DateInputProps } from './date-input/index.js';\nexport { default as DatePicker, DatePickerProps } from './date-picker/index.js';\nexport { default as DateRangePicker, DateRangePickerProps } from './date-range-picker/index.js';\nexport { default as Divider, DividerProps } from './divider/index.js';\nexport { default as Drawer, DrawerProps } from './drawer/index.js';\nexport { default as Dropdown, DropdownProps } from './dropdown/index.js';\nexport { default as ErrorBoundary, ErrorBoundaryProps } from './error-boundary/index.js';\nexport { default as ExpandableSection, ExpandableSectionProps } from './expandable-section/index.js';\nexport { default as FileDropzone, FileDropzoneProps } from './file-dropzone/index.js';\nexport { default as FileInput, FileInputProps } from './file-input/index.js';\nexport { default as FileTokenGroup, FileTokenGroupProps } from './file-token-group/index.js';\nexport { default as FileUpload, FileUploadProps } from './file-upload/index.js';\nexport { default as Flashbar, FlashbarProps } from './flashbar/index.js';\nexport { default as Form, FormProps } from './form/index.js';\nexport { default as FormField, FormFieldProps } from './form-field/index.js';\nexport { default as Grid, GridProps } from './grid/index.js';\nexport { default as Header, HeaderProps } from './header/index.js';\nexport { default as HelpPanel, HelpPanelProps } from './help-panel/index.js';\nexport { default as Hotspot, HotspotProps } from './hotspot/index.js';\nexport { default as Icon, IconProps } from './icon/index.js';\nexport { default as IconProvider, IconProviderProps } from './icon-provider/index.js';\nexport { default as Input, InputProps } from './input/index.js';\nexport { default as ItemCard, ItemCardProps } from './item-card/index.js';\nexport { default as KeyValuePairs, KeyValuePairsProps } from './key-value-pairs/index.js';\nexport { default as LineChart, LineChartProps } from './line-chart/index.js';\nexport { default as Link, LinkProps } from './link/index.js';\nexport { default as List, ListProps } from './list/index.js';\nexport { default as LiveRegion, LiveRegionProps } from './live-region/index.js';\nexport { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart/index.js';\nexport { default as Modal, ModalProps } from './modal/index.js';\nexport { default as Multiselect, MultiselectProps } from './multiselect/index.js';\nexport { default as NavigableGroup, NavigableGroupProps } from './navigable-group/index.js';\nexport { default as Pagination, PaginationProps } from './pagination/index.js';\nexport { default as PanelLayout, PanelLayoutProps } from './panel-layout/index.js';\nexport { default as PieChart, PieChartProps } from './pie-chart/index.js';\nexport { default as Popover, PopoverProps } from './popover/index.js';\nexport { default as ProgressBar, ProgressBarProps } from './progress-bar/index.js';\nexport { default as PromptInput, PromptInputProps } from './prompt-input/index.js';\nexport { default as PropertyFilter, PropertyFilterProps } from './property-filter/index.js';\nexport { default as RadioButton, RadioButtonProps } from './radio-button/index.js';\nexport { default as RadioGroup, RadioGroupProps } from './radio-group/index.js';\nexport { default as S3ResourceSelector, S3ResourceSelectorProps } from './s3-resource-selector/index.js';\nexport { default as SegmentedControl, SegmentedControlProps } from './segmented-control/index.js';\nexport { default as Select, SelectProps } from './select/index.js';\nexport { default as SideNavigation, SideNavigationProps } from './side-navigation/index.js';\nexport { default as Skeleton, SkeletonProps } from './skeleton/index.js';\nexport { default as Slider, SliderProps } from './slider/index.js';\nexport { default as SpaceBetween, SpaceBetweenProps } from './space-between/index.js';\nexport { default as Spinner, SpinnerProps } from './spinner/index.js';\nexport { default as SplitPanel, SplitPanelProps } from './split-panel/index.js';\nexport { default as StatusIndicator, StatusIndicatorProps } from './status-indicator/index.js';\nexport { default as Steps, StepsProps } from './steps/index.js';\nexport { default as Table, TableProps } from './table/index.js';\nexport { default as Tabs, TabsProps } from './tabs/index.js';\nexport { default as TagEditor, TagEditorProps } from './tag-editor/index.js';\nexport { default as TextContent, TextContentProps } from './text-content/index.js';\nexport { default as TextFilter, TextFilterProps } from './text-filter/index.js';\nexport { default as Textarea, TextareaProps } from './textarea/index.js';\nexport { default as Tiles, TilesProps } from './tiles/index.js';\nexport { default as TimeInput, TimeInputProps } from './time-input/index.js';\nexport { default as Toggle, ToggleProps } from './toggle/index.js';\nexport { default as ToggleButton, ToggleButtonProps } from './toggle-button/index.js';\nexport { default as Token, TokenProps } from './token/index.js';\nexport { default as TokenGroup, TokenGroupProps } from './token-group/index.js';\nexport { default as Tooltip, TooltipProps } from './tooltip/index.js';\nexport { default as TopNavigation, TopNavigationProps } from './top-navigation/index.js';\nexport { default as TreeView, TreeViewProps } from './tree-view/index.js';\nexport { default as TruncatedText, TruncatedTextProps } from './truncated-text/index.js';\nexport { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel/index.js';\nexport { default as Wizard, WizardProps } from './wizard/index.js';\nexport * from './interfaces.js';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAmB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAyB,MAAM,8BAA8B,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAA0B,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAyB,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAwB,MAAM,6BAA6B,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAoB,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAiB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,GAAG,EAAY,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAwB,MAAM,6BAA6B,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,I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E,OAAO,IAAI,aAAa,EAAsB,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAiB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,mBAAmB,CAAC;AACnE,cAAc,iBAAiB,CAAC","sourcesContent":["export { default as ActionCard, ActionCardProps } from './action-card/index.js';\nexport { default as Alert, AlertProps } from './alert/index.js';\nexport { default as AnchorNavigation, AnchorNavigationProps } from './anchor-navigation/index.js';\nexport { default as AnnotationContext, AnnotationContextProps } from './annotation-context/index.js';\nexport { default as AppLayout, AppLayoutProps } from './app-layout/index.js';\nexport { default as AppLayoutToolbar, AppLayoutToolbarProps } from './app-layout-toolbar/index.js';\nexport { default as AreaChart, AreaChartProps } from './area-chart/index.js';\nexport { default as AttributeEditor, AttributeEditorProps } from './attribute-editor/index.js';\nexport { default as Autosuggest, AutosuggestProps } from './autosuggest/index.js';\nexport { default as Badge, BadgeProps } from './badge/index.js';\nexport { default as BarChart, BarChartProps } from './bar-chart/index.js';\nexport { default as Box, BoxProps } from './box/index.js';\nexport { default as BreadcrumbGroup, BreadcrumbGroupProps } from './breadcrumb-group/index.js';\nexport { default as Button, ButtonProps } from './button/index.js';\nexport { default as ButtonDropdown, ButtonDropdownProps } from './button-dropdown/index.js';\nexport { default as ButtonGroup, ButtonGroupProps } from './button-group/index.js';\nexport { default as Calendar, CalendarProps } from './calendar/index.js';\nexport { default as Cards, CardsProps } from './cards/index.js';\nexport { default as Checkbox, CheckboxProps } from './checkbox/index.js';\nexport { default as CodeEditor, CodeEditorProps } from './code-editor/index.js';\nexport { default as CollectionPreferences, CollectionPreferencesProps } from './collection-preferences/index.js';\nexport { default as ColumnLayout, ColumnLayoutProps } from './column-layout/index.js';\nexport { default as Container, ContainerProps } from './container/index.js';\nexport { default as ContentLayout, ContentLayoutProps } from './content-layout/index.js';\nexport { default as CopyToClipboard, CopyToClipboardProps } from './copy-to-clipboard/index.js';\nexport { default as DateInput, DateInputProps } from './date-input/index.js';\nexport { default as DatePicker, DatePickerProps } from './date-picker/index.js';\nexport { default as DateRangePicker, DateRangePickerProps } from './date-range-picker/index.js';\nexport { default as Dialog, DialogProps } from './dialog/index.js';\nexport { default as Divider, DividerProps } from './divider/index.js';\nexport { default as Drawer, DrawerProps } from './drawer/index.js';\nexport { default as Dropdown, DropdownProps } from './dropdown/index.js';\nexport { default as ErrorBoundary, ErrorBoundaryProps } from './error-boundary/index.js';\nexport { default as ExpandableSection, ExpandableSectionProps } from './expandable-section/index.js';\nexport { default as FileDropzone, FileDropzoneProps } from './file-dropzone/index.js';\nexport { default as FileInput, FileInputProps } from './file-input/index.js';\nexport { default as FileTokenGroup, FileTokenGroupProps } from './file-token-group/index.js';\nexport { default as FileUpload, FileUploadProps } from './file-upload/index.js';\nexport { default as Flashbar, FlashbarProps } from './flashbar/index.js';\nexport { default as Form, FormProps } from './form/index.js';\nexport { default as FormField, FormFieldProps } from './form-field/index.js';\nexport { default as Grid, GridProps } from './grid/index.js';\nexport { default as Header, HeaderProps } from './header/index.js';\nexport { default as HelpPanel, HelpPanelProps } from './help-panel/index.js';\nexport { default as Hotspot, HotspotProps } from './hotspot/index.js';\nexport { default as Icon, IconProps } from './icon/index.js';\nexport { default as IconProvider, IconProviderProps } from './icon-provider/index.js';\nexport { default as Input, InputProps } from './input/index.js';\nexport { default as ItemCard, ItemCardProps } from './item-card/index.js';\nexport { default as KeyValuePairs, KeyValuePairsProps } from './key-value-pairs/index.js';\nexport { default as LineChart, LineChartProps } from './line-chart/index.js';\nexport { default as Link, LinkProps } from './link/index.js';\nexport { default as List, ListProps } from './list/index.js';\nexport { default as LiveRegion, LiveRegionProps } from './live-region/index.js';\nexport { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart/index.js';\nexport { default as Modal, ModalProps } from './modal/index.js';\nexport { default as Multiselect, MultiselectProps } from './multiselect/index.js';\nexport { default as NavigableGroup, NavigableGroupProps } from './navigable-group/index.js';\nexport { default as Pagination, PaginationProps } from './pagination/index.js';\nexport { default as PanelLayout, PanelLayoutProps } from './panel-layout/index.js';\nexport { default as PieChart, PieChartProps } from './pie-chart/index.js';\nexport { default as Popover, PopoverProps } from './popover/index.js';\nexport { default as ProgressBar, ProgressBarProps } from './progress-bar/index.js';\nexport { default as PromptInput, PromptInputProps } from './prompt-input/index.js';\nexport { default as PropertyFilter, PropertyFilterProps } from './property-filter/index.js';\nexport { default as RadioButton, RadioButtonProps } from './radio-button/index.js';\nexport { default as RadioGroup, RadioGroupProps } from './radio-group/index.js';\nexport { default as S3ResourceSelector, S3ResourceSelectorProps } from './s3-resource-selector/index.js';\nexport { default as SegmentedControl, SegmentedControlProps } from './segmented-control/index.js';\nexport { default as Select, SelectProps } from './select/index.js';\nexport { default as SideNavigation, SideNavigationProps } from './side-navigation/index.js';\nexport { default as Skeleton, SkeletonProps } from './skeleton/index.js';\nexport { default as Slider, SliderProps } from './slider/index.js';\nexport { default as SpaceBetween, SpaceBetweenProps } from './space-between/index.js';\nexport { default as Spinner, SpinnerProps } from './spinner/index.js';\nexport { default as SplitPanel, SplitPanelProps } from './split-panel/index.js';\nexport { default as StatusIndicator, StatusIndicatorProps } from './status-indicator/index.js';\nexport { default as Steps, StepsProps } from './steps/index.js';\nexport { default as Table, TableProps } from './table/index.js';\nexport { default as Tabs, TabsProps } from './tabs/index.js';\nexport { default as TagEditor, TagEditorProps } from './tag-editor/index.js';\nexport { default as TextContent, TextContentProps } from './text-content/index.js';\nexport { default as TextFilter, TextFilterProps } from './text-filter/index.js';\nexport { default as Textarea, TextareaProps } from './textarea/index.js';\nexport { default as Tiles, TilesProps } from './tiles/index.js';\nexport { default as TimeInput, TimeInputProps } from './time-input/index.js';\nexport { default as Toggle, ToggleProps } from './toggle/index.js';\nexport { default as ToggleButton, ToggleButtonProps } from './toggle-button/index.js';\nexport { default as Token, TokenProps } from './token/index.js';\nexport { default as TokenGroup, TokenGroupProps } from './token-group/index.js';\nexport { default as Tooltip, TooltipProps } from './tooltip/index.js';\nexport { default as TopNavigation, TopNavigationProps } from './top-navigation/index.js';\nexport { default as TreeView, TreeViewProps } from './tree-view/index.js';\nexport { default as TruncatedText, TruncatedTextProps } from './truncated-text/index.js';\nexport { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel/index.js';\nexport { default as Wizard, WizardProps } from './wizard/index.js';\nexport * from './interfaces.js';\n"]}
|
|
@@ -374,6 +374,7 @@
|
|
|
374
374
|
--color-background-alert-success-9dyn87:var(--color-background-status-success-1woffs);
|
|
375
375
|
--color-background-alert-warning-021z3n:var(--color-background-status-warning-52cylj);
|
|
376
376
|
--color-background-dialog-l7uuft:var(--color-background-status-info-lki61z);
|
|
377
|
+
--color-background-dialog-default-xpvorm:var(--color-background-card-wgxkh9);
|
|
377
378
|
--color-background-status-success-1woffs:var(--color-success-50-yv7e12);
|
|
378
379
|
--color-background-status-warning-52cylj:var(--color-warning-50-pb3ziz);
|
|
379
380
|
--color-background-table-header-pgyagt:var(--color-background-container-header-irktp5);
|
|
@@ -466,6 +467,7 @@
|
|
|
466
467
|
--color-border-status-success-zsy8d6:var(--color-success-600-9gprcu);
|
|
467
468
|
--color-border-status-warning-zj1tu9:var(--color-warning-900-rpufqr);
|
|
468
469
|
--color-border-dialog-c9wxm6:var(--color-border-status-info-e5c14y);
|
|
470
|
+
--color-border-dialog-default-8c0afg:var(--color-border-card-btvpmf);
|
|
469
471
|
--color-border-divider-interactive-default-cs7tmi:var(--color-neutral-500-w303c2);
|
|
470
472
|
--color-border-tabs-divider-sog0al:var(--color-neutral-350-n78myc);
|
|
471
473
|
--color-border-tabs-shadow-egq8wq:var(--color-grey-transparent-3dqrf2);
|
|
@@ -781,6 +783,7 @@
|
|
|
781
783
|
--border-radius-side-navigation-item-collapsed-mi3uty:50%;
|
|
782
784
|
--border-radius-item-card-default-nurfq3:var(--border-radius-card-default-dfh0ly);
|
|
783
785
|
--border-radius-item-card-embedded-patnwm:var(--border-radius-card-embedded-yu0pej);
|
|
786
|
+
--border-radius-dialog-adcisc:var(--border-radius-card-embedded-yu0pej);
|
|
784
787
|
--border-radius-popover-pmwd0c:var(--border-radius-input-k1q34z);
|
|
785
788
|
--border-radius-skeleton-0r7m8y:8px;
|
|
786
789
|
--border-radius-status-indicator-1d9bsf:var(--border-radius-badge-86n91d);
|
|
@@ -812,6 +815,7 @@
|
|
|
812
815
|
--border-width-icon-small-m3z2f5:2px;
|
|
813
816
|
--border-width-icon-x-small-3m5wt5:1.5px;
|
|
814
817
|
--border-width-item-card-6sthd9:var(--border-width-card-niewam);
|
|
818
|
+
--border-width-dialog-6bh1ii:var(--border-width-card-niewam);
|
|
815
819
|
--border-width-item-selected-l41fek:2px;
|
|
816
820
|
--border-width-layout-side-navigation-q0k26x:var(--border-divider-section-width-dlkb8v);
|
|
817
821
|
--border-width-badge-p88itr:0px;
|
|
@@ -898,6 +902,12 @@
|
|
|
898
902
|
--space-item-card-horizontal-embedded-0dtpkm:var(--space-card-horizontal-embedded-5u2228);
|
|
899
903
|
--space-item-card-vertical-default-vibtiz:var(--space-card-vertical-default-iz8x7a);
|
|
900
904
|
--space-item-card-vertical-embedded-i4sbwc:var(--space-card-vertical-embedded-xt7hoh);
|
|
905
|
+
--space-dialog-horizontal-f19fik:var(--space-card-horizontal-embedded-5u2228);
|
|
906
|
+
--space-dialog-vertical-24ji2g:var(--space-card-vertical-embedded-xt7hoh);
|
|
907
|
+
--space-dialog-action-block-jznvno:var(--space-scaled-xxs-j00t0m);
|
|
908
|
+
--space-dialog-action-inline-tb23m8:var(--space-xxs-3o1yoq);
|
|
909
|
+
--space-dialog-header-gap-h3tlnk:var(--space-xs-m9b7jf);
|
|
910
|
+
--space-dialog-section-gap-xh4b86:var(--space-xxs-3o1yoq);
|
|
901
911
|
--space-code-editor-status-focus-outline-gutter-udne29:-7px;
|
|
902
912
|
--space-container-content-top-ryubqz:var(--space-xxs-3o1yoq);
|
|
903
913
|
--space-container-header-top-3txhx4:var(--space-s-kll7oj);
|
|
@@ -991,6 +1001,7 @@
|
|
|
991
1001
|
--space-xxxl-pjngik:40px;
|
|
992
1002
|
--shadow-card-9fwoie:none;
|
|
993
1003
|
--shadow-item-card-ltzk0y:var(--shadow-card-9fwoie);
|
|
1004
|
+
--shadow-dialog-q0m0rn:var(--shadow-card-9fwoie);
|
|
994
1005
|
--shadow-container-quglkl:0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12);
|
|
995
1006
|
--shadow-container-active-iomjxu:0px 1px 1px 1px #e9ebed, 0px 6px 36px #0007161a;
|
|
996
1007
|
--shadow-dropdown-ogwesf:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
|
|
@@ -1366,6 +1377,9 @@
|
|
|
1366
1377
|
--space-item-card-horizontal-embedded-0dtpkm:var(--space-card-horizontal-embedded-5u2228);
|
|
1367
1378
|
--space-item-card-vertical-default-vibtiz:var(--space-card-vertical-default-iz8x7a);
|
|
1368
1379
|
--space-item-card-vertical-embedded-i4sbwc:var(--space-card-vertical-embedded-xt7hoh);
|
|
1380
|
+
--space-dialog-horizontal-f19fik:var(--space-card-horizontal-embedded-5u2228);
|
|
1381
|
+
--space-dialog-vertical-24ji2g:var(--space-card-vertical-embedded-xt7hoh);
|
|
1382
|
+
--space-dialog-action-block-jznvno:var(--space-scaled-xxs-j00t0m);
|
|
1369
1383
|
--space-container-header-bottom-9elagw:var(--space-scaled-xs-pajbd1);
|
|
1370
1384
|
--space-content-header-padding-bottom-yv2yex:var(--space-scaled-m-lfeh3i);
|
|
1371
1385
|
--space-expandable-section-icon-offset-top-ggjci7:var(--space-scaled-2x-xxs-vru90o);
|
|
@@ -1427,6 +1441,7 @@
|
|
|
1427
1441
|
--space-button-modal-dismiss-vertical-3vgc5x:var(--space-scaled-xxxs-n0ri6o);
|
|
1428
1442
|
--space-card-vertical-default-iz8x7a:var(--space-scaled-m-lfeh3i);
|
|
1429
1443
|
--space-item-card-vertical-default-vibtiz:var(--space-card-vertical-default-iz8x7a);
|
|
1444
|
+
--space-dialog-action-block-jznvno:var(--space-scaled-xxs-j00t0m);
|
|
1430
1445
|
--space-container-header-bottom-9elagw:var(--space-scaled-xs-pajbd1);
|
|
1431
1446
|
--space-content-header-padding-bottom-yv2yex:var(--space-scaled-m-lfeh3i);
|
|
1432
1447
|
--space-flashbar-vertical-ssj5fl:var(--space-scaled-xs-pajbd1);
|
|
@@ -1679,6 +1694,7 @@
|
|
|
1679
1694
|
--color-background-alert-success-9dyn87:var(--color-background-status-success-1woffs);
|
|
1680
1695
|
--color-background-alert-warning-021z3n:var(--color-background-status-warning-52cylj);
|
|
1681
1696
|
--color-background-dialog-l7uuft:var(--color-background-status-info-lki61z);
|
|
1697
|
+
--color-background-dialog-default-xpvorm:var(--color-background-card-wgxkh9);
|
|
1682
1698
|
--color-background-table-header-pgyagt:var(--color-background-container-header-irktp5);
|
|
1683
1699
|
--color-text-chat-bubble-outgoing-225h2z:var(--color-text-body-default-b2us04);
|
|
1684
1700
|
--color-text-chat-bubble-incoming-383aqi:var(--color-text-body-default-b2us04);
|
|
@@ -1716,6 +1732,7 @@
|
|
|
1716
1732
|
--color-border-segment-hover-3wvhit:var(--color-border-segment-default-7wdd7x);
|
|
1717
1733
|
--color-border-segment-wrapper-ofstpm:var(--color-border-input-default-jtkw9d);
|
|
1718
1734
|
--color-border-dialog-c9wxm6:var(--color-border-status-info-e5c14y);
|
|
1735
|
+
--color-border-dialog-default-8c0afg:var(--color-border-card-btvpmf);
|
|
1719
1736
|
--color-border-tabs-shadow-egq8wq:var(--color-grey-transparent-3dqrf2);
|
|
1720
1737
|
--color-border-tabs-underline-yipmio:var(--color-text-accent-1mglsg);
|
|
1721
1738
|
--color-border-tiles-disabled-0fmv29:var(--color-background-tiles-disabled-9yvcfs);
|
|
@@ -2015,6 +2032,7 @@
|
|
|
2015
2032
|
--color-background-alert-success-9dyn87:var(--color-background-status-success-1woffs);
|
|
2016
2033
|
--color-background-alert-warning-021z3n:var(--color-background-status-warning-52cylj);
|
|
2017
2034
|
--color-background-dialog-l7uuft:var(--color-background-status-info-lki61z);
|
|
2035
|
+
--color-background-dialog-default-xpvorm:var(--color-background-card-wgxkh9);
|
|
2018
2036
|
--color-text-chat-bubble-outgoing-225h2z:var(--color-text-body-default-b2us04);
|
|
2019
2037
|
--color-text-chat-bubble-incoming-383aqi:var(--color-text-body-default-b2us04);
|
|
2020
2038
|
--color-border-toggle-button-normal-default-7wco5p:var(--color-border-button-normal-default-5u0s6m);
|
|
@@ -2051,6 +2069,7 @@
|
|
|
2051
2069
|
--color-border-segment-hover-3wvhit:var(--color-border-segment-default-7wdd7x);
|
|
2052
2070
|
--color-border-segment-wrapper-ofstpm:var(--color-border-input-default-jtkw9d);
|
|
2053
2071
|
--color-border-dialog-c9wxm6:var(--color-border-status-info-e5c14y);
|
|
2072
|
+
--color-border-dialog-default-8c0afg:var(--color-border-card-btvpmf);
|
|
2054
2073
|
--color-border-tabs-shadow-egq8wq:var(--color-grey-transparent-3dqrf2);
|
|
2055
2074
|
--color-border-tabs-underline-yipmio:var(--color-text-accent-1mglsg);
|
|
2056
2075
|
--color-border-tiles-disabled-0fmv29:var(--color-background-tiles-disabled-9yvcfs);
|
|
@@ -2163,6 +2182,7 @@
|
|
|
2163
2182
|
--color-border-dropdown-group-y5droz:var(--color-border-dropdown-item-default-j9osbc);
|
|
2164
2183
|
--color-border-dropdown-item-default-j9osbc:var(--color-border-divider-default-diwd4w);
|
|
2165
2184
|
--color-border-panel-header-sqy0v4:var(--color-border-divider-default-diwd4w);
|
|
2185
|
+
--color-border-dialog-default-8c0afg:var(--color-border-card-btvpmf);
|
|
2166
2186
|
--color-text-button-inline-icon-default-yujzfi:var(--color-text-link-default-qabnuk);
|
|
2167
2187
|
--color-text-button-inline-icon-hover-kxgkw7:var(--color-text-link-hover-n1r6g0);
|
|
2168
2188
|
--color-text-button-inline-link-hover-b55y5l:var(--color-text-button-normal-hover-a8yjvb);
|
|
@@ -2244,6 +2264,7 @@
|
|
|
2244
2264
|
--color-border-dropdown-group-y5droz:var(--color-border-dropdown-item-default-j9osbc);
|
|
2245
2265
|
--color-border-dropdown-item-default-j9osbc:var(--color-border-divider-default-diwd4w);
|
|
2246
2266
|
--color-border-panel-header-sqy0v4:var(--color-border-divider-default-diwd4w);
|
|
2267
|
+
--color-border-dialog-default-8c0afg:var(--color-border-card-btvpmf);
|
|
2247
2268
|
--color-text-button-inline-icon-default-yujzfi:var(--color-text-link-default-qabnuk);
|
|
2248
2269
|
--color-text-button-inline-icon-hover-kxgkw7:var(--color-text-link-hover-n1r6g0);
|
|
2249
2270
|
--color-text-button-inline-link-hover-b55y5l:var(--color-text-button-normal-hover-a8yjvb);
|
|
@@ -2300,6 +2321,7 @@
|
|
|
2300
2321
|
--color-border-dropdown-group-y5droz:var(--color-border-dropdown-item-default-j9osbc);
|
|
2301
2322
|
--color-border-dropdown-item-default-j9osbc:var(--color-border-divider-default-diwd4w);
|
|
2302
2323
|
--color-border-panel-header-sqy0v4:var(--color-border-divider-default-diwd4w);
|
|
2324
|
+
--color-border-dialog-default-8c0afg:var(--color-border-card-btvpmf);
|
|
2303
2325
|
--color-text-button-inline-link-hover-b55y5l:var(--color-text-button-normal-hover-a8yjvb);
|
|
2304
2326
|
--color-text-link-button-normal-active-9d4yxg:var(--color-text-button-normal-active-n48ns6);
|
|
2305
2327
|
--color-text-button-link-active-48pxp0:var(--color-text-button-normal-active-n48ns6);
|
|
@@ -2549,6 +2571,7 @@
|
|
|
2549
2571
|
--color-background-alert-success-9dyn87:var(--color-background-status-success-1woffs);
|
|
2550
2572
|
--color-background-alert-warning-021z3n:var(--color-background-status-warning-52cylj);
|
|
2551
2573
|
--color-background-dialog-l7uuft:var(--color-background-status-info-lki61z);
|
|
2574
|
+
--color-background-dialog-default-xpvorm:var(--color-background-card-wgxkh9);
|
|
2552
2575
|
--color-background-table-header-pgyagt:var(--color-background-container-header-irktp5);
|
|
2553
2576
|
--color-text-chat-bubble-outgoing-225h2z:var(--color-text-body-default-b2us04);
|
|
2554
2577
|
--color-text-chat-bubble-incoming-383aqi:var(--color-text-body-default-b2us04);
|
|
@@ -2586,6 +2609,7 @@
|
|
|
2586
2609
|
--color-border-segment-hover-3wvhit:var(--color-border-segment-default-7wdd7x);
|
|
2587
2610
|
--color-border-segment-wrapper-ofstpm:var(--color-border-input-default-jtkw9d);
|
|
2588
2611
|
--color-border-dialog-c9wxm6:var(--color-border-status-info-e5c14y);
|
|
2612
|
+
--color-border-dialog-default-8c0afg:var(--color-border-card-btvpmf);
|
|
2589
2613
|
--color-border-tabs-shadow-egq8wq:var(--color-grey-transparent-3dqrf2);
|
|
2590
2614
|
--color-border-tabs-underline-yipmio:var(--color-text-accent-1mglsg);
|
|
2591
2615
|
--color-border-tiles-disabled-0fmv29:var(--color-background-tiles-disabled-9yvcfs);
|
|
@@ -10,7 +10,9 @@ export interface AbstractSwitchProps extends React.HTMLAttributes<HTMLElement>,
|
|
|
10
10
|
nativeControl: (props: React.InputHTMLAttributes<HTMLInputElement>) => React.ReactElement;
|
|
11
11
|
styledControl: React.ReactElement;
|
|
12
12
|
label?: React.ReactNode;
|
|
13
|
+
labelClassName?: string;
|
|
13
14
|
description?: React.ReactNode;
|
|
15
|
+
descriptionClassName?: string;
|
|
14
16
|
descriptionBottomPadding?: boolean;
|
|
15
17
|
ariaLabel?: string;
|
|
16
18
|
ariaLabelledby?: string;
|
|
@@ -44,7 +46,9 @@ export default function AbstractSwitch({
|
|
|
44
46
|
nativeControl,
|
|
45
47
|
styledControl,
|
|
46
48
|
label,
|
|
49
|
+
labelClassName,
|
|
47
50
|
description,
|
|
51
|
+
descriptionClassName,
|
|
48
52
|
descriptionBottomPadding,
|
|
49
53
|
ariaLabel,
|
|
50
54
|
ariaLabelledby,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/abstract-switch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAKrF,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,0BAA0B;IACxG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;IAC1F,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE;YACR,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,WAAW,CAAC,EAAE;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,KAAK,CAAC,EAAE;YACN,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,SAAS,CAAC,EAAE;YACV,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;KACH,CAAC;CACH;AAMD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,EACL,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,cAAc,EACd,eAAe,EACf,YAAY,EACZ,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/abstract-switch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAKrF,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,0BAA0B;IACxG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,KAAK,KAAK,CAAC,YAAY,CAAC;IAC1F,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE;YACR,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,WAAW,CAAC,EAAE;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,KAAK,CAAC,EAAE;YACN,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,SAAS,CAAC,EAAE;YACV,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;KACH,CAAC;CACH;AAMD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,EACL,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,wBAAwB,EACxB,SAAS,EACT,cAAc,EACd,eAAe,EACf,YAAY,EACZ,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,mBAAmB,eAuGrB"}
|
|
@@ -10,7 +10,7 @@ import styles from './styles.css.js';
|
|
|
10
10
|
function joinString(values) {
|
|
11
11
|
return values.filter((value) => !!value).join(' ');
|
|
12
12
|
}
|
|
13
|
-
export default function AbstractSwitch({ controlId, controlClassName, outlineClassName, showOutline, disabled, readOnly, nativeControl, styledControl, label, description, descriptionBottomPadding, ariaLabel, ariaLabelledby, ariaDescribedby, ariaControls, onClick, style, __internalRootRef, ...rest }) {
|
|
13
|
+
export default function AbstractSwitch({ controlId, controlClassName, outlineClassName, showOutline, disabled, readOnly, nativeControl, styledControl, label, labelClassName, description, descriptionClassName, descriptionBottomPadding, ariaLabel, ariaLabelledby, ariaDescribedby, ariaControls, onClick, style, __internalRootRef, ...rest }) {
|
|
14
14
|
var _a, _b, _c, _d, _e, _f;
|
|
15
15
|
const uniqueId = useUniqueId();
|
|
16
16
|
const id = controlId || uniqueId;
|
|
@@ -65,8 +65,10 @@ export default function AbstractSwitch({ controlId, controlClassName, outlineCla
|
|
|
65
65
|
}),
|
|
66
66
|
React.createElement("span", { className: clsx(styles.outline, outlineClassName, showOutline && styles['show-outline']) })),
|
|
67
67
|
React.createElement("span", { className: clsx(styles.content, !label && !description && styles['empty-content']) },
|
|
68
|
-
label && (React.createElement("span", { id: labelId, className: clsx(styles.label, analyticsSelectors.label, {
|
|
69
|
-
|
|
68
|
+
label && (React.createElement("span", { id: labelId, className: clsx(styles.label, labelClassName, analyticsSelectors.label, {
|
|
69
|
+
[styles['label-disabled']]: disabled,
|
|
70
|
+
}), style: { color: (_e = style === null || style === void 0 ? void 0 : style.label) === null || _e === void 0 ? void 0 : _e.color } }, label)),
|
|
71
|
+
description && (React.createElement("span", { id: descriptionId, className: clsx(styles.description, descriptionClassName, {
|
|
70
72
|
[styles['description-disabled']]: disabled,
|
|
71
73
|
[styles['description-bottom-padding']]: descriptionBottomPadding,
|
|
72
74
|
}), style: { color: (_f = style === null || style === void 0 ? void 0 : style.description) === null || _f === void 0 ? void 0 : _f.color } }, description))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/abstract-switch/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAE9B,MAAM,kEAAkE,CAAC;AAE1E,OAAO,cAAc,MAAM,mDAAmD,CAAC;AAG/E,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/abstract-switch/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAE9B,MAAM,kEAAkE,CAAC;AAE1E,OAAO,cAAc,MAAM,mDAAmD,CAAC;AAG/E,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAuCrC,SAAS,UAAU,CAAC,MAA8B;IAChD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,EACL,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,wBAAwB,EACxB,SAAS,EACT,cAAc,EACd,eAAe,EACf,YAAY,EACZ,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,GAAG,IAAI,EACa;;IACpB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,GAAG,SAAS,IAAI,QAAQ,CAAC;IAEjC,MAAM,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC;IAC9B,MAAM,aAAa,GAAG,GAAG,EAAE,cAAc,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W,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,GAAI,CAC7F;YACP,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC,WAAW,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC;gBACrF,KAAK,IAAI,CACR,8BACE,EAAE,EAAE,OAAO,EACX,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,EAAE,kBAAkB,CAAC,KAAK,EAAE;wBACtE,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,EAAE,QAAQ;qBACrC,CAAC,EACF,KAAK,EAAE,EAAE,KAAK,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,KAAK,EAAE,IAEpC,KAAK,CACD,CACR;gBACA,WAAW,IAAI,CACd,8BACE,EAAE,EAAE,aAAa,EACjB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,oBAAoB,EAAE;wBACxD,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,QAAQ;wBAC1C,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC,EAAE,wBAAwB;qBACjE,CAAC,EACF,KAAK,EAAE,EAAE,KAAK,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,0CAAE,KAAK,EAAE,IAE1C,WAAW,CACP,CACR,CACI,CACF,CACF,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport {\n getAnalyticsLabelAttribute,\n getAnalyticsMetadataAttribute,\n LabelIdentifier,\n} from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport customCssProps from '../../../internal/generated/custom-css-properties';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component/index.js';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport interface AbstractSwitchProps extends React.HTMLAttributes<HTMLElement>, InternalBaseComponentProps {\n controlId?: string;\n controlClassName: string;\n outlineClassName: string;\n showOutline?: boolean;\n disabled?: boolean;\n readOnly?: boolean;\n nativeControl: (props: React.InputHTMLAttributes<HTMLInputElement>) => React.ReactElement;\n styledControl: React.ReactElement;\n label?: React.ReactNode;\n labelClassName?: string;\n description?: React.ReactNode;\n descriptionClassName?: string;\n descriptionBottomPadding?: boolean;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n ariaControls?: string;\n onClick: () => void;\n style?: {\n control?: {\n background?: string;\n };\n description?: {\n color?: string;\n };\n label?: {\n color?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n}\n\nfunction joinString(values: (string | undefined)[]) {\n return values.filter((value): value is string => !!value).join(' ');\n}\n\nexport default function AbstractSwitch({\n controlId,\n controlClassName,\n outlineClassName,\n showOutline,\n disabled,\n readOnly,\n nativeControl,\n styledControl,\n label,\n labelClassName,\n description,\n descriptionClassName,\n descriptionBottomPadding,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n ariaControls,\n onClick,\n style,\n __internalRootRef,\n ...rest\n}: AbstractSwitchProps) {\n const uniqueId = useUniqueId();\n const id = controlId || uniqueId;\n\n const labelId = `${id}-label`;\n const descriptionId = `${id}-description`;\n\n const ariaLabelledByIds = [];\n if (label && !ariaLabel) {\n ariaLabelledByIds.push(labelId);\n }\n if (ariaLabelledby) {\n ariaLabelledByIds.push(ariaLabelledby);\n }\n\n const ariaDescriptions = [];\n if (ariaDescribedby) {\n ariaDescriptions.push(ariaDescribedby);\n }\n if (description) {\n ariaDescriptions.push(descriptionId);\n }\n\n // Resolve the interaction label from the associated `<label for>` when there is no inline label, for example when used in collection preferences.\n const interactionLabel: string | LabelIdentifier = label\n ? `.${analyticsSelectors.label}`\n : !ariaLabel && !ariaLabelledby && controlId\n ? { root: 'body', selector: `label[for=\"${controlId}\"]` }\n : `.${analyticsSelectors['native-input']}`;\n\n return (\n <span\n {...rest}\n className={clsx(styles.wrapper, rest.className)}\n ref={__internalRootRef}\n {...getAnalyticsLabelAttribute(label ? `.${analyticsSelectors.label}` : `.${analyticsSelectors['native-input']}`)}\n >\n <span\n className={styles['label-wrapper']}\n aria-disabled={disabled ? 'true' : undefined}\n onClick={disabled || readOnly ? undefined : onClick}\n {...getAnalyticsMetadataAttribute(\n disabled || readOnly\n ? {}\n : {\n action: 'select',\n detail: {\n label: interactionLabel,\n },\n }\n )}\n >\n <span\n className={clsx(styles.control, controlClassName)}\n style={{\n background: style?.control?.background,\n ...(style?.focusRing && {\n [customCssProps.styleFocusRingBorderColor]: style.focusRing?.borderColor,\n [customCssProps.styleFocusRingBorderRadius]: style.focusRing?.borderRadius,\n [customCssProps.styleFocusRingBorderWidth]: style.focusRing?.borderWidth,\n }),\n }}\n >\n {styledControl}\n {nativeControl({\n id,\n disabled,\n className: clsx(styles['native-input'], analyticsSelectors['native-input']),\n 'aria-describedby': ariaDescriptions.length ? joinString(ariaDescriptions) : undefined,\n 'aria-labelledby': ariaLabelledByIds.length ? joinString(ariaLabelledByIds) : undefined,\n 'aria-label': ariaLabel,\n 'aria-controls': ariaControls,\n })}\n <span className={clsx(styles.outline, outlineClassName, showOutline && styles['show-outline'])} />\n </span>\n <span className={clsx(styles.content, !label && !description && styles['empty-content'])}>\n {label && (\n <span\n id={labelId}\n className={clsx(styles.label, labelClassName, analyticsSelectors.label, {\n [styles['label-disabled']]: disabled,\n })}\n style={{ color: style?.label?.color }}\n >\n {label}\n </span>\n )}\n {description && (\n <span\n id={descriptionId}\n className={clsx(styles.description, descriptionClassName, {\n [styles['description-disabled']]: disabled,\n [styles['description-bottom-padding']]: descriptionBottomPadding,\n })}\n style={{ color: style?.description?.color }}\n >\n {description}\n </span>\n )}\n </span>\n </span>\n </span>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/checkbox-icon/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMnE,UAAU,iBAAkB,SAAQ,kBAAkB;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE;YACJ,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,IAAI,CAAC,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;CACH;AAsCD,QAAA,MAAM,YAAY,GAAI,qEAOnB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/checkbox-icon/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMnE,UAAU,iBAAkB,SAAQ,kBAAkB;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE;YACJ,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,IAAI,CAAC,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;CACH;AAsCD,QAAA,MAAM,YAAY,GAAI,qEAOnB,iBAAiB,gBA2CnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { getBaseProps } from '../../base-component';
|
|
6
6
|
import { useOneTheme, useVisualRefresh } from '../../hooks/use-visual-mode';
|
|
@@ -38,6 +38,12 @@ const CheckboxIcon = ({ checked, indeterminate, disabled = false, readOnly = fal
|
|
|
38
38
|
const oneTheme = useOneTheme();
|
|
39
39
|
const theme = useVisualRefresh() ? (oneTheme ? 'one' : 'refresh') : 'default';
|
|
40
40
|
const dimensions = dimensionsByTheme[theme];
|
|
41
|
+
// The draw-in animation only plays once the state has changed since mount.
|
|
42
|
+
const [initialState] = useState({ checked: !!checked, indeterminate: !!indeterminate });
|
|
43
|
+
const [hasChanged, setHasChanged] = useState(false);
|
|
44
|
+
if (!hasChanged && (!!checked !== initialState.checked || !!indeterminate !== initialState.indeterminate)) {
|
|
45
|
+
setHasChanged(true);
|
|
46
|
+
}
|
|
41
47
|
return (React.createElement("svg", { className: styles.root, viewBox: dimensions.viewBox, "aria-hidden": "true", focusable: "false", ...baseProps },
|
|
42
48
|
React.createElement("rect", { className: clsx(styles['styled-box'], {
|
|
43
49
|
[styles['styled-box-checked']]: checked,
|
|
@@ -48,7 +54,7 @@ const CheckboxIcon = ({ checked, indeterminate, disabled = false, readOnly = fal
|
|
|
48
54
|
checked || indeterminate ? (React.createElement("polyline", { className: clsx(styles['styled-line'], {
|
|
49
55
|
[styles['styled-line-disabled']]: disabled,
|
|
50
56
|
[styles['styled-line-readonly']]: readOnly,
|
|
51
|
-
}), points: indeterminate ? dimensions.indeterminate : dimensions.checked, style: { stroke: (_c = style === null || style === void 0 ? void 0 : style.line) === null || _c === void 0 ? void 0 : _c.stroke } })) : null));
|
|
57
|
+
}), "data-awsui-motion-ready": hasChanged ? '' : undefined, points: indeterminate ? dimensions.indeterminate : dimensions.checked, style: { stroke: (_c = style === null || style === void 0 ? void 0 : style.line) === null || _c === void 0 ? void 0 : _c.stroke } })) : null));
|
|
52
58
|
};
|
|
53
59
|
export default CheckboxIcon;
|
|
54
60
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/checkbox-icon/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/checkbox-icon/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AA0BrC,6CAA6C;AAC7C,MAAM,iBAAiB,GAAkE;IACvF,OAAO,EAAE;QACP,OAAO,EAAE,WAAW;QACpB,aAAa,EAAE,cAAc;QAC7B,OAAO,EAAE,iBAAiB;QAC1B,EAAE,EAAE,GAAG;QACP,CAAC,EAAE,GAAG;QACN,IAAI,EAAE,EAAE;KACT;IACD,OAAO,EAAE;QACP,OAAO,EAAE,WAAW;QACpB,aAAa,EAAE,cAAc;QAC7B,OAAO,EAAE,iBAAiB;QAC1B,EAAE,EAAE,GAAG;QACP,CAAC,EAAE,CAAC;QACJ,IAAI,EAAE,EAAE;KACT;IACD,GAAG,EAAE;QACH,OAAO,EAAE,WAAW;QACpB,aAAa,EAAE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CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\n\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { getBaseProps } from '../../base-component';\nimport { useOneTheme, useVisualRefresh } from '../../hooks/use-visual-mode';\n\nimport styles from './styles.css.js';\n\ninterface CheckboxIconProps extends BaseComponentProps {\n checked?: boolean;\n indeterminate?: boolean;\n disabled?: boolean;\n readOnly?: boolean;\n style?: {\n box?: {\n fill?: string;\n stroke?: string;\n };\n line?: {\n stroke?: string;\n };\n };\n}\ninterface Dimension {\n viewBox: string;\n indeterminate: string;\n checked: string;\n xy: number;\n r: number;\n size: number;\n}\n\n// Can't use css variables for svg attributes\nconst dimensionsByTheme: Record<NonNullable<'default' | 'refresh' | 'one'>, Dimension> = {\n default: {\n viewBox: '0 0 14 14',\n indeterminate: '2.5,7 11.5,7',\n checked: '2.5,7 6,10 11,3',\n xy: 0.5,\n r: 1.5,\n size: 13,\n },\n refresh: {\n viewBox: '0 0 16 16',\n indeterminate: '3.5,8 12.5,8',\n checked: '3.5,8 7,11 12,4',\n xy: 0.5,\n r: 3,\n size: 15,\n },\n one: {\n viewBox: '0 0 16 16',\n indeterminate: '3.5,8 12.5,8',\n checked: '3.5,8 7,11 12,4',\n xy: 0.5,\n r: 2,\n size: 15,\n },\n};\n\nconst CheckboxIcon = ({\n checked,\n indeterminate,\n disabled = false,\n readOnly = false,\n style,\n ...restProps\n}: CheckboxIconProps) => {\n const baseProps = getBaseProps(restProps);\n const oneTheme = useOneTheme();\n const theme = useVisualRefresh() ? (oneTheme ? 'one' : 'refresh') : 'default';\n const dimensions = dimensionsByTheme[theme];\n\n // The draw-in animation only plays once the state has changed since mount.\n const [initialState] = useState({ checked: !!checked, indeterminate: !!indeterminate });\n const [hasChanged, setHasChanged] = useState(false);\n if (!hasChanged && (!!checked !== initialState.checked || !!indeterminate !== initialState.indeterminate)) {\n setHasChanged(true);\n }\n\n return (\n <svg className={styles.root} viewBox={dimensions.viewBox} aria-hidden=\"true\" focusable=\"false\" {...baseProps}>\n <rect\n className={clsx(styles['styled-box'], {\n [styles['styled-box-checked']]: checked,\n [styles['styled-box-indeterminate']]: indeterminate,\n [styles['styled-box-disabled']]: disabled,\n [styles['styled-box-readonly']]: readOnly,\n })}\n x={dimensions.xy}\n y={dimensions.xy}\n rx={dimensions.r}\n ry={dimensions.r}\n width={dimensions.size}\n height={dimensions.size}\n style={{ fill: style?.box?.fill, stroke: style?.box?.stroke }}\n />\n {checked || indeterminate ? (\n <polyline\n className={clsx(styles['styled-line'], {\n [styles['styled-line-disabled']]: disabled,\n [styles['styled-line-readonly']]: readOnly,\n })}\n data-awsui-motion-ready={hasChanged ? '' : undefined}\n points={indeterminate ? dimensions.indeterminate : dimensions.checked}\n style={{ stroke: style?.line?.stroke }}\n />\n ) : null}\n </svg>\n );\n};\n\nexport default CheckboxIcon;\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"styled-box": "awsui_styled-
|
|
6
|
-
"styled-box-checked": "awsui_styled-box-
|
|
7
|
-
"styled-box-indeterminate": "awsui_styled-box-
|
|
8
|
-
"styled-box-disabled": "awsui_styled-box-
|
|
9
|
-
"styled-box-readonly": "awsui_styled-box-
|
|
10
|
-
"styled-line": "awsui_styled-
|
|
11
|
-
"styled-line-disabled": "awsui_styled-line-
|
|
12
|
-
"styled-line-readonly": "awsui_styled-line-
|
|
4
|
+
"root": "awsui_root_1fn7j_1080n_9",
|
|
5
|
+
"styled-box": "awsui_styled-box_1fn7j_1080n_16",
|
|
6
|
+
"styled-box-checked": "awsui_styled-box-checked_1fn7j_1080n_32",
|
|
7
|
+
"styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_1080n_32",
|
|
8
|
+
"styled-box-disabled": "awsui_styled-box-disabled_1fn7j_1080n_36",
|
|
9
|
+
"styled-box-readonly": "awsui_styled-box-readonly_1fn7j_1080n_36",
|
|
10
|
+
"styled-line": "awsui_styled-line_1fn7j_1080n_40",
|
|
11
|
+
"styled-line-disabled": "awsui_styled-line-disabled_1fn7j_1080n_45",
|
|
12
|
+
"styled-line-readonly": "awsui_styled-line-readonly_1fn7j_1080n_48"
|
|
13
13
|
};
|
|
14
14
|
|