@cloudscape-design/components-themeable 3.0.153 → 3.0.155

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 (54) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/container/styles.scss +11 -7
  3. package/lib/internal/scss/table/body-cell/styles.scss +47 -4
  4. package/lib/internal/scss/table/header-cell/styles.scss +35 -3
  5. package/lib/internal/scss/table/selection-control/styles.scss +0 -2
  6. package/lib/internal/scss/table/styles.scss +17 -11
  7. package/lib/internal/template/container/interfaces.d.ts +8 -0
  8. package/lib/internal/template/container/interfaces.d.ts.map +1 -1
  9. package/lib/internal/template/container/interfaces.js.map +1 -1
  10. package/lib/internal/template/container/internal.d.ts +1 -1
  11. package/lib/internal/template/container/internal.d.ts.map +1 -1
  12. package/lib/internal/template/container/internal.js +2 -2
  13. package/lib/internal/template/container/internal.js.map +1 -1
  14. package/lib/internal/template/container/styles.css.js +17 -16
  15. package/lib/internal/template/container/styles.scoped.css +34 -33
  16. package/lib/internal/template/container/styles.selectors.js +17 -16
  17. package/lib/internal/template/internal/base-component/styles.scoped.css +3 -4
  18. package/lib/internal/template/internal/environment.js +1 -1
  19. package/lib/internal/template/internal/generated/styles/tokens.js +1 -1
  20. package/lib/internal/template/internal/generated/theming/index.cjs +13 -6
  21. package/lib/internal/template/internal/generated/theming/index.js +13 -6
  22. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  23. package/lib/internal/template/mixed-line-bar-chart/chart-container.js +13 -8
  24. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  25. package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
  26. package/lib/internal/template/pie-chart/pie-chart.js +11 -4
  27. package/lib/internal/template/pie-chart/pie-chart.js.map +1 -1
  28. package/lib/internal/template/table/body-cell/index.d.ts +3 -1
  29. package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
  30. package/lib/internal/template/table/body-cell/index.js +4 -2
  31. package/lib/internal/template/table/body-cell/index.js.map +1 -1
  32. package/lib/internal/template/table/body-cell/styles.css.js +12 -8
  33. package/lib/internal/template/table/body-cell/styles.scoped.css +56 -20
  34. package/lib/internal/template/table/body-cell/styles.selectors.js +12 -8
  35. package/lib/internal/template/table/header-cell/styles.css.js +18 -16
  36. package/lib/internal/template/table/header-cell/styles.scoped.css +54 -27
  37. package/lib/internal/template/table/header-cell/styles.selectors.js +18 -16
  38. package/lib/internal/template/table/internal.d.ts.map +1 -1
  39. package/lib/internal/template/table/internal.js +11 -9
  40. package/lib/internal/template/table/internal.js.map +1 -1
  41. package/lib/internal/template/table/selection-control/styles.css.js +3 -3
  42. package/lib/internal/template/table/selection-control/styles.scoped.css +3 -5
  43. package/lib/internal/template/table/selection-control/styles.selectors.js +3 -3
  44. package/lib/internal/template/table/styles.css.js +33 -34
  45. package/lib/internal/template/table/styles.scoped.css +54 -49
  46. package/lib/internal/template/table/styles.selectors.js +33 -34
  47. package/lib/internal/template/table/thead.d.ts +1 -0
  48. package/lib/internal/template/table/thead.d.ts.map +1 -1
  49. package/lib/internal/template/table/thead.js +5 -3
  50. package/lib/internal/template/table/thead.js.map +1 -1
  51. package/lib/internal/template/table/use-sticky-header.d.ts.map +1 -1
  52. package/lib/internal/template/table/use-sticky-header.js +0 -13
  53. package/lib/internal/template/table/use-sticky-header.js.map +1 -1
  54. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/table/body-cell/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,WAAW,GACZ,EAAE,kBAAkB,eAmBpB;AAED,UAAU,yBAAyB,CAAC,QAAQ,CAAE,SAAQ,kBAAkB;IACtE,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,yBAAyB,CAAC,QAAQ,CAAC,eAE5G"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/table/body-cell/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,EACZ,SAAS,GACV,EAAE,kBAAkB,eAyBpB;AAED,UAAU,yBAAyB,CAAC,QAAQ,CAAE,SAAQ,kBAAkB;IACtE,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,yBAAyB,CAAC,QAAQ,CAAC,eAE5G"}
@@ -4,9 +4,11 @@ import { __assign, __rest } from "tslib";
4
4
  import clsx from 'clsx';
5
5
  import styles from './styles.css.js';
6
6
  import React from 'react';
7
+ import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
7
8
  export function TableBodyCell(_a) {
8
- var className = _a.className, style = _a.style, children = _a.children, wrapLines = _a.wrapLines, isFirstRow = _a.isFirstRow, isLastRow = _a.isLastRow, isSelected = _a.isSelected, isNextSelected = _a.isNextSelected, isPrevSelected = _a.isPrevSelected, isEvenRow = _a.isEvenRow, stripedRows = _a.stripedRows;
9
- return (React.createElement("td", { style: style, className: clsx(className, styles['body-cell'], wrapLines && styles['body-cell-wrap'], isFirstRow && styles['body-cell-first-row'], isLastRow && styles['body-cell-last-row'], isSelected && styles['body-cell-selected'], isNextSelected && styles['body-cell-next-selected'], isPrevSelected && styles['body-cell-prev-selected'], !isEvenRow && stripedRows && styles['body-cell-shaded']) }, children));
9
+ var className = _a.className, style = _a.style, children = _a.children, wrapLines = _a.wrapLines, isFirstRow = _a.isFirstRow, isLastRow = _a.isLastRow, isSelected = _a.isSelected, isNextSelected = _a.isNextSelected, isPrevSelected = _a.isPrevSelected, isEvenRow = _a.isEvenRow, stripedRows = _a.stripedRows, hasSelection = _a.hasSelection, hasFooter = _a.hasFooter;
10
+ var isVisualRefresh = useVisualRefresh();
11
+ return (React.createElement("td", { style: style, className: clsx(className, styles['body-cell'], wrapLines && styles['body-cell-wrap'], isFirstRow && styles['body-cell-first-row'], isLastRow && styles['body-cell-last-row'], isSelected && styles['body-cell-selected'], isNextSelected && styles['body-cell-next-selected'], isPrevSelected && styles['body-cell-prev-selected'], !isEvenRow && stripedRows && styles['body-cell-shaded'], stripedRows && styles['has-striped-rows'], isVisualRefresh && styles['is-visual-refresh'], hasSelection && styles['has-selection'], hasFooter && styles['has-footer']) }, children));
10
12
  }
11
13
  export function TableBodyCellContent(_a) {
12
14
  var item = _a.item, column = _a.column, rest = __rest(_a, ["item", "column"]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/table/body-cell/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,MAAM,UAAU,aAAa,CAAC,EAYT;QAXnB,SAAS,eAAA,EACT,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,cAAc,oBAAA,EACd,cAAc,oBAAA,EACd,SAAS,eAAA,EACT,WAAW,iBAAA;IAEX,OAAO,CACL,4BACE,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAI,CACb,SAAS,EACT,MAAM,CAAC,WAAW,CAAC,EACnB,SAAS,IAAI,MAAM,CAAC,gBAAgB,CAAC,EACrC,UAAU,IAAI,MAAM,CAAC,qBAAqB,CAAC,EAC3C,SAAS,IAAI,MAAM,CAAC,oBAAoB,CAAC,EACzC,UAAU,IAAI,MAAM,CAAC,oBAAoB,CAAC,EAC1C,cAAc,IAAI,MAAM,CAAC,yBAAyB,CAAC,EACnD,cAAc,IAAI,MAAM,CAAC,yBAAyB,CAAC,EACnD,CAAC,SAAS,IAAI,WAAW,IAAI,MAAM,CAAC,kBAAkB,CAAC,CACxD,IAEA,QAAQ,CACN,CACN,CAAC;AACJ,CAAC;AAOD,MAAM,UAAU,oBAAoB,CAAW,EAA8D;IAA5D,IAAA,IAAI,UAAA,EAAE,MAAM,YAAA,EAAK,IAAI,cAAvB,kBAAyB,CAAF;IACpE,OAAO,oBAAC,aAAa,eAAK,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAiB,CAAC;AACtE,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport React from 'react';\nimport { TableProps } from '../interfaces';\n\ninterface TableBodyCellProps {\n className?: string;\n style?: React.CSSProperties;\n wrapLines: boolean | undefined;\n isFirstRow: boolean;\n isLastRow: boolean;\n isEvenRow?: boolean;\n stripedRows?: boolean;\n isSelected: boolean;\n isNextSelected: boolean;\n isPrevSelected: boolean;\n children?: React.ReactNode;\n}\n\nexport function TableBodyCell({\n className,\n style,\n children,\n wrapLines,\n isFirstRow,\n isLastRow,\n isSelected,\n isNextSelected,\n isPrevSelected,\n isEvenRow,\n stripedRows,\n}: TableBodyCellProps) {\n return (\n <td\n style={style}\n className={clsx(\n className,\n styles['body-cell'],\n wrapLines && styles['body-cell-wrap'],\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 )}\n >\n {children}\n </td>\n );\n}\n\ninterface TableBodyCellContentProps<ItemType> extends TableBodyCellProps {\n column: TableProps.ColumnDefinition<ItemType>;\n item: ItemType;\n}\n\nexport function TableBodyCellContent<ItemType>({ item, column, ...rest }: TableBodyCellContentProps<ItemType>) {\n return <TableBodyCell {...rest}>{column.cell(item)}</TableBodyCell>;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/table/body-cell/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAkBxE,MAAM,UAAU,aAAa,CAAC,EAcT;QAbnB,SAAS,eAAA,EACT,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,cAAc,oBAAA,EACd,cAAc,oBAAA,EACd,SAAS,eAAA,EACT,WAAW,iBAAA,EACX,YAAY,kBAAA,EACZ,SAAS,eAAA;IAET,IAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAE3C,OAAO,CACL,4BACE,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAI,CACb,SAAS,EACT,MAAM,CAAC,WAAW,CAAC,EACnB,SAAS,IAAI,MAAM,CAAC,gBAAgB,CAAC,EACrC,UAAU,IAAI,MAAM,CAAC,qBAAqB,CAAC,EAC3C,SAAS,IAAI,MAAM,CAAC,oBAAoB,CAAC,EACzC,UAAU,IAAI,MAAM,CAAC,oBAAoB,CAAC,EAC1C,cAAc,IAAI,MAAM,CAAC,yBAAyB,CAAC,EACnD,cAAc,IAAI,MAAM,CAAC,yBAAyB,CAAC,EACnD,CAAC,SAAS,IAAI,WAAW,IAAI,MAAM,CAAC,kBAAkB,CAAC,EACvD,WAAW,IAAI,MAAM,CAAC,kBAAkB,CAAC,EACzC,eAAe,IAAI,MAAM,CAAC,mBAAmB,CAAC,EAC9C,YAAY,IAAI,MAAM,CAAC,eAAe,CAAC,EACvC,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,CAClC,IAEA,QAAQ,CACN,CACN,CAAC;AACJ,CAAC;AAOD,MAAM,UAAU,oBAAoB,CAAW,EAA8D;IAA5D,IAAA,IAAI,UAAA,EAAE,MAAM,YAAA,EAAK,IAAI,cAAvB,kBAAyB,CAAF;IACpE,OAAO,oBAAC,aAAa,eAAK,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAiB,CAAC;AACtE,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport React from 'react';\nimport { TableProps } from '../interfaces';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\n\ninterface TableBodyCellProps {\n className?: string;\n style?: React.CSSProperties;\n wrapLines: boolean | undefined;\n isFirstRow: boolean;\n isLastRow: boolean;\n isEvenRow?: boolean;\n stripedRows?: boolean;\n isSelected: boolean;\n isNextSelected: boolean;\n isPrevSelected: boolean;\n children?: React.ReactNode;\n hasSelection?: boolean;\n hasFooter?: boolean;\n}\n\nexport function TableBodyCell({\n className,\n style,\n children,\n wrapLines,\n isFirstRow,\n isLastRow,\n isSelected,\n isNextSelected,\n isPrevSelected,\n isEvenRow,\n stripedRows,\n hasSelection,\n hasFooter,\n}: TableBodyCellProps) {\n const isVisualRefresh = useVisualRefresh();\n\n return (\n <td\n style={style}\n className={clsx(\n className,\n styles['body-cell'],\n wrapLines && styles['body-cell-wrap'],\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 hasSelection && styles['has-selection'],\n hasFooter && styles['has-footer']\n )}\n >\n {children}\n </td>\n );\n}\n\ninterface TableBodyCellContentProps<ItemType> extends TableBodyCellProps {\n column: TableProps.ColumnDefinition<ItemType>;\n item: ItemType;\n}\n\nexport function TableBodyCellContent<ItemType>({ item, column, ...rest }: TableBodyCellContentProps<ItemType>) {\n return <TableBodyCell {...rest}>{column.cell(item)}</TableBodyCell>;\n}\n"]}
@@ -1,13 +1,17 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "body-cell": "awsui_body-cell_c6tup_1cfe8_9",
5
- "body-cell-wrap": "awsui_body-cell-wrap_c6tup_1cfe8_18",
6
- "body-cell-first-row": "awsui_body-cell-first-row_c6tup_1cfe8_31",
7
- "body-cell-last-row": "awsui_body-cell-last-row_c6tup_1cfe8_34",
8
- "body-cell-shaded": "awsui_body-cell-shaded_c6tup_1cfe8_37",
9
- "body-cell-selected": "awsui_body-cell-selected_c6tup_1cfe8_40",
10
- "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_1cfe8_59",
11
- "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_1cfe8_63"
4
+ "body-cell": "awsui_body-cell_c6tup_nv0er_9",
5
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_nv0er_18",
6
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_nv0er_30",
7
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_nv0er_33",
8
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_nv0er_33",
9
+ "has-footer": "awsui_has-footer_c6tup_nv0er_33",
10
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_nv0er_43",
11
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_nv0er_65",
12
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_nv0er_69",
13
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_nv0er_98",
14
+ "has-selection": "awsui_has-selection_c6tup_nv0er_114",
15
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_nv0er_117"
12
16
  };
13
17
 
@@ -6,7 +6,7 @@
6
6
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
7
  SPDX-License-Identifier: Apache-2.0
8
8
  */
9
- .awsui_body-cell_c6tup_1cfe8_9:not(#\9) {
9
+ .awsui_body-cell_c6tup_nv0er_9:not(#\9) {
10
10
  box-sizing: border-box;
11
11
  padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
12
12
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
@@ -15,72 +15,108 @@
15
15
  word-wrap: break-word;
16
16
  border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
17
17
  }
18
- .awsui_body-cell_c6tup_1cfe8_9:not(#\9):not(.awsui_body-cell-wrap_c6tup_1cfe8_18) {
18
+ .awsui_body-cell_c6tup_nv0er_9:not(#\9):not(.awsui_body-cell-wrap_c6tup_nv0er_18) {
19
19
  white-space: nowrap;
20
20
  overflow: hidden;
21
21
  text-overflow: ellipsis;
22
22
  }
23
- .awsui_body-cell_c6tup_1cfe8_9:not(#\9):first-child {
23
+ .awsui_body-cell_c6tup_nv0er_9:not(#\9):first-child {
24
24
  border-left: var(--border-item-width-yvnixs, 1px) solid transparent;
25
- padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
26
25
  }
27
- .awsui_body-cell_c6tup_1cfe8_9:not(#\9):last-child {
26
+ .awsui_body-cell_c6tup_nv0er_9:not(#\9):last-child {
28
27
  border-right: var(--border-item-width-yvnixs, 1px) solid transparent;
29
28
  padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
30
29
  }
31
- .awsui_body-cell-first-row_c6tup_1cfe8_31:not(#\9) {
30
+ .awsui_body-cell-first-row_c6tup_nv0er_30:not(#\9) {
32
31
  border-top: var(--border-item-width-yvnixs, 1px) solid transparent;
33
32
  }
34
- .awsui_body-cell-last-row_c6tup_1cfe8_34:not(#\9) {
33
+ .awsui_body-cell-last-row_c6tup_nv0er_33:not(#\9):not(.awsui_body-cell-selected_c6tup_nv0er_33):not(.awsui_has-footer_c6tup_nv0er_33) {
35
34
  border-bottom: var(--border-item-width-yvnixs, 1px) solid transparent;
36
35
  }
37
- .awsui_body-cell-shaded_c6tup_1cfe8_37:not(#\9) {
36
+ .awsui_body-cell-last-row_c6tup_nv0er_33:not(#\9):not(.awsui_body-cell-selected_c6tup_nv0er_33).awsui_has-footer_c6tup_nv0er_33 {
37
+ /*
38
+ Add a bottom border to the body cells of the last row as a separator between the
39
+ table and the footer
40
+ */
41
+ border-bottom: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
42
+ }
43
+ .awsui_body-cell-shaded_c6tup_nv0er_43:not(#\9) {
38
44
  background: var(--color-background-cell-shaded-y6pwcp, #f2f3f3);
39
45
  }
40
- .awsui_body-cell-selected_c6tup_1cfe8_40:not(#\9) {
46
+ .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9) {
41
47
  background-color: var(--color-background-item-selected-fva7ca, #f1faff);
42
48
  border-top: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
43
49
  border-bottom: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
44
50
  padding-bottom: var(--space-scaled-xs-6859qs, 8px);
45
51
  }
46
- .awsui_body-cell-selected_c6tup_1cfe8_40:not(#\9):first-child {
52
+ .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):first-child {
47
53
  border-left: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
48
54
  border-radius: var(--border-radius-item-wjpc1f, 0px) 0 0 var(--border-radius-item-wjpc1f, 0px);
49
55
  }
50
- .awsui_body-cell-selected_c6tup_1cfe8_40:not(#\9):last-child {
56
+ .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):last-child {
51
57
  border-right: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
52
58
  border-radius: 0 var(--border-radius-item-wjpc1f, 0px) var(--border-radius-item-wjpc1f, 0px) 0;
53
59
  }
54
- .awsui_body-cell-selected_c6tup_1cfe8_40:not(#\9):not(:first-child) {
60
+ .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):not(:first-child) {
55
61
  padding-top: calc(
56
62
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
57
63
  );
58
64
  }
59
- .awsui_body-cell_c6tup_1cfe8_9:not(#\9):not(.awsui_body-cell-selected_c6tup_1cfe8_40).awsui_body-cell-next-selected_c6tup_1cfe8_59 {
65
+ .awsui_body-cell_c6tup_nv0er_9:not(#\9):not(.awsui_body-cell-selected_c6tup_nv0er_33).awsui_body-cell-next-selected_c6tup_nv0er_65 {
60
66
  border-bottom: 0;
61
67
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
62
68
  }
63
- .awsui_body-cell-selected_c6tup_1cfe8_40.awsui_body-cell-prev-selected_c6tup_1cfe8_63:not(#\9) {
69
+ .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-prev-selected_c6tup_nv0er_69:not(#\9) {
64
70
  padding-top: calc(
65
71
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
66
72
  );
67
73
  border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-wtgwev, transparent);
68
74
  }
69
- .awsui_body-cell-selected_c6tup_1cfe8_40.awsui_body-cell-next-selected_c6tup_1cfe8_59:not(#\9) {
75
+ .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-next-selected_c6tup_nv0er_65:not(#\9) {
70
76
  border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
71
77
  }
72
- .awsui_body-cell-selected_c6tup_1cfe8_40.awsui_body-cell-next-selected_c6tup_1cfe8_59:not(#\9):first-child {
78
+ .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-next-selected_c6tup_nv0er_65:not(#\9):first-child {
73
79
  border-bottom-left-radius: 0;
74
80
  }
75
- .awsui_body-cell-selected_c6tup_1cfe8_40.awsui_body-cell-next-selected_c6tup_1cfe8_59:not(#\9):last-child {
81
+ .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-next-selected_c6tup_nv0er_65:not(#\9):last-child {
76
82
  border-bottom-right-radius: 0;
77
83
  }
78
- .awsui_body-cell-selected_c6tup_1cfe8_40.awsui_body-cell-prev-selected_c6tup_1cfe8_63:not(#\9):first-child {
84
+ .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-prev-selected_c6tup_nv0er_69:not(#\9):first-child {
79
85
  border-top-left-radius: 0;
80
86
  }
81
- .awsui_body-cell-selected_c6tup_1cfe8_40.awsui_body-cell-prev-selected_c6tup_1cfe8_63:not(#\9):last-child {
87
+ .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-prev-selected_c6tup_nv0er_69:not(#\9):last-child {
82
88
  border-top-right-radius: 0;
83
89
  }
84
- .awsui_body-cell-selected_c6tup_1cfe8_40:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_1cfe8_63) {
90
+ .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_nv0er_69) {
85
91
  padding-top: var(--space-scaled-xs-6859qs, 8px);
92
+ }
93
+
94
+ /*
95
+ In Visual Refresh the first cell of each row should align with the
96
+ left edge of the table as closely as possible.
97
+ */
98
+ .awsui_body-cell_c6tup_nv0er_9:not(#\9):not(.awsui_is-visual-refresh_c6tup_nv0er_98):first-child {
99
+ padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
100
+ }
101
+
102
+ .awsui_body-cell_c6tup_nv0er_9.awsui_is-visual-refresh_c6tup_nv0er_98:not(#\9) {
103
+ /*
104
+ Remove the placeholder border if the row is not selectable.
105
+ Rows that are not selectable will reserve the horizontal space
106
+ that the placeholder border would consume.
107
+ */
108
+ /*
109
+ Striped rows requires additional left padding because the
110
+ shaded background makes the child content appear too close
111
+ to the table edge.
112
+ */
113
+ }
114
+ .awsui_body-cell_c6tup_nv0er_9.awsui_is-visual-refresh_c6tup_nv0er_98:not(#\9):first-child:not(.awsui_has-selection_c6tup_nv0er_114) {
115
+ border-left: none;
116
+ }
117
+ .awsui_body-cell_c6tup_nv0er_9.awsui_is-visual-refresh_c6tup_nv0er_98:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_nv0er_117) {
118
+ padding-left: var(--space-xxxs-k2w98v, 2px);
119
+ }
120
+ .awsui_body-cell_c6tup_nv0er_9.awsui_is-visual-refresh_c6tup_nv0er_98:not(#\9):first-child.awsui_has-striped-rows_c6tup_nv0er_117 {
121
+ padding-left: var(--space-xxs-ynfts5, 4px);
86
122
  }
@@ -2,13 +2,17 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "body-cell": "awsui_body-cell_c6tup_1cfe8_9",
6
- "body-cell-wrap": "awsui_body-cell-wrap_c6tup_1cfe8_18",
7
- "body-cell-first-row": "awsui_body-cell-first-row_c6tup_1cfe8_31",
8
- "body-cell-last-row": "awsui_body-cell-last-row_c6tup_1cfe8_34",
9
- "body-cell-shaded": "awsui_body-cell-shaded_c6tup_1cfe8_37",
10
- "body-cell-selected": "awsui_body-cell-selected_c6tup_1cfe8_40",
11
- "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_1cfe8_59",
12
- "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_1cfe8_63"
5
+ "body-cell": "awsui_body-cell_c6tup_nv0er_9",
6
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_nv0er_18",
7
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_nv0er_30",
8
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_nv0er_33",
9
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_nv0er_33",
10
+ "has-footer": "awsui_has-footer_c6tup_nv0er_33",
11
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_nv0er_43",
12
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_nv0er_65",
13
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_nv0er_69",
14
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_nv0er_98",
15
+ "has-selection": "awsui_has-selection_c6tup_nv0er_114",
16
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_nv0er_117"
13
17
  };
14
18
 
@@ -1,21 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "header-cell": "awsui_header-cell_1spae_16xmx_93",
5
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_16xmx_103",
6
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_16xmx_106",
7
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_16xmx_106",
8
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_16xmx_109",
9
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_16xmx_115",
10
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_16xmx_127",
11
- "sorting-icon": "awsui_sorting-icon_1spae_16xmx_131",
12
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_16xmx_138",
13
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_16xmx_138",
14
- "header-cell-content": "awsui_header-cell-content_1spae_16xmx_138",
15
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_16xmx_171",
16
- "header-cell-text": "awsui_header-cell-text_1spae_16xmx_200",
17
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_16xmx_200",
18
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_16xmx_206",
19
- "header-cell-descending": "awsui_header-cell-descending_1spae_16xmx_207"
4
+ "header-cell": "awsui_header-cell_1spae_x8odi_93",
5
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_x8odi_103",
6
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_x8odi_106",
7
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_x8odi_106",
8
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_x8odi_109",
9
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_x8odi_112",
10
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_x8odi_124",
11
+ "sorting-icon": "awsui_sorting-icon_1spae_x8odi_128",
12
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_x8odi_135",
13
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_x8odi_135",
14
+ "header-cell-content": "awsui_header-cell-content_1spae_x8odi_135",
15
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_x8odi_168",
16
+ "header-cell-text": "awsui_header-cell-text_1spae_x8odi_197",
17
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_x8odi_197",
18
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_x8odi_203",
19
+ "header-cell-descending": "awsui_header-cell-descending_1spae_x8odi_204",
20
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_x8odi_214",
21
+ "has-striped-rows": "awsui_has-striped-rows_1spae_x8odi_225"
20
22
  };
21
23
 
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_header-cell_1spae_16xmx_93:not(#\9) {
93
+ .awsui_header-cell_1spae_x8odi_93:not(#\9) {
94
94
  position: relative;
95
95
  text-align: left;
96
96
  box-sizing: border-box;
@@ -100,22 +100,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
100
100
  font-weight: var(--font-heading-s-weight-1ygwuy, 700);
101
101
  padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-scaled-xs-6859qs, 8px);
102
102
  }
103
- .awsui_header-cell-sticky_1spae_16xmx_103:not(#\9) {
103
+ .awsui_header-cell-sticky_1spae_x8odi_103:not(#\9) {
104
104
  border-bottom: var(--border-table-sticky-width-52djt5, 0px) solid var(--color-border-divider-default-k96bks, #eaeded);
105
105
  }
106
- .awsui_header-cell-stuck_1spae_16xmx_106:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_16xmx_106) {
106
+ .awsui_header-cell-stuck_1spae_x8odi_106:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_x8odi_106) {
107
107
  border-bottom-color: transparent;
108
108
  }
109
- .awsui_header-cell-variant-full-page_1spae_16xmx_106.awsui_header-cell-hidden_1spae_16xmx_109:not(#\9) {
109
+ .awsui_header-cell-variant-full-page_1spae_x8odi_106.awsui_header-cell-hidden_1spae_x8odi_109:not(#\9) {
110
110
  border-bottom-color: transparent;
111
111
  }
112
- .awsui_header-cell_1spae_16xmx_93:not(#\9):first-child {
113
- padding-left: var(--space-xs-rsr2qu, 8px);
114
- }
115
- .awsui_header-cell_1spae_16xmx_93:not(#\9):last-child, .awsui_header-cell_1spae_16xmx_93.awsui_header-cell-sortable_1spae_16xmx_115:not(#\9) {
112
+ .awsui_header-cell_1spae_x8odi_93:not(#\9):last-child, .awsui_header-cell_1spae_x8odi_93.awsui_header-cell-sortable_1spae_x8odi_112:not(#\9) {
116
113
  padding-right: var(--space-xs-rsr2qu, 8px);
117
114
  }
118
- .awsui_header-cell_1spae_16xmx_93:not(#\9):not(:last-child):before {
115
+ .awsui_header-cell_1spae_x8odi_93:not(#\9):not(:last-child):before {
119
116
  content: "";
120
117
  position: absolute;
121
118
  right: 0;
@@ -124,40 +121,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
124
121
  border-left: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
125
122
  box-sizing: border-box;
126
123
  }
127
- .awsui_header-cell-resizable_1spae_16xmx_127:not(#\9):not(:last-child):before {
124
+ .awsui_header-cell-resizable_1spae_x8odi_124:not(#\9):not(:last-child):before {
128
125
  border-left-color: var(--color-border-divider-interactive-default-mrpwro, #687078);
129
126
  }
130
127
 
131
- .awsui_sorting-icon_1spae_16xmx_131:not(#\9) {
128
+ .awsui_sorting-icon_1spae_x8odi_128:not(#\9) {
132
129
  position: absolute;
133
130
  top: var(--space-scaled-xxs-95dhkm, 4px);
134
131
  right: var(--space-xxs-ynfts5, 4px);
135
132
  color: var(--color-text-column-sorting-icon-u1a3xj, #687078);
136
133
  }
137
134
 
138
- .awsui_header-cell-disabled_1spae_16xmx_138.awsui_header-cell-sorted_1spae_16xmx_138 > .awsui_header-cell-content_1spae_16xmx_138 > .awsui_sorting-icon_1spae_16xmx_131:not(#\9) {
135
+ .awsui_header-cell-disabled_1spae_x8odi_135.awsui_header-cell-sorted_1spae_x8odi_135 > .awsui_header-cell-content_1spae_x8odi_135 > .awsui_sorting-icon_1spae_x8odi_128:not(#\9) {
139
136
  color: var(--color-text-interactive-disabled-jcikk2, #aab7b8);
140
137
  }
141
138
 
142
- .awsui_header-cell-content_1spae_16xmx_138:not(#\9) {
139
+ .awsui_header-cell-content_1spae_x8odi_135:not(#\9) {
143
140
  position: relative;
144
141
  padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-s-hv8c1d, 12px);
145
142
  }
146
- .awsui_header-cell-sortable_1spae_16xmx_115 > .awsui_header-cell-content_1spae_16xmx_138:not(#\9) {
143
+ .awsui_header-cell-sortable_1spae_x8odi_112 > .awsui_header-cell-content_1spae_x8odi_135:not(#\9) {
147
144
  padding-right: calc(var(--space-xl-a39hup, 24px) + var(--space-xxs-ynfts5, 4px));
148
145
  }
149
- .awsui_header-cell-content_1spae_16xmx_138:not(#\9):focus {
146
+ .awsui_header-cell-content_1spae_x8odi_135:not(#\9):focus {
150
147
  outline: none;
151
148
  text-decoration: none;
152
149
  }
153
- .awsui_header-cell-content_1spae_16xmx_138[data-awsui-focus-visible=true]:not(#\9):focus {
150
+ .awsui_header-cell-content_1spae_x8odi_135[data-awsui-focus-visible=true]:not(#\9):focus {
154
151
  position: relative;
155
152
  }
156
- .awsui_header-cell-content_1spae_16xmx_138[data-awsui-focus-visible=true]:not(#\9):focus {
153
+ .awsui_header-cell-content_1spae_x8odi_135[data-awsui-focus-visible=true]:not(#\9):focus {
157
154
  outline: 2px dotted transparent;
158
155
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-uqywlq, 0px) - 1px);
159
156
  }
160
- .awsui_header-cell-content_1spae_16xmx_138[data-awsui-focus-visible=true]:not(#\9):focus::before {
157
+ .awsui_header-cell-content_1spae_x8odi_135[data-awsui-focus-visible=true]:not(#\9):focus::before {
161
158
  content: " ";
162
159
  display: block;
163
160
  position: absolute;
@@ -168,14 +165,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
168
165
  border-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
169
166
  box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
170
167
  }
171
- .awsui_header-cell-content_1spae_16xmx_138.awsui_header-cell-fake-focus_1spae_16xmx_171:not(#\9) {
168
+ .awsui_header-cell-content_1spae_x8odi_135.awsui_header-cell-fake-focus_1spae_x8odi_168:not(#\9) {
172
169
  position: relative;
173
170
  }
174
- .awsui_header-cell-content_1spae_16xmx_138.awsui_header-cell-fake-focus_1spae_16xmx_171:not(#\9) {
171
+ .awsui_header-cell-content_1spae_x8odi_135.awsui_header-cell-fake-focus_1spae_x8odi_168:not(#\9) {
175
172
  outline: 2px dotted transparent;
176
173
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-uqywlq, 0px) - 1px);
177
174
  }
178
- .awsui_header-cell-content_1spae_16xmx_138.awsui_header-cell-fake-focus_1spae_16xmx_171:not(#\9)::before {
175
+ .awsui_header-cell-content_1spae_x8odi_135.awsui_header-cell-fake-focus_1spae_x8odi_168:not(#\9)::before {
179
176
  content: " ";
180
177
  display: block;
181
178
  position: absolute;
@@ -187,23 +184,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
187
184
  box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
188
185
  }
189
186
 
190
- .awsui_header-cell-sortable_1spae_16xmx_115:not(#\9):not(.awsui_header-cell-disabled_1spae_16xmx_138) > .awsui_header-cell-content_1spae_16xmx_138 {
187
+ .awsui_header-cell-sortable_1spae_x8odi_112:not(#\9):not(.awsui_header-cell-disabled_1spae_x8odi_135) > .awsui_header-cell-content_1spae_x8odi_135 {
191
188
  cursor: pointer;
192
189
  }
193
- .awsui_header-cell-sortable_1spae_16xmx_115:not(#\9):not(.awsui_header-cell-disabled_1spae_16xmx_138) > .awsui_header-cell-content_1spae_16xmx_138:hover, .awsui_header-cell-sortable_1spae_16xmx_115:not(#\9):not(.awsui_header-cell-disabled_1spae_16xmx_138).awsui_header-cell-sorted_1spae_16xmx_138 > .awsui_header-cell-content_1spae_16xmx_138 {
190
+ .awsui_header-cell-sortable_1spae_x8odi_112:not(#\9):not(.awsui_header-cell-disabled_1spae_x8odi_135) > .awsui_header-cell-content_1spae_x8odi_135:hover, .awsui_header-cell-sortable_1spae_x8odi_112:not(#\9):not(.awsui_header-cell-disabled_1spae_x8odi_135).awsui_header-cell-sorted_1spae_x8odi_135 > .awsui_header-cell-content_1spae_x8odi_135 {
194
191
  color: var(--color-text-interactive-active-i5elzx, #16191f);
195
192
  }
196
- .awsui_header-cell-sortable_1spae_16xmx_115:not(#\9):not(.awsui_header-cell-disabled_1spae_16xmx_138) > .awsui_header-cell-content_1spae_16xmx_138:hover > .awsui_sorting-icon_1spae_16xmx_131, .awsui_header-cell-sortable_1spae_16xmx_115:not(#\9):not(.awsui_header-cell-disabled_1spae_16xmx_138).awsui_header-cell-sorted_1spae_16xmx_138 > .awsui_header-cell-content_1spae_16xmx_138 > .awsui_sorting-icon_1spae_16xmx_131 {
193
+ .awsui_header-cell-sortable_1spae_x8odi_112:not(#\9):not(.awsui_header-cell-disabled_1spae_x8odi_135) > .awsui_header-cell-content_1spae_x8odi_135:hover > .awsui_sorting-icon_1spae_x8odi_128, .awsui_header-cell-sortable_1spae_x8odi_112:not(#\9):not(.awsui_header-cell-disabled_1spae_x8odi_135).awsui_header-cell-sorted_1spae_x8odi_135 > .awsui_header-cell-content_1spae_x8odi_135 > .awsui_sorting-icon_1spae_x8odi_128 {
197
194
  color: var(--color-text-interactive-active-i5elzx, #16191f);
198
195
  }
199
196
 
200
- .awsui_header-cell-text_1spae_16xmx_200:not(#\9):not(.awsui_header-cell-text-wrap_1spae_16xmx_200) {
197
+ .awsui_header-cell-text_1spae_x8odi_197:not(#\9):not(.awsui_header-cell-text-wrap_1spae_x8odi_197) {
201
198
  white-space: nowrap;
202
199
  overflow: hidden;
203
200
  text-overflow: ellipsis;
204
201
  }
205
202
 
206
- .awsui_header-cell-ascending_1spae_16xmx_206:not(#\9),
207
- .awsui_header-cell-descending_1spae_16xmx_207:not(#\9) {
203
+ .awsui_header-cell-ascending_1spae_x8odi_203:not(#\9),
204
+ .awsui_header-cell-descending_1spae_x8odi_204:not(#\9) {
208
205
  /* used in test-utils */
206
+ }
207
+
208
+ /*
209
+ In Visual Refresh the first cell in the header should align
210
+ with the left edge of the table as closely as possible. If the
211
+ last header cell is sortable the sort icon should align with the
212
+ settings icon in the pagination slot.
213
+ */
214
+ .awsui_header-cell_1spae_x8odi_93:not(#\9):not(.awsui_is-visual-refresh_1spae_x8odi_214):first-child {
215
+ padding-left: var(--space-xs-rsr2qu, 8px);
216
+ }
217
+
218
+ .awsui_header-cell_1spae_x8odi_93.awsui_is-visual-refresh_1spae_x8odi_214:not(#\9) {
219
+ /*
220
+ Striped rows requires additional left padding because the
221
+ shaded background makes the child content appear too close
222
+ to the table edge.
223
+ */
224
+ }
225
+ .awsui_header-cell_1spae_x8odi_93.awsui_is-visual-refresh_1spae_x8odi_214:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_x8odi_225) {
226
+ padding-left: var(--space-xxxs-k2w98v, 2px);
227
+ }
228
+ .awsui_header-cell_1spae_x8odi_93.awsui_is-visual-refresh_1spae_x8odi_214:not(#\9):first-child.awsui_has-striped-rows_1spae_x8odi_225 {
229
+ padding-left: var(--space-xxs-ynfts5, 4px);
230
+ }
231
+ .awsui_header-cell_1spae_x8odi_93.awsui_is-visual-refresh_1spae_x8odi_214:not(#\9):first-child > .awsui_header-cell-content_1spae_x8odi_135 {
232
+ padding-left: 0;
233
+ }
234
+ .awsui_header-cell_1spae_x8odi_93.awsui_is-visual-refresh_1spae_x8odi_214:not(#\9):last-child.awsui_header-cell-sortable_1spae_x8odi_112 {
235
+ padding-right: var(--space-xxxs-k2w98v, 2px);
209
236
  }
@@ -2,21 +2,23 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "header-cell": "awsui_header-cell_1spae_16xmx_93",
6
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_16xmx_103",
7
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_16xmx_106",
8
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_16xmx_106",
9
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_16xmx_109",
10
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_16xmx_115",
11
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_16xmx_127",
12
- "sorting-icon": "awsui_sorting-icon_1spae_16xmx_131",
13
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_16xmx_138",
14
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_16xmx_138",
15
- "header-cell-content": "awsui_header-cell-content_1spae_16xmx_138",
16
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_16xmx_171",
17
- "header-cell-text": "awsui_header-cell-text_1spae_16xmx_200",
18
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_16xmx_200",
19
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_16xmx_206",
20
- "header-cell-descending": "awsui_header-cell-descending_1spae_16xmx_207"
5
+ "header-cell": "awsui_header-cell_1spae_x8odi_93",
6
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_x8odi_103",
7
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_x8odi_106",
8
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_x8odi_106",
9
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_x8odi_109",
10
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_x8odi_112",
11
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_x8odi_124",
12
+ "sorting-icon": "awsui_sorting-icon_1spae_x8odi_128",
13
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_x8odi_135",
14
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_x8odi_135",
15
+ "header-cell-content": "awsui_header-cell-content_1spae_x8odi_135",
16
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_x8odi_168",
17
+ "header-cell-text": "awsui_header-cell-text_1spae_x8odi_197",
18
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_x8odi_197",
19
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_x8odi_203",
20
+ "header-cell-descending": "awsui_header-cell-descending_1spae_x8odi_204",
21
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_x8odi_214",
22
+ "has-striped-rows": "awsui_has-striped-rows_1spae_x8odi_225"
21
23
  };
22
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;AAiC/D,QAAA,MAAM,aAAa,qBA6UK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;AAiC/D,QAAA,MAAM,aAAa,qBAsVK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
@@ -77,13 +77,15 @@ var InternalTable = React.forwardRef(function (_a, ref) {
77
77
  checkSortingState(columnDefinitions, sortingColumn.sortingComparator);
78
78
  }
79
79
  }
80
- var isRefresh = useVisualRefresh();
81
- var computedVariant = isRefresh
80
+ var isVisualRefresh = useVisualRefresh();
81
+ var computedVariant = isVisualRefresh
82
82
  ? variant
83
83
  : ['embedded', 'full-page'].indexOf(variant) > -1
84
84
  ? 'container'
85
85
  : variant;
86
86
  var hasHeader = !!(header || filter || pagination || preferences);
87
+ var hasSelection = !!selectionType;
88
+ var hasFooter = !!footer;
87
89
  var theadProps = {
88
90
  containerWidth: containerWidth,
89
91
  selectionType: selectionType,
@@ -104,7 +106,8 @@ var InternalTable = React.forwardRef(function (_a, ref) {
104
106
  fireNonCancelableEvent(onColumnWidthsChange, { widths: widthsDetail });
105
107
  }
106
108
  },
107
- singleSelectionHeaderAriaLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel
109
+ singleSelectionHeaderAriaLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel,
110
+ stripedRows: stripedRows
108
111
  };
109
112
  // Allows keyboard users to scroll horizontally with arrow keys by making the wrapper part of the tab sequence
110
113
  var isWrapperScrollable = tableWidth && containerWidth && tableWidth > containerWidth;
@@ -115,16 +118,15 @@ var InternalTable = React.forwardRef(function (_a, ref) {
115
118
  var getMouseDownTarget = useMouseDownTarget();
116
119
  var hasDynamicHeight = computedVariant === 'full-page';
117
120
  var overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight });
118
- return (React.createElement(ColumnWidthsProvider, { tableRef: tableRefObject, visibleColumnDefinitions: visibleColumnDefinitions, resizableColumns: resizableColumns, hasSelection: !!selectionType },
121
+ return (React.createElement(ColumnWidthsProvider, { tableRef: tableRefObject, visibleColumnDefinitions: visibleColumnDefinitions, resizableColumns: resizableColumns, hasSelection: hasSelection },
119
122
  React.createElement(InternalContainer, __assign({}, baseProps, { __internalRootRef: __internalRootRef, className: clsx(baseProps.className, styles.root), header: React.createElement(React.Fragment, null,
120
123
  hasHeader && (React.createElement("div", { ref: overlapElement, className: clsx(hasDynamicHeight && [styles['dark-header'], 'awsui-context-content-header']) },
121
124
  React.createElement("div", { className: clsx(styles['header-controls'], styles["variant-".concat(computedVariant)]) },
122
125
  React.createElement(ToolsHeader, { header: header, filter: filter, pagination: pagination, preferences: preferences })))),
123
126
  stickyHeader && (React.createElement(StickyHeader, { ref: stickyHeaderRef, variant: computedVariant, theadProps: theadProps, wrapperRef: wrapperRefObject, theadRef: theadRef, secondaryWrapperRef: secondaryWrapperRef, tableRef: tableRefObject, onScroll: handleScroll, tableHasHeader: hasHeader }))), disableHeaderPaddings: true, disableContentPaddings: true, variant: toContainerVariant(computedVariant), __disableFooterPaddings: true, __disableFooterDivider: true, footer: footer && (React.createElement("div", { className: clsx(styles['footer-wrapper'], styles["variant-".concat(computedVariant)]) },
124
- React.createElement("hr", { className: styles.divider }),
125
127
  React.createElement("div", { className: styles.footer }, footer))), __stickyHeader: stickyHeader, __stickyOffset: stickyHeaderVerticalOffset }, focusMarkers.root),
126
128
  React.createElement("div", __assign({ ref: wrapperRef, className: clsx(styles.wrapper, styles["variant-".concat(computedVariant)], (_b = {},
127
- _b[styles['has-footer']] = !!footer,
129
+ _b[styles['has-footer']] = hasFooter,
128
130
  _b[styles['has-header']] = hasHeader,
129
131
  _b)), onScroll: handleScroll }, wrapperProps, focusVisibleProps),
130
132
  renderAriaLive && firstIndex && (React.createElement(LiveRegion, null,
@@ -135,7 +137,7 @@ var InternalTable = React.forwardRef(function (_a, ref) {
135
137
  role: "table", "aria-label": ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.tableLabel, "aria-rowcount": totalItemsCount ? totalItemsCount + 1 : -1 },
136
138
  React.createElement(Thead, __assign({ ref: theadRef, hidden: stickyHeader, onCellFocus: function (colIndex) { var _a; return (_a = stickyHeaderRef.current) === null || _a === void 0 ? void 0 : _a.setFocusedColumn(colIndex); }, onCellBlur: function () { var _a; return (_a = stickyHeaderRef.current) === null || _a === void 0 ? void 0 : _a.setFocusedColumn(null); } }, theadProps)),
137
139
  React.createElement("tbody", null, loading || items.length === 0 ? (React.createElement("tr", null,
138
- React.createElement("td", { colSpan: selectionType ? visibleColumnDefinitions.length + 1 : visibleColumnDefinitions.length, className: styles['cell-merged'] },
140
+ React.createElement("td", { colSpan: selectionType ? visibleColumnDefinitions.length + 1 : visibleColumnDefinitions.length, className: clsx(styles['cell-merged'], hasFooter && styles['has-footer']) },
139
141
  React.createElement("div", { className: styles['cell-merged-content'], style: {
140
142
  width: (supportsStickyPosition() && containerWidth && Math.floor(containerWidth)) || undefined
141
143
  } }, loading ? (React.createElement(InternalStatusIndicator, { type: "loading", className: styles.loading, wrapText: true },
@@ -156,7 +158,7 @@ var InternalTable = React.forwardRef(function (_a, ref) {
156
158
  (_b = stickyHeaderRef.current) === null || _b === void 0 ? void 0 : _b.scrollToRow(currentTarget);
157
159
  }
158
160
  } }, focusMarkers.item, { onClick: onRowClickHandler && onRowClickHandler.bind(null, rowIndex, item), onContextMenu: onRowContextMenuHandler && onRowContextMenuHandler.bind(null, rowIndex, item), "aria-rowindex": firstIndex ? firstIndex + rowIndex + 1 : undefined }),
159
- selectionType !== undefined && (React.createElement(TableBodyCell, { className: styles['selection-control'], isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, wrapLines: false, isEvenRow: isEven, stripedRows: stripedRows },
161
+ selectionType !== undefined && (React.createElement(TableBodyCell, { className: clsx(styles['selection-control'], isVisualRefresh && styles['is-visual-refresh']), isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, wrapLines: false, isEvenRow: isEven, stripedRows: stripedRows, hasSelection: hasSelection, hasFooter: hasFooter },
160
162
  React.createElement(SelectionControl, __assign({ onFocusDown: moveFocusDown, onFocusUp: moveFocusUp, onShiftToggle: updateShiftToggle }, getItemSelectionProps(item))))),
161
163
  visibleColumnDefinitions.map(function (column, colIndex) { return (React.createElement(TableBodyCellContent, { key: getColumnKey(column, colIndex), style: resizableColumns
162
164
  ? {}
@@ -164,7 +166,7 @@ var InternalTable = React.forwardRef(function (_a, ref) {
164
166
  width: column.width,
165
167
  minWidth: column.minWidth,
166
168
  maxWidth: column.maxWidth
167
- }, column: column, item: item, wrapLines: wrapLines, isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, stripedRows: stripedRows, isEvenRow: isEven })); })));
169
+ }, column: column, item: item, wrapLines: wrapLines, isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, stripedRows: stripedRows, isEvenRow: isEven, hasSelection: hasSelection, hasFooter: hasFooter })); })));
168
170
  })))),
169
171
  resizableColumns && React.createElement(ResizeTracker, null)),
170
172
  React.createElement(StickyScrollbar, { ref: scrollbarRef, wrapperRef: wrapperRefObject, tableRef: tableRefObject, onScroll: handleScroll }))));