@cloudscape-design/components 3.0.360 → 3.0.362

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 (194) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +30 -30
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/index.d.ts.map +1 -1
  5. package/app-layout/index.js +4 -5
  6. package/app-layout/index.js.map +1 -1
  7. package/app-layout/utils/use-content-width.js +1 -1
  8. package/app-layout/utils/use-content-width.js.map +1 -1
  9. package/app-layout/utils/use-observed-element.js +1 -1
  10. package/app-layout/utils/use-observed-element.js.map +1 -1
  11. package/app-layout/visual-refresh/styles.css.js +69 -69
  12. package/app-layout/visual-refresh/styles.scoped.css +169 -169
  13. package/app-layout/visual-refresh/styles.selectors.js +69 -69
  14. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  15. package/area-chart/model/use-chart-model.js +2 -2
  16. package/area-chart/model/use-chart-model.js.map +1 -1
  17. package/area-chart/styles.css.js +6 -6
  18. package/area-chart/styles.scoped.css +10 -10
  19. package/area-chart/styles.selectors.js +6 -6
  20. package/attribute-editor/styles.css.js +14 -14
  21. package/attribute-editor/styles.scoped.css +25 -25
  22. package/attribute-editor/styles.selectors.js +14 -14
  23. package/button-dropdown/category-elements/styles.css.js +13 -13
  24. package/button-dropdown/category-elements/styles.scoped.css +27 -27
  25. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  26. package/button-dropdown/item-element/styles.css.js +15 -15
  27. package/button-dropdown/item-element/styles.scoped.css +19 -19
  28. package/button-dropdown/item-element/styles.selectors.js +15 -15
  29. package/button-dropdown/styles.css.js +14 -14
  30. package/button-dropdown/styles.scoped.css +22 -22
  31. package/button-dropdown/styles.selectors.js +14 -14
  32. package/code-editor/listeners.js +2 -2
  33. package/code-editor/listeners.js.map +1 -1
  34. package/code-editor/resizable-box/index.js +2 -2
  35. package/code-editor/resizable-box/index.js.map +1 -1
  36. package/code-editor/styles.css.js +32 -32
  37. package/code-editor/styles.scoped.css +130 -130
  38. package/code-editor/styles.selectors.js +32 -32
  39. package/collection-preferences/content-display/styles.css.js +11 -11
  40. package/collection-preferences/content-display/styles.scoped.css +18 -18
  41. package/collection-preferences/content-display/styles.selectors.js +11 -11
  42. package/collection-preferences/styles.css.js +37 -37
  43. package/collection-preferences/styles.scoped.css +47 -47
  44. package/collection-preferences/styles.selectors.js +37 -37
  45. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  46. package/column-layout/flexible-column-layout/styles.scoped.css +5 -5
  47. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  48. package/column-layout/styles.css.js +13 -13
  49. package/column-layout/styles.scoped.css +46 -46
  50. package/column-layout/styles.selectors.js +13 -13
  51. package/container/styles.css.js +28 -28
  52. package/container/styles.scoped.css +55 -55
  53. package/container/styles.selectors.js +28 -28
  54. package/date-range-picker/styles.css.js +38 -38
  55. package/date-range-picker/styles.scoped.css +47 -47
  56. package/date-range-picker/styles.selectors.js +38 -38
  57. package/expandable-section/styles.css.js +29 -29
  58. package/expandable-section/styles.scoped.css +66 -66
  59. package/expandable-section/styles.selectors.js +29 -29
  60. package/form-field/styles.css.js +19 -19
  61. package/form-field/styles.scoped.css +30 -30
  62. package/form-field/styles.selectors.js +19 -19
  63. package/help-panel/styles.css.js +4 -4
  64. package/help-panel/styles.scoped.css +66 -66
  65. package/help-panel/styles.selectors.js +4 -4
  66. package/internal/base-component/styles.scoped.css +81 -57
  67. package/internal/components/dark-ribbon/index.js +2 -2
  68. package/internal/components/dark-ribbon/index.js.map +1 -1
  69. package/internal/components/dropdown-footer/styles.css.js +3 -3
  70. package/internal/components/dropdown-footer/styles.scoped.css +4 -4
  71. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  72. package/internal/components/options-list/index.d.ts.map +1 -1
  73. package/internal/components/options-list/index.js +2 -2
  74. package/internal/components/options-list/index.js.map +1 -1
  75. package/internal/components/selectable-item/styles.css.js +16 -16
  76. package/internal/components/selectable-item/styles.scoped.css +31 -31
  77. package/internal/components/selectable-item/styles.selectors.js +16 -16
  78. package/internal/components/token-list/styles.css.js +9 -9
  79. package/internal/components/token-list/styles.scoped.css +22 -22
  80. package/internal/components/token-list/styles.selectors.js +9 -9
  81. package/internal/environment.js +1 -1
  82. package/internal/environment.json +1 -1
  83. package/internal/generated/styles/tokens.js +1 -1
  84. package/internal/generated/theming/index.cjs +25 -23
  85. package/internal/generated/theming/index.js +25 -23
  86. package/internal/hooks/container-queries/index.d.ts +0 -1
  87. package/internal/hooks/container-queries/index.d.ts.map +1 -1
  88. package/internal/hooks/container-queries/index.js +0 -1
  89. package/internal/hooks/container-queries/index.js.map +1 -1
  90. package/internal/hooks/container-queries/use-height-measure.js +1 -1
  91. package/internal/hooks/container-queries/use-height-measure.js.map +1 -1
  92. package/internal/hooks/use-dynamic-overlap/index.js +1 -1
  93. package/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  94. package/internal/hooks/use-mobile/index.js +1 -1
  95. package/internal/hooks/use-mobile/index.js.map +1 -1
  96. package/internal/hooks/use-mouse-down-target.js +1 -1
  97. package/internal/hooks/use-mouse-down-target.js.map +1 -1
  98. package/internal/hooks/use-mutation-observer/index.d.ts.map +1 -1
  99. package/internal/hooks/use-mutation-observer/index.js +2 -3
  100. package/internal/hooks/use-mutation-observer/index.js.map +1 -1
  101. package/internal/manifest.json +1 -1
  102. package/modal/styles.css.js +23 -23
  103. package/modal/styles.scoped.css +39 -39
  104. package/modal/styles.selectors.js +23 -23
  105. package/package.json +1 -1
  106. package/pie-chart/labels.js +1 -1
  107. package/pie-chart/labels.js.map +1 -1
  108. package/pie-chart/styles.css.js +27 -27
  109. package/pie-chart/styles.scoped.css +43 -43
  110. package/pie-chart/styles.selectors.js +27 -27
  111. package/popover/container.d.ts.map +1 -1
  112. package/popover/container.js +1 -1
  113. package/popover/container.js.map +1 -1
  114. package/property-filter/styles.css.js +29 -29
  115. package/property-filter/styles.scoped.css +33 -33
  116. package/property-filter/styles.selectors.js +29 -29
  117. package/s3-resource-selector/s3-in-context/styles.css.js +7 -7
  118. package/s3-resource-selector/s3-in-context/styles.scoped.css +10 -10
  119. package/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
  120. package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts.map +1 -1
  121. package/s3-resource-selector/s3-in-context/use-versions-fetch.js +2 -2
  122. package/s3-resource-selector/s3-in-context/use-versions-fetch.js.map +1 -1
  123. package/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  124. package/s3-resource-selector/s3-modal/basic-table.js +2 -2
  125. package/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  126. package/side-navigation/styles.css.js +28 -28
  127. package/side-navigation/styles.scoped.css +43 -43
  128. package/side-navigation/styles.selectors.js +28 -28
  129. package/split-panel/bottom.js +1 -1
  130. package/split-panel/bottom.js.map +1 -1
  131. package/split-panel/styles.css.js +56 -56
  132. package/split-panel/styles.scoped.css +85 -85
  133. package/split-panel/styles.selectors.js +56 -56
  134. package/table/body-cell/click-away.js +2 -2
  135. package/table/body-cell/click-away.js.map +1 -1
  136. package/table/body-cell/styles.css.js +28 -28
  137. package/table/body-cell/styles.scoped.css +76 -76
  138. package/table/body-cell/styles.selectors.js +28 -28
  139. package/table/header-cell/styles.css.js +24 -24
  140. package/table/header-cell/styles.scoped.css +43 -43
  141. package/table/header-cell/styles.selectors.js +24 -24
  142. package/table/resizer/index.js +3 -3
  143. package/table/resizer/index.js.map +1 -1
  144. package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
  145. package/table/sticky-columns/use-sticky-columns.js +2 -3
  146. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  147. package/table/sticky-scrollbar/styles.css.js +6 -6
  148. package/table/sticky-scrollbar/styles.scoped.css +9 -9
  149. package/table/sticky-scrollbar/styles.selectors.js +6 -6
  150. package/table/styles.css.js +34 -34
  151. package/table/styles.scoped.css +42 -42
  152. package/table/styles.selectors.js +34 -34
  153. package/table/use-sticky-header.js +1 -1
  154. package/table/use-sticky-header.js.map +1 -1
  155. package/tabs/styles.css.js +21 -21
  156. package/tabs/styles.scoped.css +46 -46
  157. package/tabs/styles.selectors.js +21 -21
  158. package/tag-editor/index.d.ts.map +1 -1
  159. package/tag-editor/index.js +6 -6
  160. package/tag-editor/index.js.map +1 -1
  161. package/tiles/styles.css.js +29 -29
  162. package/tiles/styles.scoped.css +73 -73
  163. package/tiles/styles.selectors.js +29 -29
  164. package/top-navigation/1.0-beta/styles.css.js +25 -25
  165. package/top-navigation/1.0-beta/styles.scoped.css +43 -43
  166. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  167. package/top-navigation/styles.css.js +47 -47
  168. package/top-navigation/styles.scoped.css +73 -73
  169. package/top-navigation/styles.selectors.js +47 -47
  170. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  171. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -23
  172. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  173. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  174. package/tutorial-panel/components/tutorial-list/styles.scoped.css +28 -28
  175. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  176. package/wizard/styles.css.js +31 -31
  177. package/wizard/styles.scoped.css +63 -63
  178. package/wizard/styles.selectors.js +31 -31
  179. package/internal/hooks/container-queries/use-resize-observer.d.ts +0 -21
  180. package/internal/hooks/container-queries/use-resize-observer.d.ts.map +0 -1
  181. package/internal/hooks/container-queries/use-resize-observer.js +0 -54
  182. package/internal/hooks/container-queries/use-resize-observer.js.map +0 -1
  183. package/internal/hooks/container-queries/utils.d.ts +0 -4
  184. package/internal/hooks/container-queries/utils.d.ts.map +0 -1
  185. package/internal/hooks/container-queries/utils.js +0 -10
  186. package/internal/hooks/container-queries/utils.js.map +0 -1
  187. package/internal/hooks/use-singleton-handler/index.d.ts +0 -11
  188. package/internal/hooks/use-singleton-handler/index.d.ts.map +0 -1
  189. package/internal/hooks/use-singleton-handler/index.js +0 -45
  190. package/internal/hooks/use-singleton-handler/index.js.map +0 -1
  191. package/internal/hooks/use-stable-event-handler/index.d.ts +0 -10
  192. package/internal/hooks/use-stable-event-handler/index.d.ts.map +0 -1
  193. package/internal/hooks/use-stable-event-handler/index.js +0 -19
  194. package/internal/hooks/use-stable-event-handler/index.js.map +0 -1
@@ -6900,8 +6900,8 @@ module.exports.preset = {
6900
6900
  "dark": "{colorGrey100}"
6901
6901
  },
6902
6902
  "colorBorderDividerDefault": {
6903
- "light": "{colorGrey200}",
6904
- "dark": "{colorGrey600}"
6903
+ "light": "{colorTextButtonNormalDefault}",
6904
+ "dark": "{colorTextButtonNormalDefault}"
6905
6905
  },
6906
6906
  "colorBorderDividerPanelBottom": {
6907
6907
  "light": "{colorBorderDividerDefault}",
@@ -7228,12 +7228,12 @@ module.exports.preset = {
7228
7228
  "dark": "{colorGrey300}"
7229
7229
  },
7230
7230
  "colorTextExpandableSectionDefault": {
7231
- "light": "{colorTextInteractiveActive}",
7232
- "dark": "{colorTextInteractiveActive}"
7231
+ "light": "{colorTextButtonNormalDefault}",
7232
+ "dark": "{colorTextButtonNormalDefault}"
7233
7233
  },
7234
7234
  "colorTextExpandableSectionHover": {
7235
- "light": "{colorTextAccent}",
7236
- "dark": "{colorTextAccent}"
7235
+ "light": "{colorTextButtonNormalHover}",
7236
+ "dark": "{colorTextButtonNormalHover}"
7237
7237
  },
7238
7238
  "colorTextExpandableSectionNavigationIconDefault": {
7239
7239
  "light": "{colorTextInteractiveDefault}",
@@ -7450,7 +7450,9 @@ module.exports.preset = {
7450
7450
  "colorDropzoneTextHover": {
7451
7451
  "light": "{colorBlue800}",
7452
7452
  "dark": "{colorWhite}"
7453
- }
7453
+ },
7454
+ "fontExpandableHeadingSize": "14px",
7455
+ "borderDividerSectionWidth": "1px"
7454
7456
  }
7455
7457
  },
7456
7458
  "alert-header": {
@@ -7834,8 +7836,8 @@ module.exports.preset = {
7834
7836
  "dark": "{colorGrey100}"
7835
7837
  },
7836
7838
  "colorBorderDividerDefault": {
7837
- "light": "{colorGrey600}",
7838
- "dark": "{colorGrey600}"
7839
+ "light": "{colorTextButtonNormalDefault}",
7840
+ "dark": "{colorTextButtonNormalDefault}"
7839
7841
  },
7840
7842
  "colorBorderDividerPanelBottom": {
7841
7843
  "light": "{colorGreyTransparent}",
@@ -8162,12 +8164,12 @@ module.exports.preset = {
8162
8164
  "dark": "{colorGrey300}"
8163
8165
  },
8164
8166
  "colorTextExpandableSectionDefault": {
8165
- "light": "{colorTextInteractiveActive}",
8166
- "dark": "{colorTextInteractiveActive}"
8167
+ "light": "{colorTextButtonNormalDefault}",
8168
+ "dark": "{colorTextButtonNormalDefault}"
8167
8169
  },
8168
8170
  "colorTextExpandableSectionHover": {
8169
- "light": "{colorTextAccent}",
8170
- "dark": "{colorTextAccent}"
8171
+ "light": "{colorTextButtonNormalHover}",
8172
+ "dark": "{colorTextButtonNormalHover}"
8171
8173
  },
8172
8174
  "colorTextExpandableSectionNavigationIconDefault": {
8173
8175
  "light": "{colorTextInteractiveDefault}",
@@ -10402,12 +10404,12 @@ module.exports.preset = {
10402
10404
  "colorBorderControlDefault": "--color-border-control-default-0fzxw0",
10403
10405
  "colorBorderControlDisabled": "--color-border-control-disabled-bv2kkn",
10404
10406
  "colorBorderDividerActive": "--color-border-divider-active-k4haaf",
10405
- "colorBorderDividerDefault": "--color-border-divider-default-d3adp9",
10406
- "colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-s8zdda",
10407
- "colorBorderDividerPanelSide": "--color-border-divider-panel-side-ompdsw",
10407
+ "colorBorderDividerDefault": "--color-border-divider-default-et9j7s",
10408
+ "colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-16n9vt",
10409
+ "colorBorderDividerPanelSide": "--color-border-divider-panel-side-qqne3x",
10408
10410
  "colorBorderDropdownContainer": "--color-border-dropdown-container-5boaph",
10409
- "colorBorderDropdownGroup": "--color-border-dropdown-group-c2r4dp",
10410
- "colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-rgr5b2",
10411
+ "colorBorderDropdownGroup": "--color-border-dropdown-group-zgquz8",
10412
+ "colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-dofu99",
10411
10413
  "colorBorderDropdownItemHover": "--color-border-dropdown-item-hover-461g78",
10412
10414
  "colorBorderDropdownItemDimmedHover": "--color-border-dropdown-item-dimmed-hover-xdu0hf",
10413
10415
  "colorBorderDropdownItemSelected": "--color-border-dropdown-item-selected-096aj1",
@@ -10484,8 +10486,8 @@ module.exports.preset = {
10484
10486
  "colorTextDropdownItemSecondary": "--color-text-dropdown-item-secondary-jho0ju",
10485
10487
  "colorTextDropdownItemSecondaryHover": "--color-text-dropdown-item-secondary-hover-zfmqjr",
10486
10488
  "colorTextEmpty": "--color-text-empty-2wfcyr",
10487
- "colorTextExpandableSectionDefault": "--color-text-expandable-section-default-jh4jdf",
10488
- "colorTextExpandableSectionHover": "--color-text-expandable-section-hover-pfe4fw",
10489
+ "colorTextExpandableSectionDefault": "--color-text-expandable-section-default-lm3qgp",
10490
+ "colorTextExpandableSectionHover": "--color-text-expandable-section-hover-2d1zpj",
10489
10491
  "colorTextExpandableSectionNavigationIconDefault": "--color-text-expandable-section-navigation-icon-default-htcovl",
10490
10492
  "colorTextFormDefault": "--color-text-form-default-vh42kd",
10491
10493
  "colorTextFormLabel": "--color-text-form-label-ktbzsd",
@@ -10552,7 +10554,7 @@ module.exports.preset = {
10552
10554
  "fontDisplayLLineHeight": "--font-display-l-line-height-07o0h7",
10553
10555
  "fontDisplayLSize": "--font-display-l-size-0u12dn",
10554
10556
  "fontDisplayLabelWeight": "--font-display-label-weight-815ja9",
10555
- "fontExpandableHeadingSize": "--font-expandable-heading-size-93i095",
10557
+ "fontExpandableHeadingSize": "--font-expandable-heading-size-smdiul",
10556
10558
  "fontFamilyBase": "--font-family-base-dnvic8",
10557
10559
  "fontFamilyMonospace": "--font-family-monospace-bftdwf",
10558
10560
  "fontHeaderH2DescriptionLineHeight": "--font-header-h2-description-line-height-rtewek",
@@ -10589,13 +10591,13 @@ module.exports.preset = {
10589
10591
  "fontWayfindingLinkActiveWeight": "--font-wayfinding-link-active-weight-rbmzei",
10590
10592
  "fontWeightHeavy": "--font-weight-heavy-cqd9pv",
10591
10593
  "borderActiveWidth": "--border-active-width-9dmqf4",
10592
- "borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-stg9sc",
10594
+ "borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-6zj7o8",
10593
10595
  "borderContainerStickyWidth": "--border-container-sticky-width-6asz33",
10594
10596
  "borderContainerTopWidth": "--border-container-top-width-uugwwl",
10595
10597
  "borderControlFocusRingShadowSpread": "--border-control-focus-ring-shadow-spread-0ctpjf",
10596
10598
  "borderControlInvalidFocusRingShadowSpread": "--border-control-invalid-focus-ring-shadow-spread-fhmbjn",
10597
10599
  "borderDividerListWidth": "--border-divider-list-width-27y3k5",
10598
- "borderDividerSectionWidth": "--border-divider-section-width-4ax5o2",
10600
+ "borderDividerSectionWidth": "--border-divider-section-width-8a5uu9",
10599
10601
  "borderDropdownVirtualOffsetWidth": "--border-dropdown-virtual-offset-width-kekgc0",
10600
10602
  "borderFieldWidth": "--border-field-width-09w7vk",
10601
10603
  "borderInvalidWidth": "--border-invalid-width-5ktjp2",
@@ -6900,8 +6900,8 @@ export var preset = {
6900
6900
  "dark": "{colorGrey100}"
6901
6901
  },
6902
6902
  "colorBorderDividerDefault": {
6903
- "light": "{colorGrey200}",
6904
- "dark": "{colorGrey600}"
6903
+ "light": "{colorTextButtonNormalDefault}",
6904
+ "dark": "{colorTextButtonNormalDefault}"
6905
6905
  },
6906
6906
  "colorBorderDividerPanelBottom": {
6907
6907
  "light": "{colorBorderDividerDefault}",
@@ -7228,12 +7228,12 @@ export var preset = {
7228
7228
  "dark": "{colorGrey300}"
7229
7229
  },
7230
7230
  "colorTextExpandableSectionDefault": {
7231
- "light": "{colorTextInteractiveActive}",
7232
- "dark": "{colorTextInteractiveActive}"
7231
+ "light": "{colorTextButtonNormalDefault}",
7232
+ "dark": "{colorTextButtonNormalDefault}"
7233
7233
  },
7234
7234
  "colorTextExpandableSectionHover": {
7235
- "light": "{colorTextAccent}",
7236
- "dark": "{colorTextAccent}"
7235
+ "light": "{colorTextButtonNormalHover}",
7236
+ "dark": "{colorTextButtonNormalHover}"
7237
7237
  },
7238
7238
  "colorTextExpandableSectionNavigationIconDefault": {
7239
7239
  "light": "{colorTextInteractiveDefault}",
@@ -7450,7 +7450,9 @@ export var preset = {
7450
7450
  "colorDropzoneTextHover": {
7451
7451
  "light": "{colorBlue800}",
7452
7452
  "dark": "{colorWhite}"
7453
- }
7453
+ },
7454
+ "fontExpandableHeadingSize": "14px",
7455
+ "borderDividerSectionWidth": "1px"
7454
7456
  }
7455
7457
  },
7456
7458
  "alert-header": {
@@ -7834,8 +7836,8 @@ export var preset = {
7834
7836
  "dark": "{colorGrey100}"
7835
7837
  },
7836
7838
  "colorBorderDividerDefault": {
7837
- "light": "{colorGrey600}",
7838
- "dark": "{colorGrey600}"
7839
+ "light": "{colorTextButtonNormalDefault}",
7840
+ "dark": "{colorTextButtonNormalDefault}"
7839
7841
  },
7840
7842
  "colorBorderDividerPanelBottom": {
7841
7843
  "light": "{colorGreyTransparent}",
@@ -8162,12 +8164,12 @@ export var preset = {
8162
8164
  "dark": "{colorGrey300}"
8163
8165
  },
8164
8166
  "colorTextExpandableSectionDefault": {
8165
- "light": "{colorTextInteractiveActive}",
8166
- "dark": "{colorTextInteractiveActive}"
8167
+ "light": "{colorTextButtonNormalDefault}",
8168
+ "dark": "{colorTextButtonNormalDefault}"
8167
8169
  },
8168
8170
  "colorTextExpandableSectionHover": {
8169
- "light": "{colorTextAccent}",
8170
- "dark": "{colorTextAccent}"
8171
+ "light": "{colorTextButtonNormalHover}",
8172
+ "dark": "{colorTextButtonNormalHover}"
8171
8173
  },
8172
8174
  "colorTextExpandableSectionNavigationIconDefault": {
8173
8175
  "light": "{colorTextInteractiveDefault}",
@@ -10402,12 +10404,12 @@ export var preset = {
10402
10404
  "colorBorderControlDefault": "--color-border-control-default-0fzxw0",
10403
10405
  "colorBorderControlDisabled": "--color-border-control-disabled-bv2kkn",
10404
10406
  "colorBorderDividerActive": "--color-border-divider-active-k4haaf",
10405
- "colorBorderDividerDefault": "--color-border-divider-default-d3adp9",
10406
- "colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-s8zdda",
10407
- "colorBorderDividerPanelSide": "--color-border-divider-panel-side-ompdsw",
10407
+ "colorBorderDividerDefault": "--color-border-divider-default-et9j7s",
10408
+ "colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-16n9vt",
10409
+ "colorBorderDividerPanelSide": "--color-border-divider-panel-side-qqne3x",
10408
10410
  "colorBorderDropdownContainer": "--color-border-dropdown-container-5boaph",
10409
- "colorBorderDropdownGroup": "--color-border-dropdown-group-c2r4dp",
10410
- "colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-rgr5b2",
10411
+ "colorBorderDropdownGroup": "--color-border-dropdown-group-zgquz8",
10412
+ "colorBorderDropdownItemDefault": "--color-border-dropdown-item-default-dofu99",
10411
10413
  "colorBorderDropdownItemHover": "--color-border-dropdown-item-hover-461g78",
10412
10414
  "colorBorderDropdownItemDimmedHover": "--color-border-dropdown-item-dimmed-hover-xdu0hf",
10413
10415
  "colorBorderDropdownItemSelected": "--color-border-dropdown-item-selected-096aj1",
@@ -10484,8 +10486,8 @@ export var preset = {
10484
10486
  "colorTextDropdownItemSecondary": "--color-text-dropdown-item-secondary-jho0ju",
10485
10487
  "colorTextDropdownItemSecondaryHover": "--color-text-dropdown-item-secondary-hover-zfmqjr",
10486
10488
  "colorTextEmpty": "--color-text-empty-2wfcyr",
10487
- "colorTextExpandableSectionDefault": "--color-text-expandable-section-default-jh4jdf",
10488
- "colorTextExpandableSectionHover": "--color-text-expandable-section-hover-pfe4fw",
10489
+ "colorTextExpandableSectionDefault": "--color-text-expandable-section-default-lm3qgp",
10490
+ "colorTextExpandableSectionHover": "--color-text-expandable-section-hover-2d1zpj",
10489
10491
  "colorTextExpandableSectionNavigationIconDefault": "--color-text-expandable-section-navigation-icon-default-htcovl",
10490
10492
  "colorTextFormDefault": "--color-text-form-default-vh42kd",
10491
10493
  "colorTextFormLabel": "--color-text-form-label-ktbzsd",
@@ -10552,7 +10554,7 @@ export var preset = {
10552
10554
  "fontDisplayLLineHeight": "--font-display-l-line-height-07o0h7",
10553
10555
  "fontDisplayLSize": "--font-display-l-size-0u12dn",
10554
10556
  "fontDisplayLabelWeight": "--font-display-label-weight-815ja9",
10555
- "fontExpandableHeadingSize": "--font-expandable-heading-size-93i095",
10557
+ "fontExpandableHeadingSize": "--font-expandable-heading-size-smdiul",
10556
10558
  "fontFamilyBase": "--font-family-base-dnvic8",
10557
10559
  "fontFamilyMonospace": "--font-family-monospace-bftdwf",
10558
10560
  "fontHeaderH2DescriptionLineHeight": "--font-header-h2-description-line-height-rtewek",
@@ -10589,13 +10591,13 @@ export var preset = {
10589
10591
  "fontWayfindingLinkActiveWeight": "--font-wayfinding-link-active-weight-rbmzei",
10590
10592
  "fontWeightHeavy": "--font-weight-heavy-cqd9pv",
10591
10593
  "borderActiveWidth": "--border-active-width-9dmqf4",
10592
- "borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-stg9sc",
10594
+ "borderCodeEditorStatusDividerWidth": "--border-code-editor-status-divider-width-6zj7o8",
10593
10595
  "borderContainerStickyWidth": "--border-container-sticky-width-6asz33",
10594
10596
  "borderContainerTopWidth": "--border-container-top-width-uugwwl",
10595
10597
  "borderControlFocusRingShadowSpread": "--border-control-focus-ring-shadow-spread-0ctpjf",
10596
10598
  "borderControlInvalidFocusRingShadowSpread": "--border-control-invalid-focus-ring-shadow-spread-fhmbjn",
10597
10599
  "borderDividerListWidth": "--border-divider-list-width-27y3k5",
10598
- "borderDividerSectionWidth": "--border-divider-section-width-4ax5o2",
10600
+ "borderDividerSectionWidth": "--border-divider-section-width-8a5uu9",
10599
10601
  "borderDropdownVirtualOffsetWidth": "--border-dropdown-virtual-offset-width-kekgc0",
10600
10602
  "borderFieldWidth": "--border-field-width-09w7vk",
10601
10603
  "borderInvalidWidth": "--border-invalid-width-5ktjp2",
@@ -1,3 +1,2 @@
1
1
  export * from './use-container-breakpoints';
2
- export * from './use-resize-observer';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/container-queries/index.ts"],"names":[],"mappings":"AAGA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/container-queries/index.ts"],"names":[],"mappings":"AAGA,cAAc,6BAA6B,CAAC"}
@@ -1,5 +1,4 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export * from './use-container-breakpoints';
4
- export * from './use-resize-observer';
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/container-queries/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport * from './use-container-breakpoints';\nexport * from './use-resize-observer';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/container-queries/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,cAAc,6BAA6B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport * from './use-container-breakpoints';\n"]}
@@ -1,7 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ import { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';
3
4
  import { useCallback, useState } from 'react';
4
- import { useResizeObserver } from './use-resize-observer';
5
5
  /**
6
6
  * Conditional resize observer for border box height used in charts.
7
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"use-height-measure.js","sourceRoot":"lib/default/","sources":["internal/hooks/container-queries/use-height-measure.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAC9B,UAAiD,EACjD,IAAI,GAAG,KAAK,EACZ,OAA6B,EAAE;IAE/B,MAAM,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAChD,uDAAuD;IACvD,MAAM,gBAAgB,GAAG,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAClE,iBAAiB,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IACxF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useCallback, useState } from 'react';\nimport { useResizeObserver } from './use-resize-observer';\n\n/**\n * Conditional resize observer for border box height used in charts.\n */\nexport function useHeightMeasure(\n getMeasure: () => null | HTMLElement | SVGElement,\n skip = false,\n deps: React.DependencyList = []\n) {\n const [measuredHeight, setHeight] = useState(0);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const stableGetMeasure = useCallback(getMeasure, [...deps, skip]);\n useResizeObserver(stableGetMeasure, entry => !skip && setHeight(entry.borderBoxHeight));\n return !skip ? measuredHeight : undefined;\n}\n"]}
1
+ {"version":3,"file":"use-height-measure.js","sourceRoot":"lib/default/","sources":["internal/hooks/container-queries/use-height-measure.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAC9B,UAAiD,EACjD,IAAI,GAAG,KAAK,EACZ,OAA6B,EAAE;IAE/B,MAAM,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAChD,uDAAuD;IACvD,MAAM,gBAAgB,GAAG,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAClE,iBAAiB,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IACxF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\nimport { useCallback, useState } from 'react';\n\n/**\n * Conditional resize observer for border box height used in charts.\n */\nexport function useHeightMeasure(\n getMeasure: () => null | HTMLElement | SVGElement,\n skip = false,\n deps: React.DependencyList = []\n) {\n const [measuredHeight, setHeight] = useState(0);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const stableGetMeasure = useCallback(getMeasure, [...deps, skip]);\n useResizeObserver(stableGetMeasure, entry => !skip && setHeight(entry.borderBoxHeight));\n return !skip ? measuredHeight : undefined;\n}\n"]}
@@ -3,7 +3,7 @@
3
3
  import { useContext, useLayoutEffect } from 'react';
4
4
  import { DynamicOverlapContext } from '../../context/dynamic-overlap-context';
5
5
  import { useRef, useCallback } from 'react';
6
- import { useResizeObserver } from '../container-queries';
6
+ import { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';
7
7
  /**
8
8
  * Observes the height of an element referenced by the returning ref and sets the value as overlapping
9
9
  * height for the surrounding AppLayout component.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-dynamic-overlap/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAUzD;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAA8B;;IAC9D,MAAM,QAAQ,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,mCAAI,KAAK,CAAC;IAC1C,MAAM,uBAAuB,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAEvC,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACrF,MAAM,WAAW,GAAG,WAAW,CAC7B,CAAC,KAA0B,EAAE,EAAE;QAC7B,IAAI,CAAC,QAAQ,EAAE;YACb,uBAAuB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;SACjD;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CACpC,CAAC;IAEF,iBAAiB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAE3C,eAAe,CACb,SAAS,0BAA0B;QACjC,+CAA+C;QAC/C,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,QAAQ,EAAE;gBACb,uBAAuB,CAAC,CAAC,CAAC,CAAC;aAC5B;QACH,CAAC,CAAC;IACJ,CAAC,EACD,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CACpC,CAAC;IAEF,OAAO,iBAAiB,CAAC;AAC3B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useContext, useLayoutEffect } from 'react';\n\nimport { DynamicOverlapContext } from '../../context/dynamic-overlap-context';\nimport { useRef, useCallback } from 'react';\nimport { useResizeObserver } from '../container-queries';\nimport { ContainerQueryEntry } from '@cloudscape-design/component-toolkit';\n\nexport interface UseDynamicOverlapProps {\n /**\n * Disables hook if not needed. By default, `false`.\n */\n disabled?: boolean;\n}\n\n/**\n * Observes the height of an element referenced by the returning ref and sets the value as overlapping\n * height for the surrounding AppLayout component.\n * @param props.disabled disables hook if not applicable\n * @returns ref to be measured as overlapping height\n */\nexport function useDynamicOverlap(props?: UseDynamicOverlapProps) {\n const disabled = props?.disabled ?? false;\n const setDynamicOverlapHeight = useContext(DynamicOverlapContext);\n const overlapElementRef = useRef(null);\n\n const getElement = useCallback(() => overlapElementRef.current, [overlapElementRef]);\n const updateState = useCallback(\n (entry: ContainerQueryEntry) => {\n if (!disabled) {\n setDynamicOverlapHeight(entry.contentBoxHeight);\n }\n },\n [disabled, setDynamicOverlapHeight]\n );\n\n useResizeObserver(getElement, updateState);\n\n useLayoutEffect(\n function handleDynamicOverlapHeight() {\n // Set overlap height back to 0 when unmounting\n return () => {\n if (!disabled) {\n setDynamicOverlapHeight(0);\n }\n };\n },\n [disabled, setDynamicOverlapHeight]\n );\n\n return overlapElementRef;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-dynamic-overlap/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AASlF;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAA8B;;IAC9D,MAAM,QAAQ,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,mCAAI,KAAK,CAAC;IAC1C,MAAM,uBAAuB,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAEvC,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACrF,MAAM,WAAW,GAAG,WAAW,CAC7B,CAAC,KAA0B,EAAE,EAAE;QAC7B,IAAI,CAAC,QAAQ,EAAE;YACb,uBAAuB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;SACjD;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CACpC,CAAC;IAEF,iBAAiB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAE3C,eAAe,CACb,SAAS,0BAA0B;QACjC,+CAA+C;QAC/C,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,QAAQ,EAAE;gBACb,uBAAuB,CAAC,CAAC,CAAC,CAAC;aAC5B;QACH,CAAC,CAAC;IACJ,CAAC,EACD,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CACpC,CAAC;IAEF,OAAO,iBAAiB,CAAC;AAC3B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useContext, useLayoutEffect } from 'react';\n\nimport { DynamicOverlapContext } from '../../context/dynamic-overlap-context';\nimport { useRef, useCallback } from 'react';\nimport { ContainerQueryEntry } from '@cloudscape-design/component-toolkit';\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\n\nexport interface UseDynamicOverlapProps {\n /**\n * Disables hook if not needed. By default, `false`.\n */\n disabled?: boolean;\n}\n\n/**\n * Observes the height of an element referenced by the returning ref and sets the value as overlapping\n * height for the surrounding AppLayout component.\n * @param props.disabled disables hook if not applicable\n * @returns ref to be measured as overlapping height\n */\nexport function useDynamicOverlap(props?: UseDynamicOverlapProps) {\n const disabled = props?.disabled ?? false;\n const setDynamicOverlapHeight = useContext(DynamicOverlapContext);\n const overlapElementRef = useRef(null);\n\n const getElement = useCallback(() => overlapElementRef.current, [overlapElementRef]);\n const updateState = useCallback(\n (entry: ContainerQueryEntry) => {\n if (!disabled) {\n setDynamicOverlapHeight(entry.contentBoxHeight);\n }\n },\n [disabled, setDynamicOverlapHeight]\n );\n\n useResizeObserver(getElement, updateState);\n\n useLayoutEffect(\n function handleDynamicOverlapHeight() {\n // Set overlap height back to 0 when unmounting\n return () => {\n if (!disabled) {\n setDynamicOverlapHeight(0);\n }\n };\n },\n [disabled, setDynamicOverlapHeight]\n );\n\n return overlapElementRef;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ import { createSingletonState } from '@cloudscape-design/component-toolkit/internal';
3
4
  import { getMatchingBreakpoint, mobileBreakpoint } from '../../breakpoints';
4
- import { createSingletonState } from '../use-singleton-handler';
5
5
  function getIsMobile() {
6
6
  if (typeof window === 'undefined') {
7
7
  // assume desktop in server-rendering
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-mobile/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,SAAS,WAAW;IAClB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,qCAAqC;QACrC,OAAO,KAAK,CAAC;KACd;IAED,IAAI,MAAM,CAAC,UAAU,EAAE;QACrB;;;;;;WAMG;QACH,OAAO,MAAM,CAAC,UAAU,CAAC,eAAe,gBAAgB,KAAK,CAAC,CAAC,OAAO,CAAC;KACxE;IAED,OAAO,qBAAqB,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,oBAAoB,CAAU;IACrD,YAAY,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE;IACjC,OAAO,EAAE,OAAO,CAAC,EAAE;QACjB,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;QAC9C,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getMatchingBreakpoint, mobileBreakpoint } from '../../breakpoints';\nimport { createSingletonState } from '../use-singleton-handler';\n\nfunction getIsMobile() {\n if (typeof window === 'undefined') {\n // assume desktop in server-rendering\n return false;\n }\n\n if (window.matchMedia) {\n /**\n * Some browsers include the scrollbar width in their media query calculations, but\n * some browsers don't. Thus we can't use `window.innerWidth` or\n * `document.documentElement.clientWidth` to get a very accurate result (since we\n * wouldn't know which one of them to use).\n * Instead, we use the media query here in JS too.\n */\n return window.matchMedia(`(max-width: ${mobileBreakpoint}px)`).matches;\n }\n\n return getMatchingBreakpoint(window.innerWidth, ['xs']) !== 'xs';\n}\n\nexport const useMobile = createSingletonState<boolean>({\n initialState: () => getIsMobile(),\n factory: handler => {\n const listener = () => handler(getIsMobile());\n window.addEventListener('resize', listener);\n return () => {\n window.removeEventListener('resize', listener);\n };\n },\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-mobile/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,SAAS,WAAW;IAClB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,qCAAqC;QACrC,OAAO,KAAK,CAAC;KACd;IAED,IAAI,MAAM,CAAC,UAAU,EAAE;QACrB;;;;;;WAMG;QACH,OAAO,MAAM,CAAC,UAAU,CAAC,eAAe,gBAAgB,KAAK,CAAC,CAAC,OAAO,CAAC;KACxE;IAED,OAAO,qBAAqB,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,oBAAoB,CAAU;IACrD,YAAY,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE;IACjC,OAAO,EAAE,OAAO,CAAC,EAAE;QACjB,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;QAC9C,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createSingletonState } from '@cloudscape-design/component-toolkit/internal';\nimport { getMatchingBreakpoint, mobileBreakpoint } from '../../breakpoints';\n\nfunction getIsMobile() {\n if (typeof window === 'undefined') {\n // assume desktop in server-rendering\n return false;\n }\n\n if (window.matchMedia) {\n /**\n * Some browsers include the scrollbar width in their media query calculations, but\n * some browsers don't. Thus we can't use `window.innerWidth` or\n * `document.documentElement.clientWidth` to get a very accurate result (since we\n * wouldn't know which one of them to use).\n * Instead, we use the media query here in JS too.\n */\n return window.matchMedia(`(max-width: ${mobileBreakpoint}px)`).matches;\n }\n\n return getMatchingBreakpoint(window.innerWidth, ['xs']) !== 'xs';\n}\n\nexport const useMobile = createSingletonState<boolean>({\n initialState: () => getIsMobile(),\n factory: handler => {\n const listener = () => handler(getIsMobile());\n window.addEventListener('resize', listener);\n return () => {\n window.removeEventListener('resize', listener);\n };\n },\n});\n"]}
@@ -1,7 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ import { createSingletonHandler } from '@cloudscape-design/component-toolkit/internal';
3
4
  import { useRef } from 'react';
4
- import { createSingletonHandler } from './use-singleton-handler';
5
5
  const useEventListenersSingleton = createSingletonHandler(setTarget => {
6
6
  function handleMouseDown(event) {
7
7
  setTarget(event.target);
@@ -1 +1 @@
1
- {"version":3,"file":"use-mouse-down-target.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-mouse-down-target.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,0BAA0B,GAAG,sBAAsB,CAAc,SAAS,CAAC,EAAE;IACjF,SAAS,eAAe,CAAC,KAAiB;QACxC,SAAS,CAAC,KAAK,CAAC,MAAc,CAAC,CAAC;IAClC,CAAC;IACD,SAAS,aAAa;QACpB,SAAS,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IACtD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAClD,OAAO,GAAG,EAAE;QACV,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;QACzD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACvD,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB;IACxC,MAAM,kBAAkB,GAAG,MAAM,CAAc,IAAI,CAAC,CAAC;IACrD,0BAA0B,CAAC,MAAM,CAAC,EAAE;QAClC,kBAAkB,CAAC,OAAO,GAAG,MAAM,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useRef } from 'react';\nimport { createSingletonHandler } from './use-singleton-handler';\n\nconst useEventListenersSingleton = createSingletonHandler<Node | null>(setTarget => {\n function handleMouseDown(event: MouseEvent) {\n setTarget(event.target as Node);\n }\n function handleKeyDown() {\n setTarget(null);\n }\n window.addEventListener('mousedown', handleMouseDown);\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('mousedown', handleMouseDown);\n window.removeEventListener('keydown', handleKeyDown);\n };\n});\n\n/**\n * Captures last mouse down target and clears it on keydown.\n * @returns a callback to get the last detected mouse down target.\n */\nexport default function useMouseDownTarget() {\n const mouseDownTargetRef = useRef<null | Node>(null);\n useEventListenersSingleton(target => {\n mouseDownTargetRef.current = target;\n });\n return () => mouseDownTargetRef.current;\n}\n"]}
1
+ {"version":3,"file":"use-mouse-down-target.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-mouse-down-target.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,0BAA0B,GAAG,sBAAsB,CAAc,SAAS,CAAC,EAAE;IACjF,SAAS,eAAe,CAAC,KAAiB;QACxC,SAAS,CAAC,KAAK,CAAC,MAAc,CAAC,CAAC;IAClC,CAAC;IACD,SAAS,aAAa;QACpB,SAAS,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IACtD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAClD,OAAO,GAAG,EAAE;QACV,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;QACzD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACvD,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB;IACxC,MAAM,kBAAkB,GAAG,MAAM,CAAc,IAAI,CAAC,CAAC;IACrD,0BAA0B,CAAC,MAAM,CAAC,EAAE;QAClC,kBAAkB,CAAC,OAAO,GAAG,MAAM,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createSingletonHandler } from '@cloudscape-design/component-toolkit/internal';\nimport { useRef } from 'react';\n\nconst useEventListenersSingleton = createSingletonHandler<Node | null>(setTarget => {\n function handleMouseDown(event: MouseEvent) {\n setTarget(event.target as Node);\n }\n function handleKeyDown() {\n setTarget(null);\n }\n window.addEventListener('mousedown', handleMouseDown);\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('mousedown', handleMouseDown);\n window.removeEventListener('keydown', handleKeyDown);\n };\n});\n\n/**\n * Captures last mouse down target and clears it on keydown.\n * @returns a callback to get the last detected mouse down target.\n */\nexport default function useMouseDownTarget() {\n const mouseDownTargetRef = useRef<null | Node>(null);\n useEventListenersSingleton(target => {\n mouseDownTargetRef.current = target;\n });\n return () => mouseDownTargetRef.current;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-mutation-observer/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAUzC;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EACxC,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,QAYzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-mutation-observer/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;AASzC;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EACxC,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,QAYzC"}
@@ -1,8 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { useEffect } from 'react';
4
- import { useStableEventHandler } from '../use-stable-event-handler';
5
- import { createSingletonHandler } from '../use-singleton-handler';
4
+ import { createSingletonHandler, useStableCallback } from '@cloudscape-design/component-toolkit/internal';
6
5
  const useMutationSingleton = createSingletonHandler(handler => {
7
6
  const observer = new MutationObserver(() => handler());
8
7
  observer.observe(document.body, { attributes: true, subtree: true });
@@ -14,7 +13,7 @@ const useMutationSingleton = createSingletonHandler(handler => {
14
13
  * @deprecated The hook has performance implications. Consider alternatives.
15
14
  */
16
15
  export function useMutationObserver(elementRef, onChange) {
17
- const handler = useStableEventHandler(() => {
16
+ const handler = useStableCallback(() => {
18
17
  if (elementRef.current) {
19
18
  onChange(elementRef.current);
20
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-mutation-observer/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,oBAAoB,GAAG,sBAAsB,CAAO,OAAO,CAAC,EAAE;IAClE,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACvD,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACrE,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;AACrC,CAAC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAAwC,EACxC,QAAwC;IAExC,MAAM,OAAO,GAAG,qBAAqB,CAAC,GAAG,EAAE;QACzC,IAAI,UAAU,CAAC,OAAO,EAAE;YACtB,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SAC9B;IACH,CAAC,CAAC,CAAC;IACH,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAE9B,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,EAAE,CAAC;IACZ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect } from 'react';\nimport { useStableEventHandler } from '../use-stable-event-handler';\nimport { createSingletonHandler } from '../use-singleton-handler';\n\nconst useMutationSingleton = createSingletonHandler<void>(handler => {\n const observer = new MutationObserver(() => handler());\n observer.observe(document.body, { attributes: true, subtree: true });\n return () => observer.disconnect();\n});\n\n/**\n * Fires onChange with the given target element as an argument every time any DOM node attribute changes.\n *\n * @deprecated The hook has performance implications. Consider alternatives.\n */\nexport function useMutationObserver(\n elementRef: React.RefObject<HTMLElement>,\n onChange: (element: HTMLElement) => void\n) {\n const handler = useStableEventHandler(() => {\n if (elementRef.current) {\n onChange(elementRef.current);\n }\n });\n useMutationSingleton(handler);\n\n useEffect(() => {\n handler();\n }, [handler]);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-mutation-observer/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAE1G,MAAM,oBAAoB,GAAG,sBAAsB,CAAO,OAAO,CAAC,EAAE;IAClE,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACvD,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACrE,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;AACrC,CAAC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAAwC,EACxC,QAAwC;IAExC,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,EAAE;QACrC,IAAI,UAAU,CAAC,OAAO,EAAE;YACtB,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SAC9B;IACH,CAAC,CAAC,CAAC;IACH,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAE9B,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,EAAE,CAAC;IACZ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect } from 'react';\nimport { createSingletonHandler, useStableCallback } from '@cloudscape-design/component-toolkit/internal';\n\nconst useMutationSingleton = createSingletonHandler<void>(handler => {\n const observer = new MutationObserver(() => handler());\n observer.observe(document.body, { attributes: true, subtree: true });\n return () => observer.disconnect();\n});\n\n/**\n * Fires onChange with the given target element as an argument every time any DOM node attribute changes.\n *\n * @deprecated The hook has performance implications. Consider alternatives.\n */\nexport function useMutationObserver(\n elementRef: React.RefObject<HTMLElement>,\n onChange: (element: HTMLElement) => void\n) {\n const handler = useStableCallback(() => {\n if (elementRef.current) {\n onChange(elementRef.current);\n }\n });\n useMutationSingleton(handler);\n\n useEffect(() => {\n handler();\n }, [handler]);\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "3889d3eb7bc2a91cbfbd04c2155466df7fa2a9ec"
2
+ "commit": "0e1ee85bfe26214d14d9426715de264920c0ade7"
3
3
  }
@@ -1,28 +1,28 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "dialog": "awsui_dialog_1d2i7_oeue5_105",
5
- "modal-slide-up": "awsui_modal-slide-up_1d2i7_oeue5_1",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_oeue5_1",
7
- "refresh": "awsui_refresh_1d2i7_oeue5_128",
8
- "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_oeue5_1",
9
- "root": "awsui_root_1d2i7_oeue5_161",
10
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_oeue5_1",
11
- "hidden": "awsui_hidden_1d2i7_oeue5_226",
12
- "focus-lock": "awsui_focus-lock_1d2i7_oeue5_230",
13
- "small": "awsui_small_1d2i7_oeue5_248",
14
- "medium": "awsui_medium_1d2i7_oeue5_251",
15
- "large": "awsui_large_1d2i7_oeue5_254",
16
- "max": "awsui_max_1d2i7_oeue5_257",
17
- "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_oeue5_257",
18
- "container": "awsui_container_1d2i7_oeue5_262",
19
- "content": "awsui_content_1d2i7_oeue5_281",
20
- "no-paddings": "awsui_no-paddings_1d2i7_oeue5_284",
21
- "header": "awsui_header_1d2i7_oeue5_288",
22
- "header--text": "awsui_header--text_1d2i7_oeue5_295",
23
- "footer": "awsui_footer_1d2i7_oeue5_299",
24
- "footer--stuck": "awsui_footer--stuck_1d2i7_oeue5_307",
25
- "dismiss-control": "awsui_dismiss-control_1d2i7_oeue5_316",
26
- "modal-open": "awsui_modal-open_1d2i7_oeue5_320"
4
+ "dialog": "awsui_dialog_1d2i7_1ber5_105",
5
+ "modal-slide-up": "awsui_modal-slide-up_1d2i7_1ber5_1",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_1ber5_1",
7
+ "refresh": "awsui_refresh_1d2i7_1ber5_128",
8
+ "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_1ber5_1",
9
+ "root": "awsui_root_1d2i7_1ber5_161",
10
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_1ber5_1",
11
+ "hidden": "awsui_hidden_1d2i7_1ber5_226",
12
+ "focus-lock": "awsui_focus-lock_1d2i7_1ber5_230",
13
+ "small": "awsui_small_1d2i7_1ber5_248",
14
+ "medium": "awsui_medium_1d2i7_1ber5_251",
15
+ "large": "awsui_large_1d2i7_1ber5_254",
16
+ "max": "awsui_max_1d2i7_1ber5_257",
17
+ "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_1ber5_257",
18
+ "container": "awsui_container_1d2i7_1ber5_262",
19
+ "content": "awsui_content_1d2i7_1ber5_281",
20
+ "no-paddings": "awsui_no-paddings_1d2i7_1ber5_284",
21
+ "header": "awsui_header_1d2i7_1ber5_288",
22
+ "header--text": "awsui_header--text_1d2i7_1ber5_295",
23
+ "footer": "awsui_footer_1d2i7_1ber5_299",
24
+ "footer--stuck": "awsui_footer--stuck_1d2i7_1ber5_307",
25
+ "dismiss-control": "awsui_dismiss-control_1d2i7_1ber5_316",
26
+ "modal-open": "awsui_modal-open_1d2i7_1ber5_320"
27
27
  };
28
28