@cloudscape-design/components-themeable 3.0.1221 → 3.0.1223

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 (126) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +142 -140
  3. package/lib/internal/scss/modal/styles.scss +43 -1
  4. package/lib/internal/scss/table/styles.scss +1 -3
  5. package/lib/internal/template/alert/styles.css.js +27 -27
  6. package/lib/internal/template/alert/styles.scoped.css +50 -50
  7. package/lib/internal/template/alert/styles.selectors.js +27 -27
  8. package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
  9. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
  10. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
  11. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  12. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  13. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  14. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  15. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
  16. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  17. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  18. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
  19. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  22. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  23. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
  24. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
  25. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
  26. package/lib/internal/template/attribute-editor/styles.css.js +15 -15
  27. package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
  28. package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
  29. package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
  30. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
  31. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
  32. package/lib/internal/template/button/styles.css.js +22 -22
  33. package/lib/internal/template/button/styles.scoped.css +256 -256
  34. package/lib/internal/template/button/styles.selectors.js +22 -22
  35. package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
  36. package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
  37. package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
  38. package/lib/internal/template/checkbox/styles.css.js +3 -3
  39. package/lib/internal/template/checkbox/styles.scoped.css +11 -11
  40. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  41. package/lib/internal/template/content-layout/styles.css.js +14 -14
  42. package/lib/internal/template/content-layout/styles.scoped.css +27 -27
  43. package/lib/internal/template/content-layout/styles.selectors.js +14 -14
  44. package/lib/internal/template/flashbar/styles.css.js +50 -50
  45. package/lib/internal/template/flashbar/styles.scoped.css +187 -187
  46. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  47. package/lib/internal/template/help-panel/styles.css.js +6 -6
  48. package/lib/internal/template/help-panel/styles.scoped.css +73 -73
  49. package/lib/internal/template/help-panel/styles.selectors.js +6 -6
  50. package/lib/internal/template/input/styles.css.js +13 -13
  51. package/lib/internal/template/input/styles.scoped.css +74 -74
  52. package/lib/internal/template/input/styles.selectors.js +13 -13
  53. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  54. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
  55. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
  56. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
  57. package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
  58. package/lib/internal/template/internal/components/dropdown/styles.scoped.css +39 -39
  59. package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
  60. package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
  61. package/lib/internal/template/internal/components/radio-button/styles.scoped.css +18 -18
  62. package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
  63. package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
  64. package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
  65. package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
  66. package/lib/internal/template/internal/environment.js +2 -2
  67. package/lib/internal/template/internal/environment.json +2 -2
  68. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +2 -0
  69. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  70. package/lib/internal/template/internal/generated/custom-css-properties/index.js +141 -139
  71. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  72. package/lib/internal/template/link/styles.css.js +20 -20
  73. package/lib/internal/template/link/styles.scoped.css +103 -103
  74. package/lib/internal/template/link/styles.selectors.js +20 -20
  75. package/lib/internal/template/modal/index.d.ts +1 -1
  76. package/lib/internal/template/modal/index.d.ts.map +1 -1
  77. package/lib/internal/template/modal/index.js +6 -3
  78. package/lib/internal/template/modal/index.js.map +1 -1
  79. package/lib/internal/template/modal/interfaces.d.ts +28 -3
  80. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  81. package/lib/internal/template/modal/interfaces.js.map +1 -1
  82. package/lib/internal/template/modal/internal.d.ts +2 -0
  83. package/lib/internal/template/modal/internal.d.ts.map +1 -1
  84. package/lib/internal/template/modal/internal.js +20 -14
  85. package/lib/internal/template/modal/internal.js.map +1 -1
  86. package/lib/internal/template/modal/styles.css.js +31 -23
  87. package/lib/internal/template/modal/styles.scoped.css +70 -39
  88. package/lib/internal/template/modal/styles.selectors.js +31 -23
  89. package/lib/internal/template/modal/use-modal-dimensions.d.ts +17 -0
  90. package/lib/internal/template/modal/use-modal-dimensions.d.ts.map +1 -0
  91. package/lib/internal/template/modal/use-modal-dimensions.js +37 -0
  92. package/lib/internal/template/modal/use-modal-dimensions.js.map +1 -0
  93. package/lib/internal/template/progress-bar/styles.css.js +18 -18
  94. package/lib/internal/template/progress-bar/styles.scoped.css +48 -48
  95. package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
  96. package/lib/internal/template/prompt-input/styles.css.js +17 -17
  97. package/lib/internal/template/prompt-input/styles.scoped.css +79 -79
  98. package/lib/internal/template/prompt-input/styles.selectors.js +17 -17
  99. package/lib/internal/template/segmented-control/styles.css.js +16 -16
  100. package/lib/internal/template/segmented-control/styles.scoped.css +46 -46
  101. package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
  102. package/lib/internal/template/slider/styles.css.js +26 -26
  103. package/lib/internal/template/slider/styles.scoped.css +165 -165
  104. package/lib/internal/template/slider/styles.selectors.js +26 -26
  105. package/lib/internal/template/spinner/styles.css.js +13 -13
  106. package/lib/internal/template/spinner/styles.scoped.css +39 -39
  107. package/lib/internal/template/spinner/styles.selectors.js +13 -13
  108. package/lib/internal/template/table/styles.css.js +34 -34
  109. package/lib/internal/template/table/styles.scoped.css +42 -44
  110. package/lib/internal/template/table/styles.selectors.js +34 -34
  111. package/lib/internal/template/tabs/styles.css.js +30 -30
  112. package/lib/internal/template/tabs/styles.scoped.css +76 -76
  113. package/lib/internal/template/tabs/styles.selectors.js +30 -30
  114. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  115. package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
  116. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  117. package/lib/internal/template/text-content/styles.css.js +1 -1
  118. package/lib/internal/template/text-content/styles.scoped.css +66 -66
  119. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  120. package/lib/internal/template/textarea/styles.css.js +5 -5
  121. package/lib/internal/template/textarea/styles.scoped.css +45 -45
  122. package/lib/internal/template/textarea/styles.selectors.js +5 -5
  123. package/lib/internal/template/toggle/styles.css.js +10 -10
  124. package/lib/internal/template/toggle/styles.scoped.css +23 -23
  125. package/lib/internal/template/toggle/styles.selectors.js +10 -10
  126. package/package.json +1 -1
@@ -2,28 +2,36 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "dialog": "awsui_dialog_1d2i7_766d8_169",
6
- "modal-slide-up": "awsui_modal-slide-up_1d2i7_766d8_1",
7
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_766d8_1",
8
- "refresh": "awsui_refresh_1d2i7_766d8_192",
9
- "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_766d8_1",
10
- "root": "awsui_root_1d2i7_766d8_225",
11
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_766d8_1",
12
- "hidden": "awsui_hidden_1d2i7_766d8_302",
13
- "focus-lock": "awsui_focus-lock_1d2i7_766d8_306",
14
- "small": "awsui_small_1d2i7_766d8_326",
15
- "medium": "awsui_medium_1d2i7_766d8_329",
16
- "large": "awsui_large_1d2i7_766d8_332",
17
- "max": "awsui_max_1d2i7_766d8_335",
18
- "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_766d8_335",
19
- "container": "awsui_container_1d2i7_766d8_341",
20
- "content": "awsui_content_1d2i7_766d8_382",
21
- "no-paddings": "awsui_no-paddings_1d2i7_766d8_387",
22
- "header": "awsui_header_1d2i7_766d8_392",
23
- "header--text": "awsui_header--text_1d2i7_766d8_404",
24
- "footer": "awsui_footer_1d2i7_766d8_408",
25
- "footer--stuck": "awsui_footer--stuck_1d2i7_766d8_417",
26
- "dismiss-control": "awsui_dismiss-control_1d2i7_766d8_429",
27
- "modal-open": "awsui_modal-open_1d2i7_766d8_433"
5
+ "dialog": "awsui_dialog_1d2i7_jna9e_169",
6
+ "modal-slide-up": "awsui_modal-slide-up_1d2i7_jna9e_1",
7
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_jna9e_1",
8
+ "refresh": "awsui_refresh_1d2i7_jna9e_192",
9
+ "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_jna9e_1",
10
+ "root": "awsui_root_1d2i7_jna9e_225",
11
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_jna9e_1",
12
+ "hidden": "awsui_hidden_1d2i7_jna9e_302",
13
+ "focus-lock": "awsui_focus-lock_1d2i7_jna9e_306",
14
+ "position-top": "awsui_position-top_1d2i7_jna9e_314",
15
+ "position-center": "awsui_position-center_1d2i7_jna9e_317",
16
+ "small": "awsui_small_1d2i7_jna9e_331",
17
+ "medium": "awsui_medium_1d2i7_jna9e_334",
18
+ "large": "awsui_large_1d2i7_jna9e_337",
19
+ "x-large": "awsui_x-large_1d2i7_jna9e_340",
20
+ "xx-large": "awsui_xx-large_1d2i7_jna9e_343",
21
+ "custom-width": "awsui_custom-width_1d2i7_jna9e_346",
22
+ "max": "awsui_max_1d2i7_jna9e_349",
23
+ "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_jna9e_349",
24
+ "custom-height": "awsui_custom-height_1d2i7_jna9e_354",
25
+ "container": "awsui_container_1d2i7_jna9e_359",
26
+ "custom-height-container": "awsui_custom-height-container_1d2i7_jna9e_399",
27
+ "content": "awsui_content_1d2i7_jna9e_405",
28
+ "no-paddings": "awsui_no-paddings_1d2i7_jna9e_410",
29
+ "custom-height-content": "awsui_custom-height-content_1d2i7_jna9e_414",
30
+ "header": "awsui_header_1d2i7_jna9e_419",
31
+ "header--text": "awsui_header--text_1d2i7_jna9e_431",
32
+ "footer": "awsui_footer_1d2i7_jna9e_435",
33
+ "footer--stuck": "awsui_footer--stuck_1d2i7_jna9e_448",
34
+ "dismiss-control": "awsui_dismiss-control_1d2i7_jna9e_460",
35
+ "modal-open": "awsui_modal-open_1d2i7_jna9e_464"
28
36
  };
29
37
 
@@ -0,0 +1,17 @@
1
+ interface UseModalDimensionsProps {
2
+ height?: number;
3
+ width?: number;
4
+ hasFooter: boolean;
5
+ }
6
+ export declare function useModalDimensions({ height, width, hasFooter }: UseModalDimensionsProps): {
7
+ footerRef: import("react").Ref<any>;
8
+ headerRef: import("react").Ref<any>;
9
+ footerHeight: number | null;
10
+ hasCustomHeight: boolean;
11
+ hasCustomWidth: boolean;
12
+ dialogCustomStyles: {
13
+ [x: string]: string;
14
+ };
15
+ };
16
+ export {};
17
+ //# sourceMappingURL=use-modal-dimensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-modal-dimensions.d.ts","sourceRoot":"","sources":["../../../src/modal/use-modal-dimensions.ts"],"names":[],"mappings":"AAWA,UAAU,uBAAuB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,uBAAuB;;;;;;;;;EAqCvF"}
@@ -0,0 +1,37 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { useContainerQuery } from '@cloudscape-design/component-toolkit';
4
+ import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
5
+ import customCssProps from '../internal/generated/custom-css-properties';
6
+ import { isDevelopment } from '../internal/is-development';
7
+ const MIN_CONTENT_HEIGHT = 60;
8
+ const MIN_MODAL_WIDTH = 320;
9
+ export function useModalDimensions({ height, width, hasFooter }) {
10
+ const [footerHeight, footerRef] = useContainerQuery(rect => rect.borderBoxHeight);
11
+ const [headerHeight, headerRef] = useContainerQuery(rect => rect.borderBoxHeight);
12
+ const minModalHeight = (headerHeight !== null && headerHeight !== void 0 ? headerHeight : 0) + (hasFooter ? (footerHeight !== null && footerHeight !== void 0 ? footerHeight : 0) : 0) + MIN_CONTENT_HEIGHT;
13
+ const constrainedHeight = Math.max(height !== null && height !== void 0 ? height : 0, minModalHeight);
14
+ const constrainedWidth = Math.max(width !== null && width !== void 0 ? width : 0, MIN_MODAL_WIDTH);
15
+ const hasCustomHeight = height !== undefined && !Number.isNaN(height);
16
+ const hasCustomWidth = width !== undefined && !Number.isNaN(width);
17
+ if (isDevelopment) {
18
+ if (hasCustomHeight && constrainedHeight !== height) {
19
+ warnOnce('Modal', `Height (${height}px) is too small. Modal requires at least ${MIN_CONTENT_HEIGHT}px for content plus header/footer space (total: ${minModalHeight}px). Height will be adjusted to ${constrainedHeight}px.`);
20
+ }
21
+ if (hasCustomWidth && constrainedWidth !== width) {
22
+ warnOnce('Modal', `Width (${width}px) is below minimum (${MIN_MODAL_WIDTH}px) and will be adjusted to ${constrainedWidth}px.`);
23
+ }
24
+ }
25
+ return {
26
+ footerRef,
27
+ headerRef,
28
+ footerHeight,
29
+ hasCustomHeight,
30
+ hasCustomWidth,
31
+ dialogCustomStyles: {
32
+ ...(hasCustomWidth && { [customCssProps.modalCustomWidth]: `${constrainedWidth}px` }),
33
+ ...(hasCustomHeight && { [customCssProps.modalCustomHeight]: `${constrainedHeight}px` }),
34
+ },
35
+ };
36
+ }
37
+ //# sourceMappingURL=use-modal-dimensions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-modal-dimensions.js","sourceRoot":"","sources":["../../../src/modal/use-modal-dimensions.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,eAAe,GAAG,GAAG,CAAC;AAQ5B,MAAM,UAAU,kBAAkB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAA2B;IACtF,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAClF,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAElF,MAAM,cAAc,GAAG,CAAC,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC;IACxG,MAAM,iBAAiB,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,CAAC,EAAE,cAAc,CAAC,CAAC;IAChE,MAAM,gBAAgB,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,EAAE,eAAe,CAAC,CAAC;IAE/D,MAAM,eAAe,GAAG,MAAM,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtE,MAAM,cAAc,GAAG,KAAK,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEnE,IAAI,aAAa,EAAE,CAAC;QAClB,IAAI,eAAe,IAAI,iBAAiB,KAAK,MAAM,EAAE,CAAC;YACpD,QAAQ,CACN,OAAO,EACP,WAAW,MAAM,6CAA6C,kBAAkB,mDAAmD,cAAc,mCAAmC,iBAAiB,KAAK,CAC3M,CAAC;QACJ,CAAC;QACD,IAAI,cAAc,IAAI,gBAAgB,KAAK,KAAK,EAAE,CAAC;YACjD,QAAQ,CACN,OAAO,EACP,UAAU,KAAK,yBAAyB,eAAe,+BAA+B,gBAAgB,KAAK,CAC5G,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO;QACL,SAAS;QACT,SAAS;QACT,YAAY;QACZ,eAAe;QACf,cAAc;QACd,kBAAkB,EAAE;YAClB,GAAG,CAAC,cAAc,IAAI,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,GAAG,gBAAgB,IAAI,EAAE,CAAC;YACrF,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,GAAG,iBAAiB,IAAI,EAAE,CAAC;SACzF;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { isDevelopment } from '../internal/is-development';\n\nconst MIN_CONTENT_HEIGHT = 60;\nconst MIN_MODAL_WIDTH = 320;\n\ninterface UseModalDimensionsProps {\n height?: number;\n width?: number;\n hasFooter: boolean;\n}\n\nexport function useModalDimensions({ height, width, hasFooter }: UseModalDimensionsProps) {\n const [footerHeight, footerRef] = useContainerQuery(rect => rect.borderBoxHeight);\n const [headerHeight, headerRef] = useContainerQuery(rect => rect.borderBoxHeight);\n\n const minModalHeight = (headerHeight ?? 0) + (hasFooter ? (footerHeight ?? 0) : 0) + MIN_CONTENT_HEIGHT;\n const constrainedHeight = Math.max(height ?? 0, minModalHeight);\n const constrainedWidth = Math.max(width ?? 0, MIN_MODAL_WIDTH);\n\n const hasCustomHeight = height !== undefined && !Number.isNaN(height);\n const hasCustomWidth = width !== undefined && !Number.isNaN(width);\n\n if (isDevelopment) {\n if (hasCustomHeight && constrainedHeight !== height) {\n warnOnce(\n 'Modal',\n `Height (${height}px) is too small. Modal requires at least ${MIN_CONTENT_HEIGHT}px for content plus header/footer space (total: ${minModalHeight}px). Height will be adjusted to ${constrainedHeight}px.`\n );\n }\n if (hasCustomWidth && constrainedWidth !== width) {\n warnOnce(\n 'Modal',\n `Width (${width}px) is below minimum (${MIN_MODAL_WIDTH}px) and will be adjusted to ${constrainedWidth}px.`\n );\n }\n }\n\n return {\n footerRef,\n headerRef,\n footerHeight,\n hasCustomHeight,\n hasCustomWidth,\n dialogCustomStyles: {\n ...(hasCustomWidth && { [customCssProps.modalCustomWidth]: `${constrainedWidth}px` }),\n ...(hasCustomHeight && { [customCssProps.modalCustomHeight]: `${constrainedHeight}px` }),\n },\n };\n}\n"]}
@@ -1,23 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "progress": "awsui_progress_11huc_1exem_189",
5
- "result-state": "awsui_result-state_11huc_1exem_203",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_1exem_1",
7
- "root": "awsui_root_11huc_1exem_225",
8
- "with-result-button": "awsui_with-result-button_11huc_1exem_257",
9
- "result-text": "awsui_result-text_11huc_1exem_261",
10
- "result-container-error": "awsui_result-container-error_11huc_1exem_265",
11
- "result-container-success": "awsui_result-container-success_11huc_1exem_265",
12
- "result-button": "awsui_result-button_11huc_1exem_269",
13
- "word-wrap": "awsui_word-wrap_11huc_1exem_275",
14
- "label-flash": "awsui_label-flash_11huc_1exem_280",
15
- "label-key-value": "awsui_label-key-value_11huc_1exem_284",
16
- "flash": "awsui_flash_11huc_1exem_292",
17
- "progress-container": "awsui_progress-container_11huc_1exem_296",
18
- "percentage-container": "awsui_percentage-container_11huc_1exem_303",
19
- "percentage": "awsui_percentage_11huc_1exem_303",
20
- "complete": "awsui_complete_11huc_1exem_349",
21
- "additional-info": "awsui_additional-info_11huc_1exem_363"
4
+ "progress": "awsui_progress_11huc_1idgh_189",
5
+ "result-state": "awsui_result-state_11huc_1idgh_203",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_1idgh_1",
7
+ "root": "awsui_root_11huc_1idgh_225",
8
+ "with-result-button": "awsui_with-result-button_11huc_1idgh_257",
9
+ "result-text": "awsui_result-text_11huc_1idgh_261",
10
+ "result-container-error": "awsui_result-container-error_11huc_1idgh_265",
11
+ "result-container-success": "awsui_result-container-success_11huc_1idgh_265",
12
+ "result-button": "awsui_result-button_11huc_1idgh_269",
13
+ "word-wrap": "awsui_word-wrap_11huc_1idgh_275",
14
+ "label-flash": "awsui_label-flash_11huc_1idgh_280",
15
+ "label-key-value": "awsui_label-key-value_11huc_1idgh_284",
16
+ "flash": "awsui_flash_11huc_1idgh_292",
17
+ "progress-container": "awsui_progress-container_11huc_1idgh_296",
18
+ "percentage-container": "awsui_percentage-container_11huc_1idgh_303",
19
+ "percentage": "awsui_percentage_11huc_1idgh_303",
20
+ "complete": "awsui_complete_11huc_1idgh_349",
21
+ "additional-info": "awsui_additional-info_11huc_1idgh_363"
22
22
  };
23
23
 
@@ -186,27 +186,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
186
186
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
187
187
  SPDX-License-Identifier: Apache-2.0
188
188
  */
189
- .awsui_progress_11huc_1exem_189:not(#\9)::-webkit-progress-value {
189
+ .awsui_progress_11huc_1idgh_189:not(#\9)::-webkit-progress-value {
190
190
  -webkit-transition: width var(--motion-duration-moderate-24bai8, 135ms) linear;
191
191
  transition: width var(--motion-duration-moderate-24bai8, 135ms) linear;
192
192
  }
193
193
  @media (prefers-reduced-motion: reduce) {
194
- .awsui_progress_11huc_1exem_189:not(#\9)::-webkit-progress-value {
194
+ .awsui_progress_11huc_1idgh_189:not(#\9)::-webkit-progress-value {
195
195
  animation: none;
196
196
  -webkit-transition: none;
197
197
  transition: none;
198
198
  }
199
199
  }
200
- .awsui-motion-disabled .awsui_progress_11huc_1exem_189:not(#\9)::-webkit-progress-value, .awsui-mode-entering .awsui_progress_11huc_1exem_189:not(#\9)::-webkit-progress-value {
200
+ .awsui-motion-disabled .awsui_progress_11huc_1idgh_189:not(#\9)::-webkit-progress-value, .awsui-mode-entering .awsui_progress_11huc_1idgh_189:not(#\9)::-webkit-progress-value {
201
201
  animation: none;
202
202
  -webkit-transition: none;
203
203
  transition: none;
204
204
  }
205
205
 
206
- .awsui_result-state_11huc_1exem_203:not(#\9) {
207
- animation: awsui_awsui-motion-fade-in_11huc_1exem_1 var(--motion-duration-transition-show-paced-0w35xp, 180ms) var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
206
+ .awsui_result-state_11huc_1idgh_203:not(#\9) {
207
+ animation: awsui_awsui-motion-fade-in_11huc_1idgh_1 var(--motion-duration-transition-show-paced-0w35xp, 180ms) var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
208
208
  }
209
- @keyframes awsui_awsui-motion-fade-in_11huc_1exem_1 {
209
+ @keyframes awsui_awsui-motion-fade-in_11huc_1idgh_1 {
210
210
  from {
211
211
  opacity: 0.2;
212
212
  }
@@ -215,17 +215,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
215
215
  }
216
216
  }
217
217
  @media (prefers-reduced-motion: reduce) {
218
- .awsui_result-state_11huc_1exem_203:not(#\9) {
218
+ .awsui_result-state_11huc_1idgh_203:not(#\9) {
219
219
  animation: none;
220
220
  transition: none;
221
221
  }
222
222
  }
223
- .awsui-motion-disabled .awsui_result-state_11huc_1exem_203:not(#\9), .awsui-mode-entering .awsui_result-state_11huc_1exem_203:not(#\9) {
223
+ .awsui-motion-disabled .awsui_result-state_11huc_1idgh_203:not(#\9), .awsui-mode-entering .awsui_result-state_11huc_1idgh_203:not(#\9) {
224
224
  animation: none;
225
225
  transition: none;
226
226
  }
227
227
 
228
- .awsui_root_11huc_1exem_225:not(#\9) {
228
+ .awsui_root_11huc_1idgh_225:not(#\9) {
229
229
  border-collapse: separate;
230
230
  border-spacing: 0;
231
231
  box-sizing: border-box;
@@ -257,34 +257,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
257
257
  -moz-osx-font-smoothing: auto;
258
258
  }
259
259
 
260
- .awsui_with-result-button_11huc_1exem_257:not(#\9) {
260
+ .awsui_with-result-button_11huc_1idgh_257:not(#\9) {
261
261
  padding-inline-end: var(--space-m-n2lypl, 16px);
262
262
  }
263
263
 
264
- .awsui_result-text_11huc_1exem_261:not(#\9) {
264
+ .awsui_result-text_11huc_1idgh_261:not(#\9) {
265
265
  /* used in test-utils */
266
266
  }
267
267
 
268
- .awsui_result-container-error_11huc_1exem_265:not(#\9), .awsui_result-container-success_11huc_1exem_265:not(#\9) {
268
+ .awsui_result-container-error_11huc_1idgh_265:not(#\9), .awsui_result-container-success_11huc_1idgh_265:not(#\9) {
269
269
  /* used in test-utils */
270
270
  }
271
271
 
272
- .awsui_result-button_11huc_1exem_269:not(#\9) {
272
+ .awsui_result-button_11huc_1idgh_269:not(#\9) {
273
273
  display: inline-block;
274
274
  margin-block: var(--space-scaled-xxs-jatbiv, 4px);
275
275
  margin-inline: 0;
276
276
  }
277
277
 
278
- .awsui_word-wrap_11huc_1exem_275:not(#\9) {
278
+ .awsui_word-wrap_11huc_1idgh_275:not(#\9) {
279
279
  min-inline-size: 0;
280
280
  word-break: break-word;
281
281
  }
282
282
 
283
- .awsui_label-flash_11huc_1exem_280:not(#\9) {
283
+ .awsui_label-flash_11huc_1idgh_280:not(#\9) {
284
284
  color: inherit;
285
285
  font-weight: 700;
286
286
  }
287
- .awsui_label-key-value_11huc_1exem_284:not(#\9) {
287
+ .awsui_label-key-value_11huc_1idgh_284:not(#\9) {
288
288
  font-size: var(--font-size-body-m-vv54cm, 14px);
289
289
  line-height: var(--line-height-body-m-bedeoh, 22px);
290
290
  font-weight: var(--font-display-label-weight-ise9n2, 400);
@@ -292,18 +292,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
292
292
  margin-block-end: var(--space-scaled-xxxs-prgw5k, 2px);
293
293
  }
294
294
 
295
- .awsui_flash_11huc_1exem_292:not(#\9) {
295
+ .awsui_flash_11huc_1idgh_292:not(#\9) {
296
296
  color: inherit;
297
297
  }
298
298
 
299
- .awsui_progress-container_11huc_1exem_296:not(#\9) {
299
+ .awsui_progress-container_11huc_1idgh_296:not(#\9) {
300
300
  display: flex;
301
301
  align-items: center;
302
302
  max-inline-size: 800px;
303
303
  block-size: var(--line-height-body-m-bedeoh, 22px);
304
304
  }
305
305
 
306
- .awsui_percentage-container_11huc_1exem_303:not(#\9) {
306
+ .awsui_percentage-container_11huc_1idgh_303:not(#\9) {
307
307
  inline-size: 33px;
308
308
  flex-shrink: 0;
309
309
  white-space: nowrap;
@@ -313,56 +313,56 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
313
313
  letter-spacing: var(--letter-spacing-body-s-egrcsd, normal);
314
314
  }
315
315
 
316
- .awsui_percentage_11huc_1exem_303:not(#\9) {
316
+ .awsui_percentage_11huc_1idgh_303:not(#\9) {
317
317
  /* used in test-utils */
318
318
  }
319
319
 
320
- .awsui_progress_11huc_1exem_189:not(#\9) {
320
+ .awsui_progress_11huc_1idgh_189:not(#\9) {
321
321
  inline-size: 100%;
322
322
  margin-inline-end: var(--space-s-4a5hs8, 12px);
323
323
  min-inline-size: 0;
324
- block-size: var(--awsui-progress-bar-height-c5ek4l, 4px);
324
+ block-size: var(--awsui-progress-bar-height-n6lfw8, 4px);
325
325
  border-block: 0;
326
326
  border-inline: none;
327
327
  box-sizing: border-box;
328
- border-start-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
329
- border-start-end-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
330
- border-end-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
331
- border-end-end-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
332
- background-color: var(--awsui-progress-bar-background-color-c5ek4l, var(--color-background-progress-bar-default-kw9ow4, #eaeded));
328
+ border-start-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
329
+ border-start-end-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
330
+ border-end-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
331
+ border-end-end-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
332
+ background-color: var(--awsui-progress-bar-background-color-n6lfw8, var(--color-background-progress-bar-default-kw9ow4, #eaeded));
333
333
  }
334
- .awsui_progress_11huc_1exem_189:not(#\9)::-webkit-progress-bar {
335
- block-size: var(--awsui-progress-bar-height-c5ek4l, 4px);
334
+ .awsui_progress_11huc_1idgh_189:not(#\9)::-webkit-progress-bar {
335
+ block-size: var(--awsui-progress-bar-height-n6lfw8, 4px);
336
336
  border-block: 0;
337
337
  border-inline: none;
338
338
  box-sizing: border-box;
339
- border-start-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
340
- border-start-end-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
341
- border-end-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
342
- border-end-end-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
343
- background-color: var(--awsui-progress-bar-background-color-c5ek4l, var(--color-background-progress-bar-default-kw9ow4, #eaeded));
339
+ border-start-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
340
+ border-start-end-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
341
+ border-end-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
342
+ border-end-end-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
343
+ background-color: var(--awsui-progress-bar-background-color-n6lfw8, var(--color-background-progress-bar-default-kw9ow4, #eaeded));
344
344
  }
345
- .awsui_progress_11huc_1exem_189:not(#\9)::-webkit-progress-value {
346
- border-start-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
345
+ .awsui_progress_11huc_1idgh_189:not(#\9)::-webkit-progress-value {
346
+ border-start-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
347
347
  border-start-end-radius: 0;
348
- border-end-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
348
+ border-end-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
349
349
  border-end-end-radius: 0;
350
- background-color: var(--awsui-progress-value-background-color-c5ek4l, var(--color-background-progress-bar-value-default-1bekh3, #0073bb));
350
+ background-color: var(--awsui-progress-value-background-color-n6lfw8, var(--color-background-progress-bar-value-default-1bekh3, #0073bb));
351
351
  }
352
- .awsui_progress_11huc_1exem_189.awsui_complete_11huc_1exem_349:not(#\9)::-webkit-progress-value {
353
- border-start-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
354
- border-start-end-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
355
- border-end-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
356
- border-end-end-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
352
+ .awsui_progress_11huc_1idgh_189.awsui_complete_11huc_1idgh_349:not(#\9)::-webkit-progress-value {
353
+ border-start-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
354
+ border-start-end-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
355
+ border-end-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
356
+ border-end-end-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
357
357
  }
358
- .awsui_progress_11huc_1exem_189:not(#\9)::-moz-progress-bar {
359
- border-start-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
358
+ .awsui_progress_11huc_1idgh_189:not(#\9)::-moz-progress-bar {
359
+ border-start-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
360
360
  border-start-end-radius: 0;
361
- border-end-start-radius: var(--awsui-progress-bar-border-radius-c5ek4l, 10px);
361
+ border-end-start-radius: var(--awsui-progress-bar-border-radius-n6lfw8, 10px);
362
362
  border-end-end-radius: 0;
363
- background-color: var(--awsui-progress-value-background-color-c5ek4l, var(--color-background-progress-bar-value-default-1bekh3, #0073bb));
363
+ background-color: var(--awsui-progress-value-background-color-n6lfw8, var(--color-background-progress-bar-value-default-1bekh3, #0073bb));
364
364
  }
365
365
 
366
- .awsui_additional-info_11huc_1exem_363:not(#\9) {
366
+ .awsui_additional-info_11huc_1idgh_363:not(#\9) {
367
367
  /* used in test-utils */
368
368
  }
@@ -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_1exem_189",
6
- "result-state": "awsui_result-state_11huc_1exem_203",
7
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_1exem_1",
8
- "root": "awsui_root_11huc_1exem_225",
9
- "with-result-button": "awsui_with-result-button_11huc_1exem_257",
10
- "result-text": "awsui_result-text_11huc_1exem_261",
11
- "result-container-error": "awsui_result-container-error_11huc_1exem_265",
12
- "result-container-success": "awsui_result-container-success_11huc_1exem_265",
13
- "result-button": "awsui_result-button_11huc_1exem_269",
14
- "word-wrap": "awsui_word-wrap_11huc_1exem_275",
15
- "label-flash": "awsui_label-flash_11huc_1exem_280",
16
- "label-key-value": "awsui_label-key-value_11huc_1exem_284",
17
- "flash": "awsui_flash_11huc_1exem_292",
18
- "progress-container": "awsui_progress-container_11huc_1exem_296",
19
- "percentage-container": "awsui_percentage-container_11huc_1exem_303",
20
- "percentage": "awsui_percentage_11huc_1exem_303",
21
- "complete": "awsui_complete_11huc_1exem_349",
22
- "additional-info": "awsui_additional-info_11huc_1exem_363"
5
+ "progress": "awsui_progress_11huc_1idgh_189",
6
+ "result-state": "awsui_result-state_11huc_1idgh_203",
7
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_1idgh_1",
8
+ "root": "awsui_root_11huc_1idgh_225",
9
+ "with-result-button": "awsui_with-result-button_11huc_1idgh_257",
10
+ "result-text": "awsui_result-text_11huc_1idgh_261",
11
+ "result-container-error": "awsui_result-container-error_11huc_1idgh_265",
12
+ "result-container-success": "awsui_result-container-success_11huc_1idgh_265",
13
+ "result-button": "awsui_result-button_11huc_1idgh_269",
14
+ "word-wrap": "awsui_word-wrap_11huc_1idgh_275",
15
+ "label-flash": "awsui_label-flash_11huc_1idgh_280",
16
+ "label-key-value": "awsui_label-key-value_11huc_1idgh_284",
17
+ "flash": "awsui_flash_11huc_1idgh_292",
18
+ "progress-container": "awsui_progress-container_11huc_1idgh_296",
19
+ "percentage-container": "awsui_percentage-container_11huc_1idgh_303",
20
+ "percentage": "awsui_percentage_11huc_1idgh_303",
21
+ "complete": "awsui_complete_11huc_1idgh_349",
22
+ "additional-info": "awsui_additional-info_11huc_1idgh_363"
23
23
  };
24
24
 
@@ -1,22 +1,22 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_55fkh_5s8rl_146",
5
- "textarea-readonly": "awsui_textarea-readonly_55fkh_5s8rl_191",
6
- "disabled": "awsui_disabled_55fkh_5s8rl_197",
7
- "textarea-invalid": "awsui_textarea-invalid_55fkh_5s8rl_205",
8
- "textarea-warning": "awsui_textarea-warning_55fkh_5s8rl_230",
9
- "textarea": "awsui_textarea_55fkh_5s8rl_191",
10
- "invalid": "awsui_invalid_55fkh_5s8rl_333",
11
- "warning": "awsui_warning_55fkh_5s8rl_333",
12
- "textarea-wrapper": "awsui_textarea-wrapper_55fkh_5s8rl_347",
13
- "primary-action": "awsui_primary-action_55fkh_5s8rl_351",
14
- "action-button": "awsui_action-button_55fkh_5s8rl_359",
15
- "secondary-content": "awsui_secondary-content_55fkh_5s8rl_364",
16
- "with-paddings": "awsui_with-paddings_55fkh_5s8rl_399",
17
- "action-stripe": "awsui_action-stripe_55fkh_5s8rl_409",
18
- "secondary-actions": "awsui_secondary-actions_55fkh_5s8rl_448",
19
- "with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_5s8rl_465",
20
- "buffer": "awsui_buffer_55fkh_5s8rl_469"
4
+ "root": "awsui_root_55fkh_1mok0_146",
5
+ "textarea-readonly": "awsui_textarea-readonly_55fkh_1mok0_191",
6
+ "disabled": "awsui_disabled_55fkh_1mok0_197",
7
+ "textarea-invalid": "awsui_textarea-invalid_55fkh_1mok0_205",
8
+ "textarea-warning": "awsui_textarea-warning_55fkh_1mok0_230",
9
+ "textarea": "awsui_textarea_55fkh_1mok0_191",
10
+ "invalid": "awsui_invalid_55fkh_1mok0_333",
11
+ "warning": "awsui_warning_55fkh_1mok0_333",
12
+ "textarea-wrapper": "awsui_textarea-wrapper_55fkh_1mok0_347",
13
+ "primary-action": "awsui_primary-action_55fkh_1mok0_351",
14
+ "action-button": "awsui_action-button_55fkh_1mok0_359",
15
+ "secondary-content": "awsui_secondary-content_55fkh_1mok0_364",
16
+ "with-paddings": "awsui_with-paddings_55fkh_1mok0_399",
17
+ "action-stripe": "awsui_action-stripe_55fkh_1mok0_409",
18
+ "secondary-actions": "awsui_secondary-actions_55fkh_1mok0_448",
19
+ "with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_1mok0_465",
20
+ "buffer": "awsui_buffer_55fkh_1mok0_469"
21
21
  };
22
22