@cloudscape-design/components 3.0.238 → 3.0.239

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 (1244) hide show
  1. package/alert/index.d.ts.map +1 -1
  2. package/alert/index.js.map +1 -1
  3. package/alert/interfaces.d.ts.map +1 -1
  4. package/alert/interfaces.js.map +1 -1
  5. package/alert/internal.d.ts.map +1 -1
  6. package/alert/internal.js.map +1 -1
  7. package/annotation-context/annotation/annotation-icon.d.ts.map +1 -1
  8. package/annotation-context/annotation/annotation-icon.js.map +1 -1
  9. package/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
  10. package/annotation-context/annotation/annotation-popover.js.map +1 -1
  11. package/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  12. package/annotation-context/annotation/annotation-trigger.js.map +1 -1
  13. package/annotation-context/annotation/closed-annotation.d.ts.map +1 -1
  14. package/annotation-context/annotation/closed-annotation.js.map +1 -1
  15. package/annotation-context/annotation/open-annotation.d.ts.map +1 -1
  16. package/annotation-context/annotation/open-annotation.js.map +1 -1
  17. package/annotation-context/context.d.ts.map +1 -1
  18. package/annotation-context/context.js.map +1 -1
  19. package/annotation-context/index.d.ts.map +1 -1
  20. package/annotation-context/index.js.map +1 -1
  21. package/annotation-context/interfaces.d.ts.map +1 -1
  22. package/annotation-context/interfaces.js.map +1 -1
  23. package/annotation-context/utils.d.ts.map +1 -1
  24. package/annotation-context/utils.js.map +1 -1
  25. package/app-layout/content-wrapper/index.d.ts.map +1 -1
  26. package/app-layout/content-wrapper/index.js.map +1 -1
  27. package/app-layout/defaults.d.ts.map +1 -1
  28. package/app-layout/defaults.js.map +1 -1
  29. package/app-layout/drawer/index.d.ts.map +1 -1
  30. package/app-layout/drawer/index.js.map +1 -1
  31. package/app-layout/index.d.ts.map +1 -1
  32. package/app-layout/index.js.map +1 -1
  33. package/app-layout/interfaces.d.ts.map +1 -1
  34. package/app-layout/interfaces.js.map +1 -1
  35. package/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  36. package/app-layout/mobile-toolbar/index.js.map +1 -1
  37. package/app-layout/notifications/index.d.ts.map +1 -1
  38. package/app-layout/notifications/index.js.map +1 -1
  39. package/app-layout/split-panel-drawer/index.d.ts.map +1 -1
  40. package/app-layout/split-panel-drawer/index.js.map +1 -1
  41. package/app-layout/toggles/index.d.ts.map +1 -1
  42. package/app-layout/toggles/index.js.map +1 -1
  43. package/app-layout/toggles/interfaces.d.ts.map +1 -1
  44. package/app-layout/toggles/interfaces.js.map +1 -1
  45. package/app-layout/utils/use-content-height.d.ts.map +1 -1
  46. package/app-layout/utils/use-content-height.js.map +1 -1
  47. package/app-layout/utils/use-content-width.d.ts.map +1 -1
  48. package/app-layout/utils/use-content-width.js.map +1 -1
  49. package/app-layout/utils/use-focus-control.d.ts.map +1 -1
  50. package/app-layout/utils/use-focus-control.js.map +1 -1
  51. package/app-layout/utils/use-observed-element.d.ts.map +1 -1
  52. package/app-layout/utils/use-observed-element.js.map +1 -1
  53. package/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  54. package/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  55. package/app-layout/utils/use-window-width.d.ts.map +1 -1
  56. package/app-layout/utils/use-window-width.js.map +1 -1
  57. package/app-layout/visual-refresh/app-bar.d.ts.map +1 -1
  58. package/app-layout/visual-refresh/app-bar.js.map +1 -1
  59. package/app-layout/visual-refresh/background.d.ts.map +1 -1
  60. package/app-layout/visual-refresh/background.js.map +1 -1
  61. package/app-layout/visual-refresh/context.d.ts.map +1 -1
  62. package/app-layout/visual-refresh/context.js.map +1 -1
  63. package/app-layout/visual-refresh/header.d.ts.map +1 -1
  64. package/app-layout/visual-refresh/header.js.map +1 -1
  65. package/app-layout/visual-refresh/index.d.ts.map +1 -1
  66. package/app-layout/visual-refresh/index.js.map +1 -1
  67. package/app-layout/visual-refresh/layout.d.ts.map +1 -1
  68. package/app-layout/visual-refresh/layout.js.map +1 -1
  69. package/app-layout/visual-refresh/main.d.ts.map +1 -1
  70. package/app-layout/visual-refresh/main.js.map +1 -1
  71. package/app-layout/visual-refresh/navigation.d.ts.map +1 -1
  72. package/app-layout/visual-refresh/navigation.js.map +1 -1
  73. package/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  74. package/app-layout/visual-refresh/notifications.js.map +1 -1
  75. package/app-layout/visual-refresh/split-panel.d.ts.map +1 -1
  76. package/app-layout/visual-refresh/split-panel.js.map +1 -1
  77. package/app-layout/visual-refresh/tools.d.ts.map +1 -1
  78. package/app-layout/visual-refresh/tools.js.map +1 -1
  79. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  80. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  81. package/area-chart/chart-container.d.ts.map +1 -1
  82. package/area-chart/chart-container.js.map +1 -1
  83. package/area-chart/elements/area-chart-filter.d.ts.map +1 -1
  84. package/area-chart/elements/area-chart-filter.js.map +1 -1
  85. package/area-chart/elements/area-chart-legend.d.ts.map +1 -1
  86. package/area-chart/elements/area-chart-legend.js.map +1 -1
  87. package/area-chart/elements/area-series.d.ts.map +1 -1
  88. package/area-chart/elements/area-series.js.map +1 -1
  89. package/area-chart/elements/chart-popover.d.ts.map +1 -1
  90. package/area-chart/elements/chart-popover.js.map +1 -1
  91. package/area-chart/elements/data-series.d.ts.map +1 -1
  92. package/area-chart/elements/data-series.js.map +1 -1
  93. package/area-chart/elements/highlighted-point.d.ts.map +1 -1
  94. package/area-chart/elements/highlighted-point.js.map +1 -1
  95. package/area-chart/elements/threshold-series.d.ts.map +1 -1
  96. package/area-chart/elements/threshold-series.js.map +1 -1
  97. package/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  98. package/area-chart/elements/use-highlight-details.js.map +1 -1
  99. package/area-chart/elements/vertical-marker.d.ts.map +1 -1
  100. package/area-chart/elements/vertical-marker.js.map +1 -1
  101. package/area-chart/index.d.ts.map +1 -1
  102. package/area-chart/index.js.map +1 -1
  103. package/area-chart/interfaces.d.ts.map +1 -1
  104. package/area-chart/interfaces.js.map +1 -1
  105. package/area-chart/internal.d.ts.map +1 -1
  106. package/area-chart/internal.js.map +1 -1
  107. package/area-chart/model/async-store.d.ts.map +1 -1
  108. package/area-chart/model/async-store.js.map +1 -1
  109. package/area-chart/model/compute-chart-props.d.ts.map +1 -1
  110. package/area-chart/model/compute-chart-props.js.map +1 -1
  111. package/area-chart/model/create-series-decorator.d.ts.map +1 -1
  112. package/area-chart/model/create-series-decorator.js.map +1 -1
  113. package/area-chart/model/index.d.ts.map +1 -1
  114. package/area-chart/model/index.js.map +1 -1
  115. package/area-chart/model/interactions-store.d.ts.map +1 -1
  116. package/area-chart/model/interactions-store.js.map +1 -1
  117. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  118. package/area-chart/model/use-chart-model.js.map +1 -1
  119. package/area-chart/model/use-filter-props.d.ts.map +1 -1
  120. package/area-chart/model/use-filter-props.js.map +1 -1
  121. package/area-chart/model/use-highlight-props.d.ts.map +1 -1
  122. package/area-chart/model/use-highlight-props.js.map +1 -1
  123. package/area-chart/model/utils.d.ts.map +1 -1
  124. package/area-chart/model/utils.js.map +1 -1
  125. package/attribute-editor/additional-info.d.ts.map +1 -1
  126. package/attribute-editor/additional-info.js.map +1 -1
  127. package/attribute-editor/index.d.ts.map +1 -1
  128. package/attribute-editor/index.js.map +1 -1
  129. package/attribute-editor/interfaces.d.ts +7 -0
  130. package/attribute-editor/interfaces.d.ts.map +1 -1
  131. package/attribute-editor/interfaces.js.map +1 -1
  132. package/attribute-editor/internal.d.ts.map +1 -1
  133. package/attribute-editor/internal.js +6 -1
  134. package/attribute-editor/internal.js.map +1 -1
  135. package/attribute-editor/row.d.ts.map +1 -1
  136. package/attribute-editor/row.js.map +1 -1
  137. package/autosuggest/autosuggest-option.d.ts.map +1 -1
  138. package/autosuggest/autosuggest-option.js.map +1 -1
  139. package/autosuggest/index.d.ts.map +1 -1
  140. package/autosuggest/index.js.map +1 -1
  141. package/autosuggest/interfaces.d.ts +2 -2
  142. package/autosuggest/interfaces.d.ts.map +1 -1
  143. package/autosuggest/interfaces.js.map +1 -1
  144. package/autosuggest/internal.d.ts.map +1 -1
  145. package/autosuggest/internal.js.map +1 -1
  146. package/autosuggest/load-more-controller.d.ts.map +1 -1
  147. package/autosuggest/load-more-controller.js.map +1 -1
  148. package/autosuggest/options-controller.d.ts.map +1 -1
  149. package/autosuggest/options-controller.js.map +1 -1
  150. package/autosuggest/options-list.d.ts.map +1 -1
  151. package/autosuggest/options-list.js.map +1 -1
  152. package/autosuggest/plain-list.d.ts.map +1 -1
  153. package/autosuggest/plain-list.js.map +1 -1
  154. package/autosuggest/utils/utils.d.ts.map +1 -1
  155. package/autosuggest/utils/utils.js.map +1 -1
  156. package/autosuggest/virtual-list.d.ts.map +1 -1
  157. package/autosuggest/virtual-list.js.map +1 -1
  158. package/badge/index.d.ts.map +1 -1
  159. package/badge/index.js.map +1 -1
  160. package/badge/interfaces.d.ts.map +1 -1
  161. package/badge/interfaces.js.map +1 -1
  162. package/bar-chart/index.d.ts.map +1 -1
  163. package/bar-chart/index.js.map +1 -1
  164. package/bar-chart/interfaces.d.ts.map +1 -1
  165. package/bar-chart/interfaces.js.map +1 -1
  166. package/box/index.d.ts.map +1 -1
  167. package/box/index.js.map +1 -1
  168. package/box/interfaces.d.ts.map +1 -1
  169. package/box/interfaces.js.map +1 -1
  170. package/box/internal.d.ts.map +1 -1
  171. package/box/internal.js.map +1 -1
  172. package/breadcrumb-group/index.d.ts.map +1 -1
  173. package/breadcrumb-group/index.js.map +1 -1
  174. package/breadcrumb-group/interfaces.d.ts.map +1 -1
  175. package/breadcrumb-group/interfaces.js.map +1 -1
  176. package/breadcrumb-group/internal.d.ts.map +1 -1
  177. package/breadcrumb-group/internal.js.map +1 -1
  178. package/breadcrumb-group/item/item.d.ts.map +1 -1
  179. package/breadcrumb-group/item/item.js.map +1 -1
  180. package/button/icon-helper.d.ts.map +1 -1
  181. package/button/icon-helper.js.map +1 -1
  182. package/button/index.d.ts.map +1 -1
  183. package/button/index.js.map +1 -1
  184. package/button/interfaces.d.ts.map +1 -1
  185. package/button/interfaces.js.map +1 -1
  186. package/button/internal.d.ts.map +1 -1
  187. package/button/internal.js.map +1 -1
  188. package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  189. package/button-dropdown/category-elements/category-element.js.map +1 -1
  190. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  191. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  192. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  193. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  194. package/button-dropdown/index.d.ts.map +1 -1
  195. package/button-dropdown/index.js.map +1 -1
  196. package/button-dropdown/interfaces.d.ts.map +1 -1
  197. package/button-dropdown/interfaces.js.map +1 -1
  198. package/button-dropdown/internal.d.ts.map +1 -1
  199. package/button-dropdown/internal.js.map +1 -1
  200. package/button-dropdown/item-element/index.d.ts.map +1 -1
  201. package/button-dropdown/item-element/index.js.map +1 -1
  202. package/button-dropdown/items-list.d.ts.map +1 -1
  203. package/button-dropdown/items-list.js.map +1 -1
  204. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts.map +1 -1
  205. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.js.map +1 -1
  206. package/button-dropdown/tooltip.d.ts.map +1 -1
  207. package/button-dropdown/tooltip.js.map +1 -1
  208. package/button-dropdown/utils/create-items-tree.d.ts.map +1 -1
  209. package/button-dropdown/utils/create-items-tree.js.map +1 -1
  210. package/button-dropdown/utils/menu-item.d.ts.map +1 -1
  211. package/button-dropdown/utils/menu-item.js.map +1 -1
  212. package/button-dropdown/utils/move-highlight.d.ts.map +1 -1
  213. package/button-dropdown/utils/move-highlight.js.map +1 -1
  214. package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  215. package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  216. package/button-dropdown/utils/use-hidden-description.d.ts.map +1 -1
  217. package/button-dropdown/utils/use-hidden-description.js.map +1 -1
  218. package/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
  219. package/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
  220. package/button-dropdown/utils/utils.d.ts.map +1 -1
  221. package/button-dropdown/utils/utils.js.map +1 -1
  222. package/calendar/grid/index.d.ts.map +1 -1
  223. package/calendar/grid/index.js.map +1 -1
  224. package/calendar/header/header-button.d.ts.map +1 -1
  225. package/calendar/header/header-button.js.map +1 -1
  226. package/calendar/header/index.d.ts.map +1 -1
  227. package/calendar/header/index.js.map +1 -1
  228. package/calendar/index.d.ts.map +1 -1
  229. package/calendar/index.js.map +1 -1
  230. package/calendar/interfaces.d.ts.map +1 -1
  231. package/calendar/interfaces.js.map +1 -1
  232. package/calendar/internal.d.ts.map +1 -1
  233. package/calendar/internal.js.map +1 -1
  234. package/calendar/utils/intl.d.ts.map +1 -1
  235. package/calendar/utils/intl.js.map +1 -1
  236. package/calendar/utils/navigation.d.ts.map +1 -1
  237. package/calendar/utils/navigation.js.map +1 -1
  238. package/cards/cards-layout-helper.d.ts.map +1 -1
  239. package/cards/cards-layout-helper.js.map +1 -1
  240. package/cards/index.d.ts.map +1 -1
  241. package/cards/index.js.map +1 -1
  242. package/cards/interfaces.d.ts.map +1 -1
  243. package/cards/interfaces.js.map +1 -1
  244. package/checkbox/base-checkbox.d.ts.map +1 -1
  245. package/checkbox/base-checkbox.js.map +1 -1
  246. package/checkbox/index.d.ts.map +1 -1
  247. package/checkbox/index.js.map +1 -1
  248. package/checkbox/interfaces.d.ts.map +1 -1
  249. package/checkbox/interfaces.js.map +1 -1
  250. package/checkbox/internal.d.ts.map +1 -1
  251. package/checkbox/internal.js.map +1 -1
  252. package/code-editor/ace-modes.d.ts.map +1 -1
  253. package/code-editor/ace-modes.js.map +1 -1
  254. package/code-editor/ace-themes.d.ts.map +1 -1
  255. package/code-editor/ace-themes.js.map +1 -1
  256. package/code-editor/error-screen.d.ts.map +1 -1
  257. package/code-editor/error-screen.js.map +1 -1
  258. package/code-editor/index.d.ts.map +1 -1
  259. package/code-editor/index.js.map +1 -1
  260. package/code-editor/interfaces.d.ts.map +1 -1
  261. package/code-editor/interfaces.js.map +1 -1
  262. package/code-editor/listeners.d.ts.map +1 -1
  263. package/code-editor/listeners.js.map +1 -1
  264. package/code-editor/loading-screen.d.ts.map +1 -1
  265. package/code-editor/loading-screen.js.map +1 -1
  266. package/code-editor/pane.d.ts.map +1 -1
  267. package/code-editor/pane.js.map +1 -1
  268. package/code-editor/preferences-modal.d.ts.map +1 -1
  269. package/code-editor/preferences-modal.js.map +1 -1
  270. package/code-editor/resizable-box/index.d.ts.map +1 -1
  271. package/code-editor/resizable-box/index.js.map +1 -1
  272. package/code-editor/setup-editor.d.ts.map +1 -1
  273. package/code-editor/setup-editor.js.map +1 -1
  274. package/code-editor/status-bar.d.ts.map +1 -1
  275. package/code-editor/status-bar.js.map +1 -1
  276. package/code-editor/tab-button.d.ts.map +1 -1
  277. package/code-editor/tab-button.js.map +1 -1
  278. package/code-editor/util.d.ts.map +1 -1
  279. package/code-editor/util.js.map +1 -1
  280. package/collection-preferences/index.d.ts.map +1 -1
  281. package/collection-preferences/index.js.map +1 -1
  282. package/collection-preferences/interfaces.d.ts.map +1 -1
  283. package/collection-preferences/interfaces.js.map +1 -1
  284. package/collection-preferences/utils.d.ts.map +1 -1
  285. package/collection-preferences/utils.js.map +1 -1
  286. package/collection-preferences/visible-content.d.ts.map +1 -1
  287. package/collection-preferences/visible-content.js.map +1 -1
  288. package/column-layout/index.d.ts.map +1 -1
  289. package/column-layout/index.js.map +1 -1
  290. package/column-layout/interfaces.d.ts.map +1 -1
  291. package/column-layout/interfaces.js.map +1 -1
  292. package/column-layout/internal.d.ts.map +1 -1
  293. package/column-layout/internal.js.map +1 -1
  294. package/column-layout/util.d.ts.map +1 -1
  295. package/column-layout/util.js.map +1 -1
  296. package/container/index.d.ts.map +1 -1
  297. package/container/index.js.map +1 -1
  298. package/container/interfaces.d.ts.map +1 -1
  299. package/container/interfaces.js.map +1 -1
  300. package/container/internal.d.ts.map +1 -1
  301. package/container/internal.js.map +1 -1
  302. package/container/use-sticky-header.d.ts.map +1 -1
  303. package/container/use-sticky-header.js.map +1 -1
  304. package/content-layout/index.d.ts.map +1 -1
  305. package/content-layout/index.js.map +1 -1
  306. package/content-layout/interfaces.d.ts.map +1 -1
  307. package/content-layout/interfaces.js.map +1 -1
  308. package/content-layout/internal.d.ts.map +1 -1
  309. package/content-layout/internal.js.map +1 -1
  310. package/contexts/form-field.d.ts.map +1 -1
  311. package/contexts/form-field.js.map +1 -1
  312. package/date-input/index.d.ts.map +1 -1
  313. package/date-input/index.js.map +1 -1
  314. package/date-input/interfaces.d.ts.map +1 -1
  315. package/date-input/interfaces.js.map +1 -1
  316. package/date-input/internal.d.ts.map +1 -1
  317. package/date-input/internal.js.map +1 -1
  318. package/date-picker/index.d.ts.map +1 -1
  319. package/date-picker/index.js.map +1 -1
  320. package/date-picker/interfaces.d.ts.map +1 -1
  321. package/date-picker/interfaces.js.map +1 -1
  322. package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  323. package/date-range-picker/calendar/grids/grid.js.map +1 -1
  324. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  325. package/date-range-picker/calendar/grids/index.js.map +1 -1
  326. package/date-range-picker/calendar/header/header-button.d.ts.map +1 -1
  327. package/date-range-picker/calendar/header/header-button.js.map +1 -1
  328. package/date-range-picker/calendar/header/index.d.ts.map +1 -1
  329. package/date-range-picker/calendar/header/index.js.map +1 -1
  330. package/date-range-picker/calendar/index.d.ts.map +1 -1
  331. package/date-range-picker/calendar/index.js.map +1 -1
  332. package/date-range-picker/calendar/range-inputs.d.ts.map +1 -1
  333. package/date-range-picker/calendar/range-inputs.js.map +1 -1
  334. package/date-range-picker/calendar/utils.d.ts.map +1 -1
  335. package/date-range-picker/calendar/utils.js.map +1 -1
  336. package/date-range-picker/dropdown.d.ts.map +1 -1
  337. package/date-range-picker/dropdown.js.map +1 -1
  338. package/date-range-picker/index.d.ts.map +1 -1
  339. package/date-range-picker/index.js.map +1 -1
  340. package/date-range-picker/interfaces.d.ts.map +1 -1
  341. package/date-range-picker/interfaces.js.map +1 -1
  342. package/date-range-picker/mode-switcher.d.ts.map +1 -1
  343. package/date-range-picker/mode-switcher.js.map +1 -1
  344. package/date-range-picker/relative-range/index.d.ts.map +1 -1
  345. package/date-range-picker/relative-range/index.js.map +1 -1
  346. package/date-range-picker/time-offset.d.ts.map +1 -1
  347. package/date-range-picker/time-offset.js.map +1 -1
  348. package/date-range-picker/utils.d.ts.map +1 -1
  349. package/date-range-picker/utils.js.map +1 -1
  350. package/expandable-section/expandable-section-container.d.ts.map +1 -1
  351. package/expandable-section/expandable-section-container.js.map +1 -1
  352. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  353. package/expandable-section/expandable-section-header.js.map +1 -1
  354. package/expandable-section/index.d.ts.map +1 -1
  355. package/expandable-section/index.js.map +1 -1
  356. package/expandable-section/interfaces.d.ts.map +1 -1
  357. package/expandable-section/interfaces.js.map +1 -1
  358. package/expandable-section/internal.d.ts.map +1 -1
  359. package/expandable-section/internal.js.map +1 -1
  360. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  361. package/flashbar/collapsible-flashbar.js.map +1 -1
  362. package/flashbar/common.d.ts.map +1 -1
  363. package/flashbar/common.js.map +1 -1
  364. package/flashbar/constant.d.ts.map +1 -1
  365. package/flashbar/constant.js.map +1 -1
  366. package/flashbar/flash.d.ts.map +1 -1
  367. package/flashbar/flash.js.map +1 -1
  368. package/flashbar/index.d.ts.map +1 -1
  369. package/flashbar/index.js.map +1 -1
  370. package/flashbar/interfaces.d.ts.map +1 -1
  371. package/flashbar/interfaces.js.map +1 -1
  372. package/flashbar/internal/analytics.d.ts.map +1 -1
  373. package/flashbar/internal/analytics.js.map +1 -1
  374. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  375. package/flashbar/non-collapsible-flashbar.js.map +1 -1
  376. package/flashbar/utils.d.ts.map +1 -1
  377. package/flashbar/utils.js.map +1 -1
  378. package/form/index.d.ts.map +1 -1
  379. package/form/index.js.map +1 -1
  380. package/form/interfaces.d.ts.map +1 -1
  381. package/form/interfaces.js.map +1 -1
  382. package/form/internal.d.ts.map +1 -1
  383. package/form/internal.js.map +1 -1
  384. package/form-field/index.d.ts.map +1 -1
  385. package/form-field/index.js.map +1 -1
  386. package/form-field/interfaces.d.ts +0 -6
  387. package/form-field/interfaces.d.ts.map +1 -1
  388. package/form-field/interfaces.js.map +1 -1
  389. package/form-field/internal.d.ts +1 -1
  390. package/form-field/internal.d.ts.map +1 -1
  391. package/form-field/internal.js +1 -2
  392. package/form-field/internal.js.map +1 -1
  393. package/form-field/util.d.ts.map +1 -1
  394. package/form-field/util.js.map +1 -1
  395. package/grid/index.d.ts.map +1 -1
  396. package/grid/index.js.map +1 -1
  397. package/grid/interfaces.d.ts.map +1 -1
  398. package/grid/interfaces.js.map +1 -1
  399. package/grid/internal.d.ts.map +1 -1
  400. package/grid/internal.js.map +1 -1
  401. package/header/index.d.ts.map +1 -1
  402. package/header/index.js.map +1 -1
  403. package/header/interfaces.d.ts.map +1 -1
  404. package/header/interfaces.js.map +1 -1
  405. package/header/internal.d.ts.map +1 -1
  406. package/header/internal.js.map +1 -1
  407. package/help-panel/index.d.ts.map +1 -1
  408. package/help-panel/index.js.map +1 -1
  409. package/help-panel/interfaces.d.ts.map +1 -1
  410. package/help-panel/interfaces.js.map +1 -1
  411. package/hotspot/index.d.ts.map +1 -1
  412. package/hotspot/index.js.map +1 -1
  413. package/hotspot/interfaces.d.ts.map +1 -1
  414. package/hotspot/interfaces.js.map +1 -1
  415. package/icon/index.d.ts.map +1 -1
  416. package/icon/index.js.map +1 -1
  417. package/icon/interfaces.d.ts.map +1 -1
  418. package/icon/interfaces.js.map +1 -1
  419. package/icon/internal.d.ts.map +1 -1
  420. package/icon/internal.js.map +1 -1
  421. package/index.d.ts.map +1 -1
  422. package/index.js.map +1 -1
  423. package/input/index.d.ts.map +1 -1
  424. package/input/index.js.map +1 -1
  425. package/input/interfaces.d.ts +7 -5
  426. package/input/interfaces.d.ts.map +1 -1
  427. package/input/interfaces.js.map +1 -1
  428. package/input/internal.d.ts.map +1 -1
  429. package/input/internal.js +4 -16
  430. package/input/internal.js.map +1 -1
  431. package/input/utils.d.ts.map +1 -1
  432. package/input/utils.js.map +1 -1
  433. package/interfaces.d.ts.map +1 -1
  434. package/interfaces.js.map +1 -1
  435. package/internal/animate.d.ts.map +1 -1
  436. package/internal/animate.js.map +1 -1
  437. package/internal/base-component/index.d.ts.map +1 -1
  438. package/internal/base-component/index.js.map +1 -1
  439. package/internal/breakpoints.d.ts.map +1 -1
  440. package/internal/breakpoints.js.map +1 -1
  441. package/internal/components/abstract-switch/index.d.ts.map +1 -1
  442. package/internal/components/abstract-switch/index.js.map +1 -1
  443. package/internal/components/autosuggest-input/index.d.ts +2 -3
  444. package/internal/components/autosuggest-input/index.d.ts.map +1 -1
  445. package/internal/components/autosuggest-input/index.js.map +1 -1
  446. package/internal/components/button-trigger/index.d.ts.map +1 -1
  447. package/internal/components/button-trigger/index.js.map +1 -1
  448. package/internal/components/cartesian-chart/axis-label.d.ts.map +1 -1
  449. package/internal/components/cartesian-chart/axis-label.js.map +1 -1
  450. package/internal/components/cartesian-chart/bottom-labels.d.ts.map +1 -1
  451. package/internal/components/cartesian-chart/bottom-labels.js.map +1 -1
  452. package/internal/components/cartesian-chart/constants.d.ts.map +1 -1
  453. package/internal/components/cartesian-chart/constants.js.map +1 -1
  454. package/internal/components/cartesian-chart/emphasized-baseline.d.ts.map +1 -1
  455. package/internal/components/cartesian-chart/emphasized-baseline.js.map +1 -1
  456. package/internal/components/cartesian-chart/highlighted-point.d.ts.map +1 -1
  457. package/internal/components/cartesian-chart/highlighted-point.js.map +1 -1
  458. package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  459. package/internal/components/cartesian-chart/interfaces.js.map +1 -1
  460. package/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  461. package/internal/components/cartesian-chart/label-utils.js.map +1 -1
  462. package/internal/components/cartesian-chart/labels-measure.d.ts.map +1 -1
  463. package/internal/components/cartesian-chart/labels-measure.js.map +1 -1
  464. package/internal/components/cartesian-chart/left-labels.d.ts.map +1 -1
  465. package/internal/components/cartesian-chart/left-labels.js.map +1 -1
  466. package/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  467. package/internal/components/cartesian-chart/scales.js.map +1 -1
  468. package/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  469. package/internal/components/cartesian-chart/ticks.js.map +1 -1
  470. package/internal/components/cartesian-chart/vertical-grid-lines.d.ts.map +1 -1
  471. package/internal/components/cartesian-chart/vertical-grid-lines.js.map +1 -1
  472. package/internal/components/cartesian-chart/vertical-marker.d.ts.map +1 -1
  473. package/internal/components/cartesian-chart/vertical-marker.js.map +1 -1
  474. package/internal/components/chart-filter/index.d.ts.map +1 -1
  475. package/internal/components/chart-filter/index.js.map +1 -1
  476. package/internal/components/chart-legend/index.d.ts.map +1 -1
  477. package/internal/components/chart-legend/index.js.map +1 -1
  478. package/internal/components/chart-plot/application-controller.d.ts.map +1 -1
  479. package/internal/components/chart-plot/application-controller.js.map +1 -1
  480. package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  481. package/internal/components/chart-plot/focus-outline.js.map +1 -1
  482. package/internal/components/chart-plot/index.d.ts.map +1 -1
  483. package/internal/components/chart-plot/index.js.map +1 -1
  484. package/internal/components/chart-plot/interfaces.d.ts.map +1 -1
  485. package/internal/components/chart-plot/interfaces.js.map +1 -1
  486. package/internal/components/chart-popover/index.d.ts.map +1 -1
  487. package/internal/components/chart-popover/index.js.map +1 -1
  488. package/internal/components/chart-series-details/index.d.ts.map +1 -1
  489. package/internal/components/chart-series-details/index.js.map +1 -1
  490. package/internal/components/chart-series-marker/index.d.ts.map +1 -1
  491. package/internal/components/chart-series-marker/index.js.map +1 -1
  492. package/internal/components/chart-status-container/index.d.ts.map +1 -1
  493. package/internal/components/chart-status-container/index.js.map +1 -1
  494. package/internal/components/checkbox-icon/index.d.ts.map +1 -1
  495. package/internal/components/checkbox-icon/index.js.map +1 -1
  496. package/internal/components/dark-ribbon/index.d.ts.map +1 -1
  497. package/internal/components/dark-ribbon/index.js.map +1 -1
  498. package/internal/components/dropdown/context.d.ts.map +1 -1
  499. package/internal/components/dropdown/context.js.map +1 -1
  500. package/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
  501. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  502. package/internal/components/dropdown/index.d.ts.map +1 -1
  503. package/internal/components/dropdown/index.js.map +1 -1
  504. package/internal/components/dropdown/interfaces.d.ts.map +1 -1
  505. package/internal/components/dropdown/interfaces.js.map +1 -1
  506. package/internal/components/dropdown-footer/index.d.ts.map +1 -1
  507. package/internal/components/dropdown-footer/index.js.map +1 -1
  508. package/internal/components/dropdown-status/index.d.ts.map +1 -1
  509. package/internal/components/dropdown-status/index.js.map +1 -1
  510. package/internal/components/dropdown-status/interfaces.d.ts.map +1 -1
  511. package/internal/components/dropdown-status/interfaces.js.map +1 -1
  512. package/internal/components/filtering-token/index.d.ts.map +1 -1
  513. package/internal/components/filtering-token/index.js.map +1 -1
  514. package/internal/components/focus-lock/index.d.ts.map +1 -1
  515. package/internal/components/focus-lock/index.js.map +1 -1
  516. package/internal/components/focus-lock/utils.d.ts +2 -2
  517. package/internal/components/focus-lock/utils.d.ts.map +1 -1
  518. package/internal/components/focus-lock/utils.js.map +1 -1
  519. package/internal/components/interfaces.d.ts.map +1 -1
  520. package/internal/components/interfaces.js.map +1 -1
  521. package/internal/components/live-region/index.d.ts.map +1 -1
  522. package/internal/components/live-region/index.js.map +1 -1
  523. package/internal/components/masked-input/index.d.ts.map +1 -1
  524. package/internal/components/masked-input/index.js.map +1 -1
  525. package/internal/components/masked-input/interfaces.d.ts.map +1 -1
  526. package/internal/components/masked-input/interfaces.js.map +1 -1
  527. package/internal/components/masked-input/keyboard-handler.d.ts.map +1 -1
  528. package/internal/components/masked-input/keyboard-handler.js.map +1 -1
  529. package/internal/components/masked-input/use-mask.d.ts.map +1 -1
  530. package/internal/components/masked-input/use-mask.js.map +1 -1
  531. package/internal/components/masked-input/utils/keys.d.ts.map +1 -1
  532. package/internal/components/masked-input/utils/keys.js.map +1 -1
  533. package/internal/components/masked-input/utils/mask-format.d.ts.map +1 -1
  534. package/internal/components/masked-input/utils/mask-format.js.map +1 -1
  535. package/internal/components/masked-input/utils/strings.d.ts.map +1 -1
  536. package/internal/components/masked-input/utils/strings.js.map +1 -1
  537. package/internal/components/menu-dropdown/index.d.ts.map +1 -1
  538. package/internal/components/menu-dropdown/index.js.map +1 -1
  539. package/internal/components/menu-dropdown/interfaces.d.ts.map +1 -1
  540. package/internal/components/menu-dropdown/interfaces.js.map +1 -1
  541. package/internal/components/option/highlight-match.d.ts.map +1 -1
  542. package/internal/components/option/highlight-match.js.map +1 -1
  543. package/internal/components/option/index.d.ts +1 -1
  544. package/internal/components/option/index.d.ts.map +1 -1
  545. package/internal/components/option/index.js +11 -2
  546. package/internal/components/option/index.js.map +1 -1
  547. package/internal/components/option/interfaces.d.ts +1 -0
  548. package/internal/components/option/interfaces.d.ts.map +1 -1
  549. package/internal/components/option/interfaces.js.map +1 -1
  550. package/internal/components/option/option-announcer.d.ts.map +1 -1
  551. package/internal/components/option/option-announcer.js.map +1 -1
  552. package/internal/components/option/option-parts.d.ts.map +1 -1
  553. package/internal/components/option/option-parts.js.map +1 -1
  554. package/internal/components/option/utils/filter-options.d.ts.map +1 -1
  555. package/internal/components/option/utils/filter-options.js.map +1 -1
  556. package/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  557. package/internal/components/option/utils/flatten-options.js.map +1 -1
  558. package/internal/components/option/utils/prepare-options.d.ts.map +1 -1
  559. package/internal/components/option/utils/prepare-options.js.map +1 -1
  560. package/internal/components/options-list/index.d.ts.map +1 -1
  561. package/internal/components/options-list/index.js.map +1 -1
  562. package/internal/components/options-list/utils/test-indexes.d.ts.map +1 -1
  563. package/internal/components/options-list/utils/test-indexes.js.map +1 -1
  564. package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  565. package/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  566. package/internal/components/options-list/utils/use-ids.d.ts.map +1 -1
  567. package/internal/components/options-list/utils/use-ids.js.map +1 -1
  568. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  569. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  570. package/internal/components/options-list/utils/use-open-state.d.ts.map +1 -1
  571. package/internal/components/options-list/utils/use-open-state.js.map +1 -1
  572. package/internal/components/portal/index.d.ts.map +1 -1
  573. package/internal/components/portal/index.js.map +1 -1
  574. package/internal/components/screenreader-only/index.d.ts.map +1 -1
  575. package/internal/components/screenreader-only/index.js.map +1 -1
  576. package/internal/components/selectable-item/index.d.ts.map +1 -1
  577. package/internal/components/selectable-item/index.js.map +1 -1
  578. package/internal/components/tab-trap/index.d.ts.map +1 -1
  579. package/internal/components/tab-trap/index.js.map +1 -1
  580. package/internal/components/token-list/index.d.ts +4 -0
  581. package/internal/components/token-list/index.d.ts.map +1 -0
  582. package/internal/components/token-list/index.js +31 -0
  583. package/internal/components/token-list/index.js.map +1 -0
  584. package/internal/components/token-list/interfaces.d.ts +16 -0
  585. package/internal/components/token-list/interfaces.d.ts.map +1 -0
  586. package/internal/components/token-list/interfaces.js +4 -0
  587. package/internal/components/token-list/interfaces.js.map +1 -0
  588. package/internal/components/token-list/styles.css.js +14 -0
  589. package/internal/components/token-list/styles.scoped.css +232 -0
  590. package/internal/components/token-list/styles.selectors.js +15 -0
  591. package/internal/components/token-list/token-focus-controller.d.ts +5 -0
  592. package/internal/components/token-list/token-focus-controller.d.ts.map +1 -0
  593. package/internal/components/token-list/token-focus-controller.js +49 -0
  594. package/internal/components/token-list/token-focus-controller.js.map +1 -0
  595. package/internal/components/token-list/token-limit-toggle.d.ts +14 -0
  596. package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -0
  597. package/{token-group/toggle.js → internal/components/token-list/token-limit-toggle.js} +6 -7
  598. package/internal/components/token-list/token-limit-toggle.js.map +1 -0
  599. package/internal/components/transition/index.d.ts.map +1 -1
  600. package/internal/components/transition/index.js.map +1 -1
  601. package/internal/components/visual-context/index.d.ts.map +1 -1
  602. package/internal/components/visual-context/index.js.map +1 -1
  603. package/internal/context/app-layout-context.d.ts.map +1 -1
  604. package/internal/context/app-layout-context.js.map +1 -1
  605. package/internal/context/form-field-context.d.ts +2 -6
  606. package/internal/context/form-field-context.d.ts.map +1 -1
  607. package/internal/context/form-field-context.js +1 -7
  608. package/internal/context/form-field-context.js.map +1 -1
  609. package/internal/context/split-panel-context.d.ts.map +1 -1
  610. package/internal/context/split-panel-context.js.map +1 -1
  611. package/internal/debounce.d.ts.map +1 -1
  612. package/internal/debounce.js.map +1 -1
  613. package/internal/environment.js +1 -1
  614. package/internal/events/index.d.ts.map +1 -1
  615. package/internal/events/index.js.map +1 -1
  616. package/internal/focus-tracker.d.ts.map +1 -1
  617. package/internal/focus-tracker.js.map +1 -1
  618. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  619. package/internal/generated/custom-css-properties/index.js.map +1 -1
  620. package/internal/hooks/check-controlled/index.d.ts.map +1 -1
  621. package/internal/hooks/check-controlled/index.js.map +1 -1
  622. package/internal/hooks/container-queries/index.d.ts.map +1 -1
  623. package/internal/hooks/container-queries/index.js.map +1 -1
  624. package/internal/hooks/container-queries/interfaces.d.ts.map +1 -1
  625. package/internal/hooks/container-queries/interfaces.js.map +1 -1
  626. package/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  627. package/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  628. package/internal/hooks/container-queries/use-container-query.d.ts.map +1 -1
  629. package/internal/hooks/container-queries/use-container-query.js.map +1 -1
  630. package/internal/hooks/container-queries/use-resize-observer.d.ts.map +1 -1
  631. package/internal/hooks/container-queries/use-resize-observer.js.map +1 -1
  632. package/internal/hooks/focus-visible/index.d.ts.map +1 -1
  633. package/internal/hooks/focus-visible/index.js.map +1 -1
  634. package/internal/hooks/forward-focus/index.d.ts.map +1 -1
  635. package/internal/hooks/forward-focus/index.js.map +1 -1
  636. package/internal/hooks/forward-focus/radio-group.d.ts.map +1 -1
  637. package/internal/hooks/forward-focus/radio-group.js.map +1 -1
  638. package/internal/hooks/use-base-component/index.d.ts.map +1 -1
  639. package/internal/hooks/use-base-component/index.js.map +1 -1
  640. package/internal/hooks/use-controllable/index.d.ts.map +1 -1
  641. package/internal/hooks/use-controllable/index.js.map +1 -1
  642. package/internal/hooks/use-date-cache/index.d.ts.map +1 -1
  643. package/internal/hooks/use-date-cache/index.js.map +1 -1
  644. package/internal/hooks/use-debounce-callback/index.d.ts.map +1 -1
  645. package/internal/hooks/use-debounce-callback/index.js.map +1 -1
  646. package/internal/hooks/use-dynamic-overlap/index.d.ts.map +1 -1
  647. package/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  648. package/internal/hooks/use-effect-on-update.d.ts.map +1 -1
  649. package/internal/hooks/use-effect-on-update.js.map +1 -1
  650. package/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  651. package/internal/hooks/use-focus-tracker.js.map +1 -1
  652. package/internal/hooks/use-has-rendered/index.d.ts.map +1 -1
  653. package/internal/hooks/use-has-rendered/index.js.map +1 -1
  654. package/internal/hooks/use-intersection-observer/index.d.ts.map +1 -1
  655. package/internal/hooks/use-intersection-observer/index.js.map +1 -1
  656. package/internal/hooks/use-merge-refs/index.d.ts.map +1 -1
  657. package/internal/hooks/use-merge-refs/index.js.map +1 -1
  658. package/internal/hooks/use-mobile/index.d.ts.map +1 -1
  659. package/internal/hooks/use-mobile/index.js.map +1 -1
  660. package/internal/hooks/use-mouse-down-target.d.ts.map +1 -1
  661. package/internal/hooks/use-mouse-down-target.js.map +1 -1
  662. package/internal/hooks/use-mutation-observer/index.d.ts.map +1 -1
  663. package/internal/hooks/use-mutation-observer/index.js.map +1 -1
  664. package/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
  665. package/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
  666. package/internal/hooks/use-previous/index.d.ts.map +1 -1
  667. package/internal/hooks/use-previous/index.js.map +1 -1
  668. package/internal/hooks/use-scroll-sync/index.d.ts.map +1 -1
  669. package/internal/hooks/use-scroll-sync/index.js.map +1 -1
  670. package/internal/hooks/use-singleton-handler/index.d.ts.map +1 -1
  671. package/internal/hooks/use-singleton-handler/index.js.map +1 -1
  672. package/internal/hooks/use-stable-event-handler/index.d.ts.map +1 -1
  673. package/internal/hooks/use-stable-event-handler/index.js.map +1 -1
  674. package/internal/hooks/use-telemetry/index.d.ts.map +1 -1
  675. package/internal/hooks/use-telemetry/index.js.map +1 -1
  676. package/internal/hooks/use-unique-id/index.d.ts.map +1 -1
  677. package/internal/hooks/use-unique-id/index.js.map +1 -1
  678. package/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
  679. package/internal/hooks/use-visual-mode/index.js.map +1 -1
  680. package/internal/i18n/context.d.ts.map +1 -1
  681. package/internal/i18n/context.js.map +1 -1
  682. package/internal/i18n/index.d.ts.map +1 -1
  683. package/internal/i18n/index.js.map +1 -1
  684. package/internal/i18n/provider.d.ts.map +1 -1
  685. package/internal/i18n/provider.js.map +1 -1
  686. package/internal/is-development.d.ts.map +1 -1
  687. package/internal/is-development.js.map +1 -1
  688. package/internal/keycode.d.ts.map +1 -1
  689. package/internal/keycode.js.map +1 -1
  690. package/internal/logging.d.ts.map +1 -1
  691. package/internal/logging.js.map +1 -1
  692. package/internal/manifest.json +1 -1
  693. package/internal/motion.d.ts.map +1 -1
  694. package/internal/motion.js.map +1 -1
  695. package/internal/styles/colors.d.ts.map +1 -1
  696. package/internal/styles/colors.js.map +1 -1
  697. package/internal/types.d.ts.map +1 -1
  698. package/internal/types.js.map +1 -1
  699. package/internal/utils/apply-display-name.d.ts.map +1 -1
  700. package/internal/utils/apply-display-name.js.map +1 -1
  701. package/internal/utils/browser-scrollbar-size.d.ts.map +1 -1
  702. package/internal/utils/browser-scrollbar-size.js.map +1 -1
  703. package/internal/utils/calculate-once.d.ts.map +1 -1
  704. package/internal/utils/calculate-once.js.map +1 -1
  705. package/internal/utils/check-safe-url.d.ts.map +1 -1
  706. package/internal/utils/check-safe-url.js.map +1 -1
  707. package/internal/utils/create-category-color-scale.d.ts.map +1 -1
  708. package/internal/utils/create-category-color-scale.js.map +1 -1
  709. package/internal/utils/date-time/display-format.d.ts.map +1 -1
  710. package/internal/utils/date-time/display-format.js.map +1 -1
  711. package/internal/utils/date-time/format-date-range.d.ts.map +1 -1
  712. package/internal/utils/date-time/format-date-range.js.map +1 -1
  713. package/internal/utils/date-time/format-date-time.d.ts.map +1 -1
  714. package/internal/utils/date-time/format-date-time.js.map +1 -1
  715. package/internal/utils/date-time/format-date.d.ts.map +1 -1
  716. package/internal/utils/date-time/format-date.js.map +1 -1
  717. package/internal/utils/date-time/format-time.d.ts.map +1 -1
  718. package/internal/utils/date-time/format-time.js.map +1 -1
  719. package/internal/utils/date-time/format-timezone-offset.d.ts.map +1 -1
  720. package/internal/utils/date-time/format-timezone-offset.js.map +1 -1
  721. package/internal/utils/date-time/index.d.ts.map +1 -1
  722. package/internal/utils/date-time/index.js.map +1 -1
  723. package/internal/utils/date-time/is-iso-date-only.d.ts.map +1 -1
  724. package/internal/utils/date-time/is-iso-date-only.js.map +1 -1
  725. package/internal/utils/date-time/join-date-time.d.ts.map +1 -1
  726. package/internal/utils/date-time/join-date-time.js.map +1 -1
  727. package/internal/utils/date-time/parse-date.d.ts.map +1 -1
  728. package/internal/utils/date-time/parse-date.js.map +1 -1
  729. package/internal/utils/date-time/parse-timezone-offset.d.ts.map +1 -1
  730. package/internal/utils/date-time/parse-timezone-offset.js.map +1 -1
  731. package/internal/utils/date-time/shift-timezone-offset.d.ts.map +1 -1
  732. package/internal/utils/date-time/shift-timezone-offset.js.map +1 -1
  733. package/internal/utils/dom.d.ts.map +1 -1
  734. package/internal/utils/dom.js.map +1 -1
  735. package/internal/utils/external-props.d.ts.map +1 -1
  736. package/internal/utils/external-props.js.map +1 -1
  737. package/internal/utils/focus-svg-element.d.ts.map +1 -1
  738. package/internal/utils/focus-svg-element.js.map +1 -1
  739. package/internal/utils/has-value.d.ts.map +1 -1
  740. package/internal/utils/has-value.js.map +1 -1
  741. package/internal/utils/locale/index.d.ts.map +1 -1
  742. package/internal/utils/locale/index.js.map +1 -1
  743. package/internal/utils/locale/merge-locales.d.ts.map +1 -1
  744. package/internal/utils/locale/merge-locales.js.map +1 -1
  745. package/internal/utils/locale/normalize-locale.d.ts.map +1 -1
  746. package/internal/utils/locale/normalize-locale.js.map +1 -1
  747. package/internal/utils/locale/normalize-start-of-week.d.ts.map +1 -1
  748. package/internal/utils/locale/normalize-start-of-week.js.map +1 -1
  749. package/internal/utils/promises.d.ts.map +1 -1
  750. package/internal/utils/promises.js.map +1 -1
  751. package/internal/utils/scrollable-containers.d.ts.map +1 -1
  752. package/internal/utils/scrollable-containers.js.map +1 -1
  753. package/internal/utils/strings/index.d.ts.map +1 -1
  754. package/internal/utils/strings/index.js.map +1 -1
  755. package/internal/utils/strings/join-strings.d.ts.map +1 -1
  756. package/internal/utils/strings/join-strings.js.map +1 -1
  757. package/internal/utils/strings/pad-left-zeros.d.ts.map +1 -1
  758. package/internal/utils/strings/pad-left-zeros.js.map +1 -1
  759. package/internal/utils/throttle.d.ts.map +1 -1
  760. package/internal/utils/throttle.js.map +1 -1
  761. package/internal/utils/use-container-width.d.ts.map +1 -1
  762. package/internal/utils/use-container-width.js.map +1 -1
  763. package/line-chart/index.d.ts.map +1 -1
  764. package/line-chart/index.js.map +1 -1
  765. package/line-chart/interfaces.d.ts.map +1 -1
  766. package/line-chart/interfaces.js.map +1 -1
  767. package/link/index.d.ts.map +1 -1
  768. package/link/index.js.map +1 -1
  769. package/link/interfaces.d.ts.map +1 -1
  770. package/link/interfaces.js.map +1 -1
  771. package/link/internal.d.ts.map +1 -1
  772. package/link/internal.js.map +1 -1
  773. package/mixed-line-bar-chart/bar-groups.d.ts.map +1 -1
  774. package/mixed-line-bar-chart/bar-groups.js.map +1 -1
  775. package/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
  776. package/mixed-line-bar-chart/bar-series.js.map +1 -1
  777. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  778. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  779. package/mixed-line-bar-chart/chart-filters.d.ts.map +1 -1
  780. package/mixed-line-bar-chart/chart-filters.js.map +1 -1
  781. package/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
  782. package/mixed-line-bar-chart/chart-legend.js.map +1 -1
  783. package/mixed-line-bar-chart/chart-popover.d.ts.map +1 -1
  784. package/mixed-line-bar-chart/chart-popover.js.map +1 -1
  785. package/mixed-line-bar-chart/data-series.d.ts.map +1 -1
  786. package/mixed-line-bar-chart/data-series.js.map +1 -1
  787. package/mixed-line-bar-chart/domain.d.ts.map +1 -1
  788. package/mixed-line-bar-chart/domain.js.map +1 -1
  789. package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  790. package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  791. package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
  792. package/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
  793. package/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
  794. package/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
  795. package/mixed-line-bar-chart/hooks/use-popover.d.ts.map +1 -1
  796. package/mixed-line-bar-chart/hooks/use-popover.js.map +1 -1
  797. package/mixed-line-bar-chart/index.d.ts.map +1 -1
  798. package/mixed-line-bar-chart/index.js.map +1 -1
  799. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  800. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  801. package/mixed-line-bar-chart/internal.d.ts.map +1 -1
  802. package/mixed-line-bar-chart/internal.js.map +1 -1
  803. package/mixed-line-bar-chart/line-series.d.ts.map +1 -1
  804. package/mixed-line-bar-chart/line-series.js.map +1 -1
  805. package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
  806. package/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
  807. package/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
  808. package/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
  809. package/mixed-line-bar-chart/utils.d.ts.map +1 -1
  810. package/mixed-line-bar-chart/utils.js.map +1 -1
  811. package/modal/body-scroll.d.ts.map +1 -1
  812. package/modal/body-scroll.js.map +1 -1
  813. package/modal/index.d.ts.map +1 -1
  814. package/modal/index.js.map +1 -1
  815. package/modal/interfaces.d.ts.map +1 -1
  816. package/modal/interfaces.js.map +1 -1
  817. package/modal/internal.d.ts.map +1 -1
  818. package/modal/internal.js.map +1 -1
  819. package/multiselect/index.d.ts.map +1 -1
  820. package/multiselect/index.js.map +1 -1
  821. package/multiselect/interfaces.d.ts.map +1 -1
  822. package/multiselect/interfaces.js.map +1 -1
  823. package/multiselect/internal.d.ts.map +1 -1
  824. package/multiselect/internal.js.map +1 -1
  825. package/package.json +1 -1
  826. package/pagination/index.d.ts.map +1 -1
  827. package/pagination/index.js.map +1 -1
  828. package/pagination/interfaces.d.ts.map +1 -1
  829. package/pagination/interfaces.js.map +1 -1
  830. package/pagination/internal.d.ts.map +1 -1
  831. package/pagination/internal.js.map +1 -1
  832. package/pagination/utils.d.ts.map +1 -1
  833. package/pagination/utils.js.map +1 -1
  834. package/pie-chart/index.d.ts.map +1 -1
  835. package/pie-chart/index.js.map +1 -1
  836. package/pie-chart/interfaces.d.ts.map +1 -1
  837. package/pie-chart/interfaces.js.map +1 -1
  838. package/pie-chart/labels.d.ts.map +1 -1
  839. package/pie-chart/labels.js.map +1 -1
  840. package/pie-chart/pie-chart.d.ts.map +1 -1
  841. package/pie-chart/pie-chart.js.map +1 -1
  842. package/pie-chart/responsive-text.d.ts.map +1 -1
  843. package/pie-chart/responsive-text.js.map +1 -1
  844. package/pie-chart/segments.d.ts.map +1 -1
  845. package/pie-chart/segments.js.map +1 -1
  846. package/pie-chart/utils.d.ts.map +1 -1
  847. package/pie-chart/utils.js.map +1 -1
  848. package/popover/arrow.d.ts.map +1 -1
  849. package/popover/arrow.js.map +1 -1
  850. package/popover/body.d.ts.map +1 -1
  851. package/popover/body.js.map +1 -1
  852. package/popover/container.d.ts.map +1 -1
  853. package/popover/container.js.map +1 -1
  854. package/popover/index.d.ts.map +1 -1
  855. package/popover/index.js.map +1 -1
  856. package/popover/interfaces.d.ts.map +1 -1
  857. package/popover/interfaces.js.map +1 -1
  858. package/popover/internal.d.ts.map +1 -1
  859. package/popover/internal.js.map +1 -1
  860. package/popover/utils/positions.d.ts.map +1 -1
  861. package/popover/utils/positions.js.map +1 -1
  862. package/progress-bar/index.d.ts.map +1 -1
  863. package/progress-bar/index.js.map +1 -1
  864. package/progress-bar/interfaces.d.ts.map +1 -1
  865. package/progress-bar/interfaces.js.map +1 -1
  866. package/progress-bar/internal.d.ts.map +1 -1
  867. package/progress-bar/internal.js.map +1 -1
  868. package/property-filter/controller.d.ts +6 -0
  869. package/property-filter/controller.d.ts.map +1 -1
  870. package/property-filter/controller.js +9 -0
  871. package/property-filter/controller.js.map +1 -1
  872. package/property-filter/filter-options.d.ts.map +1 -1
  873. package/property-filter/filter-options.js.map +1 -1
  874. package/property-filter/index.d.ts.map +1 -1
  875. package/property-filter/index.js +13 -18
  876. package/property-filter/index.js.map +1 -1
  877. package/property-filter/interfaces.d.ts.map +1 -1
  878. package/property-filter/interfaces.js.map +1 -1
  879. package/property-filter/property-editor.d.ts.map +1 -1
  880. package/property-filter/property-editor.js.map +1 -1
  881. package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  882. package/property-filter/property-filter-autosuggest.js.map +1 -1
  883. package/property-filter/styles.css.js +29 -31
  884. package/property-filter/styles.scoped.css +31 -43
  885. package/property-filter/styles.selectors.js +29 -31
  886. package/property-filter/token-editor.d.ts.map +1 -1
  887. package/property-filter/token-editor.js.map +1 -1
  888. package/property-filter/token.d.ts.map +1 -1
  889. package/property-filter/token.js +5 -8
  890. package/property-filter/token.js.map +1 -1
  891. package/property-filter/use-load-items.d.ts.map +1 -1
  892. package/property-filter/use-load-items.js.map +1 -1
  893. package/property-filter/utils.d.ts.map +1 -1
  894. package/property-filter/utils.js.map +1 -1
  895. package/radio-group/index.d.ts.map +1 -1
  896. package/radio-group/index.js.map +1 -1
  897. package/radio-group/interfaces.d.ts.map +1 -1
  898. package/radio-group/interfaces.js.map +1 -1
  899. package/radio-group/internal.d.ts.map +1 -1
  900. package/radio-group/internal.js.map +1 -1
  901. package/radio-group/radio-button.d.ts.map +1 -1
  902. package/radio-group/radio-button.js.map +1 -1
  903. package/s3-resource-selector/index.d.ts.map +1 -1
  904. package/s3-resource-selector/index.js.map +1 -1
  905. package/s3-resource-selector/interfaces.d.ts.map +1 -1
  906. package/s3-resource-selector/interfaces.js.map +1 -1
  907. package/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  908. package/s3-resource-selector/s3-in-context/index.js.map +1 -1
  909. package/s3-resource-selector/s3-in-context/search-input.d.ts.map +1 -1
  910. package/s3-resource-selector/s3-in-context/search-input.js.map +1 -1
  911. package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts.map +1 -1
  912. package/s3-resource-selector/s3-in-context/use-versions-fetch.js.map +1 -1
  913. package/s3-resource-selector/s3-in-context/validation.d.ts.map +1 -1
  914. package/s3-resource-selector/s3-in-context/validation.js.map +1 -1
  915. package/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  916. package/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  917. package/s3-resource-selector/s3-modal/buckets-table.d.ts.map +1 -1
  918. package/s3-resource-selector/s3-modal/buckets-table.js.map +1 -1
  919. package/s3-resource-selector/s3-modal/column-formats.d.ts.map +1 -1
  920. package/s3-resource-selector/s3-modal/column-formats.js.map +1 -1
  921. package/s3-resource-selector/s3-modal/empty-state.d.ts.map +1 -1
  922. package/s3-resource-selector/s3-modal/empty-state.js.map +1 -1
  923. package/s3-resource-selector/s3-modal/index.d.ts.map +1 -1
  924. package/s3-resource-selector/s3-modal/index.js.map +1 -1
  925. package/s3-resource-selector/s3-modal/objects-table.d.ts.map +1 -1
  926. package/s3-resource-selector/s3-modal/objects-table.js.map +1 -1
  927. package/s3-resource-selector/s3-modal/table-utils.d.ts.map +1 -1
  928. package/s3-resource-selector/s3-modal/table-utils.js.map +1 -1
  929. package/s3-resource-selector/s3-modal/versions-table.d.ts.map +1 -1
  930. package/s3-resource-selector/s3-modal/versions-table.js.map +1 -1
  931. package/s3-resource-selector/utils.d.ts.map +1 -1
  932. package/s3-resource-selector/utils.js.map +1 -1
  933. package/segmented-control/index.d.ts.map +1 -1
  934. package/segmented-control/index.js.map +1 -1
  935. package/segmented-control/interfaces.d.ts.map +1 -1
  936. package/segmented-control/interfaces.js.map +1 -1
  937. package/segmented-control/internal-segmented-control.d.ts.map +1 -1
  938. package/segmented-control/internal-segmented-control.js.map +1 -1
  939. package/segmented-control/internal.d.ts.map +1 -1
  940. package/segmented-control/internal.js.map +1 -1
  941. package/segmented-control/segment.d.ts.map +1 -1
  942. package/segmented-control/segment.js.map +1 -1
  943. package/select/index.d.ts.map +1 -1
  944. package/select/index.js.map +1 -1
  945. package/select/interfaces.d.ts.map +1 -1
  946. package/select/interfaces.js.map +1 -1
  947. package/select/internal.d.ts.map +1 -1
  948. package/select/internal.js.map +1 -1
  949. package/select/parts/filter.d.ts +1 -1
  950. package/select/parts/filter.d.ts.map +1 -1
  951. package/select/parts/filter.js.map +1 -1
  952. package/select/parts/item.d.ts.map +1 -1
  953. package/select/parts/item.js.map +1 -1
  954. package/select/parts/multiselect-item.d.ts.map +1 -1
  955. package/select/parts/multiselect-item.js.map +1 -1
  956. package/select/parts/plain-list.d.ts.map +1 -1
  957. package/select/parts/plain-list.js.map +1 -1
  958. package/select/parts/trigger.d.ts.map +1 -1
  959. package/select/parts/trigger.js.map +1 -1
  960. package/select/parts/virtual-list.d.ts.map +1 -1
  961. package/select/parts/virtual-list.js.map +1 -1
  962. package/select/utils/check-option-value-field.d.ts.map +1 -1
  963. package/select/utils/check-option-value-field.js.map +1 -1
  964. package/select/utils/connect-options.d.ts.map +1 -1
  965. package/select/utils/connect-options.js.map +1 -1
  966. package/select/utils/get-item-props.d.ts.map +1 -1
  967. package/select/utils/get-item-props.js.map +1 -1
  968. package/select/utils/render-options.d.ts.map +1 -1
  969. package/select/utils/render-options.js.map +1 -1
  970. package/select/utils/use-announcement.d.ts.map +1 -1
  971. package/select/utils/use-announcement.js.map +1 -1
  972. package/select/utils/use-load-items.d.ts.map +1 -1
  973. package/select/utils/use-load-items.js.map +1 -1
  974. package/select/utils/use-native-search.d.ts.map +1 -1
  975. package/select/utils/use-native-search.js.map +1 -1
  976. package/select/utils/use-select.d.ts.map +1 -1
  977. package/select/utils/use-select.js.map +1 -1
  978. package/side-navigation/index.d.ts.map +1 -1
  979. package/side-navigation/index.js.map +1 -1
  980. package/side-navigation/interfaces.d.ts.map +1 -1
  981. package/side-navigation/interfaces.js.map +1 -1
  982. package/side-navigation/internal.d.ts.map +1 -1
  983. package/side-navigation/internal.js.map +1 -1
  984. package/side-navigation/util.d.ts.map +1 -1
  985. package/side-navigation/util.js.map +1 -1
  986. package/space-between/index.d.ts.map +1 -1
  987. package/space-between/index.js.map +1 -1
  988. package/space-between/interfaces.d.ts.map +1 -1
  989. package/space-between/interfaces.js.map +1 -1
  990. package/space-between/internal.d.ts.map +1 -1
  991. package/space-between/internal.js +1 -3
  992. package/space-between/internal.js.map +1 -1
  993. package/spinner/index.d.ts.map +1 -1
  994. package/spinner/index.js.map +1 -1
  995. package/spinner/interfaces.d.ts.map +1 -1
  996. package/spinner/interfaces.js.map +1 -1
  997. package/spinner/internal.d.ts.map +1 -1
  998. package/spinner/internal.js.map +1 -1
  999. package/split-panel/bottom.d.ts.map +1 -1
  1000. package/split-panel/bottom.js.map +1 -1
  1001. package/split-panel/icons/bottom-icon-refresh.d.ts.map +1 -1
  1002. package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  1003. package/split-panel/icons/bottom-icon.d.ts.map +1 -1
  1004. package/split-panel/icons/bottom-icon.js.map +1 -1
  1005. package/split-panel/icons/resize-handler.d.ts.map +1 -1
  1006. package/split-panel/icons/resize-handler.js.map +1 -1
  1007. package/split-panel/icons/side-position-refresh.d.ts.map +1 -1
  1008. package/split-panel/icons/side-position-refresh.js.map +1 -1
  1009. package/split-panel/icons/side-position.d.ts.map +1 -1
  1010. package/split-panel/icons/side-position.js.map +1 -1
  1011. package/split-panel/index.d.ts.map +1 -1
  1012. package/split-panel/index.js.map +1 -1
  1013. package/split-panel/interfaces.d.ts.map +1 -1
  1014. package/split-panel/interfaces.js.map +1 -1
  1015. package/split-panel/preferences-modal.d.ts.map +1 -1
  1016. package/split-panel/preferences-modal.js.map +1 -1
  1017. package/split-panel/side.d.ts.map +1 -1
  1018. package/split-panel/side.js.map +1 -1
  1019. package/split-panel/utils/size-utils.d.ts.map +1 -1
  1020. package/split-panel/utils/size-utils.js.map +1 -1
  1021. package/split-panel/utils/use-keyboard-events.d.ts.map +1 -1
  1022. package/split-panel/utils/use-keyboard-events.js.map +1 -1
  1023. package/split-panel/utils/use-pointer-events.d.ts.map +1 -1
  1024. package/split-panel/utils/use-pointer-events.js.map +1 -1
  1025. package/status-indicator/index.d.ts.map +1 -1
  1026. package/status-indicator/index.js.map +1 -1
  1027. package/status-indicator/internal.d.ts.map +1 -1
  1028. package/status-indicator/internal.js.map +1 -1
  1029. package/table/body-cell/click-away.d.ts.map +1 -1
  1030. package/table/body-cell/click-away.js.map +1 -1
  1031. package/table/body-cell/index.d.ts.map +1 -1
  1032. package/table/body-cell/index.js +5 -17
  1033. package/table/body-cell/index.js.map +1 -1
  1034. package/table/body-cell/inline-editor.d.ts.map +1 -1
  1035. package/table/body-cell/inline-editor.js +1 -1
  1036. package/table/body-cell/inline-editor.js.map +1 -1
  1037. package/table/body-cell/styles.css.js +18 -18
  1038. package/table/body-cell/styles.scoped.css +50 -50
  1039. package/table/body-cell/styles.selectors.js +18 -18
  1040. package/table/body-cell/td-element.d.ts.map +1 -1
  1041. package/table/body-cell/td-element.js.map +1 -1
  1042. package/table/header-cell/index.d.ts.map +1 -1
  1043. package/table/header-cell/index.js.map +1 -1
  1044. package/table/header-cell/utils.d.ts.map +1 -1
  1045. package/table/header-cell/utils.js.map +1 -1
  1046. package/table/index.d.ts.map +1 -1
  1047. package/table/index.js.map +1 -1
  1048. package/table/interfaces.d.ts.map +1 -1
  1049. package/table/interfaces.js.map +1 -1
  1050. package/table/internal.d.ts.map +1 -1
  1051. package/table/internal.js.map +1 -1
  1052. package/table/resizer/index.d.ts.map +1 -1
  1053. package/table/resizer/index.js.map +1 -1
  1054. package/table/selection-control/index.d.ts.map +1 -1
  1055. package/table/selection-control/index.js.map +1 -1
  1056. package/table/sticky-header.d.ts.map +1 -1
  1057. package/table/sticky-header.js.map +1 -1
  1058. package/table/sticky-scrollbar.d.ts.map +1 -1
  1059. package/table/sticky-scrollbar.js.map +1 -1
  1060. package/table/sticky-scrolling.d.ts.map +1 -1
  1061. package/table/sticky-scrolling.js.map +1 -1
  1062. package/table/thead.d.ts.map +1 -1
  1063. package/table/thead.js.map +1 -1
  1064. package/table/tools-header.d.ts.map +1 -1
  1065. package/table/tools-header.js.map +1 -1
  1066. package/table/use-column-widths.d.ts.map +1 -1
  1067. package/table/use-column-widths.js.map +1 -1
  1068. package/table/use-row-events.d.ts.map +1 -1
  1069. package/table/use-row-events.js.map +1 -1
  1070. package/table/use-selection.d.ts.map +1 -1
  1071. package/table/use-selection.js.map +1 -1
  1072. package/table/use-sticky-header.d.ts.map +1 -1
  1073. package/table/use-sticky-header.js.map +1 -1
  1074. package/table/use-sticky-scrollbar.d.ts.map +1 -1
  1075. package/table/use-sticky-scrollbar.js.map +1 -1
  1076. package/table/use-table-focus-navigation.d.ts.map +1 -1
  1077. package/table/use-table-focus-navigation.js +5 -1
  1078. package/table/use-table-focus-navigation.js.map +1 -1
  1079. package/table/utils.d.ts.map +1 -1
  1080. package/table/utils.js.map +1 -1
  1081. package/tabs/index.d.ts.map +1 -1
  1082. package/tabs/index.js.map +1 -1
  1083. package/tabs/interfaces.d.ts.map +1 -1
  1084. package/tabs/interfaces.js.map +1 -1
  1085. package/tabs/native-smooth-scroll-supported.d.ts.map +1 -1
  1086. package/tabs/native-smooth-scroll-supported.js.map +1 -1
  1087. package/tabs/scroll-utils.d.ts.map +1 -1
  1088. package/tabs/scroll-utils.js.map +1 -1
  1089. package/tabs/smooth-scroll.d.ts.map +1 -1
  1090. package/tabs/smooth-scroll.js.map +1 -1
  1091. package/tabs/tab-header-bar.d.ts.map +1 -1
  1092. package/tabs/tab-header-bar.js.map +1 -1
  1093. package/tag-editor/index.d.ts.map +1 -1
  1094. package/tag-editor/index.js +25 -2
  1095. package/tag-editor/index.js.map +1 -1
  1096. package/tag-editor/interfaces.d.ts.map +1 -1
  1097. package/tag-editor/interfaces.js.map +1 -1
  1098. package/tag-editor/internal.d.ts.map +1 -1
  1099. package/tag-editor/internal.js.map +1 -1
  1100. package/tag-editor/utils.d.ts.map +1 -1
  1101. package/tag-editor/utils.js.map +1 -1
  1102. package/tag-editor/validation.d.ts.map +1 -1
  1103. package/tag-editor/validation.js.map +1 -1
  1104. package/test-utils/dom/property-filter/index.js +4 -3
  1105. package/test-utils/dom/property-filter/index.js.map +1 -1
  1106. package/test-utils/dom/token-group/index.js +3 -3
  1107. package/test-utils/dom/token-group/index.js.map +1 -1
  1108. package/test-utils/selectors/property-filter/index.js +4 -3
  1109. package/test-utils/selectors/property-filter/index.js.map +1 -1
  1110. package/test-utils/selectors/token-group/index.js +3 -3
  1111. package/test-utils/selectors/token-group/index.js.map +1 -1
  1112. package/test-utils/tsconfig.tsbuildinfo +1 -1
  1113. package/text-content/index.d.ts.map +1 -1
  1114. package/text-content/index.js.map +1 -1
  1115. package/text-content/interfaces.d.ts.map +1 -1
  1116. package/text-content/interfaces.js.map +1 -1
  1117. package/text-filter/index.d.ts.map +1 -1
  1118. package/text-filter/index.js.map +1 -1
  1119. package/text-filter/interfaces.d.ts.map +1 -1
  1120. package/text-filter/interfaces.js.map +1 -1
  1121. package/text-filter/internal.d.ts.map +1 -1
  1122. package/text-filter/internal.js.map +1 -1
  1123. package/text-filter/search-results.d.ts.map +1 -1
  1124. package/text-filter/search-results.js.map +1 -1
  1125. package/textarea/index.d.ts.map +1 -1
  1126. package/textarea/index.js.map +1 -1
  1127. package/textarea/interfaces.d.ts.map +1 -1
  1128. package/textarea/interfaces.js.map +1 -1
  1129. package/theming/index.d.ts.map +1 -1
  1130. package/theming/index.js.map +1 -1
  1131. package/tiles/index.d.ts.map +1 -1
  1132. package/tiles/index.js.map +1 -1
  1133. package/tiles/interfaces.d.ts.map +1 -1
  1134. package/tiles/interfaces.js.map +1 -1
  1135. package/tiles/internal.d.ts.map +1 -1
  1136. package/tiles/internal.js.map +1 -1
  1137. package/tiles/tile.d.ts.map +1 -1
  1138. package/tiles/tile.js.map +1 -1
  1139. package/time-input/index.d.ts.map +1 -1
  1140. package/time-input/index.js.map +1 -1
  1141. package/time-input/interfaces.d.ts.map +1 -1
  1142. package/time-input/interfaces.js.map +1 -1
  1143. package/time-input/internal.d.ts.map +1 -1
  1144. package/time-input/internal.js.map +1 -1
  1145. package/toggle/index.d.ts.map +1 -1
  1146. package/toggle/index.js.map +1 -1
  1147. package/toggle/interfaces.d.ts.map +1 -1
  1148. package/toggle/interfaces.js.map +1 -1
  1149. package/toggle/internal.d.ts.map +1 -1
  1150. package/toggle/internal.js.map +1 -1
  1151. package/token-group/dismiss-button.d.ts +3 -3
  1152. package/token-group/dismiss-button.d.ts.map +1 -1
  1153. package/token-group/dismiss-button.js +4 -13
  1154. package/token-group/dismiss-button.js.map +1 -1
  1155. package/token-group/index.d.ts.map +1 -1
  1156. package/token-group/index.js.map +1 -1
  1157. package/token-group/interfaces.d.ts.map +1 -1
  1158. package/token-group/interfaces.js.map +1 -1
  1159. package/token-group/internal.d.ts +1 -1
  1160. package/token-group/internal.d.ts.map +1 -1
  1161. package/token-group/internal.js +16 -10
  1162. package/token-group/internal.js.map +1 -1
  1163. package/token-group/styles.css.js +5 -7
  1164. package/token-group/styles.scoped.css +13 -108
  1165. package/token-group/styles.selectors.js +5 -7
  1166. package/token-group/token.d.ts +13 -0
  1167. package/token-group/token.d.ts.map +1 -0
  1168. package/token-group/token.js +12 -0
  1169. package/token-group/token.js.map +1 -0
  1170. package/top-navigation/1.0-beta/index.d.ts.map +1 -1
  1171. package/top-navigation/1.0-beta/index.js.map +1 -1
  1172. package/top-navigation/1.0-beta/interfaces.d.ts.map +1 -1
  1173. package/top-navigation/1.0-beta/interfaces.js.map +1 -1
  1174. package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  1175. package/top-navigation/1.0-beta/internal.js.map +1 -1
  1176. package/top-navigation/1.0-beta/parts/overflow-menu.d.ts.map +1 -1
  1177. package/top-navigation/1.0-beta/parts/overflow-menu.js.map +1 -1
  1178. package/top-navigation/1.0-beta/parts/utility.d.ts.map +1 -1
  1179. package/top-navigation/1.0-beta/parts/utility.js.map +1 -1
  1180. package/top-navigation/1.0-beta/use-top-navigation.d.ts.map +1 -1
  1181. package/top-navigation/1.0-beta/use-top-navigation.js.map +1 -1
  1182. package/top-navigation/index.d.ts.map +1 -1
  1183. package/top-navigation/index.js.map +1 -1
  1184. package/top-navigation/interfaces.d.ts.map +1 -1
  1185. package/top-navigation/interfaces.js.map +1 -1
  1186. package/top-navigation/internal.d.ts.map +1 -1
  1187. package/top-navigation/internal.js.map +1 -1
  1188. package/top-navigation/parts/overflow-menu/header.d.ts.map +1 -1
  1189. package/top-navigation/parts/overflow-menu/header.js.map +1 -1
  1190. package/top-navigation/parts/overflow-menu/index.d.ts.map +1 -1
  1191. package/top-navigation/parts/overflow-menu/index.js.map +1 -1
  1192. package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  1193. package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  1194. package/top-navigation/parts/overflow-menu/router.d.ts.map +1 -1
  1195. package/top-navigation/parts/overflow-menu/router.js.map +1 -1
  1196. package/top-navigation/parts/overflow-menu/views/submenu.d.ts.map +1 -1
  1197. package/top-navigation/parts/overflow-menu/views/submenu.js.map +1 -1
  1198. package/top-navigation/parts/overflow-menu/views/utilities.d.ts.map +1 -1
  1199. package/top-navigation/parts/overflow-menu/views/utilities.js.map +1 -1
  1200. package/top-navigation/parts/utility.d.ts.map +1 -1
  1201. package/top-navigation/parts/utility.js.map +1 -1
  1202. package/top-navigation/use-top-navigation.d.ts.map +1 -1
  1203. package/top-navigation/use-top-navigation.js.map +1 -1
  1204. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts.map +1 -1
  1205. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.js.map +1 -1
  1206. package/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
  1207. package/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
  1208. package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts.map +1 -1
  1209. package/tutorial-panel/components/tutorial-detail-view/task-list.js.map +1 -1
  1210. package/tutorial-panel/components/tutorial-detail-view/task.d.ts.map +1 -1
  1211. package/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
  1212. package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  1213. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  1214. package/tutorial-panel/index.d.ts.map +1 -1
  1215. package/tutorial-panel/index.js.map +1 -1
  1216. package/tutorial-panel/interfaces.d.ts.map +1 -1
  1217. package/tutorial-panel/interfaces.js.map +1 -1
  1218. package/wizard/index.d.ts.map +1 -1
  1219. package/wizard/index.js.map +1 -1
  1220. package/wizard/interfaces.d.ts.map +1 -1
  1221. package/wizard/interfaces.js.map +1 -1
  1222. package/wizard/internal/analytics.d.ts.map +1 -1
  1223. package/wizard/internal/analytics.js.map +1 -1
  1224. package/wizard/unmount.d.ts.map +1 -1
  1225. package/wizard/unmount.js.map +1 -1
  1226. package/wizard/wizard-actions.d.ts.map +1 -1
  1227. package/wizard/wizard-actions.js.map +1 -1
  1228. package/wizard/wizard-form-header.d.ts.map +1 -1
  1229. package/wizard/wizard-form-header.js.map +1 -1
  1230. package/wizard/wizard-form.d.ts.map +1 -1
  1231. package/wizard/wizard-form.js.map +1 -1
  1232. package/wizard/wizard-navigation.d.ts.map +1 -1
  1233. package/wizard/wizard-navigation.js.map +1 -1
  1234. package/table/body-cell/use-stable-scroll-position.d.ts +0 -17
  1235. package/table/body-cell/use-stable-scroll-position.d.ts.map +0 -1
  1236. package/table/body-cell/use-stable-scroll-position.js +0 -51
  1237. package/table/body-cell/use-stable-scroll-position.js.map +0 -1
  1238. package/token-group/generic-token-group.d.ts +0 -24
  1239. package/token-group/generic-token-group.d.ts.map +0 -1
  1240. package/token-group/generic-token-group.js +0 -31
  1241. package/token-group/generic-token-group.js.map +0 -1
  1242. package/token-group/toggle.d.ts +0 -14
  1243. package/token-group/toggle.d.ts.map +0 -1
  1244. package/token-group/toggle.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n */\n title: string;\n /**\n * Label of the confirm button in the modal footer.\n */\n confirmLabel: string;\n /**\n * Label of the cancel button in the modal footer.\n */\n cancelLabel: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the built-in \"visible content selection\" preference (for example, visible columns in a table).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an aray of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n custom?: CustomPreferenceType;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label: string;\n }\n\n export interface WrapLinesPreference {\n label: string;\n description: string;\n }\n\n export interface StripedRowsPreference {\n label: string;\n description: string;\n }\n\n export interface ContentDensityPreference {\n label: string;\n description: string;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["collection-preferences/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n */\n title: string;\n /**\n * Label of the confirm button in the modal footer.\n */\n confirmLabel: string;\n /**\n * Label of the cancel button in the modal footer.\n */\n cancelLabel: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the built-in \"visible content selection\" preference (for example, visible columns in a table).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an aray of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n custom?: CustomPreferenceType;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label: string;\n }\n\n export interface WrapLinesPreference {\n label: string;\n description: string;\n }\n\n export interface StripedRowsPreference {\n label: string;\n description: string;\n }\n\n export interface ContentDensityPreference {\n label: string;\n description: string;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAG1D,eAAO,MAAM,eAAe,kFAOzB,2BAA2B,WAAW,KAAG,2BAA2B,WAOrE,CAAC;AAEH,eAAO,MAAM,gBAAgB,YAClB,2BAA2B,WAAW,WACtC,2BAA2B,WAAW,KAC9C,2BAA2B,WAO5B,CAAC;AAEH,UAAU,uBAAuB;IAC/B,IAAI,EAAE,KAAK,CAAC,SAAS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WAAW,EAAE,KAAK,CAAC,EAAE;YACrC,uDAAuD;YACvD,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CACE,CACP,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport InternalRadioGroup from '../radio-group/internal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport const copyPreferences = ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n custom,\n});\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => ({\n pageSize: newPref.pageSize !== undefined ? newPref.pageSize : oldPref.pageSize,\n wrapLines: newPref.wrapLines !== undefined ? newPref.wrapLines : oldPref.wrapLines,\n stripedRows: newPref.stripedRows !== undefined ? newPref.stripedRows : oldPref.stripedRows,\n contentDensity: newPref.contentDensity !== undefined ? newPref.contentDensity : oldPref.contentDensity,\n visibleContent: newPref.visibleContent !== undefined ? newPref.visibleContent : oldPref.visibleContent,\n custom: newPref.custom !== undefined ? newPref.custom : oldPref.custom,\n});\n\ninterface ModalContentLayoutProps {\n left: React.ReactNode;\n right: React.ReactNode;\n}\n\nexport const ModalContentLayout = ({ left, right }: ModalContentLayoutProps) => {\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const smallContainer = breakpoint === 'default';\n\n if (smallContainer) {\n return (\n <div ref={ref}>\n {left && <div>{left}</div>}\n {right && <div className={clsx(left && styles['second-column-small'])}>{right}</div>}\n </div>\n );\n }\n\n const columns = left && right ? 2 : 1;\n return (\n <div ref={ref}>\n <InternalColumnLayout columns={columns} variant=\"text-grid\">\n {left && <div>{left}</div>}\n {right && <div>{right}</div>}\n </InternalColumnLayout>\n </div>\n );\n};\n\ninterface PageSizePreferenceProps extends CollectionPreferencesProps.PageSizePreference {\n onChange: (value: number) => void;\n value?: number;\n}\n\nexport const PageSizePreference = ({ title, options, value, onChange }: PageSizePreferenceProps) => (\n <div className={styles['page-size']}>\n <InternalFormField label={title} stretch={true} className={styles['page-size-form-field']}>\n <InternalRadioGroup\n className={styles['page-size-radio-group']}\n value={`${value}`}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(parseInt(detail.value, 10))}\n />\n </InternalFormField>\n </div>\n);\n\ninterface WrapLinesPreferenceProps extends CollectionPreferencesProps.WrapLinesPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const WrapLinesPreference = ({ label, description, value, onChange }: WrapLinesPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['wrap-lines']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface StripedRowsPreferenceProps extends CollectionPreferencesProps.StripedRowsPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const StripedRowsPreference = ({ label, description, value, onChange }: StripedRowsPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['striped-rows']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface ContentDensityPreferenceProps extends CollectionPreferencesProps.ContentDensityPreference {\n onChange: (value: 'comfortable' | 'compact') => void;\n value?: 'comfortable' | 'compact';\n}\n\nexport const ContentDensityPreference = ({ label, description, value, onChange }: ContentDensityPreferenceProps) => (\n <InternalCheckbox\n checked={value === 'compact'}\n description={description}\n onChange={({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable')}\n className={styles['content-density']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface CustomPreferenceProps<T = any> extends Pick<CollectionPreferencesProps<T>, 'customPreference'> {\n onChange: (value: T) => void;\n value: T;\n}\nexport const CustomPreference = ({ value, customPreference, onChange }: CustomPreferenceProps) => {\n const [customState, setCustomState] = useState(value);\n if (customPreference) {\n return (\n <div className={styles.custom}>\n {customPreference(customState, value => {\n // prevent value to be treated as a functional callback\n setCustomState(() => value);\n onChange(value);\n })}\n </div>\n );\n }\n return null;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"lib/default/","sources":["collection-preferences/utils.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,MAAM,GACiC,EAA0C,EAAE,CAAC,CAAC;IACrF,QAAQ;IACR,SAAS;IACT,WAAW;IACX,cAAc;IACd,cAAc;IACd,MAAM;CACP,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAA+C,EAC/C,OAA+C,EACP,EAAE,CAAC,CAA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gB,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;YACrC,uDAAuD;YACvD,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CACE,CACP,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport InternalRadioGroup from '../radio-group/internal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport const copyPreferences = ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n custom,\n});\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => ({\n pageSize: newPref.pageSize !== undefined ? newPref.pageSize : oldPref.pageSize,\n wrapLines: newPref.wrapLines !== undefined ? newPref.wrapLines : oldPref.wrapLines,\n stripedRows: newPref.stripedRows !== undefined ? newPref.stripedRows : oldPref.stripedRows,\n contentDensity: newPref.contentDensity !== undefined ? newPref.contentDensity : oldPref.contentDensity,\n visibleContent: newPref.visibleContent !== undefined ? newPref.visibleContent : oldPref.visibleContent,\n custom: newPref.custom !== undefined ? newPref.custom : oldPref.custom,\n});\n\ninterface ModalContentLayoutProps {\n left: React.ReactNode;\n right: React.ReactNode;\n}\n\nexport const ModalContentLayout = ({ left, right }: ModalContentLayoutProps) => {\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const smallContainer = breakpoint === 'default';\n\n if (smallContainer) {\n return (\n <div ref={ref}>\n {left && <div>{left}</div>}\n {right && <div className={clsx(left && styles['second-column-small'])}>{right}</div>}\n </div>\n );\n }\n\n const columns = left && right ? 2 : 1;\n return (\n <div ref={ref}>\n <InternalColumnLayout columns={columns} variant=\"text-grid\">\n {left && <div>{left}</div>}\n {right && <div>{right}</div>}\n </InternalColumnLayout>\n </div>\n );\n};\n\ninterface PageSizePreferenceProps extends CollectionPreferencesProps.PageSizePreference {\n onChange: (value: number) => void;\n value?: number;\n}\n\nexport const PageSizePreference = ({ title, options, value, onChange }: PageSizePreferenceProps) => (\n <div className={styles['page-size']}>\n <InternalFormField label={title} stretch={true} className={styles['page-size-form-field']}>\n <InternalRadioGroup\n className={styles['page-size-radio-group']}\n value={`${value}`}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(parseInt(detail.value, 10))}\n />\n </InternalFormField>\n </div>\n);\n\ninterface WrapLinesPreferenceProps extends CollectionPreferencesProps.WrapLinesPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const WrapLinesPreference = ({ label, description, value, onChange }: WrapLinesPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['wrap-lines']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface StripedRowsPreferenceProps extends CollectionPreferencesProps.StripedRowsPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const StripedRowsPreference = ({ label, description, value, onChange }: StripedRowsPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['striped-rows']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface ContentDensityPreferenceProps extends CollectionPreferencesProps.ContentDensityPreference {\n onChange: (value: 'comfortable' | 'compact') => void;\n value?: 'comfortable' | 'compact';\n}\n\nexport const ContentDensityPreference = ({ label, description, value, onChange }: ContentDensityPreferenceProps) => (\n <InternalCheckbox\n checked={value === 'compact'}\n description={description}\n onChange={({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable')}\n className={styles['content-density']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface CustomPreferenceProps<T = any> extends Pick<CollectionPreferencesProps<T>, 'customPreference'> {\n onChange: (value: T) => void;\n value: T;\n}\nexport const CustomPreference = ({ value, customPreference, onChange }: CustomPreferenceProps) => {\n const [customState, setCustomState] = useState(value);\n if (customPreference) {\n return (\n <div className={styles.custom}>\n {customPreference(customState, value => {\n // prevent value to be treated as a functional callback\n setCustomState(() => value);\n onChange(value);\n })}\n </div>\n );\n }\n return null;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"visible-content.d.ts","sourceRoot":"","sources":["../../../src/collection-preferences/visible-content.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAY1D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACjD,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,EACL,OAAO,EACP,KAAU,EACV,QAAQ,GACT,EAAE,6BAA6B,eAuE/B"}
1
+ {"version":3,"file":"visible-content.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/visible-content.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAY1D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACjD,KAAK,CAAC,EAAE,aAAa,CAAC,M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EAAE,EAAE,iBAAiB,KAC9C,KAAK,CACH;QACL,oBAAC,oBAAoB,oBAAK,SAAS,CAAC,QAAQ,CAAC,IAAE,IAAI,EAAC,IAAI,KACrD,OAAO,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,gBAAgB,EAAE,EAAE;YAC7C,MAAM,YAAY,GAAG,GAAG,QAAQ,IAAI,gBAAgB,EAAE,CAAC;YACvD,OAAO,CACL,2CACE,GAAG,EAAE,gBAAgB,IACjB,SAAS,CAAC,OAAO,CAAC,IACtB,IAAI,EAAC,OAAO,qBACK,GAAG,iBAAiB,IAAI,YAAY,EAAE;gBAEvD,6CAAS,SAAS,CAAC,aAAa,CAAC,IAAE,EAAE,EAAE,YAAY,KAChD,WAAW,CAAC,KAAK,CACd;gBACN,iCACG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAC/C,eAAe,CAAC,MAAM,EAAE,gBAAgB,EAAE,WAAW,CAAC,CACvD,CACG,CACF,CACP,CAAC;QACJ,CAAC,CAAC,CACmB,CACnB,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalSpaceBetween from '../space-between/internal';\nimport InternalToggle from '../toggle/internal';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\n\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nconst isVisible = (id: string, visibleIds: ReadonlyArray<string>) => visibleIds.indexOf(id) !== -1;\n\ninterface ClassNameProps {\n className: string;\n}\nconst className = (suffix: string): ClassNameProps => ({\n className: styles[`visible-content-${suffix}`],\n});\n\ninterface VisibleContentPreferenceProps extends CollectionPreferencesProps.VisibleContentPreference {\n onChange: (value: ReadonlyArray<string>) => void;\n value?: ReadonlyArray<string>;\n}\n\nexport default function VisibleContentPreference({\n title,\n options,\n value = [],\n onChange,\n}: VisibleContentPreferenceProps) {\n const idPrefix = useUniqueId('visible-content');\n\n const flatOptionsIds = options.reduce<string[]>(\n (ids, group) => [...ids, ...group.options.reduce<string[]>((groupIds, option) => [...groupIds, option.id], [])],\n []\n );\n\n const onToggle = (id: string) => {\n if (!isVisible(id, value)) {\n onChange(\n [...value, id].sort((firstId, secondId) => flatOptionsIds.indexOf(firstId) - flatOptionsIds.indexOf(secondId))\n );\n } else {\n onChange(value.filter(currentId => currentId !== id));\n }\n };\n\n const selectionOption = (\n option: CollectionPreferencesProps.VisibleContentOption,\n optionGroupIndex: number,\n optionIndex: number\n ) => {\n const labelId = `${idPrefix}-${optionGroupIndex}-${optionIndex}`;\n return (\n <div key={optionIndex} {...className('option')}>\n <label {...className('option-label')} htmlFor={labelId}>\n {option.label}\n </label>\n <div {...className('toggle')}>\n <InternalToggle\n checked={isVisible(option.id, value)}\n onChange={() => onToggle(option.id)}\n disabled={option.editable === false}\n controlId={labelId}\n />\n </div>\n </div>\n );\n };\n\n const outerGroupLabelId = `${idPrefix}-outer`;\n return (\n <div className={styles['visible-content']}>\n <h3 {...className('title')} id={outerGroupLabelId}>\n {title}\n </h3>\n <InternalSpaceBetween {...className('groups')} size=\"xs\">\n {options.map((optionGroup, optionGroupIndex) => {\n const groupLabelId = `${idPrefix}-${optionGroupIndex}`;\n return (\n <div\n key={optionGroupIndex}\n {...className('group')}\n role=\"group\"\n aria-labelledby={`${outerGroupLabelId} ${groupLabelId}`}\n >\n <div {...className('group-label')} id={groupLabelId}>\n {optionGroup.label}\n </div>\n <div>\n {optionGroup.options.map((option, optionIndex) =>\n selectionOption(option, optionGroupIndex, optionIndex)\n )}\n </div>\n </div>\n );\n })}\n </InternalSpaceBetween>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"visible-content.js","sourceRoot":"lib/default/","sources":["collection-preferences/visible-content.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OA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AO,CAAC,IACtB,IAAI,EAAC,OAAO,qBACK,GAAG,iBAAiB,IAAI,YAAY,EAAE;gBAEvD,6CAAS,SAAS,CAAC,aAAa,CAAC,IAAE,EAAE,EAAE,YAAY,KAChD,WAAW,CAAC,KAAK,CACd;gBACN,iCACG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAC/C,eAAe,CAAC,MAAM,EAAE,gBAAgB,EAAE,WAAW,CAAC,CACvD,CACG,CACF,CACP,CAAC;QACJ,CAAC,CAAC,CACmB,CACnB,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalSpaceBetween from '../space-between/internal';\nimport InternalToggle from '../toggle/internal';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\n\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nconst isVisible = (id: string, visibleIds: ReadonlyArray<string>) => visibleIds.indexOf(id) !== -1;\n\ninterface ClassNameProps {\n className: string;\n}\nconst className = (suffix: string): ClassNameProps => ({\n className: styles[`visible-content-${suffix}`],\n});\n\ninterface VisibleContentPreferenceProps extends CollectionPreferencesProps.VisibleContentPreference {\n onChange: (value: ReadonlyArray<string>) => void;\n value?: ReadonlyArray<string>;\n}\n\nexport default function VisibleContentPreference({\n title,\n options,\n value = [],\n onChange,\n}: VisibleContentPreferenceProps) {\n const idPrefix = useUniqueId('visible-content');\n\n const flatOptionsIds = options.reduce<string[]>(\n (ids, group) => [...ids, ...group.options.reduce<string[]>((groupIds, option) => [...groupIds, option.id], [])],\n []\n );\n\n const onToggle = (id: string) => {\n if (!isVisible(id, value)) {\n onChange(\n [...value, id].sort((firstId, secondId) => flatOptionsIds.indexOf(firstId) - flatOptionsIds.indexOf(secondId))\n );\n } else {\n onChange(value.filter(currentId => currentId !== id));\n }\n };\n\n const selectionOption = (\n option: CollectionPreferencesProps.VisibleContentOption,\n optionGroupIndex: number,\n optionIndex: number\n ) => {\n const labelId = `${idPrefix}-${optionGroupIndex}-${optionIndex}`;\n return (\n <div key={optionIndex} {...className('option')}>\n <label {...className('option-label')} htmlFor={labelId}>\n {option.label}\n </label>\n <div {...className('toggle')}>\n <InternalToggle\n checked={isVisible(option.id, value)}\n onChange={() => onToggle(option.id)}\n disabled={option.editable === false}\n controlId={labelId}\n />\n </div>\n </div>\n );\n };\n\n const outerGroupLabelId = `${idPrefix}-outer`;\n return (\n <div className={styles['visible-content']}>\n <h3 {...className('title')} id={outerGroupLabelId}>\n {title}\n </h3>\n <InternalSpaceBetween {...className('groups')} size=\"xs\">\n {options.map((optionGroup, optionGroupIndex) => {\n const groupLabelId = `${idPrefix}-${optionGroupIndex}`;\n return (\n <div\n key={optionGroupIndex}\n {...className('group')}\n role=\"group\"\n aria-labelledby={`${outerGroupLabelId} ${groupLabelId}`}\n >\n <div {...className('group-label')} id={groupLabelId}>\n {optionGroup.label}\n </div>\n <div>\n {optionGroup.options.map((option, optionIndex) =>\n selectionOption(option, optionGroupIndex, optionIndex)\n )}\n </div>\n </div>\n );\n })}\n </InternalSpaceBetween>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/column-layout/index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,OAAW,EACX,OAAmB,EACnB,OAAgB,EAChB,cAAsB,EACtB,GAAG,KAAK,EACT,EAAE,iBAAiB,eAgBnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["column-layout/index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,EAAE,iBA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AC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalColumnLayout, { COLUMN_TRIGGERS } from './internal';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { ColumnLayoutProps } from './interfaces';\n\nexport { ColumnLayoutProps };\n\nexport default function ColumnLayout({\n columns = 1,\n variant = 'default',\n borders = 'none',\n disableGutters = false,\n ...props\n}: ColumnLayoutProps) {\n const baseComponentProps = useBaseComponent('ColumnLayout');\n const [breakpoint, ref] = useContainerBreakpoints(COLUMN_TRIGGERS);\n const externalProps = getExternalProps(props);\n return (\n <InternalColumnLayout\n columns={columns}\n variant={variant}\n borders={borders}\n disableGutters={disableGutters}\n {...externalProps}\n {...baseComponentProps}\n __breakpoint={breakpoint}\n ref={ref}\n />\n );\n}\n\napplyDisplayName(ColumnLayout, 'ColumnLayout');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["column-layout/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,oBAAoB,EAAE,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AAKpE,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAMjB;QANiB,EACnC,OAAO,GAAG,CAAC,EACX,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,MAAM,EAChB,cAAc,GAAG,KAAK,OAEJ,EADf,KAAK,cAL2B,mDAMpC,CADS;IAER,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC5D,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,GAAG,uBAAuB,CAAC,eAAe,CAAC,CAAC;IACnE,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,CACL,oBAAC,oBAAoB,kBACnB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,IAC1B,aAAa,EACb,kBAAkB,IACtB,YAAY,EAAE,UAAU,EACxB,GAAG,EAAE,GAAG,IACR,CACH,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalColumnLayout, { COLUMN_TRIGGERS } from './internal';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { ColumnLayoutProps } from './interfaces';\n\nexport { ColumnLayoutProps };\n\nexport default function ColumnLayout({\n columns = 1,\n variant = 'default',\n borders = 'none',\n disableGutters = false,\n ...props\n}: ColumnLayoutProps) {\n const baseComponentProps = useBaseComponent('ColumnLayout');\n const [breakpoint, ref] = useContainerBreakpoints(COLUMN_TRIGGERS);\n const externalProps = getExternalProps(props);\n return (\n <InternalColumnLayout\n columns={columns}\n variant={variant}\n borders={borders}\n disableGutters={disableGutters}\n {...externalProps}\n {...baseComponentProps}\n __breakpoint={breakpoint}\n ref={ref}\n />\n );\n}\n\napplyDisplayName(ColumnLayout, 'ColumnLayout');\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/column-layout/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAEpC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,yBAAiB,iBAAiB,CAAC;IACjC,KAAY,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAC9C,KAAY,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,KAAK,CAAC;CAClE;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,EAAE,0BAA0B;IAC9F,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["column-layout/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAEpC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,yBAAiB,iBAAiB,CAAC;IACjC,KAAY,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAC9C,KAAY,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,KAAK,CAAC;CAClE;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,EAAE,0BAA0B;IAC9F,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/column-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { ColumnLayoutBreakpoint } from './internal';\n\nexport interface ColumnLayoutProps extends BaseComponentProps {\n /**\n * Specifies the number of columns in each grid row.\n * Valid values are any integer between 1 and 4.\n */\n columns?: number;\n\n /**\n * Specifies the content type. This determines the spacing of the grid.\n */\n variant?: ColumnLayoutProps.Variant;\n\n /**\n * Controls whether dividers are placed between rows and columns.\n */\n borders?: ColumnLayoutProps.Borders;\n\n /**\n * Determines whether the default gutters between columns are removed.\n */\n disableGutters?: boolean;\n\n /**\n * The columns to render.\n */\n children?: React.ReactNode;\n}\n\nexport namespace ColumnLayoutProps {\n export type Variant = 'default' | 'text-grid';\n export type Borders = 'none' | 'vertical' | 'horizontal' | 'all';\n}\n\nexport interface InternalColumnLayoutProps extends ColumnLayoutProps, InternalBaseComponentProps {\n __breakpoint?: ColumnLayoutBreakpoint;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["column-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { ColumnLayoutBreakpoint } from './internal';\n\nexport interface ColumnLayoutProps extends BaseComponentProps {\n /**\n * Specifies the number of columns in each grid row.\n * Valid values are any integer between 1 and 4.\n */\n columns?: number;\n\n /**\n * Specifies the content type. This determines the spacing of the grid.\n */\n variant?: ColumnLayoutProps.Variant;\n\n /**\n * Controls whether dividers are placed between rows and columns.\n */\n borders?: ColumnLayoutProps.Borders;\n\n /**\n * Determines whether the default gutters between columns are removed.\n */\n disableGutters?: boolean;\n\n /**\n * The columns to render.\n */\n children?: React.ReactNode;\n}\n\nexport namespace ColumnLayoutProps {\n export type Variant = 'default' | 'text-grid';\n export type Borders = 'none' | 'vertical' | 'horizontal' | 'all';\n}\n\nexport interface InternalColumnLayoutProps extends ColumnLayoutProps, InternalBaseComponentProps {\n __breakpoint?: ColumnLayoutBreakpoint;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/column-layout/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,eAAO,MAAM,eAAe,mCAAoC,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAQ3E;;GAEG;;AACH,wBAyCG"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["column-layout/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,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CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,yBAAyB;gBAC5D,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,oBAAoB;aAClD,CAAC,EACF,YAAY,EAAE,YAAY,EAC1B,qBAAqB,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,IAAI,MAAM,CAAC,mBAAmB,UAAU,EAAE,CAAC,IAEzF,QAAQ,CACI,CACX,CACP,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport flattenChildren from 'react-keyed-flatten-children';\nimport InternalGrid from '../grid/internal';\nimport { GridProps } from '../grid/interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { repeat } from './util';\nimport styles from './styles.css.js';\nimport { InternalColumnLayoutProps } from './interfaces';\n\nexport const COLUMN_TRIGGERS = ['default', 'xxs', 'xs'] as const;\nexport type ColumnLayoutBreakpoint = typeof COLUMN_TRIGGERS[number] | null;\nconst COLUMN_DEFS: Record<number, GridProps.ElementDefinition | undefined> = {\n 1: { colspan: { default: 12, xxs: 12, xs: 12 } },\n 2: { colspan: { default: 12, xxs: 6, xs: 6 } },\n 3: { colspan: { default: 12, xxs: 6, xs: 4 } },\n 4: { colspan: { default: 12, xxs: 6, xs: 3 } },\n};\n\n/**\n * A responsive grid layout.\n */\nexport default React.forwardRef(function ColumnLayout(\n {\n columns = 1,\n variant = 'default',\n borders = 'none',\n disableGutters = false,\n children,\n __breakpoint,\n __internalRootRef,\n ...restProps\n }: InternalColumnLayoutProps,\n ref?: React.Ref<any>\n) {\n const baseProps = getBaseProps(restProps);\n const isTextGridVariant = variant === 'text-grid';\n const shouldDisableGutters = !isTextGridVariant && disableGutters;\n const shouldHaveHorizontalBorders = !isTextGridVariant && (borders === 'horizontal' || borders === 'all');\n const shouldHaveVerticalBorders = !isTextGridVariant && (borders === 'vertical' || borders === 'all');\n /*\n Flattening the children allows us to \"see through\" React Fragments and nested arrays.\n */\n const flattenedChildren = flattenChildren(children);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles['column-layout'])} ref={__internalRootRef}>\n <InternalGrid\n ref={ref}\n disableGutters={true}\n gridDefinition={repeat(COLUMN_DEFS[columns] ?? {}, flattenedChildren.length)}\n className={clsx(styles.grid, styles[`grid-columns-${columns}`], styles[`grid-variant-${variant}`], {\n [styles['grid-horizontal-borders']]: shouldHaveHorizontalBorders,\n [styles['grid-vertical-borders']]: shouldHaveVerticalBorders,\n [styles['grid-no-gutters']]: shouldDisableGutters,\n })}\n __breakpoint={__breakpoint}\n __responsiveClassName={breakpoint => breakpoint && styles[`grid-breakpoint-${breakpoint}`]}\n >\n {children}\n </InternalGrid>\n </div>\n );\n});\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["column-layout/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAU,CAAC;AAEjE,MAAM,WAAW,GAA4D;IAC3E,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;IAChD,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC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M,CAAC,MAAA,WAAW,CAAC,OAAO,CAAC,mCAAI,EAAE,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAC5E,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,gBAAgB,OAAO,EAAE,CAAC,EAAE;gBACjG,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC,EAAE,2BAA2B;gBAChE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,yBAAyB;gBAC5D,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,oBAAoB;aAClD,CAAC,EACF,YAAY,EAAE,YAAY,EAC1B,qBAAqB,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,IAAI,MAAM,CAAC,mBAAmB,UAAU,EAAE,CAAC,IAEzF,QAAQ,CACI,CACX,CACP,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport flattenChildren from 'react-keyed-flatten-children';\nimport InternalGrid from '../grid/internal';\nimport { GridProps } from '../grid/interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { repeat } from './util';\nimport styles from './styles.css.js';\nimport { InternalColumnLayoutProps } from './interfaces';\n\nexport const COLUMN_TRIGGERS = ['default', 'xxs', 'xs'] as const;\nexport type ColumnLayoutBreakpoint = typeof COLUMN_TRIGGERS[number] | null;\nconst COLUMN_DEFS: Record<number, GridProps.ElementDefinition | undefined> = {\n 1: { colspan: { default: 12, xxs: 12, xs: 12 } },\n 2: { colspan: { default: 12, xxs: 6, xs: 6 } },\n 3: { colspan: { default: 12, xxs: 6, xs: 4 } },\n 4: { colspan: { default: 12, xxs: 6, xs: 3 } },\n};\n\n/**\n * A responsive grid layout.\n */\nexport default React.forwardRef(function ColumnLayout(\n {\n columns = 1,\n variant = 'default',\n borders = 'none',\n disableGutters = false,\n children,\n __breakpoint,\n __internalRootRef,\n ...restProps\n }: InternalColumnLayoutProps,\n ref?: React.Ref<any>\n) {\n const baseProps = getBaseProps(restProps);\n const isTextGridVariant = variant === 'text-grid';\n const shouldDisableGutters = !isTextGridVariant && disableGutters;\n const shouldHaveHorizontalBorders = !isTextGridVariant && (borders === 'horizontal' || borders === 'all');\n const shouldHaveVerticalBorders = !isTextGridVariant && (borders === 'vertical' || borders === 'all');\n /*\n Flattening the children allows us to \"see through\" React Fragments and nested arrays.\n */\n const flattenedChildren = flattenChildren(children);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles['column-layout'])} ref={__internalRootRef}>\n <InternalGrid\n ref={ref}\n disableGutters={true}\n gridDefinition={repeat(COLUMN_DEFS[columns] ?? {}, flattenedChildren.length)}\n className={clsx(styles.grid, styles[`grid-columns-${columns}`], styles[`grid-variant-${variant}`], {\n [styles['grid-horizontal-borders']]: shouldHaveHorizontalBorders,\n [styles['grid-vertical-borders']]: shouldHaveVerticalBorders,\n [styles['grid-no-gutters']]: shouldDisableGutters,\n })}\n __breakpoint={__breakpoint}\n __responsiveClassName={breakpoint => breakpoint && styles[`grid-breakpoint-${breakpoint}`]}\n >\n {children}\n </InternalGrid>\n </div>\n );\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/column-layout/util.tsx"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,CAMtD"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"lib/default/","sources":["column-layout/util.tsx"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,CAMtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/column-layout/util.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,UAAU,MAAM,CAAI,KAAQ,EAAE,KAAa;IAC/C,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;QAC9B,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport function repeat<T>(value: T, times: number): T[] {\n const array = [];\n for (let i = 0; i < times; i++) {\n array[i] = value;\n }\n return array;\n}\n"]}
1
+ {"version":3,"file":"util.js","sourceRoot":"lib/default/","sources":["column-layout/util.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,UAAU,MAAM,CAAI,KAAQ,EAAE,KAAa;IAC/C,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;QAC9B,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport function repeat<T>(value: T, times: number): T[] {\n const array = [];\n for (let i = 0; i < times; i++) {\n array[i] = value;\n }\n return array;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/container/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,OAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,GAAG,KAAK,EACT,EAAE,cAAc,eAYhB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["container/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,OAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,GAAG,KAAK,EACT,EAAE,cAAc,eAYhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/container/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAKjB;QALiB,EAChC,OAAO,GAAG,SAAS,EACnB,qBAAqB,GAAG,KAAK,EAC7B,sBAAsB,GAAG,KAAK,OAEf,EADZ,KAAK,cAJwB,8DAKjC,CADS;IAER,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzD,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,CACL,oBAAC,iBAAiB,kBAChB,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,sBAAsB,EAAE,sBAAsB,IAC1C,aAAa,EACb,kBAAkB,EACtB,CACH,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalContainer from './internal';\nimport { ContainerProps } from './interfaces';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\n\nexport { ContainerProps };\n\nexport default function Container({\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n ...props\n}: ContainerProps) {\n const baseComponentProps = useBaseComponent('Container');\n const externalProps = getExternalProps(props);\n return (\n <InternalContainer\n variant={variant}\n disableHeaderPaddings={disableHeaderPaddings}\n disableContentPaddings={disableContentPaddings}\n {...externalProps}\n {...baseComponentProps}\n />\n );\n}\n\napplyDisplayName(Container, 'Container');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["container/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAKjB;QALiB,EAChC,OAAO,GAAG,SAAS,EACnB,qBAAqB,GAAG,KAAK,EAC7B,sBAAsB,GAAG,KAAK,OAEf,EADZ,KAAK,cAJwB,8DAKjC,CADS;IAER,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzD,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,CACL,oBAAC,iBAAiB,kBAChB,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,sBAAsB,EAAE,sBAAsB,IAC1C,aAAa,EACb,kBAAkB,EACtB,CACH,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport InternalContainer from './internal';\nimport { ContainerProps } from './interfaces';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\n\nexport { ContainerProps };\n\nexport default function Container({\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n ...props\n}: ContainerProps) {\n const baseComponentProps = useBaseComponent('Container');\n const externalProps = getExternalProps(props);\n return (\n <InternalContainer\n variant={variant}\n disableHeaderPaddings={disableHeaderPaddings}\n disableContentPaddings={disableContentPaddings}\n {...externalProps}\n {...baseComponentProps}\n />\n );\n}\n\napplyDisplayName(Container, 'Container');\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["container/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Enabling this property will make the container to fit into available height. If content is too short, the container\n * will stretch, if too long, the container will shrink and show vertical scrollbar.\n *\n * Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch\n * all containers to the height of the longest one, to avoid extra vertical scroll areas.\n */\n fitHeight?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Specify a container variant with one of the following:\n * * `default` - Use this variant in standalone context.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * @visualrefresh `stacked` variant\n */\n variant?: 'default' | 'stacked';\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Enabling this property will make the container to fit into available height. If content is too short, the container\n * will stretch, if too long, the container will shrink and show vertical scrollbar.\n *\n * Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch\n * all containers to the height of the longest one, to avoid extra vertical scroll areas.\n */\n fitHeight?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Specify a container variant with one of the following:\n * * `default` - Use this variant in standalone context.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * @visualrefresh `stacked` variant\n */\n variant?: 'default' | 'stacked';\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,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AC,qBAAqB,CAAC,CAAC,EAAE,CAAC,QAAQ,IAAI,eAAe;iBAC9D,CAAC,IACE,YAAY,EACZ,YAAY,IAChB,GAAG,EAAE,eAAe,KAEnB,YAAY,CAAC,CAAC,CAAC,CACd,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,8BAA8B,CAAC,IAAG,MAAM,CAAO,CAC5F,CAAC,CAAC,CAAC,CACF,MAAM,CACP,CACG,CACuB,CAChC;QACD,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;gBAC9B,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,sBAAsB;aACnD,CAAC,IAED,QAAQ,CACL;QACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;gBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;gBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;aACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACP,CAAC;AACJ,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, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n __stickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n ...restProps\n}: InternalContainerProps) {\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset);\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n const headerIdProp = __headerId ? { id: __headerId } : {};\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n isSticky && [styles['sticky-enabled']]\n )}\n ref={mergedRef}\n >\n {header && (\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(styles.header, styles[`header-variant-${variant}`], {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n })}\n {...headerIdProp}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], 'awsui-context-content-header')}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n )}\n <div\n className={clsx(styles.content, {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,E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C,qBAAqB;oBACjD,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,QAAQ,IAAI,eAAe;iBAC9D,CAAC,IACE,YAAY,EACZ,YAAY,IAChB,GAAG,EAAE,eAAe,KAEnB,YAAY,CAAC,CAAC,CAAC,CACd,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,8BAA8B,CAAC,IAAG,MAAM,CAAO,CAC5F,CAAC,CAAC,CAAC,CACF,MAAM,CACP,CACG,CACuB,CAChC;QACD,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;gBAC9B,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,sBAAsB;aACnD,CAAC,IAED,QAAQ,CACL;QACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;gBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;gBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;aACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACP,CAAC;AACJ,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, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n __stickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n ...restProps\n}: InternalContainerProps) {\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset);\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n const headerIdProp = __headerId ? { id: __headerId } : {};\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n isSticky && [styles['sticky-enabled']]\n )}\n ref={mergedRef}\n >\n {header && (\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(styles.header, styles[`header-variant-${variant}`], {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n })}\n {...headerIdProp}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], 'awsui-context-content-header')}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n )}\n <div\n className={clsx(styles.content, {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-sticky-header.d.ts","sourceRoot":"","sources":["../../../src/container/use-sticky-header.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAoE,MAAM,OAAO,CAAC;AAQpG,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,mDAA8D,CAAC;AAE/F,eAAO,MAAM,eAAe,YACjB,UAAU,cAAc,CAAC,aACvB,UAAU,cAAc,CAAC,mBACnB,OAAO,mBACP,MAAM;;;;;;;;;;CAyExB,CAAC;AAEF,wBAAgB,uBAAuB,YAGtC"}
1
+ {"version":3,"file":"use-sticky-header.d.ts","sourceRoot":"lib/default/","sources":["container/use-sticky-header.ts"],"names":[],"mapp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,IAAI,SAAS,CAAC,OAAO,EAAE;YACxC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC;YAC5D,MAAM,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC;YAChE,IAAI,OAAO,GAAG,SAAS,EAAE;gBACvB,UAAU,CAAC,IAAI,CAAC,CAAC;aAClB;iBAAM;gBACL,UAAU,CAAC,KAAK,CAAC,CAAC;aACnB;SACF;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,QAAQ,EAAE;YACZ,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;YACtD,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;YAChD,OAAO,GAAG,EAAE;gBACV,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;gBACzD,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;YACrD,CAAC,CAAC;SACH;IACH,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;IAC7B,OAAO;QACL,QAAQ;QACR,OAAO;QACP,YAAY;KACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,uBAAuB;IACrC,MAAM,QAAQ,GAAG,SAAS,EAAE,CAAC;IAC7B,OAAO,sBAAsB,EAAE,IAAI,CAAC,QAAQ,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { RefObject, useState, useLayoutEffect, useCallback, useEffect, createContext } from 'react';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { findUpUntil, supportsStickyPosition } from '../internal/utils/dom';\nimport { getOverflowParents } from '../internal/utils/scrollable-containers';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport customCssProps from '../internal/generated/custom-css-properties';\n\ninterface StickyHeaderContextProps {\n isStuck: boolean;\n}\n\nexport const StickyHeaderContext = createContext<StickyHeaderContextProps>({ isStuck: false });\n\nexport const useStickyHeader = (\n rootRef: RefObject<HTMLDivElement>,\n headerRef: RefObject<HTMLDivElement>,\n __stickyHeader?: boolean,\n __stickyOffset?: number\n) => {\n // We reach into AppLayoutContext in case sticky header needs to be offset down by the height\n // of other sticky elements positioned on top of the view.\n const { stickyOffsetTop } = useAppLayoutContext();\n const isSticky = useSupportsStickyHeader() && !!__stickyHeader;\n const isRefresh = useVisualRefresh();\n\n // If it has overflow parents inside the app layout, we shouldn't apply a sticky offset.\n const [hasInnerOverflowParents, setHasInnerOverflowParents] = useState(false);\n const [isStuck, setIsStuck] = useState(false);\n useLayoutEffect(() => {\n if (rootRef.current) {\n const overflowParents = getOverflowParents(rootRef.current);\n const mainElement = findUpUntil(rootRef.current, elem => elem.tagName === 'MAIN');\n // In both versions of the app layout, the scrolling element for disableBodyScroll\n // is the <main>. If the closest overflow parent is also the closest <main> and we have\n // offset values, it's safe to assume that it's the app layout scroll root and we\n // should stop there.\n setHasInnerOverflowParents(overflowParents.length > 0 && overflowParents[0] !== mainElement);\n }\n }, [rootRef]);\n\n const effectiveStickyOffset = __stickyOffset ?? (hasInnerOverflowParents ? 0 : stickyOffsetTop);\n\n /**\n * The AppLayout refactor removed the need for passing the sticky offset in px all the time through the\n * AppLayoutDomContext provider because that information already exists on the DOM in a custom property\n * on the Layout subcomponent. Thus, if the Container header is sticky, we are in Visual Refresh and use\n * body scroll then we will use that property. When a component is used outside AppLayout, we fall back\n * to the default offset calculated in AppLayoutDomContext.\n */\n let computedOffset = `${effectiveStickyOffset}px`;\n if (isRefresh && !hasInnerOverflowParents) {\n computedOffset = `var(${customCssProps.offsetTopWithNotifications}, ${computedOffset})`;\n }\n\n const stickyStyles = isSticky\n ? {\n style: {\n top: computedOffset,\n },\n }\n : {};\n\n // \"stuck\" state, when the header has moved from its original posititon has a\n // box-shadow, applied here by a \"header-stuck\" className\n const checkIfStuck = useCallback(() => {\n if (rootRef.current && headerRef.current) {\n const rootTop = rootRef.current.getBoundingClientRect().top;\n const headerTop = headerRef.current.getBoundingClientRect().top;\n if (rootTop < headerTop) {\n setIsStuck(true);\n } else {\n setIsStuck(false);\n }\n }\n }, [rootRef, headerRef]);\n useEffect(() => {\n if (isSticky) {\n window.addEventListener('scroll', checkIfStuck, true);\n window.addEventListener('resize', checkIfStuck);\n return () => {\n window.removeEventListener('scroll', checkIfStuck, true);\n window.removeEventListener('resize', checkIfStuck);\n };\n }\n }, [isSticky, checkIfStuck]);\n return {\n isSticky,\n isStuck,\n stickyStyles,\n };\n};\n\nexport function useSupportsStickyHeader() {\n const isMobile = useMobile();\n return supportsStickyPosition() && !isMobile;\n}\n"]}
1
+ {"version":3,"file":"use-sticky-header.js","sourceRoot":"lib/default/","sources":["container/use-sticky-header.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAa,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AAMzE,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAA2B,EAAE,OAAO,EAAE,KAAK,EA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uBAAuB;IACrC,MAAM,QAAQ,GAAG,SAAS,EAAE,CAAC;IAC7B,OAAO,sBAAsB,EAAE,IAAI,CAAC,QAAQ,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { RefObject, useState, useLayoutEffect, useCallback, useEffect, createContext } from 'react';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { findUpUntil, supportsStickyPosition } from '../internal/utils/dom';\nimport { getOverflowParents } from '../internal/utils/scrollable-containers';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport customCssProps from '../internal/generated/custom-css-properties';\n\ninterface StickyHeaderContextProps {\n isStuck: boolean;\n}\n\nexport const StickyHeaderContext = createContext<StickyHeaderContextProps>({ isStuck: false });\n\nexport const useStickyHeader = (\n rootRef: RefObject<HTMLDivElement>,\n headerRef: RefObject<HTMLDivElement>,\n __stickyHeader?: boolean,\n __stickyOffset?: number\n) => {\n // We reach into AppLayoutContext in case sticky header needs to be offset down by the height\n // of other sticky elements positioned on top of the view.\n const { stickyOffsetTop } = useAppLayoutContext();\n const isSticky = useSupportsStickyHeader() && !!__stickyHeader;\n const isRefresh = useVisualRefresh();\n\n // If it has overflow parents inside the app layout, we shouldn't apply a sticky offset.\n const [hasInnerOverflowParents, setHasInnerOverflowParents] = useState(false);\n const [isStuck, setIsStuck] = useState(false);\n useLayoutEffect(() => {\n if (rootRef.current) {\n const overflowParents = getOverflowParents(rootRef.current);\n const mainElement = findUpUntil(rootRef.current, elem => elem.tagName === 'MAIN');\n // In both versions of the app layout, the scrolling element for disableBodyScroll\n // is the <main>. If the closest overflow parent is also the closest <main> and we have\n // offset values, it's safe to assume that it's the app layout scroll root and we\n // should stop there.\n setHasInnerOverflowParents(overflowParents.length > 0 && overflowParents[0] !== mainElement);\n }\n }, [rootRef]);\n\n const effectiveStickyOffset = __stickyOffset ?? (hasInnerOverflowParents ? 0 : stickyOffsetTop);\n\n /**\n * The AppLayout refactor removed the need for passing the sticky offset in px all the time through the\n * AppLayoutDomContext provider because that information already exists on the DOM in a custom property\n * on the Layout subcomponent. Thus, if the Container header is sticky, we are in Visual Refresh and use\n * body scroll then we will use that property. When a component is used outside AppLayout, we fall back\n * to the default offset calculated in AppLayoutDomContext.\n */\n let computedOffset = `${effectiveStickyOffset}px`;\n if (isRefresh && !hasInnerOverflowParents) {\n computedOffset = `var(${customCssProps.offsetTopWithNotifications}, ${computedOffset})`;\n }\n\n const stickyStyles = isSticky\n ? {\n style: {\n top: computedOffset,\n },\n }\n : {};\n\n // \"stuck\" state, when the header has moved from its original posititon has a\n // box-shadow, applied here by a \"header-stuck\" className\n const checkIfStuck = useCallback(() => {\n if (rootRef.current && headerRef.current) {\n const rootTop = rootRef.current.getBoundingClientRect().top;\n const headerTop = headerRef.current.getBoundingClientRect().top;\n if (rootTop < headerTop) {\n setIsStuck(true);\n } else {\n setIsStuck(false);\n }\n }\n }, [rootRef, headerRef]);\n useEffect(() => {\n if (isSticky) {\n window.addEventListener('scroll', checkIfStuck, true);\n window.addEventListener('resize', checkIfStuck);\n return () => {\n window.removeEventListener('scroll', checkIfStuck, true);\n window.removeEventListener('resize', checkIfStuck);\n };\n }\n }, [isSticky, checkIfStuck]);\n return {\n isSticky,\n isStuck,\n stickyStyles,\n };\n};\n\nexport function useSupportsStickyHeader() {\n const isMobile = useMobile();\n return supportsStickyPosition() && !isMobile;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/content-layout/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAG9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["content-layout/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAG9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/content-layout/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,qBAAqB,MAAM,YAAY,CAAC;AAC/C,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAC7D,OAAO,oBAAC,qBAAqB,oBAAK,KAAK,EAAM,kBAAkB,EAAI,CAAC;AACtE,CAAC;AAED,gBAAgB,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { ContentLayoutProps } from './interfaces';\nimport InternalContentLayout from './internal';\nimport useBaseComponent from '../internal/hooks/use-base-component';\n\nexport { ContentLayoutProps };\n\nexport default function ContentLayout(props: ContentLayoutProps) {\n const baseComponentProps = useBaseComponent('ContentLayout');\n return <InternalContentLayout {...props} {...baseComponentProps} />;\n}\n\napplyDisplayName(ContentLayout, 'ContentLayout');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["content-layout/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,qBAAqB,MAAM,YAAY,CAAC;AAC/C,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC7D,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAC7D,OAAO,oBAAC,qBAAqB,oBAAK,KAAK,EAAM,kBAAkB,EAAI,CAAC;AACtE,CAAC;AAED,gBAAgB,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { ContentLayoutProps } from './interfaces';\nimport InternalContentLayout from './internal';\nimport useBaseComponent from '../internal/hooks/use-base-component';\n\nexport { ContentLayoutProps };\n\nexport default function ContentLayout(props: ContentLayoutProps) {\n const baseComponentProps = useBaseComponent('ContentLayout');\n return <InternalContentLayout {...props} {...baseComponentProps} />;\n}\n\napplyDisplayName(ContentLayout, 'ContentLayout');\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/content-layout/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["content-layout/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/content-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface ContentLayoutProps extends BaseComponentProps {\n /**\n * Use this slot to render the main content of the layout below the header.\n * @displayname content\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the layout has an overlap between the header and content.\n * If true, the overlap will be removed.\n * @visualrefresh\n */\n disableOverlap?: boolean;\n\n /**\n * Use this slot to render the header content for the layout.\n */\n header?: React.ReactNode;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["content-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface ContentLayoutProps extends BaseComponentProps {\n /**\n * Use this slot to render the main content of the layout below the header.\n * @displayname content\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the layout has an overlap between the header and content.\n * If true, the overlap will be removed.\n * @visualrefresh\n */\n disableOverlap?: boolean;\n\n /**\n * Use this slot to render the header content for the layout.\n */\n header?: React.ReactNode;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/content-layout/internal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAOlF,KAAK,0BAA0B,GAAG,kBAAkB,GAAG,0BAA0B,CAAC;AAElF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,QAAQ,EACR,cAAc,EACd,MAAM,EACN,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,0BAA0B,eAiD5B"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["content-layout/internal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAOlF,KAAK,0BAA0B,GAAG,kBAAkB,GAAG,0BAA0B,CAAC;AAElF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,QAAQ,EACR,cAAc,EACd,MAAM,EACN,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,0BAA0B,eAiD5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/content-layout/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAMjB;QANiB,EAC5C,QAAQ,EACR,cAAc,EACd,MAA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served.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { ContentLayoutProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\ntype InternalContentLayoutProps = ContentLayoutProps & InternalBaseComponentProps;\n\nexport default function InternalContentLayout({\n children,\n disableOverlap,\n header,\n __internalRootRef,\n ...rest\n}: InternalContentLayoutProps) {\n const baseProps = getBaseProps(rest);\n const rootElement = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(rootElement, __internalRootRef);\n\n const isVisualRefresh = useVisualRefresh();\n const { hasBreadcrumbs } = useAppLayoutContext();\n const overlapElement = useDynamicOverlap();\n\n /**\n * Disable the overlap if the component is missing either a header or child\n * content. If the component is not using visual refresh then the overlap\n * will not be displayed at all. This is handled in the CSS not the JavaScript.\n */\n const isOverlapDisabled = !children || !header || disableOverlap;\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.layout, {\n [styles['is-overlap-disabled']]: isOverlapDisabled,\n [styles['is-visual-refresh']]: isVisualRefresh,\n })}\n ref={mergedRef}\n >\n <div\n className={clsx(\n styles.background,\n { [styles['is-overlap-disabled']]: isOverlapDisabled },\n 'awsui-context-content-header'\n )}\n ref={overlapElement}\n />\n\n {header && (\n <div\n className={clsx(\n styles.header,\n { [styles['has-breadcrumbs']]: isVisualRefresh && hasBreadcrumbs },\n 'awsui-context-content-header'\n )}\n >\n {header}\n </div>\n )}\n\n <div className={styles.content}>{children}</div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["content-layout/internal.tsx"],"names":[],"mappings":";AAA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G,EAAE,SAAS;QAEd,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,UAAU,EACjB,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,iBAAiB,EAAE,EACtD,8BAA8B,CAC/B,EACD,GAAG,EAAE,cAAc,GACnB;QAED,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,MAAM,EACb,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,eAAe,IAAI,cAAc,EAAE,EAClE,8BAA8B,CAC/B,IAEA,MAAM,CACH,CACP;QAED,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,QAAQ,CAAO,CAC5C,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { ContentLayoutProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\ntype InternalContentLayoutProps = ContentLayoutProps & InternalBaseComponentProps;\n\nexport default function InternalContentLayout({\n children,\n disableOverlap,\n header,\n __internalRootRef,\n ...rest\n}: InternalContentLayoutProps) {\n const baseProps = getBaseProps(rest);\n const rootElement = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(rootElement, __internalRootRef);\n\n const isVisualRefresh = useVisualRefresh();\n const { hasBreadcrumbs } = useAppLayoutContext();\n const overlapElement = useDynamicOverlap();\n\n /**\n * Disable the overlap if the component is missing either a header or child\n * content. If the component is not using visual refresh then the overlap\n * will not be displayed at all. This is handled in the CSS not the JavaScript.\n */\n const isOverlapDisabled = !children || !header || disableOverlap;\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.layout, {\n [styles['is-overlap-disabled']]: isOverlapDisabled,\n [styles['is-visual-refresh']]: isVisualRefresh,\n })}\n ref={mergedRef}\n >\n <div\n className={clsx(\n styles.background,\n { [styles['is-overlap-disabled']]: isOverlapDisabled },\n 'awsui-context-content-header'\n )}\n ref={overlapElement}\n />\n\n {header && (\n <div\n className={clsx(\n styles.header,\n { [styles['has-breadcrumbs']]: isVisualRefresh && hasBreadcrumbs },\n 'awsui-context-content-header'\n )}\n >\n {header}\n </div>\n )}\n\n <div className={styles.content}>{children}</div>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../src/contexts/form-field.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,+BAA+B,IAAI,qBAAqB,EACxD,mBAAmB,GACpB,MAAM,wCAAwC,CAAC"}
1
+ {"version":3,"file":"form-field.d.ts","sourceRoot":"lib/default/","sources":["contexts/form-field.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,+BAA+B,IAAI,qBAAqB,EACxD,mBAAmB,GACpB,MAAM,wCAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.js","sourceRoot":"","sources":["../../../src/contexts/form-field.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAEL,mBAAmB,GACpB,MAAM,wCAAwC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport {\n FormFieldValidationControlProps as FormFieldContextValue,\n useFormFieldContext,\n} from '../internal/context/form-field-context';\n"]}
1
+ {"version":3,"file":"form-field.js","sourceRoot":"lib/default/","sources":["contexts/form-field.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAEL,mBAAmB,GACpB,MAAM,wCAAwC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport {\n FormFieldValidationControlProps as FormFieldContextValue,\n useFormFieldContext,\n} from '../internal/context/form-field-context';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAc,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,QAAA,MAAM,SAAS,yFAGb,CAAC;AAIH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["date-input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAc,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,QAAA,MAAM,SAAS,yFAGb,CAAC;AAIH,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/date-input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAc,MAAM,OAAO,CAAC;AAGnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,iBAAiB,MAAM,YAAY,CAAC;AAI3C,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAqB,EAAE,GAA0B,EAAE,EAAE;IACvF,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzD,OAAO,oBAAC,iBAAiB,oBAAK,KAAK,EAAM,kBAAkB,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAC5E,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAEzC,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Ref } from 'react';\n\nimport { DateInputProps } from './interfaces';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport InternalDateInput from './internal';\n\nexport { DateInputProps };\n\nconst DateInput = React.forwardRef((props: DateInputProps, ref: Ref<HTMLInputElement>) => {\n const baseComponentProps = useBaseComponent('DateInput');\n return <InternalDateInput {...props} {...baseComponentProps} ref={ref} />;\n});\n\napplyDisplayName(DateInput, 'DateInput');\n\nexport default DateInput;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["date-input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAc,MAAM,OAAO,CAAC;AAGnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,iBAAiB,MAAM,YAAY,CAAC;AAI3C,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAqB,EAAE,GAA0B,EAAE,EAAE;IACvF,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzD,OAAO,oBAAC,iBAAiB,oBAAK,KAAK,EAAM,kBAAkB,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAC5E,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAEzC,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Ref } from 'react';\n\nimport { DateInputProps } from './interfaces';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport InternalDateInput from './internal';\n\nexport { DateInputProps };\n\nconst DateInput = React.forwardRef((props: DateInputProps, ref: Ref<HTMLInputElement>) => {\n const baseComponentProps = useBaseComponent('DateInput');\n return <InternalDateInput {...props} {...baseComponentProps} ref={ref} />;\n});\n\napplyDisplayName(DateInput, 'DateInput');\n\nexport default DateInput;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/date-input/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AAEzF,MAAM,WAAW,cAAe,SAAQ,cAAc,EAAE,+BAA+B,EAAE,kBAAkB;IACzG;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,cAAc,CAAC;IAC9B,KAAY,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;CAClC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["date-input/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AAEzF,MAAM,WAAW,cAAe,SAAQ,cAAc,EAAE,+BAA+B,EAAE,kBAAkB;IACzG;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,cAAc,CAAC;IAC9B,KAAY,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/date-input/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseInputProps, InputProps } from '../input/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\n\nexport interface DateInputProps extends BaseInputProps, FormFieldValidationControlProps, BaseComponentProps {\n /**\n * The current input value, in YYYY-MM-DD format.\n */\n value: string;\n}\n\nexport namespace DateInputProps {\n export type Ref = InputProps.Ref;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["date-input/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseInputProps, InputProps } from '../input/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\n\nexport interface DateInputProps extends BaseInputProps, FormFieldValidationControlProps, BaseComponentProps {\n /**\n * The current input value, in YYYY-MM-DD format.\n */\n value: string;\n}\n\nexport namespace DateInputProps {\n export type Ref = InputProps.Ref;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/date-input/internal.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAc,MAAM,OAAO,CAAC;AAQnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAoBlF,QAAA,MAAM,iBAAiB,sHAkBtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["date-input/internal.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAc,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AO,EAAE,MAAM,EAAE,CAAC,EAAE;KACpC;CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CACxC,CAAC,EAA+E,EAAE,GAA0B,EAAE,EAAE;QAA/G,EAAE,KAAK,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,OAAoC,EAA/B,KAAK,cAArD,0CAAuD,CAAF;IACpD,OAAO,CACL,oBAAC,WAAW,kBACV,GAAG,EAAE,GAAG,IACJ,KAAK,IACT,KAAK,EAAE,YAAY,CAAC,KAAK,IAAI,EAAE,CAAC,EAChC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAChG,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,IAAI,EACb,YAAY,EAAE,KAAK,EACnB,yBAAyB,EAAE,KAAK,EAChC,yBAAyB,EAAE,IAAI,EAC/B,iBAAiB,EAAE,iBAAiB,IACpC,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport clsx from 'clsx';\nimport { getDaysInMonth } from 'date-fns';\nimport React, { Ref } from 'react';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { displayToIso, isoToDisplay, parseDate } from '../internal/utils/date-time';\n\nimport MaskedInput from '../internal/components/masked-input';\nimport { MaskArgs } from '../internal/components/masked-input/utils/mask-format';\n\nimport styles from './styles.css.js';\nimport { DateInputProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\ntype InternalDateInputProps = DateInputProps & InternalBaseComponentProps;\n\nfunction daysMax(value: string): number {\n // force to first day in month, as new Date('2018-02-30') -> March 2nd 2018\n const baseDate = displayToIso(value).substring(0, 7);\n return getDaysInMonth(parseDate(baseDate));\n}\n\nconst maskArgs: MaskArgs = {\n separator: '/',\n inputSeparators: ['-', '.', ' '],\n segments: [\n { min: 0, max: 9999, default: 2000, length: 4 },\n { min: 1, max: 12, length: 2 },\n { min: 1, max: daysMax, length: 2 },\n ],\n};\n\nconst InternalDateInput = React.forwardRef(\n ({ value, onChange, __internalRootRef = null, ...props }: InternalDateInputProps, ref: Ref<HTMLInputElement>) => {\n return (\n <MaskedInput\n ref={ref}\n {...props}\n value={isoToDisplay(value || '')}\n onChange={event => fireNonCancelableEvent(onChange, { value: displayToIso(event.detail.value) })}\n className={clsx(styles.root, props.className)}\n mask={maskArgs}\n autofix={true}\n autoComplete={false}\n disableAutocompleteOnBlur={false}\n disableBrowserAutocorrect={true}\n __internalRootRef={__internalRootRef}\n />\n );\n }\n);\n\nexport default InternalDateInput;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["date-input/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAc,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEpF,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAG9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAMrC,SAAS,OAAO,CAAC,KAAa;IAC5B,2EAA2E;IAC3E,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrD,OAAO,cAAc,CAAC,SAAS,CAAC,QAAQ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.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport clsx from 'clsx';\nimport { getDaysInMonth } from 'date-fns';\nimport React, { Ref } from 'react';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { displayToIso, isoToDisplay, parseDate } from '../internal/utils/date-time';\n\nimport MaskedInput from '../internal/components/masked-input';\nimport { MaskArgs } from '../internal/components/masked-input/utils/mask-format';\n\nimport styles from './styles.css.js';\nimport { DateInputProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\ntype InternalDateInputProps = DateInputProps & InternalBaseComponentProps;\n\nfunction daysMax(value: string): number {\n // force to first day in month, as new Date('2018-02-30') -> March 2nd 2018\n const baseDate = displayToIso(value).substring(0, 7);\n return getDaysInMonth(parseDate(baseDate));\n}\n\nconst maskArgs: MaskArgs = {\n separator: '/',\n inputSeparators: ['-', '.', ' '],\n segments: [\n { min: 0, max: 9999, default: 2000, length: 4 },\n { min: 1, max: 12, length: 2 },\n { min: 1, max: daysMax, length: 2 },\n ],\n};\n\nconst InternalDateInput = React.forwardRef(\n ({ value, onChange, __internalRootRef = null, ...props }: InternalDateInputProps, ref: Ref<HTMLInputElement>) => {\n return (\n <MaskedInput\n ref={ref}\n {...props}\n value={isoToDisplay(value || '')}\n onChange={event => fireNonCancelableEvent(onChange, { value: displayToIso(event.detail.value) })}\n className={clsx(styles.root, props.className)}\n mask={maskArgs}\n autofix={true}\n autoComplete={false}\n disableAutocompleteOnBlur={false}\n disableBrowserAutocorrect={true}\n __internalRootRef={__internalRootRef}\n />\n );\n }\n);\n\nexport default InternalDateInput;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-picker/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AA0B/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,6FA0Kf,CAAC;AAGF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["date-picker/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AA0B/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,6FA0Kf,CAAC;AAGF,eAAe,UAAU,CAAC"}