@cloudscape-design/components-themeable 3.0.1311 → 3.0.1312
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +16 -0
- package/lib/internal/scss/app-layout/visual-refresh/navigation.scss +1 -1
- package/lib/internal/scss/app-layout/visual-refresh/tools.scss +4 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +1 -1
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/navigation/styles.scss +1 -1
- package/lib/internal/scss/button-dropdown/styles.scss +4 -0
- package/lib/internal/scss/expandable-section/styles.scss +17 -0
- package/lib/internal/scss/internal/components/button-trigger/styles.scss +7 -0
- package/lib/internal/scss/internal/components/drag-handle/styles.scss +5 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/status-indicator/styles.scss +36 -0
- package/lib/internal/scss/table/header-cell/styles.scss +1 -1
- package/lib/internal/scss/tree-view/tree-item/styles.scss +10 -0
- package/lib/internal/template/app-layout/runtime-drawer/index.js +1 -1
- package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/drawers.js +3 -0
- package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +87 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +176 -164
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +87 -86
- package/lib/internal/template/app-layout/visual-refresh/tools.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/tools.js +2 -0
- package/lib/internal/template/app-layout/visual-refresh/tools.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/lib/internal/template/breadcrumb-group/implementation.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/implementation.js +2 -2
- package/lib/internal/template/breadcrumb-group/implementation.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.js +2 -1
- package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
- package/lib/internal/template/button/internal.d.ts +3 -0
- package/lib/internal/template/button/internal.d.ts.map +1 -1
- package/lib/internal/template/button/internal.js +2 -2
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal.js +4 -3
- package/lib/internal/template/button-dropdown/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/styles.css.js +22 -21
- package/lib/internal/template/button-dropdown/styles.scoped.css +33 -29
- package/lib/internal/template/button-dropdown/styles.selectors.js +22 -21
- package/lib/internal/template/button-group/icon-toggle-button-item.js +1 -1
- package/lib/internal/template/button-group/icon-toggle-button-item.js.map +1 -1
- package/lib/internal/template/dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/dropdown/internal.js +14 -2
- package/lib/internal/template/dropdown/internal.js.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js +5 -5
- package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
- package/lib/internal/template/expandable-section/styles.css.js +36 -35
- package/lib/internal/template/expandable-section/styles.scoped.css +81 -66
- package/lib/internal/template/expandable-section/styles.selectors.js +36 -35
- package/lib/internal/template/icon/generated/icons.d.ts +1 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +2 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +7 -1
- package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.js +3 -2
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +15 -14
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +35 -29
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +15 -14
- package/lib/internal/template/internal/components/drag-handle/styles.css.js +14 -14
- package/lib/internal/template/internal/components/drag-handle/styles.scoped.css +20 -19
- package/lib/internal/template/internal/components/drag-handle/styles.selectors.js +14 -14
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.js +6 -3
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.d.ts +2 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.js +2 -2
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.js.map +1 -1
- package/lib/internal/template/internal/components/expand-toggle-button/index.js +2 -2
- package/lib/internal/template/internal/components/expand-toggle-button/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +33 -0
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +9 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +9 -0
- package/lib/internal/template/internal/generated/theming/index.js +33 -0
- package/lib/internal/template/internal/hooks/use-mouse-down-target.js +2 -2
- package/lib/internal/template/internal/hooks/use-mouse-down-target.js.map +1 -1
- package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js +4 -2
- package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
- package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts +1 -0
- package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-visual-mode/index.js +2 -1
- package/lib/internal/template/internal/hooks/use-visual-mode/index.js.map +1 -1
- package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
- package/lib/internal/template/status-indicator/internal.js +4 -3
- package/lib/internal/template/status-indicator/internal.js.map +1 -1
- package/lib/internal/template/status-indicator/styles.css.js +25 -24
- package/lib/internal/template/status-indicator/styles.scoped.css +75 -40
- package/lib/internal/template/status-indicator/styles.selectors.js +25 -24
- package/lib/internal/template/table/header-cell/group-header-cell.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/group-header-cell.js +3 -15
- package/lib/internal/template/table/header-cell/group-header-cell.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +33 -33
- package/lib/internal/template/table/header-cell/styles.scoped.css +73 -73
- package/lib/internal/template/table/header-cell/styles.selectors.js +33 -33
- package/lib/internal/template/table/header-cell/th-element.d.ts +6 -5
- package/lib/internal/template/table/header-cell/th-element.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/th-element.js +4 -3
- package/lib/internal/template/table/header-cell/th-element.js.map +1 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts +2 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.js +31 -7
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.js.map +1 -1
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +1 -1
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/test-utils/dom/table/index.js +1 -1
- package/lib/internal/template/test-utils/dom/table/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/table/index.js +1 -1
- package/lib/internal/template/test-utils/selectors/table/index.js.map +1 -1
- package/lib/internal/template/theming/index.d.ts +2 -0
- package/lib/internal/template/theming/index.d.ts.map +1 -1
- package/lib/internal/template/theming/index.js +55 -0
- package/lib/internal/template/theming/index.js.map +1 -1
- package/lib/internal/template/tree-view/tree-item/index.d.ts.map +1 -1
- package/lib/internal/template/tree-view/tree-item/index.js +2 -1
- package/lib/internal/template/tree-view/tree-item/index.js.map +1 -1
- package/lib/internal/template/tree-view/tree-item/styles.css.js +10 -9
- package/lib/internal/template/tree-view/tree-item/styles.scoped.css +19 -12
- package/lib/internal/template/tree-view/tree-item/styles.selectors.js +10 -9
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAE9G,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC;AAE7F,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { isThemeActive, Theme, useRuntimeVisualRefresh } from '@cloudscape-design/component-toolkit/internal';\n\nimport { ALWAYS_VISUAL_REFRESH } from '../../environment';\n\nexport const useVisualRefresh = ALWAYS_VISUAL_REFRESH ? () => true : useRuntimeVisualRefresh;\n\nexport const useOneTheme = () => isThemeActive(Theme.OneTheme);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,WAAW,4BACf,SAAQ,YAAY,CAAC,oBAAoB,EAAE,MAAM,CAAC,EAChD,0BAA0B;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;CACvC;AAcD,UAAU,uBAAwB,SAAQ,IAAI,CAAC,4BAA4B,EAAE,MAAM,GAAG,eAAe,CAAC;IACpG,OAAO,CAAC,EAAE,4BAA4B,CAAC,WAAW,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,4BAA4B,CAAC,WAAW,CAAC,CAAC;CACrD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,aAAa,EACb,OAAO,EACP,OAAO,EACP,IAAe,GAChB,EAAE,uBAAuB,eAezB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAe,EACf,gBAAgB,EAChB,SAAiB,EACjB,iBAAiB,EACjB,MAA6D,EAC7D,SAA0B,EAC1B,GAAG,IAAI,EACR,EAAE,4BAA4B,eAsC9B"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { isThemeActive, Theme } from '@cloudscape-design/component-toolkit/internal';
|
|
5
6
|
import InternalIcon from '../icon/internal';
|
|
6
7
|
import { getBaseProps } from '../internal/base-component';
|
|
7
8
|
/**
|
|
@@ -22,16 +23,16 @@ const typeToIcon = size => ({
|
|
|
22
23
|
'not-started': React.createElement(InternalIcon, { name: "status-not-started", size: size }),
|
|
23
24
|
});
|
|
24
25
|
export function InternalStatusIcon({ type, iconAriaLabel, animate, display, size = 'normal', }) {
|
|
25
|
-
return (React.createElement("span", { className: clsx(styles.icon, animate && styles['icon-shake']), "aria-label": iconAriaLabel, role: iconAriaLabel ? 'img' : undefined },
|
|
26
|
+
return (React.createElement("span", { className: clsx(styles.icon, animate && styles['icon-shake'], isThemeActive(Theme.OneTheme) && styles['one-theme']), "aria-label": iconAriaLabel, role: iconAriaLabel ? 'img' : undefined },
|
|
26
27
|
typeToIcon(size)[type],
|
|
27
28
|
display === 'inline' && React.createElement(React.Fragment, null, "\u00A0")));
|
|
28
29
|
}
|
|
29
|
-
export default function StatusIndicator({ type, children, iconAriaLabel, colorOverride, wrapText = true, nativeAttributes, __animate = false, __internalRootRef, __size = 'normal', __display = 'inline-block', ...rest }) {
|
|
30
|
+
export default function StatusIndicator({ type, children, iconAriaLabel, colorOverride, wrapText = true, nativeAttributes, __animate = false, __internalRootRef, __size = isThemeActive(Theme.OneTheme) ? 'x-small' : 'normal', __display = 'inline-block', ...rest }) {
|
|
30
31
|
const baseProps = getBaseProps(rest);
|
|
31
32
|
return (React.createElement(WithNativeAttributes, { ...baseProps, tag: "span", componentName: "StatusIndicator", nativeAttributes: nativeAttributes, className: clsx(styles.root, styles[`status-${type}`], {
|
|
32
33
|
[styles[`color-override-${colorOverride}`]]: colorOverride,
|
|
33
34
|
}, baseProps.className), ref: __internalRootRef },
|
|
34
|
-
React.createElement("span", { className: clsx(styles.container, styles[`display-${__display}`], wrapText === false && styles['overflow-ellipsis'], __animate && styles['container-fade-in']) },
|
|
35
|
+
React.createElement("span", { className: clsx(styles.container, styles[`display-${__display}`], isThemeActive(Theme.OneTheme) && styles['one-theme'], wrapText === false && styles['overflow-ellipsis'], __animate && styles['container-fade-in']) },
|
|
35
36
|
React.createElement(InternalStatusIcon, { type: type, iconAriaLabel: iconAriaLabel, animate: __animate, display: __display, size: __size }),
|
|
36
37
|
React.createElement("span", null, children))));
|
|
37
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/status-indicator/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1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AAC,KAAK,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,EACpD,QAAQ,KAAK,KAAK,IAAI,MAAM,CAAC,mBAAmB,CAAC,EACjD,SAAS,IAAI,MAAM,CAAC,mBAAmB,CAAC,CACzC;YAED,oBAAC,kBAAkB,IACjB,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,MAAM,GACZ;YACF,kCAAO,QAAQ,CAAQ,CAClB,CACc,CACxB,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 { isThemeActive, Theme } from '@cloudscape-design/component-toolkit/internal';\n\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\n/**\n * @awsuiSystem core\n */\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport InternalSpinner from '../spinner/internal';\nimport { StatusIndicatorProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalStatusIndicatorProps\n extends SomeRequired<StatusIndicatorProps, 'type'>,\n InternalBaseComponentProps {\n /**\n * Play an animation on the error icon when first rendered\n */\n __animate?: boolean;\n\n /**\n * Size of icon.\n */\n __size?: IconProps.Size;\n\n /**\n * The CSS behavior of the status indicator container element.\n */\n __display?: 'inline' | 'inline-block';\n}\n\nconst typeToIcon: (size: IconProps.Size) => Record<StatusIndicatorProps.Type, JSX.Element> = size => ({\n error: <InternalIcon name=\"status-negative\" size={size} />,\n warning: <InternalIcon name=\"status-warning\" size={size} />,\n success: <InternalIcon name=\"status-positive\" size={size} />,\n info: <InternalIcon name=\"status-info\" size={size} />,\n stopped: <InternalIcon name=\"status-stopped\" size={size} />,\n pending: <InternalIcon name=\"status-pending\" size={size} />,\n 'in-progress': <InternalIcon name=\"status-in-progress\" size={size} />,\n loading: <InternalSpinner />,\n 'not-started': <InternalIcon name=\"status-not-started\" size={size} />,\n});\n\ninterface InternalStatusIconProps extends Pick<InternalStatusIndicatorProps, 'type' | 'iconAriaLabel'> {\n animate?: InternalStatusIndicatorProps['__animate'];\n size?: InternalStatusIndicatorProps['__size'];\n display?: InternalStatusIndicatorProps['__display'];\n}\n\nexport function InternalStatusIcon({\n type,\n iconAriaLabel,\n animate,\n display,\n size = 'normal',\n}: InternalStatusIconProps) {\n return (\n <span\n className={clsx(\n styles.icon,\n animate && styles['icon-shake'],\n isThemeActive(Theme.OneTheme) && styles['one-theme']\n )}\n aria-label={iconAriaLabel}\n role={iconAriaLabel ? 'img' : undefined}\n >\n {typeToIcon(size)[type]}\n {display === 'inline' && <> </>}\n </span>\n );\n}\n\nexport default function StatusIndicator({\n type,\n children,\n iconAriaLabel,\n colorOverride,\n wrapText = true,\n nativeAttributes,\n __animate = false,\n __internalRootRef,\n __size = isThemeActive(Theme.OneTheme) ? 'x-small' : 'normal',\n __display = 'inline-block',\n ...rest\n}: InternalStatusIndicatorProps) {\n const baseProps = getBaseProps(rest);\n return (\n <WithNativeAttributes\n {...baseProps}\n tag=\"span\"\n componentName=\"StatusIndicator\"\n nativeAttributes={nativeAttributes}\n className={clsx(\n styles.root,\n styles[`status-${type}`],\n {\n [styles[`color-override-${colorOverride}`]]: colorOverride,\n },\n baseProps.className\n )}\n ref={__internalRootRef}\n >\n <span\n className={clsx(\n styles.container,\n styles[`display-${__display}`],\n isThemeActive(Theme.OneTheme) && styles['one-theme'],\n wrapText === false && styles['overflow-ellipsis'],\n __animate && styles['container-fade-in']\n )}\n >\n <InternalStatusIcon\n type={type}\n iconAriaLabel={iconAriaLabel}\n animate={__animate}\n display={__display}\n size={__size}\n />\n <span>{children}</span>\n </span>\n </WithNativeAttributes>\n );\n}\n"]}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"icon-shake": "awsui_icon-
|
|
5
|
-
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-
|
|
6
|
-
"container-fade-in": "awsui_container-fade-
|
|
7
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
8
|
-
"root": "
|
|
9
|
-
"status-error": "awsui_status-
|
|
10
|
-
"status-warning": "awsui_status-
|
|
11
|
-
"status-success": "awsui_status-
|
|
12
|
-
"status-info": "awsui_status-
|
|
13
|
-
"status-stopped": "awsui_status-
|
|
14
|
-
"status-pending": "awsui_status-
|
|
15
|
-
"status-in-progress": "awsui_status-in-
|
|
16
|
-
"status-loading": "awsui_status-
|
|
17
|
-
"status-not-started": "awsui_status-not-
|
|
18
|
-
"color-override-red": "awsui_color-override-
|
|
19
|
-
"color-override-grey": "awsui_color-override-
|
|
20
|
-
"color-override-blue": "awsui_color-override-
|
|
21
|
-
"color-override-green": "awsui_color-override-
|
|
22
|
-
"color-override-yellow": "awsui_color-override-
|
|
23
|
-
"container": "
|
|
24
|
-
"display-inline": "awsui_display-
|
|
25
|
-
"icon": "
|
|
26
|
-
"
|
|
27
|
-
"
|
|
4
|
+
"icon-shake": "awsui_icon-shake_1cbgc_13oha_153",
|
|
5
|
+
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_13oha_1",
|
|
6
|
+
"container-fade-in": "awsui_container-fade-in_1cbgc_13oha_181",
|
|
7
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_13oha_1",
|
|
8
|
+
"root": "awsui_root_1cbgc_13oha_203",
|
|
9
|
+
"status-error": "awsui_status-error_1cbgc_13oha_212",
|
|
10
|
+
"status-warning": "awsui_status-warning_1cbgc_13oha_215",
|
|
11
|
+
"status-success": "awsui_status-success_1cbgc_13oha_218",
|
|
12
|
+
"status-info": "awsui_status-info_1cbgc_13oha_221",
|
|
13
|
+
"status-stopped": "awsui_status-stopped_1cbgc_13oha_224",
|
|
14
|
+
"status-pending": "awsui_status-pending_1cbgc_13oha_227",
|
|
15
|
+
"status-in-progress": "awsui_status-in-progress_1cbgc_13oha_230",
|
|
16
|
+
"status-loading": "awsui_status-loading_1cbgc_13oha_233",
|
|
17
|
+
"status-not-started": "awsui_status-not-started_1cbgc_13oha_236",
|
|
18
|
+
"color-override-red": "awsui_color-override-red_1cbgc_13oha_239",
|
|
19
|
+
"color-override-grey": "awsui_color-override-grey_1cbgc_13oha_242",
|
|
20
|
+
"color-override-blue": "awsui_color-override-blue_1cbgc_13oha_245",
|
|
21
|
+
"color-override-green": "awsui_color-override-green_1cbgc_13oha_248",
|
|
22
|
+
"color-override-yellow": "awsui_color-override-yellow_1cbgc_13oha_251",
|
|
23
|
+
"container": "awsui_container_1cbgc_13oha_181",
|
|
24
|
+
"display-inline": "awsui_display-inline_1cbgc_13oha_304",
|
|
25
|
+
"icon": "awsui_icon_1cbgc_13oha_153",
|
|
26
|
+
"one-theme": "awsui_one-theme_1cbgc_13oha_312",
|
|
27
|
+
"display-inline-block": "awsui_display-inline-block_1cbgc_13oha_315",
|
|
28
|
+
"overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_13oha_333"
|
|
28
29
|
};
|
|
29
30
|
|
|
@@ -150,11 +150,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
150
150
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
151
151
|
SPDX-License-Identifier: Apache-2.0
|
|
152
152
|
*/
|
|
153
|
-
.awsui_icon-
|
|
153
|
+
.awsui_icon-shake_1cbgc_13oha_153:not(#\9) {
|
|
154
154
|
display: inline-block;
|
|
155
|
-
animation: awsui_awsui-motion-shake-
|
|
155
|
+
animation: awsui_awsui-motion-shake-horizontally_1cbgc_13oha_1 var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
156
156
|
}
|
|
157
|
-
@keyframes awsui_awsui-motion-shake-
|
|
157
|
+
@keyframes awsui_awsui-motion-shake-horizontally_1cbgc_13oha_1 {
|
|
158
158
|
0% {
|
|
159
159
|
transform: translateX(-5px);
|
|
160
160
|
animation-timing-function: linear;
|
|
@@ -168,20 +168,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
@media (prefers-reduced-motion: reduce) {
|
|
171
|
-
.awsui_icon-
|
|
171
|
+
.awsui_icon-shake_1cbgc_13oha_153:not(#\9) {
|
|
172
172
|
animation: none;
|
|
173
173
|
transition: none;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
.awsui-motion-disabled .awsui_icon-
|
|
176
|
+
.awsui-motion-disabled .awsui_icon-shake_1cbgc_13oha_153:not(#\9), .awsui-mode-entering .awsui_icon-shake_1cbgc_13oha_153:not(#\9) {
|
|
177
177
|
animation: none;
|
|
178
178
|
transition: none;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
.awsui_container-fade-
|
|
182
|
-
animation: awsui_awsui-motion-fade-in-
|
|
181
|
+
.awsui_container-fade-in_1cbgc_13oha_181:not(#\9) {
|
|
182
|
+
animation: awsui_awsui-motion-fade-in-0_1cbgc_13oha_1 var(--motion-duration-refresh-only-medium-h3wrr6, 0ms) var(--motion-easing-refresh-only-a-8gio5w, cubic-bezier(0, 0, 0, 1));
|
|
183
183
|
}
|
|
184
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
184
|
+
@keyframes awsui_awsui-motion-fade-in-0_1cbgc_13oha_1 {
|
|
185
185
|
from {
|
|
186
186
|
opacity: 0;
|
|
187
187
|
}
|
|
@@ -190,17 +190,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
@media (prefers-reduced-motion: reduce) {
|
|
193
|
-
.awsui_container-fade-
|
|
193
|
+
.awsui_container-fade-in_1cbgc_13oha_181:not(#\9) {
|
|
194
194
|
animation: none;
|
|
195
195
|
transition: none;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
.awsui-motion-disabled .awsui_container-fade-
|
|
198
|
+
.awsui-motion-disabled .awsui_container-fade-in_1cbgc_13oha_181:not(#\9), .awsui-mode-entering .awsui_container-fade-in_1cbgc_13oha_181:not(#\9) {
|
|
199
199
|
animation: none;
|
|
200
200
|
transition: none;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
.
|
|
203
|
+
.awsui_root_1cbgc_13oha_203:not(#\9) {
|
|
204
204
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
205
205
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
206
206
|
color: var(--color-text-body-default-5qid0u, #16191f);
|
|
@@ -209,104 +209,139 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
209
209
|
-webkit-font-smoothing: auto;
|
|
210
210
|
-moz-osx-font-smoothing: auto;
|
|
211
211
|
}
|
|
212
|
-
.
|
|
212
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-error_1cbgc_13oha_212:not(#\9) {
|
|
213
213
|
color: var(--color-text-status-error-aknuvu, #d13212);
|
|
214
214
|
}
|
|
215
|
-
.
|
|
215
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-warning_1cbgc_13oha_215:not(#\9) {
|
|
216
216
|
color: var(--color-text-status-warning-9b45qh, #906806);
|
|
217
217
|
}
|
|
218
|
-
.
|
|
218
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-success_1cbgc_13oha_218:not(#\9) {
|
|
219
219
|
color: var(--color-text-status-success-yodf3z, #1d8102);
|
|
220
220
|
}
|
|
221
|
-
.
|
|
221
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-info_1cbgc_13oha_221:not(#\9) {
|
|
222
222
|
color: var(--color-text-status-info-xt2ka7, #0073bb);
|
|
223
223
|
}
|
|
224
|
-
.
|
|
224
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-stopped_1cbgc_13oha_224:not(#\9) {
|
|
225
225
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
226
226
|
}
|
|
227
|
-
.
|
|
227
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-pending_1cbgc_13oha_227:not(#\9) {
|
|
228
228
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
229
229
|
}
|
|
230
|
-
.
|
|
230
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-in-progress_1cbgc_13oha_230:not(#\9) {
|
|
231
231
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
232
232
|
}
|
|
233
|
-
.
|
|
233
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-loading_1cbgc_13oha_233:not(#\9) {
|
|
234
234
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
235
235
|
}
|
|
236
|
-
.
|
|
236
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-not-started_1cbgc_13oha_236:not(#\9) {
|
|
237
237
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
238
238
|
}
|
|
239
|
-
.
|
|
239
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-red_1cbgc_13oha_239:not(#\9) {
|
|
240
240
|
color: var(--color-text-status-error-aknuvu, #d13212);
|
|
241
241
|
}
|
|
242
|
-
.
|
|
242
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-grey_1cbgc_13oha_242:not(#\9) {
|
|
243
243
|
color: var(--color-text-status-inactive-n7p1uq, #687078);
|
|
244
244
|
}
|
|
245
|
-
.
|
|
245
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-blue_1cbgc_13oha_245:not(#\9) {
|
|
246
246
|
color: var(--color-text-status-info-xt2ka7, #0073bb);
|
|
247
247
|
}
|
|
248
|
-
.
|
|
248
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-green_1cbgc_13oha_248:not(#\9) {
|
|
249
249
|
color: var(--color-text-status-success-yodf3z, #1d8102);
|
|
250
250
|
}
|
|
251
|
-
.
|
|
251
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-yellow_1cbgc_13oha_251:not(#\9) {
|
|
252
252
|
color: var(--color-text-status-warning-9b45qh, #906806);
|
|
253
253
|
}
|
|
254
|
-
.
|
|
254
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-error_1cbgc_13oha_212 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
255
255
|
background: var(--color-background-status-indicator-error-621sf8, transparent);
|
|
256
256
|
}
|
|
257
|
-
.
|
|
257
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-warning_1cbgc_13oha_215 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
258
258
|
background: var(--color-background-status-indicator-warning-3kccdi, transparent);
|
|
259
259
|
}
|
|
260
|
-
.
|
|
260
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-success_1cbgc_13oha_218 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
261
261
|
background: var(--color-background-status-indicator-success-9mizpw, transparent);
|
|
262
262
|
}
|
|
263
|
-
.
|
|
263
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-info_1cbgc_13oha_221 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
264
264
|
background: var(--color-background-status-indicator-info-zw9ljm, transparent);
|
|
265
265
|
}
|
|
266
|
-
.
|
|
266
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-stopped_1cbgc_13oha_224 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
267
267
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
268
268
|
}
|
|
269
|
-
.
|
|
269
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-pending_1cbgc_13oha_227 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
270
270
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
271
271
|
}
|
|
272
|
-
.
|
|
272
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-in-progress_1cbgc_13oha_230 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
273
273
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
274
274
|
}
|
|
275
|
-
.
|
|
275
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-loading_1cbgc_13oha_233 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
276
276
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
277
277
|
}
|
|
278
|
-
.
|
|
278
|
+
.awsui_root_1cbgc_13oha_203.awsui_status-not-started_1cbgc_13oha_236 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
279
279
|
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
280
280
|
}
|
|
281
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-red_1cbgc_13oha_239 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
282
|
+
background: var(--color-background-status-indicator-error-621sf8, transparent);
|
|
283
|
+
}
|
|
284
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-grey_1cbgc_13oha_242 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
285
|
+
background: var(--color-background-status-indicator-neutral-50dvgi, transparent);
|
|
286
|
+
}
|
|
287
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-blue_1cbgc_13oha_245 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
288
|
+
background: var(--color-background-status-indicator-info-zw9ljm, transparent);
|
|
289
|
+
}
|
|
290
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-green_1cbgc_13oha_248 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
291
|
+
background: var(--color-background-status-indicator-success-9mizpw, transparent);
|
|
292
|
+
}
|
|
293
|
+
.awsui_root_1cbgc_13oha_203.awsui_color-override-yellow_1cbgc_13oha_251 > .awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
294
|
+
background: var(--color-background-status-indicator-warning-3kccdi, transparent);
|
|
295
|
+
}
|
|
281
296
|
|
|
282
|
-
.
|
|
297
|
+
.awsui_container_1cbgc_13oha_181:not(#\9) {
|
|
283
298
|
padding-inline: var(--space-status-indicator-padding-horizontal-hzqgcr, 0px);
|
|
284
299
|
border-start-start-radius: var(--border-radius-status-indicator-42rwc5, 16px);
|
|
285
300
|
border-start-end-radius: var(--border-radius-status-indicator-42rwc5, 16px);
|
|
286
301
|
border-end-start-radius: var(--border-radius-status-indicator-42rwc5, 16px);
|
|
287
302
|
border-end-end-radius: var(--border-radius-status-indicator-42rwc5, 16px);
|
|
288
303
|
}
|
|
289
|
-
.
|
|
304
|
+
.awsui_container_1cbgc_13oha_181.awsui_display-inline_1cbgc_13oha_304:not(#\9) {
|
|
290
305
|
min-inline-size: 0;
|
|
291
306
|
word-break: break-word;
|
|
292
307
|
display: inline;
|
|
293
308
|
}
|
|
294
|
-
.
|
|
309
|
+
.awsui_container_1cbgc_13oha_181.awsui_display-inline_1cbgc_13oha_304 > .awsui_icon_1cbgc_13oha_153:not(#\9) {
|
|
295
310
|
white-space: nowrap;
|
|
296
311
|
}
|
|
297
|
-
.
|
|
312
|
+
.awsui_container_1cbgc_13oha_181.awsui_display-inline_1cbgc_13oha_304 > .awsui_icon_1cbgc_13oha_153.awsui_one-theme_1cbgc_13oha_312:not(#\9) {
|
|
313
|
+
vertical-align: middle;
|
|
314
|
+
}
|
|
315
|
+
.awsui_container_1cbgc_13oha_181.awsui_display-inline-block_1cbgc_13oha_315:not(#\9) {
|
|
298
316
|
display: inline-block;
|
|
299
317
|
word-wrap: break-word;
|
|
300
318
|
word-break: break-all;
|
|
301
319
|
}
|
|
302
|
-
.
|
|
320
|
+
.awsui_container_1cbgc_13oha_181.awsui_display-inline-block_1cbgc_13oha_315.awsui_one-theme_1cbgc_13oha_312:not(#\9) {
|
|
321
|
+
display: inline-flex;
|
|
322
|
+
align-items: flex-start;
|
|
323
|
+
}
|
|
324
|
+
.awsui_container_1cbgc_13oha_181.awsui_display-inline-block_1cbgc_13oha_315 > .awsui_icon_1cbgc_13oha_153:not(#\9) {
|
|
303
325
|
padding-inline-end: var(--space-xxs-jnczic, 4px);
|
|
304
326
|
}
|
|
327
|
+
.awsui_container_1cbgc_13oha_181.awsui_display-inline-block_1cbgc_13oha_315 > .awsui_icon_1cbgc_13oha_153.awsui_one-theme_1cbgc_13oha_312:not(#\9) {
|
|
328
|
+
display: inline-flex;
|
|
329
|
+
align-items: center;
|
|
330
|
+
margin-block-start: var(--space-xxxs-3w1kr2, 2px);
|
|
331
|
+
}
|
|
305
332
|
|
|
306
|
-
.awsui_overflow-
|
|
333
|
+
.awsui_overflow-ellipsis_1cbgc_13oha_333:not(#\9) {
|
|
307
334
|
max-inline-size: 100%;
|
|
308
335
|
overflow: hidden;
|
|
309
336
|
text-overflow: ellipsis;
|
|
310
337
|
white-space: nowrap;
|
|
311
338
|
vertical-align: text-bottom;
|
|
339
|
+
}
|
|
340
|
+
.awsui_overflow-ellipsis_1cbgc_13oha_333.awsui_one-theme_1cbgc_13oha_312:not(#\9) {
|
|
341
|
+
text-overflow: unset;
|
|
342
|
+
}
|
|
343
|
+
.awsui_overflow-ellipsis_1cbgc_13oha_333.awsui_one-theme_1cbgc_13oha_312 > span:not(#\9):last-child {
|
|
344
|
+
overflow: hidden;
|
|
345
|
+
text-overflow: ellipsis;
|
|
346
|
+
white-space: nowrap;
|
|
312
347
|
}
|
|
@@ -2,29 +2,30 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"icon-shake": "awsui_icon-
|
|
6
|
-
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-
|
|
7
|
-
"container-fade-in": "awsui_container-fade-
|
|
8
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
9
|
-
"root": "
|
|
10
|
-
"status-error": "awsui_status-
|
|
11
|
-
"status-warning": "awsui_status-
|
|
12
|
-
"status-success": "awsui_status-
|
|
13
|
-
"status-info": "awsui_status-
|
|
14
|
-
"status-stopped": "awsui_status-
|
|
15
|
-
"status-pending": "awsui_status-
|
|
16
|
-
"status-in-progress": "awsui_status-in-
|
|
17
|
-
"status-loading": "awsui_status-
|
|
18
|
-
"status-not-started": "awsui_status-not-
|
|
19
|
-
"color-override-red": "awsui_color-override-
|
|
20
|
-
"color-override-grey": "awsui_color-override-
|
|
21
|
-
"color-override-blue": "awsui_color-override-
|
|
22
|
-
"color-override-green": "awsui_color-override-
|
|
23
|
-
"color-override-yellow": "awsui_color-override-
|
|
24
|
-
"container": "
|
|
25
|
-
"display-inline": "awsui_display-
|
|
26
|
-
"icon": "
|
|
27
|
-
"
|
|
28
|
-
"
|
|
5
|
+
"icon-shake": "awsui_icon-shake_1cbgc_13oha_153",
|
|
6
|
+
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_13oha_1",
|
|
7
|
+
"container-fade-in": "awsui_container-fade-in_1cbgc_13oha_181",
|
|
8
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_13oha_1",
|
|
9
|
+
"root": "awsui_root_1cbgc_13oha_203",
|
|
10
|
+
"status-error": "awsui_status-error_1cbgc_13oha_212",
|
|
11
|
+
"status-warning": "awsui_status-warning_1cbgc_13oha_215",
|
|
12
|
+
"status-success": "awsui_status-success_1cbgc_13oha_218",
|
|
13
|
+
"status-info": "awsui_status-info_1cbgc_13oha_221",
|
|
14
|
+
"status-stopped": "awsui_status-stopped_1cbgc_13oha_224",
|
|
15
|
+
"status-pending": "awsui_status-pending_1cbgc_13oha_227",
|
|
16
|
+
"status-in-progress": "awsui_status-in-progress_1cbgc_13oha_230",
|
|
17
|
+
"status-loading": "awsui_status-loading_1cbgc_13oha_233",
|
|
18
|
+
"status-not-started": "awsui_status-not-started_1cbgc_13oha_236",
|
|
19
|
+
"color-override-red": "awsui_color-override-red_1cbgc_13oha_239",
|
|
20
|
+
"color-override-grey": "awsui_color-override-grey_1cbgc_13oha_242",
|
|
21
|
+
"color-override-blue": "awsui_color-override-blue_1cbgc_13oha_245",
|
|
22
|
+
"color-override-green": "awsui_color-override-green_1cbgc_13oha_248",
|
|
23
|
+
"color-override-yellow": "awsui_color-override-yellow_1cbgc_13oha_251",
|
|
24
|
+
"container": "awsui_container_1cbgc_13oha_181",
|
|
25
|
+
"display-inline": "awsui_display-inline_1cbgc_13oha_304",
|
|
26
|
+
"icon": "awsui_icon_1cbgc_13oha_153",
|
|
27
|
+
"one-theme": "awsui_one-theme_1cbgc_13oha_312",
|
|
28
|
+
"display-inline-block": "awsui_display-inline-block_1cbgc_13oha_315",
|
|
29
|
+
"overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_13oha_333"
|
|
29
30
|
};
|
|
30
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-header-cell.d.ts","sourceRoot":"","sources":["../../../../src/table/header-cell/group-header-cell.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"group-header-cell.d.ts","sourceRoot":"","sources":["../../../../src/table/header-cell/group-header-cell.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAKrD,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,sBAAsB,CAAC,EAAE,WAAW,CAAC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,WAAW,EACX,WAAW,EACX,OAAO,EACP,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,MAAM,EACN,SAAS,GACV,EAAE,yBAAyB,eAsE3B"}
|
|
@@ -5,13 +5,11 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';
|
|
6
6
|
import { useUniqueId } from '@cloudscape-design/component-toolkit/internal';
|
|
7
7
|
import { Divider, Resizer } from '../resizer';
|
|
8
|
-
import { useStickyCellStyles } from '../sticky-columns';
|
|
9
8
|
import { DEFAULT_COLUMN_WIDTH, useColumnWidths } from '../use-column-widths';
|
|
10
|
-
import { getStickyClassNames } from '../utils';
|
|
11
9
|
import { TableThElement } from './th-element';
|
|
12
10
|
import styles from './styles.css.js';
|
|
13
11
|
export function TableGroupHeaderCell({ group, colspan, rowspan, colIndex, groupId, resizableColumns, resizableStyle, onResizeFinish, updateGroupWidth, childColumnIds, focusedComponent, tabIndex, sticky, hidden, stripedRows, stickyState, cellRef, tableRole, resizerRoleDescription, resizerTooltipText, variant, tableVariant, columnGroupId, stickyColumnId, stickyBoundaryColumnId, isLast, wrapLines, }) {
|
|
14
|
-
var _a
|
|
12
|
+
var _a;
|
|
15
13
|
const headerId = useUniqueId('table-group-header-');
|
|
16
14
|
const { columnWidths } = useColumnWidths();
|
|
17
15
|
// Effective min = sum of non-rightmost children's current widths (fixed) + rightmost child's minWidth
|
|
@@ -24,20 +22,10 @@ export function TableGroupHeaderCell({ group, colspan, rowspan, colIndex, groupI
|
|
|
24
22
|
}, 0);
|
|
25
23
|
const clickableHeaderRef = useRef(null);
|
|
26
24
|
const { tabIndex: clickableHeaderTabIndex } = useSingleTabStopNavigation(clickableHeaderRef, { tabIndex });
|
|
27
|
-
|
|
28
|
-
// The offset/position comes from stickyColumnId (first child); this only adds boundary classes.
|
|
29
|
-
const boundaryStyles = useStickyCellStyles({
|
|
30
|
-
stickyColumns: stickyState,
|
|
31
|
-
columnId: (_a = stickyBoundaryColumnId !== null && stickyBoundaryColumnId !== void 0 ? stickyBoundaryColumnId : stickyColumnId) !== null && _a !== void 0 ? _a : groupId,
|
|
32
|
-
getClassName: props => getStickyClassNames(styles, props),
|
|
33
|
-
});
|
|
34
|
-
// boundaryStyles.className is populated by scroll/intersection observers in the browser.
|
|
35
|
-
// In JSDOM these observers don't fire, so this branch is only exercised in integration tests.
|
|
36
|
-
const boundaryClassName = stickyBoundaryColumnId && boundaryStyles.className ? boundaryStyles.className : undefined;
|
|
37
|
-
return (React.createElement(TableThElement, { resizableStyle: resizableStyle, cellRef: cellRef, focusedComponent: focusedComponent, sticky: sticky, resizable: resizableColumns, hidden: hidden, stripedRows: stripedRows, colIndex: colIndex, columnId: stickyColumnId !== null && stickyColumnId !== void 0 ? stickyColumnId : groupId, stickyState: stickyState, tableRole: tableRole, variant: variant, tableVariant: tableVariant, colSpan: colspan, rowSpan: rowspan, scope: "colgroup", isLast: isLast, columnGroupId: columnGroupId, className: boundaryClassName, boundaryRef: stickyBoundaryColumnId ? boundaryStyles.ref : undefined },
|
|
25
|
+
return (React.createElement(TableThElement, { resizableStyle: resizableStyle, cellRef: cellRef, focusedComponent: focusedComponent, sticky: sticky, resizable: resizableColumns, hidden: hidden, stripedRows: stripedRows, colIndex: colIndex, columnId: stickyColumnId !== null && stickyColumnId !== void 0 ? stickyColumnId : groupId, stickyBoundaryColumnId: stickyBoundaryColumnId, stickyState: stickyState, tableRole: tableRole, variant: variant, tableVariant: tableVariant, colSpan: colspan, rowSpan: rowspan, scope: "colgroup", isLast: isLast, columnGroupId: columnGroupId },
|
|
38
26
|
React.createElement("div", { ref: clickableHeaderRef, "data-focus-id": `group-header-${groupId}`, className: clsx(styles['header-cell-content'], {
|
|
39
27
|
[styles['header-cell-fake-focus']]: focusedComponent === `group-header-${groupId}`,
|
|
40
|
-
}), "aria-label": (
|
|
28
|
+
}), "aria-label": (_a = group.ariaLabel) === null || _a === void 0 ? void 0 : _a.call(group, { sorted: false, descending: false, disabled: true }), tabIndex: clickableHeaderTabIndex },
|
|
41
29
|
React.createElement("div", { className: clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap']), id: headerId }, group.header)),
|
|
42
30
|
resizableColumns ? (React.createElement(Resizer, { tabIndex: tabIndex, focusId: `resize-group-${groupId}`, showFocusRing: focusedComponent === `resize-group-${groupId}`, onWidthUpdate: newWidth => updateGroupWidth(groupId, newWidth), onWidthUpdateCommit: onResizeFinish, ariaLabelledby: headerId, minWidth: groupMinWidth, roleDescription: resizerRoleDescription, tooltipText: resizerTooltipText, isBorderless: variant === 'full-page' || variant === 'embedded' || variant === 'borderless', isLast: isLast, dividerPosition: columnGroupId ? 'full' : 'bottom' })) : (React.createElement(Divider, { position: columnGroupId ? 'full' : 'bottom' }))));
|
|
43
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-header-cell.js","sourceRoot":"","sources":["../../../../src/table/header-cell/group-header-cell.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAG5E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"group-header-cell.js","sourceRoot":"","sources":["../../../../src/table/header-cell/group-header-cell.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAG5E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAiBrC,MAAM,UAAU,oBAAoB,CAAC,EACnC,KAAK,EACL,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,WAAW,EACX,WAAW,EACX,OAAO,EACP,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,MAAM,EACN,SAAS,GACiB;;IAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,qBAAqB,CAAC,CAAC;IACpD,MAAM,EAAE,YAAY,EAAE,GAAG,eAAe,EAAE,CAAC;IAE3C,sG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from 'react';\nimport clsx from 'clsx';\n\nimport { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport { TableProps } from '../interfaces';\nimport { Divider, Resizer } from '../resizer';\nimport { DEFAULT_COLUMN_WIDTH, useColumnWidths } from '../use-column-widths';\nimport { BaseHeaderCellProps } from './common-props';\nimport { TableThElement } from './th-element';\n\nimport styles from './styles.css.js';\n\nexport interface TableGroupHeaderCellProps extends BaseHeaderCellProps {\n group: TableProps.GroupDefinition;\n colspan: number;\n rowspan: number;\n groupId: string;\n updateGroupWidth: (groupId: PropertyKey, newWidth: number) => void;\n childColumnIds: PropertyKey[];\n firstChildColumnId?: PropertyKey;\n lastChildColumnId?: PropertyKey;\n columnGroupId?: string;\n stickyColumnId?: PropertyKey;\n stickyBoundaryColumnId?: PropertyKey;\n isLast?: boolean;\n}\n\nexport function TableGroupHeaderCell({\n group,\n colspan,\n rowspan,\n colIndex,\n groupId,\n resizableColumns,\n resizableStyle,\n onResizeFinish,\n updateGroupWidth,\n childColumnIds,\n focusedComponent,\n tabIndex,\n sticky,\n hidden,\n stripedRows,\n stickyState,\n cellRef,\n tableRole,\n resizerRoleDescription,\n resizerTooltipText,\n variant,\n tableVariant,\n columnGroupId,\n stickyColumnId,\n stickyBoundaryColumnId,\n isLast,\n wrapLines,\n}: TableGroupHeaderCellProps) {\n const headerId = useUniqueId('table-group-header-');\n const { columnWidths } = useColumnWidths();\n\n // Effective min = sum of non-rightmost children's current widths (fixed) + rightmost child's minWidth\n const lastChild = childColumnIds[childColumnIds.length - 1];\n const groupMinWidth = childColumnIds.reduce<number>((sum, id) => {\n if (id === lastChild) {\n return sum + DEFAULT_COLUMN_WIDTH;\n }\n return sum + (columnWidths.get(id) || DEFAULT_COLUMN_WIDTH);\n }, 0);\n const clickableHeaderRef = useRef<HTMLDivElement>(null);\n const { tabIndex: clickableHeaderTabIndex } = useSingleTabStopNavigation(clickableHeaderRef, { tabIndex });\n\n return (\n <TableThElement\n resizableStyle={resizableStyle}\n cellRef={cellRef}\n focusedComponent={focusedComponent}\n sticky={sticky}\n resizable={resizableColumns}\n hidden={hidden}\n stripedRows={stripedRows}\n colIndex={colIndex}\n columnId={stickyColumnId ?? groupId}\n stickyBoundaryColumnId={stickyBoundaryColumnId}\n stickyState={stickyState}\n tableRole={tableRole}\n variant={variant}\n tableVariant={tableVariant}\n colSpan={colspan}\n rowSpan={rowspan}\n scope=\"colgroup\"\n isLast={isLast}\n columnGroupId={columnGroupId}\n >\n <div\n ref={clickableHeaderRef}\n data-focus-id={`group-header-${groupId}`}\n className={clsx(styles['header-cell-content'], {\n [styles['header-cell-fake-focus']]: focusedComponent === `group-header-${groupId}`,\n })}\n aria-label={group.ariaLabel?.({ sorted: false, descending: false, disabled: true })}\n tabIndex={clickableHeaderTabIndex}\n >\n <div className={clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap'])} id={headerId}>\n {group.header}\n </div>\n </div>\n {resizableColumns ? (\n <Resizer\n tabIndex={tabIndex}\n focusId={`resize-group-${groupId}`}\n showFocusRing={focusedComponent === `resize-group-${groupId}`}\n onWidthUpdate={newWidth => updateGroupWidth(groupId, newWidth)}\n onWidthUpdateCommit={onResizeFinish}\n ariaLabelledby={headerId}\n minWidth={groupMinWidth}\n roleDescription={resizerRoleDescription}\n tooltipText={resizerTooltipText}\n isBorderless={variant === 'full-page' || variant === 'embedded' || variant === 'borderless'}\n isLast={isLast}\n dividerPosition={columnGroupId ? 'full' : 'bottom'}\n />\n ) : (\n <Divider position={columnGroupId ? 'full' : 'bottom'} />\n )}\n </TableThElement>\n );\n}\n"]}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"header-cell": "awsui_header-
|
|
5
|
-
"header-cell-fake-focus": "awsui_header-cell-fake-
|
|
6
|
-
"header-cell-group": "awsui_header-cell-
|
|
7
|
-
"header-cell-grouped": "awsui_header-cell-
|
|
8
|
-
"header-cell-spans-rows": "awsui_header-cell-spans-
|
|
9
|
-
"header-cell-sticky": "awsui_header-cell-
|
|
10
|
-
"header-cell-stuck": "awsui_header-cell-
|
|
11
|
-
"header-cell-variant-full-page": "awsui_header-cell-variant-full-
|
|
12
|
-
"header-cell-hidden": "awsui_header-cell-
|
|
13
|
-
"header-cell-variant-embedded": "awsui_header-cell-variant-
|
|
14
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
15
|
-
"sticky-cell": "awsui_sticky-
|
|
16
|
-
"header-cell-variant-borderless": "awsui_header-cell-variant-
|
|
17
|
-
"header-cell-sortable": "awsui_header-cell-
|
|
18
|
-
"table-variant-full-page": "awsui_table-variant-full-
|
|
19
|
-
"sticky-cell-pad-left": "awsui_sticky-cell-pad-
|
|
20
|
-
"has-selection": "awsui_has-
|
|
21
|
-
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-
|
|
22
|
-
"resize-divider": "awsui_resize-
|
|
23
|
-
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-
|
|
24
|
-
"sorting-icon": "awsui_sorting-
|
|
25
|
-
"edit-icon": "awsui_edit-
|
|
26
|
-
"header-cell-content": "awsui_header-cell-
|
|
27
|
-
"header-cell-content-expandable": "awsui_header-cell-content-
|
|
28
|
-
"header-cell-disabled": "awsui_header-cell-
|
|
29
|
-
"header-cell-sorted": "awsui_header-cell-
|
|
30
|
-
"header-cell-text": "awsui_header-cell-
|
|
31
|
-
"header-cell-text-wrap": "awsui_header-cell-text-
|
|
32
|
-
"header-cell-ascending": "awsui_header-cell-
|
|
33
|
-
"header-cell-descending": "awsui_header-cell-
|
|
34
|
-
"has-striped-rows": "awsui_has-striped-
|
|
35
|
-
"sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-
|
|
36
|
-
"header-cell-resizable": "awsui_header-cell-
|
|
4
|
+
"header-cell": "awsui_header-cell_1spae_1gdol_149",
|
|
5
|
+
"header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_1gdol_183",
|
|
6
|
+
"header-cell-group": "awsui_header-cell-group_1spae_1gdol_204",
|
|
7
|
+
"header-cell-grouped": "awsui_header-cell-grouped_1spae_1gdol_204",
|
|
8
|
+
"header-cell-spans-rows": "awsui_header-cell-spans-rows_1spae_1gdol_204",
|
|
9
|
+
"header-cell-sticky": "awsui_header-cell-sticky_1spae_1gdol_208",
|
|
10
|
+
"header-cell-stuck": "awsui_header-cell-stuck_1spae_1gdol_211",
|
|
11
|
+
"header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_1gdol_211",
|
|
12
|
+
"header-cell-hidden": "awsui_header-cell-hidden_1spae_1gdol_217",
|
|
13
|
+
"header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_1gdol_220",
|
|
14
|
+
"is-visual-refresh": "awsui_is-visual-refresh_1spae_1gdol_220",
|
|
15
|
+
"sticky-cell": "awsui_sticky-cell_1spae_1gdol_220",
|
|
16
|
+
"header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_1gdol_220",
|
|
17
|
+
"header-cell-sortable": "awsui_header-cell-sortable_1spae_1gdol_223",
|
|
18
|
+
"table-variant-full-page": "awsui_table-variant-full-page_1spae_1gdol_244",
|
|
19
|
+
"sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_1gdol_247",
|
|
20
|
+
"has-selection": "awsui_has-selection_1spae_1gdol_247",
|
|
21
|
+
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_1gdol_250",
|
|
22
|
+
"resize-divider": "awsui_resize-divider_1spae_1gdol_255",
|
|
23
|
+
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_1gdol_262",
|
|
24
|
+
"sorting-icon": "awsui_sorting-icon_1spae_1gdol_272",
|
|
25
|
+
"edit-icon": "awsui_edit-icon_1spae_1gdol_280",
|
|
26
|
+
"header-cell-content": "awsui_header-cell-content_1spae_1gdol_286",
|
|
27
|
+
"header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_1gdol_292",
|
|
28
|
+
"header-cell-disabled": "awsui_header-cell-disabled_1spae_1gdol_347",
|
|
29
|
+
"header-cell-sorted": "awsui_header-cell-sorted_1spae_1gdol_347",
|
|
30
|
+
"header-cell-text": "awsui_header-cell-text_1spae_1gdol_378",
|
|
31
|
+
"header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_1gdol_382",
|
|
32
|
+
"header-cell-ascending": "awsui_header-cell-ascending_1spae_1gdol_388",
|
|
33
|
+
"header-cell-descending": "awsui_header-cell-descending_1spae_1gdol_389",
|
|
34
|
+
"has-striped-rows": "awsui_has-striped-rows_1spae_1gdol_503",
|
|
35
|
+
"sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_1gdol_503",
|
|
36
|
+
"header-cell-resizable": "awsui_header-cell-resizable_1spae_1gdol_515"
|
|
37
37
|
};
|
|
38
38
|
|