@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.
Files changed (139) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +16 -0
  3. package/lib/internal/scss/app-layout/visual-refresh/navigation.scss +1 -1
  4. package/lib/internal/scss/app-layout/visual-refresh/tools.scss +4 -0
  5. package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +1 -1
  6. package/lib/internal/scss/app-layout/visual-refresh-toolbar/navigation/styles.scss +1 -1
  7. package/lib/internal/scss/button-dropdown/styles.scss +4 -0
  8. package/lib/internal/scss/expandable-section/styles.scss +17 -0
  9. package/lib/internal/scss/internal/components/button-trigger/styles.scss +7 -0
  10. package/lib/internal/scss/internal/components/drag-handle/styles.scss +5 -1
  11. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  12. package/lib/internal/scss/status-indicator/styles.scss +36 -0
  13. package/lib/internal/scss/table/header-cell/styles.scss +1 -1
  14. package/lib/internal/scss/tree-view/tree-item/styles.scss +10 -0
  15. package/lib/internal/template/app-layout/runtime-drawer/index.js +1 -1
  16. package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
  17. package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  18. package/lib/internal/template/app-layout/visual-refresh/drawers.js +3 -0
  19. package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -1
  20. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +87 -86
  21. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +176 -164
  22. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +87 -86
  23. package/lib/internal/template/app-layout/visual-refresh/tools.d.ts.map +1 -1
  24. package/lib/internal/template/app-layout/visual-refresh/tools.js +2 -0
  25. package/lib/internal/template/app-layout/visual-refresh/tools.js.map +1 -1
  26. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  27. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
  28. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  29. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  30. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +6 -6
  31. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  32. package/lib/internal/template/breadcrumb-group/implementation.d.ts.map +1 -1
  33. package/lib/internal/template/breadcrumb-group/implementation.js +2 -2
  34. package/lib/internal/template/breadcrumb-group/implementation.js.map +1 -1
  35. package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
  36. package/lib/internal/template/breadcrumb-group/item/item.js +2 -1
  37. package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
  38. package/lib/internal/template/button/internal.d.ts +3 -0
  39. package/lib/internal/template/button/internal.d.ts.map +1 -1
  40. package/lib/internal/template/button/internal.js +2 -2
  41. package/lib/internal/template/button/internal.js.map +1 -1
  42. package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
  43. package/lib/internal/template/button-dropdown/internal.js +4 -3
  44. package/lib/internal/template/button-dropdown/internal.js.map +1 -1
  45. package/lib/internal/template/button-dropdown/styles.css.js +22 -21
  46. package/lib/internal/template/button-dropdown/styles.scoped.css +33 -29
  47. package/lib/internal/template/button-dropdown/styles.selectors.js +22 -21
  48. package/lib/internal/template/button-group/icon-toggle-button-item.js +1 -1
  49. package/lib/internal/template/button-group/icon-toggle-button-item.js.map +1 -1
  50. package/lib/internal/template/dropdown/internal.d.ts.map +1 -1
  51. package/lib/internal/template/dropdown/internal.js +14 -2
  52. package/lib/internal/template/dropdown/internal.js.map +1 -1
  53. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  54. package/lib/internal/template/expandable-section/expandable-section-header.js +5 -5
  55. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  56. package/lib/internal/template/expandable-section/styles.css.js +36 -35
  57. package/lib/internal/template/expandable-section/styles.scoped.css +81 -66
  58. package/lib/internal/template/expandable-section/styles.selectors.js +36 -35
  59. package/lib/internal/template/icon/generated/icons.d.ts +1 -0
  60. package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
  61. package/lib/internal/template/icon/generated/icons.js +2 -0
  62. package/lib/internal/template/icon/generated/icons.js.map +1 -1
  63. package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
  64. package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
  65. package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
  66. package/lib/internal/template/internal/base-component/styles.scoped.css +7 -1
  67. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  68. package/lib/internal/template/internal/components/button-trigger/index.js +3 -2
  69. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  70. package/lib/internal/template/internal/components/button-trigger/styles.css.js +15 -14
  71. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +35 -29
  72. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +15 -14
  73. package/lib/internal/template/internal/components/drag-handle/styles.css.js +14 -14
  74. package/lib/internal/template/internal/components/drag-handle/styles.scoped.css +20 -19
  75. package/lib/internal/template/internal/components/drag-handle/styles.selectors.js +14 -14
  76. package/lib/internal/template/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
  77. package/lib/internal/template/internal/components/drag-handle-wrapper/index.js +6 -3
  78. package/lib/internal/template/internal/components/drag-handle-wrapper/index.js.map +1 -1
  79. package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.d.ts +2 -1
  80. package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.d.ts.map +1 -1
  81. package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.js +2 -2
  82. package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.js.map +1 -1
  83. package/lib/internal/template/internal/components/expand-toggle-button/index.js +2 -2
  84. package/lib/internal/template/internal/components/expand-toggle-button/index.js.map +1 -1
  85. package/lib/internal/template/internal/environment.js +2 -2
  86. package/lib/internal/template/internal/environment.json +2 -2
  87. package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
  88. package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
  89. package/lib/internal/template/internal/generated/theming/index.cjs +33 -0
  90. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +9 -0
  91. package/lib/internal/template/internal/generated/theming/index.d.ts +9 -0
  92. package/lib/internal/template/internal/generated/theming/index.js +33 -0
  93. package/lib/internal/template/internal/hooks/use-mouse-down-target.js +2 -2
  94. package/lib/internal/template/internal/hooks/use-mouse-down-target.js.map +1 -1
  95. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
  96. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js +4 -2
  97. package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
  98. package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts +1 -0
  99. package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
  100. package/lib/internal/template/internal/hooks/use-visual-mode/index.js +2 -1
  101. package/lib/internal/template/internal/hooks/use-visual-mode/index.js.map +1 -1
  102. package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
  103. package/lib/internal/template/status-indicator/internal.js +4 -3
  104. package/lib/internal/template/status-indicator/internal.js.map +1 -1
  105. package/lib/internal/template/status-indicator/styles.css.js +25 -24
  106. package/lib/internal/template/status-indicator/styles.scoped.css +75 -40
  107. package/lib/internal/template/status-indicator/styles.selectors.js +25 -24
  108. package/lib/internal/template/table/header-cell/group-header-cell.d.ts.map +1 -1
  109. package/lib/internal/template/table/header-cell/group-header-cell.js +3 -15
  110. package/lib/internal/template/table/header-cell/group-header-cell.js.map +1 -1
  111. package/lib/internal/template/table/header-cell/styles.css.js +33 -33
  112. package/lib/internal/template/table/header-cell/styles.scoped.css +73 -73
  113. package/lib/internal/template/table/header-cell/styles.selectors.js +33 -33
  114. package/lib/internal/template/table/header-cell/th-element.d.ts +6 -5
  115. package/lib/internal/template/table/header-cell/th-element.d.ts.map +1 -1
  116. package/lib/internal/template/table/header-cell/th-element.js +4 -3
  117. package/lib/internal/template/table/header-cell/th-element.js.map +1 -1
  118. package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts +2 -1
  119. package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
  120. package/lib/internal/template/table/sticky-columns/use-sticky-columns.js +31 -7
  121. package/lib/internal/template/table/sticky-columns/use-sticky-columns.js.map +1 -1
  122. package/lib/internal/template/table/thead.d.ts.map +1 -1
  123. package/lib/internal/template/table/thead.js +1 -1
  124. package/lib/internal/template/table/thead.js.map +1 -1
  125. package/lib/internal/template/test-utils/dom/table/index.js +1 -1
  126. package/lib/internal/template/test-utils/dom/table/index.js.map +1 -1
  127. package/lib/internal/template/test-utils/selectors/table/index.js +1 -1
  128. package/lib/internal/template/test-utils/selectors/table/index.js.map +1 -1
  129. package/lib/internal/template/theming/index.d.ts +2 -0
  130. package/lib/internal/template/theming/index.d.ts.map +1 -1
  131. package/lib/internal/template/theming/index.js +55 -0
  132. package/lib/internal/template/theming/index.js.map +1 -1
  133. package/lib/internal/template/tree-view/tree-item/index.d.ts.map +1 -1
  134. package/lib/internal/template/tree-view/tree-item/index.js +2 -1
  135. package/lib/internal/template/tree-view/tree-item/index.js.map +1 -1
  136. package/lib/internal/template/tree-view/tree-item/styles.css.js +10 -9
  137. package/lib/internal/template/tree-view/tree-item/styles.scoped.css +19 -12
  138. package/lib/internal/template/tree-view/tree-item/styles.selectors.js +10 -9
  139. 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;AAExF,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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useRuntimeVisualRefresh } from '@cloudscape-design/component-toolkit/internal';\n\nimport { ALWAYS_VISUAL_REFRESH } from '../../environment';\n\nexport const useVisualRefresh = ALWAYS_VISUAL_REFRESH ? () => true : useRuntimeVisualRefresh;\n"]}
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":"AAKA,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,eAWzB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,QAAe,EACf,gBAAgB,EAChB,SAAiB,EACjB,iBAAiB,EACjB,MAAiB,EACjB,SAA0B,EAC1B,GAAG,IAAI,EACR,EAAE,4BAA4B,eAqC9B"}
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
  }
@@ -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,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 { 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(styles.icon, animate && styles['icon-shake'])}\n aria-label={iconAriaLabel}\n role={iconAriaLabel ? 'img' : undefined}\n >\n {typeToIcon(size)[type]}\n {display === 'inline' && <>&nbsp;</>}\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 = '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 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
+ {"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;AAExB,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,+CAA+C,CAAC;AAGrF,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,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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' && <>&nbsp;</>}\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-shake_1cbgc_hmmrt_153",
5
- "awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_hmmrt_1",
6
- "container-fade-in": "awsui_container-fade-in_1cbgc_hmmrt_181",
7
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_hmmrt_1",
8
- "root": "awsui_root_1cbgc_hmmrt_203",
9
- "status-error": "awsui_status-error_1cbgc_hmmrt_212",
10
- "status-warning": "awsui_status-warning_1cbgc_hmmrt_215",
11
- "status-success": "awsui_status-success_1cbgc_hmmrt_218",
12
- "status-info": "awsui_status-info_1cbgc_hmmrt_221",
13
- "status-stopped": "awsui_status-stopped_1cbgc_hmmrt_224",
14
- "status-pending": "awsui_status-pending_1cbgc_hmmrt_227",
15
- "status-in-progress": "awsui_status-in-progress_1cbgc_hmmrt_230",
16
- "status-loading": "awsui_status-loading_1cbgc_hmmrt_233",
17
- "status-not-started": "awsui_status-not-started_1cbgc_hmmrt_236",
18
- "color-override-red": "awsui_color-override-red_1cbgc_hmmrt_239",
19
- "color-override-grey": "awsui_color-override-grey_1cbgc_hmmrt_242",
20
- "color-override-blue": "awsui_color-override-blue_1cbgc_hmmrt_245",
21
- "color-override-green": "awsui_color-override-green_1cbgc_hmmrt_248",
22
- "color-override-yellow": "awsui_color-override-yellow_1cbgc_hmmrt_251",
23
- "container": "awsui_container_1cbgc_hmmrt_181",
24
- "display-inline": "awsui_display-inline_1cbgc_hmmrt_289",
25
- "icon": "awsui_icon_1cbgc_hmmrt_153",
26
- "display-inline-block": "awsui_display-inline-block_1cbgc_hmmrt_297",
27
- "overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_hmmrt_306"
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-shake_1cbgc_hmmrt_153:not(#\9) {
153
+ .awsui_icon-shake_1cbgc_13oha_153:not(#\9) {
154
154
  display: inline-block;
155
- animation: awsui_awsui-motion-shake-horizontally_1cbgc_hmmrt_1 var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
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-horizontally_1cbgc_hmmrt_1 {
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-shake_1cbgc_hmmrt_153:not(#\9) {
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-shake_1cbgc_hmmrt_153:not(#\9), .awsui-mode-entering .awsui_icon-shake_1cbgc_hmmrt_153:not(#\9) {
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-in_1cbgc_hmmrt_181:not(#\9) {
182
- animation: awsui_awsui-motion-fade-in-0_1cbgc_hmmrt_1 var(--motion-duration-refresh-only-medium-h3wrr6, 0ms) var(--motion-easing-refresh-only-a-8gio5w, cubic-bezier(0, 0, 0, 1));
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-0_1cbgc_hmmrt_1 {
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-in_1cbgc_hmmrt_181:not(#\9) {
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-in_1cbgc_hmmrt_181:not(#\9), .awsui-mode-entering .awsui_container-fade-in_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-error_1cbgc_hmmrt_212:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-warning_1cbgc_hmmrt_215:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-success_1cbgc_hmmrt_218:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-info_1cbgc_hmmrt_221:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-stopped_1cbgc_hmmrt_224:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-pending_1cbgc_hmmrt_227:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-in-progress_1cbgc_hmmrt_230:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-loading_1cbgc_hmmrt_233:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-not-started_1cbgc_hmmrt_236:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_color-override-red_1cbgc_hmmrt_239:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_color-override-grey_1cbgc_hmmrt_242:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_color-override-blue_1cbgc_hmmrt_245:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_color-override-green_1cbgc_hmmrt_248:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_color-override-yellow_1cbgc_hmmrt_251:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-error_1cbgc_hmmrt_212 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-warning_1cbgc_hmmrt_215 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-success_1cbgc_hmmrt_218 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-info_1cbgc_hmmrt_221 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-stopped_1cbgc_hmmrt_224 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-pending_1cbgc_hmmrt_227 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-in-progress_1cbgc_hmmrt_230 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-loading_1cbgc_hmmrt_233 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_root_1cbgc_hmmrt_203.awsui_status-not-started_1cbgc_hmmrt_236 > .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_container_1cbgc_hmmrt_181:not(#\9) {
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
- .awsui_container_1cbgc_hmmrt_181.awsui_display-inline_1cbgc_hmmrt_289:not(#\9) {
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
- .awsui_container_1cbgc_hmmrt_181.awsui_display-inline_1cbgc_hmmrt_289 > .awsui_icon_1cbgc_hmmrt_153:not(#\9) {
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
- .awsui_container_1cbgc_hmmrt_181.awsui_display-inline-block_1cbgc_hmmrt_297:not(#\9) {
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
- .awsui_container_1cbgc_hmmrt_181.awsui_display-inline-block_1cbgc_hmmrt_297 > .awsui_icon_1cbgc_hmmrt_153:not(#\9) {
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-ellipsis_1cbgc_hmmrt_306:not(#\9) {
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-shake_1cbgc_hmmrt_153",
6
- "awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_hmmrt_1",
7
- "container-fade-in": "awsui_container-fade-in_1cbgc_hmmrt_181",
8
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_hmmrt_1",
9
- "root": "awsui_root_1cbgc_hmmrt_203",
10
- "status-error": "awsui_status-error_1cbgc_hmmrt_212",
11
- "status-warning": "awsui_status-warning_1cbgc_hmmrt_215",
12
- "status-success": "awsui_status-success_1cbgc_hmmrt_218",
13
- "status-info": "awsui_status-info_1cbgc_hmmrt_221",
14
- "status-stopped": "awsui_status-stopped_1cbgc_hmmrt_224",
15
- "status-pending": "awsui_status-pending_1cbgc_hmmrt_227",
16
- "status-in-progress": "awsui_status-in-progress_1cbgc_hmmrt_230",
17
- "status-loading": "awsui_status-loading_1cbgc_hmmrt_233",
18
- "status-not-started": "awsui_status-not-started_1cbgc_hmmrt_236",
19
- "color-override-red": "awsui_color-override-red_1cbgc_hmmrt_239",
20
- "color-override-grey": "awsui_color-override-grey_1cbgc_hmmrt_242",
21
- "color-override-blue": "awsui_color-override-blue_1cbgc_hmmrt_245",
22
- "color-override-green": "awsui_color-override-green_1cbgc_hmmrt_248",
23
- "color-override-yellow": "awsui_color-override-yellow_1cbgc_hmmrt_251",
24
- "container": "awsui_container_1cbgc_hmmrt_181",
25
- "display-inline": "awsui_display-inline_1cbgc_hmmrt_289",
26
- "icon": "awsui_icon_1cbgc_hmmrt_153",
27
- "display-inline-block": "awsui_display-inline-block_1cbgc_hmmrt_297",
28
- "overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_hmmrt_306"
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;AAK3C,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,eAmF3B"}
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, _b;
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
- // Subscribe to the boundary column's sticky state to inherit shadow/clip-path classes.
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": (_b = group.ariaLabel) === null || _b === void 0 ? void 0 : _b.call(group, { sorted: false, descending: false, disabled: true }), tabIndex: clickableHeaderTabIndex },
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,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,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,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AAM,CACT,CACF;QACL,gBAAgB,CAAC,CAAC,CAAC,CAClB,oBAAC,OAAO,IACN,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,gBAAgB,OAAO,EAAE,EAClC,aAAa,EAAE,gBAAgB,KAAK,gBAAgB,OAAO,EAAE,EAC7D,aAAa,EAAE,QAAQ,CAAC,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAC9D,mBAAmB,EAAE,cAAc,EACnC,cAAc,EAAE,QAAQ,EACxB,QAAQ,EAAE,aAAa,EACvB,eAAe,EAAE,sBAAsB,EACvC,WAAW,EAAE,kBAAkB,EAC/B,YAAY,EAAE,OAAO,KAAK,WAAW,IAAI,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,YAAY,EAC3F,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,GAClD,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,OAAO,IAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,GAAI,CACzD,CACc,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } 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 { useStickyCellStyles } from '../sticky-columns';\nimport { DEFAULT_COLUMN_WIDTH, useColumnWidths } from '../use-column-widths';\nimport { getStickyClassNames } from '../utils';\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 // Subscribe to the boundary column's sticky state to inherit shadow/clip-path classes.\n // The offset/position comes from stickyColumnId (first child); this only adds boundary classes.\n const boundaryStyles = useStickyCellStyles({\n stickyColumns: stickyState,\n columnId: stickyBoundaryColumnId ?? stickyColumnId ?? groupId,\n getClassName: props => getStickyClassNames(styles, props),\n });\n\n // boundaryStyles.className is populated by scroll/intersection observers in the browser.\n // In JSDOM these observers don't fire, so this branch is only exercised in integration tests.\n const boundaryClassName = stickyBoundaryColumnId && boundaryStyles.className ? boundaryStyles.className : undefined;\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 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 className={boundaryClassName}\n boundaryRef={stickyBoundaryColumnId ? boundaryStyles.ref : undefined}\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
+ {"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,IAA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CACT,CACF;QACL,gBAAgB,CAAC,CAAC,CAAC,CAClB,oBAAC,OAAO,IACN,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,gBAAgB,OAAO,EAAE,EAClC,aAAa,EAAE,gBAAgB,KAAK,gBAAgB,OAAO,EAAE,EAC7D,aAAa,EAAE,QAAQ,CAAC,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAC9D,mBAAmB,EAAE,cAAc,EACnC,cAAc,EAAE,QAAQ,EACxB,QAAQ,EAAE,aAAa,EACvB,eAAe,EAAE,sBAAsB,EACvC,WAAW,EAAE,kBAAkB,EAC/B,YAAY,EAAE,OAAO,KAAK,WAAW,IAAI,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,YAAY,EAC3F,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,GAClD,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,OAAO,IAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,GAAI,CACzD,CACc,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } 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-cell_1spae_1map5_149",
5
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_1map5_183",
6
- "header-cell-group": "awsui_header-cell-group_1spae_1map5_204",
7
- "header-cell-grouped": "awsui_header-cell-grouped_1spae_1map5_204",
8
- "header-cell-spans-rows": "awsui_header-cell-spans-rows_1spae_1map5_204",
9
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_1map5_208",
10
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_1map5_211",
11
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_1map5_211",
12
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_1map5_217",
13
- "header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_1map5_220",
14
- "is-visual-refresh": "awsui_is-visual-refresh_1spae_1map5_220",
15
- "sticky-cell": "awsui_sticky-cell_1spae_1map5_220",
16
- "header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_1map5_220",
17
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_1map5_223",
18
- "table-variant-full-page": "awsui_table-variant-full-page_1spae_1map5_244",
19
- "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_1map5_247",
20
- "has-selection": "awsui_has-selection_1spae_1map5_247",
21
- "sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_1map5_250",
22
- "resize-divider": "awsui_resize-divider_1spae_1map5_255",
23
- "sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_1map5_262",
24
- "sorting-icon": "awsui_sorting-icon_1spae_1map5_272",
25
- "edit-icon": "awsui_edit-icon_1spae_1map5_280",
26
- "header-cell-content": "awsui_header-cell-content_1spae_1map5_286",
27
- "header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_1map5_292",
28
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_1map5_347",
29
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_1map5_347",
30
- "header-cell-text": "awsui_header-cell-text_1spae_1map5_378",
31
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_1map5_382",
32
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_1map5_388",
33
- "header-cell-descending": "awsui_header-cell-descending_1spae_1map5_389",
34
- "has-striped-rows": "awsui_has-striped-rows_1spae_1map5_503",
35
- "sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_1map5_503",
36
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_1map5_515"
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