@cloudscape-design/components 3.0.561 → 3.0.562

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 (1382) hide show
  1. package/alert/actions-wrapper/index.d.ts.map +1 -1
  2. package/alert/actions-wrapper/index.js.map +1 -1
  3. package/alert/index.d.ts.map +1 -1
  4. package/alert/index.js.map +1 -1
  5. package/alert/interfaces.d.ts.map +1 -1
  6. package/alert/interfaces.js.map +1 -1
  7. package/alert/internal.d.ts.map +1 -1
  8. package/alert/internal.js.map +1 -1
  9. package/anchor-navigation/index.d.ts.map +1 -1
  10. package/anchor-navigation/index.js.map +1 -1
  11. package/anchor-navigation/interfaces.d.ts.map +1 -1
  12. package/anchor-navigation/interfaces.js.map +1 -1
  13. package/anchor-navigation/internal.d.ts.map +1 -1
  14. package/anchor-navigation/internal.js.map +1 -1
  15. package/anchor-navigation/use-scroll-spy.d.ts.map +1 -1
  16. package/anchor-navigation/use-scroll-spy.js.map +1 -1
  17. package/annotation-context/annotation/annotation-icon.d.ts.map +1 -1
  18. package/annotation-context/annotation/annotation-icon.js.map +1 -1
  19. package/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
  20. package/annotation-context/annotation/annotation-popover.js.map +1 -1
  21. package/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  22. package/annotation-context/annotation/annotation-trigger.js.map +1 -1
  23. package/annotation-context/annotation/closed-annotation.d.ts.map +1 -1
  24. package/annotation-context/annotation/closed-annotation.js.map +1 -1
  25. package/annotation-context/annotation/open-annotation.d.ts.map +1 -1
  26. package/annotation-context/annotation/open-annotation.js.map +1 -1
  27. package/annotation-context/context.d.ts.map +1 -1
  28. package/annotation-context/context.js.map +1 -1
  29. package/annotation-context/index.d.ts.map +1 -1
  30. package/annotation-context/index.js.map +1 -1
  31. package/annotation-context/interfaces.d.ts.map +1 -1
  32. package/annotation-context/interfaces.js.map +1 -1
  33. package/annotation-context/utils.d.ts.map +1 -1
  34. package/annotation-context/utils.js.map +1 -1
  35. package/app-layout/content-wrapper/index.d.ts.map +1 -1
  36. package/app-layout/content-wrapper/index.js.map +1 -1
  37. package/app-layout/defaults.d.ts.map +1 -1
  38. package/app-layout/defaults.js.map +1 -1
  39. package/app-layout/drawer/drawers-helpers.d.ts.map +1 -1
  40. package/app-layout/drawer/drawers-helpers.js.map +1 -1
  41. package/app-layout/drawer/index.d.ts.map +1 -1
  42. package/app-layout/drawer/index.js.map +1 -1
  43. package/app-layout/drawer/interfaces.d.ts.map +1 -1
  44. package/app-layout/drawer/interfaces.js.map +1 -1
  45. package/app-layout/drawer/overflow-menu.d.ts.map +1 -1
  46. package/app-layout/drawer/overflow-menu.js.map +1 -1
  47. package/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  48. package/app-layout/drawer/resizable-drawer.js.map +1 -1
  49. package/app-layout/index.d.ts.map +1 -1
  50. package/app-layout/index.js.map +1 -1
  51. package/app-layout/interfaces.d.ts.map +1 -1
  52. package/app-layout/interfaces.js.map +1 -1
  53. package/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  54. package/app-layout/mobile-toolbar/index.js.map +1 -1
  55. package/app-layout/notifications/index.d.ts.map +1 -1
  56. package/app-layout/notifications/index.js.map +1 -1
  57. package/app-layout/runtime-api.d.ts.map +1 -1
  58. package/app-layout/runtime-api.js.map +1 -1
  59. package/app-layout/split-panel/constants.d.ts.map +1 -1
  60. package/app-layout/split-panel/constants.js.map +1 -1
  61. package/app-layout/split-panel/drawer.d.ts.map +1 -1
  62. package/app-layout/split-panel/drawer.js.map +1 -1
  63. package/app-layout/split-panel/index.d.ts.map +1 -1
  64. package/app-layout/split-panel/index.js.map +1 -1
  65. package/app-layout/split-panel/provider.d.ts.map +1 -1
  66. package/app-layout/split-panel/provider.js.map +1 -1
  67. package/app-layout/toggles/index.d.ts.map +1 -1
  68. package/app-layout/toggles/index.js.map +1 -1
  69. package/app-layout/toggles/interfaces.d.ts.map +1 -1
  70. package/app-layout/toggles/interfaces.js.map +1 -1
  71. package/app-layout/utils/interfaces.d.ts.map +1 -1
  72. package/app-layout/utils/interfaces.js.map +1 -1
  73. package/app-layout/utils/use-app-layout-rect.d.ts.map +1 -1
  74. package/app-layout/utils/use-app-layout-rect.js.map +1 -1
  75. package/app-layout/utils/use-content-height.d.ts.map +1 -1
  76. package/app-layout/utils/use-content-height.js.map +1 -1
  77. package/app-layout/utils/use-drawers.d.ts.map +1 -1
  78. package/app-layout/utils/use-drawers.js.map +1 -1
  79. package/app-layout/utils/use-focus-control.d.ts.map +1 -1
  80. package/app-layout/utils/use-focus-control.js.map +1 -1
  81. package/app-layout/utils/use-keyboard-events.d.ts.map +1 -1
  82. package/app-layout/utils/use-keyboard-events.js.map +1 -1
  83. package/app-layout/utils/use-observed-element.d.ts.map +1 -1
  84. package/app-layout/utils/use-observed-element.js.map +1 -1
  85. package/app-layout/utils/use-pointer-events.d.ts.map +1 -1
  86. package/app-layout/utils/use-pointer-events.js.map +1 -1
  87. package/app-layout/utils/use-resize.d.ts.map +1 -1
  88. package/app-layout/utils/use-resize.js.map +1 -1
  89. package/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  90. package/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  91. package/app-layout/visual-refresh/background.d.ts.map +1 -1
  92. package/app-layout/visual-refresh/background.js.map +1 -1
  93. package/app-layout/visual-refresh/breadcrumbs.d.ts.map +1 -1
  94. package/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
  95. package/app-layout/visual-refresh/context.d.ts.map +1 -1
  96. package/app-layout/visual-refresh/context.js.map +1 -1
  97. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  98. package/app-layout/visual-refresh/drawers.js.map +1 -1
  99. package/app-layout/visual-refresh/header.d.ts.map +1 -1
  100. package/app-layout/visual-refresh/header.js.map +1 -1
  101. package/app-layout/visual-refresh/index.d.ts.map +1 -1
  102. package/app-layout/visual-refresh/index.js.map +1 -1
  103. package/app-layout/visual-refresh/layout.d.ts.map +1 -1
  104. package/app-layout/visual-refresh/layout.js.map +1 -1
  105. package/app-layout/visual-refresh/main.d.ts.map +1 -1
  106. package/app-layout/visual-refresh/main.js.map +1 -1
  107. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  108. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  109. package/app-layout/visual-refresh/navigation.d.ts.map +1 -1
  110. package/app-layout/visual-refresh/navigation.js.map +1 -1
  111. package/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  112. package/app-layout/visual-refresh/notifications.js.map +1 -1
  113. package/app-layout/visual-refresh/split-panel.d.ts.map +1 -1
  114. package/app-layout/visual-refresh/split-panel.js.map +1 -1
  115. package/app-layout/visual-refresh/tools.d.ts.map +1 -1
  116. package/app-layout/visual-refresh/tools.js.map +1 -1
  117. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  118. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  119. package/app-layout/visual-refresh/use-background-overlap.d.ts.map +1 -1
  120. package/app-layout/visual-refresh/use-background-overlap.js.map +1 -1
  121. package/area-chart/async-store/index.d.ts.map +1 -1
  122. package/area-chart/async-store/index.js.map +1 -1
  123. package/area-chart/chart-container.d.ts.map +1 -1
  124. package/area-chart/chart-container.js.map +1 -1
  125. package/area-chart/elements/area-chart-filter.d.ts.map +1 -1
  126. package/area-chart/elements/area-chart-filter.js.map +1 -1
  127. package/area-chart/elements/area-chart-legend.d.ts.map +1 -1
  128. package/area-chart/elements/area-chart-legend.js.map +1 -1
  129. package/area-chart/elements/area-series.d.ts.map +1 -1
  130. package/area-chart/elements/area-series.js.map +1 -1
  131. package/area-chart/elements/chart-popover.d.ts.map +1 -1
  132. package/area-chart/elements/chart-popover.js.map +1 -1
  133. package/area-chart/elements/data-series.d.ts.map +1 -1
  134. package/area-chart/elements/data-series.js.map +1 -1
  135. package/area-chart/elements/highlighted-point.d.ts.map +1 -1
  136. package/area-chart/elements/highlighted-point.js.map +1 -1
  137. package/area-chart/elements/threshold-series.d.ts.map +1 -1
  138. package/area-chart/elements/threshold-series.js.map +1 -1
  139. package/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  140. package/area-chart/elements/use-highlight-details.js.map +1 -1
  141. package/area-chart/elements/vertical-marker.d.ts.map +1 -1
  142. package/area-chart/elements/vertical-marker.js.map +1 -1
  143. package/area-chart/index.d.ts.map +1 -1
  144. package/area-chart/index.js.map +1 -1
  145. package/area-chart/interfaces.d.ts.map +1 -1
  146. package/area-chart/interfaces.js.map +1 -1
  147. package/area-chart/internal.d.ts.map +1 -1
  148. package/area-chart/internal.js.map +1 -1
  149. package/area-chart/model/compute-chart-props.d.ts.map +1 -1
  150. package/area-chart/model/compute-chart-props.js.map +1 -1
  151. package/area-chart/model/create-series-decorator.d.ts.map +1 -1
  152. package/area-chart/model/create-series-decorator.js.map +1 -1
  153. package/area-chart/model/index.d.ts.map +1 -1
  154. package/area-chart/model/index.js.map +1 -1
  155. package/area-chart/model/interactions-store.d.ts.map +1 -1
  156. package/area-chart/model/interactions-store.js.map +1 -1
  157. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  158. package/area-chart/model/use-chart-model.js.map +1 -1
  159. package/area-chart/model/use-filter-props.d.ts.map +1 -1
  160. package/area-chart/model/use-filter-props.js.map +1 -1
  161. package/area-chart/model/use-highlight-props.d.ts.map +1 -1
  162. package/area-chart/model/use-highlight-props.js.map +1 -1
  163. package/area-chart/model/utils.d.ts.map +1 -1
  164. package/area-chart/model/utils.js.map +1 -1
  165. package/attribute-editor/additional-info.d.ts.map +1 -1
  166. package/attribute-editor/additional-info.js.map +1 -1
  167. package/attribute-editor/index.d.ts.map +1 -1
  168. package/attribute-editor/index.js.map +1 -1
  169. package/attribute-editor/interfaces.d.ts.map +1 -1
  170. package/attribute-editor/interfaces.js.map +1 -1
  171. package/attribute-editor/internal.d.ts.map +1 -1
  172. package/attribute-editor/internal.js.map +1 -1
  173. package/attribute-editor/row.d.ts.map +1 -1
  174. package/attribute-editor/row.js.map +1 -1
  175. package/autosuggest/autosuggest-option.d.ts.map +1 -1
  176. package/autosuggest/autosuggest-option.js.map +1 -1
  177. package/autosuggest/index.d.ts.map +1 -1
  178. package/autosuggest/index.js.map +1 -1
  179. package/autosuggest/interfaces.d.ts.map +1 -1
  180. package/autosuggest/interfaces.js.map +1 -1
  181. package/autosuggest/internal.d.ts.map +1 -1
  182. package/autosuggest/internal.js.map +1 -1
  183. package/autosuggest/load-more-controller.d.ts.map +1 -1
  184. package/autosuggest/load-more-controller.js.map +1 -1
  185. package/autosuggest/options-controller.d.ts.map +1 -1
  186. package/autosuggest/options-controller.js.map +1 -1
  187. package/autosuggest/options-list.d.ts.map +1 -1
  188. package/autosuggest/options-list.js.map +1 -1
  189. package/autosuggest/plain-list.d.ts.map +1 -1
  190. package/autosuggest/plain-list.js.map +1 -1
  191. package/autosuggest/utils/utils.d.ts.map +1 -1
  192. package/autosuggest/utils/utils.js.map +1 -1
  193. package/autosuggest/virtual-list.d.ts.map +1 -1
  194. package/autosuggest/virtual-list.js.map +1 -1
  195. package/badge/index.d.ts.map +1 -1
  196. package/badge/index.js.map +1 -1
  197. package/badge/interfaces.d.ts.map +1 -1
  198. package/badge/interfaces.js.map +1 -1
  199. package/bar-chart/index.d.ts.map +1 -1
  200. package/bar-chart/index.js.map +1 -1
  201. package/bar-chart/interfaces.d.ts.map +1 -1
  202. package/bar-chart/interfaces.js.map +1 -1
  203. package/box/index.d.ts.map +1 -1
  204. package/box/index.js.map +1 -1
  205. package/box/interfaces.d.ts.map +1 -1
  206. package/box/interfaces.js.map +1 -1
  207. package/box/internal.d.ts.map +1 -1
  208. package/box/internal.js.map +1 -1
  209. package/breadcrumb-group/index.d.ts.map +1 -1
  210. package/breadcrumb-group/index.js.map +1 -1
  211. package/breadcrumb-group/interfaces.d.ts.map +1 -1
  212. package/breadcrumb-group/interfaces.js.map +1 -1
  213. package/breadcrumb-group/internal.d.ts.map +1 -1
  214. package/breadcrumb-group/internal.js.map +1 -1
  215. package/breadcrumb-group/item/item.d.ts.map +1 -1
  216. package/breadcrumb-group/item/item.js.map +1 -1
  217. package/button/icon-helper.d.ts.map +1 -1
  218. package/button/icon-helper.js.map +1 -1
  219. package/button/index.d.ts.map +1 -1
  220. package/button/index.js.map +1 -1
  221. package/button/interfaces.d.ts.map +1 -1
  222. package/button/interfaces.js.map +1 -1
  223. package/button/internal.d.ts.map +1 -1
  224. package/button/internal.js.map +1 -1
  225. package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  226. package/button-dropdown/category-elements/category-element.js.map +1 -1
  227. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  228. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  229. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  230. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  231. package/button-dropdown/index.d.ts.map +1 -1
  232. package/button-dropdown/index.js.map +1 -1
  233. package/button-dropdown/interfaces.d.ts.map +1 -1
  234. package/button-dropdown/interfaces.js.map +1 -1
  235. package/button-dropdown/internal.d.ts.map +1 -1
  236. package/button-dropdown/internal.js.map +1 -1
  237. package/button-dropdown/item-element/index.d.ts.map +1 -1
  238. package/button-dropdown/item-element/index.js.map +1 -1
  239. package/button-dropdown/items-list.d.ts.map +1 -1
  240. package/button-dropdown/items-list.js.map +1 -1
  241. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts.map +1 -1
  242. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.js.map +1 -1
  243. package/button-dropdown/tooltip.d.ts.map +1 -1
  244. package/button-dropdown/tooltip.js.map +1 -1
  245. package/button-dropdown/utils/create-items-tree.d.ts.map +1 -1
  246. package/button-dropdown/utils/create-items-tree.js.map +1 -1
  247. package/button-dropdown/utils/menu-item.d.ts.map +1 -1
  248. package/button-dropdown/utils/menu-item.js.map +1 -1
  249. package/button-dropdown/utils/move-highlight.d.ts.map +1 -1
  250. package/button-dropdown/utils/move-highlight.js.map +1 -1
  251. package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  252. package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  253. package/button-dropdown/utils/use-hidden-description.d.ts.map +1 -1
  254. package/button-dropdown/utils/use-hidden-description.js.map +1 -1
  255. package/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
  256. package/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
  257. package/button-dropdown/utils/utils.d.ts.map +1 -1
  258. package/button-dropdown/utils/utils.js.map +1 -1
  259. package/calendar/grid/calendar-grid-header.d.ts.map +1 -1
  260. package/calendar/grid/calendar-grid-header.js.map +1 -1
  261. package/calendar/grid/index.d.ts.map +1 -1
  262. package/calendar/grid/index.js.map +1 -1
  263. package/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts.map +1 -1
  264. package/calendar/grid/use-calendar-grid-keyboard-navigation.js.map +1 -1
  265. package/calendar/grid/use-calendar-grid-rows.d.ts.map +1 -1
  266. package/calendar/grid/use-calendar-grid-rows.js.map +1 -1
  267. package/calendar/header/header-button.d.ts.map +1 -1
  268. package/calendar/header/header-button.js.map +1 -1
  269. package/calendar/header/index.d.ts.map +1 -1
  270. package/calendar/header/index.js.map +1 -1
  271. package/calendar/index.d.ts.map +1 -1
  272. package/calendar/index.js.map +1 -1
  273. package/calendar/interfaces.d.ts.map +1 -1
  274. package/calendar/interfaces.js.map +1 -1
  275. package/calendar/internal.d.ts.map +1 -1
  276. package/calendar/internal.js.map +1 -1
  277. package/calendar/use-calendar-labels.d.ts.map +1 -1
  278. package/calendar/use-calendar-labels.js.map +1 -1
  279. package/calendar/utils/intl.d.ts.map +1 -1
  280. package/calendar/utils/intl.js.map +1 -1
  281. package/calendar/utils/navigation.d.ts.map +1 -1
  282. package/calendar/utils/navigation.js.map +1 -1
  283. package/cards/cards-layout-helper.d.ts.map +1 -1
  284. package/cards/cards-layout-helper.js.map +1 -1
  285. package/cards/index.d.ts.map +1 -1
  286. package/cards/index.js.map +1 -1
  287. package/cards/interfaces.d.ts.map +1 -1
  288. package/cards/interfaces.js.map +1 -1
  289. package/checkbox/base-checkbox.d.ts.map +1 -1
  290. package/checkbox/base-checkbox.js.map +1 -1
  291. package/checkbox/index.d.ts.map +1 -1
  292. package/checkbox/index.js.map +1 -1
  293. package/checkbox/interfaces.d.ts.map +1 -1
  294. package/checkbox/interfaces.js.map +1 -1
  295. package/checkbox/internal.d.ts.map +1 -1
  296. package/checkbox/internal.js.map +1 -1
  297. package/code-editor/ace-modes.d.ts.map +1 -1
  298. package/code-editor/ace-modes.js.map +1 -1
  299. package/code-editor/ace-themes.d.ts.map +1 -1
  300. package/code-editor/ace-themes.js.map +1 -1
  301. package/code-editor/error-screen.d.ts.map +1 -1
  302. package/code-editor/error-screen.js.map +1 -1
  303. package/code-editor/index.d.ts.map +1 -1
  304. package/code-editor/index.js.map +1 -1
  305. package/code-editor/interfaces.d.ts.map +1 -1
  306. package/code-editor/interfaces.js.map +1 -1
  307. package/code-editor/listeners.d.ts.map +1 -1
  308. package/code-editor/listeners.js.map +1 -1
  309. package/code-editor/loading-screen.d.ts.map +1 -1
  310. package/code-editor/loading-screen.js.map +1 -1
  311. package/code-editor/pane.d.ts.map +1 -1
  312. package/code-editor/pane.js.map +1 -1
  313. package/code-editor/preferences-modal.d.ts.map +1 -1
  314. package/code-editor/preferences-modal.js.map +1 -1
  315. package/code-editor/resizable-box/index.d.ts.map +1 -1
  316. package/code-editor/resizable-box/index.js.map +1 -1
  317. package/code-editor/setup-editor.d.ts.map +1 -1
  318. package/code-editor/setup-editor.js.map +1 -1
  319. package/code-editor/status-bar.d.ts.map +1 -1
  320. package/code-editor/status-bar.js.map +1 -1
  321. package/code-editor/tab-button.d.ts.map +1 -1
  322. package/code-editor/tab-button.js.map +1 -1
  323. package/code-editor/use-editor.d.ts.map +1 -1
  324. package/code-editor/use-editor.js.map +1 -1
  325. package/code-editor/util.d.ts.map +1 -1
  326. package/code-editor/util.js.map +1 -1
  327. package/collection-preferences/content-display/content-display-option.d.ts.map +1 -1
  328. package/collection-preferences/content-display/content-display-option.js.map +1 -1
  329. package/collection-preferences/content-display/draggable-option.d.ts.map +1 -1
  330. package/collection-preferences/content-display/draggable-option.js.map +1 -1
  331. package/collection-preferences/content-display/index.d.ts.map +1 -1
  332. package/collection-preferences/content-display/index.js.map +1 -1
  333. package/collection-preferences/content-display/keyboard-sensor/defaults.d.ts.map +1 -1
  334. package/collection-preferences/content-display/keyboard-sensor/defaults.js.map +1 -1
  335. package/collection-preferences/content-display/keyboard-sensor/index.d.ts.map +1 -1
  336. package/collection-preferences/content-display/keyboard-sensor/index.js.map +1 -1
  337. package/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts.map +1 -1
  338. package/collection-preferences/content-display/keyboard-sensor/utilities/events.js.map +1 -1
  339. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts.map +1 -1
  340. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js.map +1 -1
  341. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts.map +1 -1
  342. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js.map +1 -1
  343. package/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts.map +1 -1
  344. package/collection-preferences/content-display/use-drag-and-drop-reorder.js.map +1 -1
  345. package/collection-preferences/content-display/use-live-announcements.d.ts.map +1 -1
  346. package/collection-preferences/content-display/use-live-announcements.js.map +1 -1
  347. package/collection-preferences/content-display/utils.d.ts.map +1 -1
  348. package/collection-preferences/content-display/utils.js.map +1 -1
  349. package/collection-preferences/index.d.ts.map +1 -1
  350. package/collection-preferences/index.js.map +1 -1
  351. package/collection-preferences/interfaces.d.ts.map +1 -1
  352. package/collection-preferences/interfaces.js.map +1 -1
  353. package/collection-preferences/utils.d.ts.map +1 -1
  354. package/collection-preferences/utils.js.map +1 -1
  355. package/collection-preferences/visible-content.d.ts.map +1 -1
  356. package/collection-preferences/visible-content.js.map +1 -1
  357. package/column-layout/flexible-column-layout/index.d.ts.map +1 -1
  358. package/column-layout/flexible-column-layout/index.js.map +1 -1
  359. package/column-layout/grid-column-layout.d.ts.map +1 -1
  360. package/column-layout/grid-column-layout.js.map +1 -1
  361. package/column-layout/index.d.ts.map +1 -1
  362. package/column-layout/index.js.map +1 -1
  363. package/column-layout/interfaces.d.ts.map +1 -1
  364. package/column-layout/interfaces.js.map +1 -1
  365. package/column-layout/internal.d.ts.map +1 -1
  366. package/column-layout/internal.js.map +1 -1
  367. package/column-layout/util.d.ts.map +1 -1
  368. package/column-layout/util.js.map +1 -1
  369. package/container/index.d.ts.map +1 -1
  370. package/container/index.js.map +1 -1
  371. package/container/interfaces.d.ts.map +1 -1
  372. package/container/interfaces.js.map +1 -1
  373. package/container/internal.d.ts.map +1 -1
  374. package/container/internal.js.map +1 -1
  375. package/container/use-sticky-header.d.ts.map +1 -1
  376. package/container/use-sticky-header.js.map +1 -1
  377. package/content-layout/index.d.ts.map +1 -1
  378. package/content-layout/index.js.map +1 -1
  379. package/content-layout/interfaces.d.ts.map +1 -1
  380. package/content-layout/interfaces.js.map +1 -1
  381. package/content-layout/internal.d.ts.map +1 -1
  382. package/content-layout/internal.js.map +1 -1
  383. package/contexts/form-field.d.ts.map +1 -1
  384. package/contexts/form-field.js.map +1 -1
  385. package/copy-to-clipboard/index.d.ts.map +1 -1
  386. package/copy-to-clipboard/index.js.map +1 -1
  387. package/copy-to-clipboard/interfaces.d.ts.map +1 -1
  388. package/copy-to-clipboard/interfaces.js.map +1 -1
  389. package/date-input/index.d.ts.map +1 -1
  390. package/date-input/index.js.map +1 -1
  391. package/date-input/interfaces.d.ts.map +1 -1
  392. package/date-input/interfaces.js.map +1 -1
  393. package/date-input/internal.d.ts.map +1 -1
  394. package/date-input/internal.js.map +1 -1
  395. package/date-picker/index.d.ts.map +1 -1
  396. package/date-picker/index.js.map +1 -1
  397. package/date-picker/interfaces.d.ts.map +1 -1
  398. package/date-picker/interfaces.js.map +1 -1
  399. package/date-picker/utils.d.ts.map +1 -1
  400. package/date-picker/utils.js.map +1 -1
  401. package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  402. package/date-range-picker/calendar/grids/grid.js.map +1 -1
  403. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  404. package/date-range-picker/calendar/grids/index.js.map +1 -1
  405. package/date-range-picker/calendar/header/header-button.d.ts.map +1 -1
  406. package/date-range-picker/calendar/header/header-button.js.map +1 -1
  407. package/date-range-picker/calendar/header/index.d.ts.map +1 -1
  408. package/date-range-picker/calendar/header/index.js.map +1 -1
  409. package/date-range-picker/calendar/index.d.ts.map +1 -1
  410. package/date-range-picker/calendar/index.js.map +1 -1
  411. package/date-range-picker/calendar/range-inputs.d.ts.map +1 -1
  412. package/date-range-picker/calendar/range-inputs.js.map +1 -1
  413. package/date-range-picker/calendar/utils.d.ts.map +1 -1
  414. package/date-range-picker/calendar/utils.js.map +1 -1
  415. package/date-range-picker/dropdown.d.ts.map +1 -1
  416. package/date-range-picker/dropdown.js.map +1 -1
  417. package/date-range-picker/index.d.ts.map +1 -1
  418. package/date-range-picker/index.js.map +1 -1
  419. package/date-range-picker/interfaces.d.ts.map +1 -1
  420. package/date-range-picker/interfaces.js.map +1 -1
  421. package/date-range-picker/mode-switcher.d.ts.map +1 -1
  422. package/date-range-picker/mode-switcher.js.map +1 -1
  423. package/date-range-picker/relative-range/index.d.ts.map +1 -1
  424. package/date-range-picker/relative-range/index.js.map +1 -1
  425. package/date-range-picker/time-offset.d.ts.map +1 -1
  426. package/date-range-picker/time-offset.js.map +1 -1
  427. package/date-range-picker/utils.d.ts.map +1 -1
  428. package/date-range-picker/utils.js.map +1 -1
  429. package/drawer/index.d.ts.map +1 -1
  430. package/drawer/index.js.map +1 -1
  431. package/drawer/interfaces.d.ts.map +1 -1
  432. package/drawer/interfaces.js.map +1 -1
  433. package/expandable-section/expandable-section-container.d.ts.map +1 -1
  434. package/expandable-section/expandable-section-container.js.map +1 -1
  435. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  436. package/expandable-section/expandable-section-header.js.map +1 -1
  437. package/expandable-section/index.d.ts.map +1 -1
  438. package/expandable-section/index.js.map +1 -1
  439. package/expandable-section/interfaces.d.ts.map +1 -1
  440. package/expandable-section/interfaces.js.map +1 -1
  441. package/expandable-section/internal.d.ts.map +1 -1
  442. package/expandable-section/internal.js.map +1 -1
  443. package/expandable-section/utils.d.ts.map +1 -1
  444. package/expandable-section/utils.js.map +1 -1
  445. package/file-upload/default-formatters.d.ts.map +1 -1
  446. package/file-upload/default-formatters.js.map +1 -1
  447. package/file-upload/dropzone/index.d.ts.map +1 -1
  448. package/file-upload/dropzone/index.js.map +1 -1
  449. package/file-upload/file-input/index.d.ts.map +1 -1
  450. package/file-upload/file-input/index.js.map +1 -1
  451. package/file-upload/file-option/index.d.ts.map +1 -1
  452. package/file-upload/file-option/index.js.map +1 -1
  453. package/file-upload/file-option/thumbnail.d.ts.map +1 -1
  454. package/file-upload/file-option/thumbnail.js.map +1 -1
  455. package/file-upload/index.d.ts.map +1 -1
  456. package/file-upload/index.js.map +1 -1
  457. package/file-upload/interfaces.d.ts.map +1 -1
  458. package/file-upload/interfaces.js.map +1 -1
  459. package/file-upload/internal.d.ts.map +1 -1
  460. package/file-upload/internal.js.map +1 -1
  461. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  462. package/flashbar/collapsible-flashbar.js.map +1 -1
  463. package/flashbar/common.d.ts.map +1 -1
  464. package/flashbar/common.js.map +1 -1
  465. package/flashbar/constant.d.ts.map +1 -1
  466. package/flashbar/constant.js.map +1 -1
  467. package/flashbar/flash.d.ts.map +1 -1
  468. package/flashbar/flash.js.map +1 -1
  469. package/flashbar/index.d.ts.map +1 -1
  470. package/flashbar/index.js.map +1 -1
  471. package/flashbar/interfaces.d.ts.map +1 -1
  472. package/flashbar/interfaces.js.map +1 -1
  473. package/flashbar/internal/analytics.d.ts.map +1 -1
  474. package/flashbar/internal/analytics.js.map +1 -1
  475. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  476. package/flashbar/non-collapsible-flashbar.js.map +1 -1
  477. package/flashbar/utils.d.ts.map +1 -1
  478. package/flashbar/utils.js.map +1 -1
  479. package/form/index.d.ts.map +1 -1
  480. package/form/index.js.map +1 -1
  481. package/form/interfaces.d.ts.map +1 -1
  482. package/form/interfaces.js.map +1 -1
  483. package/form/internal.d.ts.map +1 -1
  484. package/form/internal.js.map +1 -1
  485. package/form-field/index.d.ts.map +1 -1
  486. package/form-field/index.js.map +1 -1
  487. package/form-field/interfaces.d.ts.map +1 -1
  488. package/form-field/interfaces.js.map +1 -1
  489. package/form-field/internal.d.ts.map +1 -1
  490. package/form-field/internal.js.map +1 -1
  491. package/form-field/util.d.ts.map +1 -1
  492. package/form-field/util.js.map +1 -1
  493. package/grid/index.d.ts.map +1 -1
  494. package/grid/index.js.map +1 -1
  495. package/grid/interfaces.d.ts.map +1 -1
  496. package/grid/interfaces.js.map +1 -1
  497. package/grid/internal.d.ts.map +1 -1
  498. package/grid/internal.js.map +1 -1
  499. package/header/index.d.ts.map +1 -1
  500. package/header/index.js.map +1 -1
  501. package/header/interfaces.d.ts.map +1 -1
  502. package/header/interfaces.js.map +1 -1
  503. package/header/internal.d.ts.map +1 -1
  504. package/header/internal.js.map +1 -1
  505. package/help-panel/index.d.ts.map +1 -1
  506. package/help-panel/index.js.map +1 -1
  507. package/help-panel/interfaces.d.ts.map +1 -1
  508. package/help-panel/interfaces.js.map +1 -1
  509. package/hotspot/index.d.ts.map +1 -1
  510. package/hotspot/index.js.map +1 -1
  511. package/hotspot/interfaces.d.ts.map +1 -1
  512. package/hotspot/interfaces.js.map +1 -1
  513. package/i18n/context.d.ts.map +1 -1
  514. package/i18n/context.js.map +1 -1
  515. package/i18n/get-matchable-locales.d.ts.map +1 -1
  516. package/i18n/get-matchable-locales.js.map +1 -1
  517. package/i18n/index.d.ts.map +1 -1
  518. package/i18n/index.js.map +1 -1
  519. package/i18n/messages-types.d.ts.map +1 -1
  520. package/i18n/messages-types.js.map +1 -1
  521. package/i18n/provider.d.ts.map +1 -1
  522. package/i18n/provider.js.map +1 -1
  523. package/i18n/testing.d.ts.map +1 -1
  524. package/i18n/testing.js.map +1 -1
  525. package/icon/index.d.ts.map +1 -1
  526. package/icon/index.js.map +1 -1
  527. package/icon/interfaces.d.ts.map +1 -1
  528. package/icon/interfaces.js.map +1 -1
  529. package/icon/internal.d.ts.map +1 -1
  530. package/icon/internal.js.map +1 -1
  531. package/index.d.ts.map +1 -1
  532. package/index.js.map +1 -1
  533. package/input/index.d.ts.map +1 -1
  534. package/input/index.js.map +1 -1
  535. package/input/interfaces.d.ts.map +1 -1
  536. package/input/interfaces.js.map +1 -1
  537. package/input/internal.d.ts.map +1 -1
  538. package/input/internal.js.map +1 -1
  539. package/input/utils.d.ts.map +1 -1
  540. package/input/utils.js.map +1 -1
  541. package/interfaces.d.ts.map +1 -1
  542. package/interfaces.js.map +1 -1
  543. package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  544. package/internal/analytics/components/analytics-funnel.js.map +1 -1
  545. package/internal/analytics/context/analytics-context.d.ts.map +1 -1
  546. package/internal/analytics/context/analytics-context.js.map +1 -1
  547. package/internal/analytics/hooks/use-funnel.d.ts.map +1 -1
  548. package/internal/analytics/hooks/use-funnel.js.map +1 -1
  549. package/internal/analytics/index.d.ts.map +1 -1
  550. package/internal/analytics/index.js.map +1 -1
  551. package/internal/analytics/interfaces.d.ts.map +1 -1
  552. package/internal/analytics/interfaces.js.map +1 -1
  553. package/internal/analytics/selectors.d.ts.map +1 -1
  554. package/internal/analytics/selectors.js.map +1 -1
  555. package/internal/animate.d.ts.map +1 -1
  556. package/internal/animate.js.map +1 -1
  557. package/internal/base-component/index.d.ts.map +1 -1
  558. package/internal/base-component/index.js.map +1 -1
  559. package/internal/breakpoints.d.ts.map +1 -1
  560. package/internal/breakpoints.js.map +1 -1
  561. package/internal/components/abstract-switch/index.d.ts.map +1 -1
  562. package/internal/components/abstract-switch/index.js.map +1 -1
  563. package/internal/components/autosuggest-input/index.d.ts.map +1 -1
  564. package/internal/components/autosuggest-input/index.js.map +1 -1
  565. package/internal/components/button-trigger/index.d.ts.map +1 -1
  566. package/internal/components/button-trigger/index.js.map +1 -1
  567. package/internal/components/cartesian-chart/axis-label.d.ts.map +1 -1
  568. package/internal/components/cartesian-chart/axis-label.js.map +1 -1
  569. package/internal/components/cartesian-chart/bottom-labels.d.ts.map +1 -1
  570. package/internal/components/cartesian-chart/bottom-labels.js.map +1 -1
  571. package/internal/components/cartesian-chart/chart-container.d.ts.map +1 -1
  572. package/internal/components/cartesian-chart/chart-container.js.map +1 -1
  573. package/internal/components/cartesian-chart/constants.d.ts.map +1 -1
  574. package/internal/components/cartesian-chart/constants.js.map +1 -1
  575. package/internal/components/cartesian-chart/emphasized-baseline.d.ts.map +1 -1
  576. package/internal/components/cartesian-chart/emphasized-baseline.js.map +1 -1
  577. package/internal/components/cartesian-chart/highlighted-point.d.ts.map +1 -1
  578. package/internal/components/cartesian-chart/highlighted-point.js.map +1 -1
  579. package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  580. package/internal/components/cartesian-chart/interfaces.js.map +1 -1
  581. package/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  582. package/internal/components/cartesian-chart/label-utils.js.map +1 -1
  583. package/internal/components/cartesian-chart/labels-measure.d.ts.map +1 -1
  584. package/internal/components/cartesian-chart/labels-measure.js.map +1 -1
  585. package/internal/components/cartesian-chart/left-labels.d.ts.map +1 -1
  586. package/internal/components/cartesian-chart/left-labels.js.map +1 -1
  587. package/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  588. package/internal/components/cartesian-chart/scales.js.map +1 -1
  589. package/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  590. package/internal/components/cartesian-chart/ticks.js.map +1 -1
  591. package/internal/components/cartesian-chart/vertical-grid-lines.d.ts.map +1 -1
  592. package/internal/components/cartesian-chart/vertical-grid-lines.js.map +1 -1
  593. package/internal/components/cartesian-chart/vertical-marker.d.ts.map +1 -1
  594. package/internal/components/cartesian-chart/vertical-marker.js.map +1 -1
  595. package/internal/components/chart-filter/index.d.ts.map +1 -1
  596. package/internal/components/chart-filter/index.js.map +1 -1
  597. package/internal/components/chart-legend/index.d.ts.map +1 -1
  598. package/internal/components/chart-legend/index.js.map +1 -1
  599. package/internal/components/chart-plot/application-controller.d.ts.map +1 -1
  600. package/internal/components/chart-plot/application-controller.js.map +1 -1
  601. package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  602. package/internal/components/chart-plot/focus-outline.js.map +1 -1
  603. package/internal/components/chart-plot/index.d.ts.map +1 -1
  604. package/internal/components/chart-plot/index.js.map +1 -1
  605. package/internal/components/chart-plot/interfaces.d.ts.map +1 -1
  606. package/internal/components/chart-plot/interfaces.js.map +1 -1
  607. package/internal/components/chart-popover/index.d.ts.map +1 -1
  608. package/internal/components/chart-popover/index.js.map +1 -1
  609. package/internal/components/chart-popover-footer/index.d.ts.map +1 -1
  610. package/internal/components/chart-popover-footer/index.js.map +1 -1
  611. package/internal/components/chart-series-details/index.d.ts.map +1 -1
  612. package/internal/components/chart-series-details/index.js.map +1 -1
  613. package/internal/components/chart-series-details/series-details-text.d.ts.map +1 -1
  614. package/internal/components/chart-series-details/series-details-text.js.map +1 -1
  615. package/internal/components/chart-series-marker/index.d.ts.map +1 -1
  616. package/internal/components/chart-series-marker/index.js.map +1 -1
  617. package/internal/components/chart-status-container/index.d.ts.map +1 -1
  618. package/internal/components/chart-status-container/index.js.map +1 -1
  619. package/internal/components/chart-wrapper/index.d.ts.map +1 -1
  620. package/internal/components/chart-wrapper/index.js.map +1 -1
  621. package/internal/components/checkbox-icon/index.d.ts.map +1 -1
  622. package/internal/components/checkbox-icon/index.js.map +1 -1
  623. package/internal/components/dark-ribbon/index.d.ts.map +1 -1
  624. package/internal/components/dark-ribbon/index.js.map +1 -1
  625. package/internal/components/drag-handle/index.d.ts.map +1 -1
  626. package/internal/components/drag-handle/index.js.map +1 -1
  627. package/internal/components/dropdown/context.d.ts.map +1 -1
  628. package/internal/components/dropdown/context.js.map +1 -1
  629. package/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
  630. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  631. package/internal/components/dropdown/index.d.ts.map +1 -1
  632. package/internal/components/dropdown/index.js.map +1 -1
  633. package/internal/components/dropdown/interfaces.d.ts.map +1 -1
  634. package/internal/components/dropdown/interfaces.js.map +1 -1
  635. package/internal/components/dropdown-footer/index.d.ts.map +1 -1
  636. package/internal/components/dropdown-footer/index.js.map +1 -1
  637. package/internal/components/dropdown-status/index.d.ts.map +1 -1
  638. package/internal/components/dropdown-status/index.js.map +1 -1
  639. package/internal/components/dropdown-status/interfaces.d.ts.map +1 -1
  640. package/internal/components/dropdown-status/interfaces.js.map +1 -1
  641. package/internal/components/filtering-token/index.d.ts.map +1 -1
  642. package/internal/components/filtering-token/index.js.map +1 -1
  643. package/internal/components/focus-lock/index.d.ts.map +1 -1
  644. package/internal/components/focus-lock/index.js.map +1 -1
  645. package/internal/components/focus-lock/utils.d.ts.map +1 -1
  646. package/internal/components/focus-lock/utils.js.map +1 -1
  647. package/internal/components/handle/index.d.ts.map +1 -1
  648. package/internal/components/handle/index.js.map +1 -1
  649. package/internal/components/interfaces.d.ts.map +1 -1
  650. package/internal/components/interfaces.js.map +1 -1
  651. package/internal/components/live-region/index.d.ts.map +1 -1
  652. package/internal/components/live-region/index.js.map +1 -1
  653. package/internal/components/masked-input/index.d.ts.map +1 -1
  654. package/internal/components/masked-input/index.js.map +1 -1
  655. package/internal/components/masked-input/interfaces.d.ts.map +1 -1
  656. package/internal/components/masked-input/interfaces.js.map +1 -1
  657. package/internal/components/masked-input/keyboard-handler.d.ts.map +1 -1
  658. package/internal/components/masked-input/keyboard-handler.js.map +1 -1
  659. package/internal/components/masked-input/use-mask.d.ts.map +1 -1
  660. package/internal/components/masked-input/use-mask.js.map +1 -1
  661. package/internal/components/masked-input/utils/keys.d.ts.map +1 -1
  662. package/internal/components/masked-input/utils/keys.js.map +1 -1
  663. package/internal/components/masked-input/utils/mask-format.d.ts.map +1 -1
  664. package/internal/components/masked-input/utils/mask-format.js.map +1 -1
  665. package/internal/components/masked-input/utils/strings.d.ts.map +1 -1
  666. package/internal/components/masked-input/utils/strings.js.map +1 -1
  667. package/internal/components/menu-dropdown/index.d.ts.map +1 -1
  668. package/internal/components/menu-dropdown/index.js.map +1 -1
  669. package/internal/components/menu-dropdown/interfaces.d.ts.map +1 -1
  670. package/internal/components/menu-dropdown/interfaces.js.map +1 -1
  671. package/internal/components/option/highlight-match.d.ts.map +1 -1
  672. package/internal/components/option/highlight-match.js.map +1 -1
  673. package/internal/components/option/index.d.ts.map +1 -1
  674. package/internal/components/option/index.js.map +1 -1
  675. package/internal/components/option/interfaces.d.ts.map +1 -1
  676. package/internal/components/option/interfaces.js.map +1 -1
  677. package/internal/components/option/option-announcer.d.ts.map +1 -1
  678. package/internal/components/option/option-announcer.js.map +1 -1
  679. package/internal/components/option/option-parts.d.ts.map +1 -1
  680. package/internal/components/option/option-parts.js.map +1 -1
  681. package/internal/components/option/utils/filter-options.d.ts.map +1 -1
  682. package/internal/components/option/utils/filter-options.js.map +1 -1
  683. package/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  684. package/internal/components/option/utils/flatten-options.js.map +1 -1
  685. package/internal/components/option/utils/prepare-options.d.ts.map +1 -1
  686. package/internal/components/option/utils/prepare-options.js.map +1 -1
  687. package/internal/components/options-list/index.d.ts.map +1 -1
  688. package/internal/components/options-list/index.js.map +1 -1
  689. package/internal/components/options-list/utils/test-indexes.d.ts.map +1 -1
  690. package/internal/components/options-list/utils/test-indexes.js.map +1 -1
  691. package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  692. package/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  693. package/internal/components/options-list/utils/use-ids.d.ts.map +1 -1
  694. package/internal/components/options-list/utils/use-ids.js.map +1 -1
  695. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  696. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  697. package/internal/components/options-list/utils/use-open-state.d.ts.map +1 -1
  698. package/internal/components/options-list/utils/use-open-state.js.map +1 -1
  699. package/internal/components/portal/index.d.ts.map +1 -1
  700. package/internal/components/portal/index.js.map +1 -1
  701. package/internal/components/responsive-text/index.d.ts.map +1 -1
  702. package/internal/components/responsive-text/index.js.map +1 -1
  703. package/internal/components/responsive-text/responsive-text-utils.d.ts.map +1 -1
  704. package/internal/components/responsive-text/responsive-text-utils.js.map +1 -1
  705. package/internal/components/screenreader-only/index.d.ts.map +1 -1
  706. package/internal/components/screenreader-only/index.js.map +1 -1
  707. package/internal/components/selectable-item/index.d.ts.map +1 -1
  708. package/internal/components/selectable-item/index.js.map +1 -1
  709. package/internal/components/tab-trap/index.d.ts.map +1 -1
  710. package/internal/components/tab-trap/index.js.map +1 -1
  711. package/internal/components/token-list/index.d.ts.map +1 -1
  712. package/internal/components/token-list/index.js.map +1 -1
  713. package/internal/components/token-list/interfaces.d.ts.map +1 -1
  714. package/internal/components/token-list/interfaces.js.map +1 -1
  715. package/internal/components/token-list/token-focus-controller.d.ts.map +1 -1
  716. package/internal/components/token-list/token-focus-controller.js.map +1 -1
  717. package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  718. package/internal/components/token-list/token-limit-toggle.js.map +1 -1
  719. package/internal/components/transition/index.d.ts.map +1 -1
  720. package/internal/components/transition/index.js.map +1 -1
  721. package/internal/components/visual-context/index.d.ts.map +1 -1
  722. package/internal/components/visual-context/index.js.map +1 -1
  723. package/internal/context/app-layout-context.d.ts.map +1 -1
  724. package/internal/context/app-layout-context.js.map +1 -1
  725. package/internal/context/button-context.d.ts.map +1 -1
  726. package/internal/context/button-context.js.map +1 -1
  727. package/internal/context/collection-label-context.d.ts.map +1 -1
  728. package/internal/context/collection-label-context.js.map +1 -1
  729. package/internal/context/dynamic-overlap-context.d.ts.map +1 -1
  730. package/internal/context/dynamic-overlap-context.js.map +1 -1
  731. package/internal/context/form-field-context.d.ts.map +1 -1
  732. package/internal/context/form-field-context.js.map +1 -1
  733. package/internal/context/info-link-label-context.d.ts.map +1 -1
  734. package/internal/context/info-link-label-context.js.map +1 -1
  735. package/internal/context/link-default-variant-context.d.ts.map +1 -1
  736. package/internal/context/link-default-variant-context.js.map +1 -1
  737. package/internal/context/modal-context.d.ts.map +1 -1
  738. package/internal/context/modal-context.js.map +1 -1
  739. package/internal/context/reset-contexts-for-modal.d.ts.map +1 -1
  740. package/internal/context/reset-contexts-for-modal.js.map +1 -1
  741. package/internal/context/single-tab-stop-navigation-context.d.ts.map +1 -1
  742. package/internal/context/single-tab-stop-navigation-context.js.map +1 -1
  743. package/internal/context/split-panel-context.d.ts.map +1 -1
  744. package/internal/context/split-panel-context.js.map +1 -1
  745. package/internal/debounce.d.ts.map +1 -1
  746. package/internal/debounce.js.map +1 -1
  747. package/internal/environment.js +1 -1
  748. package/internal/environment.json +1 -1
  749. package/internal/events/index.d.ts.map +1 -1
  750. package/internal/events/index.js.map +1 -1
  751. package/internal/focus-tracker.d.ts.map +1 -1
  752. package/internal/focus-tracker.js.map +1 -1
  753. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  754. package/internal/generated/custom-css-properties/index.js.map +1 -1
  755. package/internal/hooks/check-controlled/index.d.ts.map +1 -1
  756. package/internal/hooks/check-controlled/index.js.map +1 -1
  757. package/internal/hooks/container-queries/index.d.ts.map +1 -1
  758. package/internal/hooks/container-queries/index.js.map +1 -1
  759. package/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  760. package/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  761. package/internal/hooks/container-queries/use-height-measure.d.ts.map +1 -1
  762. package/internal/hooks/container-queries/use-height-measure.js.map +1 -1
  763. package/internal/hooks/focus-visible/index.d.ts.map +1 -1
  764. package/internal/hooks/focus-visible/index.js.map +1 -1
  765. package/internal/hooks/forward-focus/index.d.ts.map +1 -1
  766. package/internal/hooks/forward-focus/index.js.map +1 -1
  767. package/internal/hooks/forward-focus/radio-group.d.ts.map +1 -1
  768. package/internal/hooks/forward-focus/radio-group.js.map +1 -1
  769. package/internal/hooks/use-base-component/index.d.ts.map +1 -1
  770. package/internal/hooks/use-base-component/index.js.map +1 -1
  771. package/internal/hooks/use-controllable/index.d.ts.map +1 -1
  772. package/internal/hooks/use-controllable/index.js.map +1 -1
  773. package/internal/hooks/use-date-cache/index.d.ts.map +1 -1
  774. package/internal/hooks/use-date-cache/index.js.map +1 -1
  775. package/internal/hooks/use-debounce-callback/index.d.ts.map +1 -1
  776. package/internal/hooks/use-debounce-callback/index.js.map +1 -1
  777. package/internal/hooks/use-dynamic-overlap/index.d.ts.map +1 -1
  778. package/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  779. package/internal/hooks/use-effect-on-update.d.ts.map +1 -1
  780. package/internal/hooks/use-effect-on-update.js.map +1 -1
  781. package/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  782. package/internal/hooks/use-focus-tracker.js.map +1 -1
  783. package/internal/hooks/use-has-rendered/index.d.ts.map +1 -1
  784. package/internal/hooks/use-has-rendered/index.js.map +1 -1
  785. package/internal/hooks/use-intersection-observer/index.d.ts.map +1 -1
  786. package/internal/hooks/use-intersection-observer/index.js.map +1 -1
  787. package/internal/hooks/use-merge-refs/index.d.ts.map +1 -1
  788. package/internal/hooks/use-merge-refs/index.js.map +1 -1
  789. package/internal/hooks/use-mobile/index.d.ts.map +1 -1
  790. package/internal/hooks/use-mobile/index.js.map +1 -1
  791. package/internal/hooks/use-mouse-down-target.d.ts.map +1 -1
  792. package/internal/hooks/use-mouse-down-target.js.map +1 -1
  793. package/internal/hooks/use-mutation-observer/index.d.ts.map +1 -1
  794. package/internal/hooks/use-mutation-observer/index.js.map +1 -1
  795. package/internal/hooks/use-performance-marks.d.ts.map +1 -1
  796. package/internal/hooks/use-performance-marks.js.map +1 -1
  797. package/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
  798. package/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
  799. package/internal/hooks/use-previous/index.d.ts.map +1 -1
  800. package/internal/hooks/use-previous/index.js.map +1 -1
  801. package/internal/hooks/use-scroll-sync/index.d.ts.map +1 -1
  802. package/internal/hooks/use-scroll-sync/index.js.map +1 -1
  803. package/internal/hooks/use-telemetry/index.d.ts.map +1 -1
  804. package/internal/hooks/use-telemetry/index.js.map +1 -1
  805. package/internal/hooks/use-unique-id/index.d.ts.map +1 -1
  806. package/internal/hooks/use-unique-id/index.js.map +1 -1
  807. package/internal/hooks/use-virtual/index.d.ts.map +1 -1
  808. package/internal/hooks/use-virtual/index.js.map +1 -1
  809. package/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
  810. package/internal/hooks/use-visual-mode/index.js.map +1 -1
  811. package/internal/is-development.d.ts.map +1 -1
  812. package/internal/is-development.js.map +1 -1
  813. package/internal/keycode.d.ts.map +1 -1
  814. package/internal/keycode.js.map +1 -1
  815. package/internal/manifest.json +1 -1
  816. package/internal/plugins/api.d.ts.map +1 -1
  817. package/internal/plugins/api.js.map +1 -1
  818. package/internal/plugins/controllers/action-buttons.d.ts.map +1 -1
  819. package/internal/plugins/controllers/action-buttons.js.map +1 -1
  820. package/internal/plugins/controllers/drawers.d.ts.map +1 -1
  821. package/internal/plugins/controllers/drawers.js.map +1 -1
  822. package/internal/plugins/helpers/index.d.ts.map +1 -1
  823. package/internal/plugins/helpers/index.js.map +1 -1
  824. package/internal/plugins/helpers/runtime-content-wrapper.d.ts.map +1 -1
  825. package/internal/plugins/helpers/runtime-content-wrapper.js.map +1 -1
  826. package/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
  827. package/internal/plugins/helpers/use-discovered-action.js.map +1 -1
  828. package/internal/plugins/helpers/utils.d.ts.map +1 -1
  829. package/internal/plugins/helpers/utils.js.map +1 -1
  830. package/internal/plugins/index.d.ts.map +1 -1
  831. package/internal/plugins/index.js.map +1 -1
  832. package/internal/styles/colors.d.ts.map +1 -1
  833. package/internal/styles/colors.js.map +1 -1
  834. package/internal/types.d.ts.map +1 -1
  835. package/internal/types.js.map +1 -1
  836. package/internal/utils/apply-display-name.d.ts.map +1 -1
  837. package/internal/utils/apply-display-name.js.map +1 -1
  838. package/internal/utils/browser-scrollbar-size.d.ts.map +1 -1
  839. package/internal/utils/browser-scrollbar-size.js.map +1 -1
  840. package/internal/utils/calculate-once.d.ts.map +1 -1
  841. package/internal/utils/calculate-once.js.map +1 -1
  842. package/internal/utils/check-safe-url.d.ts.map +1 -1
  843. package/internal/utils/check-safe-url.js.map +1 -1
  844. package/internal/utils/content-header-utils.d.ts.map +1 -1
  845. package/internal/utils/content-header-utils.js.map +1 -1
  846. package/internal/utils/create-category-color-scale.d.ts.map +1 -1
  847. package/internal/utils/create-category-color-scale.js.map +1 -1
  848. package/internal/utils/date-time/display-format.d.ts.map +1 -1
  849. package/internal/utils/date-time/display-format.js.map +1 -1
  850. package/internal/utils/date-time/format-date-iso.d.ts.map +1 -1
  851. package/internal/utils/date-time/format-date-iso.js.map +1 -1
  852. package/internal/utils/date-time/format-date-localized.d.ts.map +1 -1
  853. package/internal/utils/date-time/format-date-localized.js.map +1 -1
  854. package/internal/utils/date-time/format-date-range.d.ts.map +1 -1
  855. package/internal/utils/date-time/format-date-range.js.map +1 -1
  856. package/internal/utils/date-time/format-date-time.d.ts.map +1 -1
  857. package/internal/utils/date-time/format-date-time.js.map +1 -1
  858. package/internal/utils/date-time/format-date.d.ts.map +1 -1
  859. package/internal/utils/date-time/format-date.js.map +1 -1
  860. package/internal/utils/date-time/format-time-offset.d.ts.map +1 -1
  861. package/internal/utils/date-time/format-time-offset.js.map +1 -1
  862. package/internal/utils/date-time/format-time.d.ts.map +1 -1
  863. package/internal/utils/date-time/format-time.js.map +1 -1
  864. package/internal/utils/date-time/index.d.ts.map +1 -1
  865. package/internal/utils/date-time/index.js.map +1 -1
  866. package/internal/utils/date-time/is-iso-date-only.d.ts.map +1 -1
  867. package/internal/utils/date-time/is-iso-date-only.js.map +1 -1
  868. package/internal/utils/date-time/join-date-time.d.ts.map +1 -1
  869. package/internal/utils/date-time/join-date-time.js.map +1 -1
  870. package/internal/utils/date-time/parse-date.d.ts.map +1 -1
  871. package/internal/utils/date-time/parse-date.js.map +1 -1
  872. package/internal/utils/date-time/parse-timezone-offset.d.ts.map +1 -1
  873. package/internal/utils/date-time/parse-timezone-offset.js.map +1 -1
  874. package/internal/utils/date-time/shift-timezone-offset.d.ts.map +1 -1
  875. package/internal/utils/date-time/shift-timezone-offset.js.map +1 -1
  876. package/internal/utils/dom.d.ts.map +1 -1
  877. package/internal/utils/dom.js.map +1 -1
  878. package/internal/utils/external-props.d.ts.map +1 -1
  879. package/internal/utils/external-props.js.map +1 -1
  880. package/internal/utils/global-flags.d.ts.map +1 -1
  881. package/internal/utils/global-flags.js.map +1 -1
  882. package/internal/utils/has-value.d.ts.map +1 -1
  883. package/internal/utils/has-value.js.map +1 -1
  884. package/internal/utils/locale/index.d.ts.map +1 -1
  885. package/internal/utils/locale/index.js.map +1 -1
  886. package/internal/utils/locale/merge-locales.d.ts.map +1 -1
  887. package/internal/utils/locale/merge-locales.js.map +1 -1
  888. package/internal/utils/locale/normalize-locale.d.ts.map +1 -1
  889. package/internal/utils/locale/normalize-locale.js.map +1 -1
  890. package/internal/utils/locale/normalize-start-of-week.d.ts.map +1 -1
  891. package/internal/utils/locale/normalize-start-of-week.js.map +1 -1
  892. package/internal/utils/node-belongs.d.ts.map +1 -1
  893. package/internal/utils/node-belongs.js.map +1 -1
  894. package/internal/utils/promises.d.ts.map +1 -1
  895. package/internal/utils/promises.js.map +1 -1
  896. package/internal/utils/scrollable-containers.d.ts.map +1 -1
  897. package/internal/utils/scrollable-containers.js.map +1 -1
  898. package/internal/utils/strings/index.d.ts.map +1 -1
  899. package/internal/utils/strings/index.js.map +1 -1
  900. package/internal/utils/strings/join-strings.d.ts.map +1 -1
  901. package/internal/utils/strings/join-strings.js.map +1 -1
  902. package/internal/utils/strings/pad-left-zeros.d.ts.map +1 -1
  903. package/internal/utils/strings/pad-left-zeros.js.map +1 -1
  904. package/internal/utils/throttle.d.ts.map +1 -1
  905. package/internal/utils/throttle.js.map +1 -1
  906. package/internal/utils/use-container-width.d.ts.map +1 -1
  907. package/internal/utils/use-container-width.js.map +1 -1
  908. package/line-chart/index.d.ts.map +1 -1
  909. package/line-chart/index.js.map +1 -1
  910. package/line-chart/interfaces.d.ts.map +1 -1
  911. package/line-chart/interfaces.js.map +1 -1
  912. package/link/index.d.ts.map +1 -1
  913. package/link/index.js.map +1 -1
  914. package/link/interfaces.d.ts.map +1 -1
  915. package/link/interfaces.js.map +1 -1
  916. package/link/internal.d.ts.map +1 -1
  917. package/link/internal.js.map +1 -1
  918. package/mixed-line-bar-chart/bar-groups.d.ts.map +1 -1
  919. package/mixed-line-bar-chart/bar-groups.js.map +1 -1
  920. package/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
  921. package/mixed-line-bar-chart/bar-series.js.map +1 -1
  922. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  923. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  924. package/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
  925. package/mixed-line-bar-chart/chart-legend.js.map +1 -1
  926. package/mixed-line-bar-chart/chart-popover.d.ts.map +1 -1
  927. package/mixed-line-bar-chart/chart-popover.js.map +1 -1
  928. package/mixed-line-bar-chart/data-series.d.ts.map +1 -1
  929. package/mixed-line-bar-chart/data-series.js.map +1 -1
  930. package/mixed-line-bar-chart/domain.d.ts.map +1 -1
  931. package/mixed-line-bar-chart/domain.js.map +1 -1
  932. package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  933. package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  934. package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
  935. package/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
  936. package/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
  937. package/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
  938. package/mixed-line-bar-chart/hooks/use-popover.d.ts.map +1 -1
  939. package/mixed-line-bar-chart/hooks/use-popover.js.map +1 -1
  940. package/mixed-line-bar-chart/index.d.ts.map +1 -1
  941. package/mixed-line-bar-chart/index.js.map +1 -1
  942. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  943. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  944. package/mixed-line-bar-chart/internal.d.ts.map +1 -1
  945. package/mixed-line-bar-chart/internal.js.map +1 -1
  946. package/mixed-line-bar-chart/line-series.d.ts.map +1 -1
  947. package/mixed-line-bar-chart/line-series.js.map +1 -1
  948. package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
  949. package/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
  950. package/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
  951. package/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
  952. package/mixed-line-bar-chart/utils.d.ts.map +1 -1
  953. package/mixed-line-bar-chart/utils.js.map +1 -1
  954. package/modal/body-scroll.d.ts.map +1 -1
  955. package/modal/body-scroll.js.map +1 -1
  956. package/modal/index.d.ts.map +1 -1
  957. package/modal/index.js.map +1 -1
  958. package/modal/interfaces.d.ts.map +1 -1
  959. package/modal/interfaces.js.map +1 -1
  960. package/modal/internal.d.ts.map +1 -1
  961. package/modal/internal.js.map +1 -1
  962. package/multiselect/index.d.ts.map +1 -1
  963. package/multiselect/index.js.map +1 -1
  964. package/multiselect/interfaces.d.ts.map +1 -1
  965. package/multiselect/interfaces.js.map +1 -1
  966. package/multiselect/internal.d.ts.map +1 -1
  967. package/multiselect/internal.js.map +1 -1
  968. package/package.json +1 -1
  969. package/pagination/index.d.ts.map +1 -1
  970. package/pagination/index.js.map +1 -1
  971. package/pagination/interfaces.d.ts.map +1 -1
  972. package/pagination/interfaces.js.map +1 -1
  973. package/pagination/internal.d.ts.map +1 -1
  974. package/pagination/internal.js.map +1 -1
  975. package/pagination/utils.d.ts.map +1 -1
  976. package/pagination/utils.js.map +1 -1
  977. package/pie-chart/index.d.ts.map +1 -1
  978. package/pie-chart/index.js.map +1 -1
  979. package/pie-chart/interfaces.d.ts.map +1 -1
  980. package/pie-chart/interfaces.js.map +1 -1
  981. package/pie-chart/labels.d.ts.map +1 -1
  982. package/pie-chart/labels.js.map +1 -1
  983. package/pie-chart/pie-chart.d.ts.map +1 -1
  984. package/pie-chart/pie-chart.js.map +1 -1
  985. package/pie-chart/responsive-text.d.ts.map +1 -1
  986. package/pie-chart/responsive-text.js.map +1 -1
  987. package/pie-chart/segments.d.ts.map +1 -1
  988. package/pie-chart/segments.js.map +1 -1
  989. package/pie-chart/utils.d.ts.map +1 -1
  990. package/pie-chart/utils.js.map +1 -1
  991. package/popover/arrow.d.ts.map +1 -1
  992. package/popover/arrow.js.map +1 -1
  993. package/popover/body.d.ts.map +1 -1
  994. package/popover/body.js.map +1 -1
  995. package/popover/container.d.ts.map +1 -1
  996. package/popover/container.js.map +1 -1
  997. package/popover/index.d.ts.map +1 -1
  998. package/popover/index.js.map +1 -1
  999. package/popover/interfaces.d.ts.map +1 -1
  1000. package/popover/interfaces.js.map +1 -1
  1001. package/popover/internal.d.ts.map +1 -1
  1002. package/popover/internal.js.map +1 -1
  1003. package/popover/use-popover-position.d.ts.map +1 -1
  1004. package/popover/use-popover-position.js.map +1 -1
  1005. package/popover/utils/positions.d.ts.map +1 -1
  1006. package/popover/utils/positions.js.map +1 -1
  1007. package/progress-bar/index.d.ts.map +1 -1
  1008. package/progress-bar/index.js.map +1 -1
  1009. package/progress-bar/interfaces.d.ts.map +1 -1
  1010. package/progress-bar/interfaces.js.map +1 -1
  1011. package/progress-bar/internal.d.ts.map +1 -1
  1012. package/progress-bar/internal.js.map +1 -1
  1013. package/property-filter/controller.d.ts.map +1 -1
  1014. package/property-filter/controller.js.map +1 -1
  1015. package/property-filter/filter-options.d.ts.map +1 -1
  1016. package/property-filter/filter-options.js.map +1 -1
  1017. package/property-filter/index.d.ts.map +1 -1
  1018. package/property-filter/index.js.map +1 -1
  1019. package/property-filter/interfaces.d.ts.map +1 -1
  1020. package/property-filter/interfaces.js.map +1 -1
  1021. package/property-filter/property-editor.d.ts.map +1 -1
  1022. package/property-filter/property-editor.js.map +1 -1
  1023. package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  1024. package/property-filter/property-filter-autosuggest.js.map +1 -1
  1025. package/property-filter/token-editor.d.ts.map +1 -1
  1026. package/property-filter/token-editor.js.map +1 -1
  1027. package/property-filter/token.d.ts.map +1 -1
  1028. package/property-filter/token.js.map +1 -1
  1029. package/property-filter/use-load-items.d.ts.map +1 -1
  1030. package/property-filter/use-load-items.js.map +1 -1
  1031. package/property-filter/utils.d.ts.map +1 -1
  1032. package/property-filter/utils.js.map +1 -1
  1033. package/radio-group/index.d.ts.map +1 -1
  1034. package/radio-group/index.js.map +1 -1
  1035. package/radio-group/interfaces.d.ts.map +1 -1
  1036. package/radio-group/interfaces.js.map +1 -1
  1037. package/radio-group/internal.d.ts.map +1 -1
  1038. package/radio-group/internal.js.map +1 -1
  1039. package/radio-group/radio-button.d.ts.map +1 -1
  1040. package/radio-group/radio-button.js.map +1 -1
  1041. package/s3-resource-selector/index.d.ts.map +1 -1
  1042. package/s3-resource-selector/index.js.map +1 -1
  1043. package/s3-resource-selector/interfaces.d.ts.map +1 -1
  1044. package/s3-resource-selector/interfaces.js.map +1 -1
  1045. package/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  1046. package/s3-resource-selector/s3-in-context/index.js.map +1 -1
  1047. package/s3-resource-selector/s3-in-context/search-input.d.ts.map +1 -1
  1048. package/s3-resource-selector/s3-in-context/search-input.js.map +1 -1
  1049. package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts.map +1 -1
  1050. package/s3-resource-selector/s3-in-context/use-versions-fetch.js.map +1 -1
  1051. package/s3-resource-selector/s3-in-context/validation.d.ts.map +1 -1
  1052. package/s3-resource-selector/s3-in-context/validation.js.map +1 -1
  1053. package/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  1054. package/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  1055. package/s3-resource-selector/s3-modal/buckets-table.d.ts.map +1 -1
  1056. package/s3-resource-selector/s3-modal/buckets-table.js.map +1 -1
  1057. package/s3-resource-selector/s3-modal/column-formats.d.ts.map +1 -1
  1058. package/s3-resource-selector/s3-modal/column-formats.js.map +1 -1
  1059. package/s3-resource-selector/s3-modal/empty-state.d.ts.map +1 -1
  1060. package/s3-resource-selector/s3-modal/empty-state.js.map +1 -1
  1061. package/s3-resource-selector/s3-modal/index.d.ts.map +1 -1
  1062. package/s3-resource-selector/s3-modal/index.js.map +1 -1
  1063. package/s3-resource-selector/s3-modal/objects-table.d.ts.map +1 -1
  1064. package/s3-resource-selector/s3-modal/objects-table.js.map +1 -1
  1065. package/s3-resource-selector/s3-modal/table-utils.d.ts.map +1 -1
  1066. package/s3-resource-selector/s3-modal/table-utils.js.map +1 -1
  1067. package/s3-resource-selector/s3-modal/versions-table.d.ts.map +1 -1
  1068. package/s3-resource-selector/s3-modal/versions-table.js.map +1 -1
  1069. package/s3-resource-selector/utils.d.ts.map +1 -1
  1070. package/s3-resource-selector/utils.js.map +1 -1
  1071. package/segmented-control/index.d.ts.map +1 -1
  1072. package/segmented-control/index.js.map +1 -1
  1073. package/segmented-control/interfaces.d.ts.map +1 -1
  1074. package/segmented-control/interfaces.js.map +1 -1
  1075. package/segmented-control/internal-segmented-control.d.ts.map +1 -1
  1076. package/segmented-control/internal-segmented-control.js.map +1 -1
  1077. package/segmented-control/internal.d.ts.map +1 -1
  1078. package/segmented-control/internal.js.map +1 -1
  1079. package/segmented-control/segment.d.ts.map +1 -1
  1080. package/segmented-control/segment.js.map +1 -1
  1081. package/select/index.d.ts.map +1 -1
  1082. package/select/index.js.map +1 -1
  1083. package/select/interfaces.d.ts.map +1 -1
  1084. package/select/interfaces.js.map +1 -1
  1085. package/select/internal.d.ts.map +1 -1
  1086. package/select/internal.js.map +1 -1
  1087. package/select/parts/filter.d.ts.map +1 -1
  1088. package/select/parts/filter.js.map +1 -1
  1089. package/select/parts/item.d.ts.map +1 -1
  1090. package/select/parts/item.js.map +1 -1
  1091. package/select/parts/multiselect-item.d.ts.map +1 -1
  1092. package/select/parts/multiselect-item.js.map +1 -1
  1093. package/select/parts/plain-list.d.ts.map +1 -1
  1094. package/select/parts/plain-list.js.map +1 -1
  1095. package/select/parts/trigger.d.ts.map +1 -1
  1096. package/select/parts/trigger.js.map +1 -1
  1097. package/select/parts/virtual-list.d.ts.map +1 -1
  1098. package/select/parts/virtual-list.js.map +1 -1
  1099. package/select/utils/check-option-value-field.d.ts.map +1 -1
  1100. package/select/utils/check-option-value-field.js.map +1 -1
  1101. package/select/utils/connect-options.d.ts.map +1 -1
  1102. package/select/utils/connect-options.js.map +1 -1
  1103. package/select/utils/get-item-props.d.ts.map +1 -1
  1104. package/select/utils/get-item-props.js.map +1 -1
  1105. package/select/utils/render-options.d.ts.map +1 -1
  1106. package/select/utils/render-options.js.map +1 -1
  1107. package/select/utils/use-announcement.d.ts.map +1 -1
  1108. package/select/utils/use-announcement.js.map +1 -1
  1109. package/select/utils/use-load-items.d.ts.map +1 -1
  1110. package/select/utils/use-load-items.js.map +1 -1
  1111. package/select/utils/use-native-search.d.ts.map +1 -1
  1112. package/select/utils/use-native-search.js.map +1 -1
  1113. package/select/utils/use-select.d.ts.map +1 -1
  1114. package/select/utils/use-select.js.map +1 -1
  1115. package/side-navigation/index.d.ts.map +1 -1
  1116. package/side-navigation/index.js.map +1 -1
  1117. package/side-navigation/interfaces.d.ts.map +1 -1
  1118. package/side-navigation/interfaces.js.map +1 -1
  1119. package/side-navigation/internal.d.ts.map +1 -1
  1120. package/side-navigation/internal.js.map +1 -1
  1121. package/side-navigation/util.d.ts.map +1 -1
  1122. package/side-navigation/util.js.map +1 -1
  1123. package/space-between/index.d.ts.map +1 -1
  1124. package/space-between/index.js.map +1 -1
  1125. package/space-between/interfaces.d.ts.map +1 -1
  1126. package/space-between/interfaces.js.map +1 -1
  1127. package/space-between/internal.d.ts.map +1 -1
  1128. package/space-between/internal.js.map +1 -1
  1129. package/spinner/index.d.ts.map +1 -1
  1130. package/spinner/index.js.map +1 -1
  1131. package/spinner/interfaces.d.ts.map +1 -1
  1132. package/spinner/interfaces.js.map +1 -1
  1133. package/spinner/internal.d.ts.map +1 -1
  1134. package/spinner/internal.js.map +1 -1
  1135. package/split-panel/bottom.d.ts.map +1 -1
  1136. package/split-panel/bottom.js.map +1 -1
  1137. package/split-panel/icons/bottom-icon-refresh.d.ts.map +1 -1
  1138. package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  1139. package/split-panel/icons/bottom-icon.d.ts.map +1 -1
  1140. package/split-panel/icons/bottom-icon.js.map +1 -1
  1141. package/split-panel/icons/resize-handler.d.ts.map +1 -1
  1142. package/split-panel/icons/resize-handler.js.map +1 -1
  1143. package/split-panel/icons/side-position-refresh.d.ts.map +1 -1
  1144. package/split-panel/icons/side-position-refresh.js.map +1 -1
  1145. package/split-panel/icons/side-position.d.ts.map +1 -1
  1146. package/split-panel/icons/side-position.js.map +1 -1
  1147. package/split-panel/index.d.ts.map +1 -1
  1148. package/split-panel/index.js.map +1 -1
  1149. package/split-panel/interfaces.d.ts.map +1 -1
  1150. package/split-panel/interfaces.js.map +1 -1
  1151. package/split-panel/preferences-modal.d.ts.map +1 -1
  1152. package/split-panel/preferences-modal.js.map +1 -1
  1153. package/split-panel/side.d.ts.map +1 -1
  1154. package/split-panel/side.js.map +1 -1
  1155. package/split-panel/utils/size-utils.d.ts.map +1 -1
  1156. package/split-panel/utils/size-utils.js.map +1 -1
  1157. package/status-indicator/index.d.ts.map +1 -1
  1158. package/status-indicator/index.js.map +1 -1
  1159. package/status-indicator/internal.d.ts.map +1 -1
  1160. package/status-indicator/internal.js.map +1 -1
  1161. package/table/body-cell/click-away.d.ts.map +1 -1
  1162. package/table/body-cell/click-away.js.map +1 -1
  1163. package/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
  1164. package/table/body-cell/disabled-inline-editor.js.map +1 -1
  1165. package/table/body-cell/index.d.ts.map +1 -1
  1166. package/table/body-cell/index.js.map +1 -1
  1167. package/table/body-cell/inline-editor.d.ts.map +1 -1
  1168. package/table/body-cell/inline-editor.js.map +1 -1
  1169. package/table/body-cell/td-element.d.ts.map +1 -1
  1170. package/table/body-cell/td-element.js.map +1 -1
  1171. package/table/column-widths-utils.d.ts.map +1 -1
  1172. package/table/column-widths-utils.js.map +1 -1
  1173. package/table/header-cell/index.d.ts.map +1 -1
  1174. package/table/header-cell/index.js.map +1 -1
  1175. package/table/header-cell/th-element.d.ts.map +1 -1
  1176. package/table/header-cell/th-element.js.map +1 -1
  1177. package/table/header-cell/utils.d.ts.map +1 -1
  1178. package/table/header-cell/utils.js.map +1 -1
  1179. package/table/index.d.ts.map +1 -1
  1180. package/table/index.js.map +1 -1
  1181. package/table/interfaces.d.ts.map +1 -1
  1182. package/table/interfaces.js.map +1 -1
  1183. package/table/internal.d.ts.map +1 -1
  1184. package/table/internal.js.map +1 -1
  1185. package/table/no-data-cell.d.ts.map +1 -1
  1186. package/table/no-data-cell.js.map +1 -1
  1187. package/table/resizer/index.d.ts.map +1 -1
  1188. package/table/resizer/index.js.map +1 -1
  1189. package/table/resizer/resizer-lookup.d.ts.map +1 -1
  1190. package/table/resizer/resizer-lookup.js.map +1 -1
  1191. package/table/selection/index.d.ts.map +1 -1
  1192. package/table/selection/index.js.map +1 -1
  1193. package/table/selection/interfaces.d.ts.map +1 -1
  1194. package/table/selection/interfaces.js.map +1 -1
  1195. package/table/selection/selection-control.d.ts.map +1 -1
  1196. package/table/selection/selection-control.js.map +1 -1
  1197. package/table/selection/use-selection-focus-move.d.ts.map +1 -1
  1198. package/table/selection/use-selection-focus-move.js.map +1 -1
  1199. package/table/selection/use-selection.d.ts.map +1 -1
  1200. package/table/selection/use-selection.js.map +1 -1
  1201. package/table/selection/utils.d.ts.map +1 -1
  1202. package/table/selection/utils.js.map +1 -1
  1203. package/table/sticky-columns/index.d.ts.map +1 -1
  1204. package/table/sticky-columns/index.js.map +1 -1
  1205. package/table/sticky-columns/interfaces.d.ts.map +1 -1
  1206. package/table/sticky-columns/interfaces.js.map +1 -1
  1207. package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
  1208. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  1209. package/table/sticky-columns/utils.d.ts.map +1 -1
  1210. package/table/sticky-columns/utils.js.map +1 -1
  1211. package/table/sticky-header.d.ts.map +1 -1
  1212. package/table/sticky-header.js.map +1 -1
  1213. package/table/sticky-scrollbar/index.d.ts.map +1 -1
  1214. package/table/sticky-scrollbar/index.js.map +1 -1
  1215. package/table/sticky-scrollbar/sticky-scrollbar.d.ts.map +1 -1
  1216. package/table/sticky-scrollbar/sticky-scrollbar.js.map +1 -1
  1217. package/table/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +1 -1
  1218. package/table/sticky-scrollbar/use-sticky-scrollbar.js.map +1 -1
  1219. package/table/sticky-scrolling.d.ts.map +1 -1
  1220. package/table/sticky-scrolling.js.map +1 -1
  1221. package/table/table-role/grid-navigation.d.ts.map +1 -1
  1222. package/table/table-role/grid-navigation.js.map +1 -1
  1223. package/table/table-role/index.d.ts.map +1 -1
  1224. package/table/table-role/index.js.map +1 -1
  1225. package/table/table-role/interfaces.d.ts.map +1 -1
  1226. package/table/table-role/interfaces.js.map +1 -1
  1227. package/table/table-role/table-role-helper.d.ts.map +1 -1
  1228. package/table/table-role/table-role-helper.js.map +1 -1
  1229. package/table/table-role/utils.d.ts.map +1 -1
  1230. package/table/table-role/utils.js.map +1 -1
  1231. package/table/thead.d.ts.map +1 -1
  1232. package/table/thead.js.map +1 -1
  1233. package/table/tools-header.d.ts.map +1 -1
  1234. package/table/tools-header.js.map +1 -1
  1235. package/table/use-cell-editing.d.ts.map +1 -1
  1236. package/table/use-cell-editing.js.map +1 -1
  1237. package/table/use-column-widths.d.ts.map +1 -1
  1238. package/table/use-column-widths.js.map +1 -1
  1239. package/table/use-row-events.d.ts.map +1 -1
  1240. package/table/use-row-events.js.map +1 -1
  1241. package/table/use-sticky-header.d.ts.map +1 -1
  1242. package/table/use-sticky-header.js.map +1 -1
  1243. package/table/use-table-focus-navigation.d.ts.map +1 -1
  1244. package/table/use-table-focus-navigation.js.map +1 -1
  1245. package/table/utils.d.ts.map +1 -1
  1246. package/table/utils.js.map +1 -1
  1247. package/tabs/index.d.ts.map +1 -1
  1248. package/tabs/index.js.map +1 -1
  1249. package/tabs/interfaces.d.ts.map +1 -1
  1250. package/tabs/interfaces.js.map +1 -1
  1251. package/tabs/native-smooth-scroll-supported.d.ts.map +1 -1
  1252. package/tabs/native-smooth-scroll-supported.js.map +1 -1
  1253. package/tabs/scroll-utils.d.ts.map +1 -1
  1254. package/tabs/scroll-utils.js.map +1 -1
  1255. package/tabs/smooth-scroll.d.ts.map +1 -1
  1256. package/tabs/smooth-scroll.js.map +1 -1
  1257. package/tabs/tab-header-bar.d.ts.map +1 -1
  1258. package/tabs/tab-header-bar.js.map +1 -1
  1259. package/tag-editor/index.d.ts.map +1 -1
  1260. package/tag-editor/index.js.map +1 -1
  1261. package/tag-editor/interfaces.d.ts.map +1 -1
  1262. package/tag-editor/interfaces.js.map +1 -1
  1263. package/tag-editor/internal.d.ts.map +1 -1
  1264. package/tag-editor/internal.js.map +1 -1
  1265. package/tag-editor/utils.d.ts.map +1 -1
  1266. package/tag-editor/utils.js.map +1 -1
  1267. package/tag-editor/validation.d.ts.map +1 -1
  1268. package/tag-editor/validation.js.map +1 -1
  1269. package/text-content/index.d.ts.map +1 -1
  1270. package/text-content/index.js.map +1 -1
  1271. package/text-content/interfaces.d.ts.map +1 -1
  1272. package/text-content/interfaces.js.map +1 -1
  1273. package/text-filter/index.d.ts.map +1 -1
  1274. package/text-filter/index.js.map +1 -1
  1275. package/text-filter/interfaces.d.ts.map +1 -1
  1276. package/text-filter/interfaces.js.map +1 -1
  1277. package/text-filter/internal.d.ts.map +1 -1
  1278. package/text-filter/internal.js.map +1 -1
  1279. package/text-filter/search-results.d.ts.map +1 -1
  1280. package/text-filter/search-results.js.map +1 -1
  1281. package/textarea/index.d.ts.map +1 -1
  1282. package/textarea/index.js.map +1 -1
  1283. package/textarea/interfaces.d.ts.map +1 -1
  1284. package/textarea/interfaces.js.map +1 -1
  1285. package/theming/index.d.ts.map +1 -1
  1286. package/theming/index.js.map +1 -1
  1287. package/tiles/index.d.ts.map +1 -1
  1288. package/tiles/index.js.map +1 -1
  1289. package/tiles/interfaces.d.ts.map +1 -1
  1290. package/tiles/interfaces.js.map +1 -1
  1291. package/tiles/internal.d.ts.map +1 -1
  1292. package/tiles/internal.js.map +1 -1
  1293. package/tiles/tile.d.ts.map +1 -1
  1294. package/tiles/tile.js.map +1 -1
  1295. package/time-input/index.d.ts.map +1 -1
  1296. package/time-input/index.js.map +1 -1
  1297. package/time-input/interfaces.d.ts.map +1 -1
  1298. package/time-input/interfaces.js.map +1 -1
  1299. package/time-input/internal.d.ts.map +1 -1
  1300. package/time-input/internal.js.map +1 -1
  1301. package/toggle/index.d.ts.map +1 -1
  1302. package/toggle/index.js.map +1 -1
  1303. package/toggle/interfaces.d.ts.map +1 -1
  1304. package/toggle/interfaces.js.map +1 -1
  1305. package/toggle/internal.d.ts.map +1 -1
  1306. package/toggle/internal.js.map +1 -1
  1307. package/token-group/dismiss-button.d.ts.map +1 -1
  1308. package/token-group/dismiss-button.js.map +1 -1
  1309. package/token-group/index.d.ts.map +1 -1
  1310. package/token-group/index.js.map +1 -1
  1311. package/token-group/interfaces.d.ts.map +1 -1
  1312. package/token-group/interfaces.js.map +1 -1
  1313. package/token-group/internal.d.ts.map +1 -1
  1314. package/token-group/internal.js.map +1 -1
  1315. package/token-group/token.d.ts.map +1 -1
  1316. package/token-group/token.js.map +1 -1
  1317. package/top-navigation/1.0-beta/index.d.ts.map +1 -1
  1318. package/top-navigation/1.0-beta/index.js.map +1 -1
  1319. package/top-navigation/1.0-beta/interfaces.d.ts.map +1 -1
  1320. package/top-navigation/1.0-beta/interfaces.js.map +1 -1
  1321. package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  1322. package/top-navigation/1.0-beta/internal.js.map +1 -1
  1323. package/top-navigation/1.0-beta/parts/overflow-menu.d.ts.map +1 -1
  1324. package/top-navigation/1.0-beta/parts/overflow-menu.js.map +1 -1
  1325. package/top-navigation/1.0-beta/parts/utility.d.ts.map +1 -1
  1326. package/top-navigation/1.0-beta/parts/utility.js.map +1 -1
  1327. package/top-navigation/1.0-beta/use-top-navigation.d.ts.map +1 -1
  1328. package/top-navigation/1.0-beta/use-top-navigation.js.map +1 -1
  1329. package/top-navigation/index.d.ts.map +1 -1
  1330. package/top-navigation/index.js.map +1 -1
  1331. package/top-navigation/interfaces.d.ts.map +1 -1
  1332. package/top-navigation/interfaces.js.map +1 -1
  1333. package/top-navigation/internal.d.ts.map +1 -1
  1334. package/top-navigation/internal.js.map +1 -1
  1335. package/top-navigation/parts/overflow-menu/header.d.ts.map +1 -1
  1336. package/top-navigation/parts/overflow-menu/header.js.map +1 -1
  1337. package/top-navigation/parts/overflow-menu/index.d.ts.map +1 -1
  1338. package/top-navigation/parts/overflow-menu/index.js.map +1 -1
  1339. package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  1340. package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  1341. package/top-navigation/parts/overflow-menu/router.d.ts.map +1 -1
  1342. package/top-navigation/parts/overflow-menu/router.js.map +1 -1
  1343. package/top-navigation/parts/overflow-menu/views/submenu.d.ts.map +1 -1
  1344. package/top-navigation/parts/overflow-menu/views/submenu.js.map +1 -1
  1345. package/top-navigation/parts/overflow-menu/views/utilities.d.ts.map +1 -1
  1346. package/top-navigation/parts/overflow-menu/views/utilities.js.map +1 -1
  1347. package/top-navigation/parts/utility.d.ts.map +1 -1
  1348. package/top-navigation/parts/utility.js.map +1 -1
  1349. package/top-navigation/use-top-navigation.d.ts.map +1 -1
  1350. package/top-navigation/use-top-navigation.js.map +1 -1
  1351. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts.map +1 -1
  1352. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.js.map +1 -1
  1353. package/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
  1354. package/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
  1355. package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts.map +1 -1
  1356. package/tutorial-panel/components/tutorial-detail-view/task-list.js.map +1 -1
  1357. package/tutorial-panel/components/tutorial-detail-view/task.d.ts.map +1 -1
  1358. package/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
  1359. package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  1360. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  1361. package/tutorial-panel/index.d.ts.map +1 -1
  1362. package/tutorial-panel/index.js.map +1 -1
  1363. package/tutorial-panel/interfaces.d.ts.map +1 -1
  1364. package/tutorial-panel/interfaces.js.map +1 -1
  1365. package/wizard/analytics.d.ts.map +1 -1
  1366. package/wizard/analytics.js.map +1 -1
  1367. package/wizard/index.d.ts.map +1 -1
  1368. package/wizard/index.js.map +1 -1
  1369. package/wizard/interfaces.d.ts.map +1 -1
  1370. package/wizard/interfaces.js.map +1 -1
  1371. package/wizard/internal.d.ts.map +1 -1
  1372. package/wizard/internal.js.map +1 -1
  1373. package/wizard/unmount.d.ts.map +1 -1
  1374. package/wizard/unmount.js.map +1 -1
  1375. package/wizard/wizard-actions.d.ts.map +1 -1
  1376. package/wizard/wizard-actions.js.map +1 -1
  1377. package/wizard/wizard-form-header.d.ts.map +1 -1
  1378. package/wizard/wizard-form-header.js.map +1 -1
  1379. package/wizard/wizard-form.d.ts.map +1 -1
  1380. package/wizard/wizard-form.js.map +1 -1
  1381. package/wizard/wizard-navigation.d.ts.map +1 -1
  1382. package/wizard/wizard-navigation.js.map +1 -1
@@ -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,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"]}
1
+ {"version":3,"file":"use-height-measure.js","sourceRoot":"","sources":["../../../../../src/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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/focus-visible/index.ts"],"names":[],"mappings":"AAKA,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,WAIjD;AAgCD,MAAM,CAAC,OAAO,UAAU,eAAe,SAatC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/focus-visible/index.ts"],"names":[],"mappings":"AAKA,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,WAIjD;AAgCD,MAAM,CAAC,OAAO,UAAU,eAAe,SAatC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/focus-visible/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,UAAU,aAAa,CAAC,KAAoB;IAChD,8CAA8C;IAC9C,gCAAgC;IAChC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,SAAS,aAAa,CAAC,MAAe;IACpC,IAAI,MAAM,EAAE;QACV,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAAC;KAChE;SAAM;QACL,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAC;KAC3D;AACH,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,aAAa,CAAC,KAAoB;IACzC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;QACzB,aAAa,CAAC,IAAI,CAAC,CAAC;KACrB;AACH,CAAC;AAED,IAAI,eAAe,GAAG,CAAC,CAAC;AAExB,SAAS,YAAY;IACnB,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IACxD,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,eAAe;IACtB,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAC3D,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,eAAe;IACrC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,KAAK,CAAC,EAAE;YACzB,YAAY,EAAE,CAAC;SAChB;QACD,eAAe,EAAE,CAAC;QAClB,OAAO,GAAG,EAAE;YACV,eAAe,EAAE,CAAC;YAClB,IAAI,eAAe,KAAK,CAAC,EAAE;gBACzB,eAAe,EAAE,CAAC;aACnB;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect } from 'react';\nimport { KeyCode } from '../../keycode';\n\nexport function isModifierKey(event: KeyboardEvent) {\n // we do not want to highlight focused element\n // when special keys are pressed\n return [KeyCode.shift, KeyCode.alt, KeyCode.control, KeyCode.meta].indexOf(event.keyCode) > -1;\n}\n\nfunction setIsKeyboard(active: boolean) {\n if (active) {\n document.body.setAttribute('data-awsui-focus-visible', 'true');\n } else {\n document.body.removeAttribute('data-awsui-focus-visible');\n }\n}\n\nfunction handleMousedown() {\n return setIsKeyboard(false);\n}\n\nfunction handleKeydown(event: KeyboardEvent) {\n if (!isModifierKey(event)) {\n setIsKeyboard(true);\n }\n}\n\nlet componentsCount = 0;\n\nfunction addListeners() {\n document.addEventListener('mousedown', handleMousedown);\n document.addEventListener('keydown', handleKeydown);\n}\n\nfunction removeListeners() {\n document.removeEventListener('mousedown', handleMousedown);\n document.removeEventListener('keydown', handleKeydown);\n}\n\nexport default function useFocusVisible() {\n useEffect(() => {\n if (componentsCount === 0) {\n addListeners();\n }\n componentsCount++;\n return () => {\n componentsCount--;\n if (componentsCount === 0) {\n removeListeners();\n }\n };\n }, []);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/focus-visible/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,UAAU,aAAa,CAAC,KAAoB;IAChD,8CAA8C;IAC9C,gCAAgC;IAChC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,SAAS,aAAa,CAAC,MAAe;IACpC,IAAI,MAAM,EAAE;QACV,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAAC;KAChE;SAAM;QACL,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAC;KAC3D;AACH,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,aAAa,CAAC,KAAoB;IACzC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;QACzB,aAAa,CAAC,IAAI,CAAC,CAAC;KACrB;AACH,CAAC;AAED,IAAI,eAAe,GAAG,CAAC,CAAC;AAExB,SAAS,YAAY;IACnB,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IACxD,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,eAAe;IACtB,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAC3D,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,eAAe;IACrC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,KAAK,CAAC,EAAE;YACzB,YAAY,EAAE,CAAC;SAChB;QACD,eAAe,EAAE,CAAC;QAClB,OAAO,GAAG,EAAE;YACV,eAAe,EAAE,CAAC;YAClB,IAAI,eAAe,KAAK,CAAC,EAAE;gBACzB,eAAe,EAAE,CAAC;aACnB;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect } from 'react';\nimport { KeyCode } from '../../keycode';\n\nexport function isModifierKey(event: KeyboardEvent) {\n // we do not want to highlight focused element\n // when special keys are pressed\n return [KeyCode.shift, KeyCode.alt, KeyCode.control, KeyCode.meta].indexOf(event.keyCode) > -1;\n}\n\nfunction setIsKeyboard(active: boolean) {\n if (active) {\n document.body.setAttribute('data-awsui-focus-visible', 'true');\n } else {\n document.body.removeAttribute('data-awsui-focus-visible');\n }\n}\n\nfunction handleMousedown() {\n return setIsKeyboard(false);\n}\n\nfunction handleKeydown(event: KeyboardEvent) {\n if (!isModifierKey(event)) {\n setIsKeyboard(true);\n }\n}\n\nlet componentsCount = 0;\n\nfunction addListeners() {\n document.addEventListener('mousedown', handleMousedown);\n document.addEventListener('keydown', handleKeydown);\n}\n\nfunction removeListeners() {\n document.removeEventListener('mousedown', handleMousedown);\n document.removeEventListener('keydown', handleKeydown);\n}\n\nexport default function useFocusVisible() {\n useEffect(() => {\n if (componentsCount === 0) {\n addListeners();\n }\n componentsCount++;\n return () => {\n componentsCount--;\n if (componentsCount === 0) {\n removeListeners();\n }\n };\n }, []);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/forward-focus/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EACvB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC,QAW7D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/forward-focus/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EACvB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC,QAW7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/forward-focus/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAMnD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAuB,EACvB,UAA4D;IAE5D,mBAAmB,CACjB,OAAO,EACP,GAAG,EAAE,CAAC,CAAC;QACL,KAAK,CAAC,GAAG,IAAsC;;YAC7C,MAAA,UAAU,CAAC,OAAO,0CAAE,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACrC,CAAC;KACF,CAAC,EACF,CAAC,UAAU,CAAC,CACb,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle } from 'react';\n\nexport interface ForwardFocusRef {\n focus(): void;\n}\n\nexport default function useForwardFocus(\n mainRef: React.Ref<any>,\n controlRef: React.RefObject<{ focus: HTMLElement['focus'] }>\n) {\n useImperativeHandle(\n mainRef,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n controlRef.current?.focus(...args);\n },\n }),\n [controlRef]\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/forward-focus/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAMnD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAuB,EACvB,UAA4D;IAE5D,mBAAmB,CACjB,OAAO,EACP,GAAG,EAAE,CAAC,CAAC;QACL,KAAK,CAAC,GAAG,IAAsC;;YAC7C,MAAA,UAAU,CAAC,OAAO,0CAAE,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACrC,CAAC;KACF,CAAC,EACF,CAAC,UAAU,CAAC,CACb,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle } from 'react';\n\nexport interface ForwardFocusRef {\n focus(): void;\n}\n\nexport default function useForwardFocus(\n mainRef: React.Ref<any>,\n controlRef: React.RefObject<{ focus: HTMLElement['focus'] }>\n) {\n useImperativeHandle(\n mainRef,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n controlRef.current?.focus(...args);\n },\n }),\n [controlRef]\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/forward-focus/radio-group.ts"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAC/C,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,EACxC,KAAK,EAAE,aAAa,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,EACnD,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAUvC"}
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/forward-focus/radio-group.ts"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAC/C,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,EACxC,KAAK,EAAE,aAAa,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,EACnD,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAUvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sourceRoot":"lib/default/","sources":["internal/hooks/forward-focus/radio-group.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAM3D;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAC/C,YAAwC,EACxC,KAAmD,EACnD,KAAoB;IAEpB,MAAM,OAAO,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IACtD,MAAM,SAAS,GAAG,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAC1E,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;QACvC,KAAK;;YACH,MAAA,OAAO,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;QAC3B,CAAC;KACF,CAAC,CAAC,CAAC;IAEJ,OAAO,CAAC,OAAO,EAAE,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,CAAC;AAED,SAAS,SAAS,CAAI,KAAuB,EAAE,SAAwB;IACrE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;YACvB,OAAO,CAAC,CAAC;SACV;KACF;IACD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle, useRef } from 'react';\n\nexport interface ForwardFocusRef {\n focus(): void;\n}\n\n/**\n * Focus forwarding helper for radio groups where only the first selected\n * child element should be focused.\n */\nexport default function useRadioGroupForwardFocus(\n forwardedRef: React.Ref<ForwardFocusRef>,\n items: ReadonlyArray<{ value: string }> | undefined,\n value: string | null\n): [React.Ref<HTMLInputElement>, number] {\n const itemRef = useRef<HTMLInputElement | null>(null);\n const itemIndex = items && findIndex(items, item => item.value === value);\n useImperativeHandle(forwardedRef, () => ({\n focus() {\n itemRef.current?.focus();\n },\n }));\n\n return [itemRef, itemIndex !== undefined && itemIndex !== -1 ? itemIndex : 0];\n}\n\nfunction findIndex<T>(items: ReadonlyArray<T>, predicate: (t: T) => any): number {\n for (let i = 0; i < items.length; i++) {\n if (predicate(items[i])) {\n return i;\n }\n }\n return -1;\n}\n"]}
1
+ {"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/forward-focus/radio-group.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAM3D;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAC/C,YAAwC,EACxC,KAAmD,EACnD,KAAoB;IAEpB,MAAM,OAAO,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IACtD,MAAM,SAAS,GAAG,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAC1E,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;QACvC,KAAK;;YACH,MAAA,OAAO,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;QAC3B,CAAC;KACF,CAAC,CAAC,CAAC;IAEJ,OAAO,CAAC,OAAO,EAAE,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,CAAC;AAED,SAAS,SAAS,CAAI,KAAuB,EAAE,SAAwB;IACrE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;YACvB,OAAO,CAAC,CAAC;SACV;KACF;IACD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle, useRef } from 'react';\n\nexport interface ForwardFocusRef {\n focus(): void;\n}\n\n/**\n * Focus forwarding helper for radio groups where only the first selected\n * child element should be focused.\n */\nexport default function useRadioGroupForwardFocus(\n forwardedRef: React.Ref<ForwardFocusRef>,\n items: ReadonlyArray<{ value: string }> | undefined,\n value: string | null\n): [React.Ref<HTMLInputElement>, number] {\n const itemRef = useRef<HTMLInputElement | null>(null);\n const itemIndex = items && findIndex(items, item => item.value === value);\n useImperativeHandle(forwardedRef, () => ({\n focus() {\n itemRef.current?.focus();\n },\n }));\n\n return [itemRef, itemIndex !== undefined && itemIndex !== -1 ? itemIndex : 0];\n}\n\nfunction findIndex<T>(items: ReadonlyArray<T>, predicate: (t: T) => any): number {\n for (let i = 0; i < items.length; i++) {\n if (predicate(items[i])) {\n return i;\n }\n }\n return -1;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAwB,MAAM,+CAA+C,CAAC;AAK7G,MAAM,WAAW,0BAA0B,CAAC,CAAC,GAAG,GAAG;IACjD,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;CACvD;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sBAAsB;;EAKvG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAwB,MAAM,+CAA+C,CAAC;AAK7G,MAAM,WAAW,0BAA0B,CAAC,CAAC,GAAG,GAAG;IACjD,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;CACvD;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sBAAsB;;EAKvG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAU,aAAqB,EAAE,MAA+B;IACtG,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACpC,eAAe,EAAE,CAAC;IAClB,MAAM,UAAU,GAAG,oBAAoB,CAAI,aAAa,EAAE,eAAe,CAAC,CAAC;IAC3E,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { MutableRefObject } from 'react';\nimport { ComponentConfiguration, useComponentMetadata } from '@cloudscape-design/component-toolkit/internal';\nimport { useTelemetry } from '../use-telemetry';\nimport { PACKAGE_VERSION } from '../../environment';\nimport useFocusVisible from '../focus-visible';\n\nexport interface InternalBaseComponentProps<T = any> {\n __internalRootRef?: MutableRefObject<T | null> | null;\n}\n\n/**\n * This hook is used for components which are exported to customers. The returned __internalRootRef needs to be\n * attached to the (internal) component's root DOM node. The hook takes care of attaching the metadata to this\n * root DOM node and emits the telemetry for this component.\n */\nexport default function useBaseComponent<T = any>(componentName: string, config?: ComponentConfiguration) {\n useTelemetry(componentName, config);\n useFocusVisible();\n const elementRef = useComponentMetadata<T>(componentName, PACKAGE_VERSION);\n return { __internalRootRef: elementRef };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAU,aAAqB,EAAE,MAA+B;IACtG,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACpC,eAAe,EAAE,CAAC;IAClB,MAAM,UAAU,GAAG,oBAAoB,CAAI,aAAa,EAAE,eAAe,CAAC,CAAC;IAC3E,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { MutableRefObject } from 'react';\nimport { ComponentConfiguration, useComponentMetadata } from '@cloudscape-design/component-toolkit/internal';\nimport { useTelemetry } from '../use-telemetry';\nimport { PACKAGE_VERSION } from '../../environment';\nimport useFocusVisible from '../focus-visible';\n\nexport interface InternalBaseComponentProps<T = any> {\n __internalRootRef?: MutableRefObject<T | null> | null;\n}\n\n/**\n * This hook is used for components which are exported to customers. The returned __internalRootRef needs to be\n * attached to the (internal) component's root DOM node. The hook takes care of attaching the metadata to this\n * root DOM node and emits the telemetry for this component.\n */\nexport default function useBaseComponent<T = any>(componentName: string, config?: ComponentConfiguration) {\n useTelemetry(componentName, config);\n useFocusVisible();\n const elementRef = useComponentMetadata<T>(componentName, PACKAGE_VERSION);\n return { __internalRootRef: elementRef };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-controllable/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,mBAAmB;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,eAAe,CAAC,SAAS,EACvC,eAAe,EAAE,SAAS,EAC1B,OAAO,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,SAAS,EAClD,YAAY,EAAE,SAAS,EACvB,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,mBAAmB,mCA2CxD,MAAM,cAAc,CAAC,SAAS,CAAC,WAY7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-controllable/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,mBAAmB;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,eAAe,CAAC,SAAS,EACvC,eAAe,EAAE,SAAS,EAC1B,OAAO,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,SAAS,EAClD,YAAY,EAAE,SAAS,EACvB,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,mBAAmB,mCA2CxD,MAAM,cAAc,CAAC,SAAS,CAAC,WAY7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-controllable/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAQzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,UAAU,eAAe,CAC7B,eAA0B,EAC1B,OAAkD,EAClD,YAAuB,EACvB,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAuB;IAErE,+HAA+H;IAC/H,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtE,IAAI,aAAa,EAAE;QACjB,sFAAsF;QAEtF,sDAAsD;QACtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,IAAI,YAAY,IAAI,OAAO,KAAK,SAAS,EAAE;gBACzC,QAAQ,CACN,aAAa,EACb,oBAAoB,cAAc,wBAAwB,aAAa,2DAA2D,CACnI,CAAC;aACH;QACH,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;QAE1E,sDAAsD;QACtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,MAAM,eAAe,GAAG,eAAe,KAAK,SAAS,CAAC;YACtD,IAAI,YAAY,KAAK,eAAe,EAAE;gBACpC,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;gBACjE,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;gBAChE,QAAQ,CACN,aAAa,EACb,+BAA+B,WAAW,KAAK,cAAc,oBAAoB,OAAO,IAAI;oBAC1F,4DAA4D,WAAW,OAAO,OAAO,oBAAoB;oBACzG,4FAA4F;oBAC5F,sDAAsD,CACzD,CAAC;aACH;QACH,CAAC,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC;KACpE;IAED,mEAAmE;IACnE,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpE,uCAAuC;IACvC,MAAM,wBAAwB,GAAG,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC;IAE7E,MAAM,oBAAoB,GAAG,KAAK,CAAC,WAAW,CAC5C,CAAC,QAAyC,EAAE,EAAE;QAC5C,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnB,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,EACD,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAC/B,CAAC;IAEF,IAAI,YAAY,EAAE;QAChB,OAAO,CAAC,eAAe,EAAE,eAAe,CAAU,CAAC;KACpD;SAAM;QACL,OAAO,CAAC,wBAAwB,EAAE,oBAAoB,CAAU,CAAC;KAClE;AACH,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,KAAK,CAAC,CAAC;AAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport * as React from 'react';\nimport { isDevelopment } from '../../is-development';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\ninterface PropertyDescription {\n componentName: string;\n controlledProp: string;\n changeHandler: string;\n}\n\n/**\n * This hook allows you to make a component that can be used both in controlled mode and uncontrolled mode.\n * Pass in your component's props, and then implement your component as if it was only controlled.\n * When calling onChange callbacks (or the equivalent for your property), you need to call both the callback returned by this function\n * as well as the callback provided in your component's props.\n *\n * A component determines its mode (either controlled or uncontrolled) on the first render and keeps it for its lifetime. The mode cannot\n * be switched later.\n *\n *\n * Example usage:\n * ```jsx\n * const [checked, setChecked] = useControllable(\n * props,\n * props.defaultEnabled ?? false,\n * {\n * componentName: 'MyCheckboxComponent',\n * controlledProp: 'enabled',\n * changeHandler: 'onCheckedStatusChange'\n * }\n * )\n *\n * return\n * <input\n * type=\"checkbox\"\n * checked={checked}\n * onChange={event => {\n * setChecked(event.target.checked);\n * fireNonCancelableEvent(props.onCheckedStatusChange, { checked: event.target.checked })\n * }} />\n * ```\n *\n * @param controlledValue value for the controlled mode\n * @param handler update handler for controlled mode\n * @param defaultValue initial value for uncontrolled mode\n * @param description property metadata\n */\nexport function useControllable<ValueType>(\n controlledValue: ValueType,\n handler: ((...args: any[]) => unknown) | undefined,\n defaultValue: ValueType,\n { componentName, changeHandler, controlledProp }: PropertyDescription\n) {\n // The decision whether a component is controlled or uncontrolled is made on its first render and cannot be changed afterwards.\n const isControlled = React.useState(controlledValue !== undefined)[0];\n\n if (isDevelopment) {\n // Print a warning if the component switches between controlled and uncontrolled mode.\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (isControlled && handler === undefined) {\n warnOnce(\n componentName,\n `You provided a \\`${controlledProp}\\` prop without an \\`${changeHandler}\\` handler. This will render a non-interactive component.`\n );\n }\n }, [handler, isControlled, componentName, changeHandler, controlledProp]);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n const isControlledNow = controlledValue !== undefined;\n if (isControlled !== isControlledNow) {\n const initialMode = isControlled ? 'controlled' : 'uncontrolled';\n const modeNow = isControlledNow ? 'controlled' : 'uncontrolled';\n warnOnce(\n componentName,\n `A component tried to change ${initialMode} '${controlledProp}' property to be ${modeNow}. ` +\n `This is not supported. Properties should not switch from ${initialMode} to ${modeNow} (or vice versa). ` +\n `Decide between using a controlled or uncontrolled mode for the lifetime of the component. ` +\n `More info: https://fb.me/react-controlled-components`\n );\n }\n }, [isControlled, controlledProp, componentName, controlledValue]);\n }\n\n // This is the value that is used if the component is uncontrolled.\n const [valueState, setValue] = React.useState(defaultValue);\n const [valueHasBeenSet, setValueHasBeenSet] = React.useState(false);\n\n // We track changes to the defaultValue\n const currentUncontrolledValue = valueHasBeenSet ? valueState : defaultValue;\n\n const setUncontrolledValue = React.useCallback(\n (newValue: React.SetStateAction<ValueType>) => {\n setValue(newValue);\n setValueHasBeenSet(true);\n },\n [setValue, setValueHasBeenSet]\n );\n\n if (isControlled) {\n return [controlledValue, defaultCallback] as const;\n } else {\n return [currentUncontrolledValue, setUncontrolledValue] as const;\n }\n}\n\nfunction defaultCallback() {\n return void 0;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-controllable/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAQzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,UAAU,eAAe,CAC7B,eAA0B,EAC1B,OAAkD,EAClD,YAAuB,EACvB,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAuB;IAErE,+HAA+H;IAC/H,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtE,IAAI,aAAa,EAAE;QACjB,sFAAsF;QAEtF,sDAAsD;QACtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,IAAI,YAAY,IAAI,OAAO,KAAK,SAAS,EAAE;gBACzC,QAAQ,CACN,aAAa,EACb,oBAAoB,cAAc,wBAAwB,aAAa,2DAA2D,CACnI,CAAC;aACH;QACH,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;QAE1E,sDAAsD;QACtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,MAAM,eAAe,GAAG,eAAe,KAAK,SAAS,CAAC;YACtD,IAAI,YAAY,KAAK,eAAe,EAAE;gBACpC,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;gBACjE,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;gBAChE,QAAQ,CACN,aAAa,EACb,+BAA+B,WAAW,KAAK,cAAc,oBAAoB,OAAO,IAAI;oBAC1F,4DAA4D,WAAW,OAAO,OAAO,oBAAoB;oBACzG,4FAA4F;oBAC5F,sDAAsD,CACzD,CAAC;aACH;QACH,CAAC,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC;KACpE;IAED,mEAAmE;IACnE,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpE,uCAAuC;IACvC,MAAM,wBAAwB,GAAG,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC;IAE7E,MAAM,oBAAoB,GAAG,KAAK,CAAC,WAAW,CAC5C,CAAC,QAAyC,EAAE,EAAE;QAC5C,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnB,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,EACD,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAC/B,CAAC;IAEF,IAAI,YAAY,EAAE;QAChB,OAAO,CAAC,eAAe,EAAE,eAAe,CAAU,CAAC;KACpD;SAAM;QACL,OAAO,CAAC,wBAAwB,EAAE,oBAAoB,CAAU,CAAC;KAClE;AACH,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,KAAK,CAAC,CAAC;AAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport * as React from 'react';\nimport { isDevelopment } from '../../is-development';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\ninterface PropertyDescription {\n componentName: string;\n controlledProp: string;\n changeHandler: string;\n}\n\n/**\n * This hook allows you to make a component that can be used both in controlled mode and uncontrolled mode.\n * Pass in your component's props, and then implement your component as if it was only controlled.\n * When calling onChange callbacks (or the equivalent for your property), you need to call both the callback returned by this function\n * as well as the callback provided in your component's props.\n *\n * A component determines its mode (either controlled or uncontrolled) on the first render and keeps it for its lifetime. The mode cannot\n * be switched later.\n *\n *\n * Example usage:\n * ```jsx\n * const [checked, setChecked] = useControllable(\n * props,\n * props.defaultEnabled ?? false,\n * {\n * componentName: 'MyCheckboxComponent',\n * controlledProp: 'enabled',\n * changeHandler: 'onCheckedStatusChange'\n * }\n * )\n *\n * return\n * <input\n * type=\"checkbox\"\n * checked={checked}\n * onChange={event => {\n * setChecked(event.target.checked);\n * fireNonCancelableEvent(props.onCheckedStatusChange, { checked: event.target.checked })\n * }} />\n * ```\n *\n * @param controlledValue value for the controlled mode\n * @param handler update handler for controlled mode\n * @param defaultValue initial value for uncontrolled mode\n * @param description property metadata\n */\nexport function useControllable<ValueType>(\n controlledValue: ValueType,\n handler: ((...args: any[]) => unknown) | undefined,\n defaultValue: ValueType,\n { componentName, changeHandler, controlledProp }: PropertyDescription\n) {\n // The decision whether a component is controlled or uncontrolled is made on its first render and cannot be changed afterwards.\n const isControlled = React.useState(controlledValue !== undefined)[0];\n\n if (isDevelopment) {\n // Print a warning if the component switches between controlled and uncontrolled mode.\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (isControlled && handler === undefined) {\n warnOnce(\n componentName,\n `You provided a \\`${controlledProp}\\` prop without an \\`${changeHandler}\\` handler. This will render a non-interactive component.`\n );\n }\n }, [handler, isControlled, componentName, changeHandler, controlledProp]);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n const isControlledNow = controlledValue !== undefined;\n if (isControlled !== isControlledNow) {\n const initialMode = isControlled ? 'controlled' : 'uncontrolled';\n const modeNow = isControlledNow ? 'controlled' : 'uncontrolled';\n warnOnce(\n componentName,\n `A component tried to change ${initialMode} '${controlledProp}' property to be ${modeNow}. ` +\n `This is not supported. Properties should not switch from ${initialMode} to ${modeNow} (or vice versa). ` +\n `Decide between using a controlled or uncontrolled mode for the lifetime of the component. ` +\n `More info: https://fb.me/react-controlled-components`\n );\n }\n }, [isControlled, controlledProp, componentName, controlledValue]);\n }\n\n // This is the value that is used if the component is uncontrolled.\n const [valueState, setValue] = React.useState(defaultValue);\n const [valueHasBeenSet, setValueHasBeenSet] = React.useState(false);\n\n // We track changes to the defaultValue\n const currentUncontrolledValue = valueHasBeenSet ? valueState : defaultValue;\n\n const setUncontrolledValue = React.useCallback(\n (newValue: React.SetStateAction<ValueType>) => {\n setValue(newValue);\n setValueHasBeenSet(true);\n },\n [setValue, setValueHasBeenSet]\n );\n\n if (isControlled) {\n return [controlledValue, defaultCallback] as const;\n } else {\n return [currentUncontrolledValue, setUncontrolledValue] as const;\n }\n}\n\nfunction defaultCallback() {\n return void 0;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-date-cache/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,IAAI,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAWnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-date-cache/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,IAAI,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAWnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-date-cache/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,UAAU,YAAY;IAC1B,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,GAAG,EAAgB,CAAC,CAAC;IAEjD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACrD,IAAI,OAAO,EAAE;YACX,OAAO,OAAO,CAAC;SAChB;QACD,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useRef } from 'react';\n\nexport function useDateCache(): (date: Date) => Date {\n const cacheRef = useRef(new Map<number, Date>());\n\n return (date: Date) => {\n const current = cacheRef.current.get(date.getTime());\n if (current) {\n return current;\n }\n cacheRef.current.set(date.getTime(), date);\n return date;\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-date-cache/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,UAAU,YAAY;IAC1B,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,GAAG,EAAgB,CAAC,CAAC;IAEjD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACrD,IAAI,OAAO,EAAE;YACX,OAAO,OAAO,CAAC;SAChB;QACD,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useRef } from 'react';\n\nexport function useDateCache(): (date: Date) => Date {\n const cacheRef = useRef(new Map<number, Date>());\n\n return (date: Date) => {\n const current = cacheRef.current.get(date.getTime());\n if (current) {\n return current;\n }\n cacheRef.current.set(date.getTime(), date);\n return date;\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-debounce-callback/index.ts"],"names":[],"mappings":"AAKA,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAiBtG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-debounce-callback/index.ts"],"names":[],"mappings":"AAKA,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAiBtG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-debounce-callback/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,MAAM,UAAU,mBAAmB,CAAqC,QAAW,EAAE,KAAc;IACjG,MAAM,WAAW,GAAG,MAAM,EAAK,CAAC;IAChC,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IAE/B,uEAAuE;IACvE,uDAAuD;IACvD,OAAO,WAAW,CAChB,QAAQ,CACN,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE;QACX,IAAI,WAAW,CAAC,OAAO,EAAE;YACvB,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;SAC9B;IACH,CAAC,CAAM,EACP,KAAK,CACN,EACD,EAAE,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, useRef } from 'react';\nimport debounce from '../../debounce';\n\nexport function useDebounceCallback<T extends (...args: any[]) => void>(callback: T, delay?: number): T {\n const callbackRef = useRef<T>();\n callbackRef.current = callback;\n\n // ESLint rule requires an inline function which we cannot provide here\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useCallback(\n debounce(\n ((...args) => {\n if (callbackRef.current) {\n callbackRef.current(...args);\n }\n }) as T,\n delay\n ),\n []\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-debounce-callback/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,MAAM,UAAU,mBAAmB,CAAqC,QAAW,EAAE,KAAc;IACjG,MAAM,WAAW,GAAG,MAAM,EAAK,CAAC;IAChC,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IAE/B,uEAAuE;IACvE,uDAAuD;IACvD,OAAO,WAAW,CAChB,QAAQ,CACN,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE;QACX,IAAI,WAAW,CAAC,OAAO,EAAE;YACvB,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;SAC9B;IACH,CAAC,CAAM,EACP,KAAK,CACN,EACD,EAAE,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, useRef } from 'react';\nimport debounce from '../../debounce';\n\nexport function useDebounceCallback<T extends (...args: any[]) => void>(callback: T, delay?: number): T {\n const callbackRef = useRef<T>();\n callbackRef.current = callback;\n\n // ESLint rule requires an inline function which we cannot provide here\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useCallback(\n debounce(\n ((...args) => {\n if (callbackRef.current) {\n callbackRef.current(...args);\n }\n }) as T,\n delay\n ),\n []\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-dynamic-overlap/index.ts"],"names":[],"mappings":";AASA,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,sBAAsB,0CA8B/D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-dynamic-overlap/index.ts"],"names":[],"mappings":";AASA,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,sBAAsB,0CA8B/D"}
@@ -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;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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/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 +1 @@
1
- {"version":3,"file":"use-effect-on-update.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-effect-on-update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAG1E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,QAY/E"}
1
+ {"version":3,"file":"use-effect-on-update.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-effect-on-update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAG1E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,QAY/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-effect-on-update.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-effect-on-update.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAkC,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1E,4CAA4C;AAC5C,MAAM,UAAU,iBAAiB,CAAC,QAAwB,EAAE,IAAoB;IAC9E,MAAM,aAAa,GAAG,MAAM,CAAU,IAAI,CAAC,CAAC;IAE5C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,aAAa,CAAC,OAAO,EAAE;YACzB,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;SAC/B;aAAM;YACL,OAAO,QAAQ,EAAE,CAAC;SACnB;QACD,oEAAoE;QACpE,uDAAuD;IACzD,CAAC,EAAE,IAAI,CAAC,CAAC;AACX,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { DependencyList, EffectCallback, useEffect, useRef } from 'react';\n\n// useEffect, which skips the initial render\nexport function useEffectOnUpdate(callback: EffectCallback, deps: DependencyList) {\n const isFirstRender = useRef<boolean>(true);\n\n useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n } else {\n return callback();\n }\n // This is a useEffect extension, will be validated at the call site\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n"]}
1
+ {"version":3,"file":"use-effect-on-update.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-effect-on-update.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAkC,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1E,4CAA4C;AAC5C,MAAM,UAAU,iBAAiB,CAAC,QAAwB,EAAE,IAAoB;IAC9E,MAAM,aAAa,GAAG,MAAM,CAAU,IAAI,CAAC,CAAC;IAE5C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,aAAa,CAAC,OAAO,EAAE;YACzB,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;SAC/B;aAAM;YACL,OAAO,QAAQ,EAAE,CAAC;SACnB;QACD,oEAAoE;QACpE,uDAAuD;IACzD,CAAC,EAAE,IAAI,CAAC,CAAC;AACX,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { DependencyList, EffectCallback, useEffect, useRef } from 'react';\n\n// useEffect, which skips the initial render\nexport function useEffectOnUpdate(callback: EffectCallback, deps: DependencyList) {\n const isFirstRender = useRef<boolean>(true);\n\n useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n } else {\n return callback();\n }\n // This is a useEffect extension, will be validated at the call site\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-focus-tracker.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAA0B,MAAM,WAAW,CAAC;AAG9E,UAAU,eAAe;IACvB,CAAC,UAAU,EAAE;QACX,MAAM,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACzC,OAAO,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;KAC/C,GAAG,IAAI,CAAC;CACV;AAED,eAAO,MAAM,eAAe,EAAE,eAoB7B,CAAC"}
1
+ {"version":3,"file":"use-focus-tracker.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAA0B,MAAM,WAAW,CAAC;AAG9E,UAAU,eAAe;IACvB,CAAC,UAAU,EAAE;QACX,MAAM,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACzC,OAAO,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;KAC/C,GAAG,IAAI,CAAC;CACV;AAED,eAAO,MAAM,eAAe,EAAE,eAoB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-focus-tracker.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAC;AAC5D,OAAO,EAA6B,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAU5C,MAAM,CAAC,MAAM,eAAe,GAAoB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,OAAO;SACR;QACD,YAAY,CAAC,OAAO,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE;YACvD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,MAAM,CAAC,CAAC;YACjC,CAAC;YACD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;SACF,CAAC,CAAC;QACH,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,GAAG,EAAE;;YACV,MAAA,YAAY,CAAC,OAAO,0CAAE,OAAO,EAAE,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useRef, useEffect, MutableRefObject } from 'react';\nimport { NonCancelableEventHandler, fireNonCancelableEvent } from '../events';\nimport FocusTracker from '../focus-tracker';\n\ninterface UseFocusTracker {\n (inputProps: {\n onBlur?: NonCancelableEventHandler<any>;\n onFocus?: NonCancelableEventHandler<any>;\n rootRef: MutableRefObject<HTMLElement | null>;\n }): void;\n}\n\nexport const useFocusTracker: UseFocusTracker = ({ rootRef, onBlur, onFocus }) => {\n const focusTracker = useRef<FocusTracker | null>(null);\n\n useEffect(() => {\n if (!rootRef.current) {\n return;\n }\n focusTracker.current = new FocusTracker(rootRef.current, {\n onFocusLeave: () => {\n fireNonCancelableEvent(onBlur);\n },\n onFocusEnter: () => {\n fireNonCancelableEvent(onFocus);\n },\n });\n focusTracker.current.initialize();\n return () => {\n focusTracker.current?.destroy();\n };\n }, [rootRef, onBlur, onFocus]);\n};\n"]}
1
+ {"version":3,"file":"use-focus-tracker.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAC;AAC5D,OAAO,EAA6B,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAU5C,MAAM,CAAC,MAAM,eAAe,GAAoB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,OAAO;SACR;QACD,YAAY,CAAC,OAAO,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE;YACvD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,MAAM,CAAC,CAAC;YACjC,CAAC;YACD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;SACF,CAAC,CAAC;QACH,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,GAAG,EAAE;;YACV,MAAA,YAAY,CAAC,OAAO,0CAAE,OAAO,EAAE,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useRef, useEffect, MutableRefObject } from 'react';\nimport { NonCancelableEventHandler, fireNonCancelableEvent } from '../events';\nimport FocusTracker from '../focus-tracker';\n\ninterface UseFocusTracker {\n (inputProps: {\n onBlur?: NonCancelableEventHandler<any>;\n onFocus?: NonCancelableEventHandler<any>;\n rootRef: MutableRefObject<HTMLElement | null>;\n }): void;\n}\n\nexport const useFocusTracker: UseFocusTracker = ({ rootRef, onBlur, onFocus }) => {\n const focusTracker = useRef<FocusTracker | null>(null);\n\n useEffect(() => {\n if (!rootRef.current) {\n return;\n }\n focusTracker.current = new FocusTracker(rootRef.current, {\n onFocusLeave: () => {\n fireNonCancelableEvent(onBlur);\n },\n onFocusEnter: () => {\n fireNonCancelableEvent(onFocus);\n },\n });\n focusTracker.current.initialize();\n return () => {\n focusTracker.current?.destroy();\n };\n }, [rootRef, onBlur, onFocus]);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-has-rendered/index.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,cAAc,YAS7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-has-rendered/index.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,cAAc,YAS7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-has-rendered/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAChF,OAAO,GAAG,EAAE,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,0BAA0B,CAAC,QAAoB;IACtD,IAAI,MAAM,GAAG,qBAAqB,CAAC,GAAG,EAAE;QACtC,MAAM,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect, useState } from 'react';\n\n/**\n * Indicates whether the component has rendered at least one frame.\n */\nexport function useHasRendered() {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n const cancelAnimationFrame = requestAnimationFrameTwice(() => setMounted(true));\n return () => cancelAnimationFrame();\n }, []);\n\n return mounted;\n}\n\nfunction requestAnimationFrameTwice(callback: () => void) {\n let handle = requestAnimationFrame(() => {\n handle = requestAnimationFrame(callback);\n });\n return () => cancelAnimationFrame(handle);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-has-rendered/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAChF,OAAO,GAAG,EAAE,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,0BAA0B,CAAC,QAAoB;IACtD,IAAI,MAAM,GAAG,qBAAqB,CAAC,GAAG,EAAE;QACtC,MAAM,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect, useState } from 'react';\n\n/**\n * Indicates whether the component has rendered at least one frame.\n */\nexport function useHasRendered() {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n const cancelAnimationFrame = requestAnimationFrameTwice(() => setMounted(true));\n return () => cancelAnimationFrame();\n }, []);\n\n return mounted;\n}\n\nfunction requestAnimationFrameTwice(callback: () => void) {\n let handle = requestAnimationFrame(() => {\n handle = requestAnimationFrame(callback);\n });\n return () => cancelAnimationFrame(handle);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-intersection-observer/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,WAAW;;;EAuB5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-intersection-observer/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,WAAW;;;EAuB5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-intersection-observer/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAe,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnE;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,WAAW,GAAG,MAAM,CAA8B,IAAI,CAAC,CAAC;IAC9D,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,MAAM,GAAG,GAAG,WAAW,CAAiB,aAAa,CAAC,EAAE;QACtD,IAAI,OAAO,oBAAoB,KAAK,WAAW,EAAE;YAC/C,wCAAwC;YACxC,OAAO;SACR;QAED,IAAI,WAAW,CAAC,OAAO,EAAE;YACvB,uDAAuD;YACvD,WAAW,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;SAClC;QAED,gDAAgD;QAChD,IAAI,aAAa,EAAE;YACjB,WAAW,CAAC,OAAO,GAAG,IAAI,oBAAoB,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;YACrG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC5C;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;AACjC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { RefCallback, useCallback, useRef, useState } from 'react';\n\n/**\n * A hook that uses an Intersection Observer on the target element ref\n * and detects if the element is intersecting with its parent.\n */\nexport function useIntersectionObserver<T extends HTMLElement>() {\n const observerRef = useRef<IntersectionObserver | null>(null);\n const [isIntersecting, setIsIntersecting] = useState(false);\n\n const ref = useCallback<RefCallback<T>>(targetElement => {\n if (typeof IntersectionObserver === 'undefined') {\n // Do nothing in environments like JSDOM\n return;\n }\n\n if (observerRef.current) {\n // Dismiss previous observer because the target changed\n observerRef.current.disconnect();\n }\n\n // Create a new observer with the target element\n if (targetElement) {\n observerRef.current = new IntersectionObserver(([entry]) => setIsIntersecting(entry.isIntersecting));\n observerRef.current.observe(targetElement);\n }\n }, []);\n\n return { ref, isIntersecting };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-intersection-observer/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAe,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnE;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,WAAW,GAAG,MAAM,CAA8B,IAAI,CAAC,CAAC;IAC9D,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,MAAM,GAAG,GAAG,WAAW,CAAiB,aAAa,CAAC,EAAE;QACtD,IAAI,OAAO,oBAAoB,KAAK,WAAW,EAAE;YAC/C,wCAAwC;YACxC,OAAO;SACR;QAED,IAAI,WAAW,CAAC,OAAO,EAAE;YACvB,uDAAuD;YACvD,WAAW,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;SAClC;QAED,gDAAgD;QAChD,IAAI,aAAa,EAAE;YACjB,WAAW,CAAC,OAAO,GAAG,IAAI,oBAAoB,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;YACrG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;SAC5C;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;AACjC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { RefCallback, useCallback, useRef, useState } from 'react';\n\n/**\n * A hook that uses an Intersection Observer on the target element ref\n * and detects if the element is intersecting with its parent.\n */\nexport function useIntersectionObserver<T extends HTMLElement>() {\n const observerRef = useRef<IntersectionObserver | null>(null);\n const [isIntersecting, setIsIntersecting] = useState(false);\n\n const ref = useCallback<RefCallback<T>>(targetElement => {\n if (typeof IntersectionObserver === 'undefined') {\n // Do nothing in environments like JSDOM\n return;\n }\n\n if (observerRef.current) {\n // Dismiss previous observer because the target changed\n observerRef.current.disconnect();\n }\n\n // Create a new observer with the target element\n if (targetElement) {\n observerRef.current = new IntersectionObserver(([entry]) => setIsIntersecting(entry.isIntersecting));\n observerRef.current.observe(targetElement);\n }\n }, []);\n\n return { ref, isIntersecting };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-merge-refs/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,GAAG,GAAG,EAClC,GAAG,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,GAClF,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAiB7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-merge-refs/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,GAAG,GAAG,EAClC,GAAG,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,GAClF,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAiB7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-merge-refs/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,GAAG,IAAgF;IAEnF,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,CAAC,EAAE;YACxD,OAAO,IAAI,CAAC;SACb;QACD,OAAO,CAAC,KAAe,EAAE,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACjB,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;oBAC7B,GAAG,CAAC,KAAK,CAAC,CAAC;iBACZ;qBAAM,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE;oBAC3C,GAAmC,CAAC,OAAO,GAAG,KAAK,CAAC;iBACtD;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QACF,gEAAgE;QAChE,uDAAuD;IACzD,CAAC,EAAE,IAAI,CAAC,CAAC;AACX,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useMemo } from 'react';\n\n/**\n * useMergeRefs merges multiple refs into single ref callback.\n *\n * For example\n * const mergedRef = useMergeRefs(ref1, ref2, ref3)\n * <div ref={refs}>...</div>\n */\nexport function useMergeRefs<T = any>(\n ...refs: Array<React.RefCallback<T> | React.MutableRefObject<T> | null | undefined>\n): React.RefCallback<T> | null {\n return useMemo(() => {\n if (refs.every(ref => ref === null || ref === undefined)) {\n return null;\n }\n return (value: T | null) => {\n refs.forEach(ref => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref !== null && ref !== undefined) {\n (ref as React.MutableRefObject<any>).current = value;\n }\n });\n };\n // ESLint expects an array literal which we can not provide here\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-merge-refs/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,GAAG,IAAgF;IAEnF,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,CAAC,EAAE;YACxD,OAAO,IAAI,CAAC;SACb;QACD,OAAO,CAAC,KAAe,EAAE,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACjB,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;oBAC7B,GAAG,CAAC,KAAK,CAAC,CAAC;iBACZ;qBAAM,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE;oBAC3C,GAAmC,CAAC,OAAO,GAAG,KAAK,CAAC;iBACtD;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QACF,gEAAgE;QAChE,uDAAuD;IACzD,CAAC,EAAE,IAAI,CAAC,CAAC;AACX,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useMemo } from 'react';\n\n/**\n * useMergeRefs merges multiple refs into single ref callback.\n *\n * For example\n * const mergedRef = useMergeRefs(ref1, ref2, ref3)\n * <div ref={refs}>...</div>\n */\nexport function useMergeRefs<T = any>(\n ...refs: Array<React.RefCallback<T> | React.MutableRefObject<T> | null | undefined>\n): React.RefCallback<T> | null {\n return useMemo(() => {\n if (refs.every(ref => ref === null || ref === undefined)) {\n return null;\n }\n return (value: T | null) => {\n refs.forEach(ref => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref !== null && ref !== undefined) {\n (ref as React.MutableRefObject<any>).current = value;\n }\n });\n };\n // ESLint expects an array literal which we can not provide here\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-mobile/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS,eASpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-mobile/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS,eASpB,CAAC"}
@@ -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,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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/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 +1 @@
1
- {"version":3,"file":"use-mouse-down-target.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-mouse-down-target.ts"],"names":[],"mappings":"AAqBA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,sBAMzC"}
1
+ {"version":3,"file":"use-mouse-down-target.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-mouse-down-target.ts"],"names":[],"mappings":"AAqBA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,sBAMzC"}
@@ -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,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
+ {"version":3,"file":"use-mouse-down-target.js","sourceRoot":"","sources":["../../../../src/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;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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/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 +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,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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/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 +1 @@
1
- {"version":3,"file":"use-performance-marks.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-performance-marks.ts"],"names":[],"mappings":";AAOA,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EACxC,UAAU,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,EACvE,YAAY,EAAE,KAAK,CAAC,cAAc,QAsDnC"}
1
+ {"version":3,"file":"use-performance-marks.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-performance-marks.ts"],"names":[],"mappings":";AAOA,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EACxC,UAAU,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,EACvE,YAAY,EAAE,KAAK,CAAC,cAAc,QAsDnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-performance-marks.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-performance-marks.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,UAAU,mBAAmB,CACjC,IAAY,EACZ,OAAgB,EAChB,UAAwC,EACxC,UAAuE,EACvE,YAAkC;IAElC,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACnC,OAAO;SACR;QAED,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,gBAAgB,GAAG,GAAG,IAAI,UAAU,CAAC;QAE3C,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACjC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,EAAE,IACX,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,iBAAiB,CAAC,GAAG,EAAE;QACrB,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACnC,OAAO;SACR;QACD,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,eAAe,GAAG,GAAG,IAAI,SAAS,CAAC;QAEzC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE;YAChC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,EAAE,IACX,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useEffect } from 'react';\nimport { useUniqueId } from './use-unique-id';\nimport { useEffectOnUpdate } from './use-effect-on-update';\n\nexport function usePerformanceMarks(\n name: string,\n enabled: boolean,\n elementRef: React.RefObject<HTMLElement>,\n getDetails: () => Record<string, string | boolean | number | undefined>,\n dependencies: React.DependencyList\n) {\n const id = useUniqueId();\n\n useEffect(() => {\n if (!enabled || !elementRef.current) {\n return;\n }\n\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n\n const renderedMarkName = `${name}Rendered`;\n\n performance.mark(renderedMarkName, {\n detail: {\n source: 'awsui',\n instanceId: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffectOnUpdate(() => {\n if (!enabled || !elementRef.current) {\n return;\n }\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n\n const updatedMarkName = `${name}Updated`;\n\n performance.mark(updatedMarkName, {\n detail: {\n source: 'awsui',\n instanceId: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, dependencies);\n}\n"]}
1
+ {"version":3,"file":"use-performance-marks.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-performance-marks.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,UAAU,mBAAmB,CACjC,IAAY,EACZ,OAAgB,EAChB,UAAwC,EACxC,UAAuE,EACvE,YAAkC;IAElC,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACnC,OAAO;SACR;QAED,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,gBAAgB,GAAG,GAAG,IAAI,UAAU,CAAC;QAE3C,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACjC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,EAAE,IACX,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,iBAAiB,CAAC,GAAG,EAAE;QACrB,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACnC,OAAO;SACR;QACD,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,eAAe,GAAG,GAAG,IAAI,SAAS,CAAC;QAEzC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE;YAChC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,EAAE,IACX,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useEffect } from 'react';\nimport { useUniqueId } from './use-unique-id';\nimport { useEffectOnUpdate } from './use-effect-on-update';\n\nexport function usePerformanceMarks(\n name: string,\n enabled: boolean,\n elementRef: React.RefObject<HTMLElement>,\n getDetails: () => Record<string, string | boolean | number | undefined>,\n dependencies: React.DependencyList\n) {\n const id = useUniqueId();\n\n useEffect(() => {\n if (!enabled || !elementRef.current) {\n return;\n }\n\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n\n const renderedMarkName = `${name}Rendered`;\n\n performance.mark(renderedMarkName, {\n detail: {\n source: 'awsui',\n instanceId: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffectOnUpdate(() => {\n if (!enabled || !elementRef.current) {\n return;\n }\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n\n const updatedMarkName = `${name}Updated`;\n\n performance.mark(updatedMarkName, {\n detail: {\n source: 'awsui',\n instanceId: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, dependencies);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-portal-mode-classes/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,UAWrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-portal-mode-classes/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,UAWrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-portal-mode-classes/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,UAAU,oBAAoB,CAAC,GAAiC;IACpE,MAAM,SAAS,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,OAAO,IAAI,CAAC;QACV,yCAAyC,EAAE,SAAS,KAAK,MAAM;QAC/D,+CAA+C,EAAE,WAAW,KAAK,SAAS;QAC1E,sBAAsB,EAAE,aAAa;QACrC,CAAC,iBAAiB,OAAO,EAAE,CAAC,EAAE,OAAO;KACtC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useVisualContext } from '../../components/visual-context';\nimport { useCurrentMode, useDensityMode } from '@cloudscape-design/component-toolkit/internal';\nimport { useVisualRefresh } from '../use-visual-mode';\n\nexport function usePortalModeClasses(ref: React.RefObject<HTMLElement>) {\n const colorMode = useCurrentMode(ref);\n const densityMode = useDensityMode(ref);\n const context = useVisualContext(ref);\n const visualRefresh = useVisualRefresh();\n return clsx({\n 'awsui-polaris-dark-mode awsui-dark-mode': colorMode === 'dark',\n 'awsui-polaris-compact-mode awsui-compact-mode': densityMode === 'compact',\n 'awsui-visual-refresh': visualRefresh,\n [`awsui-context-${context}`]: context,\n });\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-portal-mode-classes/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,UAAU,oBAAoB,CAAC,GAAiC;IACpE,MAAM,SAAS,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,OAAO,IAAI,CAAC;QACV,yCAAyC,EAAE,SAAS,KAAK,MAAM;QAC/D,+CAA+C,EAAE,WAAW,KAAK,SAAS;QAC1E,sBAAsB,EAAE,aAAa;QACrC,CAAC,iBAAiB,OAAO,EAAE,CAAC,EAAE,OAAO;KACtC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useVisualContext } from '../../components/visual-context';\nimport { useCurrentMode, useDensityMode } from '@cloudscape-design/component-toolkit/internal';\nimport { useVisualRefresh } from '../use-visual-mode';\n\nexport function usePortalModeClasses(ref: React.RefObject<HTMLElement>) {\n const colorMode = useCurrentMode(ref);\n const densityMode = useDensityMode(ref);\n const context = useVisualContext(ref);\n const visualRefresh = useVisualRefresh();\n return clsx({\n 'awsui-polaris-dark-mode awsui-dark-mode': colorMode === 'dark',\n 'awsui-polaris-compact-mode awsui-compact-mode': densityMode === 'compact',\n 'awsui-visual-refresh': visualRefresh,\n [`awsui-context-${context}`]: context,\n });\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-previous/index.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,WAAW,gCAMvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-previous/index.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,WAAW,gCAMvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-previous/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAI,KAAQ,EAAE,EAAE;IACzC,MAAM,GAAG,GAAG,MAAM,EAAK,CAAC;IACxB,SAAS,CAAC,GAAG,EAAE;QACb,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useRef, useEffect } from 'react';\n\n/**\n * This hook gives the value of any variable from the previous render invocation\n */\nexport const usePrevious = <T>(value: T) => {\n const ref = useRef<T>();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-previous/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAI,KAAQ,EAAE,EAAE;IACzC,MAAM,GAAG,GAAG,MAAM,EAAK,CAAC;IACxB,SAAS,CAAC,GAAG,EAAE;QACb,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useRef, useEffect } from 'react';\n\n/**\n * This hook gives the value of any variable from the previous render invocation\n */\nexport const usePrevious = <T>(value: T) => {\n const ref = useRef<T>();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-scroll-sync/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAGjD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,UAA4B,YAEpE,aAAa,uBAqBvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-scroll-sync/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAGjD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,UAA4B,YAEpE,aAAa,uBAqBvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-scroll-sync/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAa,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,IAA2B,EAAE,QAAQ,GAAG,CAAC,sBAAsB,EAAE;IAC7F,MAAM,aAAa,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;QACxC,MAAM,aAAa,GAAG,KAAK,CAAC,aAA4B,CAAC;QACzD,0FAA0F;QAC1F,IAAI,aAAa,IAAI,CAAC,aAAa,CAAC,OAAO,KAAK,IAAI,IAAI,aAAa,CAAC,OAAO,KAAK,aAAa,CAAC,EAAE;YAChG,qBAAqB,CAAC,GAAG,EAAE;gBACzB,aAAa,CAAC,OAAO,GAAG,aAAa,CAAC;gBACtC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACjB,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;oBAC5B,IAAI,OAAO,IAAI,OAAO,KAAK,aAAa,EAAE;wBACxC,OAAO,CAAC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;qBAC/C;gBACH,CAAC,CAAC,CAAC;gBACH,oDAAoD;gBACpD,qBAAqB,CAAC,GAAG,EAAE;oBACzB,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;gBAC/B,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC;IAEF,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { RefObject, useRef } from 'react';\nimport { supportsStickyPosition } from '../../utils/dom';\n\n/**\n * useScrollSync returns scroll event handler to be attached to synchronized scroll elements.\n *\n * For example\n * const handleScroll = useScrollSync([ref1, ref2]);\n * <div ref={ref1} onScroll={handleScroll}/>\n * <div ref={ref2} onScroll={handleScroll}/>\n */\nexport function useScrollSync(refs: Array<RefObject<any>>, disabled = !supportsStickyPosition()) {\n const activeElement = useRef<HTMLElement | null>(null);\n const onScroll = (event: React.UIEvent) => {\n const targetElement = event.currentTarget as HTMLElement;\n // remembers the first element that fires onscroll to align with other elements against it\n if (targetElement && (activeElement.current === null || activeElement.current === targetElement)) {\n requestAnimationFrame(() => {\n activeElement.current = targetElement;\n refs.forEach(ref => {\n const element = ref.current;\n if (element && element !== targetElement) {\n element.scrollLeft = targetElement.scrollLeft;\n }\n });\n // unblock the ability to scroll the synced elements\n requestAnimationFrame(() => {\n activeElement.current = null;\n });\n });\n }\n };\n\n return !disabled ? onScroll : undefined;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-scroll-sync/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAa,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,IAA2B,EAAE,QAAQ,GAAG,CAAC,sBAAsB,EAAE;IAC7F,MAAM,aAAa,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;QACxC,MAAM,aAAa,GAAG,KAAK,CAAC,aAA4B,CAAC;QACzD,0FAA0F;QAC1F,IAAI,aAAa,IAAI,CAAC,aAAa,CAAC,OAAO,KAAK,IAAI,IAAI,aAAa,CAAC,OAAO,KAAK,aAAa,CAAC,EAAE;YAChG,qBAAqB,CAAC,GAAG,EAAE;gBACzB,aAAa,CAAC,OAAO,GAAG,aAAa,CAAC;gBACtC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACjB,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;oBAC5B,IAAI,OAAO,IAAI,OAAO,KAAK,aAAa,EAAE;wBACxC,OAAO,CAAC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;qBAC/C;gBACH,CAAC,CAAC,CAAC;gBACH,oDAAoD;gBACpD,qBAAqB,CAAC,GAAG,EAAE;oBACzB,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;gBAC/B,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC;IAEF,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { RefObject, useRef } from 'react';\nimport { supportsStickyPosition } from '../../utils/dom';\n\n/**\n * useScrollSync returns scroll event handler to be attached to synchronized scroll elements.\n *\n * For example\n * const handleScroll = useScrollSync([ref1, ref2]);\n * <div ref={ref1} onScroll={handleScroll}/>\n * <div ref={ref2} onScroll={handleScroll}/>\n */\nexport function useScrollSync(refs: Array<RefObject<any>>, disabled = !supportsStickyPosition()) {\n const activeElement = useRef<HTMLElement | null>(null);\n const onScroll = (event: React.UIEvent) => {\n const targetElement = event.currentTarget as HTMLElement;\n // remembers the first element that fires onscroll to align with other elements against it\n if (targetElement && (activeElement.current === null || activeElement.current === targetElement)) {\n requestAnimationFrame(() => {\n activeElement.current = targetElement;\n refs.forEach(ref => {\n const element = ref.current;\n if (element && element !== targetElement) {\n element.scrollLeft = targetElement.scrollLeft;\n }\n });\n // unblock the ability to scroll the synced elements\n requestAnimationFrame(() => {\n activeElement.current = null;\n });\n });\n }\n };\n\n return !disabled ? onScroll : undefined;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-telemetry/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAuB,MAAM,+CAA+C,CAAC;AAI5G,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sBAAsB,QAGlF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-telemetry/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAuB,MAAM,+CAA+C,CAAC;AAI5G,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sBAAsB,QAGlF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-telemetry/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAA0B,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAC5G,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,UAAU,YAAY,CAAC,aAAqB,EAAE,MAA+B;IACjF,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAChD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;AACxH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ComponentConfiguration, useComponentMetrics } from '@cloudscape-design/component-toolkit/internal';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION, THEME } from '../../environment';\nimport { useVisualRefresh } from '../use-visual-mode';\n\nexport function useTelemetry(componentName: string, config?: ComponentConfiguration) {\n const theme = useVisualRefresh() ? 'vr' : THEME;\n useComponentMetrics(componentName, { packageSource: PACKAGE_SOURCE, packageVersion: PACKAGE_VERSION, theme }, config);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-telemetry/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAA0B,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAC5G,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,UAAU,YAAY,CAAC,aAAqB,EAAE,MAA+B;IACjF,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAChD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;AACxH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ComponentConfiguration, useComponentMetrics } from '@cloudscape-design/component-toolkit/internal';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION, THEME } from '../../environment';\nimport { useVisualRefresh } from '../use-visual-mode';\n\nexport function useTelemetry(componentName: string, config?: ComponentConfiguration) {\n const theme = useVisualRefresh() ? 'vr' : THEME;\n useComponentMetrics(componentName, { packageSource: PACKAGE_SOURCE, packageVersion: PACKAGE_VERSION, theme }, config);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-unique-id/index.ts"],"names":[],"mappings":"AAeA,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,UAE1C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-unique-id/index.ts"],"names":[],"mappings":"AAeA,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,UAE1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-unique-id/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEtC,IAAI,OAAO,GAAG,CAAC,CAAC;AAChB,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,KAAK,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;QAClB,KAAK,CAAC,OAAO,GAAG,GAAG,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;KACnF;IACD,OAAO,KAAK,CAAC,OAAO,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,KAAK,GAAyB,MAAC,KAAa,CAAC,KAAK,mCAAI,aAAa,CAAC;AAE1E,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC;AAC7C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\n\nlet counter = 0;\nconst useIdFallback = () => {\n const idRef = useRef<string | null>(null);\n if (!idRef.current) {\n idRef.current = `${counter++}-${Date.now()}-${Math.round(Math.random() * 10000)}`;\n }\n return idRef.current;\n};\n\nconst useId: typeof useIdFallback = (React as any).useId ?? useIdFallback;\n\nexport function useUniqueId(prefix?: string) {\n return `${prefix ? prefix : ''}` + useId();\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-unique-id/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEtC,IAAI,OAAO,GAAG,CAAC,CAAC;AAChB,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,KAAK,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;QAClB,KAAK,CAAC,OAAO,GAAG,GAAG,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;KACnF;IACD,OAAO,KAAK,CAAC,OAAO,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,KAAK,GAAyB,MAAC,KAAa,CAAC,KAAK,mCAAI,aAAa,CAAC;AAE1E,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC;AAC7C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\n\nlet counter = 0;\nconst useIdFallback = () => {\n const idRef = useRef<string | null>(null);\n if (!idRef.current) {\n idRef.current = `${counter++}-${Date.now()}-${Math.round(Math.random() * 10000)}`;\n }\n return idRef.current;\n};\n\nconst useId: typeof useIdFallback = (React as any).useId ?? useIdFallback;\n\nexport function useUniqueId(prefix?: string) {\n return `${prefix ? prefix : ''}` + useId();\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAmC,WAAW,EAAE,MAAM,eAAe,CAAC;AAI7E,UAAU,eAAe,CAAC,IAAI;IAC5B,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,MAAM,CAAC;CAC5B;AAED,UAAU,cAAc;IACtB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,IAAI,SAAS,MAAM,EAAE,EAC9C,KAAK,EACL,SAAS,EACT,YAAY,GACb,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,cAAc,CAgCxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAmC,WAAW,EAAE,MAAM,eAAe,CAAC;AAI7E,UAAU,eAAe,CAAC,IAAI;IAC5B,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,MAAM,CAAC;CAC5B;AAED,UAAU,cAAc;IACtB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,IAAI,SAAS,MAAM,EAAE,EAC9C,KAAK,EACL,SAAS,EACT,YAAY,GACb,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,cAAc,CAgCxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAe,MAAM,eAAe,CAAC;AAE7E,MAAM,eAAe,GAAG,GAAG,CAAC;AAc5B;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,UAAU,CAAsB,EAC9C,KAAK,EACL,SAAS,EACT,YAAY,GACU;IACtB,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;IAEvG,oEAAoE;IACpE,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,OAAO,EAAgB,CAAC,CAAC;IAE1D,yEAAyE;IACzE,MAAM,UAAU,GAAG,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtF,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,CAAC,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IACxC,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;IAEtC,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CACH,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,iCAC1C,WAAW,KACd,UAAU,EAAE,CAAC,IAAwB,EAAE,EAAE;;YACvC,MAAM,YAAY,GAAG,MAAA,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,mCAAI,CAAC,CAAC;YAC9E,IAAI,YAAY,GAAG,eAAe,EAAE;gBAClC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC7B,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC;aACvE;QACH,CAAC,IACD,CAAC,EACL,CAAC,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,CACrC,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,SAAS,EAAE,cAAc,CAAC,SAAS;QACnC,aAAa,EAAE,cAAc,CAAC,aAAa;KAC5C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { useVirtual as useVirtualDefault, VirtualItem } from 'react-virtual';\n\nconst MAX_ITEM_MOUNTS = 100;\n\ninterface UseVirtualProps<Item> {\n items: readonly Item[];\n parentRef: React.RefObject<HTMLElement>;\n estimateSize: () => number;\n}\n\ninterface RowVirtualizer {\n virtualItems: VirtualItem[];\n totalSize: number;\n scrollToIndex: (index: number) => void;\n}\n\n/**\n * The useVirtual from react-virtual@2 might produce an infinite update loop caused by setting\n * measured item sizes in the render cycle (as part of the measureRef assignment):\n * The sum of all measured item sizes is returned as totalSize which is then set on the list container.\n * Enforcing new container height might result in an items size change e.g. when the content wraps.\n *\n * The infinite update cycle causes React \"Maximum update depth exceeded\" error and can be additionally confirmed\n * by logging the totalSize which should then bounce between two values.\n *\n * The number of item refs assignments is limited to MAX_ITEM_MOUNTS unless items or indices change.\n * That is based on the assumption the item height stays constant after its first render.\n */\nexport function useVirtual<Item extends object>({\n items,\n parentRef,\n estimateSize,\n}: UseVirtualProps<Item>): RowVirtualizer {\n const rowVirtualizer = useVirtualDefault({ size: items.length, parentRef, estimateSize, overscan: 5 });\n\n // Cache virtual item mounts to limit the amount of mounts per item.\n const measuresCache = useRef(new WeakMap<Item, number>());\n\n // Clear mounts cache every time indices, items, or size estimate change.\n const indicesKey = rowVirtualizer.virtualItems.map(item => `${item.index}`).join(':');\n useEffect(() => {\n measuresCache.current = new WeakMap();\n }, [indicesKey, items, estimateSize]);\n\n const virtualItems = useMemo(\n () =>\n rowVirtualizer.virtualItems.map(virtualItem => ({\n ...virtualItem,\n measureRef: (node: null | HTMLElement) => {\n const mountedCount = measuresCache.current.get(items[virtualItem.index]) ?? 0;\n if (mountedCount < MAX_ITEM_MOUNTS) {\n virtualItem.measureRef(node);\n measuresCache.current.set(items[virtualItem.index], mountedCount + 1);\n }\n },\n })),\n [items, rowVirtualizer.virtualItems]\n );\n\n return {\n virtualItems,\n totalSize: rowVirtualizer.totalSize,\n scrollToIndex: rowVirtualizer.scrollToIndex,\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAe,MAAM,eAAe,CAAC;AAE7E,MAAM,eAAe,GAAG,GAAG,CAAC;AAc5B;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,UAAU,CAAsB,EAC9C,KAAK,EACL,SAAS,EACT,YAAY,GACU;IACtB,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;IAEvG,oEAAoE;IACpE,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,OAAO,EAAgB,CAAC,CAAC;IAE1D,yEAAyE;IACzE,MAAM,UAAU,GAAG,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtF,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,CAAC,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IACxC,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;IAEtC,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CACH,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,iCAC1C,WAAW,KACd,UAAU,EAAE,CAAC,IAAwB,EAAE,EAAE;;YACvC,MAAM,YAAY,GAAG,MAAA,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,mCAAI,CAAC,CAAC;YAC9E,IAAI,YAAY,GAAG,eAAe,EAAE;gBAClC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC7B,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC;aACvE;QACH,CAAC,IACD,CAAC,EACL,CAAC,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,CACrC,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,SAAS,EAAE,cAAc,CAAC,SAAS;QACnC,aAAa,EAAE,cAAc,CAAC,aAAa;KAC5C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { useVirtual as useVirtualDefault, VirtualItem } from 'react-virtual';\n\nconst MAX_ITEM_MOUNTS = 100;\n\ninterface UseVirtualProps<Item> {\n items: readonly Item[];\n parentRef: React.RefObject<HTMLElement>;\n estimateSize: () => number;\n}\n\ninterface RowVirtualizer {\n virtualItems: VirtualItem[];\n totalSize: number;\n scrollToIndex: (index: number) => void;\n}\n\n/**\n * The useVirtual from react-virtual@2 might produce an infinite update loop caused by setting\n * measured item sizes in the render cycle (as part of the measureRef assignment):\n * The sum of all measured item sizes is returned as totalSize which is then set on the list container.\n * Enforcing new container height might result in an items size change e.g. when the content wraps.\n *\n * The infinite update cycle causes React \"Maximum update depth exceeded\" error and can be additionally confirmed\n * by logging the totalSize which should then bounce between two values.\n *\n * The number of item refs assignments is limited to MAX_ITEM_MOUNTS unless items or indices change.\n * That is based on the assumption the item height stays constant after its first render.\n */\nexport function useVirtual<Item extends object>({\n items,\n parentRef,\n estimateSize,\n}: UseVirtualProps<Item>): RowVirtualizer {\n const rowVirtualizer = useVirtualDefault({ size: items.length, parentRef, estimateSize, overscan: 5 });\n\n // Cache virtual item mounts to limit the amount of mounts per item.\n const measuresCache = useRef(new WeakMap<Item, number>());\n\n // Clear mounts cache every time indices, items, or size estimate change.\n const indicesKey = rowVirtualizer.virtualItems.map(item => `${item.index}`).join(':');\n useEffect(() => {\n measuresCache.current = new WeakMap();\n }, [indicesKey, items, estimateSize]);\n\n const virtualItems = useMemo(\n () =>\n rowVirtualizer.virtualItems.map(virtualItem => ({\n ...virtualItem,\n measureRef: (node: null | HTMLElement) => {\n const mountedCount = measuresCache.current.get(items[virtualItem.index]) ?? 0;\n if (mountedCount < MAX_ITEM_MOUNTS) {\n virtualItem.measureRef(node);\n measuresCache.current.set(items[virtualItem.index], mountedCount + 1);\n }\n },\n })),\n [items, rowVirtualizer.virtualItems]\n );\n\n return {\n virtualItems,\n totalSize: rowVirtualizer.totalSize,\n scrollToIndex: rowVirtualizer.scrollToIndex,\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,eAA+D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,eAA+D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAExF,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ALWAYS_VISUAL_REFRESH } from '../../environment';\nimport { useRuntimeVisualRefresh } from '@cloudscape-design/component-toolkit/internal';\n\nexport const useVisualRefresh = ALWAYS_VISUAL_REFRESH ? () => true : useRuntimeVisualRefresh;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAExF,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ALWAYS_VISUAL_REFRESH } from '../../environment';\nimport { useRuntimeVisualRefresh } from '@cloudscape-design/component-toolkit/internal';\n\nexport const useVisualRefresh = ALWAYS_VISUAL_REFRESH ? () => true : useRuntimeVisualRefresh;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"is-development.d.ts","sourceRoot":"lib/default/","sources":["internal/is-development.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,eAAO,MAAM,aAAa,SAAwC,CAAC"}
1
+ {"version":3,"file":"is-development.d.ts","sourceRoot":"","sources":["../../../src/internal/is-development.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,eAAO,MAAM,aAAa,SAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-development.js","sourceRoot":"lib/default/","sources":["internal/is-development.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AActC;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Allow use of `process.env.NODE_ENV` specifically.\n *\n * Bundlers like Webpack and Parcel find uses of `process.env.NODE_ENV` and\n * statically replace them with the actual value during the build. When creating\n * production bundles, the use is replaced with the string \"production\", and\n * dead code checkers (e.g. terser) will then remove our dev-only code from\n * production bundles, letting us write runtime checks and warnings that don't\n * hurt production bundle size or performance.\n */\ndeclare const process: { env: { NODE_ENV?: string } };\n\n/**\n * Whether the bundle is a development bundle.\n * Only use this in an if condition and on its own! This will help bundlers find\n * and remove the conditional statement for production bundles.\n */\nexport const isDevelopment = process.env.NODE_ENV !== 'production';\n"]}
1
+ {"version":3,"file":"is-development.js","sourceRoot":"","sources":["../../../src/internal/is-development.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AActC;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Allow use of `process.env.NODE_ENV` specifically.\n *\n * Bundlers like Webpack and Parcel find uses of `process.env.NODE_ENV` and\n * statically replace them with the actual value during the build. When creating\n * production bundles, the use is replaced with the string \"production\", and\n * dead code checkers (e.g. terser) will then remove our dev-only code from\n * production bundles, letting us write runtime checks and warnings that don't\n * hurt production bundle size or performance.\n */\ndeclare const process: { env: { NODE_ENV?: string } };\n\n/**\n * Whether the bundle is a development bundle.\n * Only use this in an if condition and on its own! This will help bundlers find\n * and remove the conditional statement for production bundles.\n */\nexport const isDevelopment = process.env.NODE_ENV !== 'production';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"keycode.d.ts","sourceRoot":"lib/default/","sources":["internal/keycode.ts"],"names":[],"mappings":"AAKA,oBAAY,OAAO;IACjB,MAAM,KAAK;IACX,QAAQ,KAAK;IACb,GAAG,KAAK;IACR,IAAI,KAAK;IACT,SAAS,IAAI;IACb,KAAK,KAAK;IACV,IAAI,KAAK;IACT,IAAI,KAAK;IACT,KAAK,KAAK;IACV,EAAE,KAAK;IACP,MAAM,KAAK;IACX,KAAK,KAAK;IACV,GAAG,IAAI;IACP,KAAK,KAAK;IACV,OAAO,KAAK;IACZ,GAAG,KAAK;IACR,IAAI,KAAK;CACV"}
1
+ {"version":3,"file":"keycode.d.ts","sourceRoot":"","sources":["../../../src/internal/keycode.ts"],"names":[],"mappings":"AAKA,oBAAY,OAAO;IACjB,MAAM,KAAK;IACX,QAAQ,KAAK;IACb,GAAG,KAAK;IACR,IAAI,KAAK;IACT,SAAS,IAAI;IACb,KAAK,KAAK;IACV,IAAI,KAAK;IACT,IAAI,KAAK;IACT,KAAK,KAAK;IACV,EAAE,KAAK;IACP,MAAM,KAAK;IACX,KAAK,KAAK;IACV,GAAG,IAAI;IACP,KAAK,KAAK;IACV,OAAO,KAAK;IACZ,GAAG,KAAK;IACR,IAAI,KAAK;CACV"}
@@ -1 +1 @@
1
- {"version":3,"file":"keycode.js","sourceRoot":"lib/default/","sources":["internal/keycode.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,oDAAoD;AACpD,6CAA6C;AAC7C,8BAA8B;AAC9B,MAAM,CAAN,IAAY,OAkBX;AAlBD,WAAY,OAAO;IACjB,0CAAW,CAAA;IACX,8CAAa,CAAA;IACb,oCAAQ,CAAA;IACR,sCAAS,CAAA;IACT,+CAAa,CAAA;IACb,wCAAU,CAAA;IACV,sCAAS,CAAA;IACT,sCAAS,CAAA;IACT,wCAAU,CAAA;IACV,kCAAO,CAAA;IACP,0CAAW,CAAA;IACX,wCAAU,CAAA;IACV,mCAAO,CAAA;IACP,wCAAU,CAAA;IACV,4CAAY,CAAA;IACZ,oCAAQ,CAAA;IACR,sCAAS,CAAA;AACX,CAAC,EAlBW,OAAO,KAAP,OAAO,QAkBlB","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n// When updating the list of key codes, don't forget\n// to modify corresponding list in test-utils\n// to avoid failing unit tests\nexport enum KeyCode {\n pageUp = 33,\n pageDown = 34,\n end = 35,\n home = 36,\n backspace = 8,\n space = 32,\n down = 40,\n left = 37,\n right = 39,\n up = 38,\n escape = 27,\n enter = 13,\n tab = 9,\n shift = 16,\n control = 17,\n alt = 18,\n meta = 91,\n}\n"]}
1
+ {"version":3,"file":"keycode.js","sourceRoot":"","sources":["../../../src/internal/keycode.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,oDAAoD;AACpD,6CAA6C;AAC7C,8BAA8B;AAC9B,MAAM,CAAN,IAAY,OAkBX;AAlBD,WAAY,OAAO;IACjB,0CAAW,CAAA;IACX,8CAAa,CAAA;IACb,oCAAQ,CAAA;IACR,sCAAS,CAAA;IACT,+CAAa,CAAA;IACb,wCAAU,CAAA;IACV,sCAAS,CAAA;IACT,sCAAS,CAAA;IACT,wCAAU,CAAA;IACV,kCAAO,CAAA;IACP,0CAAW,CAAA;IACX,wCAAU,CAAA;IACV,mCAAO,CAAA;IACP,wCAAU,CAAA;IACV,4CAAY,CAAA;IACZ,oCAAQ,CAAA;IACR,sCAAS,CAAA;AACX,CAAC,EAlBW,OAAO,KAAP,OAAO,QAkBlB","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n// When updating the list of key codes, don't forget\n// to modify corresponding list in test-utils\n// to avoid failing unit tests\nexport enum KeyCode {\n pageUp = 33,\n pageDown = 34,\n end = 35,\n home = 36,\n backspace = 8,\n space = 32,\n down = 40,\n left = 37,\n right = 39,\n up = 38,\n escape = 27,\n enter = 13,\n tab = 9,\n shift = 16,\n control = 17,\n alt = 18,\n meta = 91,\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "d702aaa046bd85e197fd1565d20caa127f372006"
2
+ "commit": "b78509b5300294516d90d344afc6f654d61159b9"
3
3
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"lib/default/","sources":["internal/plugins/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAA2B,MAAM,8BAA8B,CAAC;AAI7G,UAAU,QAAQ;IAChB,YAAY,EAAE;QACZ,SAAS,EAAE,gBAAgB,CAAC;QAC5B,KAAK,EAAE,gBAAgB,CAAC;QACxB,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,CAAC;IACF,oBAAoB,EAAE;QACpB,SAAS,EAAE,kBAAkB,CAAC;QAC9B,KAAK,EAAE,kBAAkB,CAAC;QAC1B,QAAQ,EAAE,kBAAkB,CAAC;KAC9B,CAAC;CACH;AAwBD,wBAAgB,OAAO,aAQtB;AAED,eAAO,MAAQ,YAAY;eA3CZ,gBAAgB;WACpB,gBAAgB;cACb,gBAAgB;GAyCD,oBAAoB;eAtClC,kBAAkB;WACtB,kBAAkB;cACf,kBAAkB;CAoC+B,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/internal/plugins/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAA2B,MAAM,8BAA8B,CAAC;AAI7G,UAAU,QAAQ;IAChB,YAAY,EAAE;QACZ,SAAS,EAAE,gBAAgB,CAAC;QAC5B,KAAK,EAAE,gBAAgB,CAAC;QACxB,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,CAAC;IACF,oBAAoB,EAAE;QACpB,SAAS,EAAE,kBAAkB,CAAC;QAC9B,KAAK,EAAE,kBAAkB,CAAC;QAC1B,QAAQ,EAAE,kBAAkB,CAAC;KAC9B,CAAC;CACH;AAwBD,wBAAgB,OAAO,aAQtB;AAED,eAAO,MAAQ,YAAY;eA3CZ,gBAAgB;WACpB,gBAAgB;cACb,gBAAgB;GAyCD,oBAAoB;eAtClC,kBAAkB;WACtB,kBAAkB;cACf,kBAAkB;CAoC+B,CAAC"}