@cloudscape-design/components 3.0.1297 → 3.0.1299

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 (153) hide show
  1. package/attribute-editor/styles.css.js +15 -15
  2. package/attribute-editor/styles.scoped.css +29 -28
  3. package/attribute-editor/styles.selectors.js +15 -15
  4. package/breadcrumb-group/item/styles.css.js +7 -7
  5. package/breadcrumb-group/item/styles.scoped.css +30 -29
  6. package/breadcrumb-group/item/styles.selectors.js +7 -7
  7. package/breadcrumb-group/styles.css.js +14 -14
  8. package/breadcrumb-group/styles.scoped.css +25 -25
  9. package/breadcrumb-group/styles.selectors.js +14 -14
  10. package/button-dropdown/category-elements/category-element.js +1 -1
  11. package/button-dropdown/category-elements/category-element.js.map +1 -1
  12. package/button-dropdown/category-elements/expandable-category-element.js +1 -1
  13. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  14. package/button-dropdown/category-elements/mobile-expandable-category-element.js +1 -1
  15. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  16. package/button-dropdown/item-element/index.js +1 -1
  17. package/button-dropdown/item-element/index.js.map +1 -1
  18. package/button-dropdown/item-element/styles.css.js +21 -21
  19. package/button-dropdown/item-element/styles.scoped.css +38 -37
  20. package/button-dropdown/item-element/styles.selectors.js +21 -21
  21. package/copy-to-clipboard/index.d.ts +1 -0
  22. package/copy-to-clipboard/index.d.ts.map +1 -1
  23. package/copy-to-clipboard/index.js +2 -2
  24. package/copy-to-clipboard/index.js.map +1 -1
  25. package/copy-to-clipboard/interfaces.d.ts +5 -0
  26. package/copy-to-clipboard/interfaces.d.ts.map +1 -1
  27. package/copy-to-clipboard/interfaces.js.map +1 -1
  28. package/copy-to-clipboard/internal.d.ts +1 -0
  29. package/copy-to-clipboard/internal.d.ts.map +1 -1
  30. package/copy-to-clipboard/internal.js +3 -3
  31. package/copy-to-clipboard/internal.js.map +1 -1
  32. package/copy-to-clipboard/styles.css.js +5 -3
  33. package/copy-to-clipboard/styles.scoped.css +18 -3
  34. package/copy-to-clipboard/styles.selectors.js +5 -3
  35. package/drawer/implementation.d.ts +3 -3
  36. package/drawer/implementation.d.ts.map +1 -1
  37. package/drawer/implementation.js +3 -2
  38. package/drawer/implementation.js.map +1 -1
  39. package/drawer/index.d.ts +2 -10
  40. package/drawer/index.d.ts.map +1 -1
  41. package/drawer/index.js +21 -9
  42. package/drawer/index.js.map +1 -1
  43. package/drawer/interfaces.d.ts +45 -18
  44. package/drawer/interfaces.d.ts.map +1 -1
  45. package/drawer/interfaces.js.map +1 -1
  46. package/drawer/styles.css.js +29 -25
  47. package/drawer/styles.scoped.css +43 -34
  48. package/drawer/styles.selectors.js +29 -25
  49. package/drawer/utils.d.ts +2 -2
  50. package/drawer/utils.d.ts.map +1 -1
  51. package/drawer/utils.js +6 -5
  52. package/drawer/utils.js.map +1 -1
  53. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  54. package/flashbar/collapsible-flashbar.js +6 -1
  55. package/flashbar/collapsible-flashbar.js.map +1 -1
  56. package/flashbar/flash.d.ts.map +1 -1
  57. package/flashbar/flash.js +2 -5
  58. package/flashbar/flash.js.map +1 -1
  59. package/form-field/styles.css.js +24 -24
  60. package/form-field/styles.scoped.css +41 -41
  61. package/form-field/styles.selectors.js +24 -24
  62. package/help-panel/styles.css.js +6 -6
  63. package/help-panel/styles.scoped.css +73 -71
  64. package/help-panel/styles.selectors.js +6 -6
  65. package/index.d.ts +1 -0
  66. package/index.d.ts.map +1 -1
  67. package/index.js +1 -0
  68. package/index.js.map +1 -1
  69. package/internal/base-component/styles.scoped.css +36 -13
  70. package/internal/components/token-list/styles.css.js +10 -10
  71. package/internal/components/token-list/styles.scoped.css +24 -23
  72. package/internal/components/token-list/styles.selectors.js +10 -10
  73. package/internal/environment.js +2 -2
  74. package/internal/environment.json +2 -2
  75. package/internal/generated/styles/tokens.d.ts +27 -12
  76. package/internal/generated/styles/tokens.js +27 -12
  77. package/internal/generated/theming/index.cjs +229 -58
  78. package/internal/generated/theming/index.cjs.d.ts +225 -99
  79. package/internal/generated/theming/index.d.ts +225 -99
  80. package/internal/generated/theming/index.js +229 -58
  81. package/internal/manifest.json +1 -1
  82. package/key-value-pairs/styles.css.js +8 -8
  83. package/key-value-pairs/styles.scoped.css +12 -12
  84. package/key-value-pairs/styles.selectors.js +8 -8
  85. package/link/internal.js +1 -1
  86. package/link/internal.js.map +1 -1
  87. package/link/styles.css.js +21 -21
  88. package/link/styles.scoped.css +94 -84
  89. package/link/styles.selectors.js +21 -21
  90. package/live-region/internal.d.ts +5 -0
  91. package/live-region/internal.d.ts.map +1 -1
  92. package/live-region/internal.js +10 -2
  93. package/live-region/internal.js.map +1 -1
  94. package/package.json +2 -1
  95. package/pagination/index.d.ts.map +1 -1
  96. package/pagination/index.js +4 -1
  97. package/pagination/index.js.map +1 -1
  98. package/skeleton/index.d.ts +10 -0
  99. package/skeleton/index.d.ts.map +1 -0
  100. package/skeleton/index.js +21 -0
  101. package/skeleton/index.js.map +1 -0
  102. package/skeleton/interfaces.d.ts +36 -0
  103. package/skeleton/interfaces.d.ts.map +1 -0
  104. package/skeleton/interfaces.js +2 -0
  105. package/skeleton/interfaces.js.map +1 -0
  106. package/skeleton/internal.d.ts +14 -0
  107. package/skeleton/internal.d.ts.map +1 -0
  108. package/skeleton/internal.js +13 -0
  109. package/skeleton/internal.js.map +1 -0
  110. package/skeleton/styles.css.js +20 -0
  111. package/skeleton/styles.scoped.css +273 -0
  112. package/skeleton/styles.selectors.js +21 -0
  113. package/status-indicator/internal.js +1 -1
  114. package/status-indicator/internal.js.map +1 -1
  115. package/table/body-cell/td-element.js +1 -1
  116. package/table/body-cell/td-element.js.map +1 -1
  117. package/tag-editor/styles.css.js +3 -3
  118. package/tag-editor/styles.scoped.css +12 -11
  119. package/tag-editor/styles.selectors.js +3 -3
  120. package/test-utils/dom/drawer/index.d.ts +2 -0
  121. package/test-utils/dom/drawer/index.js +6 -0
  122. package/test-utils/dom/drawer/index.js.map +1 -1
  123. package/test-utils/dom/index.d.ts +28 -0
  124. package/test-utils/dom/index.js +20 -1
  125. package/test-utils/dom/index.js.map +1 -1
  126. package/test-utils/dom/skeleton/index.d.ts +4 -0
  127. package/test-utils/dom/skeleton/index.js +11 -0
  128. package/test-utils/dom/skeleton/index.js.map +1 -0
  129. package/test-utils/selectors/drawer/index.d.ts +2 -0
  130. package/test-utils/selectors/drawer/index.js +6 -0
  131. package/test-utils/selectors/drawer/index.js.map +1 -1
  132. package/test-utils/selectors/index.d.ts +18 -0
  133. package/test-utils/selectors/index.js +15 -1
  134. package/test-utils/selectors/index.js.map +1 -1
  135. package/test-utils/selectors/skeleton/index.d.ts +4 -0
  136. package/test-utils/selectors/skeleton/index.js +11 -0
  137. package/test-utils/selectors/skeleton/index.js.map +1 -0
  138. package/text-content/styles.css.js +1 -1
  139. package/text-content/styles.scoped.css +68 -66
  140. package/text-content/styles.selectors.js +1 -1
  141. package/tooltip/index.d.ts +0 -3
  142. package/tooltip/index.d.ts.map +1 -1
  143. package/tooltip/index.js +0 -3
  144. package/tooltip/index.js.map +1 -1
  145. package/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
  146. package/tutorial-panel/components/tutorial-detail-view/index.js +2 -1
  147. package/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
  148. package/tutorial-panel/components/tutorial-list/index.js +11 -12
  149. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  150. package/drawer/next.d.ts +0 -5
  151. package/drawer/next.d.ts.map +0 -1
  152. package/drawer/next.js +0 -38
  153. package/drawer/next.js.map +0 -1
@@ -7,7 +7,10 @@ import useBaseComponent from '../internal/hooks/use-base-component';
7
7
  import { applyDisplayName } from '../internal/utils/apply-display-name';
8
8
  import InternalPagination from './internal';
9
9
  const Pagination = React.forwardRef((props, ref) => {
10
- const baseComponentProps = useBaseComponent('Pagination', { props: { openEnd: props.openEnd } });
10
+ const baseComponentProps = useBaseComponent('Pagination', {
11
+ props: { openEnd: props.openEnd },
12
+ metadata: { hasJumpToPage: !!props.jumpToPage },
13
+ });
11
14
  return (React.createElement(InternalPagination, { ...props, ...baseComponentProps, ref: ref, ...getAnalyticsMetadataAttribute({
12
15
  component: {
13
16
  name: 'awsui.Pagination',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pagination/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAI5C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAuC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvF,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACjG,OAAO,CACL,oBAAC,kBAAkB,OACb,KAAK,KACL,kBAAkB,EACtB,GAAG,EAAE,GAAG,KACJ,6BAA6B,CAAC;YAChC,SAAS,EAAE;gBACT,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACvB,UAAU,EAAE;oBACV,OAAO,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE;oBAC7B,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,EAAE;oBACvC,gBAAgB,EAAE,GAAG,KAAK,CAAC,gBAAgB,EAAE;iBAC9C;aAC+C;SACnD,CAAC,GACF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAE3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataPaginationComponent } from './analytics-metadata/interfaces';\nimport { PaginationProps } from './interfaces';\nimport InternalPagination from './internal';\n\nexport { PaginationProps };\n\nconst Pagination = React.forwardRef<PaginationProps.Ref, PaginationProps>((props, ref) => {\n const baseComponentProps = useBaseComponent('Pagination', { props: { openEnd: props.openEnd } });\n return (\n <InternalPagination\n {...props}\n {...baseComponentProps}\n ref={ref}\n {...getAnalyticsMetadataAttribute({\n component: {\n name: 'awsui.Pagination',\n label: { root: 'self' },\n properties: {\n openEnd: `${!!props.openEnd}`,\n pagesCount: `${props.pagesCount || ''}`,\n currentPageIndex: `${props.currentPageIndex}`,\n },\n } as GeneratedAnalyticsMetadataPaginationComponent,\n })}\n />\n );\n});\n\napplyDisplayName(Pagination, 'Pagination');\n\nexport default Pagination;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pagination/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAI5C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAuC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvF,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,EAAE;QACxD,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;QACjC,QAAQ,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,EAAE;KAChD,CAAC,CAAC;IACH,OAAO,CACL,oBAAC,kBAAkB,OACb,KAAK,KACL,kBAAkB,EACtB,GAAG,EAAE,GAAG,KACJ,6BAA6B,CAAC;YAChC,SAAS,EAAE;gBACT,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACvB,UAAU,EAAE;oBACV,OAAO,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE;oBAC7B,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,EAAE;oBACvC,gBAAgB,EAAE,GAAG,KAAK,CAAC,gBAAgB,EAAE;iBAC9C;aAC+C;SACnD,CAAC,GACF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAE3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataPaginationComponent } from './analytics-metadata/interfaces';\nimport { PaginationProps } from './interfaces';\nimport InternalPagination from './internal';\n\nexport { PaginationProps };\n\nconst Pagination = React.forwardRef<PaginationProps.Ref, PaginationProps>((props, ref) => {\n const baseComponentProps = useBaseComponent('Pagination', {\n props: { openEnd: props.openEnd },\n metadata: { hasJumpToPage: !!props.jumpToPage },\n });\n return (\n <InternalPagination\n {...props}\n {...baseComponentProps}\n ref={ref}\n {...getAnalyticsMetadataAttribute({\n component: {\n name: 'awsui.Pagination',\n label: { root: 'self' },\n properties: {\n openEnd: `${!!props.openEnd}`,\n pagesCount: `${props.pagesCount || ''}`,\n currentPageIndex: `${props.currentPageIndex}`,\n },\n } as GeneratedAnalyticsMetadataPaginationComponent,\n })}\n />\n );\n});\n\napplyDisplayName(Pagination, 'Pagination');\n\nexport default Pagination;\n"]}
@@ -0,0 +1,10 @@
1
+ import { SkeletonProps } from './interfaces';
2
+ export { SkeletonProps };
3
+ export default function Skeleton({
4
+ variant,
5
+ display,
6
+ tagOverride,
7
+ height,
8
+ width,
9
+ ...restProps
10
+ }: SkeletonProps): JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skeleton/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,OAAmB,EACnB,OAAiB,EACjB,WAAmB,EACnB,MAAM,EACN,KAAK,EACL,GAAG,SAAS,EACb,EAAE,aAAa,eAqBf"}
@@ -0,0 +1,21 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ 'use client';
4
+ import React from 'react';
5
+ import useBaseComponent from '../internal/hooks/use-base-component';
6
+ import { applyDisplayName } from '../internal/utils/apply-display-name';
7
+ import InternalSkeleton from './internal';
8
+ export default function Skeleton({ variant = 'dynamic', display = 'block', tagOverride = 'div', height, width, ...restProps }) {
9
+ const baseComponentProps = useBaseComponent('Skeleton', {
10
+ props: {
11
+ variant,
12
+ display,
13
+ height,
14
+ width,
15
+ tagOverride,
16
+ },
17
+ });
18
+ return (React.createElement(InternalSkeleton, { variant: variant, display: display, height: height, width: width, tagOverride: tagOverride, ...restProps, ...baseComponentProps }));
19
+ }
20
+ applyDisplayName(Skeleton, 'Skeleton');
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/skeleton/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,gBAAgB,MAAM,YAAY,CAAC;AAI1C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,OAAO,EACjB,WAAW,GAAG,KAAK,EACnB,MAAM,EACN,KAAK,EACL,GAAG,SAAS,EACE;IACd,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,EAAE;QACtD,KAAK,EAAE;YACL,OAAO;YACP,OAAO;YACP,MAAM;YACN,KAAK;YACL,WAAW;SACZ;KACF,CAAC,CAAC;IACH,OAAO,CACL,oBAAC,gBAAgB,IACf,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,KACpB,SAAS,KACT,kBAAkB,GACtB,CACH,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { SkeletonProps } from './interfaces';\nimport InternalSkeleton from './internal';\n\nexport { SkeletonProps };\n\nexport default function Skeleton({\n variant = 'dynamic',\n display = 'block',\n tagOverride = 'div',\n height,\n width,\n ...restProps\n}: SkeletonProps) {\n const baseComponentProps = useBaseComponent('Skeleton', {\n props: {\n variant,\n display,\n height,\n width,\n tagOverride,\n },\n });\n return (\n <InternalSkeleton\n variant={variant}\n display={display}\n height={height}\n width={width}\n tagOverride={tagOverride}\n {...restProps}\n {...baseComponentProps}\n />\n );\n}\n\napplyDisplayName(Skeleton, 'Skeleton');\n"]}
@@ -0,0 +1,36 @@
1
+ import { BaseComponentProps } from '../internal/base-component';
2
+ export interface SkeletonProps extends BaseComponentProps {
3
+ /**
4
+ * Specifies the variant of the skeleton to match Box fontSize options.
5
+ * The default value, `dynamic`, matches skeleton height to the surrounding font size.
6
+ * * `text-body-s` - Skeleton with height matching body-s line-height.
7
+ * * `text-body-m` - Skeleton with height matching body-m line-height.
8
+ * * `text-heading-xs` - Skeleton with height matching heading-xs line-height.
9
+ * * `text-heading-s` - Skeleton with height matching heading-s line-height.
10
+ * * `text-heading-m` - Skeleton with height matching heading-m line-height.
11
+ * * `text-heading-l` - Skeleton with height matching heading-l line-height.
12
+ * * `text-heading-xl` - Skeleton with height matching heading-xl line-height.
13
+ * * `text-display-l` - Skeleton with height matching display-l line-height.
14
+ */
15
+ variant?: SkeletonProps.Variant;
16
+ /**
17
+ * Specifies the CSS `display` of the skeleton.
18
+ */
19
+ display?: 'block' | 'inline-block' | 'inline';
20
+ /**
21
+ * Overrides the default HTML tag used by the component.
22
+ */
23
+ tagOverride?: string;
24
+ /**
25
+ * Specifies the height of the skeleton. Accepts any valid CSS value (for example, `"100px"`, `"3em"`).
26
+ * By default the height is determined by the `variant`.
27
+ */
28
+ height?: string;
29
+ /**
30
+ * Specifies the width of the skeleton. Accepts any valid CSS value (for example, `"200px"`, `"100%"`).
31
+ */
32
+ width?: string;
33
+ }
34
+ export declare namespace SkeletonProps {
35
+ type Variant = 'dynamic' | 'text-body-s' | 'text-body-m' | 'text-heading-xs' | 'text-heading-s' | 'text-heading-m' | 'text-heading-l' | 'text-heading-xl' | 'text-display-l';
36
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/skeleton/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,QAAQ,CAAC;IAE9C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,aAAa,CAAC;IAC7B,KAAY,OAAO,GACf,SAAS,GACT,aAAa,GACb,aAAa,GACb,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,gBAAgB,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/skeleton/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface SkeletonProps extends BaseComponentProps {\n /**\n * Specifies the variant of the skeleton to match Box fontSize options.\n * The default value, `dynamic`, matches skeleton height to the surrounding font size.\n * * `text-body-s` - Skeleton with height matching body-s line-height.\n * * `text-body-m` - Skeleton with height matching body-m line-height.\n * * `text-heading-xs` - Skeleton with height matching heading-xs line-height.\n * * `text-heading-s` - Skeleton with height matching heading-s line-height.\n * * `text-heading-m` - Skeleton with height matching heading-m line-height.\n * * `text-heading-l` - Skeleton with height matching heading-l line-height.\n * * `text-heading-xl` - Skeleton with height matching heading-xl line-height.\n * * `text-display-l` - Skeleton with height matching display-l line-height.\n */\n variant?: SkeletonProps.Variant;\n\n /**\n * Specifies the CSS `display` of the skeleton.\n */\n display?: 'block' | 'inline-block' | 'inline';\n\n /**\n * Overrides the default HTML tag used by the component.\n */\n tagOverride?: string;\n\n /**\n * Specifies the height of the skeleton. Accepts any valid CSS value (for example, `\"100px\"`, `\"3em\"`).\n * By default the height is determined by the `variant`.\n */\n height?: string;\n\n /**\n * Specifies the width of the skeleton. Accepts any valid CSS value (for example, `\"200px\"`, `\"100%\"`).\n */\n width?: string;\n}\n\nexport namespace SkeletonProps {\n export type Variant =\n | 'dynamic'\n | 'text-body-s'\n | 'text-body-m'\n | 'text-heading-xs'\n | 'text-heading-s'\n | 'text-heading-m'\n | 'text-heading-l'\n | 'text-heading-xl'\n | 'text-display-l';\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
2
+ import { SomeRequired } from '../internal/types';
3
+ import { SkeletonProps } from './interfaces';
4
+ interface InternalSkeletonProps extends SomeRequired<SkeletonProps, 'variant' | 'tagOverride'>, InternalBaseComponentProps {}
5
+ export default function InternalSkeleton({
6
+ variant,
7
+ height,
8
+ width,
9
+ display,
10
+ tagOverride,
11
+ __internalRootRef,
12
+ ...props
13
+ }: InternalSkeletonProps): JSX.Element;
14
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/skeleton/internal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7C,UAAU,qBACR,SAAQ,YAAY,CAAC,aAAa,EAAE,SAAS,GAAG,aAAa,CAAC,EAC5D,0BAA0B;CAAG;AAEjC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,qBAAqB,eAqBvB"}
@@ -0,0 +1,13 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import React from 'react';
4
+ import clsx from 'clsx';
5
+ import { getBaseProps } from '../internal/base-component';
6
+ import styles from './styles.css.js';
7
+ export default function InternalSkeleton({ variant, height, width, display, tagOverride, __internalRootRef, ...props }) {
8
+ const baseProps = getBaseProps(props);
9
+ const Tag = tagOverride;
10
+ return (React.createElement(Tag, { ...baseProps, className: clsx(baseProps.className, styles.root, variant && styles[`variant-${variant}`], display && styles[`display-${display}`]), ref: __internalRootRef, style: width !== undefined ? { inlineSize: width } : {}, "aria-hidden": "true" },
11
+ React.createElement(Tag, { className: styles.inner, style: height !== undefined ? { blockSize: height } : {} })));
12
+ }
13
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/skeleton/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAMrC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EACP,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,GAAG,KAAK,EACc;IACtB,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAEtC,MAAM,GAAG,GAAG,WAAoB,CAAC;IAEjC,OAAO,CACL,oBAAC,GAAG,OACE,SAAS,EACb,SAAS,EAAE,IAAI,CACb,SAAS,CAAC,SAAS,EACnB,MAAM,CAAC,IAAI,EACX,OAAO,IAAI,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EACvC,OAAO,IAAI,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,CACxC,EACD,GAAG,EAAE,iBAAiB,EACtB,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,iBAC3C,MAAM;QAElB,oBAAC,GAAG,IAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,GAAI,CACtF,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 { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport { SkeletonProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface InternalSkeletonProps\n extends SomeRequired<SkeletonProps, 'variant' | 'tagOverride'>,\n InternalBaseComponentProps {}\n\nexport default function InternalSkeleton({\n variant,\n height,\n width,\n display,\n tagOverride,\n __internalRootRef,\n ...props\n}: InternalSkeletonProps) {\n const baseProps = getBaseProps(props);\n\n const Tag = tagOverride as 'div';\n\n return (\n <Tag\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n variant && styles[`variant-${variant}`],\n display && styles[`display-${display}`]\n )}\n ref={__internalRootRef}\n style={width !== undefined ? { inlineSize: width } : {}}\n aria-hidden=\"true\"\n >\n <Tag className={styles.inner} style={height !== undefined ? { blockSize: height } : {}} />\n </Tag>\n );\n}\n"]}
@@ -0,0 +1,20 @@
1
+
2
+ import './styles.scoped.css';
3
+ export default {
4
+ "root": "awsui_root_1qq5l_23px4_161",
5
+ "inner": "awsui_inner_1qq5l_23px4_164",
6
+ "skeleton-wave": "awsui_skeleton-wave_1qq5l_23px4_1",
7
+ "skeleton-wave-rtl": "awsui_skeleton-wave-rtl_1qq5l_23px4_1",
8
+ "display-block": "awsui_display-block_1qq5l_23px4_222",
9
+ "display-inline-block": "awsui_display-inline-block_1qq5l_23px4_226",
10
+ "display-inline": "awsui_display-inline_1qq5l_23px4_226",
11
+ "variant-text-body-s": "awsui_variant-text-body-s_1qq5l_23px4_235",
12
+ "variant-text-body-m": "awsui_variant-text-body-m_1qq5l_23px4_240",
13
+ "variant-text-heading-xs": "awsui_variant-text-heading-xs_1qq5l_23px4_245",
14
+ "variant-text-heading-s": "awsui_variant-text-heading-s_1qq5l_23px4_250",
15
+ "variant-text-heading-m": "awsui_variant-text-heading-m_1qq5l_23px4_255",
16
+ "variant-text-heading-l": "awsui_variant-text-heading-l_1qq5l_23px4_260",
17
+ "variant-text-heading-xl": "awsui_variant-text-heading-xl_1qq5l_23px4_265",
18
+ "variant-text-display-l": "awsui_variant-text-display-l_1qq5l_23px4_270"
19
+ };
20
+
@@ -0,0 +1,273 @@
1
+ /*
2
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ /*
6
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
+ SPDX-License-Identifier: Apache-2.0
8
+ */
9
+ /*
10
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
11
+ SPDX-License-Identifier: Apache-2.0
12
+ */
13
+ /*
14
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
15
+ SPDX-License-Identifier: Apache-2.0
16
+ */
17
+ /*
18
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
+ SPDX-License-Identifier: Apache-2.0
20
+ */
21
+ /*
22
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
23
+ SPDX-License-Identifier: Apache-2.0
24
+ */
25
+ /*
26
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
27
+ SPDX-License-Identifier: Apache-2.0
28
+ */
29
+ /*
30
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
31
+ SPDX-License-Identifier: Apache-2.0
32
+ */
33
+ /*
34
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
35
+ SPDX-License-Identifier: Apache-2.0
36
+ */
37
+ /*
38
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
39
+ SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ /*
42
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
43
+ SPDX-License-Identifier: Apache-2.0
44
+ */
45
+ /*
46
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
47
+ SPDX-License-Identifier: Apache-2.0
48
+ */
49
+ /*
50
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
51
+ SPDX-License-Identifier: Apache-2.0
52
+ */
53
+ /*
54
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
55
+ SPDX-License-Identifier: Apache-2.0
56
+ */
57
+ /*
58
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
59
+ SPDX-License-Identifier: Apache-2.0
60
+ */
61
+ /*
62
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
63
+ SPDX-License-Identifier: Apache-2.0
64
+ */
65
+ /*
66
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
67
+ SPDX-License-Identifier: Apache-2.0
68
+ */
69
+ /*
70
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
71
+ SPDX-License-Identifier: Apache-2.0
72
+ */
73
+ /*
74
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
75
+ SPDX-License-Identifier: Apache-2.0
76
+ */
77
+ /*
78
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
79
+ SPDX-License-Identifier: Apache-2.0
80
+ */
81
+ /*
82
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
83
+ SPDX-License-Identifier: Apache-2.0
84
+ */
85
+ /*
86
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
87
+ SPDX-License-Identifier: Apache-2.0
88
+ */
89
+ /*
90
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
+ SPDX-License-Identifier: Apache-2.0
92
+ */
93
+ /*
94
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
+ SPDX-License-Identifier: Apache-2.0
96
+ */
97
+ /*
98
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
99
+ SPDX-License-Identifier: Apache-2.0
100
+ */
101
+ /*
102
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
103
+ SPDX-License-Identifier: Apache-2.0
104
+ */
105
+ /*
106
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
107
+ SPDX-License-Identifier: Apache-2.0
108
+ */
109
+ /*
110
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
111
+ SPDX-License-Identifier: Apache-2.0
112
+ */
113
+ /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
114
+ /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
115
+ /*
116
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
117
+ SPDX-License-Identifier: Apache-2.0
118
+ */
119
+ /*
120
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
121
+ SPDX-License-Identifier: Apache-2.0
122
+ */
123
+ /*
124
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
125
+ SPDX-License-Identifier: Apache-2.0
126
+ */
127
+ /*
128
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
129
+ SPDX-License-Identifier: Apache-2.0
130
+ */
131
+ /*
132
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
133
+ SPDX-License-Identifier: Apache-2.0
134
+ */
135
+ /*
136
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
137
+ SPDX-License-Identifier: Apache-2.0
138
+ */
139
+ /*
140
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
141
+ SPDX-License-Identifier: Apache-2.0
142
+ */
143
+ /* Style used for links in slots/components that are text heavy, to help links stand out among
144
+ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
+ @keyframes awsui_skeleton-wave_1qq5l_23px4_1 {
146
+ 0% {
147
+ transform: translateX(-100%);
148
+ }
149
+ 100% {
150
+ transform: translateX(100%);
151
+ }
152
+ }
153
+ @keyframes awsui_skeleton-wave-rtl_1qq5l_23px4_1 {
154
+ 0% {
155
+ transform: translateX(100%);
156
+ }
157
+ 100% {
158
+ transform: translateX(-100%);
159
+ }
160
+ }
161
+ .awsui_root_1qq5l_23px4_161:not(#\9) {
162
+ inline-size: 100%;
163
+ }
164
+ .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9) {
165
+ block-size: 1em;
166
+ inline-size: 100%;
167
+ vertical-align: middle;
168
+ display: inline-block;
169
+ position: relative;
170
+ overflow: hidden;
171
+ background-color: var(--color-background-skeleton-sjxg4n, #ebebf0);
172
+ border-start-start-radius: var(--border-radius-skeleton-9lkvfi, 8px);
173
+ border-start-end-radius: var(--border-radius-skeleton-9lkvfi, 8px);
174
+ border-end-start-radius: var(--border-radius-skeleton-9lkvfi, 8px);
175
+ border-end-end-radius: var(--border-radius-skeleton-9lkvfi, 8px);
176
+ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
177
+ }
178
+ .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9)::after {
179
+ content: "";
180
+ position: absolute;
181
+ inset-block-start: 0;
182
+ inset-inline-end: 0;
183
+ inset-block-end: 0;
184
+ inset-inline-start: 0;
185
+ background: linear-gradient(90deg, transparent, var(--color-background-skeleton-wave-1dy97d, #f6f6f9), transparent);
186
+ animation: awsui_skeleton-wave_1qq5l_23px4_1 1.25s ease-in-out infinite;
187
+ }
188
+ @media (prefers-reduced-motion: reduce) {
189
+ .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9)::after {
190
+ animation: none;
191
+ transition: none;
192
+ }
193
+ }
194
+ .awsui-motion-disabled .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9)::after, .awsui-mode-entering .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9)::after {
195
+ animation: none;
196
+ transition: none;
197
+ }
198
+ .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9):dir(rtl)::after {
199
+ animation: awsui_skeleton-wave-rtl_1qq5l_23px4_1 1.25s ease-in-out infinite;
200
+ }
201
+ @media (prefers-reduced-motion: reduce) {
202
+ .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9):dir(rtl)::after {
203
+ animation: none;
204
+ transition: none;
205
+ }
206
+ }
207
+ .awsui-motion-disabled .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9):dir(rtl)::after, .awsui-mode-entering .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9):dir(rtl)::after {
208
+ animation: none;
209
+ transition: none;
210
+ }
211
+ @media (prefers-reduced-motion: reduce) {
212
+ .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9) {
213
+ animation: none;
214
+ transition: none;
215
+ }
216
+ }
217
+ .awsui-motion-disabled .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9), .awsui-mode-entering .awsui_root_1qq5l_23px4_161 > .awsui_inner_1qq5l_23px4_164:not(#\9) {
218
+ animation: none;
219
+ transition: none;
220
+ }
221
+
222
+ .awsui_display-block_1qq5l_23px4_222:not(#\9) {
223
+ display: block;
224
+ }
225
+
226
+ .awsui_display-inline-block_1qq5l_23px4_226:not(#\9) {
227
+ display: inline-block;
228
+ vertical-align: middle;
229
+ }
230
+
231
+ .awsui_display-inline_1qq5l_23px4_226:not(#\9) {
232
+ display: inline;
233
+ }
234
+
235
+ .awsui_variant-text-body-s_1qq5l_23px4_235:not(#\9) {
236
+ font-size: var(--font-size-body-s-smc8cv, 12px);
237
+ line-height: var(--line-height-body-s-nu5hx1, 16px);
238
+ }
239
+
240
+ .awsui_variant-text-body-m_1qq5l_23px4_240:not(#\9) {
241
+ font-size: var(--font-size-body-m-a7nh2n, 14px);
242
+ line-height: var(--line-height-body-m-2mh3ke, 20px);
243
+ }
244
+
245
+ .awsui_variant-text-heading-xs_1qq5l_23px4_245:not(#\9) {
246
+ font-size: var(--font-size-heading-xs-j8yzxv, 14px);
247
+ line-height: var(--line-height-heading-xs-q9j004, 18px);
248
+ }
249
+
250
+ .awsui_variant-text-heading-s_1qq5l_23px4_250:not(#\9) {
251
+ font-size: var(--font-size-heading-s-zp08en, 16px);
252
+ line-height: var(--line-height-heading-s-hmi4vc, 20px);
253
+ }
254
+
255
+ .awsui_variant-text-heading-m_1qq5l_23px4_255:not(#\9) {
256
+ font-size: var(--font-size-heading-m-170yiy, 18px);
257
+ line-height: var(--line-height-heading-m-uoaqdh, 22px);
258
+ }
259
+
260
+ .awsui_variant-text-heading-l_1qq5l_23px4_260:not(#\9) {
261
+ font-size: var(--font-size-heading-l-vnacx6, 20px);
262
+ line-height: var(--line-height-heading-l-mg5bx6, 24px);
263
+ }
264
+
265
+ .awsui_variant-text-heading-xl_1qq5l_23px4_265:not(#\9) {
266
+ font-size: var(--font-size-heading-xl-wvkbur, 24px);
267
+ line-height: var(--line-height-heading-xl-hko6p0, 30px);
268
+ }
269
+
270
+ .awsui_variant-text-display-l_1qq5l_23px4_270:not(#\9) {
271
+ font-size: var(--font-size-display-l-wa6woo, 42px);
272
+ line-height: var(--line-height-display-l-vwanzp, 48px);
273
+ }
@@ -0,0 +1,21 @@
1
+
2
+ // es-module interop with Babel and Typescript
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ module.exports.default = {
5
+ "root": "awsui_root_1qq5l_23px4_161",
6
+ "inner": "awsui_inner_1qq5l_23px4_164",
7
+ "skeleton-wave": "awsui_skeleton-wave_1qq5l_23px4_1",
8
+ "skeleton-wave-rtl": "awsui_skeleton-wave-rtl_1qq5l_23px4_1",
9
+ "display-block": "awsui_display-block_1qq5l_23px4_222",
10
+ "display-inline-block": "awsui_display-inline-block_1qq5l_23px4_226",
11
+ "display-inline": "awsui_display-inline_1qq5l_23px4_226",
12
+ "variant-text-body-s": "awsui_variant-text-body-s_1qq5l_23px4_235",
13
+ "variant-text-body-m": "awsui_variant-text-body-m_1qq5l_23px4_240",
14
+ "variant-text-heading-xs": "awsui_variant-text-heading-xs_1qq5l_23px4_245",
15
+ "variant-text-heading-s": "awsui_variant-text-heading-s_1qq5l_23px4_250",
16
+ "variant-text-heading-m": "awsui_variant-text-heading-m_1qq5l_23px4_255",
17
+ "variant-text-heading-l": "awsui_variant-text-heading-l_1qq5l_23px4_260",
18
+ "variant-text-heading-xl": "awsui_variant-text-heading-xl_1qq5l_23px4_265",
19
+ "variant-text-display-l": "awsui_variant-text-display-l_1qq5l_23px4_270"
20
+ };
21
+
@@ -33,6 +33,6 @@ export default function StatusIndicator({ type, children, iconAriaLabel, colorOv
33
33
  }, baseProps.className), ref: __internalRootRef },
34
34
  React.createElement("span", { className: clsx(styles.container, styles[`display-${__display}`], wrapText === false && styles['overflow-ellipsis'], __animate && styles['container-fade-in']) },
35
35
  React.createElement(InternalStatusIcon, { type: type, iconAriaLabel: iconAriaLabel, animate: __animate, display: __display, size: __size }),
36
- children)));
36
+ React.createElement("span", null, children))));
37
37
  }
38
38
  //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B,CAAC,EACjD,SAAS,IAAI,MAAM,CAAC,mBAAmB,CAAC,CACzC;YAED,oBAAC,kBAAkB,IACjB,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,MAAM,GACZ;YACD,QAAQ,CACJ,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 {children}\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;AAGxB,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D;;GAEG;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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"]}
@@ -33,7 +33,7 @@ export const TableTdElement = React.forwardRef(({ children, wrapLines, isRowHead
33
33
  React.createElement("div", { className: clsx(styles['body-cell-content'], wrapLines && styles['body-cell-wrap']) },
34
34
  children,
35
35
  counter ? (React.createElement("div", { className: styles['body-cell-counter'] },
36
- ' ',
36
+ React.createElement("span", null, " "),
37
37
  React.createElement("span", { className: testUtilStyles['body-cell-counter'] }, counter))) : null)));
38
38
  });
39
39
  function getLevelClassSuffix(level) {
@@ -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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C,CAAC,CACT,6BAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;gBACxC,GAAG;gBACJ,8BAAM,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,IAAG,OAAO,CAAQ,CAClE,CACP,CAAC,CAAC,CAAC,IAAI,CACJ,CACE,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 { useSingleTabStopNavigation } 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 { 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 testUtilStyles from '../test-classes/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 counter?: React.ReactNode;\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 counter,\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'])}>\n {children}\n {counter ? (\n <div className={styles['body-cell-counter']}>\n {' '}\n <span className={testUtilStyles['body-cell-counter']}>{counter}</span>\n </div>\n ) : null}\n </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,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,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,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AA4CrC,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAC5C,CACE,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,iBAAiB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AA2B,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;YACrF,QAAQ;YACR,OAAO,CAAC,CAAC,CAAC,CACT,6BAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;gBACzC,sCAAc;gBACd,8BAAM,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,IAAG,OAAO,CAAQ,CAClE,CACP,CAAC,CAAC,CAAC,IAAI,CACJ,CACE,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 { useSingleTabStopNavigation } 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 { 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 testUtilStyles from '../test-classes/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 counter?: React.ReactNode;\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 counter,\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'])}>\n {children}\n {counter ? (\n <div className={styles['body-cell-counter']}>\n <span> </span>\n <span className={testUtilStyles['body-cell-counter']}>{counter}</span>\n </div>\n ) : null}\n </div>\n </Element>\n );\n }\n);\n\nfunction getLevelClassSuffix(level: number) {\n return 0 <= level && level <= 9 ? level : 'next';\n}\n"]}
@@ -1,8 +1,8 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_brdst_17f7y_145",
5
- "loading": "awsui_loading_brdst_17f7y_149",
6
- "undo-button": "awsui_undo-button_brdst_17f7y_153"
4
+ "root": "awsui_root_brdst_15jru_145",
5
+ "loading": "awsui_loading_brdst_15jru_149",
6
+ "undo-button": "awsui_undo-button_brdst_15jru_153"
7
7
  };
8
8