@cloudscape-design/components 3.0.521 → 3.0.523

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 (177) hide show
  1. package/alert/styles.css.js +25 -25
  2. package/alert/styles.scoped.css +61 -54
  3. package/alert/styles.selectors.js +25 -25
  4. package/anchor-navigation/styles.css.js +8 -8
  5. package/anchor-navigation/styles.scoped.css +39 -30
  6. package/anchor-navigation/styles.selectors.js +8 -8
  7. package/annotation-context/annotation/styles.css.js +24 -24
  8. package/annotation-context/annotation/styles.scoped.css +57 -49
  9. package/annotation-context/annotation/styles.selectors.js +24 -24
  10. package/app-layout/content-wrapper/styles.css.js +3 -3
  11. package/app-layout/content-wrapper/styles.scoped.css +15 -15
  12. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  13. package/app-layout/drawer/styles.css.js +12 -12
  14. package/app-layout/drawer/styles.scoped.css +29 -30
  15. package/app-layout/drawer/styles.selectors.js +12 -12
  16. package/app-layout/mobile-toolbar/styles.css.js +8 -8
  17. package/app-layout/mobile-toolbar/styles.scoped.css +18 -17
  18. package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
  19. package/app-layout/notifications/styles.css.js +3 -3
  20. package/app-layout/notifications/styles.scoped.css +6 -6
  21. package/app-layout/notifications/styles.selectors.js +3 -3
  22. package/app-layout/split-panel/styles.css.js +2 -2
  23. package/app-layout/split-panel/styles.scoped.css +3 -3
  24. package/app-layout/split-panel/styles.selectors.js +2 -2
  25. package/app-layout/styles.css.js +16 -16
  26. package/app-layout/styles.scoped.css +26 -26
  27. package/app-layout/styles.selectors.js +16 -16
  28. package/app-layout/toggles/styles.css.js +2 -2
  29. package/app-layout/toggles/styles.scoped.css +12 -10
  30. package/app-layout/toggles/styles.selectors.js +2 -2
  31. package/app-layout/visual-refresh/styles.css.js +81 -81
  32. package/app-layout/visual-refresh/styles.scoped.css +279 -261
  33. package/app-layout/visual-refresh/styles.selectors.js +81 -81
  34. package/area-chart/styles.css.js +6 -6
  35. package/area-chart/styles.scoped.css +12 -11
  36. package/area-chart/styles.selectors.js +6 -6
  37. package/attribute-editor/styles.css.js +14 -14
  38. package/attribute-editor/styles.scoped.css +30 -29
  39. package/attribute-editor/styles.selectors.js +14 -14
  40. package/autosuggest/styles.css.js +3 -3
  41. package/autosuggest/styles.scoped.css +5 -5
  42. package/autosuggest/styles.selectors.js +3 -3
  43. package/badge/styles.css.js +5 -5
  44. package/badge/styles.scoped.css +11 -7
  45. package/badge/styles.selectors.js +5 -5
  46. package/box/styles.css.js +190 -190
  47. package/box/styles.scoped.css +244 -240
  48. package/box/styles.selectors.js +190 -190
  49. package/breadcrumb-group/item/styles.css.js +9 -9
  50. package/breadcrumb-group/item/styles.scoped.css +20 -19
  51. package/breadcrumb-group/item/styles.selectors.js +9 -9
  52. package/breadcrumb-group/styles.css.js +7 -7
  53. package/breadcrumb-group/styles.scoped.css +28 -21
  54. package/breadcrumb-group/styles.selectors.js +7 -7
  55. package/button/styles.css.js +20 -20
  56. package/button/styles.scoped.css +155 -153
  57. package/button/styles.selectors.js +20 -20
  58. package/button-dropdown/category-elements/styles.css.js +13 -13
  59. package/button-dropdown/category-elements/styles.scoped.css +61 -50
  60. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  61. package/button-dropdown/item-element/styles.css.js +15 -15
  62. package/button-dropdown/item-element/styles.scoped.css +38 -33
  63. package/button-dropdown/item-element/styles.selectors.js +15 -15
  64. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  65. package/button-dropdown/mobile-expandable-group/styles.scoped.css +8 -8
  66. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  67. package/button-dropdown/styles.css.js +15 -15
  68. package/button-dropdown/styles.scoped.css +39 -36
  69. package/button-dropdown/styles.selectors.js +15 -15
  70. package/calendar/grid/index.js +1 -1
  71. package/calendar/grid/index.js.map +1 -1
  72. package/calendar/interfaces.d.ts +23 -3
  73. package/calendar/interfaces.d.ts.map +1 -1
  74. package/calendar/interfaces.js.map +1 -1
  75. package/calendar/internal.d.ts +1 -1
  76. package/calendar/internal.d.ts.map +1 -1
  77. package/calendar/internal.js +5 -4
  78. package/calendar/internal.js.map +1 -1
  79. package/calendar/styles.css.js +18 -18
  80. package/calendar/styles.scoped.css +75 -59
  81. package/calendar/styles.selectors.js +18 -18
  82. package/cards/styles.css.js +40 -40
  83. package/cards/styles.scoped.css +126 -99
  84. package/cards/styles.selectors.js +40 -40
  85. package/code-editor/ace-themes.d.ts +6 -0
  86. package/code-editor/ace-themes.d.ts.map +1 -1
  87. package/code-editor/ace-themes.js +2 -0
  88. package/code-editor/ace-themes.js.map +1 -1
  89. package/code-editor/index.js +3 -3
  90. package/code-editor/index.js.map +1 -1
  91. package/code-editor/preferences-modal.d.ts +1 -1
  92. package/code-editor/preferences-modal.d.ts.map +1 -1
  93. package/code-editor/preferences-modal.js +3 -6
  94. package/code-editor/preferences-modal.js.map +1 -1
  95. package/code-editor/resizable-box/styles.css.js +3 -3
  96. package/code-editor/resizable-box/styles.scoped.css +10 -10
  97. package/code-editor/resizable-box/styles.selectors.js +3 -3
  98. package/code-editor/styles.css.js +32 -32
  99. package/code-editor/styles.scoped.css +210 -198
  100. package/code-editor/styles.selectors.js +32 -32
  101. package/code-editor/use-editor.d.ts.map +1 -1
  102. package/code-editor/use-editor.js +4 -2
  103. package/code-editor/use-editor.js.map +1 -1
  104. package/code-editor/util.d.ts +3 -4
  105. package/code-editor/util.d.ts.map +1 -1
  106. package/code-editor/util.js +29 -10
  107. package/code-editor/util.js.map +1 -1
  108. package/collection-preferences/content-display/styles.css.js +11 -11
  109. package/collection-preferences/content-display/styles.scoped.css +40 -30
  110. package/collection-preferences/content-display/styles.selectors.js +11 -11
  111. package/collection-preferences/styles.css.js +37 -37
  112. package/collection-preferences/styles.scoped.css +79 -66
  113. package/collection-preferences/styles.selectors.js +37 -37
  114. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  115. package/column-layout/flexible-column-layout/styles.scoped.css +8 -9
  116. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  117. package/column-layout/styles.css.js +13 -13
  118. package/column-layout/styles.scoped.css +70 -64
  119. package/column-layout/styles.selectors.js +13 -13
  120. package/container/styles.css.js +30 -30
  121. package/container/styles.scoped.css +114 -106
  122. package/container/styles.selectors.js +30 -30
  123. package/content-layout/styles.css.js +7 -7
  124. package/content-layout/styles.scoped.css +15 -15
  125. package/content-layout/styles.selectors.js +7 -7
  126. package/date-picker/index.d.ts.map +1 -1
  127. package/date-picker/index.js +6 -2
  128. package/date-picker/index.js.map +1 -1
  129. package/date-picker/interfaces.d.ts +7 -0
  130. package/date-picker/interfaces.d.ts.map +1 -1
  131. package/date-picker/interfaces.js.map +1 -1
  132. package/date-picker/styles.css.js +7 -7
  133. package/date-picker/styles.scoped.css +12 -12
  134. package/date-picker/styles.selectors.js +7 -7
  135. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  136. package/date-range-picker/calendar/grids/styles.scoped.css +71 -60
  137. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  138. package/date-range-picker/relative-range/styles.css.js +9 -9
  139. package/date-range-picker/relative-range/styles.scoped.css +21 -21
  140. package/date-range-picker/relative-range/styles.selectors.js +9 -9
  141. package/date-range-picker/styles.css.js +38 -38
  142. package/date-range-picker/styles.scoped.css +72 -67
  143. package/date-range-picker/styles.selectors.js +38 -38
  144. package/drawer/styles.css.js +3 -3
  145. package/drawer/styles.scoped.css +21 -18
  146. package/drawer/styles.selectors.js +3 -3
  147. package/expandable-section/styles.css.js +32 -32
  148. package/expandable-section/styles.scoped.css +103 -98
  149. package/expandable-section/styles.selectors.js +32 -32
  150. package/file-upload/dropzone/styles.css.js +2 -2
  151. package/file-upload/dropzone/styles.scoped.css +8 -4
  152. package/file-upload/dropzone/styles.selectors.js +2 -2
  153. package/file-upload/file-option/styles.css.js +7 -7
  154. package/file-upload/file-option/styles.scoped.css +15 -15
  155. package/file-upload/file-option/styles.selectors.js +7 -7
  156. package/file-upload/styles.css.js +2 -2
  157. package/file-upload/styles.scoped.css +4 -4
  158. package/file-upload/styles.selectors.js +2 -2
  159. package/flashbar/styles.css.js +47 -47
  160. package/flashbar/styles.scoped.css +220 -215
  161. package/flashbar/styles.selectors.js +47 -47
  162. package/form/styles.css.js +9 -9
  163. package/form/styles.scoped.css +18 -18
  164. package/form/styles.selectors.js +9 -9
  165. package/form-field/styles.css.js +19 -19
  166. package/form-field/styles.scoped.css +34 -34
  167. package/form-field/styles.selectors.js +19 -19
  168. package/internal/environment.js +1 -1
  169. package/internal/environment.json +1 -1
  170. package/internal/manifest.json +1 -1
  171. package/modal/styles.css.js +23 -23
  172. package/modal/styles.scoped.css +39 -39
  173. package/modal/styles.selectors.js +23 -23
  174. package/package.json +1 -1
  175. package/tiles/styles.css.js +29 -29
  176. package/tiles/styles.scoped.css +97 -91
  177. package/tiles/styles.selectors.js +29 -29
@@ -2,37 +2,37 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "code-editor-refresh": "awsui_code-editor-refresh_1gl9c_iorrl_98",
6
- "code-editor": "awsui_code-editor_1gl9c_iorrl_98",
7
- "pane": "awsui_pane_1gl9c_iorrl_444",
8
- "pane__close-container": "awsui_pane__close-container_1gl9c_iorrl_455",
9
- "pane__list": "awsui_pane__list_1gl9c_iorrl_460",
10
- "pane__table": "awsui_pane__table_1gl9c_iorrl_467",
11
- "pane__item": "awsui_pane__item_1gl9c_iorrl_472",
12
- "pane__cell": "awsui_pane__cell_1gl9c_iorrl_472",
13
- "pane__item--highlighted": "awsui_pane__item--highlighted_1gl9c_iorrl_486",
14
- "pane__location": "awsui_pane__location_1gl9c_iorrl_507",
15
- "pane__description": "awsui_pane__description_1gl9c_iorrl_507",
16
- "focus-lock": "awsui_focus-lock_1gl9c_iorrl_521",
17
- "editor": "awsui_editor_1gl9c_iorrl_568",
18
- "editor-refresh": "awsui_editor-refresh_1gl9c_iorrl_599",
19
- "status-bar": "awsui_status-bar_1gl9c_iorrl_604",
20
- "status-bar-with-hidden-pane": "awsui_status-bar-with-hidden-pane_1gl9c_iorrl_612",
21
- "status-bar__left": "awsui_status-bar__left_1gl9c_iorrl_616",
22
- "status-bar__left-virtual": "awsui_status-bar__left-virtual_1gl9c_iorrl_623",
23
- "status-bar__right": "awsui_status-bar__right_1gl9c_iorrl_627",
24
- "status-bar__language-mode": "awsui_status-bar__language-mode_1gl9c_iorrl_631",
25
- "status-bar__cursor-position": "awsui_status-bar__cursor-position_1gl9c_iorrl_631",
26
- "status-bar__cog-button": "awsui_status-bar__cog-button_1gl9c_iorrl_636",
27
- "status-bar-virtual": "awsui_status-bar-virtual_1gl9c_iorrl_640",
28
- "tab-button": "awsui_tab-button_1gl9c_iorrl_646",
29
- "tab-button--refresh": "awsui_tab-button--refresh_1gl9c_iorrl_674",
30
- "tab-button--warnings": "awsui_tab-button--warnings_1gl9c_iorrl_677",
31
- "tab-button--active": "awsui_tab-button--active_1gl9c_iorrl_686",
32
- "tab-button--disabled": "awsui_tab-button--disabled_1gl9c_iorrl_702",
33
- "tab-button--divider": "awsui_tab-button--divider_1gl9c_iorrl_735",
34
- "tab-button--errors": "awsui_tab-button--errors_1gl9c_iorrl_742",
35
- "loading-screen": "awsui_loading-screen_1gl9c_iorrl_746",
36
- "error-screen": "awsui_error-screen_1gl9c_iorrl_747"
5
+ "code-editor-refresh": "awsui_code-editor-refresh_1gl9c_1i9in_98",
6
+ "code-editor": "awsui_code-editor_1gl9c_1i9in_98",
7
+ "pane": "awsui_pane_1gl9c_1i9in_444",
8
+ "pane__close-container": "awsui_pane__close-container_1gl9c_1i9in_455",
9
+ "pane__list": "awsui_pane__list_1gl9c_1i9in_460",
10
+ "pane__table": "awsui_pane__table_1gl9c_1i9in_467",
11
+ "pane__item": "awsui_pane__item_1gl9c_1i9in_473",
12
+ "pane__cell": "awsui_pane__cell_1gl9c_1i9in_473",
13
+ "pane__item--highlighted": "awsui_pane__item--highlighted_1gl9c_1i9in_487",
14
+ "pane__location": "awsui_pane__location_1gl9c_1i9in_508",
15
+ "pane__description": "awsui_pane__description_1gl9c_1i9in_508",
16
+ "focus-lock": "awsui_focus-lock_1gl9c_1i9in_523",
17
+ "editor": "awsui_editor_1gl9c_1i9in_574",
18
+ "editor-refresh": "awsui_editor-refresh_1gl9c_1i9in_602",
19
+ "status-bar": "awsui_status-bar_1gl9c_1i9in_607",
20
+ "status-bar-with-hidden-pane": "awsui_status-bar-with-hidden-pane_1gl9c_1i9in_615",
21
+ "status-bar__left": "awsui_status-bar__left_1gl9c_1i9in_619",
22
+ "status-bar__left-virtual": "awsui_status-bar__left-virtual_1gl9c_1i9in_626",
23
+ "status-bar__right": "awsui_status-bar__right_1gl9c_1i9in_630",
24
+ "status-bar__language-mode": "awsui_status-bar__language-mode_1gl9c_1i9in_634",
25
+ "status-bar__cursor-position": "awsui_status-bar__cursor-position_1gl9c_1i9in_634",
26
+ "status-bar__cog-button": "awsui_status-bar__cog-button_1gl9c_1i9in_640",
27
+ "status-bar-virtual": "awsui_status-bar-virtual_1gl9c_1i9in_645",
28
+ "tab-button": "awsui_tab-button_1gl9c_1i9in_651",
29
+ "tab-button--refresh": "awsui_tab-button--refresh_1gl9c_1i9in_683",
30
+ "tab-button--warnings": "awsui_tab-button--warnings_1gl9c_1i9in_686",
31
+ "tab-button--active": "awsui_tab-button--active_1gl9c_1i9in_695",
32
+ "tab-button--disabled": "awsui_tab-button--disabled_1gl9c_1i9in_711",
33
+ "tab-button--divider": "awsui_tab-button--divider_1gl9c_1i9in_744",
34
+ "tab-button--errors": "awsui_tab-button--errors_1gl9c_1i9in_751",
35
+ "loading-screen": "awsui_loading-screen_1gl9c_1i9in_755",
36
+ "error-screen": "awsui_error-screen_1gl9c_1i9in_756"
37
37
  };
38
38
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-editor.d.ts","sourceRoot":"lib/default/","sources":["code-editor/use-editor.tsx"],"names":[],"mappings":";AAGA,OAAO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AAY,CAAC;AAIjC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO;;;EAoBpD;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EACzB,EACE,SAAS,EACT,SAAS,EACT,cAAc,EACd,eAAe,GAChB,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,QAiBjG;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EACzB,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE;;EAWrE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,QAY1E;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,QAIhF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,QAIpF;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,QAIzF"}
@@ -1,18 +1,20 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { useCallback, useEffect, useRef, useState } from 'react';
4
+ import { useCurrentMode } from '@cloudscape-design/component-toolkit/internal';
4
5
  import { getAceTheme, getDefaultConfig, getDefaultTheme } from './util';
5
6
  export function useEditor(ace, loading) {
6
7
  const editorRef = useRef(null);
7
8
  const [editor, setEditor] = useState(null);
9
+ const [initialMode] = useState(useCurrentMode(editorRef));
8
10
  useEffect(() => {
9
11
  const elem = editorRef.current;
10
12
  if (!ace || !elem) {
11
13
  return;
12
14
  }
13
15
  const config = getDefaultConfig(ace);
14
- setEditor(ace.edit(elem, Object.assign(Object.assign({}, config), { theme: getAceTheme(getDefaultTheme(elem)) })));
15
- }, [ace, loading]);
16
+ setEditor(ace.edit(elem, Object.assign(Object.assign({}, config), { theme: getAceTheme(getDefaultTheme(ace, initialMode)) })));
17
+ }, [ace, loading, initialMode]);
16
18
  return { editorRef, editor };
17
19
  }
18
20
  export function useSyncEditorLabels(editor, { controlId, ariaLabel, ariaLabelledby, ariaDescribedby, }) {
@@ -1 +1 @@
1
- {"version":3,"file":"use-editor.js","sourceRoot":"lib/default/","sources":["code-editor/use-editor.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAGxE,MAAM,UAAU,SAAS,CAAC,GAAQ,EAAE,OAAiB;IACnD,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAoB,IAAI,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE;YACjB,OAAO;SACR;QACD,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,CAA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E,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAyB,EAAE,KAA4B;IACxF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IACvC,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AACtB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Ace } from 'ace-builds';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { getAceTheme, getDefaultConfig, getDefaultTheme } from './util';\nimport { CodeEditorProps } from './interfaces';\n\nexport function useEditor(ace: any, loading?: boolean) {\n const editorRef = useRef<HTMLDivElement>(null);\n const [editor, setEditor] = useState<null | Ace.Editor>(null);\n\n useEffect(() => {\n const elem = editorRef.current;\n if (!ace || !elem) {\n return;\n }\n const config = getDefaultConfig(ace);\n setEditor(\n ace.edit(elem, {\n ...config,\n theme: getAceTheme(getDefaultTheme(elem)),\n })\n );\n }, [ace, loading]);\n\n return { editorRef, editor };\n}\n\nexport function useSyncEditorLabels(\n editor: null | Ace.Editor,\n {\n controlId,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n }: { controlId?: string; ariaLabel?: string; ariaLabelledby?: string; ariaDescribedby?: string }\n) {\n useEffect(() => {\n if (!editor) {\n return;\n }\n const { textarea } = editor.renderer as unknown as { textarea: HTMLTextAreaElement };\n if (!textarea) {\n return;\n }\n const updateAttribute = (attribute: string, value: string | undefined) =>\n value ? textarea.setAttribute(attribute, value) : textarea.removeAttribute(attribute);\n updateAttribute('id', controlId);\n updateAttribute('aria-label', ariaLabel);\n updateAttribute('aria-labelledby', ariaLabelledby);\n updateAttribute('aria-describedby', ariaDescribedby);\n }, [ariaLabel, ariaDescribedby, ariaLabelledby, controlId, editor]);\n}\n\nexport function useSyncEditorSize(\n editor: null | Ace.Editor,\n { width, height }: { width?: null | number; height?: null | number }\n) {\n useEffect(() => {\n editor?.resize();\n }, [editor, width, height]);\n\n const onResize = useCallback(() => {\n editor?.resize();\n }, [editor]);\n\n return { onResize };\n}\n\nexport function useSyncEditorValue(editor: null | Ace.Editor, value: string) {\n useEffect(() => {\n if (!editor) {\n return;\n }\n if (value === editor.getValue()) {\n return;\n }\n const pos = editor.session.selection.toJSON();\n editor.setValue(value, -1);\n editor.session.selection.fromJSON(pos);\n }, [editor, value]);\n}\n\nexport function useSyncEditorLanguage(editor: null | Ace.Editor, language: string) {\n useEffect(() => {\n editor?.session.setMode(`ace/mode/${language}`);\n }, [editor, language]);\n}\n\nexport function useSyncEditorWrapLines(editor: null | Ace.Editor, wrapLines?: boolean) {\n useEffect(() => {\n editor?.session.setUseWrapMode(wrapLines ?? true);\n }, [editor, wrapLines]);\n}\n\nexport function useSyncEditorTheme(editor: null | Ace.Editor, theme: CodeEditorProps.Theme) {\n useEffect(() => {\n editor?.setTheme(getAceTheme(theme));\n }, [editor, theme]);\n}\n"]}
1
+ {"version":3,"file":"use-editor.js","sourceRoot":"lib/default/","sources":["code-editor/use-editor.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAGxE,MAAM,UAAU,SAAS,CAAC,GAAQ,EAAE,OAAiB;IACnD,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAoB,IAAI,CAAC,CAAC;IAC9D,MAAM,CAA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CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,MAAyB,EAAE,SAAmB;IACnF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,cAAc,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,IAAI,CAAC,CAAC;IACpD,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAyB,EAAE,KAA4B;IACxF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IACvC,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AACtB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Ace } from 'ace-builds';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { useCurrentMode } from '@cloudscape-design/component-toolkit/internal';\nimport { getAceTheme, getDefaultConfig, getDefaultTheme } from './util';\nimport { CodeEditorProps } from './interfaces';\n\nexport function useEditor(ace: any, loading?: boolean) {\n const editorRef = useRef<HTMLDivElement>(null);\n const [editor, setEditor] = useState<null | Ace.Editor>(null);\n const [initialMode] = useState(useCurrentMode(editorRef));\n\n useEffect(() => {\n const elem = editorRef.current;\n if (!ace || !elem) {\n return;\n }\n const config = getDefaultConfig(ace);\n setEditor(\n ace.edit(elem, {\n ...config,\n theme: getAceTheme(getDefaultTheme(ace, initialMode)),\n })\n );\n }, [ace, loading, initialMode]);\n\n return { editorRef, editor };\n}\n\nexport function useSyncEditorLabels(\n editor: null | Ace.Editor,\n {\n controlId,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n }: { controlId?: string; ariaLabel?: string; ariaLabelledby?: string; ariaDescribedby?: string }\n) {\n useEffect(() => {\n if (!editor) {\n return;\n }\n const { textarea } = editor.renderer as unknown as { textarea: HTMLTextAreaElement };\n if (!textarea) {\n return;\n }\n const updateAttribute = (attribute: string, value: string | undefined) =>\n value ? textarea.setAttribute(attribute, value) : textarea.removeAttribute(attribute);\n updateAttribute('id', controlId);\n updateAttribute('aria-label', ariaLabel);\n updateAttribute('aria-labelledby', ariaLabelledby);\n updateAttribute('aria-describedby', ariaDescribedby);\n }, [ariaLabel, ariaDescribedby, ariaLabelledby, controlId, editor]);\n}\n\nexport function useSyncEditorSize(\n editor: null | Ace.Editor,\n { width, height }: { width?: null | number; height?: null | number }\n) {\n useEffect(() => {\n editor?.resize();\n }, [editor, width, height]);\n\n const onResize = useCallback(() => {\n editor?.resize();\n }, [editor]);\n\n return { onResize };\n}\n\nexport function useSyncEditorValue(editor: null | Ace.Editor, value: string) {\n useEffect(() => {\n if (!editor) {\n return;\n }\n if (value === editor.getValue()) {\n return;\n }\n const pos = editor.session.selection.toJSON();\n editor.setValue(value, -1);\n editor.session.selection.fromJSON(pos);\n }, [editor, value]);\n}\n\nexport function useSyncEditorLanguage(editor: null | Ace.Editor, language: string) {\n useEffect(() => {\n editor?.session.setMode(`ace/mode/${language}`);\n }, [editor, language]);\n}\n\nexport function useSyncEditorWrapLines(editor: null | Ace.Editor, wrapLines?: boolean) {\n useEffect(() => {\n editor?.session.setUseWrapMode(wrapLines ?? true);\n }, [editor, wrapLines]);\n}\n\nexport function useSyncEditorTheme(editor: null | Ace.Editor, theme: CodeEditorProps.Theme) {\n useEffect(() => {\n editor?.setTheme(getAceTheme(theme));\n }, [editor, theme]);\n}\n"]}
@@ -1,12 +1,11 @@
1
1
  import { Ace } from 'ace-builds';
2
- import { LightThemes, DarkThemes } from './ace-themes';
3
2
  import { CodeEditorProps } from './interfaces';
4
3
  export type PaneStatus = 'error' | 'warning' | 'hidden';
5
- export declare const DEFAULT_LIGHT_THEME: typeof LightThemes[number]['value'];
6
- export declare const DEFAULT_DARK_THEME: typeof DarkThemes[number]['value'];
7
4
  export declare function supportsKeyboardAccessibility(ace: any): boolean;
5
+ export declare function supportsCloudEditorThemes(ace: any): boolean;
8
6
  export declare function getDefaultConfig(ace: any): Partial<Ace.EditorOptions>;
9
- export declare function getDefaultTheme(element: HTMLElement): CodeEditorProps.Theme;
7
+ export declare function getDefaultTheme(ace: any, mode: 'light' | 'dark'): CodeEditorProps.Theme;
8
+ export declare function getDefaultSupportedThemes(ace: any): CodeEditorProps.AvailableThemes;
10
9
  export declare function getAceTheme(theme: CodeEditorProps.Theme): string;
11
10
  export declare function getLanguageLabel(language: CodeEditorProps.Language): string;
12
11
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"lib/default/","sources":["code-editor/util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExD,eAAO,MAAM,mBAAmB,EAAE,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAU,CAAC;AAC/E,eAAO,MAAM,kBAAkB,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAA2B,CAAC;AAI9F,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAc/D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAKrE;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,eAAe,CAAC,KAAK,CAM3E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,UAEvD;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,eAAe,CAAC,QAAQ,GAAG,MAAM,CAE3E"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"lib/default/","sources":["code-editor/util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAyBxD,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAE/D;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAE3D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAKrE;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,eAAe,CAAC,KAAK,CAMvF;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,GAAG,GAAG,eAAe,CAAC,eAAe,CASnF;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,UAEvD;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,eAAe,CAAC,QAAQ,GAAG,MAAM,CAE3E"}
@@ -1,9 +1,10 @@
1
1
  import { AceModes } from './ace-modes';
2
- import { findUpUntil } from '../internal/utils/dom';
3
- export const DEFAULT_LIGHT_THEME = 'dawn';
4
- export const DEFAULT_DARK_THEME = 'tomorrow_night_bright';
5
- const KEYBOARD_ACCESSIBILITY_MIN_ACE_VERSION = [1, 23];
6
- export function supportsKeyboardAccessibility(ace) {
2
+ import { LightThemes, DarkThemes } from './ace-themes';
3
+ const DEFAULT_LIGHT_THEME = 'cloud_editor';
4
+ const DEFAULT_DARK_THEME = 'cloud_editor_dark';
5
+ const FALLBACK_LIGHT_THEME = 'dawn';
6
+ const FALLBACK_DARK_THEME = 'tomorrow_night_bright';
7
+ function isAceVersionAtLeast(ace, minVersion) {
7
8
  var _a;
8
9
  // Split semantic version numbers. We don't need a full semver parser for this.
9
10
  const semanticVersion = (_a = ace === null || ace === void 0 ? void 0 : ace.version) === null || _a === void 0 ? void 0 : _a.split('.').map((part) => {
@@ -12,16 +13,34 @@ export function supportsKeyboardAccessibility(ace) {
12
13
  });
13
14
  return (!!semanticVersion &&
14
15
  typeof semanticVersion[0] === 'number' &&
15
- semanticVersion[0] >= KEYBOARD_ACCESSIBILITY_MIN_ACE_VERSION[0] &&
16
+ semanticVersion[0] >= minVersion[0] &&
16
17
  typeof semanticVersion[1] === 'number' &&
17
- semanticVersion[1] >= KEYBOARD_ACCESSIBILITY_MIN_ACE_VERSION[1]);
18
+ semanticVersion[1] >= minVersion[1] &&
19
+ typeof semanticVersion[2] === 'number' &&
20
+ semanticVersion[2] >= minVersion[2]);
21
+ }
22
+ export function supportsKeyboardAccessibility(ace) {
23
+ return isAceVersionAtLeast(ace, [1, 23, 0]);
24
+ }
25
+ export function supportsCloudEditorThemes(ace) {
26
+ return isAceVersionAtLeast(ace, [1, 32, 0]);
18
27
  }
19
28
  export function getDefaultConfig(ace) {
20
29
  return Object.assign({ behavioursEnabled: true }, (supportsKeyboardAccessibility(ace) ? { enableKeyboardAccessibility: true } : {}));
21
30
  }
22
- export function getDefaultTheme(element) {
23
- const isDarkMode = !!findUpUntil(element, node => node.classList.contains('awsui-polaris-dark-mode') || node.classList.contains('awsui-dark-mode'));
24
- return isDarkMode ? DEFAULT_DARK_THEME : DEFAULT_LIGHT_THEME;
31
+ export function getDefaultTheme(ace, mode) {
32
+ if (supportsCloudEditorThemes(ace)) {
33
+ return mode === 'dark' ? DEFAULT_DARK_THEME : DEFAULT_LIGHT_THEME;
34
+ }
35
+ else {
36
+ return mode === 'dark' ? FALLBACK_DARK_THEME : FALLBACK_LIGHT_THEME;
37
+ }
38
+ }
39
+ export function getDefaultSupportedThemes(ace) {
40
+ return {
41
+ light: LightThemes.map(theme => theme.value).filter(value => value !== 'cloud_editor' || supportsCloudEditorThemes(ace)),
42
+ dark: DarkThemes.map(theme => theme.value).filter(value => value !== 'cloud_editor_dark' || supportsCloudEditorThemes(ace)),
43
+ };
25
44
  }
26
45
  export function getAceTheme(theme) {
27
46
  return `ace/theme/${theme}`;
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"lib/default/","sources":["code-editor/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,MAAM,CAAC,MAAM,mBAAmB,GAAwC,MAAM,CAAC;AAC/E,MAAM,CAAC,MAAM,kBAAkB,GAAuC,uBAAuB,CAAC;AAE9F,MAAM,sCAAsC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAEvD,MAAM,UAAU,6BAA6B,CAAC,GAAQ;;IACpD,+EAA+E;IAC/E,MAAM,eAAe,GAAG,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,0CAAE,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE;QACpE,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,CAAC,eAAe;QACjB,OAAO,eAAe,CAAC,CAAC,CAAC,KAAK,QAAQ;QACtC,eAAe,CAAC,CAAC,CAAC,IAAI,sCAAsC,CAAC,CAAC,CAAC;QAC/D,OAAO,eAAe,CAAC,CAAC,CAAC,KAAK,QAAQ;QACtC,eAAe,CAAC,CAAC,CAAC,IAAI,sCAAsC,CAAC,CAAC,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAQ;IACvC,uBACE,iBAAiB,EAAE,IAAI,IACpB,CAAC,6BAA6B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,2BAA2B,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACpF;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAAoB;IAClD,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAC9B,OAAO,EACP,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,yBAAyB,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CACzG,CAAC;IACF,OAAO,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAA4B;IACtD,OAAO,aAAa,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAAkC;;IACjE,OAAO,CAAA,MAAA,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAuB,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,0CAAE,KAAK,KAAI,QAAQ,CAAC;AACrG,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\n\nimport { AceModes } from './ace-modes';\nimport { LightThemes, DarkThemes } from './ace-themes';\nimport { CodeEditorProps } from './interfaces';\nimport { findUpUntil } from '../internal/utils/dom';\n\nexport type PaneStatus = 'error' | 'warning' | 'hidden';\n\nexport const DEFAULT_LIGHT_THEME: typeof LightThemes[number]['value'] = 'dawn';\nexport const DEFAULT_DARK_THEME: typeof DarkThemes[number]['value'] = 'tomorrow_night_bright';\n\nconst KEYBOARD_ACCESSIBILITY_MIN_ACE_VERSION = [1, 23];\n\nexport function supportsKeyboardAccessibility(ace: any): boolean {\n // Split semantic version numbers. We don't need a full semver parser for this.\n const semanticVersion = ace?.version?.split('.').map((part: string) => {\n const parsed = parseInt(part);\n return Number.isNaN(parsed) ? part : parsed;\n });\n\n return (\n !!semanticVersion &&\n typeof semanticVersion[0] === 'number' &&\n semanticVersion[0] >= KEYBOARD_ACCESSIBILITY_MIN_ACE_VERSION[0] &&\n typeof semanticVersion[1] === 'number' &&\n semanticVersion[1] >= KEYBOARD_ACCESSIBILITY_MIN_ACE_VERSION[1]\n );\n}\n\nexport function getDefaultConfig(ace: any): Partial<Ace.EditorOptions> {\n return {\n behavioursEnabled: true,\n ...(supportsKeyboardAccessibility(ace) ? { enableKeyboardAccessibility: true } : {}),\n };\n}\n\nexport function getDefaultTheme(element: HTMLElement): CodeEditorProps.Theme {\n const isDarkMode = !!findUpUntil(\n element,\n node => node.classList.contains('awsui-polaris-dark-mode') || node.classList.contains('awsui-dark-mode')\n );\n return isDarkMode ? DEFAULT_DARK_THEME : DEFAULT_LIGHT_THEME;\n}\n\nexport function getAceTheme(theme: CodeEditorProps.Theme) {\n return `ace/theme/${theme}`;\n}\n\nexport function getLanguageLabel(language: CodeEditorProps.Language): string {\n return AceModes.filter((mode: { value: string }) => mode.value === language)[0]?.label || language;\n}\n"]}
1
+ {"version":3,"file":"util.js","sourceRoot":"lib/default/","sources":["code-editor/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAKvD,MAAM,mBAAmB,GAAwC,cAAc,CAAC;AAChF,MAAM,kBAAkB,GAAuC,mBAAmB,CAAC;AACnF,MAAM,oBAAoB,GAAwC,MAAM,CAAC;AACzE,MAAM,mBA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,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACpF;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAQ,EAAE,IAAsB;IAC9D,IAAI,yBAAyB,CAAC,GAAG,CAAC,EAAE;QAClC,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAC;KACnE;SAAM;QACL,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,oBAAoB,CAAC;KACrE;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,GAAQ;IAChD,OAAO;QACL,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CACjD,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,cAAc,IAAI,yBAAyB,CAAC,GAAG,CAAC,CACpE;QACD,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAC/C,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,mBAAmB,IAAI,yBAAyB,CAAC,GAAG,CAAC,CACzE;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAA4B;IACtD,OAAO,aAAa,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAAkC;;IACjE,OAAO,CAAA,MAAA,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAuB,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,0CAAE,KAAK,KAAI,QAAQ,CAAC;AACrG,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\n\nimport { AceModes } from './ace-modes';\nimport { LightThemes, DarkThemes } from './ace-themes';\nimport { CodeEditorProps } from './interfaces';\n\nexport type PaneStatus = 'error' | 'warning' | 'hidden';\n\nconst DEFAULT_LIGHT_THEME: typeof LightThemes[number]['value'] = 'cloud_editor';\nconst DEFAULT_DARK_THEME: typeof DarkThemes[number]['value'] = 'cloud_editor_dark';\nconst FALLBACK_LIGHT_THEME: typeof LightThemes[number]['value'] = 'dawn';\nconst FALLBACK_DARK_THEME: typeof DarkThemes[number]['value'] = 'tomorrow_night_bright';\n\nfunction isAceVersionAtLeast(ace: any, minVersion: [number, number, number]): boolean {\n // Split semantic version numbers. We don't need a full semver parser for this.\n const semanticVersion = ace?.version?.split('.').map((part: string) => {\n const parsed = parseInt(part);\n return Number.isNaN(parsed) ? part : parsed;\n });\n\n return (\n !!semanticVersion &&\n typeof semanticVersion[0] === 'number' &&\n semanticVersion[0] >= minVersion[0] &&\n typeof semanticVersion[1] === 'number' &&\n semanticVersion[1] >= minVersion[1] &&\n typeof semanticVersion[2] === 'number' &&\n semanticVersion[2] >= minVersion[2]\n );\n}\n\nexport function supportsKeyboardAccessibility(ace: any): boolean {\n return isAceVersionAtLeast(ace, [1, 23, 0]);\n}\n\nexport function supportsCloudEditorThemes(ace: any): boolean {\n return isAceVersionAtLeast(ace, [1, 32, 0]);\n}\n\nexport function getDefaultConfig(ace: any): Partial<Ace.EditorOptions> {\n return {\n behavioursEnabled: true,\n ...(supportsKeyboardAccessibility(ace) ? { enableKeyboardAccessibility: true } : {}),\n };\n}\n\nexport function getDefaultTheme(ace: any, mode: 'light' | 'dark'): CodeEditorProps.Theme {\n if (supportsCloudEditorThemes(ace)) {\n return mode === 'dark' ? DEFAULT_DARK_THEME : DEFAULT_LIGHT_THEME;\n } else {\n return mode === 'dark' ? FALLBACK_DARK_THEME : FALLBACK_LIGHT_THEME;\n }\n}\n\nexport function getDefaultSupportedThemes(ace: any): CodeEditorProps.AvailableThemes {\n return {\n light: LightThemes.map(theme => theme.value).filter(\n value => value !== 'cloud_editor' || supportsCloudEditorThemes(ace)\n ),\n dark: DarkThemes.map(theme => theme.value).filter(\n value => value !== 'cloud_editor_dark' || supportsCloudEditorThemes(ace)\n ),\n };\n}\n\nexport function getAceTheme(theme: CodeEditorProps.Theme) {\n return `ace/theme/${theme}`;\n}\n\nexport function getLanguageLabel(language: CodeEditorProps.Language): string {\n return AceModes.filter((mode: { value: string }) => mode.value === language)[0]?.label || language;\n}\n"]}
@@ -1,16 +1,16 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_1bzul_185",
5
- "content-display-option-content": "awsui_content-display-option-content_1f3h0_1bzul_189",
6
- "content-display-option": "awsui_content-display-option_1f3h0_1bzul_185",
7
- "placeholder": "awsui_placeholder_1f3h0_1bzul_234",
8
- "sorting": "awsui_sorting_1f3h0_1bzul_234",
9
- "content-display-option-label": "awsui_content-display-option-label_1f3h0_1bzul_261",
10
- "drag-overlay": "awsui_drag-overlay_1f3h0_1bzul_268",
11
- "content-display": "awsui_content-display_1f3h0_1bzul_185",
12
- "content-display-title": "awsui_content-display-title_1f3h0_1bzul_298",
13
- "content-display-description": "awsui_content-display-description_1f3h0_1bzul_306",
14
- "content-display-option-list": "awsui_content-display-option-list_1f3h0_1bzul_314"
4
+ "content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_12qkn_185",
5
+ "content-display-option-content": "awsui_content-display-option-content_1f3h0_12qkn_189",
6
+ "content-display-option": "awsui_content-display-option_1f3h0_12qkn_185",
7
+ "placeholder": "awsui_placeholder_1f3h0_12qkn_239",
8
+ "sorting": "awsui_sorting_1f3h0_12qkn_239",
9
+ "content-display-option-label": "awsui_content-display-option-label_1f3h0_12qkn_266",
10
+ "drag-overlay": "awsui_drag-overlay_1f3h0_12qkn_273",
11
+ "content-display": "awsui_content-display_1f3h0_12qkn_185",
12
+ "content-display-title": "awsui_content-display-title_1f3h0_12qkn_306",
13
+ "content-display-description": "awsui_content-display-description_1f3h0_12qkn_315",
14
+ "content-display-option-list": "awsui_content-display-option-list_1f3h0_12qkn_323"
15
15
  };
16
16
 
@@ -182,11 +182,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
182
182
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
183
183
  SPDX-License-Identifier: Apache-2.0
184
184
  */
185
- .awsui_content-display-option-toggle_1f3h0_1bzul_185:not(#\9) {
185
+ .awsui_content-display-option-toggle_1f3h0_12qkn_185:not(#\9) {
186
186
  /* used in test-utils */
187
187
  }
188
188
 
189
- .awsui_content-display-option-content_1f3h0_1bzul_189:not(#\9) {
189
+ .awsui_content-display-option-content_1f3h0_12qkn_189:not(#\9) {
190
190
  border-collapse: separate;
191
191
  border-spacing: 0;
192
192
  box-sizing: border-box;
@@ -222,62 +222,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
222
222
  -moz-osx-font-smoothing: auto;
223
223
  display: flex;
224
224
  align-items: flex-start;
225
- padding: var(--space-xs-zb16t3, 8px) var(--space-scaled-xs-26e2du, 8px) var(--space-xs-zb16t3, 8px) 0;
225
+ padding-block: var(--space-xs-zb16t3, 8px);
226
+ padding-inline-start: 0;
227
+ padding-inline-end: var(--space-scaled-xs-26e2du, 8px);
226
228
  background-color: var(--color-background-container-content-4un1ap, #ffffff);
227
- border-radius: var(--border-radius-item-05df9h, 8px);
229
+ border-start-start-radius: var(--border-radius-item-05df9h, 8px);
230
+ border-start-end-radius: var(--border-radius-item-05df9h, 8px);
231
+ border-end-start-radius: var(--border-radius-item-05df9h, 8px);
232
+ border-end-end-radius: var(--border-radius-item-05df9h, 8px);
228
233
  }
229
234
 
230
- .awsui_content-display-option_1f3h0_1bzul_185:not(#\9) {
235
+ .awsui_content-display-option_1f3h0_12qkn_185:not(#\9) {
231
236
  list-style: none;
232
237
  position: relative;
233
- border-top: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-um17yo, #e9ebed);
238
+ border-block-start: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-um17yo, #e9ebed);
234
239
  }
235
- .awsui_content-display-option_1f3h0_1bzul_185:not(#\9):not(.awsui_placeholder_1f3h0_1bzul_234).awsui_sorting_1f3h0_1bzul_234 {
240
+ .awsui_content-display-option_1f3h0_12qkn_185:not(#\9):not(.awsui_placeholder_1f3h0_12qkn_239).awsui_sorting_1f3h0_12qkn_239 {
236
241
  transition: transform var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
237
242
  }
238
243
  @media (prefers-reduced-motion: reduce) {
239
- .awsui_content-display-option_1f3h0_1bzul_185:not(#\9):not(.awsui_placeholder_1f3h0_1bzul_234).awsui_sorting_1f3h0_1bzul_234 {
244
+ .awsui_content-display-option_1f3h0_12qkn_185:not(#\9):not(.awsui_placeholder_1f3h0_12qkn_239).awsui_sorting_1f3h0_12qkn_239 {
240
245
  animation: none;
241
246
  transition: none;
242
247
  }
243
248
  }
244
- .awsui-motion-disabled .awsui_content-display-option_1f3h0_1bzul_185:not(#\9):not(.awsui_placeholder_1f3h0_1bzul_234).awsui_sorting_1f3h0_1bzul_234, .awsui-mode-entering .awsui_content-display-option_1f3h0_1bzul_185:not(#\9):not(.awsui_placeholder_1f3h0_1bzul_234).awsui_sorting_1f3h0_1bzul_234 {
249
+ .awsui-motion-disabled .awsui_content-display-option_1f3h0_12qkn_185:not(#\9):not(.awsui_placeholder_1f3h0_12qkn_239).awsui_sorting_1f3h0_12qkn_239, .awsui-mode-entering .awsui_content-display-option_1f3h0_12qkn_185:not(#\9):not(.awsui_placeholder_1f3h0_12qkn_239).awsui_sorting_1f3h0_12qkn_239 {
245
250
  animation: none;
246
251
  transition: none;
247
252
  }
248
- .awsui_content-display-option_1f3h0_1bzul_185.awsui_placeholder_1f3h0_1bzul_234 > .awsui_content-display-option-content_1f3h0_1bzul_189:not(#\9) {
253
+ .awsui_content-display-option_1f3h0_12qkn_185.awsui_placeholder_1f3h0_12qkn_239 > .awsui_content-display-option-content_1f3h0_12qkn_189:not(#\9) {
249
254
  position: relative;
250
255
  }
251
- .awsui_content-display-option_1f3h0_1bzul_185.awsui_placeholder_1f3h0_1bzul_234 > .awsui_content-display-option-content_1f3h0_1bzul_189:not(#\9):after {
256
+ .awsui_content-display-option_1f3h0_12qkn_185.awsui_placeholder_1f3h0_12qkn_239 > .awsui_content-display-option-content_1f3h0_12qkn_189:not(#\9):after {
252
257
  content: " ";
253
258
  position: absolute;
254
- top: 0;
255
- bottom: 0;
256
- left: 0;
257
- right: 0;
259
+ inset: 0;
258
260
  background: var(--color-drag-placeholder-hover-4im65s, #d3e7f9);
259
- border-radius: var(--border-radius-item-05df9h, 8px);
261
+ border-start-start-radius: var(--border-radius-item-05df9h, 8px);
262
+ border-start-end-radius: var(--border-radius-item-05df9h, 8px);
263
+ border-end-start-radius: var(--border-radius-item-05df9h, 8px);
264
+ border-end-end-radius: var(--border-radius-item-05df9h, 8px);
260
265
  }
261
266
 
262
- .awsui_content-display-option-label_1f3h0_1bzul_261:not(#\9) {
267
+ .awsui_content-display-option-label_1f3h0_12qkn_266:not(#\9) {
263
268
  flex-grow: 1;
264
269
  min-inline-size: 0;
265
270
  word-break: break-word;
266
- padding-right: var(--space-l-t419sm, 20px);
271
+ padding-inline-end: var(--space-l-t419sm, 20px);
267
272
  }
268
273
 
269
- .awsui_drag-overlay_1f3h0_1bzul_268:not(#\9) {
274
+ .awsui_drag-overlay_1f3h0_12qkn_273:not(#\9) {
270
275
  box-shadow: var(--shadow-container-active-kl29x9, 0px 1px 1px 1px #e9ebed, 0px 6px 36px rgba(0, 7, 22, 0.1019607843));
271
- border-radius: var(--border-radius-item-05df9h, 8px);
276
+ border-start-start-radius: var(--border-radius-item-05df9h, 8px);
277
+ border-start-end-radius: var(--border-radius-item-05df9h, 8px);
278
+ border-end-start-radius: var(--border-radius-item-05df9h, 8px);
279
+ border-end-end-radius: var(--border-radius-item-05df9h, 8px);
272
280
  }
273
- body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_1bzul_268:not(#\9) {
281
+ body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_12qkn_273:not(#\9) {
274
282
  position: relative;
275
283
  }
276
- body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_1bzul_268:not(#\9) {
284
+ body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_12qkn_273:not(#\9) {
277
285
  outline: 2px dotted transparent;
278
286
  outline-offset: calc(0px - 1px);
279
287
  }
280
- body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_1bzul_268:not(#\9)::before {
288
+ body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_12qkn_273:not(#\9)::before {
281
289
  content: " ";
282
290
  display: block;
283
291
  position: absolute;
@@ -292,28 +300,30 @@ body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_1bzul_268:not(#\9)
292
300
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
293
301
  }
294
302
 
295
- .awsui_content-display_1f3h0_1bzul_185:not(#\9) {
303
+ .awsui_content-display_1f3h0_12qkn_185:not(#\9) {
296
304
  /* used in test-utils */
297
305
  }
298
306
 
299
- .awsui_content-display-title_1f3h0_1bzul_298:not(#\9) {
307
+ .awsui_content-display-title_1f3h0_12qkn_306:not(#\9) {
300
308
  font-size: var(--font-size-body-m-x4okxb, 14px);
301
309
  line-height: var(--line-height-body-m-30ar75, 20px);
302
310
  font-weight: var(--font-display-label-weight-815ja9, 700);
303
311
  color: var(--color-text-form-label-ktbzsd, #000716);
304
- margin: 0;
312
+ margin-block: 0;
313
+ margin-inline: 0;
305
314
  }
306
315
 
307
- .awsui_content-display-description_1f3h0_1bzul_306:not(#\9) {
316
+ .awsui_content-display-description_1f3h0_12qkn_315:not(#\9) {
308
317
  color: var(--color-text-form-secondary-dxc248, #5f6b7a);
309
318
  font-size: var(--font-size-body-s-asqx2i, 12px);
310
319
  line-height: var(--line-height-body-s-7zv1j5, 16px);
311
320
  letter-spacing: var(--letter-spacing-body-s-z9jkwp, 0.005em);
312
- margin-top: var(--space-scaled-xxxs-27y4hv, 2px);
321
+ margin-block-start: var(--space-scaled-xxxs-27y4hv, 2px);
313
322
  }
314
323
 
315
- .awsui_content-display-option-list_1f3h0_1bzul_314:not(#\9) {
324
+ .awsui_content-display-option-list_1f3h0_12qkn_323:not(#\9) {
316
325
  position: relative;
317
326
  list-style: none;
318
- padding: 0;
327
+ padding-block: 0;
328
+ padding-inline: 0;
319
329
  }
@@ -2,16 +2,16 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_1bzul_185",
6
- "content-display-option-content": "awsui_content-display-option-content_1f3h0_1bzul_189",
7
- "content-display-option": "awsui_content-display-option_1f3h0_1bzul_185",
8
- "placeholder": "awsui_placeholder_1f3h0_1bzul_234",
9
- "sorting": "awsui_sorting_1f3h0_1bzul_234",
10
- "content-display-option-label": "awsui_content-display-option-label_1f3h0_1bzul_261",
11
- "drag-overlay": "awsui_drag-overlay_1f3h0_1bzul_268",
12
- "content-display": "awsui_content-display_1f3h0_1bzul_185",
13
- "content-display-title": "awsui_content-display-title_1f3h0_1bzul_298",
14
- "content-display-description": "awsui_content-display-description_1f3h0_1bzul_306",
15
- "content-display-option-list": "awsui_content-display-option-list_1f3h0_1bzul_314"
5
+ "content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_12qkn_185",
6
+ "content-display-option-content": "awsui_content-display-option-content_1f3h0_12qkn_189",
7
+ "content-display-option": "awsui_content-display-option_1f3h0_12qkn_185",
8
+ "placeholder": "awsui_placeholder_1f3h0_12qkn_239",
9
+ "sorting": "awsui_sorting_1f3h0_12qkn_239",
10
+ "content-display-option-label": "awsui_content-display-option-label_1f3h0_12qkn_266",
11
+ "drag-overlay": "awsui_drag-overlay_1f3h0_12qkn_273",
12
+ "content-display": "awsui_content-display_1f3h0_12qkn_185",
13
+ "content-display-title": "awsui_content-display-title_1f3h0_12qkn_306",
14
+ "content-display-description": "awsui_content-display-description_1f3h0_12qkn_315",
15
+ "content-display-option-list": "awsui_content-display-option-list_1f3h0_12qkn_323"
16
16
  };
17
17
 
@@ -1,42 +1,42 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "visible-content": "awsui_visible-content_tc96w_2205y_185",
5
- "visible-content-toggle": "awsui_visible-content-toggle_tc96w_2205y_186",
6
- "visible-content-groups": "awsui_visible-content-groups_tc96w_2205y_187",
7
- "visible-content-group": "awsui_visible-content-group_tc96w_2205y_187",
8
- "visible-content-title": "awsui_visible-content-title_tc96w_2205y_192",
9
- "visible-content-group-label": "awsui_visible-content-group-label_tc96w_2205y_201",
10
- "visible-content-option": "awsui_visible-content-option_tc96w_2205y_207",
11
- "visible-content-option-label": "awsui_visible-content-option-label_tc96w_2205y_218",
12
- "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_2205y_409",
13
- "content-display-option-content": "awsui_content-display-option-content_tc96w_2205y_413",
14
- "content-display-option": "awsui_content-display-option_tc96w_2205y_409",
15
- "placeholder": "awsui_placeholder_tc96w_2205y_458",
16
- "sorting": "awsui_sorting_tc96w_2205y_458",
17
- "content-display-option-label": "awsui_content-display-option-label_tc96w_2205y_485",
18
- "drag-overlay": "awsui_drag-overlay_tc96w_2205y_492",
19
- "content-display": "awsui_content-display_tc96w_2205y_409",
20
- "content-display-title": "awsui_content-display-title_tc96w_2205y_522",
21
- "content-display-description": "awsui_content-display-description_tc96w_2205y_530",
22
- "content-display-option-list": "awsui_content-display-option-list_tc96w_2205y_538",
23
- "root": "awsui_root_tc96w_2205y_544",
24
- "modal-root": "awsui_modal-root_tc96w_2205y_545",
25
- "trigger-button": "awsui_trigger-button_tc96w_2205y_546",
26
- "cancel-button": "awsui_cancel-button_tc96w_2205y_547",
27
- "confirm-button": "awsui_confirm-button_tc96w_2205y_548",
28
- "custom": "awsui_custom_tc96w_2205y_549",
29
- "second-column-small": "awsui_second-column-small_tc96w_2205y_553",
30
- "wrap-lines": "awsui_wrap-lines_tc96w_2205y_557",
31
- "striped-rows": "awsui_striped-rows_tc96w_2205y_558",
32
- "content-density": "awsui_content-density_tc96w_2205y_559",
33
- "page-size": "awsui_page-size_tc96w_2205y_560",
34
- "page-size-form-field": "awsui_page-size-form-field_tc96w_2205y_561",
35
- "page-size-radio-group": "awsui_page-size-radio-group_tc96w_2205y_562",
36
- "sticky-columns": "awsui_sticky-columns_tc96w_2205y_563",
37
- "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_2205y_564",
38
- "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_2205y_565",
39
- "sticky-columns-first": "awsui_sticky-columns-first_tc96w_2205y_566",
40
- "sticky-columns-last": "awsui_sticky-columns-last_tc96w_2205y_567"
4
+ "visible-content": "awsui_visible-content_tc96w_1ynza_185",
5
+ "visible-content-toggle": "awsui_visible-content-toggle_tc96w_1ynza_186",
6
+ "visible-content-groups": "awsui_visible-content-groups_tc96w_1ynza_187",
7
+ "visible-content-group": "awsui_visible-content-group_tc96w_1ynza_187",
8
+ "visible-content-title": "awsui_visible-content-title_tc96w_1ynza_192",
9
+ "visible-content-group-label": "awsui_visible-content-group-label_tc96w_1ynza_202",
10
+ "visible-content-option": "awsui_visible-content-option_tc96w_1ynza_208",
11
+ "visible-content-option-label": "awsui_visible-content-option-label_tc96w_1ynza_221",
12
+ "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_1ynza_412",
13
+ "content-display-option-content": "awsui_content-display-option-content_tc96w_1ynza_416",
14
+ "content-display-option": "awsui_content-display-option_tc96w_1ynza_412",
15
+ "placeholder": "awsui_placeholder_tc96w_1ynza_466",
16
+ "sorting": "awsui_sorting_tc96w_1ynza_466",
17
+ "content-display-option-label": "awsui_content-display-option-label_tc96w_1ynza_493",
18
+ "drag-overlay": "awsui_drag-overlay_tc96w_1ynza_500",
19
+ "content-display": "awsui_content-display_tc96w_1ynza_412",
20
+ "content-display-title": "awsui_content-display-title_tc96w_1ynza_533",
21
+ "content-display-description": "awsui_content-display-description_tc96w_1ynza_542",
22
+ "content-display-option-list": "awsui_content-display-option-list_tc96w_1ynza_550",
23
+ "root": "awsui_root_tc96w_1ynza_557",
24
+ "modal-root": "awsui_modal-root_tc96w_1ynza_558",
25
+ "trigger-button": "awsui_trigger-button_tc96w_1ynza_559",
26
+ "cancel-button": "awsui_cancel-button_tc96w_1ynza_560",
27
+ "confirm-button": "awsui_confirm-button_tc96w_1ynza_561",
28
+ "custom": "awsui_custom_tc96w_1ynza_562",
29
+ "second-column-small": "awsui_second-column-small_tc96w_1ynza_566",
30
+ "wrap-lines": "awsui_wrap-lines_tc96w_1ynza_570",
31
+ "striped-rows": "awsui_striped-rows_tc96w_1ynza_571",
32
+ "content-density": "awsui_content-density_tc96w_1ynza_572",
33
+ "page-size": "awsui_page-size_tc96w_1ynza_573",
34
+ "page-size-form-field": "awsui_page-size-form-field_tc96w_1ynza_574",
35
+ "page-size-radio-group": "awsui_page-size-radio-group_tc96w_1ynza_575",
36
+ "sticky-columns": "awsui_sticky-columns_tc96w_1ynza_576",
37
+ "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_1ynza_577",
38
+ "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_1ynza_578",
39
+ "sticky-columns-first": "awsui_sticky-columns-first_tc96w_1ynza_579",
40
+ "sticky-columns-last": "awsui_sticky-columns-last_tc96w_1ynza_580"
41
41
  };
42
42