@cloudscape-design/components-themeable 3.0.157 → 3.0.158

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 (88) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/select/parts/styles.scss +9 -0
  3. package/lib/internal/scss/table/body-cell/styles.scss +131 -29
  4. package/lib/internal/scss/table/header-cell/styles.scss +15 -7
  5. package/lib/internal/template/breadcrumb-group/internal.d.ts +1 -1
  6. package/lib/internal/template/breadcrumb-group/internal.d.ts.map +1 -1
  7. package/lib/internal/template/breadcrumb-group/internal.js.map +1 -1
  8. package/lib/internal/template/button/internal.d.ts +1 -0
  9. package/lib/internal/template/button/internal.d.ts.map +1 -1
  10. package/lib/internal/template/button/internal.js +2 -2
  11. package/lib/internal/template/button/internal.js.map +1 -1
  12. package/lib/internal/template/form-field/interfaces.d.ts +10 -0
  13. package/lib/internal/template/form-field/interfaces.d.ts.map +1 -1
  14. package/lib/internal/template/form-field/interfaces.js.map +1 -1
  15. package/lib/internal/template/form-field/internal.d.ts +1 -1
  16. package/lib/internal/template/form-field/internal.d.ts.map +1 -1
  17. package/lib/internal/template/form-field/internal.js +5 -4
  18. package/lib/internal/template/form-field/internal.js.map +1 -1
  19. package/lib/internal/template/input/internal.d.ts.map +1 -1
  20. package/lib/internal/template/input/internal.js +16 -4
  21. package/lib/internal/template/input/internal.js.map +1 -1
  22. package/lib/internal/template/internal/context/form-field-context.d.ts +6 -2
  23. package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
  24. package/lib/internal/template/internal/context/form-field-context.js +7 -1
  25. package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
  26. package/lib/internal/template/internal/environment.js +1 -1
  27. package/lib/internal/template/internal/types.d.ts +9 -0
  28. package/lib/internal/template/internal/types.d.ts.map +1 -1
  29. package/lib/internal/template/internal/types.js +0 -2
  30. package/lib/internal/template/internal/types.js.map +1 -1
  31. package/lib/internal/template/select/parts/styles.css.js +9 -9
  32. package/lib/internal/template/select/parts/styles.scoped.css +27 -9
  33. package/lib/internal/template/select/parts/styles.selectors.js +9 -9
  34. package/lib/internal/template/table/body-cell/click-away.d.ts +9 -0
  35. package/lib/internal/template/table/body-cell/click-away.d.ts.map +1 -0
  36. package/lib/internal/template/table/body-cell/click-away.js +38 -0
  37. package/lib/internal/template/table/body-cell/click-away.js.map +1 -0
  38. package/lib/internal/template/table/body-cell/index.d.ts +11 -20
  39. package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
  40. package/lib/internal/template/table/body-cell/index.js +48 -9
  41. package/lib/internal/template/table/body-cell/index.js.map +1 -1
  42. package/lib/internal/template/table/body-cell/inline-editor.d.ts +12 -0
  43. package/lib/internal/template/table/body-cell/inline-editor.d.ts.map +1 -0
  44. package/lib/internal/template/table/body-cell/inline-editor.js +88 -0
  45. package/lib/internal/template/table/body-cell/inline-editor.js.map +1 -0
  46. package/lib/internal/template/table/body-cell/styles.css.js +18 -12
  47. package/lib/internal/template/table/body-cell/styles.scoped.css +229 -46
  48. package/lib/internal/template/table/body-cell/styles.selectors.js +18 -12
  49. package/lib/internal/template/table/body-cell/td-element.d.ts +21 -0
  50. package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -0
  51. package/lib/internal/template/table/body-cell/td-element.js +11 -0
  52. package/lib/internal/template/table/body-cell/td-element.js.map +1 -0
  53. package/lib/internal/template/table/body-cell/use-stable-scroll-position.d.ts +17 -0
  54. package/lib/internal/template/table/body-cell/use-stable-scroll-position.d.ts.map +1 -0
  55. package/lib/internal/template/table/body-cell/use-stable-scroll-position.js +48 -0
  56. package/lib/internal/template/table/body-cell/use-stable-scroll-position.js.map +1 -0
  57. package/lib/internal/template/table/header-cell/index.d.ts +8 -7
  58. package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
  59. package/lib/internal/template/table/header-cell/index.js +6 -2
  60. package/lib/internal/template/table/header-cell/index.js.map +1 -1
  61. package/lib/internal/template/table/header-cell/styles.css.js +19 -18
  62. package/lib/internal/template/table/header-cell/styles.scoped.css +40 -35
  63. package/lib/internal/template/table/header-cell/styles.selectors.js +19 -18
  64. package/lib/internal/template/table/header-cell/utils.d.ts +1 -1
  65. package/lib/internal/template/table/header-cell/utils.d.ts.map +1 -1
  66. package/lib/internal/template/table/interfaces.d.ts +85 -10
  67. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  68. package/lib/internal/template/table/interfaces.js.map +1 -1
  69. package/lib/internal/template/table/internal.d.ts.map +1 -1
  70. package/lib/internal/template/table/internal.js +68 -18
  71. package/lib/internal/template/table/internal.js.map +1 -1
  72. package/lib/internal/template/table/thead.d.ts.map +1 -1
  73. package/lib/internal/template/table/thead.js +1 -1
  74. package/lib/internal/template/table/thead.js.map +1 -1
  75. package/lib/internal/template/table/use-table-focus-navigation.d.ts +16 -0
  76. package/lib/internal/template/table/use-table-focus-navigation.d.ts.map +1 -0
  77. package/lib/internal/template/table/use-table-focus-navigation.js +131 -0
  78. package/lib/internal/template/table/use-table-focus-navigation.js.map +1 -0
  79. package/lib/internal/template/table/utils.d.ts +1 -1
  80. package/lib/internal/template/table/utils.d.ts.map +1 -1
  81. package/lib/internal/template/test-utils/dom/table/index.d.ts +4 -0
  82. package/lib/internal/template/test-utils/dom/table/index.js +21 -5
  83. package/lib/internal/template/test-utils/dom/table/index.js.map +1 -1
  84. package/lib/internal/template/test-utils/selectors/table/index.d.ts +4 -0
  85. package/lib/internal/template/test-utils/selectors/table/index.js +21 -5
  86. package/lib/internal/template/test-utils/selectors/table/index.js.map +1 -1
  87. package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
  88. package/package.json +1 -1
@@ -0,0 +1,88 @@
1
+ import { __awaiter, __generator } from "tslib";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ import React, { useEffect, useState } from 'react';
5
+ import Button from '../../button/internal';
6
+ import FormField from '../../form-field/internal';
7
+ import SpaceBetween from '../../space-between/internal';
8
+ import { useClickAway } from './click-away';
9
+ import styles from './styles.css.js';
10
+ // A function that does nothing
11
+ var noop = function () { return undefined; };
12
+ export function InlineEditor(_a) {
13
+ var _b, _c;
14
+ var ariaLabels = _a.ariaLabels, item = _a.item, column = _a.column, onEditEnd = _a.onEditEnd, submitEdit = _a.submitEdit, __onRender = _a.__onRender;
15
+ var _d = useState(false), currentEditLoading = _d[0], setCurrentEditLoading = _d[1];
16
+ var _e = useState(), currentEditValue = _e[0], setCurrentEditValue = _e[1];
17
+ var cellContext = {
18
+ isEditing: true,
19
+ currentValue: currentEditValue,
20
+ setValue: setCurrentEditValue
21
+ };
22
+ function finishEdit(cancel) {
23
+ if (cancel === void 0) { cancel = false; }
24
+ if (!cancel) {
25
+ setCurrentEditValue(undefined);
26
+ }
27
+ onEditEnd();
28
+ }
29
+ function onSubmitClick(evt) {
30
+ return __awaiter(this, void 0, void 0, function () {
31
+ var e_1;
32
+ return __generator(this, function (_a) {
33
+ switch (_a.label) {
34
+ case 0:
35
+ evt.preventDefault();
36
+ if (currentEditValue === undefined) {
37
+ finishEdit();
38
+ return [2 /*return*/];
39
+ }
40
+ setCurrentEditLoading(true);
41
+ _a.label = 1;
42
+ case 1:
43
+ _a.trys.push([1, 3, , 4]);
44
+ return [4 /*yield*/, submitEdit(item, column, currentEditValue)];
45
+ case 2:
46
+ _a.sent();
47
+ setCurrentEditLoading(false);
48
+ finishEdit();
49
+ return [3 /*break*/, 4];
50
+ case 3:
51
+ e_1 = _a.sent();
52
+ setCurrentEditLoading(false);
53
+ return [3 /*break*/, 4];
54
+ case 4: return [2 /*return*/];
55
+ }
56
+ });
57
+ });
58
+ }
59
+ function onCancel() {
60
+ if (currentEditLoading) {
61
+ return;
62
+ }
63
+ finishEdit(true);
64
+ }
65
+ function handleEscape(event) {
66
+ if (event.key === 'Escape') {
67
+ onCancel();
68
+ }
69
+ }
70
+ var clickAwayRef = useClickAway(onCancel);
71
+ useEffect(function () {
72
+ if (__onRender) {
73
+ var timer_1 = setTimeout(__onRender, 1);
74
+ return function () { return clearTimeout(timer_1); };
75
+ }
76
+ }, [__onRender]);
77
+ // asserting non-undefined editConfig here because this component is unreachable otherwise
78
+ var _f = column.editConfig, _g = _f.ariaLabel, ariaLabel = _g === void 0 ? undefined : _g, _h = _f.validation, validation = _h === void 0 ? noop : _h, errorIconAriaLabel = _f.errorIconAriaLabel;
79
+ return (React.createElement("form", { ref: clickAwayRef, onSubmit: onSubmitClick, onKeyDown: handleEscape, className: styles['body-cell-editor-form'] },
80
+ React.createElement(FormField, { stretch: true, label: ariaLabel, __hideLabel: true, __disableGutters: true, __useReactAutofocus: true, i18nStrings: { errorIconAriaLabel: errorIconAriaLabel }, errorText: validation(item, currentEditValue) },
81
+ React.createElement("div", { className: styles['body-cell-editor-row'] },
82
+ column.cell(item, cellContext),
83
+ React.createElement("span", { className: styles['body-cell-editor-controls'] },
84
+ React.createElement(SpaceBetween, { direction: "horizontal", size: "xxs" },
85
+ !currentEditLoading ? (React.createElement(Button, { ariaLabel: (_b = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.cancelEditLabel) === null || _b === void 0 ? void 0 : _b.call(ariaLabels, column), formAction: "none", iconName: "close", variant: "inline-icon", onClick: onCancel })) : null,
86
+ React.createElement(Button, { ariaLabel: (_c = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.submitEditLabel) === null || _c === void 0 ? void 0 : _c.call(ariaLabels, column), formAction: "submit", iconName: "check", variant: "inline-icon", loading: currentEditLoading })))))));
87
+ }
88
+ //# sourceMappingURL=inline-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline-editor.js","sourceRoot":"","sources":["../../../../src/table/body-cell/inline-editor.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useState } from 'react';\nimport Button from '../../button/internal';\nimport FormField from '../../form-field/internal';\nimport SpaceBetween from '../../space-between/internal';\nimport { useClickAway } from './click-away';\nimport { TableProps } from '../interfaces';\nimport styles from './styles.css.js';\nimport { Optional } from '../../internal/types';\n\n// A function that does nothing\nconst noop = () => undefined;\n\ninterface InlineEditorProps<ItemType, ValueType> {\n ariaLabels: TableProps['ariaLabels'];\n column: TableProps.EditableColumnDefinition<ItemType, ValueType>;\n item: ItemType;\n onEditEnd: () => void;\n submitEdit: TableProps.SubmitEditFunction<ItemType, ValueType>;\n __onRender?: () => void;\n}\n\nexport function InlineEditor<ItemType, ValueType>({\n ariaLabels,\n item,\n column,\n onEditEnd,\n submitEdit,\n __onRender,\n}: InlineEditorProps<ItemType, ValueType>) {\n const [currentEditLoading, setCurrentEditLoading] = useState(false);\n const [currentEditValue, setCurrentEditValue] = useState<Optional<ValueType>>();\n\n const cellContext = {\n isEditing: true,\n currentValue: currentEditValue,\n setValue: setCurrentEditValue,\n };\n\n function finishEdit(cancel = false) {\n if (!cancel) {\n setCurrentEditValue(undefined);\n }\n onEditEnd();\n }\n\n async function onSubmitClick(evt: React.FormEvent) {\n evt.preventDefault();\n if (currentEditValue === undefined) {\n finishEdit();\n return;\n }\n\n setCurrentEditLoading(true);\n try {\n await submitEdit(item, column, currentEditValue);\n setCurrentEditLoading(false);\n finishEdit();\n } catch (e) {\n setCurrentEditLoading(false);\n }\n }\n\n function onCancel() {\n if (currentEditLoading) {\n return;\n }\n finishEdit(true);\n }\n\n function handleEscape(event: React.KeyboardEvent): void {\n if (event.key === 'Escape') {\n onCancel();\n }\n }\n\n const clickAwayRef = useClickAway(onCancel);\n\n useEffect(() => {\n if (__onRender) {\n const timer = setTimeout(__onRender, 1);\n return () => clearTimeout(timer);\n }\n }, [__onRender]);\n\n // asserting non-undefined editConfig here because this component is unreachable otherwise\n const { ariaLabel = undefined, validation = noop, errorIconAriaLabel } = column.editConfig!;\n\n return (\n <form\n ref={clickAwayRef}\n onSubmit={onSubmitClick}\n onKeyDown={handleEscape}\n className={styles['body-cell-editor-form']}\n >\n <FormField\n stretch={true}\n label={ariaLabel}\n __hideLabel={true}\n __disableGutters={true}\n __useReactAutofocus={true}\n i18nStrings={{ errorIconAriaLabel }}\n errorText={validation(item, currentEditValue)}\n >\n <div className={styles['body-cell-editor-row']}>\n {column.cell(item, cellContext)}\n <span className={styles['body-cell-editor-controls']}>\n <SpaceBetween direction=\"horizontal\" size=\"xxs\">\n {!currentEditLoading ? (\n <Button\n ariaLabel={ariaLabels?.cancelEditLabel?.(column)}\n formAction=\"none\"\n iconName=\"close\"\n variant=\"inline-icon\"\n onClick={onCancel}\n />\n ) : null}\n <Button\n ariaLabel={ariaLabels?.submitEditLabel?.(column)}\n formAction=\"submit\"\n iconName=\"check\"\n variant=\"inline-icon\"\n loading={currentEditLoading}\n />\n </SpaceBetween>\n </span>\n </div>\n </FormField>\n </form>\n );\n}\n"]}
@@ -1,17 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
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"
4
+ "body-cell": "awsui_body-cell_c6tup_164cf_93",
5
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_164cf_102",
6
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_164cf_114",
7
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_164cf_126",
8
+ "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_164cf_129",
9
+ "body-cell-editable": "awsui_body-cell-editable_c6tup_164cf_129",
10
+ "has-selection": "awsui_has-selection_c6tup_164cf_135",
11
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_164cf_141",
12
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_164cf_144",
13
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_164cf_144",
14
+ "has-footer": "awsui_has-footer_c6tup_164cf_144",
15
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_164cf_154",
16
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_164cf_176",
17
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_164cf_180",
18
+ "body-cell-editor": "awsui_body-cell-editor_c6tup_164cf_204",
19
+ "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_164cf_214",
20
+ "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_164cf_223",
21
+ "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_164cf_233"
16
22
  };
17
23
 
@@ -6,7 +6,91 @@
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_nv0er_9:not(#\9) {
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
+ /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
54
+ /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
55
+ /*
56
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
57
+ SPDX-License-Identifier: Apache-2.0
58
+ */
59
+ /*
60
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
61
+ SPDX-License-Identifier: Apache-2.0
62
+ */
63
+ /*
64
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
65
+ SPDX-License-Identifier: Apache-2.0
66
+ */
67
+ /*
68
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
69
+ SPDX-License-Identifier: Apache-2.0
70
+ */
71
+ /*
72
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
73
+ SPDX-License-Identifier: Apache-2.0
74
+ */
75
+ /*
76
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
77
+ SPDX-License-Identifier: Apache-2.0
78
+ */
79
+ /*
80
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
81
+ SPDX-License-Identifier: Apache-2.0
82
+ */
83
+ /* Style used for links in slots/components that are text heavy, to help links stand out among
84
+ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
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
+ .awsui_body-cell_c6tup_164cf_93:not(#\9) {
10
94
  box-sizing: border-box;
11
95
  padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
12
96
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
@@ -15,108 +99,207 @@
15
99
  word-wrap: break-word;
16
100
  border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
17
101
  }
18
- .awsui_body-cell_c6tup_nv0er_9:not(#\9):not(.awsui_body-cell-wrap_c6tup_nv0er_18) {
102
+ .awsui_body-cell_c6tup_164cf_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_164cf_102) {
19
103
  white-space: nowrap;
20
104
  overflow: hidden;
21
105
  text-overflow: ellipsis;
22
106
  }
23
- .awsui_body-cell_c6tup_nv0er_9:not(#\9):first-child {
107
+ .awsui_body-cell_c6tup_164cf_93:not(#\9):first-child {
24
108
  border-left: var(--border-item-width-yvnixs, 1px) solid transparent;
25
109
  }
26
- .awsui_body-cell_c6tup_nv0er_9:not(#\9):last-child {
110
+ .awsui_body-cell_c6tup_164cf_93:not(#\9):last-child {
27
111
  border-right: var(--border-item-width-yvnixs, 1px) solid transparent;
28
112
  padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
29
113
  }
30
- .awsui_body-cell-first-row_c6tup_nv0er_30:not(#\9) {
114
+ .awsui_body-cell_c6tup_164cf_93.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):first-child {
115
+ /*
116
+ Striped rows requires additional left padding because the
117
+ shaded background makes the child content appear too close
118
+ to the table edge.
119
+ */
120
+ /*
121
+ Remove the placeholder border if the row is not selectable.
122
+ Rows that are not selectable will reserve the horizontal space
123
+ that the placeholder border would consume.
124
+ */
125
+ }
126
+ .awsui_body-cell_c6tup_164cf_93.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_164cf_126) {
127
+ padding-left: var(--space-xxxs-k2w98v, 2px);
128
+ }
129
+ .awsui_body-cell_c6tup_164cf_93.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_164cf_126):not(.awsui_body-cell-edit-active_c6tup_164cf_129).awsui_body-cell-editable_c6tup_164cf_129:hover {
130
+ padding-left: calc(var(--space-xxxs-k2w98v, 2px) + var(--border-divider-list-width-hacikr, 1px));
131
+ }
132
+ .awsui_body-cell_c6tup_164cf_93.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_164cf_126 {
133
+ padding-left: var(--space-xxs-ynfts5, 4px);
134
+ }
135
+ .awsui_body-cell_c6tup_164cf_93.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):first-child:not(.awsui_has-selection_c6tup_164cf_135):not(.awsui_body-cell-editable_c6tup_164cf_129) {
136
+ border-left: none;
137
+ }
138
+ .awsui_body-cell_c6tup_164cf_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_164cf_114) {
139
+ padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
140
+ }
141
+ .awsui_body-cell-first-row_c6tup_164cf_141:not(#\9) {
31
142
  border-top: var(--border-item-width-yvnixs, 1px) solid transparent;
32
143
  }
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) {
144
+ .awsui_body-cell-last-row_c6tup_164cf_144:not(#\9):not(.awsui_body-cell-selected_c6tup_164cf_144):not(.awsui_has-footer_c6tup_164cf_144) {
34
145
  border-bottom: var(--border-item-width-yvnixs, 1px) solid transparent;
35
146
  }
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 {
147
+ .awsui_body-cell-last-row_c6tup_164cf_144:not(#\9):not(.awsui_body-cell-selected_c6tup_164cf_144).awsui_has-footer_c6tup_164cf_144 {
37
148
  /*
38
- Add a bottom border to the body cells of the last row as a separator between the
149
+ Add a bottom border to the body cells of the last row as a separator between the
39
150
  table and the footer
40
151
  */
41
152
  border-bottom: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
42
153
  }
43
- .awsui_body-cell-shaded_c6tup_nv0er_43:not(#\9) {
154
+ .awsui_body-cell-shaded_c6tup_164cf_154:not(#\9) {
44
155
  background: var(--color-background-cell-shaded-y6pwcp, #f2f3f3);
45
156
  }
46
- .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9) {
157
+ .awsui_body-cell-selected_c6tup_164cf_144:not(#\9) {
47
158
  background-color: var(--color-background-item-selected-fva7ca, #f1faff);
48
159
  border-top: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
49
160
  border-bottom: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
50
161
  padding-bottom: var(--space-scaled-xs-6859qs, 8px);
51
162
  }
52
- .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):first-child {
163
+ .awsui_body-cell-selected_c6tup_164cf_144:not(#\9):first-child {
53
164
  border-left: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
54
165
  border-radius: var(--border-radius-item-wjpc1f, 0px) 0 0 var(--border-radius-item-wjpc1f, 0px);
55
166
  }
56
- .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):last-child {
167
+ .awsui_body-cell-selected_c6tup_164cf_144:not(#\9):last-child {
57
168
  border-right: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
58
169
  border-radius: 0 var(--border-radius-item-wjpc1f, 0px) var(--border-radius-item-wjpc1f, 0px) 0;
59
170
  }
60
- .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):not(:first-child) {
171
+ .awsui_body-cell-selected_c6tup_164cf_144:not(#\9):not(:first-child) {
61
172
  padding-top: calc(
62
173
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
63
174
  );
64
175
  }
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 {
176
+ .awsui_body-cell_c6tup_164cf_93:not(#\9):not(.awsui_body-cell-selected_c6tup_164cf_144).awsui_body-cell-next-selected_c6tup_164cf_176 {
66
177
  border-bottom: 0;
67
178
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
68
179
  }
69
- .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-prev-selected_c6tup_nv0er_69:not(#\9) {
180
+ .awsui_body-cell-selected_c6tup_164cf_144.awsui_body-cell-prev-selected_c6tup_164cf_180:not(#\9) {
70
181
  padding-top: calc(
71
182
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
72
183
  );
73
184
  border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-wtgwev, transparent);
74
185
  }
75
- .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-next-selected_c6tup_nv0er_65:not(#\9) {
186
+ .awsui_body-cell-selected_c6tup_164cf_144.awsui_body-cell-next-selected_c6tup_164cf_176:not(#\9) {
76
187
  border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
77
188
  }
78
- .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-next-selected_c6tup_nv0er_65:not(#\9):first-child {
189
+ .awsui_body-cell-selected_c6tup_164cf_144.awsui_body-cell-next-selected_c6tup_164cf_176:not(#\9):first-child {
79
190
  border-bottom-left-radius: 0;
80
191
  }
81
- .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-next-selected_c6tup_nv0er_65:not(#\9):last-child {
192
+ .awsui_body-cell-selected_c6tup_164cf_144.awsui_body-cell-next-selected_c6tup_164cf_176:not(#\9):last-child {
82
193
  border-bottom-right-radius: 0;
83
194
  }
84
- .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-prev-selected_c6tup_nv0er_69:not(#\9):first-child {
195
+ .awsui_body-cell-selected_c6tup_164cf_144.awsui_body-cell-prev-selected_c6tup_164cf_180:not(#\9):first-child {
85
196
  border-top-left-radius: 0;
86
197
  }
87
- .awsui_body-cell-selected_c6tup_nv0er_33.awsui_body-cell-prev-selected_c6tup_nv0er_69:not(#\9):last-child {
198
+ .awsui_body-cell-selected_c6tup_164cf_144.awsui_body-cell-prev-selected_c6tup_164cf_180:not(#\9):last-child {
88
199
  border-top-right-radius: 0;
89
200
  }
90
- .awsui_body-cell-selected_c6tup_nv0er_33:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_nv0er_69) {
201
+ .awsui_body-cell-selected_c6tup_164cf_144:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_164cf_180) {
91
202
  padding-top: var(--space-scaled-xs-6859qs, 8px);
92
203
  }
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));
204
+ .awsui_body-cell-editor_c6tup_164cf_204:not(#\9) {
205
+ top: 0;
206
+ right: 0;
207
+ bottom: 0;
208
+ position: absolute;
209
+ display: flex;
210
+ align-items: center;
211
+ justify-content: flex-end;
212
+ padding-right: var(--space-xs-rsr2qu, 8px);
100
213
  }
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
- */
214
+ .awsui_body-cell-editor-form_c6tup_164cf_214:not(#\9) {
215
+ margin: calc(-1 * var(--space-xs-rsr2qu, 8px)) calc(-1.5 * var(--space-xs-rsr2qu, 8px));
113
216
  }
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;
217
+ .awsui_is-visual-refresh_c6tup_164cf_114.awsui_body-cell_c6tup_164cf_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_164cf_126 > .awsui_body-cell-editor-form_c6tup_164cf_214 {
218
+ margin-left: calc(-1 * var(--space-xxs-ynfts5, 4px));
116
219
  }
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);
220
+ .awsui_is-visual-refresh_c6tup_164cf_114.awsui_body-cell_c6tup_164cf_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_164cf_126) > .awsui_body-cell-editor-form_c6tup_164cf_214 {
221
+ margin-left: calc(-1 * var(--space-xxxs-k2w98v, 2px));
119
222
  }
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);
223
+ .awsui_body-cell-editor-row_c6tup_164cf_223:not(#\9) {
224
+ display: flex;
225
+ flex-flow: row nowrap;
226
+ align-items: center;
227
+ justify-content: space-between;
228
+ column-gap: var(--space-xxs-ynfts5, 4px);
229
+ }
230
+ .awsui_body-cell-editor-row_c6tup_164cf_223 > :not(#\9):not(:last-child) {
231
+ flex-grow: 1;
232
+ }
233
+ .awsui_body-cell-editor-controls_c6tup_164cf_233:not(#\9) {
234
+ flex-shrink: 0;
235
+ }
236
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9) {
237
+ position: relative;
238
+ cursor: pointer;
239
+ }
240
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129.awsui_body-cell-edit-active_c6tup_164cf_129:not(#\9) {
241
+ overflow: visible;
242
+ }
243
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129) > .awsui_body-cell-editor_c6tup_164cf_204 {
244
+ opacity: 0;
245
+ }
246
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover {
247
+ position: relative;
248
+ background-color: var(--color-background-dropdown-item-hover-hgdj8r, #f2f3f3);
249
+ border: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-control-default-bwkbmv, #879596);
250
+ left: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
251
+ right: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
252
+ }
253
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover > .awsui_body-cell-editor_c6tup_164cf_204 {
254
+ padding-right: calc(var(--space-xs-rsr2qu, 8px) - (2 * var(--border-divider-list-width-hacikr, 1px)));
255
+ }
256
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover.awsui_body-cell-last-row_c6tup_164cf_144.awsui_body-cell-selected_c6tup_164cf_144, .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover.awsui_body-cell-next-selected_c6tup_164cf_176 {
257
+ padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
258
+ padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
259
+ }
260
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover.awsui_body-cell-last-row_c6tup_164cf_144:not(.awsui_body-cell-selected_c6tup_164cf_144) {
261
+ padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
262
+ }
263
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover.awsui_body-cell-first-row_c6tup_164cf_141:not(.awsui_body-cell-selected_c6tup_164cf_144) {
264
+ padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
265
+ padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
266
+ }
267
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover, .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129)[data-awsui-focus-visible=true]:focus-within {
268
+ padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
269
+ }
270
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover > .awsui_body-cell-editor_c6tup_164cf_204, .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129)[data-awsui-focus-visible=true]:focus-within > .awsui_body-cell-editor_c6tup_164cf_204 {
271
+ opacity: 1;
272
+ }
273
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover:first-child {
274
+ left: 0;
275
+ right: 0;
276
+ }
277
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129)[data-awsui-focus-visible=true]:not(:hover):focus-within {
278
+ position: relative;
279
+ }
280
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129)[data-awsui-focus-visible=true]:not(:hover):focus-within {
281
+ outline: 2px dotted transparent;
282
+ outline-offset: calc(calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)) - 1px);
283
+ }
284
+ .awsui_body-cell_c6tup_164cf_93.awsui_body-cell-editable_c6tup_164cf_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129)[data-awsui-focus-visible=true]:not(:hover):focus-within::before {
285
+ content: " ";
286
+ display: block;
287
+ position: absolute;
288
+ left: calc(-1 * calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)));
289
+ top: calc(-1 * calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)));
290
+ width: calc(100% + 2 * calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)));
291
+ height: calc(100% + 2 * calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)));
292
+ border-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
293
+ box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
294
+ }
295
+ .awsui_body-cell-editable_c6tup_164cf_129.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover:first-child {
296
+ border-top-left-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
297
+ border-bottom-left-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
298
+ }
299
+ .awsui_body-cell-editable_c6tup_164cf_129.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover:last-child {
300
+ border-top-right-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
301
+ border-bottom-right-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
302
+ }
303
+ .awsui_body-cell-editable_c6tup_164cf_129.awsui_is-visual-refresh_c6tup_164cf_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_164cf_129):hover.awsui_body-cell-first-row_c6tup_164cf_141 > .awsui_body-cell-editor_c6tup_164cf_204 {
304
+ padding-top: var(--border-divider-list-width-hacikr, 1px);
122
305
  }
@@ -2,17 +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
- "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"
5
+ "body-cell": "awsui_body-cell_c6tup_164cf_93",
6
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_164cf_102",
7
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_164cf_114",
8
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_164cf_126",
9
+ "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_164cf_129",
10
+ "body-cell-editable": "awsui_body-cell-editable_c6tup_164cf_129",
11
+ "has-selection": "awsui_has-selection_c6tup_164cf_135",
12
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_164cf_141",
13
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_164cf_144",
14
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_164cf_144",
15
+ "has-footer": "awsui_has-footer_c6tup_164cf_144",
16
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_164cf_154",
17
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_164cf_176",
18
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_164cf_180",
19
+ "body-cell-editor": "awsui_body-cell-editor_c6tup_164cf_204",
20
+ "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_164cf_214",
21
+ "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_164cf_223",
22
+ "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_164cf_233"
17
23
  };
18
24
 
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ export interface TableTdElementProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ wrapLines: boolean | undefined;
6
+ isFirstRow: boolean;
7
+ isLastRow: boolean;
8
+ isSelected: boolean;
9
+ isNextSelected: boolean;
10
+ isPrevSelected: boolean;
11
+ nativeAttributes?: Omit<React.HTMLAttributes<HTMLTableCellElement>, 'style' | 'className' | 'onClick'>;
12
+ onClick?: () => void;
13
+ children?: React.ReactNode;
14
+ isEvenRow?: boolean;
15
+ stripedRows?: boolean;
16
+ hasSelection?: boolean;
17
+ hasFooter?: boolean;
18
+ isVisualRefresh?: boolean;
19
+ }
20
+ export declare const TableTdElement: React.ForwardRefExoticComponent<TableTdElementProps & React.RefAttributes<HTMLTableCellElement>>;
21
+ //# sourceMappingURL=td-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"td-element.d.ts","sourceRoot":"","sources":["../../../../src/table/body-cell/td-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,mBAAmB;IAClC,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,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC;IACvG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,kGAgD1B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { __assign } from "tslib";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ import clsx from 'clsx';
5
+ import React from 'react';
6
+ import styles from './styles.css.js';
7
+ export var TableTdElement = React.forwardRef(function (_a, ref) {
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, nativeAttributes = _a.nativeAttributes, onClick = _a.onClick, isEvenRow = _a.isEvenRow, stripedRows = _a.stripedRows, isVisualRefresh = _a.isVisualRefresh, hasSelection = _a.hasSelection, hasFooter = _a.hasFooter;
9
+ return (React.createElement("td", __assign({ 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']), onClick: onClick, ref: ref }, nativeAttributes), children));
10
+ });
11
+ //# sourceMappingURL=td-element.js.map
@@ -0,0 +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,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAqBrC,MAAM,CAAC,IAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAC5C,UACE,EAiBC,EACD,GAAG;QAjBD,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,gBAAgB,sBAAA,EAChB,OAAO,aAAA,EACP,SAAS,eAAA,EACT,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,YAAY,kBAAA,EACZ,SAAS,eAAA;IAIX,OAAO,CACL,qCACE,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,EACD,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,IACJ,gBAAgB,GAEnB,QAAQ,CACN,CACN,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport styles from './styles.css.js';\n\nexport interface TableTdElementProps {\n className?: string;\n style?: React.CSSProperties;\n wrapLines: boolean | undefined;\n isFirstRow: boolean;\n isLastRow: boolean;\n isSelected: boolean;\n isNextSelected: boolean;\n isPrevSelected: boolean;\n nativeAttributes?: Omit<React.HTMLAttributes<HTMLTableCellElement>, 'style' | 'className' | 'onClick'>;\n onClick?: () => void;\n children?: React.ReactNode;\n isEvenRow?: boolean;\n stripedRows?: boolean;\n hasSelection?: boolean;\n hasFooter?: boolean;\n isVisualRefresh?: boolean;\n}\n\nexport const TableTdElement = React.forwardRef<HTMLTableCellElement, TableTdElementProps>(\n (\n {\n className,\n style,\n children,\n wrapLines,\n isFirstRow,\n isLastRow,\n isSelected,\n isNextSelected,\n isPrevSelected,\n nativeAttributes,\n onClick,\n isEvenRow,\n stripedRows,\n isVisualRefresh,\n hasSelection,\n hasFooter,\n },\n ref\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 onClick={onClick}\n ref={ref}\n {...nativeAttributes}\n >\n {children}\n </td>\n );\n }\n);\n"]}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export declare function isScrollable(ele: HTMLElement): boolean;
3
+ export declare function getScrollableParent(ele: HTMLElement | null): HTMLElement;
4
+ export interface UseStableScrollPositionResult {
5
+ /** Stores the current scroll position of the nearest scrollable container. */
6
+ storeScrollPosition: () => void;
7
+ /** Restores the scroll position of the nearest scrollable container to the last stored position. */
8
+ restoreScrollPosition: () => void;
9
+ }
10
+ /**
11
+ * This hook stores the scroll position of the nearest scrollable parent of the
12
+ * `activeElementRef` when `storeScrollPosition` is called, and restores it when
13
+ * `restoreScrollPosition` is called.
14
+ * @param activeElementRef Ref to an active element in the table. This is used to find the nearest scrollable parent.
15
+ */
16
+ export declare function useStableScrollPosition<T extends HTMLElement>(activeElementRef: React.RefObject<T>): UseStableScrollPositionResult;
17
+ //# sourceMappingURL=use-stable-scroll-position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-stable-scroll-position.d.ts","sourceRoot":"","sources":["../../../../src/table/body-cell/use-stable-scroll-position.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,WAK5C;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,CAMxE;AAED,MAAM,WAAW,6BAA6B;IAC5C,8EAA8E;IAC9E,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,oGAAoG;IACpG,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC;AAMD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,WAAW,EAC3D,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GACnC,6BAA6B,CAsB/B"}