@cloudscape-design/components 3.0.240 → 3.0.242

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 (58) hide show
  1. package/box/styles.css.js +189 -189
  2. package/box/styles.scoped.css +251 -251
  3. package/box/styles.selectors.js +189 -189
  4. package/button/interfaces.d.ts +1 -1
  5. package/button/interfaces.js.map +1 -1
  6. package/button/internal.d.ts.map +1 -1
  7. package/button/internal.js +6 -6
  8. package/button/internal.js.map +1 -1
  9. package/code-editor/index.d.ts.map +1 -1
  10. package/code-editor/index.js +3 -2
  11. package/code-editor/index.js.map +1 -1
  12. package/code-editor/status-bar.d.ts +1 -1
  13. package/code-editor/status-bar.d.ts.map +1 -1
  14. package/code-editor/status-bar.js.map +1 -1
  15. package/code-editor/tab-button.d.ts +1 -1
  16. package/code-editor/tab-button.d.ts.map +1 -1
  17. package/code-editor/tab-button.js.map +1 -1
  18. package/expandable-section/expandable-section-header.d.ts +1 -0
  19. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  20. package/expandable-section/expandable-section-header.js +13 -6
  21. package/expandable-section/expandable-section-header.js.map +1 -1
  22. package/expandable-section/interfaces.d.ts +3 -2
  23. package/expandable-section/interfaces.d.ts.map +1 -1
  24. package/expandable-section/interfaces.js.map +1 -1
  25. package/expandable-section/styles.css.js +23 -21
  26. package/expandable-section/styles.scoped.css +56 -47
  27. package/expandable-section/styles.selectors.js +23 -21
  28. package/header/styles.css.js +44 -44
  29. package/header/styles.scoped.css +50 -50
  30. package/header/styles.selectors.js +44 -44
  31. package/internal/base-component/styles.scoped.css +9 -9
  32. package/internal/components/focus-lock/index.d.ts +8 -1
  33. package/internal/components/focus-lock/index.d.ts.map +1 -1
  34. package/internal/components/focus-lock/index.js +8 -2
  35. package/internal/components/focus-lock/index.js.map +1 -1
  36. package/internal/environment.js +1 -1
  37. package/internal/generated/styles/tokens.js +1 -1
  38. package/internal/generated/theming/index.cjs +12 -12
  39. package/internal/generated/theming/index.js +12 -12
  40. package/internal/manifest.json +1 -1
  41. package/package.json +1 -1
  42. package/progress-bar/styles.css.js +18 -18
  43. package/progress-bar/styles.scoped.css +33 -33
  44. package/progress-bar/styles.selectors.js +18 -18
  45. package/table/body-cell/inline-editor.d.ts.map +1 -1
  46. package/table/body-cell/inline-editor.js +16 -10
  47. package/table/body-cell/inline-editor.js.map +1 -1
  48. package/table/header-cell/styles.css.js +19 -19
  49. package/table/header-cell/styles.scoped.css +43 -34
  50. package/table/header-cell/styles.selectors.js +19 -19
  51. package/table/resizer/styles.css.js +6 -6
  52. package/table/resizer/styles.scoped.css +17 -14
  53. package/table/resizer/styles.selectors.js +6 -6
  54. package/tabs/styles.css.js +21 -21
  55. package/tabs/styles.scoped.css +39 -39
  56. package/tabs/styles.selectors.js +21 -21
  57. package/tutorial-panel/components/tutorial-detail-view/task.js +1 -1
  58. package/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
@@ -2,23 +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
- "progress": "awsui_progress_11huc_15drg_185",
6
- "result-state": "awsui_result-state_11huc_15drg_199",
7
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_15drg_1",
8
- "root": "awsui_root_11huc_15drg_221",
9
- "with-result-button": "awsui_with-result-button_11huc_15drg_234",
10
- "result-text": "awsui_result-text_11huc_15drg_238",
11
- "result-container-error": "awsui_result-container-error_11huc_15drg_242",
12
- "result-container-success": "awsui_result-container-success_11huc_15drg_242",
13
- "result-button": "awsui_result-button_11huc_15drg_246",
14
- "word-wrap": "awsui_word-wrap_11huc_15drg_251",
15
- "label-flash": "awsui_label-flash_11huc_15drg_257",
16
- "label-key-value": "awsui_label-key-value_11huc_15drg_261",
17
- "flash": "awsui_flash_11huc_15drg_269",
18
- "progress-container": "awsui_progress-container_11huc_15drg_273",
19
- "percentage-container": "awsui_percentage-container_11huc_15drg_280",
20
- "percentage": "awsui_percentage_11huc_15drg_280",
21
- "complete": "awsui_complete_11huc_15drg_315",
22
- "progress-in-flash": "awsui_progress-in-flash_11huc_15drg_330"
5
+ "progress": "awsui_progress_11huc_1flst_185",
6
+ "result-state": "awsui_result-state_11huc_1flst_199",
7
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_1flst_1",
8
+ "root": "awsui_root_11huc_1flst_221",
9
+ "with-result-button": "awsui_with-result-button_11huc_1flst_234",
10
+ "result-text": "awsui_result-text_11huc_1flst_238",
11
+ "result-container-error": "awsui_result-container-error_11huc_1flst_242",
12
+ "result-container-success": "awsui_result-container-success_11huc_1flst_242",
13
+ "result-button": "awsui_result-button_11huc_1flst_246",
14
+ "word-wrap": "awsui_word-wrap_11huc_1flst_251",
15
+ "label-flash": "awsui_label-flash_11huc_1flst_257",
16
+ "label-key-value": "awsui_label-key-value_11huc_1flst_261",
17
+ "flash": "awsui_flash_11huc_1flst_269",
18
+ "progress-container": "awsui_progress-container_11huc_1flst_273",
19
+ "percentage-container": "awsui_percentage-container_11huc_1flst_280",
20
+ "percentage": "awsui_percentage_11huc_1flst_280",
21
+ "complete": "awsui_complete_11huc_1flst_315",
22
+ "progress-in-flash": "awsui_progress-in-flash_11huc_1flst_330"
23
23
  };
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"inline-editor.d.ts","sourceRoot":"lib/default/","sources":["table/body-cell/inline-editor.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAO3C,UAAU,iBAAiB,CAAC,QAAQ;IAClC,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IACrC,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,EACrC,UAAU,EACV,IAAI,EACJ,MAAM,EACN,SAAS,EACT,UAAU,EACV,UAAU,GACX,EAAE,iBAAiB,CAAC,QAAQ,CAAC,eA0G7B"}
1
+ {"version":3,"file":"inline-editor.d.ts","sourceRoot":"lib/default/","sources":["table/body-cell/inline-editor.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,UAAU,iBAAiB,CAAC,QAAQ;IAClC,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IACrC,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,EACrC,UAAU,EACV,IAAI,EACJ,MAAM,EACN,SAAS,EACT,UAAU,EACV,UAAU,GACX,EAAE,iBAAiB,CAAC,QAAQ,CAAC,eAiH7B"}
@@ -1,18 +1,20 @@
1
1
  import { __awaiter } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
- import React, { useEffect, useState } from 'react';
4
+ import React, { useEffect, useRef, useState } from 'react';
5
5
  import Button from '../../button/internal';
6
6
  import FormField from '../../form-field/internal';
7
7
  import SpaceBetween from '../../space-between/internal';
8
8
  import { useClickAway } from './click-away';
9
9
  import styles from './styles.css.js';
10
+ import FocusLock from '../../internal/components/focus-lock';
10
11
  // A function that does nothing
11
12
  const noop = () => undefined;
12
13
  export function InlineEditor({ ariaLabels, item, column, onEditEnd, submitEdit, __onRender, }) {
13
- var _a, _b;
14
+ var _a, _b, _c;
14
15
  const [currentEditLoading, setCurrentEditLoading] = useState(false);
15
16
  const [currentEditValue, setCurrentEditValue] = useState();
17
+ const focusLockRef = useRef(null);
16
18
  const cellContext = {
17
19
  currentValue: currentEditValue,
18
20
  setValue: setCurrentEditValue,
@@ -24,6 +26,7 @@ export function InlineEditor({ ariaLabels, item, column, onEditEnd, submitEdit,
24
26
  onEditEnd();
25
27
  }
26
28
  function onSubmitClick(evt) {
29
+ var _a;
27
30
  return __awaiter(this, void 0, void 0, function* () {
28
31
  evt.preventDefault();
29
32
  if (currentEditValue === undefined) {
@@ -38,6 +41,7 @@ export function InlineEditor({ ariaLabels, item, column, onEditEnd, submitEdit,
38
41
  }
39
42
  catch (e) {
40
43
  setCurrentEditLoading(false);
44
+ (_a = focusLockRef.current) === null || _a === void 0 ? void 0 : _a.focusFirst();
41
45
  }
42
46
  });
43
47
  }
@@ -61,13 +65,15 @@ export function InlineEditor({ ariaLabels, item, column, onEditEnd, submitEdit,
61
65
  }, [__onRender]);
62
66
  // asserting non-undefined editConfig here because this component is unreachable otherwise
63
67
  const { ariaLabel = undefined, validation = noop, errorIconAriaLabel, constraintText, editingCell, } = column.editConfig;
64
- return (React.createElement("form", { ref: clickAwayRef, onSubmit: onSubmitClick, onKeyDown: handleEscape, className: styles['body-cell-editor-form'] },
65
- React.createElement(FormField, { stretch: true, label: ariaLabel, constraintText: constraintText, __hideLabel: true, __disableGutters: true, i18nStrings: { errorIconAriaLabel }, errorText: validation(item, currentEditValue) },
66
- React.createElement("div", { className: styles['body-cell-editor-row'] },
67
- editingCell(item, cellContext),
68
- React.createElement("span", { className: styles['body-cell-editor-controls'] },
69
- React.createElement(SpaceBetween, { direction: "horizontal", size: "xxs" },
70
- !currentEditLoading ? (React.createElement(Button, { ariaLabel: (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.cancelEditLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, column), formAction: "none", iconName: "close", variant: "inline-icon", onClick: onCancel })) : null,
71
- React.createElement(Button, { ariaLabel: (_b = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.submitEditLabel) === null || _b === void 0 ? void 0 : _b.call(ariaLabels, column), formAction: "submit", iconName: "check", variant: "inline-icon", loading: currentEditLoading })))))));
68
+ return (React.createElement(FocusLock, { restoreFocus: true, ref: focusLockRef },
69
+ React.createElement("div", { role: "dialog", ref: clickAwayRef, "aria-label": (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.activateEditLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, column), onKeyDown: handleEscape },
70
+ React.createElement("form", { onSubmit: onSubmitClick, className: styles['body-cell-editor-form'] },
71
+ React.createElement(FormField, { stretch: true, label: ariaLabel, constraintText: constraintText, __hideLabel: true, __disableGutters: true, i18nStrings: { errorIconAriaLabel }, errorText: validation(item, currentEditValue) },
72
+ React.createElement("div", { className: styles['body-cell-editor-row'] },
73
+ editingCell(item, cellContext),
74
+ React.createElement("span", { className: styles['body-cell-editor-controls'] },
75
+ React.createElement(SpaceBetween, { direction: "horizontal", size: "xxs" },
76
+ !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,
77
+ 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 })))))))));
72
78
  }
73
79
  //# sourceMappingURL=inline-editor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inline-editor.js","sourceRoot":"lib/default/","sources":["table/body-cell/inline-editor.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC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CAAC;oBAClD,oBAAC,YAAY,IAAC,SAAS,EAAC,YAAY,EAAC,IAAI,EAAC,KAAK;wBAC5C,CAAC,kBAAkB,CAAC,CAAC,CAAC,CACrB,oBAAC,MAAM,IACL,SAAS,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,eAAe,2DAAG,MAAM,CAAC,EAChD,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAC,OAAO,EAChB,OAAO,EAAC,aAAa,EACrB,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC,CAAC,CAAC,IAAI;wBACR,oBAAC,MAAM,IACL,SAAS,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,eAAe,2DAAG,MAAM,CAAC,EAChD,UAAU,EAAC,QAAQ,EACnB,QAAQ,EAAC,OAAO,EAChB,OAAO,EAAC,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC3B,CACW,CACV,CACH,CACI,CACP,CACR,CAAC;AACJ,CAAC","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> {\n ariaLabels: TableProps['ariaLabels'];\n column: TableProps.ColumnDefinition<ItemType>;\n item: ItemType;\n onEditEnd: () => void;\n submitEdit: TableProps.SubmitEditFunction<ItemType>;\n __onRender?: () => void;\n}\n\nexport function InlineEditor<ItemType>({\n ariaLabels,\n item,\n column,\n onEditEnd,\n submitEdit,\n __onRender,\n}: InlineEditorProps<ItemType>) {\n const [currentEditLoading, setCurrentEditLoading] = useState(false);\n const [currentEditValue, setCurrentEditValue] = useState<Optional<any>>();\n\n const cellContext = {\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 {\n ariaLabel = undefined,\n validation = noop,\n errorIconAriaLabel,\n constraintText,\n editingCell,\n } = 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 constraintText={constraintText}\n __hideLabel={true}\n __disableGutters={true}\n i18nStrings={{ errorIconAriaLabel }}\n errorText={validation(item, currentEditValue)}\n >\n <div className={styles['body-cell-editor-row']}>\n {editingCell(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
+ {"version":3,"file":"inline-editor.js","sourceRoot":"lib/default/","sources":["table/body-cell/inline-editor.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,SAA2B,MAAM,sCAAsC,CAAC;AAE/E,+BAA+B;AAC/B,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAW7B,MAAM,UAAU,YAAY,CAAW,EACrC,UAAU,EACV,IAAI,EACJ,MAAM,EACN,SAAS,EACT,UAAU,EACV,UAAU,GACkB;;IAC5B,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,EAAiB,CAAC;IAE1E,MAAM,YAAY,GAAG,MAAM,CAAe,IAAI,CAAC,CAAC;IAEhD,MAAM,WAAW,GAAG;QAClB,YAAY,EAAE,gBAAgB;QAC9B,QAAQ,EAAE,mBAAmB;KAC9B,CAAC;IAEF,SAAS,UAAU,CAAC,MAAM,GAAG,KAAK;QAChC,IAAI,CAAC,MAAM,EAAE;YACX,mBAAmB,CAAC,SAAS,CAAC,CAAC;SAChC;QACD,SAAS,EAAE,CAAC;IACd,CAAC;IAED,SAAe,aAAa,CAAC,GAAoB;;;YAC/C,GAAG,CAAC,cAAc,EAAE,CAAC;YACrB,IAAI,gBAAgB,KAAK,SAAS,EAAE;gBAClC,UAAU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EACnD,SAAS,EAAE,YAAY;YAEvB,8BAAM,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC;gBACvE,oBAAC,SAAS,IACR,OAAO,EAAE,IAAI,EACb,KAAK,EAAE,SAAS,EAChB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,IAAI,EACjB,gBAAgB,EAAE,IAAI,EACtB,WAAW,EAAE,EAAE,kBAAkB,EAAE,EACnC,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE,gBAAgB,CAAC;oBAE7C,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC;wBAC3C,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC;wBAC/B,8BAAM,SAAS,EAAE,MAAM,CAAC,2BAA2B,CAAC;4BAClD,oBAAC,YAAY,IAAC,SAAS,EAAC,YAAY,EAAC,IAAI,EAAC,KAAK;gCAC5C,CAAC,kBAAkB,CAAC,CAAC,CAAC,CACrB,oBAAC,MAAM,IACL,SAAS,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,eAAe,2DAAG,MAAM,CAAC,EAChD,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAC,OAAO,EAChB,OAAO,EAAC,aAAa,EACrB,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC,CAAC,CAAC,IAAI;gCACR,oBAAC,MAAM,IACL,SAAS,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,eAAe,2DAAG,MAAM,CAAC,EAChD,UAAU,EAAC,QAAQ,EACnB,QAAQ,EAAC,OAAO,EAChB,OAAO,EAAC,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC3B,CACW,CACV,CACH,CACI,CACP,CACH,CACI,CACb,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, 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';\nimport FocusLock, { FocusLockRef } from '../../internal/components/focus-lock';\n\n// A function that does nothing\nconst noop = () => undefined;\n\ninterface InlineEditorProps<ItemType> {\n ariaLabels: TableProps['ariaLabels'];\n column: TableProps.ColumnDefinition<ItemType>;\n item: ItemType;\n onEditEnd: () => void;\n submitEdit: TableProps.SubmitEditFunction<ItemType>;\n __onRender?: () => void;\n}\n\nexport function InlineEditor<ItemType>({\n ariaLabels,\n item,\n column,\n onEditEnd,\n submitEdit,\n __onRender,\n}: InlineEditorProps<ItemType>) {\n const [currentEditLoading, setCurrentEditLoading] = useState(false);\n const [currentEditValue, setCurrentEditValue] = useState<Optional<any>>();\n\n const focusLockRef = useRef<FocusLockRef>(null);\n\n const cellContext = {\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 focusLockRef.current?.focusFirst();\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 {\n ariaLabel = undefined,\n validation = noop,\n errorIconAriaLabel,\n constraintText,\n editingCell,\n } = column.editConfig!;\n\n return (\n <FocusLock restoreFocus={true} ref={focusLockRef}>\n <div\n role=\"dialog\"\n ref={clickAwayRef}\n aria-label={ariaLabels?.activateEditLabel?.(column)}\n onKeyDown={handleEscape}\n >\n <form onSubmit={onSubmitClick} className={styles['body-cell-editor-form']}>\n <FormField\n stretch={true}\n label={ariaLabel}\n constraintText={constraintText}\n __hideLabel={true}\n __disableGutters={true}\n i18nStrings={{ errorIconAriaLabel }}\n errorText={validation(item, currentEditValue)}\n >\n <div className={styles['body-cell-editor-row']}>\n {editingCell(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 </div>\n </FocusLock>\n );\n}\n"]}
@@ -1,24 +1,24 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "header-cell": "awsui_header-cell_1spae_hh6b8_93",
5
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_hh6b8_105",
6
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_hh6b8_108",
7
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_hh6b8_108",
8
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_hh6b8_111",
9
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_hh6b8_114",
10
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_hh6b8_126",
11
- "sorting-icon": "awsui_sorting-icon_1spae_hh6b8_130",
12
- "edit-icon": "awsui_edit-icon_1spae_hh6b8_137",
13
- "header-cell-content": "awsui_header-cell-content_1spae_hh6b8_143",
14
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_hh6b8_172",
15
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_hh6b8_190",
16
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_hh6b8_190",
17
- "header-cell-text": "awsui_header-cell-text_1spae_hh6b8_204",
18
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_hh6b8_204",
19
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_hh6b8_210",
20
- "header-cell-descending": "awsui_header-cell-descending_1spae_hh6b8_211",
21
- "is-visual-refresh": "awsui_is-visual-refresh_1spae_hh6b8_221",
22
- "has-striped-rows": "awsui_has-striped-rows_1spae_hh6b8_232"
4
+ "header-cell": "awsui_header-cell_1spae_5olvr_93",
5
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_5olvr_105",
6
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_5olvr_108",
7
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_5olvr_108",
8
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_5olvr_111",
9
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_5olvr_114",
10
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_5olvr_129",
11
+ "sorting-icon": "awsui_sorting-icon_1spae_5olvr_133",
12
+ "edit-icon": "awsui_edit-icon_1spae_5olvr_141",
13
+ "header-cell-content": "awsui_header-cell-content_1spae_5olvr_147",
14
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_5olvr_176",
15
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_5olvr_194",
16
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_5olvr_194",
17
+ "header-cell-text": "awsui_header-cell-text_1spae_5olvr_208",
18
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_5olvr_213",
19
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_5olvr_219",
20
+ "header-cell-descending": "awsui_header-cell-descending_1spae_5olvr_220",
21
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_5olvr_230",
22
+ "has-striped-rows": "awsui_has-striped-rows_1spae_5olvr_241"
23
23
  };
24
24
 
@@ -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_hh6b8_93:not(#\9) {
93
+ .awsui_header-cell_1spae_5olvr_93:not(#\9) {
94
94
  position: relative;
95
95
  text-align: left;
96
96
  box-sizing: border-box;
@@ -102,63 +102,67 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
102
102
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-nkh1jb, grayscale);
103
103
  padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-scaled-xs-6859qs, 8px);
104
104
  }
105
- .awsui_header-cell-sticky_1spae_hh6b8_105:not(#\9) {
105
+ .awsui_header-cell-sticky_1spae_5olvr_105:not(#\9) {
106
106
  border-bottom: var(--border-table-sticky-width-h1tlxy, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
107
107
  }
108
- .awsui_header-cell-stuck_1spae_hh6b8_108:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_hh6b8_108) {
108
+ .awsui_header-cell-stuck_1spae_5olvr_108:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_5olvr_108) {
109
109
  border-bottom-color: transparent;
110
110
  }
111
- .awsui_header-cell-variant-full-page_1spae_hh6b8_108.awsui_header-cell-hidden_1spae_hh6b8_111:not(#\9) {
111
+ .awsui_header-cell-variant-full-page_1spae_5olvr_108.awsui_header-cell-hidden_1spae_5olvr_111:not(#\9) {
112
112
  border-bottom-color: transparent;
113
113
  }
114
- .awsui_header-cell_1spae_hh6b8_93:not(#\9):last-child, .awsui_header-cell_1spae_hh6b8_93.awsui_header-cell-sortable_1spae_hh6b8_114:not(#\9) {
114
+ .awsui_header-cell_1spae_5olvr_93:not(#\9):last-child, .awsui_header-cell_1spae_5olvr_93.awsui_header-cell-sortable_1spae_5olvr_114:not(#\9) {
115
115
  padding-right: var(--space-xs-rsr2qu, 8px);
116
116
  }
117
- .awsui_header-cell_1spae_hh6b8_93:not(#\9):not(:last-child):before {
117
+ .awsui_header-cell_1spae_5olvr_93:not(#\9):not(:last-child):before {
118
118
  content: "";
119
119
  position: absolute;
120
120
  right: 0;
121
- bottom: 25%;
122
- height: 50%;
121
+ bottom: 0;
122
+ top: 0;
123
+ min-height: var(--font-heading-xs-line-height-5x131j, 18px);
124
+ max-height: calc(100% - calc(2 * var(--space-xs-rsr2qu, 8px) + var(--space-xxxs-k2w98v, 2px)));
125
+ margin: auto;
123
126
  border-left: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
124
127
  box-sizing: border-box;
125
128
  }
126
- .awsui_header-cell-resizable_1spae_hh6b8_126:not(#\9):not(:last-child):before {
129
+ .awsui_header-cell-resizable_1spae_5olvr_129:not(#\9):not(:last-child):before {
127
130
  border-left-color: var(--color-border-divider-interactive-default-rcasvw, #e9ebed);
128
131
  }
129
132
 
130
- .awsui_sorting-icon_1spae_hh6b8_130:not(#\9) {
133
+ .awsui_sorting-icon_1spae_5olvr_133:not(#\9) {
131
134
  position: absolute;
132
- top: var(--space-scaled-xxs-95dhkm, 4px);
135
+ top: 50%;
136
+ transform: translateY(-50%);
133
137
  right: var(--space-xxs-ynfts5, 4px);
134
138
  color: var(--color-text-column-sorting-icon-q5sr09, #414d5c);
135
139
  }
136
140
 
137
- .awsui_edit-icon_1spae_hh6b8_137:not(#\9) {
141
+ .awsui_edit-icon_1spae_5olvr_141:not(#\9) {
138
142
  margin-left: var(--space-xxs-ynfts5, 4px);
139
143
  margin-top: var(--space-scaled-xxs-95dhkm, 4px);
140
144
  color: inherit;
141
145
  }
142
146
 
143
- .awsui_header-cell-content_1spae_hh6b8_143:not(#\9) {
147
+ .awsui_header-cell-content_1spae_5olvr_147:not(#\9) {
144
148
  position: relative;
145
149
  padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-s-hv8c1d, 12px);
146
150
  }
147
- .awsui_header-cell-sortable_1spae_hh6b8_114 > .awsui_header-cell-content_1spae_hh6b8_143:not(#\9) {
151
+ .awsui_header-cell-sortable_1spae_5olvr_114 > .awsui_header-cell-content_1spae_5olvr_147:not(#\9) {
148
152
  padding-right: calc(var(--space-xl-a39hup, 24px) + var(--space-xxs-ynfts5, 4px));
149
153
  }
150
- .awsui_header-cell-content_1spae_hh6b8_143:not(#\9):focus {
154
+ .awsui_header-cell-content_1spae_5olvr_147:not(#\9):focus {
151
155
  outline: none;
152
156
  text-decoration: none;
153
157
  }
154
- .awsui_header-cell-content_1spae_hh6b8_143[data-awsui-focus-visible=true]:not(#\9):focus {
158
+ .awsui_header-cell-content_1spae_5olvr_147[data-awsui-focus-visible=true]:not(#\9):focus {
155
159
  position: relative;
156
160
  }
157
- .awsui_header-cell-content_1spae_hh6b8_143[data-awsui-focus-visible=true]:not(#\9):focus {
161
+ .awsui_header-cell-content_1spae_5olvr_147[data-awsui-focus-visible=true]:not(#\9):focus {
158
162
  outline: 2px dotted transparent;
159
163
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
160
164
  }
161
- .awsui_header-cell-content_1spae_hh6b8_143[data-awsui-focus-visible=true]:not(#\9):focus::before {
165
+ .awsui_header-cell-content_1spae_5olvr_147[data-awsui-focus-visible=true]:not(#\9):focus::before {
162
166
  content: " ";
163
167
  display: block;
164
168
  position: absolute;
@@ -169,14 +173,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
169
173
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
170
174
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
171
175
  }
172
- .awsui_header-cell-content_1spae_hh6b8_143.awsui_header-cell-fake-focus_1spae_hh6b8_172:not(#\9) {
176
+ .awsui_header-cell-content_1spae_5olvr_147.awsui_header-cell-fake-focus_1spae_5olvr_176:not(#\9) {
173
177
  position: relative;
174
178
  }
175
- .awsui_header-cell-content_1spae_hh6b8_143.awsui_header-cell-fake-focus_1spae_hh6b8_172:not(#\9) {
179
+ .awsui_header-cell-content_1spae_5olvr_147.awsui_header-cell-fake-focus_1spae_5olvr_176:not(#\9) {
176
180
  outline: 2px dotted transparent;
177
181
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
178
182
  }
179
- .awsui_header-cell-content_1spae_hh6b8_143.awsui_header-cell-fake-focus_1spae_hh6b8_172:not(#\9)::before {
183
+ .awsui_header-cell-content_1spae_5olvr_147.awsui_header-cell-fake-focus_1spae_5olvr_176:not(#\9)::before {
180
184
  content: " ";
181
185
  display: block;
182
186
  position: absolute;
@@ -187,28 +191,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
187
191
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
188
192
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
189
193
  }
190
- .awsui_header-cell-disabled_1spae_hh6b8_190.awsui_header-cell-sorted_1spae_hh6b8_190 > .awsui_header-cell-content_1spae_hh6b8_143 > .awsui_sorting-icon_1spae_hh6b8_130:not(#\9) {
194
+ .awsui_header-cell-disabled_1spae_5olvr_194.awsui_header-cell-sorted_1spae_5olvr_194 > .awsui_header-cell-content_1spae_5olvr_147 > .awsui_sorting-icon_1spae_5olvr_133:not(#\9) {
191
195
  color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
192
196
  }
193
197
 
194
- .awsui_header-cell-sortable_1spae_hh6b8_114:not(#\9):not(.awsui_header-cell-disabled_1spae_hh6b8_190) > .awsui_header-cell-content_1spae_hh6b8_143 {
198
+ .awsui_header-cell-sortable_1spae_5olvr_114:not(#\9):not(.awsui_header-cell-disabled_1spae_5olvr_194) > .awsui_header-cell-content_1spae_5olvr_147 {
195
199
  cursor: pointer;
196
200
  }
197
- .awsui_header-cell-sortable_1spae_hh6b8_114:not(#\9):not(.awsui_header-cell-disabled_1spae_hh6b8_190) > .awsui_header-cell-content_1spae_hh6b8_143:hover, .awsui_header-cell-sortable_1spae_hh6b8_114:not(#\9):not(.awsui_header-cell-disabled_1spae_hh6b8_190).awsui_header-cell-sorted_1spae_hh6b8_190 > .awsui_header-cell-content_1spae_hh6b8_143 {
201
+ .awsui_header-cell-sortable_1spae_5olvr_114:not(#\9):not(.awsui_header-cell-disabled_1spae_5olvr_194) > .awsui_header-cell-content_1spae_5olvr_147:hover, .awsui_header-cell-sortable_1spae_5olvr_114:not(#\9):not(.awsui_header-cell-disabled_1spae_5olvr_194).awsui_header-cell-sorted_1spae_5olvr_194 > .awsui_header-cell-content_1spae_5olvr_147 {
198
202
  color: var(--color-text-interactive-active-vol84d, #000716);
199
203
  }
200
- .awsui_header-cell-sortable_1spae_hh6b8_114:not(#\9):not(.awsui_header-cell-disabled_1spae_hh6b8_190) > .awsui_header-cell-content_1spae_hh6b8_143:hover > .awsui_sorting-icon_1spae_hh6b8_130, .awsui_header-cell-sortable_1spae_hh6b8_114:not(#\9):not(.awsui_header-cell-disabled_1spae_hh6b8_190).awsui_header-cell-sorted_1spae_hh6b8_190 > .awsui_header-cell-content_1spae_hh6b8_143 > .awsui_sorting-icon_1spae_hh6b8_130 {
204
+ .awsui_header-cell-sortable_1spae_5olvr_114:not(#\9):not(.awsui_header-cell-disabled_1spae_5olvr_194) > .awsui_header-cell-content_1spae_5olvr_147:hover > .awsui_sorting-icon_1spae_5olvr_133, .awsui_header-cell-sortable_1spae_5olvr_114:not(#\9):not(.awsui_header-cell-disabled_1spae_5olvr_194).awsui_header-cell-sorted_1spae_5olvr_194 > .awsui_header-cell-content_1spae_5olvr_147 > .awsui_sorting-icon_1spae_5olvr_133 {
201
205
  color: var(--color-text-interactive-active-vol84d, #000716);
202
206
  }
203
207
 
204
- .awsui_header-cell-text_1spae_hh6b8_204:not(#\9):not(.awsui_header-cell-text-wrap_1spae_hh6b8_204) {
208
+ .awsui_header-cell-text_1spae_5olvr_208:not(#\9) {
209
+ line-height: var(--font-heading-xs-line-height-5x131j, 18px);
210
+ padding-top: calc(var(--space-xxxs-k2w98v, 2px) / 2);
211
+ padding-bottom: calc(var(--space-xxxs-k2w98v, 2px) / 2);
212
+ }
213
+ .awsui_header-cell-text_1spae_5olvr_208:not(#\9):not(.awsui_header-cell-text-wrap_1spae_5olvr_213) {
205
214
  white-space: nowrap;
206
215
  overflow: hidden;
207
216
  text-overflow: ellipsis;
208
217
  }
209
218
 
210
- .awsui_header-cell-ascending_1spae_hh6b8_210:not(#\9),
211
- .awsui_header-cell-descending_1spae_hh6b8_211:not(#\9) {
219
+ .awsui_header-cell-ascending_1spae_5olvr_219:not(#\9),
220
+ .awsui_header-cell-descending_1spae_5olvr_220:not(#\9) {
212
221
  /* used in test-utils */
213
222
  }
214
223
 
@@ -218,26 +227,26 @@ with the left edge of the table as closely as possible. If the
218
227
  last header cell is sortable the sort icon should align with the
219
228
  settings icon in the pagination slot.
220
229
  */
221
- .awsui_header-cell_1spae_hh6b8_93:not(#\9):not(.awsui_is-visual-refresh_1spae_hh6b8_221):first-child {
230
+ .awsui_header-cell_1spae_5olvr_93:not(#\9):not(.awsui_is-visual-refresh_1spae_5olvr_230):first-child {
222
231
  padding-left: var(--space-xs-rsr2qu, 8px);
223
232
  }
224
233
 
225
- .awsui_header-cell_1spae_hh6b8_93.awsui_is-visual-refresh_1spae_hh6b8_221:not(#\9) {
234
+ .awsui_header-cell_1spae_5olvr_93.awsui_is-visual-refresh_1spae_5olvr_230:not(#\9) {
226
235
  /*
227
236
  Striped rows requires additional left padding because the
228
237
  shaded background makes the child content appear too close
229
238
  to the table edge.
230
239
  */
231
240
  }
232
- .awsui_header-cell_1spae_hh6b8_93.awsui_is-visual-refresh_1spae_hh6b8_221:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_hh6b8_232) {
241
+ .awsui_header-cell_1spae_5olvr_93.awsui_is-visual-refresh_1spae_5olvr_230:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_5olvr_241) {
233
242
  padding-left: var(--space-xxxs-k2w98v, 2px);
234
243
  }
235
- .awsui_header-cell_1spae_hh6b8_93.awsui_is-visual-refresh_1spae_hh6b8_221:not(#\9):first-child.awsui_has-striped-rows_1spae_hh6b8_232 {
244
+ .awsui_header-cell_1spae_5olvr_93.awsui_is-visual-refresh_1spae_5olvr_230:not(#\9):first-child.awsui_has-striped-rows_1spae_5olvr_241 {
236
245
  padding-left: var(--space-xxs-ynfts5, 4px);
237
246
  }
238
- .awsui_header-cell_1spae_hh6b8_93.awsui_is-visual-refresh_1spae_hh6b8_221:not(#\9):first-child > .awsui_header-cell-content_1spae_hh6b8_143 {
247
+ .awsui_header-cell_1spae_5olvr_93.awsui_is-visual-refresh_1spae_5olvr_230:not(#\9):first-child > .awsui_header-cell-content_1spae_5olvr_147 {
239
248
  padding-left: 0;
240
249
  }
241
- .awsui_header-cell_1spae_hh6b8_93.awsui_is-visual-refresh_1spae_hh6b8_221:not(#\9):last-child.awsui_header-cell-sortable_1spae_hh6b8_114 {
250
+ .awsui_header-cell_1spae_5olvr_93.awsui_is-visual-refresh_1spae_5olvr_230:not(#\9):last-child.awsui_header-cell-sortable_1spae_5olvr_114 {
242
251
  padding-right: var(--space-xxxs-k2w98v, 2px);
243
252
  }
@@ -2,24 +2,24 @@
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_hh6b8_93",
6
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_hh6b8_105",
7
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_hh6b8_108",
8
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_hh6b8_108",
9
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_hh6b8_111",
10
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_hh6b8_114",
11
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_hh6b8_126",
12
- "sorting-icon": "awsui_sorting-icon_1spae_hh6b8_130",
13
- "edit-icon": "awsui_edit-icon_1spae_hh6b8_137",
14
- "header-cell-content": "awsui_header-cell-content_1spae_hh6b8_143",
15
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_hh6b8_172",
16
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_hh6b8_190",
17
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_hh6b8_190",
18
- "header-cell-text": "awsui_header-cell-text_1spae_hh6b8_204",
19
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_hh6b8_204",
20
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_hh6b8_210",
21
- "header-cell-descending": "awsui_header-cell-descending_1spae_hh6b8_211",
22
- "is-visual-refresh": "awsui_is-visual-refresh_1spae_hh6b8_221",
23
- "has-striped-rows": "awsui_has-striped-rows_1spae_hh6b8_232"
5
+ "header-cell": "awsui_header-cell_1spae_5olvr_93",
6
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_5olvr_105",
7
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_5olvr_108",
8
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_5olvr_108",
9
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_5olvr_111",
10
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_5olvr_114",
11
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_5olvr_129",
12
+ "sorting-icon": "awsui_sorting-icon_1spae_5olvr_133",
13
+ "edit-icon": "awsui_edit-icon_1spae_5olvr_141",
14
+ "header-cell-content": "awsui_header-cell-content_1spae_5olvr_147",
15
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_5olvr_176",
16
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_5olvr_194",
17
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_5olvr_194",
18
+ "header-cell-text": "awsui_header-cell-text_1spae_5olvr_208",
19
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_5olvr_213",
20
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_5olvr_219",
21
+ "header-cell-descending": "awsui_header-cell-descending_1spae_5olvr_220",
22
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_5olvr_230",
23
+ "has-striped-rows": "awsui_has-striped-rows_1spae_5olvr_241"
24
24
  };
25
25
 
@@ -1,11 +1,11 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "resize-active": "awsui_resize-active_x7peu_174hd_93",
5
- "resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_174hd_93",
6
- "resizer": "awsui_resizer_x7peu_174hd_98",
7
- "resizer-active": "awsui_resizer-active_x7peu_174hd_114",
8
- "has-focus": "awsui_has-focus_x7peu_174hd_123",
9
- "tracker": "awsui_tracker_x7peu_174hd_146"
4
+ "resize-active": "awsui_resize-active_x7peu_1nqyy_93",
5
+ "resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_1nqyy_93",
6
+ "resizer": "awsui_resizer_x7peu_1nqyy_98",
7
+ "resizer-active": "awsui_resizer-active_x7peu_1nqyy_114",
8
+ "has-focus": "awsui_has-focus_x7peu_1nqyy_126",
9
+ "tracker": "awsui_tracker_x7peu_1nqyy_149"
10
10
  };
11
11
 
@@ -90,13 +90,13 @@ 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_resize-active_x7peu_174hd_93:not(#\9):not(.awsui_resize-active-with-focus_x7peu_174hd_93) * {
93
+ .awsui_resize-active_x7peu_1nqyy_93:not(#\9):not(.awsui_resize-active-with-focus_x7peu_1nqyy_93) * {
94
94
  cursor: col-resize;
95
95
  -webkit-user-select: none;
96
96
  user-select: none;
97
97
  }
98
98
 
99
- .awsui_resizer_x7peu_174hd_98:not(#\9) {
99
+ .awsui_resizer_x7peu_1nqyy_98:not(#\9) {
100
100
  bottom: 0;
101
101
  cursor: col-resize;
102
102
  position: absolute;
@@ -105,31 +105,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
105
105
  width: var(--space-l-4vl6xu, 20px);
106
106
  z-index: 10;
107
107
  }
108
- .awsui_resize-active_x7peu_174hd_93 .awsui_resizer_x7peu_174hd_98:not(#\9) {
108
+ .awsui_resize-active_x7peu_1nqyy_93 .awsui_resizer_x7peu_1nqyy_98:not(#\9) {
109
109
  pointer-events: none;
110
110
  }
111
- th:not(#\9):last-child > .awsui_resizer_x7peu_174hd_98 {
111
+ th:not(#\9):last-child > .awsui_resizer_x7peu_1nqyy_98 {
112
112
  width: calc(var(--space-l-4vl6xu, 20px) / 2);
113
113
  right: 0;
114
114
  }
115
- th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_174hd_98:hover::before, th:not(#\9):not(:last-child) > .awsui_resizer-active_x7peu_174hd_114::before {
115
+ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_1nqyy_98:hover::before, th:not(#\9):not(:last-child) > .awsui_resizer-active_x7peu_1nqyy_114::before {
116
116
  content: "";
117
117
  position: absolute;
118
118
  left: calc(var(--space-l-4vl6xu, 20px) / 2 - 2px);
119
- bottom: 25%;
120
- height: 50%;
121
- box-sizing: border-box;
119
+ bottom: 0;
120
+ top: 0;
121
+ min-height: var(--font-heading-xs-line-height-5x131j, 18px);
122
+ max-height: calc(100% - calc(2 * var(--space-xs-rsr2qu, 8px) + var(--space-xxxs-k2w98v, 2px)));
123
+ margin: auto;
122
124
  border-left: 2px solid var(--color-border-divider-active-nnnfx9, #7d8998);
125
+ box-sizing: border-box;
123
126
  }
124
- .awsui_resizer_x7peu_174hd_98.awsui_has-focus_x7peu_174hd_123:not(#\9) {
127
+ .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9) {
125
128
  position: relative;
126
129
  position: absolute;
127
130
  }
128
- .awsui_resizer_x7peu_174hd_98.awsui_has-focus_x7peu_174hd_123:not(#\9) {
131
+ .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9) {
129
132
  outline: 2px dotted transparent;
130
133
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
131
134
  }
132
- .awsui_resizer_x7peu_174hd_98.awsui_has-focus_x7peu_174hd_123:not(#\9)::before {
135
+ .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9)::before {
133
136
  content: " ";
134
137
  display: block;
135
138
  position: absolute;
@@ -140,11 +143,11 @@ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_174hd_98:hover::before, th:n
140
143
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
141
144
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
142
145
  }
143
- .awsui_resizer_x7peu_174hd_98.awsui_has-focus_x7peu_174hd_123:not(#\9)::before {
146
+ .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9)::before {
144
147
  box-shadow: inset 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
145
148
  }
146
149
 
147
- .awsui_tracker_x7peu_174hd_146:not(#\9) {
150
+ .awsui_tracker_x7peu_1nqyy_149:not(#\9) {
148
151
  display: none;
149
152
  position: absolute;
150
153
  border-left: var(--border-divider-list-width-hacikr, 1px) dashed var(--color-border-divider-active-nnnfx9, #7d8998);
@@ -152,6 +155,6 @@ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_174hd_98:hover::before, th:n
152
155
  top: 0;
153
156
  bottom: 0;
154
157
  }
155
- .awsui_resize-active_x7peu_174hd_93 .awsui_tracker_x7peu_174hd_146:not(#\9) {
158
+ .awsui_resize-active_x7peu_1nqyy_93 .awsui_tracker_x7peu_1nqyy_149:not(#\9) {
156
159
  display: block;
157
160
  }
@@ -2,11 +2,11 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "resize-active": "awsui_resize-active_x7peu_174hd_93",
6
- "resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_174hd_93",
7
- "resizer": "awsui_resizer_x7peu_174hd_98",
8
- "resizer-active": "awsui_resizer-active_x7peu_174hd_114",
9
- "has-focus": "awsui_has-focus_x7peu_174hd_123",
10
- "tracker": "awsui_tracker_x7peu_174hd_146"
5
+ "resize-active": "awsui_resize-active_x7peu_1nqyy_93",
6
+ "resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_1nqyy_93",
7
+ "resizer": "awsui_resizer_x7peu_1nqyy_98",
8
+ "resizer-active": "awsui_resizer-active_x7peu_1nqyy_114",
9
+ "has-focus": "awsui_has-focus_x7peu_1nqyy_126",
10
+ "tracker": "awsui_tracker_x7peu_1nqyy_149"
11
11
  };
12
12
 
@@ -1,26 +1,26 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "tabs-header": "awsui_tabs-header_14rmt_515vb_186",
5
- "tabs-header-list": "awsui_tabs-header-list_14rmt_515vb_192",
6
- "pagination-button": "awsui_pagination-button_14rmt_515vb_207",
7
- "pagination-button-left": "awsui_pagination-button-left_14rmt_515vb_212",
8
- "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_515vb_215",
9
- "pagination-button-right": "awsui_pagination-button-right_14rmt_515vb_219",
10
- "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_515vb_222",
11
- "tabs-tab": "awsui_tabs-tab_14rmt_515vb_227",
12
- "tabs-tab-label": "awsui_tabs-tab-label_14rmt_515vb_238",
13
- "tabs-tab-link": "awsui_tabs-tab-link_14rmt_515vb_254",
14
- "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_515vb_313",
15
- "refresh": "awsui_refresh_14rmt_515vb_331",
16
- "tabs-tab-active": "awsui_tabs-tab-active_14rmt_515vb_345",
17
- "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_515vb_352",
18
- "root": "awsui_root_14rmt_515vb_356",
19
- "tabs": "awsui_tabs_14rmt_515vb_186",
20
- "tabs-content": "awsui_tabs-content_14rmt_515vb_375",
21
- "tabs-content-active": "awsui_tabs-content-active_14rmt_515vb_379",
22
- "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_515vb_389",
23
- "with-paddings": "awsui_with-paddings_14rmt_515vb_389",
24
- "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_515vb_393"
4
+ "tabs-header": "awsui_tabs-header_14rmt_14l19_186",
5
+ "tabs-header-list": "awsui_tabs-header-list_14rmt_14l19_192",
6
+ "pagination-button": "awsui_pagination-button_14rmt_14l19_207",
7
+ "pagination-button-left": "awsui_pagination-button-left_14rmt_14l19_212",
8
+ "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_14l19_215",
9
+ "pagination-button-right": "awsui_pagination-button-right_14rmt_14l19_219",
10
+ "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_14l19_222",
11
+ "tabs-tab": "awsui_tabs-tab_14rmt_14l19_227",
12
+ "tabs-tab-label": "awsui_tabs-tab-label_14rmt_14l19_238",
13
+ "tabs-tab-link": "awsui_tabs-tab-link_14rmt_14l19_254",
14
+ "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_14l19_313",
15
+ "refresh": "awsui_refresh_14rmt_14l19_331",
16
+ "tabs-tab-active": "awsui_tabs-tab-active_14rmt_14l19_345",
17
+ "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_14l19_352",
18
+ "root": "awsui_root_14rmt_14l19_356",
19
+ "tabs": "awsui_tabs_14rmt_14l19_186",
20
+ "tabs-content": "awsui_tabs-content_14rmt_14l19_375",
21
+ "tabs-content-active": "awsui_tabs-content-active_14rmt_14l19_379",
22
+ "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_14l19_389",
23
+ "with-paddings": "awsui_with-paddings_14rmt_14l19_389",
24
+ "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_14l19_393"
25
25
  };
26
26