@cloudscape-design/components 3.0.841 → 3.0.842

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 (595) hide show
  1. package/alert/styles.css.js +28 -28
  2. package/alert/styles.scoped.css +49 -45
  3. package/alert/styles.selectors.js +28 -28
  4. package/anchor-navigation/styles.css.js +8 -8
  5. package/anchor-navigation/styles.scoped.css +24 -20
  6. package/anchor-navigation/styles.selectors.js +8 -8
  7. package/annotation-context/annotation/styles.css.js +24 -24
  8. package/annotation-context/annotation/styles.scoped.css +36 -32
  9. package/annotation-context/annotation/styles.selectors.js +24 -24
  10. package/app-layout/content-wrapper/styles.css.js +3 -3
  11. package/app-layout/content-wrapper/styles.scoped.css +10 -6
  12. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  13. package/app-layout/drawer/styles.css.js +14 -14
  14. package/app-layout/drawer/styles.scoped.css +28 -24
  15. package/app-layout/drawer/styles.selectors.js +14 -14
  16. package/app-layout/mobile-toolbar/styles.css.js +8 -8
  17. package/app-layout/mobile-toolbar/styles.scoped.css +12 -8
  18. package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
  19. package/app-layout/resize/styles.css.js +5 -5
  20. package/app-layout/resize/styles.scoped.css +16 -12
  21. package/app-layout/resize/styles.selectors.js +5 -5
  22. package/app-layout/split-panel/styles.css.js +2 -2
  23. package/app-layout/split-panel/styles.scoped.css +6 -2
  24. package/app-layout/split-panel/styles.selectors.js +2 -2
  25. package/app-layout/styles.css.js +12 -12
  26. package/app-layout/styles.scoped.css +16 -12
  27. package/app-layout/styles.selectors.js +12 -12
  28. package/app-layout/toggles/styles.css.js +2 -2
  29. package/app-layout/toggles/styles.scoped.css +12 -8
  30. package/app-layout/toggles/styles.selectors.js +2 -2
  31. package/app-layout/visual-refresh/styles.css.js +86 -86
  32. package/app-layout/visual-refresh/styles.scoped.css +167 -163
  33. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  34. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +10 -10
  35. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +17 -13
  36. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +10 -10
  37. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  38. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +9 -5
  39. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  40. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +19 -19
  41. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +39 -35
  42. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +19 -19
  43. package/app-layout/visual-refresh-toolbar/split-panel/styles.css.js +1 -1
  44. package/app-layout/visual-refresh-toolbar/split-panel/styles.scoped.css +5 -1
  45. package/app-layout/visual-refresh-toolbar/split-panel/styles.selectors.js +1 -1
  46. package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +13 -13
  47. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +19 -15
  48. package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +13 -13
  49. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +7 -7
  50. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +23 -19
  51. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +7 -7
  52. package/area-chart/styles.css.js +6 -6
  53. package/area-chart/styles.scoped.css +15 -11
  54. package/area-chart/styles.selectors.js +6 -6
  55. package/attribute-editor/styles.css.js +14 -14
  56. package/attribute-editor/styles.scoped.css +28 -24
  57. package/attribute-editor/styles.selectors.js +14 -14
  58. package/badge/styles.css.js +10 -10
  59. package/badge/styles.scoped.css +14 -10
  60. package/badge/styles.selectors.js +10 -10
  61. package/box/styles.css.js +191 -191
  62. package/box/styles.scoped.css +240 -236
  63. package/box/styles.selectors.js +191 -191
  64. package/breadcrumb-group/all-items-dropdown.d.ts +15 -0
  65. package/breadcrumb-group/all-items-dropdown.d.ts.map +1 -0
  66. package/breadcrumb-group/all-items-dropdown.js +47 -0
  67. package/breadcrumb-group/all-items-dropdown.js.map +1 -0
  68. package/breadcrumb-group/implementation.d.ts.map +1 -1
  69. package/breadcrumb-group/implementation.js +9 -6
  70. package/breadcrumb-group/implementation.js.map +1 -1
  71. package/breadcrumb-group/item/styles.css.js +7 -7
  72. package/breadcrumb-group/item/styles.scoped.css +29 -25
  73. package/breadcrumb-group/item/styles.selectors.js +7 -7
  74. package/breadcrumb-group/styles.css.js +14 -10
  75. package/breadcrumb-group/styles.scoped.css +124 -11
  76. package/breadcrumb-group/styles.selectors.js +14 -10
  77. package/breadcrumb-group/utils.d.ts +0 -2
  78. package/breadcrumb-group/utils.d.ts.map +1 -1
  79. package/breadcrumb-group/utils.js +17 -46
  80. package/breadcrumb-group/utils.js.map +1 -1
  81. package/button/index.d.ts.map +1 -1
  82. package/button/index.js +3 -3
  83. package/button/index.js.map +1 -1
  84. package/button/interfaces.d.ts +18 -0
  85. package/button/interfaces.d.ts.map +1 -1
  86. package/button/interfaces.js.map +1 -1
  87. package/button/internal.d.ts.map +1 -1
  88. package/button/internal.js +15 -2
  89. package/button/internal.js.map +1 -1
  90. package/button/styles.css.js +21 -21
  91. package/button/styles.scoped.css +158 -154
  92. package/button/styles.selectors.js +21 -21
  93. package/button/test-classes/styles.css.js +2 -1
  94. package/button/test-classes/styles.scoped.css +5 -1
  95. package/button/test-classes/styles.selectors.js +2 -1
  96. package/button-dropdown/category-elements/styles.css.js +14 -14
  97. package/button-dropdown/category-elements/styles.scoped.css +27 -23
  98. package/button-dropdown/category-elements/styles.selectors.js +14 -14
  99. package/button-dropdown/index.d.ts.map +1 -1
  100. package/button-dropdown/index.js +2 -2
  101. package/button-dropdown/index.js.map +1 -1
  102. package/button-dropdown/interfaces.d.ts +18 -2
  103. package/button-dropdown/interfaces.d.ts.map +1 -1
  104. package/button-dropdown/interfaces.js.map +1 -1
  105. package/button-dropdown/internal.d.ts.map +1 -1
  106. package/button-dropdown/internal.js +13 -6
  107. package/button-dropdown/internal.js.map +1 -1
  108. package/button-dropdown/item-element/index.d.ts.map +1 -1
  109. package/button-dropdown/item-element/index.js +3 -2
  110. package/button-dropdown/item-element/index.js.map +1 -1
  111. package/button-dropdown/item-element/styles.css.js +14 -13
  112. package/button-dropdown/item-element/styles.scoped.css +33 -21
  113. package/button-dropdown/item-element/styles.selectors.js +14 -13
  114. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  115. package/button-dropdown/mobile-expandable-group/styles.scoped.css +9 -5
  116. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  117. package/button-dropdown/styles.css.js +21 -17
  118. package/button-dropdown/styles.scoped.css +51 -38
  119. package/button-dropdown/styles.selectors.js +21 -17
  120. package/button-group/file-input-item.d.ts +11 -0
  121. package/button-group/file-input-item.d.ts.map +1 -0
  122. package/button-group/file-input-item.js +23 -0
  123. package/button-group/file-input-item.js.map +1 -0
  124. package/button-group/interfaces.d.ts +23 -1
  125. package/button-group/interfaces.d.ts.map +1 -1
  126. package/button-group/interfaces.js.map +1 -1
  127. package/button-group/internal.d.ts.map +1 -1
  128. package/button-group/internal.js +2 -2
  129. package/button-group/internal.js.map +1 -1
  130. package/button-group/item-element.d.ts +1 -0
  131. package/button-group/item-element.d.ts.map +1 -1
  132. package/button-group/item-element.js +12 -6
  133. package/button-group/item-element.js.map +1 -1
  134. package/button-group/styles.css.js +4 -4
  135. package/button-group/styles.scoped.css +10 -6
  136. package/button-group/styles.selectors.js +4 -4
  137. package/calendar/grid/index.d.ts +1 -2
  138. package/calendar/grid/index.d.ts.map +1 -1
  139. package/calendar/grid/index.js.map +1 -1
  140. package/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts.map +1 -1
  141. package/calendar/grid/use-calendar-grid-keyboard-navigation.js +2 -1
  142. package/calendar/grid/use-calendar-grid-keyboard-navigation.js.map +1 -1
  143. package/calendar/internal.d.ts.map +1 -1
  144. package/calendar/internal.js +2 -1
  145. package/calendar/internal.js.map +1 -1
  146. package/calendar/styles.css.js +21 -21
  147. package/calendar/styles.scoped.css +47 -43
  148. package/calendar/styles.selectors.js +21 -21
  149. package/calendar/utils/navigation-day.d.ts +8 -0
  150. package/calendar/utils/navigation-day.d.ts.map +1 -0
  151. package/calendar/utils/navigation-day.js +39 -0
  152. package/calendar/utils/navigation-day.js.map +1 -0
  153. package/calendar/utils/{navigation.d.ts → navigation-month.d.ts} +2 -6
  154. package/calendar/utils/navigation-month.d.ts.map +1 -0
  155. package/calendar/utils/navigation-month.js +39 -0
  156. package/calendar/utils/navigation-month.js.map +1 -0
  157. package/cards/styles.css.js +39 -39
  158. package/cards/styles.scoped.css +54 -50
  159. package/cards/styles.selectors.js +39 -39
  160. package/checkbox/styles.css.js +3 -3
  161. package/checkbox/styles.scoped.css +9 -5
  162. package/checkbox/styles.selectors.js +3 -3
  163. package/code-editor/resizable-box/styles.css.js +3 -3
  164. package/code-editor/resizable-box/styles.scoped.css +10 -6
  165. package/code-editor/resizable-box/styles.selectors.js +3 -3
  166. package/code-editor/styles.css.js +33 -33
  167. package/code-editor/styles.scoped.css +139 -135
  168. package/code-editor/styles.selectors.js +33 -33
  169. package/collection-preferences/content-display/styles.css.js +12 -12
  170. package/collection-preferences/content-display/styles.scoped.css +23 -15
  171. package/collection-preferences/content-display/styles.selectors.js +12 -12
  172. package/collection-preferences/styles.css.js +38 -38
  173. package/collection-preferences/styles.scoped.css +58 -42
  174. package/collection-preferences/styles.selectors.js +38 -38
  175. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  176. package/column-layout/flexible-column-layout/styles.scoped.css +14 -10
  177. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  178. package/column-layout/styles.css.js +13 -13
  179. package/column-layout/styles.scoped.css +49 -45
  180. package/column-layout/styles.selectors.js +13 -13
  181. package/container/styles.css.js +31 -31
  182. package/container/styles.scoped.css +60 -56
  183. package/container/styles.selectors.js +31 -31
  184. package/content-layout/styles.css.js +14 -14
  185. package/content-layout/styles.scoped.css +20 -16
  186. package/content-layout/styles.selectors.js +14 -14
  187. package/date-picker/styles.css.js +7 -7
  188. package/date-picker/styles.scoped.css +13 -9
  189. package/date-picker/styles.selectors.js +7 -7
  190. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  191. package/date-range-picker/calendar/grids/index.js +1 -1
  192. package/date-range-picker/calendar/grids/index.js.map +1 -1
  193. package/date-range-picker/calendar/grids/styles.css.js +28 -28
  194. package/date-range-picker/calendar/grids/styles.scoped.css +47 -43
  195. package/date-range-picker/calendar/grids/styles.selectors.js +28 -28
  196. package/date-range-picker/calendar/index.js +1 -1
  197. package/date-range-picker/calendar/index.js.map +1 -1
  198. package/date-range-picker/index.d.ts.map +1 -1
  199. package/date-range-picker/index.js +3 -10
  200. package/date-range-picker/index.js.map +1 -1
  201. package/date-range-picker/relative-range/styles.css.js +9 -9
  202. package/date-range-picker/relative-range/styles.scoped.css +17 -13
  203. package/date-range-picker/relative-range/styles.selectors.js +9 -9
  204. package/date-range-picker/styles.css.js +38 -38
  205. package/date-range-picker/styles.scoped.css +51 -47
  206. package/date-range-picker/styles.selectors.js +38 -38
  207. package/date-range-picker/time-offset.d.ts +2 -1
  208. package/date-range-picker/time-offset.d.ts.map +1 -1
  209. package/date-range-picker/time-offset.js +1 -1
  210. package/date-range-picker/time-offset.js.map +1 -1
  211. package/date-range-picker/utils.d.ts +9 -0
  212. package/date-range-picker/utils.d.ts.map +1 -1
  213. package/date-range-picker/utils.js +19 -2
  214. package/date-range-picker/utils.js.map +1 -1
  215. package/drawer/styles.css.js +5 -5
  216. package/drawer/styles.scoped.css +16 -12
  217. package/drawer/styles.selectors.js +5 -5
  218. package/expandable-section/styles.css.js +34 -34
  219. package/expandable-section/styles.scoped.css +69 -65
  220. package/expandable-section/styles.selectors.js +34 -34
  221. package/file-dropzone/styles.css.js +3 -3
  222. package/file-dropzone/styles.scoped.css +9 -5
  223. package/file-dropzone/styles.selectors.js +3 -3
  224. package/file-input/internal.d.ts +5 -1
  225. package/file-input/internal.d.ts.map +1 -1
  226. package/file-input/internal.js +18 -10
  227. package/file-input/internal.js.map +1 -1
  228. package/file-input/styles.css.js +6 -5
  229. package/file-input/styles.scoped.css +33 -8
  230. package/file-input/styles.selectors.js +6 -5
  231. package/file-token-group/styles.css.js +22 -22
  232. package/file-token-group/styles.scoped.css +35 -31
  233. package/file-token-group/styles.selectors.js +22 -22
  234. package/flashbar/styles.css.js +50 -50
  235. package/flashbar/styles.scoped.css +152 -148
  236. package/flashbar/styles.selectors.js +50 -50
  237. package/form/styles.css.js +8 -8
  238. package/form/styles.scoped.css +12 -8
  239. package/form/styles.selectors.js +8 -8
  240. package/form-field/styles.css.js +24 -24
  241. package/form-field/styles.scoped.css +42 -38
  242. package/form-field/styles.selectors.js +24 -24
  243. package/grid/styles.css.js +53 -53
  244. package/grid/styles.scoped.css +58 -54
  245. package/grid/styles.selectors.js +53 -53
  246. package/header/styles.css.js +34 -34
  247. package/header/styles.scoped.css +56 -52
  248. package/header/styles.selectors.js +34 -34
  249. package/help-panel/styles.css.js +6 -6
  250. package/help-panel/styles.scoped.css +73 -69
  251. package/help-panel/styles.selectors.js +6 -6
  252. package/hotspot/styles.css.js +7 -7
  253. package/hotspot/styles.scoped.css +13 -9
  254. package/hotspot/styles.selectors.js +7 -7
  255. package/i18n/messages/all.all.js +1 -1
  256. package/i18n/messages/all.all.json +1 -1
  257. package/i18n/messages/all.ar.js +1 -1
  258. package/i18n/messages/all.ar.json +1 -1
  259. package/i18n/messages/all.de.js +1 -1
  260. package/i18n/messages/all.de.json +1 -1
  261. package/i18n/messages/all.en-GB.js +1 -1
  262. package/i18n/messages/all.en-GB.json +1 -1
  263. package/i18n/messages/all.en.js +1 -1
  264. package/i18n/messages/all.en.json +1 -1
  265. package/i18n/messages/all.es.js +1 -1
  266. package/i18n/messages/all.es.json +1 -1
  267. package/i18n/messages/all.fr.js +1 -1
  268. package/i18n/messages/all.fr.json +1 -1
  269. package/i18n/messages/all.id.js +1 -1
  270. package/i18n/messages/all.id.json +1 -1
  271. package/i18n/messages/all.it.js +1 -1
  272. package/i18n/messages/all.it.json +1 -1
  273. package/i18n/messages/all.ja.js +1 -1
  274. package/i18n/messages/all.ja.json +1 -1
  275. package/i18n/messages/all.ko.js +1 -1
  276. package/i18n/messages/all.ko.json +1 -1
  277. package/i18n/messages/all.pt-BR.js +1 -1
  278. package/i18n/messages/all.pt-BR.json +1 -1
  279. package/i18n/messages/all.tr.js +1 -1
  280. package/i18n/messages/all.tr.json +1 -1
  281. package/i18n/messages/all.zh-CN.js +1 -1
  282. package/i18n/messages/all.zh-CN.json +1 -1
  283. package/i18n/messages/all.zh-TW.js +1 -1
  284. package/i18n/messages/all.zh-TW.json +1 -1
  285. package/i18n/messages-types.d.ts +3 -0
  286. package/i18n/messages-types.d.ts.map +1 -1
  287. package/i18n/messages-types.js.map +1 -1
  288. package/icon/styles.css.js +38 -38
  289. package/icon/styles.scoped.css +89 -85
  290. package/icon/styles.selectors.js +38 -38
  291. package/input/styles.css.js +13 -13
  292. package/input/styles.scoped.css +36 -32
  293. package/input/styles.selectors.js +13 -13
  294. package/internal/components/abstract-switch/styles.css.js +13 -13
  295. package/internal/components/abstract-switch/styles.scoped.css +24 -20
  296. package/internal/components/abstract-switch/styles.selectors.js +13 -13
  297. package/internal/components/button-trigger/styles.css.js +13 -13
  298. package/internal/components/button-trigger/styles.scoped.css +31 -27
  299. package/internal/components/button-trigger/styles.selectors.js +13 -13
  300. package/internal/components/chart-filter/styles.css.js +3 -3
  301. package/internal/components/chart-filter/styles.scoped.css +7 -3
  302. package/internal/components/chart-filter/styles.selectors.js +3 -3
  303. package/internal/components/chart-legend/styles.css.js +6 -6
  304. package/internal/components/chart-legend/styles.scoped.css +19 -15
  305. package/internal/components/chart-legend/styles.selectors.js +6 -6
  306. package/internal/components/chart-plot/styles.css.js +5 -5
  307. package/internal/components/chart-plot/styles.scoped.css +9 -5
  308. package/internal/components/chart-plot/styles.selectors.js +5 -5
  309. package/internal/components/chart-popover/styles.css.js +3 -3
  310. package/internal/components/chart-popover/styles.scoped.css +7 -3
  311. package/internal/components/chart-popover/styles.selectors.js +3 -3
  312. package/internal/components/chart-series-details/styles.css.js +20 -20
  313. package/internal/components/chart-series-details/styles.scoped.css +37 -33
  314. package/internal/components/chart-series-details/styles.selectors.js +20 -20
  315. package/internal/components/chart-series-marker/styles.css.js +5 -5
  316. package/internal/components/chart-series-marker/styles.scoped.css +11 -7
  317. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  318. package/internal/components/chart-wrapper/styles.css.js +9 -9
  319. package/internal/components/chart-wrapper/styles.scoped.css +15 -11
  320. package/internal/components/chart-wrapper/styles.selectors.js +9 -9
  321. package/internal/components/checkbox-icon/styles.css.js +9 -9
  322. package/internal/components/checkbox-icon/styles.scoped.css +13 -9
  323. package/internal/components/checkbox-icon/styles.selectors.js +9 -9
  324. package/internal/components/dnd-container/styles.css.js +1 -1
  325. package/internal/components/dnd-container/styles.scoped.css +8 -4
  326. package/internal/components/dnd-container/styles.selectors.js +1 -1
  327. package/internal/components/dropdown/styles.css.js +20 -20
  328. package/internal/components/dropdown/styles.scoped.css +41 -37
  329. package/internal/components/dropdown/styles.selectors.js +20 -20
  330. package/internal/components/dropdown-footer/styles.css.js +3 -3
  331. package/internal/components/dropdown-footer/styles.scoped.css +7 -3
  332. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  333. package/internal/components/dropdown-status/styles.css.js +2 -2
  334. package/internal/components/dropdown-status/styles.scoped.css +6 -2
  335. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  336. package/internal/components/handle/styles.css.js +2 -2
  337. package/internal/components/handle/styles.scoped.css +10 -6
  338. package/internal/components/handle/styles.selectors.js +2 -2
  339. package/internal/components/menu-dropdown/index.d.ts.map +1 -1
  340. package/internal/components/menu-dropdown/index.js +2 -1
  341. package/internal/components/menu-dropdown/index.js.map +1 -1
  342. package/internal/components/menu-dropdown/styles.css.js +7 -7
  343. package/internal/components/menu-dropdown/styles.scoped.css +17 -13
  344. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  345. package/internal/components/option/styles.css.js +17 -17
  346. package/internal/components/option/styles.scoped.css +33 -29
  347. package/internal/components/option/styles.selectors.js +17 -17
  348. package/internal/components/options-list/styles.css.js +3 -3
  349. package/internal/components/options-list/styles.scoped.css +7 -3
  350. package/internal/components/options-list/styles.selectors.js +3 -3
  351. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  352. package/internal/components/options-list/utils/use-keyboard.js +13 -16
  353. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  354. package/internal/components/panel-resize-handle/styles.css.js +5 -5
  355. package/internal/components/panel-resize-handle/styles.scoped.css +14 -10
  356. package/internal/components/panel-resize-handle/styles.selectors.js +5 -5
  357. package/internal/components/screenreader-only/styles.css.js +1 -1
  358. package/internal/components/screenreader-only/styles.scoped.css +5 -1
  359. package/internal/components/screenreader-only/styles.selectors.js +1 -1
  360. package/internal/components/selectable-item/styles.css.js +16 -16
  361. package/internal/components/selectable-item/styles.scoped.css +33 -29
  362. package/internal/components/selectable-item/styles.selectors.js +16 -16
  363. package/internal/components/token-list/styles.css.js +10 -10
  364. package/internal/components/token-list/styles.scoped.css +28 -24
  365. package/internal/components/token-list/styles.selectors.js +10 -10
  366. package/internal/environment.js +1 -1
  367. package/internal/environment.json +1 -1
  368. package/internal/hooks/use-performance-marks/index.d.ts.map +1 -1
  369. package/internal/hooks/use-performance-marks/index.js +23 -2
  370. package/internal/hooks/use-performance-marks/index.js.map +1 -1
  371. package/internal/manifest.json +1 -1
  372. package/internal/styles/motion/utils.d.ts +2 -0
  373. package/internal/styles/motion/utils.d.ts.map +1 -0
  374. package/internal/styles/motion/utils.js +5 -0
  375. package/internal/styles/motion/utils.js.map +1 -0
  376. package/internal/utils/date-time/format-date-iso.d.ts +2 -1
  377. package/internal/utils/date-time/format-date-iso.d.ts.map +1 -1
  378. package/internal/utils/date-time/format-date-iso.js +6 -2
  379. package/internal/utils/date-time/format-date-iso.js.map +1 -1
  380. package/internal/utils/date-time/format-date-localized.d.ts +2 -1
  381. package/internal/utils/date-time/format-date-localized.d.ts.map +1 -1
  382. package/internal/utils/date-time/format-date-localized.js +9 -2
  383. package/internal/utils/date-time/format-date-localized.js.map +1 -1
  384. package/internal/utils/date-time/format-date-time-with-offset.d.ts.map +1 -1
  385. package/internal/utils/date-time/format-date-time-with-offset.js +4 -3
  386. package/internal/utils/date-time/format-date-time-with-offset.js.map +1 -1
  387. package/internal/utils/date-time/index.d.ts +1 -1
  388. package/internal/utils/date-time/index.d.ts.map +1 -1
  389. package/internal/utils/date-time/index.js +1 -1
  390. package/internal/utils/date-time/index.js.map +1 -1
  391. package/internal/utils/date-time/is-iso-only.d.ts +9 -0
  392. package/internal/utils/date-time/is-iso-only.d.ts.map +1 -0
  393. package/internal/utils/date-time/is-iso-only.js +18 -0
  394. package/internal/utils/date-time/is-iso-only.js.map +1 -0
  395. package/internal/utils/handle-key.d.ts +1 -2
  396. package/internal/utils/handle-key.d.ts.map +1 -1
  397. package/internal/utils/handle-key.js.map +1 -1
  398. package/internal/utils/throttle.d.ts +1 -2
  399. package/internal/utils/throttle.d.ts.map +1 -1
  400. package/internal/utils/throttle.js.map +1 -1
  401. package/key-value-pairs/styles.css.js +8 -8
  402. package/key-value-pairs/styles.scoped.css +13 -9
  403. package/key-value-pairs/styles.selectors.js +8 -8
  404. package/link/styles.css.js +20 -20
  405. package/link/styles.scoped.css +75 -71
  406. package/link/styles.selectors.js +20 -20
  407. package/live-region/styles.css.js +2 -2
  408. package/live-region/styles.scoped.css +7 -3
  409. package/live-region/styles.selectors.js +2 -2
  410. package/mixed-line-bar-chart/styles.css.js +11 -11
  411. package/mixed-line-bar-chart/styles.scoped.css +23 -19
  412. package/mixed-line-bar-chart/styles.selectors.js +11 -11
  413. package/modal/index.js +1 -1
  414. package/modal/index.js.map +1 -1
  415. package/modal/styles.css.js +23 -23
  416. package/modal/styles.scoped.css +42 -38
  417. package/modal/styles.selectors.js +23 -23
  418. package/multiselect/styles.css.js +3 -3
  419. package/multiselect/styles.scoped.css +7 -3
  420. package/multiselect/styles.selectors.js +3 -3
  421. package/package.json +1 -1
  422. package/pagination/styles.css.js +9 -9
  423. package/pagination/styles.scoped.css +27 -23
  424. package/pagination/styles.selectors.js +9 -9
  425. package/pie-chart/styles.css.js +27 -27
  426. package/pie-chart/styles.scoped.css +52 -48
  427. package/pie-chart/styles.selectors.js +27 -27
  428. package/popover/styles.css.js +53 -53
  429. package/popover/styles.scoped.css +89 -69
  430. package/popover/styles.selectors.js +53 -53
  431. package/progress-bar/styles.css.js +19 -19
  432. package/progress-bar/styles.scoped.css +42 -34
  433. package/progress-bar/styles.selectors.js +19 -19
  434. package/prompt-input/styles.css.js +14 -14
  435. package/prompt-input/styles.scoped.css +43 -39
  436. package/prompt-input/styles.selectors.js +14 -14
  437. package/property-filter/filtering-token/styles.css.js +18 -18
  438. package/property-filter/filtering-token/styles.scoped.css +45 -41
  439. package/property-filter/filtering-token/styles.selectors.js +18 -18
  440. package/property-filter/styles.css.js +39 -39
  441. package/property-filter/styles.scoped.css +45 -41
  442. package/property-filter/styles.selectors.js +39 -39
  443. package/radio-group/styles.css.js +10 -10
  444. package/radio-group/styles.scoped.css +20 -16
  445. package/radio-group/styles.selectors.js +10 -10
  446. package/s3-resource-selector/s3-modal/basic-table.js +1 -0
  447. package/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  448. package/s3-resource-selector/s3-modal/styles.css.js +3 -3
  449. package/s3-resource-selector/s3-modal/styles.scoped.css +9 -5
  450. package/s3-resource-selector/s3-modal/styles.selectors.js +3 -3
  451. package/segmented-control/styles.css.js +15 -15
  452. package/segmented-control/styles.scoped.css +38 -34
  453. package/segmented-control/styles.selectors.js +15 -15
  454. package/select/parts/filter.d.ts +1 -1
  455. package/select/parts/styles.css.js +21 -21
  456. package/select/parts/styles.scoped.css +26 -22
  457. package/select/parts/styles.selectors.js +21 -21
  458. package/select/styles.css.js +1 -1
  459. package/select/styles.scoped.css +5 -1
  460. package/select/styles.selectors.js +1 -1
  461. package/select/utils/use-select.js +1 -1
  462. package/select/utils/use-select.js.map +1 -1
  463. package/side-navigation/styles.css.js +30 -30
  464. package/side-navigation/styles.scoped.css +50 -46
  465. package/side-navigation/styles.selectors.js +30 -30
  466. package/slider/styles.css.js +26 -26
  467. package/slider/styles.scoped.css +80 -76
  468. package/slider/styles.selectors.js +26 -26
  469. package/space-between/styles.css.js +23 -23
  470. package/space-between/styles.scoped.css +28 -24
  471. package/space-between/styles.selectors.js +23 -23
  472. package/spinner/styles.css.js +13 -13
  473. package/spinner/styles.scoped.css +23 -19
  474. package/spinner/styles.selectors.js +13 -13
  475. package/split-panel/icons/styles.css.js +22 -22
  476. package/split-panel/icons/styles.scoped.css +28 -24
  477. package/split-panel/icons/styles.selectors.js +22 -22
  478. package/split-panel/styles.css.js +26 -26
  479. package/split-panel/styles.scoped.css +47 -43
  480. package/split-panel/styles.selectors.js +26 -26
  481. package/status-indicator/styles.css.js +23 -23
  482. package/status-indicator/styles.scoped.css +33 -29
  483. package/status-indicator/styles.selectors.js +23 -23
  484. package/steps/styles.css.js +6 -6
  485. package/steps/styles.scoped.css +13 -9
  486. package/steps/styles.selectors.js +6 -6
  487. package/table/body-cell/styles.css.js +46 -46
  488. package/table/body-cell/styles.scoped.css +296 -292
  489. package/table/body-cell/styles.selectors.js +46 -46
  490. package/table/expandable-rows/styles.css.js +3 -3
  491. package/table/expandable-rows/styles.scoped.css +17 -13
  492. package/table/expandable-rows/styles.selectors.js +3 -3
  493. package/table/header-cell/styles.css.js +26 -26
  494. package/table/header-cell/styles.scoped.css +69 -65
  495. package/table/header-cell/styles.selectors.js +26 -26
  496. package/table/header-cell/th-element.d.ts +2 -1
  497. package/table/header-cell/th-element.d.ts.map +1 -1
  498. package/table/header-cell/th-element.js +2 -2
  499. package/table/header-cell/th-element.js.map +1 -1
  500. package/table/interfaces.d.ts +14 -3
  501. package/table/interfaces.d.ts.map +1 -1
  502. package/table/interfaces.js.map +1 -1
  503. package/table/internal.d.ts.map +1 -1
  504. package/table/internal.js +13 -4
  505. package/table/internal.js.map +1 -1
  506. package/table/progressive-loading/items-loader.d.ts +8 -2
  507. package/table/progressive-loading/items-loader.d.ts.map +1 -1
  508. package/table/progressive-loading/items-loader.js +11 -5
  509. package/table/progressive-loading/items-loader.js.map +1 -1
  510. package/table/progressive-loading/loader-cell.d.ts +2 -3
  511. package/table/progressive-loading/loader-cell.d.ts.map +1 -1
  512. package/table/progressive-loading/loader-cell.js +2 -2
  513. package/table/progressive-loading/loader-cell.js.map +1 -1
  514. package/table/progressive-loading/progressive-loading-utils.d.ts.map +1 -1
  515. package/table/progressive-loading/progressive-loading-utils.js +2 -2
  516. package/table/progressive-loading/progressive-loading-utils.js.map +1 -1
  517. package/table/resizer/styles.css.js +8 -8
  518. package/table/resizer/styles.scoped.css +19 -15
  519. package/table/resizer/styles.selectors.js +8 -8
  520. package/table/selection/interfaces.d.ts +1 -0
  521. package/table/selection/interfaces.d.ts.map +1 -1
  522. package/table/selection/interfaces.js.map +1 -1
  523. package/table/selection/selection-cell.d.ts.map +1 -1
  524. package/table/selection/selection-cell.js +4 -3
  525. package/table/selection/selection-cell.js.map +1 -1
  526. package/table/selection/styles.css.js +3 -3
  527. package/table/selection/styles.scoped.css +7 -3
  528. package/table/selection/styles.selectors.js +3 -3
  529. package/table/selection/use-selection.js +1 -0
  530. package/table/selection/use-selection.js.map +1 -1
  531. package/table/sticky-scrollbar/styles.css.js +6 -6
  532. package/table/sticky-scrollbar/styles.scoped.css +14 -10
  533. package/table/sticky-scrollbar/styles.selectors.js +6 -6
  534. package/table/styles.css.js +34 -34
  535. package/table/styles.scoped.css +45 -41
  536. package/table/styles.selectors.js +34 -34
  537. package/tabs/styles.css.js +28 -28
  538. package/tabs/styles.scoped.css +57 -49
  539. package/tabs/styles.selectors.js +28 -28
  540. package/tag-editor/styles.css.js +3 -3
  541. package/tag-editor/styles.scoped.css +14 -10
  542. package/tag-editor/styles.selectors.js +3 -3
  543. package/test-utils/dom/button-group/index.d.ts +5 -0
  544. package/test-utils/dom/button-group/index.js +16 -7
  545. package/test-utils/dom/button-group/index.js.map +1 -1
  546. package/test-utils/selectors/button-group/index.d.ts +5 -0
  547. package/test-utils/selectors/button-group/index.js +16 -7
  548. package/test-utils/selectors/button-group/index.js.map +1 -1
  549. package/test-utils/tsconfig.tsbuildinfo +1 -1
  550. package/text-content/styles.css.js +1 -1
  551. package/text-content/styles.scoped.css +64 -60
  552. package/text-content/styles.selectors.js +1 -1
  553. package/text-filter/styles.css.js +3 -3
  554. package/text-filter/styles.scoped.css +7 -3
  555. package/text-filter/styles.selectors.js +3 -3
  556. package/textarea/styles.css.js +5 -5
  557. package/textarea/styles.scoped.css +18 -14
  558. package/textarea/styles.selectors.js +5 -5
  559. package/tiles/styles.css.js +30 -30
  560. package/tiles/styles.scoped.css +77 -73
  561. package/tiles/styles.selectors.js +30 -30
  562. package/toggle/styles.css.js +10 -10
  563. package/toggle/styles.scoped.css +21 -17
  564. package/toggle/styles.selectors.js +10 -10
  565. package/token-group/styles.css.js +8 -8
  566. package/token-group/styles.scoped.css +20 -16
  567. package/token-group/styles.selectors.js +8 -8
  568. package/top-navigation/1.0-beta/styles.css.js +23 -25
  569. package/top-navigation/1.0-beta/styles.scoped.css +40 -66
  570. package/top-navigation/1.0-beta/styles.selectors.js +23 -25
  571. package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  572. package/top-navigation/parts/overflow-menu/menu-item.js +3 -2
  573. package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  574. package/top-navigation/styles.css.js +47 -47
  575. package/top-navigation/styles.scoped.css +78 -85
  576. package/top-navigation/styles.selectors.js +47 -47
  577. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  578. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +27 -23
  579. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  580. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  581. package/tutorial-panel/components/tutorial-list/styles.scoped.css +33 -29
  582. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  583. package/tutorial-panel/styles.css.js +1 -1
  584. package/tutorial-panel/styles.scoped.css +7 -3
  585. package/tutorial-panel/styles.selectors.js +1 -1
  586. package/wizard/styles.css.js +30 -30
  587. package/wizard/styles.scoped.css +62 -58
  588. package/wizard/styles.selectors.js +30 -30
  589. package/calendar/utils/navigation.d.ts.map +0 -1
  590. package/calendar/utils/navigation.js +0 -73
  591. package/calendar/utils/navigation.js.map +0 -1
  592. package/internal/utils/date-time/is-iso-date-only.d.ts +0 -5
  593. package/internal/utils/date-time/is-iso-date-only.d.ts.map +0 -1
  594. package/internal/utils/date-time/is-iso-date-only.js +0 -10
  595. package/internal/utils/date-time/is-iso-date-only.js.map +0 -1
@@ -136,6 +136,10 @@
136
136
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
137
137
  SPDX-License-Identifier: Apache-2.0
138
138
  */
139
+ /*
140
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
141
+ SPDX-License-Identifier: Apache-2.0
142
+ */
139
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
140
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
141
145
  /*
@@ -146,11 +150,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
146
150
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
147
151
  SPDX-License-Identifier: Apache-2.0
148
152
  */
149
- .awsui_calendar_mgja0_16597_149:not(#\9) {
150
- animation: awsui_awsui-motion-fade-in-0_mgja0_16597_1 var(--motion-duration-show-quick-aq3ump, 135ms) var(--motion-easing-show-quick-vc5zgd, ease-out);
153
+ .awsui_calendar_mgja0_1g4r6_153:not(#\9) {
154
+ animation: awsui_awsui-motion-fade-in-0_mgja0_1g4r6_1 var(--motion-duration-show-quick-aq3ump, 135ms) var(--motion-easing-show-quick-vc5zgd, ease-out);
151
155
  animation-fill-mode: both;
152
156
  }
153
- @keyframes awsui_awsui-motion-fade-in-0_mgja0_16597_1 {
157
+ @keyframes awsui_awsui-motion-fade-in-0_mgja0_1g4r6_1 {
154
158
  from {
155
159
  opacity: 0;
156
160
  }
@@ -159,17 +163,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
163
  }
160
164
  }
161
165
  @media (prefers-reduced-motion: reduce) {
162
- .awsui_calendar_mgja0_16597_149:not(#\9) {
166
+ .awsui_calendar_mgja0_1g4r6_153:not(#\9) {
163
167
  animation: none;
164
168
  transition: none;
165
169
  }
166
170
  }
167
- .awsui-motion-disabled .awsui_calendar_mgja0_16597_149:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_16597_149:not(#\9) {
171
+ .awsui-motion-disabled .awsui_calendar_mgja0_1g4r6_153:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_1g4r6_153:not(#\9) {
168
172
  animation: none;
169
173
  transition: none;
170
174
  }
171
175
 
172
- .awsui_root_mgja0_16597_172:not(#\9) {
176
+ .awsui_root_mgja0_1g4r6_176:not(#\9) {
173
177
  border-collapse: separate;
174
178
  border-spacing: 0;
175
179
  box-sizing: border-box;
@@ -201,35 +205,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
201
205
  -webkit-font-smoothing: auto;
202
206
  -moz-osx-font-smoothing: auto;
203
207
  }
204
- .awsui_root_mgja0_16597_172:not(#\9):not(.awsui_wide_mgja0_16597_203) {
208
+ .awsui_root_mgja0_1g4r6_176:not(#\9):not(.awsui_wide_mgja0_1g4r6_207) {
205
209
  max-inline-size: 32em;
206
210
  }
207
- .awsui_root_mgja0_16597_172.awsui_wide_mgja0_16597_203:not(#\9) {
211
+ .awsui_root_mgja0_1g4r6_176.awsui_wide_mgja0_1g4r6_207:not(#\9) {
208
212
  max-inline-size: 39em;
209
213
  }
210
214
 
211
- .awsui_focus-lock_mgja0_16597_210:not(#\9) {
215
+ .awsui_focus-lock_mgja0_1g4r6_214:not(#\9) {
212
216
  display: contents;
213
217
  }
214
218
 
215
- .awsui_trigger-flexbox_mgja0_16597_214:not(#\9) {
219
+ .awsui_trigger-flexbox_mgja0_1g4r6_218:not(#\9) {
216
220
  display: flex;
217
221
  }
218
222
 
219
- .awsui_calendar-container_mgja0_16597_218:not(#\9) {
223
+ .awsui_calendar-container_mgja0_1g4r6_222:not(#\9) {
220
224
  inline-size: calc(2 * var(--size-calendar-grid-width-lrunz7, 238px) + var(--space-xs-zb16t3, 8px));
221
225
  }
222
- .awsui_calendar-container_mgja0_16597_218.awsui_one-grid_mgja0_16597_221:not(#\9) {
226
+ .awsui_calendar-container_mgja0_1g4r6_222.awsui_one-grid_mgja0_1g4r6_225:not(#\9) {
223
227
  inline-size: var(--size-calendar-grid-width-lrunz7, 238px);
224
228
  }
225
229
 
226
- .awsui_calendar-header_mgja0_16597_225:not(#\9) {
230
+ .awsui_calendar-header_mgja0_1g4r6_229:not(#\9) {
227
231
  display: flex;
228
232
  justify-content: space-between;
229
233
  align-items: center;
230
234
  position: relative;
231
235
  }
232
- .awsui_calendar-header-months-wrapper_mgja0_16597_231:not(#\9) {
236
+ .awsui_calendar-header-months-wrapper_mgja0_1g4r6_235:not(#\9) {
233
237
  position: absolute;
234
238
  inset: 0;
235
239
  margin-block: 0;
@@ -240,7 +244,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
240
244
  flex: 1;
241
245
  pointer-events: none;
242
246
  }
243
- .awsui_calendar-header-month_mgja0_16597_231:not(#\9) {
247
+ .awsui_calendar-header-month_mgja0_1g4r6_235:not(#\9) {
244
248
  font-size: var(--font-size-body-m-x4okxb, 14px);
245
249
  line-height: var(--line-height-body-m-30ar75, 20px);
246
250
  font-weight: 700;
@@ -248,32 +252,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
248
252
  display: flex;
249
253
  pointer-events: auto;
250
254
  }
251
- .awsui_calendar-next-month-btn_mgja0_16597_250:not(#\9) {
255
+ .awsui_calendar-next-month-btn_mgja0_1g4r6_254:not(#\9) {
252
256
  /* used for identifying element */
253
257
  }
254
- .awsui_calendar-prev-month-btn_mgja0_16597_253:not(#\9) {
258
+ .awsui_calendar-prev-month-btn_mgja0_1g4r6_257:not(#\9) {
255
259
  /* used for identifying element */
256
260
  }
257
261
 
258
- .awsui_first-grid_mgja0_16597_257:not(#\9),
259
- .awsui_second-grid_mgja0_16597_258:not(#\9) {
262
+ .awsui_first-grid_mgja0_1g4r6_261:not(#\9),
263
+ .awsui_second-grid_mgja0_1g4r6_262:not(#\9) {
260
264
  /* used in test-utils */
261
265
  }
262
266
 
263
- .awsui_date-and-time-container_mgja0_16597_262:not(#\9) {
267
+ .awsui_date-and-time-container_mgja0_1g4r6_266:not(#\9) {
264
268
  display: grid;
265
269
  grid-template-columns: repeat(auto-fit, minmax(var(--size-calendar-grid-width-lrunz7, 238px), 1fr));
266
270
  gap: var(--space-xs-zb16t3, 8px);
267
271
  }
268
272
 
269
- .awsui_date-and-time-wrapper_mgja0_16597_268:not(#\9) {
273
+ .awsui_date-and-time-wrapper_mgja0_1g4r6_272:not(#\9) {
270
274
  inline-size: var(--size-calendar-grid-width-lrunz7, 238px);
271
275
  display: grid;
272
276
  gap: var(--space-xs-zb16t3, 8px);
273
277
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
274
278
  }
275
279
 
276
- .awsui_footer_mgja0_16597_275:not(#\9) {
280
+ .awsui_footer_mgja0_1g4r6_279:not(#\9) {
277
281
  display: flex;
278
282
  flex-wrap: wrap;
279
283
  justify-content: flex-end;
@@ -282,51 +286,51 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
282
286
  padding-block-end: var(--space-s-34lx8l, 12px);
283
287
  padding-inline: var(--space-l-t419sm, 20px);
284
288
  }
285
- .awsui_footer_mgja0_16597_275.awsui_has-clear-button_mgja0_16597_284:not(#\9) {
289
+ .awsui_footer_mgja0_1g4r6_279.awsui_has-clear-button_mgja0_1g4r6_288:not(#\9) {
286
290
  justify-content: space-between;
287
291
  }
288
- .awsui_footer_mgja0_16597_275.awsui_one-grid_mgja0_16597_221:not(#\9) {
292
+ .awsui_footer_mgja0_1g4r6_279.awsui_one-grid_mgja0_1g4r6_225:not(#\9) {
289
293
  padding-block-start: 0;
290
294
  padding-block-end: var(--space-s-34lx8l, 12px);
291
295
  padding-inline: var(--space-xs-zb16t3, 8px);
292
296
  }
293
297
 
294
- .awsui_footer-button-wrapper_mgja0_16597_293:not(#\9) {
298
+ .awsui_footer-button-wrapper_mgja0_1g4r6_297:not(#\9) {
295
299
  padding-block-start: var(--space-s-34lx8l, 12px);
296
300
  }
297
- .awsui_footer-button-wrapper_mgja0_16597_293:not(#\9):last-child {
301
+ .awsui_footer-button-wrapper_mgja0_1g4r6_297:not(#\9):last-child {
298
302
  margin-inline-start: auto;
299
303
  }
300
304
 
301
- .awsui_icon-wrapper_mgja0_16597_300:not(#\9) {
305
+ .awsui_icon-wrapper_mgja0_1g4r6_304:not(#\9) {
302
306
  color: var(--color-text-interactive-default-tkx8fe, #424650);
303
307
  margin-inline-end: var(--space-xs-zb16t3, 8px);
304
308
  }
305
309
 
306
- .awsui_label_mgja0_16597_305:not(#\9) {
310
+ .awsui_label_mgja0_1g4r6_309:not(#\9) {
307
311
  -webkit-user-select: text;
308
312
  user-select: text;
309
313
  cursor: default;
310
314
  }
311
315
 
312
- .awsui_label_mgja0_16597_305.awsui_label-enabled_mgja0_16597_310:not(#\9):hover > .awsui_trigger-flexbox_mgja0_16597_214 > .awsui_icon-wrapper_mgja0_16597_300 {
316
+ .awsui_label_mgja0_1g4r6_309.awsui_label-enabled_mgja0_1g4r6_314:not(#\9):hover > .awsui_trigger-flexbox_mgja0_1g4r6_218 > .awsui_icon-wrapper_mgja0_1g4r6_304 {
313
317
  color: var(--color-text-interactive-hover-f9gqs8, #0f141a);
314
318
  }
315
319
 
316
- .awsui_label-text_mgja0_16597_314:not(#\9) {
320
+ .awsui_label-text_mgja0_1g4r6_318:not(#\9) {
317
321
  color: var(--color-text-input-placeholder-f3x213, #656871);
318
322
  font-style: italic;
319
323
  }
320
324
 
321
- .awsui_label-token-nowrap_mgja0_16597_319:not(#\9) {
325
+ .awsui_label-token-nowrap_mgja0_1g4r6_323:not(#\9) {
322
326
  white-space: nowrap;
323
327
  }
324
328
 
325
- .awsui_mode-switch_mgja0_16597_323:not(#\9) {
329
+ .awsui_mode-switch_mgja0_1g4r6_327:not(#\9) {
326
330
  /* used in test-utils */
327
331
  }
328
332
 
329
- .awsui_dropdown_mgja0_16597_327:not(#\9) {
333
+ .awsui_dropdown_mgja0_1g4r6_331:not(#\9) {
330
334
  overflow: auto;
331
335
  border-block-start: 1px solid var(--color-border-container-top-736buh, transparent);
332
336
  border-block-end: 1px solid var(--color-border-container-top-736buh, transparent);
@@ -335,10 +339,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
335
339
  border-end-start-radius: var(--border-radius-dropdown-0dhh79, 8px);
336
340
  border-end-end-radius: var(--border-radius-dropdown-0dhh79, 8px);
337
341
  }
338
- .awsui_dropdown_mgja0_16597_327:not(#\9):focus {
342
+ .awsui_dropdown_mgja0_1g4r6_331:not(#\9):focus {
339
343
  outline: none;
340
344
  }
341
- body[data-awsui-focus-visible=true] .awsui_dropdown_mgja0_16597_327:not(#\9):focus {
345
+ body[data-awsui-focus-visible=true] .awsui_dropdown_mgja0_1g4r6_331:not(#\9):focus {
342
346
  outline: 2px dotted transparent;
343
347
  outline-offset: 2px;
344
348
  border-start-start-radius: var(--border-radius-dropdown-0dhh79, 8px);
@@ -348,43 +352,43 @@ body[data-awsui-focus-visible=true] .awsui_dropdown_mgja0_16597_327:not(#\9):foc
348
352
  box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
349
353
  }
350
354
 
351
- .awsui_dropdown-content_mgja0_16597_349:not(#\9) {
355
+ .awsui_dropdown-content_mgja0_1g4r6_353:not(#\9) {
352
356
  -webkit-user-select: text;
353
357
  user-select: text;
354
358
  background-color: var(--color-background-container-content-z79u4u, #ffffff);
355
359
  inline-size: calc(2 * var(--size-calendar-grid-width-lrunz7, 238px) + var(--space-xs-zb16t3, 8px) + 2 * var(--space-l-t419sm, 20px));
356
360
  }
357
- .awsui_dropdown-content_mgja0_16597_349.awsui_one-grid_mgja0_16597_221:not(#\9) {
361
+ .awsui_dropdown-content_mgja0_1g4r6_353.awsui_one-grid_mgja0_1g4r6_225:not(#\9) {
358
362
  inline-size: calc(var(--size-calendar-grid-width-lrunz7, 238px) + 2 * var(--space-l-t419sm, 20px));
359
363
  }
360
364
 
361
- .awsui_start-date-input_mgja0_16597_358:not(#\9),
362
- .awsui_start-time-input_mgja0_16597_359:not(#\9),
363
- .awsui_end-date-input_mgja0_16597_360:not(#\9),
364
- .awsui_end-time-input_mgja0_16597_361:not(#\9) {
365
+ .awsui_start-date-input_mgja0_1g4r6_362:not(#\9),
366
+ .awsui_start-time-input_mgja0_1g4r6_363:not(#\9),
367
+ .awsui_end-date-input_mgja0_1g4r6_364:not(#\9),
368
+ .awsui_end-time-input_mgja0_1g4r6_365:not(#\9) {
365
369
  /* used in test-utils */
366
370
  }
367
371
 
368
- .awsui_validation-section_mgja0_16597_365:not(#\9) {
372
+ .awsui_validation-section_mgja0_1g4r6_369:not(#\9) {
369
373
  /* used in test-utils */
370
374
  }
371
375
 
372
- .awsui_validation-error_mgja0_16597_369:not(#\9) {
376
+ .awsui_validation-error_mgja0_1g4r6_373:not(#\9) {
373
377
  /* used in test-utils */
374
378
  }
375
379
 
376
- .awsui_clear-button_mgja0_16597_373:not(#\9) {
380
+ .awsui_clear-button_mgja0_1g4r6_377:not(#\9) {
377
381
  /* used in test-utils */
378
382
  }
379
383
 
380
- .awsui_apply-button_mgja0_16597_377:not(#\9) {
384
+ .awsui_apply-button_mgja0_1g4r6_381:not(#\9) {
381
385
  /* used in test-utils */
382
386
  }
383
387
 
384
- .awsui_cancel-button_mgja0_16597_381:not(#\9) {
388
+ .awsui_cancel-button_mgja0_1g4r6_385:not(#\9) {
385
389
  /* used in test-utils */
386
390
  }
387
391
 
388
- .awsui_calendar-aria-live_mgja0_16597_385:not(#\9) {
392
+ .awsui_calendar-aria-live_mgja0_1g4r6_389:not(#\9) {
389
393
  /* used in test-utils */
390
394
  }
@@ -2,43 +2,43 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "calendar": "awsui_calendar_mgja0_16597_149",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_16597_1",
7
- "root": "awsui_root_mgja0_16597_172",
8
- "wide": "awsui_wide_mgja0_16597_203",
9
- "focus-lock": "awsui_focus-lock_mgja0_16597_210",
10
- "trigger-flexbox": "awsui_trigger-flexbox_mgja0_16597_214",
11
- "calendar-container": "awsui_calendar-container_mgja0_16597_218",
12
- "one-grid": "awsui_one-grid_mgja0_16597_221",
13
- "calendar-header": "awsui_calendar-header_mgja0_16597_225",
14
- "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_16597_231",
15
- "calendar-header-month": "awsui_calendar-header-month_mgja0_16597_231",
16
- "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_16597_250",
17
- "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_16597_253",
18
- "first-grid": "awsui_first-grid_mgja0_16597_257",
19
- "second-grid": "awsui_second-grid_mgja0_16597_258",
20
- "date-and-time-container": "awsui_date-and-time-container_mgja0_16597_262",
21
- "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_16597_268",
22
- "footer": "awsui_footer_mgja0_16597_275",
23
- "has-clear-button": "awsui_has-clear-button_mgja0_16597_284",
24
- "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_16597_293",
25
- "icon-wrapper": "awsui_icon-wrapper_mgja0_16597_300",
26
- "label": "awsui_label_mgja0_16597_305",
27
- "label-enabled": "awsui_label-enabled_mgja0_16597_310",
28
- "label-text": "awsui_label-text_mgja0_16597_314",
29
- "label-token-nowrap": "awsui_label-token-nowrap_mgja0_16597_319",
30
- "mode-switch": "awsui_mode-switch_mgja0_16597_323",
31
- "dropdown": "awsui_dropdown_mgja0_16597_327",
32
- "dropdown-content": "awsui_dropdown-content_mgja0_16597_349",
33
- "start-date-input": "awsui_start-date-input_mgja0_16597_358",
34
- "start-time-input": "awsui_start-time-input_mgja0_16597_359",
35
- "end-date-input": "awsui_end-date-input_mgja0_16597_360",
36
- "end-time-input": "awsui_end-time-input_mgja0_16597_361",
37
- "validation-section": "awsui_validation-section_mgja0_16597_365",
38
- "validation-error": "awsui_validation-error_mgja0_16597_369",
39
- "clear-button": "awsui_clear-button_mgja0_16597_373",
40
- "apply-button": "awsui_apply-button_mgja0_16597_377",
41
- "cancel-button": "awsui_cancel-button_mgja0_16597_381",
42
- "calendar-aria-live": "awsui_calendar-aria-live_mgja0_16597_385"
5
+ "calendar": "awsui_calendar_mgja0_1g4r6_153",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_1g4r6_1",
7
+ "root": "awsui_root_mgja0_1g4r6_176",
8
+ "wide": "awsui_wide_mgja0_1g4r6_207",
9
+ "focus-lock": "awsui_focus-lock_mgja0_1g4r6_214",
10
+ "trigger-flexbox": "awsui_trigger-flexbox_mgja0_1g4r6_218",
11
+ "calendar-container": "awsui_calendar-container_mgja0_1g4r6_222",
12
+ "one-grid": "awsui_one-grid_mgja0_1g4r6_225",
13
+ "calendar-header": "awsui_calendar-header_mgja0_1g4r6_229",
14
+ "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_1g4r6_235",
15
+ "calendar-header-month": "awsui_calendar-header-month_mgja0_1g4r6_235",
16
+ "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_1g4r6_254",
17
+ "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_1g4r6_257",
18
+ "first-grid": "awsui_first-grid_mgja0_1g4r6_261",
19
+ "second-grid": "awsui_second-grid_mgja0_1g4r6_262",
20
+ "date-and-time-container": "awsui_date-and-time-container_mgja0_1g4r6_266",
21
+ "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_1g4r6_272",
22
+ "footer": "awsui_footer_mgja0_1g4r6_279",
23
+ "has-clear-button": "awsui_has-clear-button_mgja0_1g4r6_288",
24
+ "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_1g4r6_297",
25
+ "icon-wrapper": "awsui_icon-wrapper_mgja0_1g4r6_304",
26
+ "label": "awsui_label_mgja0_1g4r6_309",
27
+ "label-enabled": "awsui_label-enabled_mgja0_1g4r6_314",
28
+ "label-text": "awsui_label-text_mgja0_1g4r6_318",
29
+ "label-token-nowrap": "awsui_label-token-nowrap_mgja0_1g4r6_323",
30
+ "mode-switch": "awsui_mode-switch_mgja0_1g4r6_327",
31
+ "dropdown": "awsui_dropdown_mgja0_1g4r6_331",
32
+ "dropdown-content": "awsui_dropdown-content_mgja0_1g4r6_353",
33
+ "start-date-input": "awsui_start-date-input_mgja0_1g4r6_362",
34
+ "start-time-input": "awsui_start-time-input_mgja0_1g4r6_363",
35
+ "end-date-input": "awsui_end-date-input_mgja0_1g4r6_364",
36
+ "end-time-input": "awsui_end-time-input_mgja0_1g4r6_365",
37
+ "validation-section": "awsui_validation-section_mgja0_1g4r6_369",
38
+ "validation-error": "awsui_validation-error_mgja0_1g4r6_373",
39
+ "clear-button": "awsui_clear-button_mgja0_1g4r6_377",
40
+ "apply-button": "awsui_apply-button_mgja0_1g4r6_381",
41
+ "cancel-button": "awsui_cancel-button_mgja0_1g4r6_385",
42
+ "calendar-aria-live": "awsui_calendar-aria-live_mgja0_1g4r6_389"
43
43
  };
44
44
 
@@ -15,11 +15,12 @@ export declare function shiftTimeOffset(value: null | DateRangePickerProps.Value
15
15
  startDate?: number;
16
16
  endDate?: number;
17
17
  }): DateRangePickerProps.Value | null;
18
- export declare function normalizeTimeOffset(value: null | DateRangePickerProps.Value, getTimeOffset?: DateRangePickerProps.GetTimeOffsetFunction, timeOffset?: number): {
18
+ export type NormalizedTimeOffset = {
19
19
  startDate: number;
20
20
  endDate: number;
21
21
  } | {
22
22
  startDate: undefined;
23
23
  endDate: undefined;
24
24
  };
25
+ export declare function normalizeTimeOffset(value: null | DateRangePickerProps.Value, getTimeOffset?: DateRangePickerProps.GetTimeOffsetFunction, timeOffset?: number): NormalizedTimeOffset;
25
26
  //# sourceMappingURL=time-offset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-offset.d.ts","sourceRoot":"","sources":["../../../src/date-range-picker/time-offset.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD;;GAEG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,oBAAoB,CAAC,KAAK,GAAG,IAAI,EACxC,UAAU,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACnD,oBAAoB,CAAC,KAAK,GAAG,IAAI,CASnC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,UAAU,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACnD,oBAAoB,CAAC,KAAK,GAAG,IAAI,CA2BnC;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,aAAa,CAAC,EAAE,oBAAoB,CAAC,qBAAqB,EAC1D,UAAU,CAAC,EAAE,MAAM;;;;;;EAapB"}
1
+ {"version":3,"file":"time-offset.d.ts","sourceRoot":"","sources":["../../../src/date-range-picker/time-offset.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD;;GAEG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,oBAAoB,CAAC,KAAK,GAAG,IAAI,EACxC,UAAU,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACnD,oBAAoB,CAAC,KAAK,GAAG,IAAI,CASnC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,UAAU,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACnD,oBAAoB,CAAC,KAAK,GAAG,IAAI,CA2BnC;AAED,MAAM,MAAM,oBAAoB,GAC5B;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,GACD;IACE,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC;AAEN,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,aAAa,CAAC,EAAE,oBAAoB,CAAC,qBAAqB,EAC1D,UAAU,CAAC,EAAE,MAAM,GAClB,oBAAoB,CAYtB"}
@@ -26,7 +26,7 @@ export function shiftTimeOffset(value, timeOffset) {
26
26
  return value;
27
27
  }
28
28
  /*
29
- This regex matches an ISO date-time with
29
+ This regex matches an ISO date-time (non date-only or month-only) with
30
30
  - optional seconds;
31
31
  - optional milliseconds;
32
32
  - optional time offset or 'Z'.
@@ -1 +1 @@
1
- {"version":3,"file":"time-offset.js","sourceRoot":"","sources":["../../../src/date-range-picker/time-offset.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAG5G;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,KAAwC,EACxC,UAAoD;IAEpD,IAAI,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,UAAU,CAAC,EAAE;QACjC,OAAO,KAAK,CAAC;KACd;IACD,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,KAAK,CAAC,SAAS,GAAG,mBAAmB,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC;QACvF,OAAO,EAAE,KAAK,CAAC,OAAO,GAAG,mBAAmB,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;KAChF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,KAAwC,EACxC,UAAoD;IAEpD,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;QACvC,OAAO,KAAK,CAAC;KACd;IAED;;;;;MAKE;IACF,MAAM,aAAa,GAAG,iFAAiF,CAAC;IAExG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;QAC9E,QAAQ,CACN,iBAAiB,EACjB,sGAAsG;YACpG,uEAAuE,CAC1E,CAAC;QACF,OAAO,IAAI,CAAC;KACb;IAED,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,mBAAmB,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC;QACrE,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;KAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,KAAwC,EACxC,aAA0D,EAC1D,UAAmB;IAEnB,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;QACtC,IAAI,aAAa,EAAE;YACjB,OAAO;gBACL,SAAS,EAAE,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBACvD,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;aACpD,CAAC;SACH;aAAM,IAAI,UAAU,KAAK,SAAS,EAAE;YACnC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;SACvD;KACF;IACD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AACtD,CAAC;AAED;;;;;;;;;;;;;;;EAeE;AACF,SAAS,YAAY,CAAC,aAAqB;IACzC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC;IACrC,OAAO,UAAU,CAAC,IAAI,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC;AAC9D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { addMinutes } from 'date-fns';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { formatTimeOffsetISO, parseTimezoneOffset, shiftTimezoneOffset } from '../internal/utils/date-time';\nimport { DateRangePickerProps } from './interfaces';\n\n/**\n * Appends a time zone offset to an offset-less date string.\n */\nexport function setTimeOffset(\n value: DateRangePickerProps.Value | null,\n timeOffset: { startDate?: number; endDate?: number }\n): DateRangePickerProps.Value | null {\n if (!(value?.type === 'absolute')) {\n return value;\n }\n return {\n type: 'absolute',\n startDate: value.startDate + formatTimeOffsetISO(value.startDate, timeOffset.startDate),\n endDate: value.endDate + formatTimeOffsetISO(value.endDate, timeOffset.endDate),\n };\n}\n\n/**\n * Re-formats an absolute date range so that it is expressed using the\n * target time offset. The returned value still represents the same range\n * in time, but contains no visible offset.\n */\nexport function shiftTimeOffset(\n value: null | DateRangePickerProps.Value,\n timeOffset: { startDate?: number; endDate?: number }\n): DateRangePickerProps.Value | null {\n if (!value || value.type !== 'absolute') {\n return value;\n }\n\n /*\n This regex matches an ISO date-time with\n - optional seconds;\n - optional milliseconds;\n - optional time offset or 'Z'.\n */\n const dateTimeRegex = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?(\\.\\d{1,3})?(((\\+|-)\\d{2}(:\\d{2})?)|Z)?$/;\n\n if (!dateTimeRegex.test(value.startDate) || !dateTimeRegex.test(value.endDate)) {\n warnOnce(\n 'DateRangePicker',\n 'You have provided a misformatted start or end date. The component will fall back to an empty value. ' +\n 'Dates have to be ISO8601-formatted with an optional time zone offset.'\n );\n return null;\n }\n\n return {\n type: 'absolute',\n startDate: shiftTimezoneOffset(value.startDate, timeOffset.startDate),\n endDate: shiftTimezoneOffset(value.endDate, timeOffset.endDate),\n };\n}\n\nexport function normalizeTimeOffset(\n value: null | DateRangePickerProps.Value,\n getTimeOffset?: DateRangePickerProps.GetTimeOffsetFunction,\n timeOffset?: number\n) {\n if (value && value.type === 'absolute') {\n if (getTimeOffset) {\n return {\n startDate: getTimeOffset(parseDateUTC(value.startDate)),\n endDate: getTimeOffset(parseDateUTC(value.endDate)),\n };\n } else if (timeOffset !== undefined) {\n return { startDate: timeOffset, endDate: timeOffset };\n }\n }\n return { startDate: undefined, endDate: undefined };\n}\n\n/*\n Before the getTimeOffset function is used there is no information on the preferred time offset.\n \n Besides, the ISO date string might or might not contain the offset:\n - 2021-02-03T01:02:03\n - 2021-02-03T01:02:03Z\n - 2021-02-03T01:02:03+01:00\n \n For every value above the date is converted to UTC and the following is true:\n date.getUTCFullYear() === 2021\n date.getUTCMonth() === 1\n date.getUTCDate() === 3\n date.getUTCHours() === 1\n date.getUTCMinutes() === 2\n date.getUTCSeconds() === 3\n*/\nfunction parseDateUTC(isoDateString: string): Date {\n const date = new Date(isoDateString);\n return addMinutes(date, parseTimezoneOffset(isoDateString));\n}\n"]}
1
+ {"version":3,"file":"time-offset.js","sourceRoot":"","sources":["../../../src/date-range-picker/time-offset.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAG5G;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,KAAwC,EACxC,UAAoD;IAEpD,IAAI,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,UAAU,CAAC,EAAE;QACjC,OAAO,KAAK,CAAC;KACd;IACD,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,KAAK,CAAC,SAAS,GAAG,mBAAmB,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC;QACvF,OAAO,EAAE,KAAK,CAAC,OAAO,GAAG,mBAAmB,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;KAChF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,KAAwC,EACxC,UAAoD;IAEpD,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;QACvC,OAAO,KAAK,CAAC;KACd;IAED;;;;;MAKE;IACF,MAAM,aAAa,GAAG,iFAAiF,CAAC;IAExG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;QAC9E,QAAQ,CACN,iBAAiB,EACjB,sGAAsG;YACpG,uEAAuE,CAC1E,CAAC;QACF,OAAO,IAAI,CAAC;KACb;IAED,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,mBAAmB,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC;QACrE,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;KAChE,CAAC;AACJ,CAAC;AAYD,MAAM,UAAU,mBAAmB,CACjC,KAAwC,EACxC,aAA0D,EAC1D,UAAmB;IAEnB,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;QACtC,IAAI,aAAa,EAAE;YACjB,OAAO;gBACL,SAAS,EAAE,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBACvD,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;aACpD,CAAC;SACH;aAAM,IAAI,UAAU,KAAK,SAAS,EAAE;YACnC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;SACvD;KACF;IACD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AACtD,CAAC;AAED;;;;;;;;;;;;;;;EAeE;AACF,SAAS,YAAY,CAAC,aAAqB;IACzC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC;IACrC,OAAO,UAAU,CAAC,IAAI,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC;AAC9D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { addMinutes } from 'date-fns';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { formatTimeOffsetISO, parseTimezoneOffset, shiftTimezoneOffset } from '../internal/utils/date-time';\nimport { DateRangePickerProps } from './interfaces';\n\n/**\n * Appends a time zone offset to an offset-less date string.\n */\nexport function setTimeOffset(\n value: DateRangePickerProps.Value | null,\n timeOffset: { startDate?: number; endDate?: number }\n): DateRangePickerProps.Value | null {\n if (!(value?.type === 'absolute')) {\n return value;\n }\n return {\n type: 'absolute',\n startDate: value.startDate + formatTimeOffsetISO(value.startDate, timeOffset.startDate),\n endDate: value.endDate + formatTimeOffsetISO(value.endDate, timeOffset.endDate),\n };\n}\n\n/**\n * Re-formats an absolute date range so that it is expressed using the\n * target time offset. The returned value still represents the same range\n * in time, but contains no visible offset.\n */\nexport function shiftTimeOffset(\n value: null | DateRangePickerProps.Value,\n timeOffset: { startDate?: number; endDate?: number }\n): DateRangePickerProps.Value | null {\n if (!value || value.type !== 'absolute') {\n return value;\n }\n\n /*\n This regex matches an ISO date-time (non date-only or month-only) with\n - optional seconds;\n - optional milliseconds;\n - optional time offset or 'Z'.\n */\n const dateTimeRegex = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?(\\.\\d{1,3})?(((\\+|-)\\d{2}(:\\d{2})?)|Z)?$/;\n\n if (!dateTimeRegex.test(value.startDate) || !dateTimeRegex.test(value.endDate)) {\n warnOnce(\n 'DateRangePicker',\n 'You have provided a misformatted start or end date. The component will fall back to an empty value. ' +\n 'Dates have to be ISO8601-formatted with an optional time zone offset.'\n );\n return null;\n }\n\n return {\n type: 'absolute',\n startDate: shiftTimezoneOffset(value.startDate, timeOffset.startDate),\n endDate: shiftTimezoneOffset(value.endDate, timeOffset.endDate),\n };\n}\n\nexport type NormalizedTimeOffset =\n | {\n startDate: number;\n endDate: number;\n }\n | {\n startDate: undefined;\n endDate: undefined;\n };\n\nexport function normalizeTimeOffset(\n value: null | DateRangePickerProps.Value,\n getTimeOffset?: DateRangePickerProps.GetTimeOffsetFunction,\n timeOffset?: number\n): NormalizedTimeOffset {\n if (value && value.type === 'absolute') {\n if (getTimeOffset) {\n return {\n startDate: getTimeOffset(parseDateUTC(value.startDate)),\n endDate: getTimeOffset(parseDateUTC(value.endDate)),\n };\n } else if (timeOffset !== undefined) {\n return { startDate: timeOffset, endDate: timeOffset };\n }\n }\n return { startDate: undefined, endDate: undefined };\n}\n\n/*\n Before the getTimeOffset function is used there is no information on the preferred time offset.\n \n Besides, the ISO date string might or might not contain the offset:\n - 2021-02-03T01:02:03\n - 2021-02-03T01:02:03Z\n - 2021-02-03T01:02:03+01:00\n \n For every value above the date is converted to UTC and the following is true:\n date.getUTCFullYear() === 2021\n date.getUTCMonth() === 1\n date.getUTCDate() === 3\n date.getUTCHours() === 1\n date.getUTCMinutes() === 2\n date.getUTCSeconds() === 3\n*/\nfunction parseDateUTC(isoDateString: string): Date {\n const date = new Date(isoDateString);\n return addMinutes(date, parseTimezoneOffset(isoDateString));\n}\n"]}
@@ -9,4 +9,13 @@ export declare function formatValue(value: null | DateRangePickerProps.Value, {
9
9
  export declare function getDefaultMode(value: null | DateRangePickerProps.Value, relativeOptions: readonly DateRangePickerProps.RelativeOption[], rangeSelectorMode: DateRangePickerProps.RangeSelectorMode): "absolute" | "relative";
10
10
  export declare function splitAbsoluteValue(value: null | DateRangePickerProps.AbsoluteValue): DateRangePickerProps.PendingAbsoluteValue;
11
11
  export declare function joinAbsoluteValue(value: DateRangePickerProps.PendingAbsoluteValue): DateRangePickerProps.AbsoluteValue;
12
+ type NormalizedTimeOffset = {
13
+ startDate: number;
14
+ endDate: number;
15
+ } | {
16
+ startDate: undefined;
17
+ endDate: undefined;
18
+ };
19
+ export declare function formatInitialValue(value: null | DateRangePickerProps.Value, dateOnly: boolean, normalizedTimeOffset: NormalizedTimeOffset): DateRangePickerProps.Value | null;
20
+ export {};
12
21
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/date-range-picker/utils.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD,wBAAgB,WAAW,CACzB,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GACpG,IAAI,GAAG,oBAAoB,CAAC,KAAK,CAYnC;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,eAAe,EAAE,SAAS,oBAAoB,CAAC,cAAc,EAAE,EAC/D,iBAAiB,EAAE,oBAAoB,CAAC,iBAAiB,2BAY1D;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,aAAa,GAC/C,oBAAoB,CAAC,oBAAoB,CAQ3C;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,oBAAoB,CAAC,oBAAoB,GAC/C,oBAAoB,CAAC,aAAa,CASpC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/date-range-picker/utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD,wBAAgB,WAAW,CACzB,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GACpG,IAAI,GAAG,oBAAoB,CAAC,KAAK,CAgBnC;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,eAAe,EAAE,SAAS,oBAAoB,CAAC,cAAc,EAAE,EAC/D,iBAAiB,EAAE,oBAAoB,CAAC,iBAAiB,2BAY1D;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,aAAa,GAC/C,oBAAoB,CAAC,oBAAoB,CAQ3C;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,oBAAoB,CAAC,oBAAoB,GAC/C,oBAAoB,CAAC,aAAa,CASpC;AAED,KAAK,oBAAoB,GACrB;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,GACD;IACE,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC;AAEN,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,EACxC,QAAQ,EAAE,OAAO,EACjB,oBAAoB,EAAE,oBAAoB,GACzC,oBAAoB,CAAC,KAAK,GAAG,IAAI,CAgBnC"}
@@ -1,10 +1,13 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { joinDateTime, splitDateTime } from '../internal/utils/date-time';
4
+ import { isIsoDateOnly } from '../internal/utils/date-time';
4
5
  import { normalizeTimeString } from '../internal/utils/date-time/join-date-time';
5
- import { setTimeOffset } from './time-offset';
6
+ import { setTimeOffset, shiftTimeOffset } from './time-offset';
6
7
  export function formatValue(value, { timeOffset, dateOnly }) {
7
- if (!value || value.type === 'relative') {
8
+ if (!value ||
9
+ value.type === 'relative' ||
10
+ (value.startDate === '' && value.endDate === '' && value.type === 'absolute')) {
8
11
  return value;
9
12
  }
10
13
  if (dateOnly) {
@@ -46,4 +49,18 @@ export function joinAbsoluteValue(value) {
46
49
  endDate: joinDateTime(value.end.date, endTime),
47
50
  };
48
51
  }
52
+ export function formatInitialValue(value, dateOnly, normalizedTimeOffset) {
53
+ if ((value === null || value === void 0 ? void 0 : value.type) !== 'absolute') {
54
+ return shiftTimeOffset(value, normalizedTimeOffset);
55
+ }
56
+ if (value.endDate === '' && value.startDate === '') {
57
+ return value;
58
+ }
59
+ if (dateOnly) {
60
+ return formatValue(value, { dateOnly, timeOffset: normalizedTimeOffset });
61
+ }
62
+ return isIsoDateOnly(value.startDate) && isIsoDateOnly(value.endDate)
63
+ ? value
64
+ : shiftTimeOffset(value, normalizedTimeOffset);
65
+ }
49
66
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/date-range-picker/utils.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,UAAU,WAAW,CACzB,KAAwC,EACxC,EAAE,UAAU,EAAE,QAAQ,EAA+E;IAErG,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;QACvC,OAAO,KAAK,CAAC;KACd;IACD,IAAI,QAAQ,EAAE;QACZ,OAAO;YACL,IAAI,EAAE,UAAU;YAChB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACxC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACrC,CAAC;KACH;IACD,OAAO,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,KAAwC,EACxC,eAA+D,EAC/D,iBAAyD;IAEzD,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC;KACnB;IACD,IAAI,iBAAiB,KAAK,eAAe,EAAE;QACzC,OAAO,UAAU,CAAC;KACnB;IACD,IAAI,iBAAiB,KAAK,eAAe,EAAE;QACzC,OAAO,UAAU,CAAC;KACnB;IACD,OAAO,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,KAAgD;IAEhD,IAAI,CAAC,KAAK,EAAE;QACV,OAAO;YACL,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC7B,GAAG,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;SAC5B,CAAC;KACH;IACD,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;AACtF,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,KAAgD;IAEhD,MAAM,SAAS,GAAG,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;IAElE,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;QACpD,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC;KAC/C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { joinDateTime, splitDateTime } from '../internal/utils/date-time';\nimport { normalizeTimeString } from '../internal/utils/date-time/join-date-time';\nimport { DateRangePickerProps } from './interfaces';\nimport { setTimeOffset } from './time-offset';\n\nexport function formatValue(\n value: null | DateRangePickerProps.Value,\n { timeOffset, dateOnly }: { timeOffset: { startDate?: number; endDate?: number }; dateOnly: boolean }\n): null | DateRangePickerProps.Value {\n if (!value || value.type === 'relative') {\n return value;\n }\n if (dateOnly) {\n return {\n type: 'absolute',\n startDate: value.startDate.split('T')[0],\n endDate: value.endDate.split('T')[0],\n };\n }\n return setTimeOffset(value, timeOffset);\n}\n\nexport function getDefaultMode(\n value: null | DateRangePickerProps.Value,\n relativeOptions: readonly DateRangePickerProps.RelativeOption[],\n rangeSelectorMode: DateRangePickerProps.RangeSelectorMode\n) {\n if (value && value.type) {\n return value.type;\n }\n if (rangeSelectorMode === 'relative-only') {\n return 'relative';\n }\n if (rangeSelectorMode === 'absolute-only') {\n return 'absolute';\n }\n return relativeOptions.length > 0 ? 'relative' : 'absolute';\n}\n\nexport function splitAbsoluteValue(\n value: null | DateRangePickerProps.AbsoluteValue\n): DateRangePickerProps.PendingAbsoluteValue {\n if (!value) {\n return {\n start: { date: '', time: '' },\n end: { date: '', time: '' },\n };\n }\n return { start: splitDateTime(value.startDate), end: splitDateTime(value.endDate) };\n}\n\nexport function joinAbsoluteValue(\n value: DateRangePickerProps.PendingAbsoluteValue\n): DateRangePickerProps.AbsoluteValue {\n const startTime = normalizeTimeString(value.start.time || '00:00:00');\n const endTime = normalizeTimeString(value.end.time || '23:59:59');\n\n return {\n type: 'absolute',\n startDate: joinDateTime(value.start.date, startTime),\n endDate: joinDateTime(value.end.date, endTime),\n };\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/date-range-picker/utils.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE/D,MAAM,UAAU,WAAW,CACzB,KAAwC,EACxC,EAAE,UAAU,EAAE,QAAQ,EAA+E;IAErG,IACE,CAAC,KAAK;QACN,KAAK,CAAC,IAAI,KAAK,UAAU;QACzB,CAAC,KAAK,CAAC,SAAS,KAAK,EAAE,IAAI,KAAK,CAAC,OAAO,KAAK,EAAE,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,EAC7E;QACA,OAAO,KAAK,CAAC;KACd;IACD,IAAI,QAAQ,EAAE;QACZ,OAAO;YACL,IAAI,EAAE,UAAU;YAChB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACxC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACrC,CAAC;KACH;IACD,OAAO,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,KAAwC,EACxC,eAA+D,EAC/D,iBAAyD;IAEzD,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC;KACnB;IACD,IAAI,iBAAiB,KAAK,eAAe,EAAE;QACzC,OAAO,UAAU,CAAC;KACnB;IACD,IAAI,iBAAiB,KAAK,eAAe,EAAE;QACzC,OAAO,UAAU,CAAC;KACnB;IACD,OAAO,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,KAAgD;IAEhD,IAAI,CAAC,KAAK,EAAE;QACV,OAAO;YACL,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC7B,GAAG,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;SAC5B,CAAC;KACH;IACD,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;AACtF,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,KAAgD;IAEhD,MAAM,SAAS,GAAG,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,UAAU,CAAC,CAAC;IAElE,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;QACpD,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC;KAC/C,CAAC;AACJ,CAAC;AAYD,MAAM,UAAU,kBAAkB,CAChC,KAAwC,EACxC,QAAiB,EACjB,oBAA0C;IAE1C,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,UAAU,EAAE;QAC9B,OAAO,eAAe,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;KACrD;IAED,IAAI,KAAK,CAAC,OAAO,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,KAAK,EAAE,EAAE;QAClD,OAAO,KAAK,CAAC;KACd;IAED,IAAI,QAAQ,EAAE;QACZ,OAAO,WAAW,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC,CAAC;KAC3E;IAED,OAAO,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC;QACnE,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;AACnD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { joinDateTime, splitDateTime } from '../internal/utils/date-time';\nimport { isIsoDateOnly } from '../internal/utils/date-time';\nimport { normalizeTimeString } from '../internal/utils/date-time/join-date-time';\nimport { DateRangePickerProps } from './interfaces';\nimport { setTimeOffset, shiftTimeOffset } from './time-offset';\n\nexport function formatValue(\n value: null | DateRangePickerProps.Value,\n { timeOffset, dateOnly }: { timeOffset: { startDate?: number; endDate?: number }; dateOnly: boolean }\n): null | DateRangePickerProps.Value {\n if (\n !value ||\n value.type === 'relative' ||\n (value.startDate === '' && value.endDate === '' && value.type === 'absolute')\n ) {\n return value;\n }\n if (dateOnly) {\n return {\n type: 'absolute',\n startDate: value.startDate.split('T')[0],\n endDate: value.endDate.split('T')[0],\n };\n }\n return setTimeOffset(value, timeOffset);\n}\n\nexport function getDefaultMode(\n value: null | DateRangePickerProps.Value,\n relativeOptions: readonly DateRangePickerProps.RelativeOption[],\n rangeSelectorMode: DateRangePickerProps.RangeSelectorMode\n) {\n if (value && value.type) {\n return value.type;\n }\n if (rangeSelectorMode === 'relative-only') {\n return 'relative';\n }\n if (rangeSelectorMode === 'absolute-only') {\n return 'absolute';\n }\n return relativeOptions.length > 0 ? 'relative' : 'absolute';\n}\n\nexport function splitAbsoluteValue(\n value: null | DateRangePickerProps.AbsoluteValue\n): DateRangePickerProps.PendingAbsoluteValue {\n if (!value) {\n return {\n start: { date: '', time: '' },\n end: { date: '', time: '' },\n };\n }\n return { start: splitDateTime(value.startDate), end: splitDateTime(value.endDate) };\n}\n\nexport function joinAbsoluteValue(\n value: DateRangePickerProps.PendingAbsoluteValue\n): DateRangePickerProps.AbsoluteValue {\n const startTime = normalizeTimeString(value.start.time || '00:00:00');\n const endTime = normalizeTimeString(value.end.time || '23:59:59');\n\n return {\n type: 'absolute',\n startDate: joinDateTime(value.start.date, startTime),\n endDate: joinDateTime(value.end.date, endTime),\n };\n}\n\ntype NormalizedTimeOffset =\n | {\n startDate: number;\n endDate: number;\n }\n | {\n startDate: undefined;\n endDate: undefined;\n };\n\nexport function formatInitialValue(\n value: null | DateRangePickerProps.Value,\n dateOnly: boolean,\n normalizedTimeOffset: NormalizedTimeOffset\n): DateRangePickerProps.Value | null {\n if (value?.type !== 'absolute') {\n return shiftTimeOffset(value, normalizedTimeOffset);\n }\n\n if (value.endDate === '' && value.startDate === '') {\n return value;\n }\n\n if (dateOnly) {\n return formatValue(value, { dateOnly, timeOffset: normalizedTimeOffset });\n }\n\n return isIsoDateOnly(value.startDate) && isIsoDateOnly(value.endDate)\n ? value\n : shiftTimeOffset(value, normalizedTimeOffset);\n}\n"]}
@@ -1,10 +1,10 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "drawer": "awsui_drawer_1sxt8_mlpxy_177",
5
- "header": "awsui_header_1sxt8_mlpxy_210",
6
- "with-toolbar": "awsui_with-toolbar_1sxt8_mlpxy_225",
7
- "content": "awsui_content_1sxt8_mlpxy_243",
8
- "test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_mlpxy_249"
4
+ "drawer": "awsui_drawer_1sxt8_smrsr_181",
5
+ "header": "awsui_header_1sxt8_smrsr_214",
6
+ "with-toolbar": "awsui_with-toolbar_1sxt8_smrsr_229",
7
+ "content": "awsui_content_1sxt8_smrsr_247",
8
+ "test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_smrsr_253"
9
9
  };
10
10
 
@@ -134,12 +134,16 @@
134
134
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
135
135
  SPDX-License-Identifier: Apache-2.0
136
136
  */
137
+ /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
138
+ /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
139
+ /*
140
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
141
+ SPDX-License-Identifier: Apache-2.0
142
+ */
137
143
  /*
138
144
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
139
145
  SPDX-License-Identifier: Apache-2.0
140
146
  */
141
- /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
142
- /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
143
147
  /*
144
148
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
145
149
  SPDX-License-Identifier: Apache-2.0
@@ -174,7 +178,7 @@
174
178
  */
175
179
  /* Style used for links in slots/components that are text heavy, to help links stand out among
176
180
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
177
- .awsui_drawer_1sxt8_mlpxy_177:not(#\9) {
181
+ .awsui_drawer_1sxt8_smrsr_181:not(#\9) {
178
182
  border-collapse: separate;
179
183
  border-spacing: 0;
180
184
  box-sizing: border-box;
@@ -208,7 +212,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
208
212
  word-wrap: break-word;
209
213
  }
210
214
 
211
- .awsui_header_1sxt8_mlpxy_210:not(#\9) {
215
+ .awsui_header_1sxt8_smrsr_214:not(#\9) {
212
216
  font-size: var(--font-panel-header-size-edjz3l, 18px);
213
217
  line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
214
218
  font-weight: var(--font-weight-heading-l-f8711v, 700);
@@ -223,15 +227,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
223
227
  /* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
224
228
  /* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
225
229
  }
226
- .awsui_with-toolbar_1sxt8_mlpxy_225 > .awsui_header_1sxt8_mlpxy_210:not(#\9) {
230
+ .awsui_with-toolbar_1sxt8_smrsr_229 > .awsui_header_1sxt8_smrsr_214:not(#\9) {
227
231
  border-color: transparent;
228
232
  margin-block-end: 0px;
229
233
  }
230
- .awsui_header_1sxt8_mlpxy_210 h2:not(#\9),
231
- .awsui_header_1sxt8_mlpxy_210 h3:not(#\9),
232
- .awsui_header_1sxt8_mlpxy_210 h4:not(#\9),
233
- .awsui_header_1sxt8_mlpxy_210 h5:not(#\9),
234
- .awsui_header_1sxt8_mlpxy_210 h6:not(#\9) {
234
+ .awsui_header_1sxt8_smrsr_214 h2:not(#\9),
235
+ .awsui_header_1sxt8_smrsr_214 h3:not(#\9),
236
+ .awsui_header_1sxt8_smrsr_214 h4:not(#\9),
237
+ .awsui_header_1sxt8_smrsr_214 h5:not(#\9),
238
+ .awsui_header_1sxt8_smrsr_214 h6:not(#\9) {
235
239
  font-size: var(--font-panel-header-size-edjz3l, 18px);
236
240
  line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
237
241
  font-weight: var(--font-weight-heading-l-f8711v, 700);
@@ -241,12 +245,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
241
245
  margin-block: 0;
242
246
  }
243
247
 
244
- .awsui_content_1sxt8_mlpxy_243:not(#\9):not(:empty) {
248
+ .awsui_content_1sxt8_smrsr_247:not(#\9):not(:empty) {
245
249
  padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
246
250
  padding-inline-end: var(--space-panel-side-right-xofg51, 24px);
247
251
  padding-block-end: var(--space-panel-content-bottom-7k6er3, 40px);
248
252
  }
249
253
 
250
- .awsui_test-utils-drawer-content_1sxt8_mlpxy_249:not(#\9) {
254
+ .awsui_test-utils-drawer-content_1sxt8_smrsr_253:not(#\9) {
251
255
  /* used in test-utils */
252
256
  }
@@ -2,10 +2,10 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "drawer": "awsui_drawer_1sxt8_mlpxy_177",
6
- "header": "awsui_header_1sxt8_mlpxy_210",
7
- "with-toolbar": "awsui_with-toolbar_1sxt8_mlpxy_225",
8
- "content": "awsui_content_1sxt8_mlpxy_243",
9
- "test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_mlpxy_249"
5
+ "drawer": "awsui_drawer_1sxt8_smrsr_181",
6
+ "header": "awsui_header_1sxt8_smrsr_214",
7
+ "with-toolbar": "awsui_with-toolbar_1sxt8_smrsr_229",
8
+ "content": "awsui_content_1sxt8_smrsr_247",
9
+ "test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_smrsr_253"
10
10
  };
11
11