@cloudscape-design/components-themeable 3.0.1029 → 3.0.1031

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 (98) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/{table/expandable-rows → internal/components/expand-toggle-button}/motion.scss +2 -2
  3. package/lib/internal/scss/{table/expandable-rows → internal/components/expand-toggle-button}/styles.scss +3 -3
  4. package/lib/internal/scss/internal/components/structured-item/styles.scss +4 -1
  5. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  6. package/lib/internal/scss/internal/styles/utils/styles-reset.scss +8 -0
  7. package/lib/internal/scss/tree-view/styles.scss +21 -0
  8. package/lib/internal/scss/tree-view/test-classes/styles.scss +11 -0
  9. package/lib/internal/scss/tree-view/tree-item/styles.scss +45 -0
  10. package/lib/internal/template/button/internal.d.ts.map +1 -1
  11. package/lib/internal/template/button/internal.js +24 -22
  12. package/lib/internal/template/button/internal.js.map +1 -1
  13. package/lib/internal/template/flashbar/collapsible-flashbar.js +2 -2
  14. package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
  15. package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
  16. package/lib/internal/template/flashbar/flash.js +2 -2
  17. package/lib/internal/template/flashbar/flash.js.map +1 -1
  18. package/lib/internal/template/flashbar/style.d.ts +14 -14
  19. package/lib/internal/template/flashbar/style.d.ts.map +1 -1
  20. package/lib/internal/template/flashbar/style.js +14 -1
  21. package/lib/internal/template/flashbar/style.js.map +1 -1
  22. package/lib/internal/template/index.d.ts +1 -0
  23. package/lib/internal/template/index.d.ts.map +1 -1
  24. package/lib/internal/template/index.js +1 -0
  25. package/lib/internal/template/index.js.map +1 -1
  26. package/lib/internal/template/internal/analytics/interfaces.d.ts +2 -2
  27. package/lib/internal/template/internal/analytics/interfaces.d.ts.map +1 -1
  28. package/lib/internal/template/internal/analytics/interfaces.js.map +1 -1
  29. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  30. package/lib/internal/template/{table/expandable-rows/expand-toggle-button.d.ts → internal/components/expand-toggle-button/index.d.ts} +4 -3
  31. package/lib/internal/template/internal/components/expand-toggle-button/index.d.ts.map +1 -0
  32. package/lib/internal/template/{table/expandable-rows/expand-toggle-button.js → internal/components/expand-toggle-button/index.js} +5 -6
  33. package/lib/internal/template/internal/components/expand-toggle-button/index.js.map +1 -0
  34. package/lib/internal/template/internal/components/expand-toggle-button/styles.css.js +8 -0
  35. package/lib/internal/template/{table/expandable-rows → internal/components/expand-toggle-button}/styles.scoped.css +18 -18
  36. package/lib/internal/template/{table/expandable-rows → internal/components/expand-toggle-button}/styles.selectors.js +3 -3
  37. package/lib/internal/template/internal/components/structured-item/index.d.ts +1 -1
  38. package/lib/internal/template/internal/components/structured-item/index.d.ts.map +1 -1
  39. package/lib/internal/template/internal/components/structured-item/index.js +2 -2
  40. package/lib/internal/template/internal/components/structured-item/index.js.map +1 -1
  41. package/lib/internal/template/internal/components/structured-item/interfaces.d.ts +1 -0
  42. package/lib/internal/template/internal/components/structured-item/interfaces.d.ts.map +1 -1
  43. package/lib/internal/template/internal/components/structured-item/interfaces.js.map +1 -1
  44. package/lib/internal/template/internal/components/structured-item/styles.css.js +7 -6
  45. package/lib/internal/template/internal/components/structured-item/styles.scoped.css +10 -8
  46. package/lib/internal/template/internal/components/structured-item/styles.selectors.js +7 -6
  47. package/lib/internal/template/internal/environment.d.ts +1 -0
  48. package/lib/internal/template/internal/environment.js +4 -4
  49. package/lib/internal/template/internal/environment.json +3 -2
  50. package/lib/internal/template/package.json +1 -0
  51. package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -1
  52. package/lib/internal/template/table/body-cell/td-element.js +1 -1
  53. package/lib/internal/template/table/body-cell/td-element.js.map +1 -1
  54. package/lib/internal/template/test-utils/dom/index.d.ts +20 -0
  55. package/lib/internal/template/test-utils/dom/index.js +12 -1
  56. package/lib/internal/template/test-utils/dom/index.js.map +1 -1
  57. package/lib/internal/template/test-utils/dom/table/index.js +7 -7
  58. package/lib/internal/template/test-utils/dom/table/index.js.map +1 -1
  59. package/lib/internal/template/test-utils/dom/tree-view/index.d.ts +61 -0
  60. package/lib/internal/template/test-utils/dom/tree-view/index.js +95 -0
  61. package/lib/internal/template/test-utils/dom/tree-view/index.js.map +1 -0
  62. package/lib/internal/template/test-utils/selectors/index.d.ts +18 -0
  63. package/lib/internal/template/test-utils/selectors/index.js +12 -1
  64. package/lib/internal/template/test-utils/selectors/index.js.map +1 -1
  65. package/lib/internal/template/test-utils/selectors/table/index.js +7 -7
  66. package/lib/internal/template/test-utils/selectors/table/index.js.map +1 -1
  67. package/lib/internal/template/test-utils/selectors/tree-view/index.d.ts +61 -0
  68. package/lib/internal/template/test-utils/selectors/tree-view/index.js +95 -0
  69. package/lib/internal/template/test-utils/selectors/tree-view/index.js.map +1 -0
  70. package/lib/internal/template/tree-view/index.d.ts +6 -0
  71. package/lib/internal/template/tree-view/index.d.ts.map +1 -0
  72. package/lib/internal/template/tree-view/index.js +17 -0
  73. package/lib/internal/template/tree-view/index.js.map +1 -0
  74. package/lib/internal/template/tree-view/interfaces.d.ts +80 -0
  75. package/lib/internal/template/tree-view/interfaces.d.ts.map +1 -0
  76. package/lib/internal/template/tree-view/interfaces.js +2 -0
  77. package/lib/internal/template/tree-view/interfaces.js.map +1 -0
  78. package/lib/internal/template/tree-view/internal.d.ts +7 -0
  79. package/lib/internal/template/tree-view/internal.d.ts.map +1 -0
  80. package/lib/internal/template/tree-view/internal.js +35 -0
  81. package/lib/internal/template/tree-view/internal.js.map +1 -0
  82. package/lib/internal/template/tree-view/styles.css.js +7 -0
  83. package/lib/internal/template/tree-view/styles.scoped.css +223 -0
  84. package/lib/internal/template/tree-view/styles.selectors.js +8 -0
  85. package/lib/internal/template/tree-view/test-classes/styles.css.js +10 -0
  86. package/lib/internal/template/tree-view/test-classes/styles.scoped.css +11 -0
  87. package/lib/internal/template/tree-view/test-classes/styles.selectors.js +11 -0
  88. package/lib/internal/template/tree-view/tree-item/index.d.ts +11 -0
  89. package/lib/internal/template/tree-view/tree-item/index.d.ts.map +1 -0
  90. package/lib/internal/template/tree-view/tree-item/index.js +40 -0
  91. package/lib/internal/template/tree-view/tree-item/index.js.map +1 -0
  92. package/lib/internal/template/tree-view/tree-item/styles.css.js +10 -0
  93. package/lib/internal/template/tree-view/tree-item/styles.scoped.css +216 -0
  94. package/lib/internal/template/tree-view/tree-item/styles.selectors.js +11 -0
  95. package/package.json +1 -1
  96. package/lib/internal/template/table/expandable-rows/expand-toggle-button.d.ts.map +0 -1
  97. package/lib/internal/template/table/expandable-rows/expand-toggle-button.js.map +0 -1
  98. package/lib/internal/template/table/expandable-rows/styles.css.js +0 -8
@@ -150,36 +150,36 @@ 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_expand-toggle-icon_1ss49_1w02f_153:not(#\9) {
153
+ .awsui_expand-toggle-icon_1xe88_sgtpp_153:not(#\9) {
154
154
  transition: transform var(--motion-duration-rotate-90-f1ulnu, 135ms) var(--motion-easing-rotate-90-jekue3, cubic-bezier(0.165, 0.84, 0.44, 1));
155
155
  }
156
156
  @media (prefers-reduced-motion: reduce) {
157
- .awsui_expand-toggle-icon_1ss49_1w02f_153:not(#\9) {
157
+ .awsui_expand-toggle-icon_1xe88_sgtpp_153:not(#\9) {
158
158
  animation: none;
159
159
  transition: none;
160
160
  }
161
161
  }
162
- .awsui-motion-disabled .awsui_expand-toggle-icon_1ss49_1w02f_153:not(#\9), .awsui-mode-entering .awsui_expand-toggle-icon_1ss49_1w02f_153:not(#\9) {
162
+ .awsui-motion-disabled .awsui_expand-toggle-icon_1xe88_sgtpp_153:not(#\9), .awsui-mode-entering .awsui_expand-toggle-icon_1xe88_sgtpp_153:not(#\9) {
163
163
  animation: none;
164
164
  transition: none;
165
165
  }
166
166
 
167
- .awsui_expand-toggle-icon_1ss49_1w02f_153:not(#\9) {
167
+ .awsui_expand-toggle-icon_1xe88_sgtpp_153:not(#\9) {
168
168
  transform: rotate(-90deg);
169
169
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
170
170
  }
171
- .awsui_expand-toggle-icon_1ss49_1w02f_153:not(#\9):dir(rtl) {
171
+ .awsui_expand-toggle-icon_1xe88_sgtpp_153:not(#\9):dir(rtl) {
172
172
  transform: rotate(90deg);
173
173
  }
174
- .awsui_expand-toggle-icon-expanded_1ss49_1w02f_174:not(#\9) {
174
+ .awsui_expand-toggle-icon-expanded_1xe88_sgtpp_174:not(#\9) {
175
175
  transform: rotate(0deg);
176
176
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
177
177
  }
178
- .awsui_expand-toggle-icon-expanded_1ss49_1w02f_174:not(#\9):dir(rtl) {
178
+ .awsui_expand-toggle-icon-expanded_1xe88_sgtpp_174:not(#\9):dir(rtl) {
179
179
  transform: rotate(0deg);
180
180
  }
181
181
 
182
- .awsui_expand-toggle_1ss49_1w02f_153:not(#\9) {
182
+ .awsui_expand-toggle_1xe88_sgtpp_153:not(#\9) {
183
183
  border-collapse: separate;
184
184
  border-spacing: 0;
185
185
  box-sizing: border-box;
@@ -222,30 +222,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
222
222
  outline: 0;
223
223
  color: var(--color-text-interactive-default-qwoe3g, #545b64);
224
224
  }
225
- body[data-awsui-focus-visible=true] .awsui_expand-toggle_1ss49_1w02f_153:not(#\9):focus {
225
+ body[data-awsui-focus-visible=true] .awsui_expand-toggle_1xe88_sgtpp_153:not(#\9):focus {
226
226
  position: relative;
227
227
  }
228
- body[data-awsui-focus-visible=true] .awsui_expand-toggle_1ss49_1w02f_153:not(#\9):focus {
228
+ body[data-awsui-focus-visible=true] .awsui_expand-toggle_1xe88_sgtpp_153:not(#\9):focus {
229
229
  outline: 2px dotted transparent;
230
- outline-offset: calc(var(--space-button-inline-icon-focus-outline-gutter-cecatq, 3px) - 1px);
230
+ outline-offset: calc(var(--space-button-focus-outline-gutter-vsdlzg, 3px) - 1px);
231
231
  }
232
- body[data-awsui-focus-visible=true] .awsui_expand-toggle_1ss49_1w02f_153:not(#\9):focus::before {
232
+ body[data-awsui-focus-visible=true] .awsui_expand-toggle_1xe88_sgtpp_153:not(#\9):focus::before {
233
233
  content: " ";
234
234
  display: block;
235
235
  position: absolute;
236
- inset-inline-start: calc(-1 * var(--space-button-inline-icon-focus-outline-gutter-cecatq, 3px));
237
- inset-block-start: calc(-1 * var(--space-button-inline-icon-focus-outline-gutter-cecatq, 3px));
238
- inline-size: calc(100% + var(--space-button-inline-icon-focus-outline-gutter-cecatq, 3px) + var(--space-button-inline-icon-focus-outline-gutter-cecatq, 3px));
239
- block-size: calc(100% + var(--space-button-inline-icon-focus-outline-gutter-cecatq, 3px) + var(--space-button-inline-icon-focus-outline-gutter-cecatq, 3px));
236
+ inset-inline-start: calc(-1 * var(--space-button-focus-outline-gutter-vsdlzg, 3px));
237
+ inset-block-start: calc(-1 * var(--space-button-focus-outline-gutter-vsdlzg, 3px));
238
+ inline-size: calc(100% + var(--space-button-focus-outline-gutter-vsdlzg, 3px) + var(--space-button-focus-outline-gutter-vsdlzg, 3px));
239
+ block-size: calc(100% + var(--space-button-focus-outline-gutter-vsdlzg, 3px) + var(--space-button-focus-outline-gutter-vsdlzg, 3px));
240
240
  border-start-start-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
241
241
  border-start-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
242
242
  border-end-start-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
243
243
  border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
244
244
  box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
245
245
  }
246
- .awsui_expand-toggle_1ss49_1w02f_153:not(#\9):hover {
246
+ .awsui_expand-toggle_1xe88_sgtpp_153:not(#\9):hover {
247
247
  color: var(--color-text-interactive-hover-bu4gls, #16191f);
248
248
  }
249
- .awsui_expand-toggle_1ss49_1w02f_153:not(#\9):active {
249
+ .awsui_expand-toggle_1xe88_sgtpp_153:not(#\9):active {
250
250
  color: var(--color-text-interactive-active-c44vdq, #16191f);
251
251
  }
@@ -2,8 +2,8 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "expand-toggle-icon": "awsui_expand-toggle-icon_1ss49_1w02f_153",
6
- "expand-toggle-icon-expanded": "awsui_expand-toggle-icon-expanded_1ss49_1w02f_174",
7
- "expand-toggle": "awsui_expand-toggle_1ss49_1w02f_153"
5
+ "expand-toggle-icon": "awsui_expand-toggle-icon_1xe88_sgtpp_153",
6
+ "expand-toggle-icon-expanded": "awsui_expand-toggle-icon-expanded_1xe88_sgtpp_174",
7
+ "expand-toggle": "awsui_expand-toggle_1xe88_sgtpp_153"
8
8
  };
9
9
 
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { StructuredItemProps } from './interfaces';
3
3
  export { StructuredItemProps };
4
- export default function InternalStructuredItem({ content, icon, actions, secondaryContent, disablePaddings, }: StructuredItemProps): JSX.Element;
4
+ export default function InternalStructuredItem({ content, icon, actions, secondaryContent, disablePaddings, wrapActions, }: StructuredItemProps): JSX.Element;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,eAAe,GAChB,EAAE,mBAAmB,eAarB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,eAAe,EACf,WAAkB,GACnB,EAAE,mBAAmB,eAarB"}
@@ -4,11 +4,11 @@ import React from 'react';
4
4
  import clsx from 'clsx';
5
5
  import styles from './styles.css.js';
6
6
  import testClasses from './test-classes/styles.css.js';
7
- export default function InternalStructuredItem({ content, icon, actions, secondaryContent, disablePaddings, }) {
7
+ export default function InternalStructuredItem({ content, icon, actions, secondaryContent, disablePaddings, wrapActions = true, }) {
8
8
  return (React.createElement("div", { className: clsx(styles.root, testClasses.root, disablePaddings && styles['disable-paddings']) },
9
9
  icon && React.createElement("div", { className: clsx(styles.icon, testClasses.icon) }, icon),
10
10
  React.createElement("div", { className: clsx(styles.main) },
11
- React.createElement("div", { className: styles['content-wrap'] },
11
+ React.createElement("div", { className: clsx(styles['content-wrap'], wrapActions && styles['wrap-actions']) },
12
12
  React.createElement("div", { className: clsx(styles.content, testClasses.content) }, content),
13
13
  actions && React.createElement("div", { className: clsx(styles.actions, testClasses.actions) }, actions)),
14
14
  secondaryContent && React.createElement("div", { className: clsx(styles.secondary, testClasses.secondary) }, secondaryContent))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,WAAW,MAAM,8BAA8B,CAAC;AAIvD,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,eAAe,GACK;IACpB,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,eAAe,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC/F,IAAI,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,IAAG,IAAI,CAAO;QAC1E,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAC/B,6BAAK,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC;gBACpC,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,IAAG,OAAO,CAAO;gBACzE,OAAO,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,IAAG,OAAO,CAAO,CAClF;YACL,gBAAgB,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,IAAG,gBAAgB,CAAO,CACxG,CACF,CACP,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 { StructuredItemProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testClasses from './test-classes/styles.css.js';\n\nexport { StructuredItemProps };\n\nexport default function InternalStructuredItem({\n content,\n icon,\n actions,\n secondaryContent,\n disablePaddings,\n}: StructuredItemProps) {\n return (\n <div className={clsx(styles.root, testClasses.root, disablePaddings && styles['disable-paddings'])}>\n {icon && <div className={clsx(styles.icon, testClasses.icon)}>{icon}</div>}\n <div className={clsx(styles.main)}>\n <div className={styles['content-wrap']}>\n <div className={clsx(styles.content, testClasses.content)}>{content}</div>\n {actions && <div className={clsx(styles.actions, testClasses.actions)}>{actions}</div>}\n </div>\n {secondaryContent && <div className={clsx(styles.secondary, testClasses.secondary)}>{secondaryContent}</div>}\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,WAAW,MAAM,8BAA8B,CAAC;AAIvD,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,eAAe,EACf,WAAW,GAAG,IAAI,GACE;IACpB,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,eAAe,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC/F,IAAI,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,IAAG,IAAI,CAAO;QAC1E,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAC/B,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,WAAW,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC;gBACjF,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,IAAG,OAAO,CAAO;gBACzE,OAAO,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,IAAG,OAAO,CAAO,CAClF;YACL,gBAAgB,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,IAAG,gBAAgB,CAAO,CACxG,CACF,CACP,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 { StructuredItemProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testClasses from './test-classes/styles.css.js';\n\nexport { StructuredItemProps };\n\nexport default function InternalStructuredItem({\n content,\n icon,\n actions,\n secondaryContent,\n disablePaddings,\n wrapActions = true,\n}: StructuredItemProps) {\n return (\n <div className={clsx(styles.root, testClasses.root, disablePaddings && styles['disable-paddings'])}>\n {icon && <div className={clsx(styles.icon, testClasses.icon)}>{icon}</div>}\n <div className={clsx(styles.main)}>\n <div className={clsx(styles['content-wrap'], wrapActions && styles['wrap-actions'])}>\n <div className={clsx(styles.content, testClasses.content)}>{content}</div>\n {actions && <div className={clsx(styles.actions, testClasses.actions)}>{actions}</div>}\n </div>\n {secondaryContent && <div className={clsx(styles.secondary, testClasses.secondary)}>{secondaryContent}</div>}\n </div>\n </div>\n );\n}\n"]}
@@ -5,5 +5,6 @@ export interface StructuredItemProps {
5
5
  actions?: ReactNode;
6
6
  secondaryContent?: ReactNode;
7
7
  disablePaddings?: boolean;
8
+ wrapActions?: boolean;
8
9
  }
9
10
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ReactNode } from 'react';\n\nexport interface StructuredItemProps {\n content: ReactNode;\n icon?: ReactNode;\n actions?: ReactNode;\n secondaryContent?: ReactNode;\n disablePaddings?: boolean;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/structured-item/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ReactNode } from 'react';\n\nexport interface StructuredItemProps {\n content: ReactNode;\n icon?: ReactNode;\n actions?: ReactNode;\n secondaryContent?: ReactNode;\n disablePaddings?: boolean;\n wrapActions?: boolean;\n}\n"]}
@@ -1,11 +1,12 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1ifko_srswv_145",
5
- "disable-paddings": "awsui_disable-paddings_1ifko_srswv_183",
6
- "main": "awsui_main_1ifko_srswv_187",
7
- "content-wrap": "awsui_content-wrap_1ifko_srswv_193",
8
- "content": "awsui_content_1ifko_srswv_193",
9
- "actions": "awsui_actions_1ifko_srswv_209"
4
+ "root": "awsui_root_1ifko_5020c_145",
5
+ "disable-paddings": "awsui_disable-paddings_1ifko_5020c_183",
6
+ "main": "awsui_main_1ifko_5020c_187",
7
+ "content-wrap": "awsui_content-wrap_1ifko_5020c_193",
8
+ "wrap-actions": "awsui_wrap-actions_1ifko_5020c_203",
9
+ "content": "awsui_content_1ifko_5020c_193",
10
+ "actions": "awsui_actions_1ifko_5020c_211"
10
11
  };
11
12
 
@@ -142,7 +142,7 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_root_1ifko_srswv_145:not(#\9) {
145
+ .awsui_root_1ifko_5020c_145:not(#\9) {
146
146
  border-collapse: separate;
147
147
  border-spacing: 0;
148
148
  box-sizing: border-box;
@@ -180,33 +180,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
180
180
  align-items: baseline;
181
181
  column-gap: var(--space-xs-kw7k3v, 8px);
182
182
  }
183
- .awsui_root_1ifko_srswv_145.awsui_disable-paddings_1ifko_srswv_183:not(#\9) {
183
+ .awsui_root_1ifko_5020c_145.awsui_disable-paddings_1ifko_5020c_183:not(#\9) {
184
184
  column-gap: 0;
185
185
  }
186
186
 
187
- .awsui_main_1ifko_srswv_187:not(#\9) {
187
+ .awsui_main_1ifko_5020c_187:not(#\9) {
188
188
  flex-grow: 1;
189
189
  display: flex;
190
190
  flex-direction: column;
191
191
  }
192
192
 
193
- .awsui_content-wrap_1ifko_srswv_193:not(#\9) {
193
+ .awsui_content-wrap_1ifko_5020c_193:not(#\9) {
194
194
  flex-grow: 1;
195
195
  display: flex;
196
196
  align-items: baseline;
197
197
  flex-direction: row;
198
- flex-wrap: wrap;
199
198
  column-gap: var(--space-xs-kw7k3v, 8px);
200
199
  }
201
- .awsui_disable-paddings_1ifko_srswv_183 > .awsui_main_1ifko_srswv_187 > .awsui_content-wrap_1ifko_srswv_193:not(#\9) {
200
+ .awsui_disable-paddings_1ifko_5020c_183 > .awsui_main_1ifko_5020c_187 > .awsui_content-wrap_1ifko_5020c_193:not(#\9) {
202
201
  column-gap: 0;
203
202
  }
203
+ .awsui_content-wrap_1ifko_5020c_193.awsui_wrap-actions_1ifko_5020c_203:not(#\9) {
204
+ flex-wrap: wrap;
205
+ }
204
206
 
205
- .awsui_content_1ifko_srswv_193:not(#\9) {
207
+ .awsui_content_1ifko_5020c_193:not(#\9) {
206
208
  flex-grow: 1;
207
209
  }
208
210
 
209
- .awsui_actions_1ifko_srswv_209:not(#\9) {
211
+ .awsui_actions_1ifko_5020c_211:not(#\9) {
210
212
  flex-shrink: 0;
211
213
  margin-inline-start: auto;
212
214
  }
@@ -2,11 +2,12 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_1ifko_srswv_145",
6
- "disable-paddings": "awsui_disable-paddings_1ifko_srswv_183",
7
- "main": "awsui_main_1ifko_srswv_187",
8
- "content-wrap": "awsui_content-wrap_1ifko_srswv_193",
9
- "content": "awsui_content_1ifko_srswv_193",
10
- "actions": "awsui_actions_1ifko_srswv_209"
5
+ "root": "awsui_root_1ifko_5020c_145",
6
+ "disable-paddings": "awsui_disable-paddings_1ifko_5020c_183",
7
+ "main": "awsui_main_1ifko_5020c_187",
8
+ "content-wrap": "awsui_content-wrap_1ifko_5020c_193",
9
+ "wrap-actions": "awsui_wrap-actions_1ifko_5020c_203",
10
+ "content": "awsui_content_1ifko_5020c_193",
11
+ "actions": "awsui_actions_1ifko_5020c_211"
11
12
  };
12
13
 
@@ -2,4 +2,5 @@ export const PACKAGE_SOURCE: string;
2
2
  export const PACKAGE_VERSION: string;
3
3
  export const GIT_SHA: string;
4
4
  export const THEME: string;
5
+ export const SYSTEM: string;
5
6
  export const ALWAYS_VISUAL_REFRESH: string;
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (f40e0fc0)";
3
- export var GIT_SHA = "f40e0fc0";
2
+ export var PACKAGE_VERSION = "3.0.0 (77283443)";
3
+ export var GIT_SHA = "77283443";
4
4
  export var THEME = "open-source-visual-refresh";
5
- export var ALWAYS_VISUAL_REFRESH = true;
6
- export var SYSTEM = "console";
5
+ export var SYSTEM = "console";
6
+ export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (f40e0fc0)",
4
- "GIT_SHA": "f40e0fc0",
3
+ "PACKAGE_VERSION": "3.0.0 (77283443)",
4
+ "GIT_SHA": "77283443",
5
5
  "THEME": "default",
6
+ "SYSTEM": "core",
6
7
  "ALWAYS_VISUAL_REFRESH": false
7
8
  }
@@ -107,6 +107,7 @@
107
107
  "./toggle-button": "./toggle-button/index.js",
108
108
  "./token-group": "./token-group/index.js",
109
109
  "./top-navigation": "./top-navigation/index.js",
110
+ "./tree-view": "./tree-view/index.js",
110
111
  "./tutorial-panel": "./tutorial-panel/index.js",
111
112
  "./wizard": "./wizard/index.js",
112
113
  "./top-navigation/1.0-beta": "./top-navigation/1.0-beta/index.js",
@@ -1 +1 @@
1
- {"version":3,"file":"td-element.d.ts","sourceRoot":"","sources":["../../../../src/table/body-cell/td-element.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAu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,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,kBAAkB,CAAC;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC;IACzC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,kGA8G1B,CAAC"}
@@ -5,9 +5,9 @@ import React, { useRef } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';
7
7
  import { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
8
+ import { ExpandToggleButton } from '../../internal/components/expand-toggle-button';
8
9
  import { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';
9
10
  import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
10
- import { ExpandToggleButton } from '../expandable-rows/expand-toggle-button';
11
11
  import { useStickyCellStyles } from '../sticky-columns';
12
12
  import { getTableCellRoleProps } from '../table-role';
13
13
  import { getStickyClassNames } from '../utils';
@@ -1 +1 @@
1
- {"version":3,"file":"td-element.js","sourceRoot":"","sources":["../../../../src/table/body-cell/td-element.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,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EAAsB,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAa,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AA2CrC,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAC5C,CACE,EAqCC,EACD,GAAG,EACH,EAAE;QAvCF,EACE,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,KAAK,EACL,YAAY,EACZ,UAAU,EACV,sBAAs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e,IAAI,CAC1D,6BAAK,SAAS,EAAE,MAAM,CAAC,2BAA2B,CAAC;YACjD,oBAAC,kBAAkB,IACjB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,GACxC,CACE,CACP;QAED,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,SAAS,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAG,QAAQ,CAAO,CAClG,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,mBAAmB,CAAC,KAAa;IACxC,OAAO,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;AACnD,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 { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { ColumnWidthStyle } from '../column-widths-utils';\nimport { ExpandToggleButton } from '../expandable-rows/expand-toggle-button';\nimport { TableProps } from '../interfaces.js';\nimport { StickyColumnsModel, useStickyCellStyles } from '../sticky-columns';\nimport { getTableCellRoleProps, TableRole } from '../table-role';\nimport { getStickyClassNames } from '../utils';\n\nimport tableStyles from '../styles.css.js';\nimport styles from './styles.css.js';\n\nexport interface TableTdElementProps {\n wrapLines: boolean | undefined;\n isRowHeader?: boolean;\n isFirstRow: boolean;\n isLastRow: boolean;\n isSelected: boolean;\n isNextSelected: boolean;\n isPrevSelected: boolean;\n nativeAttributes?: Omit<\n React.TdHTMLAttributes<HTMLTableCellElement> | React.ThHTMLAttributes<HTMLTableCellElement>,\n 'style' | 'className' | 'onClick'\n >;\n onClick?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n children?: React.ReactNode;\n isEvenRow?: boolean;\n stripedRows?: boolean;\n isSelection?: boolean;\n hasSelection?: boolean;\n hasFooter?: boolean;\n columnId: PropertyKey;\n colIndex: number;\n stickyState: StickyColumnsModel;\n tableRole: TableRole;\n level?: number;\n isExpandable?: boolean;\n isExpanded?: boolean;\n onExpandableItemToggle?: () => void;\n expandButtonLabel?: string;\n collapseButtonLabel?: string;\n verticalAlign?: TableProps.VerticalAlign;\n resizableColumns?: boolean;\n resizableStyle?: ColumnWidthStyle;\n isEditable: boolean;\n isEditing: boolean;\n isEditingDisabled?: boolean;\n hasSuccessIcon?: boolean;\n tableVariant?: string;\n}\n\nexport const TableTdElement = React.forwardRef<HTMLTableCellElement, TableTdElementProps>(\n (\n {\n children,\n wrapLines,\n isRowHeader,\n isFirstRow,\n isLastRow,\n isSelected,\n isNextSelected,\n isPrevSelected,\n nativeAttributes,\n onClick,\n onFocus,\n onBlur,\n isEvenRow,\n stripedRows,\n isSelection,\n hasSelection,\n hasFooter,\n columnId,\n colIndex,\n stickyState,\n tableRole,\n level,\n isExpandable,\n isExpanded,\n onExpandableItemToggle,\n expandButtonLabel,\n collapseButtonLabel,\n verticalAlign,\n resizableColumns,\n resizableStyle,\n isEditable,\n isEditing,\n isEditingDisabled,\n hasSuccessIcon,\n tableVariant,\n ...rest\n },\n ref\n ) => {\n const Element = isRowHeader ? 'th' : 'td';\n const isVisualRefresh = useVisualRefresh();\n\n resizableStyle = resizableColumns ? {} : resizableStyle;\n\n nativeAttributes = { ...nativeAttributes, ...getTableCellRoleProps({ tableRole, isRowHeader, colIndex }) };\n\n const stickyStyles = useStickyCellStyles({\n stickyColumns: stickyState,\n columnId,\n getClassName: props => getStickyClassNames(styles, props),\n });\n\n const cellRefObject = useRef<HTMLTableCellElement>(null);\n const mergedRef = useMergeRefs(stickyStyles.ref, ref, cellRefObject);\n const { tabIndex: cellTabIndex } = useSingleTabStopNavigation(cellRefObject);\n const isEditingActive = isEditing && !isEditingDisabled;\n\n return (\n <Element\n style={{ ...resizableStyle, ...stickyStyles.style }}\n className={clsx(\n styles['body-cell'],\n isFirstRow && styles['body-cell-first-row'],\n isLastRow && styles['body-cell-last-row'],\n isSelected && styles['body-cell-selected'],\n isNextSelected && styles['body-cell-next-selected'],\n isPrevSelected && styles['body-cell-prev-selected'],\n !isEvenRow && stripedRows && styles['body-cell-shaded'],\n stripedRows && styles['has-striped-rows'],\n isVisualRefresh && styles['is-visual-refresh'],\n isSelection && tableStyles['selection-control'],\n hasSelection && styles['has-selection'],\n hasFooter && styles['has-footer'],\n resizableColumns && styles['resizable-columns'],\n verticalAlign === 'top' && styles['body-cell-align-top'],\n isEditable && styles['body-cell-editable'],\n isEditing && !isEditingDisabled && styles['body-cell-edit-active'],\n isEditing && isEditingDisabled && styles['body-cell-edit-disabled-popover'],\n hasSuccessIcon && styles['body-cell-has-success'],\n level !== undefined && !isEditingActive && styles['body-cell-expandable'],\n level !== undefined && !isEditingActive && styles[`expandable-level-${getLevelClassSuffix(level)}`],\n tableVariant && styles[`table-variant-${tableVariant}`],\n stickyStyles.className\n )}\n onClick={onClick}\n onFocus={onFocus}\n onBlur={onBlur}\n ref={mergedRef}\n {...nativeAttributes}\n tabIndex={cellTabIndex === -1 ? undefined : cellTabIndex}\n {...copyAnalyticsMetadataAttribute(rest)}\n >\n {level !== undefined && isExpandable && !isEditingActive && (\n <div className={styles['expandable-toggle-wrapper']}>\n <ExpandToggleButton\n isExpanded={isExpanded}\n onExpandableItemToggle={onExpandableItemToggle}\n expandButtonLabel={expandButtonLabel}\n collapseButtonLabel={collapseButtonLabel}\n />\n </div>\n )}\n\n <div className={clsx(styles['body-cell-content'], wrapLines && styles['body-cell-wrap'])}>{children}</div>\n </Element>\n );\n }\n);\n\nfunction getLevelClassSuffix(level: number) {\n return 0 <= level && level <= 9 ? level : 'next';\n}\n"]}
1
+ {"version":3,"file":"td-element.js","sourceRoot":"","sources":["../../../../src/table/body-cell/td-element.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,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAa,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AA2CrC,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAC5C,CACE,EAqCC,EACD,GAAG,EACH,EAAE;QAvCF,EACE,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,KAAK,EACL,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,SAAS,EACT,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EAAE,UAAU,EACtB,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,GACxC,CACE,CACP;QAED,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,SAAS,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAG,QAAQ,CAAO,CAClG,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,mBAAmB,CAAC,KAAa;IACxC,OAAO,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;AACnD,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 { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { ExpandToggleButton } from '../../internal/components/expand-toggle-button';\nimport { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { ColumnWidthStyle } from '../column-widths-utils';\nimport { TableProps } from '../interfaces.js';\nimport { StickyColumnsModel, useStickyCellStyles } from '../sticky-columns';\nimport { getTableCellRoleProps, TableRole } from '../table-role';\nimport { getStickyClassNames } from '../utils';\n\nimport tableStyles from '../styles.css.js';\nimport styles from './styles.css.js';\n\nexport interface TableTdElementProps {\n wrapLines: boolean | undefined;\n isRowHeader?: boolean;\n isFirstRow: boolean;\n isLastRow: boolean;\n isSelected: boolean;\n isNextSelected: boolean;\n isPrevSelected: boolean;\n nativeAttributes?: Omit<\n React.TdHTMLAttributes<HTMLTableCellElement> | React.ThHTMLAttributes<HTMLTableCellElement>,\n 'style' | 'className' | 'onClick'\n >;\n onClick?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n children?: React.ReactNode;\n isEvenRow?: boolean;\n stripedRows?: boolean;\n isSelection?: boolean;\n hasSelection?: boolean;\n hasFooter?: boolean;\n columnId: PropertyKey;\n colIndex: number;\n stickyState: StickyColumnsModel;\n tableRole: TableRole;\n level?: number;\n isExpandable?: boolean;\n isExpanded?: boolean;\n onExpandableItemToggle?: () => void;\n expandButtonLabel?: string;\n collapseButtonLabel?: string;\n verticalAlign?: TableProps.VerticalAlign;\n resizableColumns?: boolean;\n resizableStyle?: ColumnWidthStyle;\n isEditable: boolean;\n isEditing: boolean;\n isEditingDisabled?: boolean;\n hasSuccessIcon?: boolean;\n tableVariant?: string;\n}\n\nexport const TableTdElement = React.forwardRef<HTMLTableCellElement, TableTdElementProps>(\n (\n {\n children,\n wrapLines,\n isRowHeader,\n isFirstRow,\n isLastRow,\n isSelected,\n isNextSelected,\n isPrevSelected,\n nativeAttributes,\n onClick,\n onFocus,\n onBlur,\n isEvenRow,\n stripedRows,\n isSelection,\n hasSelection,\n hasFooter,\n columnId,\n colIndex,\n stickyState,\n tableRole,\n level,\n isExpandable,\n isExpanded,\n onExpandableItemToggle,\n expandButtonLabel,\n collapseButtonLabel,\n verticalAlign,\n resizableColumns,\n resizableStyle,\n isEditable,\n isEditing,\n isEditingDisabled,\n hasSuccessIcon,\n tableVariant,\n ...rest\n },\n ref\n ) => {\n const Element = isRowHeader ? 'th' : 'td';\n const isVisualRefresh = useVisualRefresh();\n\n resizableStyle = resizableColumns ? {} : resizableStyle;\n\n nativeAttributes = { ...nativeAttributes, ...getTableCellRoleProps({ tableRole, isRowHeader, colIndex }) };\n\n const stickyStyles = useStickyCellStyles({\n stickyColumns: stickyState,\n columnId,\n getClassName: props => getStickyClassNames(styles, props),\n });\n\n const cellRefObject = useRef<HTMLTableCellElement>(null);\n const mergedRef = useMergeRefs(stickyStyles.ref, ref, cellRefObject);\n const { tabIndex: cellTabIndex } = useSingleTabStopNavigation(cellRefObject);\n const isEditingActive = isEditing && !isEditingDisabled;\n\n return (\n <Element\n style={{ ...resizableStyle, ...stickyStyles.style }}\n className={clsx(\n styles['body-cell'],\n isFirstRow && styles['body-cell-first-row'],\n isLastRow && styles['body-cell-last-row'],\n isSelected && styles['body-cell-selected'],\n isNextSelected && styles['body-cell-next-selected'],\n isPrevSelected && styles['body-cell-prev-selected'],\n !isEvenRow && stripedRows && styles['body-cell-shaded'],\n stripedRows && styles['has-striped-rows'],\n isVisualRefresh && styles['is-visual-refresh'],\n isSelection && tableStyles['selection-control'],\n hasSelection && styles['has-selection'],\n hasFooter && styles['has-footer'],\n resizableColumns && styles['resizable-columns'],\n verticalAlign === 'top' && styles['body-cell-align-top'],\n isEditable && styles['body-cell-editable'],\n isEditing && !isEditingDisabled && styles['body-cell-edit-active'],\n isEditing && isEditingDisabled && styles['body-cell-edit-disabled-popover'],\n hasSuccessIcon && styles['body-cell-has-success'],\n level !== undefined && !isEditingActive && styles['body-cell-expandable'],\n level !== undefined && !isEditingActive && styles[`expandable-level-${getLevelClassSuffix(level)}`],\n tableVariant && styles[`table-variant-${tableVariant}`],\n stickyStyles.className\n )}\n onClick={onClick}\n onFocus={onFocus}\n onBlur={onBlur}\n ref={mergedRef}\n {...nativeAttributes}\n tabIndex={cellTabIndex === -1 ? undefined : cellTabIndex}\n {...copyAnalyticsMetadataAttribute(rest)}\n >\n {level !== undefined && isExpandable && !isEditingActive && (\n <div className={styles['expandable-toggle-wrapper']}>\n <ExpandToggleButton\n isExpanded={isExpanded}\n onExpandableItemToggle={onExpandableItemToggle}\n expandButtonLabel={expandButtonLabel}\n collapseButtonLabel={collapseButtonLabel}\n />\n </div>\n )}\n\n <div className={clsx(styles['body-cell-content'], wrapLines && styles['body-cell-wrap'])}>{children}</div>\n </Element>\n );\n }\n);\n\nfunction getLevelClassSuffix(level: number) {\n return 0 <= level && level <= 9 ? level : 'next';\n}\n"]}
@@ -79,6 +79,7 @@ import ToggleWrapper from './toggle';
79
79
  import ToggleButtonWrapper from './toggle-button';
80
80
  import TokenGroupWrapper from './token-group';
81
81
  import TopNavigationWrapper from './top-navigation';
82
+ import TreeViewWrapper from './tree-view';
82
83
  import TutorialPanelWrapper from './tutorial-panel';
83
84
  import WizardWrapper from './wizard';
84
85
  export { AlertWrapper };
@@ -160,6 +161,7 @@ export { ToggleWrapper };
160
161
  export { ToggleButtonWrapper };
161
162
  export { TokenGroupWrapper };
162
163
  export { TopNavigationWrapper };
164
+ export { TreeViewWrapper };
163
165
  export { TutorialPanelWrapper };
164
166
  export { WizardWrapper };
165
167
  declare module '@cloudscape-design/test-utils-core/dist/dom' {
@@ -1586,6 +1588,24 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
1586
1588
  * @returns {Array<TopNavigationWrapper>}
1587
1589
  */
1588
1590
  findAllTopNavigations(selector?: string): Array<TopNavigationWrapper>;
1591
+ /**
1592
+ * Returns the wrapper of the first TreeView that matches the specified CSS selector.
1593
+ * If no CSS selector is specified, returns the wrapper of the first TreeView.
1594
+ * If no matching TreeView is found, returns `null`.
1595
+ *
1596
+ * @param {string} [selector] CSS Selector
1597
+ * @returns {TreeViewWrapper | null}
1598
+ */
1599
+ findTreeView(selector?: string): TreeViewWrapper | null;
1600
+ /**
1601
+ * Returns an array of TreeView wrapper that matches the specified CSS selector.
1602
+ * If no CSS selector is specified, returns all of the TreeViews inside the current wrapper.
1603
+ * If no matching TreeView is found, returns an empty array.
1604
+ *
1605
+ * @param {string} [selector] CSS Selector
1606
+ * @returns {Array<TreeViewWrapper>}
1607
+ */
1608
+ findAllTreeViews(selector?: string): Array<TreeViewWrapper>;
1589
1609
  /**
1590
1610
  * Returns the wrapper of the first TutorialPanel that matches the specified CSS selector.
1591
1611
  * If no CSS selector is specified, returns the wrapper of the first TutorialPanel.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ModalWrapper = exports.MixedLineBarChartWrapper = exports.LiveRegionWrapper = exports.ListWrapper = exports.LinkWrapper = exports.LineChartWrapper = exports.KeyValuePairsWrapper = exports.InputWrapper = exports.IconWrapper = exports.HotspotWrapper = exports.HelpPanelWrapper = exports.HeaderWrapper = exports.GridWrapper = exports.FormFieldWrapper = exports.FormWrapper = exports.FlashbarWrapper = exports.FileUploadWrapper = exports.FileTokenGroupWrapper = exports.FileInputWrapper = exports.FileDropzoneWrapper = exports.ExpandableSectionWrapper = exports.DrawerWrapper = exports.DateRangePickerWrapper = exports.DatePickerWrapper = exports.DateInputWrapper = exports.CopyToClipboardWrapper = exports.ContentLayoutWrapper = exports.ContainerWrapper = exports.ColumnLayoutWrapper = exports.CollectionPreferencesWrapper = exports.CodeEditorWrapper = exports.CheckboxWrapper = exports.CardsWrapper = exports.CalendarWrapper = exports.ButtonGroupWrapper = exports.ButtonDropdownWrapper = exports.ButtonWrapper = exports.BreadcrumbGroupWrapper = exports.BoxWrapper = exports.BarChartWrapper = exports.BadgeWrapper = exports.AutosuggestWrapper = exports.AttributeEditorWrapper = exports.AreaChartWrapper = exports.AppLayoutToolbarWrapper = exports.AppLayoutWrapper = exports.AnnotationWrapper = exports.AnchorNavigationWrapper = exports.AlertWrapper = exports.ElementWrapper = void 0;
4
- exports.WizardWrapper = exports.TutorialPanelWrapper = exports.TopNavigationWrapper = exports.TokenGroupWrapper = exports.ToggleButtonWrapper = exports.ToggleWrapper = exports.TimeInputWrapper = exports.TilesWrapper = exports.TextareaWrapper = exports.TextFilterWrapper = exports.TextContentWrapper = exports.TagEditorWrapper = exports.TabsWrapper = exports.TableWrapper = exports.StepsWrapper = exports.StatusIndicatorWrapper = exports.SplitPanelWrapper = exports.SpinnerWrapper = exports.SpaceBetweenWrapper = exports.SliderWrapper = exports.SideNavigationWrapper = exports.SelectWrapper = exports.SegmentedControlWrapper = exports.S3ResourceSelectorWrapper = exports.RadioGroupWrapper = exports.PropertyFilterWrapper = exports.PromptInputWrapper = exports.ProgressBarWrapper = exports.PopoverWrapper = exports.PieChartWrapper = exports.PaginationWrapper = exports.MultiselectWrapper = void 0;
4
+ exports.WizardWrapper = exports.TutorialPanelWrapper = exports.TreeViewWrapper = exports.TopNavigationWrapper = exports.TokenGroupWrapper = exports.ToggleButtonWrapper = exports.ToggleWrapper = exports.TimeInputWrapper = exports.TilesWrapper = exports.TextareaWrapper = exports.TextFilterWrapper = exports.TextContentWrapper = exports.TagEditorWrapper = exports.TabsWrapper = exports.TableWrapper = exports.StepsWrapper = exports.StatusIndicatorWrapper = exports.SplitPanelWrapper = exports.SpinnerWrapper = exports.SpaceBetweenWrapper = exports.SliderWrapper = exports.SideNavigationWrapper = exports.SelectWrapper = exports.SegmentedControlWrapper = exports.S3ResourceSelectorWrapper = exports.RadioGroupWrapper = exports.PropertyFilterWrapper = exports.PromptInputWrapper = exports.ProgressBarWrapper = exports.PopoverWrapper = exports.PieChartWrapper = exports.PaginationWrapper = exports.MultiselectWrapper = void 0;
5
5
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
6
  // SPDX-License-Identifier: Apache-2.0
7
7
  const dom_1 = require("@cloudscape-design/test-utils-core/dom");
@@ -165,6 +165,8 @@ const token_group_1 = require("./token-group");
165
165
  exports.TokenGroupWrapper = token_group_1.default;
166
166
  const top_navigation_1 = require("./top-navigation");
167
167
  exports.TopNavigationWrapper = top_navigation_1.default;
168
+ const tree_view_1 = require("./tree-view");
169
+ exports.TreeViewWrapper = tree_view_1.default;
168
170
  const tutorial_panel_1 = require("./tutorial-panel");
169
171
  exports.TutorialPanelWrapper = tutorial_panel_1.default;
170
172
  const wizard_1 = require("./wizard");
@@ -880,6 +882,15 @@ dom_1.ElementWrapper.prototype.findTopNavigation = function (selector) {
880
882
  dom_1.ElementWrapper.prototype.findAllTopNavigations = function (selector) {
881
883
  return this.findAllComponents(top_navigation_1.default, selector);
882
884
  };
885
+ dom_1.ElementWrapper.prototype.findTreeView = function (selector) {
886
+ const rootSelector = `.${tree_view_1.default.rootSelector}`;
887
+ // casting to 'any' is needed to avoid this issue with generics
888
+ // https://github.com/microsoft/TypeScript/issues/29132
889
+ return this.findComponent(selector ? (0, utils_1.appendSelector)(selector, rootSelector) : rootSelector, tree_view_1.default);
890
+ };
891
+ dom_1.ElementWrapper.prototype.findAllTreeViews = function (selector) {
892
+ return this.findAllComponents(tree_view_1.default, selector);
893
+ };
883
894
  dom_1.ElementWrapper.prototype.findTutorialPanel = function (selector) {
884
895
  const rootSelector = `.${tutorial_panel_1.default.rootSelector}`;
885
896
  // casting to 'any' is needed to avoid this issue with generics