@cognite/aura 0.3.5 → 1.0.0

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 (540) hide show
  1. package/CHANGELOG.md +274 -0
  2. package/DESIGN.md +664 -281
  3. package/LICENSE +21 -0
  4. package/README.md +21 -13
  5. package/dist/colors-deprecated.css +618 -0
  6. package/dist/colors.css +803 -830
  7. package/dist/components/index.d.ts +63 -57
  8. package/dist/components/index.js +62 -59
  9. package/dist/components/index.js.map +1 -0
  10. package/dist/components/ui/core/accordion/accordion.d.ts +19 -18
  11. package/dist/components/ui/core/accordion/accordion.js +99 -78
  12. package/dist/components/ui/core/accordion/accordion.js.map +1 -0
  13. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.d.ts +8 -0
  14. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js +132 -0
  15. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js.map +1 -0
  16. package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +31 -31
  17. package/dist/components/ui/core/action-toolbar/action-toolbar.js +156 -106
  18. package/dist/components/ui/core/action-toolbar/action-toolbar.js.map +1 -0
  19. package/dist/components/ui/core/alert/alert.d.ts +25 -25
  20. package/dist/components/ui/core/alert/alert.gallery.d.ts +2 -0
  21. package/dist/components/ui/core/alert/alert.gallery.js +54 -0
  22. package/dist/components/ui/core/alert/alert.gallery.js.map +1 -0
  23. package/dist/components/ui/core/alert/alert.js +181 -152
  24. package/dist/components/ui/core/alert/alert.js.map +1 -0
  25. package/dist/components/ui/core/avatar/avatar.d.ts +10 -9
  26. package/dist/components/ui/core/avatar/avatar.gallery.d.ts +2 -0
  27. package/dist/components/ui/core/avatar/avatar.gallery.js +67 -0
  28. package/dist/components/ui/core/avatar/avatar.gallery.js.map +1 -0
  29. package/dist/components/ui/core/avatar/avatar.js +75 -65
  30. package/dist/components/ui/core/avatar/avatar.js.map +1 -0
  31. package/dist/components/ui/core/badge/badge.d.ts +13 -12
  32. package/dist/components/ui/core/badge/badge.gallery.d.ts +2 -0
  33. package/dist/components/ui/core/badge/badge.gallery.js +64 -0
  34. package/dist/components/ui/core/badge/badge.gallery.js.map +1 -0
  35. package/dist/components/ui/core/badge/badge.js +88 -72
  36. package/dist/components/ui/core/badge/badge.js.map +1 -0
  37. package/dist/components/ui/core/banner/banner.d.ts +18 -18
  38. package/dist/components/ui/core/banner/banner.gallery.d.ts +2 -0
  39. package/dist/components/ui/core/banner/banner.gallery.js +56 -0
  40. package/dist/components/ui/core/banner/banner.gallery.js.map +1 -0
  41. package/dist/components/ui/core/banner/banner.js +179 -142
  42. package/dist/components/ui/core/banner/banner.js.map +1 -0
  43. package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -12
  44. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.d.ts +2 -0
  45. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js +31 -0
  46. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js.map +1 -0
  47. package/dist/components/ui/core/breadcrumb/breadcrumb.js +139 -104
  48. package/dist/components/ui/core/breadcrumb/breadcrumb.js.map +1 -0
  49. package/dist/components/ui/core/button/button.d.ts +7 -7
  50. package/dist/components/ui/core/button/button.gallery.d.ts +2 -0
  51. package/dist/components/ui/core/button/button.gallery.js +76 -0
  52. package/dist/components/ui/core/button/button.gallery.js.map +1 -0
  53. package/dist/components/ui/core/button/button.js +57 -47
  54. package/dist/components/ui/core/button/button.js.map +1 -0
  55. package/dist/components/ui/core/button-group/button-group.d.ts +9 -9
  56. package/dist/components/ui/core/button-group/button-group.gallery.d.ts +2 -0
  57. package/dist/components/ui/core/button-group/button-group.gallery.js +62 -0
  58. package/dist/components/ui/core/button-group/button-group.gallery.js.map +1 -0
  59. package/dist/components/ui/core/button-group/button-group.js +50 -40
  60. package/dist/components/ui/core/button-group/button-group.js.map +1 -0
  61. package/dist/components/ui/core/calendar/calendar-header.d.ts +7 -7
  62. package/dist/components/ui/core/calendar/calendar-header.js +102 -63
  63. package/dist/components/ui/core/calendar/calendar-header.js.map +1 -0
  64. package/dist/components/ui/core/calendar/calendar-utils.d.ts +30 -30
  65. package/dist/components/ui/core/calendar/calendar-utils.js +116 -39
  66. package/dist/components/ui/core/calendar/calendar-utils.js.map +1 -0
  67. package/dist/components/ui/core/calendar/calendar.d.ts +10 -10
  68. package/dist/components/ui/core/calendar/calendar.js +95 -66
  69. package/dist/components/ui/core/calendar/calendar.js.map +1 -0
  70. package/dist/components/ui/core/calendar/constants.js +3 -0
  71. package/dist/components/ui/core/calendar/constants.js.map +1 -0
  72. package/dist/components/ui/core/card/card.d.ts +20 -20
  73. package/dist/components/ui/core/card/card.js +133 -104
  74. package/dist/components/ui/core/card/card.js.map +1 -0
  75. package/dist/components/ui/core/chart/chart.d.ts +55 -53
  76. package/dist/components/ui/core/chart/chart.js +196 -116
  77. package/dist/components/ui/core/chart/chart.js.map +1 -0
  78. package/dist/components/ui/core/chart/index.d.ts +2 -2
  79. package/dist/components/ui/core/chart/index.js +3 -2
  80. package/dist/components/ui/core/chart/index.js.map +1 -0
  81. package/dist/components/ui/core/checkbox/checkbox.d.ts +9 -9
  82. package/dist/components/ui/core/checkbox/checkbox.gallery.d.ts +2 -0
  83. package/dist/components/ui/core/checkbox/checkbox.gallery.js +36 -0
  84. package/dist/components/ui/core/checkbox/checkbox.gallery.js.map +1 -0
  85. package/dist/components/ui/core/checkbox/checkbox.js +88 -68
  86. package/dist/components/ui/core/checkbox/checkbox.js.map +1 -0
  87. package/dist/components/ui/core/checkbox/checkbox.metadata.d.ts +1 -1
  88. package/dist/components/ui/core/checkbox/checkbox.metadata.js +6 -7
  89. package/dist/components/ui/core/checkbox/checkbox.metadata.js.map +1 -0
  90. package/dist/components/ui/core/code-block/code-block.d.ts +19 -19
  91. package/dist/components/ui/core/code-block/code-block.js +260 -175
  92. package/dist/components/ui/core/code-block/code-block.js.map +1 -0
  93. package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -5
  94. package/dist/components/ui/core/collapsible/collapsible.gallery.d.ts +2 -0
  95. package/dist/components/ui/core/collapsible/collapsible.gallery.js +39 -0
  96. package/dist/components/ui/core/collapsible/collapsible.gallery.js.map +1 -0
  97. package/dist/components/ui/core/collapsible/collapsible.js +36 -30
  98. package/dist/components/ui/core/collapsible/collapsible.js.map +1 -0
  99. package/dist/components/ui/core/combobox/combobox.d.ts +13 -13
  100. package/dist/components/ui/core/combobox/combobox.js +89 -40
  101. package/dist/components/ui/core/combobox/combobox.js.map +1 -0
  102. package/dist/components/ui/core/command/command.d.ts +20 -18
  103. package/dist/components/ui/core/command/command.js +137 -85
  104. package/dist/components/ui/core/command/command.js.map +1 -0
  105. package/dist/components/ui/core/conversation/conversation.d.ts +14 -0
  106. package/dist/components/ui/core/conversation/conversation.js +51 -0
  107. package/dist/components/ui/core/conversation/conversation.js.map +1 -0
  108. package/dist/components/ui/core/count/count.d.ts +8 -6
  109. package/dist/components/ui/core/count/count.gallery.d.ts +2 -0
  110. package/dist/components/ui/core/count/count.gallery.js +55 -0
  111. package/dist/components/ui/core/count/count.gallery.js.map +1 -0
  112. package/dist/components/ui/core/count/count.js +51 -21
  113. package/dist/components/ui/core/count/count.js.map +1 -0
  114. package/dist/components/ui/core/data-grid/data-grid-cell.d.ts +5 -7
  115. package/dist/components/ui/core/data-grid/data-grid-cell.js +18 -22
  116. package/dist/components/ui/core/data-grid/data-grid-cell.js.map +1 -0
  117. package/dist/components/ui/core/data-grid/data-grid-column-filter.d.ts +4 -0
  118. package/dist/components/ui/core/data-grid/data-grid-column-filter.js +13 -0
  119. package/dist/components/ui/core/data-grid/data-grid-column-filter.js.map +1 -0
  120. package/dist/components/ui/core/data-grid/data-grid-column-resizer.d.ts +8 -0
  121. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js +25 -0
  122. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js.map +1 -0
  123. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.d.ts +14 -0
  124. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js +36 -0
  125. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js.map +1 -0
  126. package/dist/components/ui/core/data-grid/data-grid-filter-panel.d.ts +43 -0
  127. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +287 -0
  128. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js.map +1 -0
  129. package/dist/components/ui/core/data-grid/data-grid-footer.d.ts +6 -0
  130. package/dist/components/ui/core/data-grid/data-grid-footer.js +34 -0
  131. package/dist/components/ui/core/data-grid/data-grid-footer.js.map +1 -0
  132. package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +10 -10
  133. package/dist/components/ui/core/data-grid/data-grid-header-row.js +85 -55
  134. package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -0
  135. package/dist/components/ui/core/data-grid/data-grid-header.d.ts +11 -0
  136. package/dist/components/ui/core/data-grid/data-grid-header.js +67 -0
  137. package/dist/components/ui/core/data-grid/data-grid-header.js.map +1 -0
  138. package/dist/components/ui/core/data-grid/data-grid-row.d.ts +13 -15
  139. package/dist/components/ui/core/data-grid/data-grid-row.js +117 -76
  140. package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -0
  141. package/dist/components/ui/core/data-grid/data-grid-selection-state.d.ts +15 -0
  142. package/dist/components/ui/core/data-grid/data-grid-selection-state.js +32 -0
  143. package/dist/components/ui/core/data-grid/data-grid-selection-state.js.map +1 -0
  144. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.d.ts +11 -0
  145. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js +129 -0
  146. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js.map +1 -0
  147. package/dist/components/ui/core/data-grid/data-grid-selection.types.d.ts +24 -0
  148. package/dist/components/ui/core/data-grid/data-grid-selection.types.js +3 -0
  149. package/dist/components/ui/core/data-grid/data-grid-selection.types.js.map +1 -0
  150. package/dist/components/ui/core/data-grid/data-grid.d.ts +125 -35
  151. package/dist/components/ui/core/data-grid/data-grid.fixtures.d.ts +7 -7
  152. package/dist/components/ui/core/data-grid/data-grid.fixtures.js +139 -0
  153. package/dist/components/ui/core/data-grid/data-grid.fixtures.js.map +1 -0
  154. package/dist/components/ui/core/data-grid/data-grid.js +540 -132
  155. package/dist/components/ui/core/data-grid/data-grid.js.map +1 -0
  156. package/dist/components/ui/core/data-grid/data-grid.utils.d.ts +3 -4
  157. package/dist/components/ui/core/data-grid/data-grid.utils.js +46 -33
  158. package/dist/components/ui/core/data-grid/data-grid.utils.js.map +1 -0
  159. package/dist/components/ui/core/data-grid/index.d.ts +6 -1
  160. package/dist/components/ui/core/data-grid/index.js +6 -2
  161. package/dist/components/ui/core/data-grid/index.js.map +1 -0
  162. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.d.ts +11 -13
  163. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +85 -61
  164. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js.map +1 -0
  165. package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -3
  166. package/dist/components/ui/core/date-time-pickers/date-picker/index.js +3 -0
  167. package/dist/components/ui/core/date-time-pickers/date-picker/index.js.map +1 -0
  168. package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +14 -14
  169. package/dist/components/ui/core/date-time-pickers/date-picker/types.js +3 -0
  170. package/dist/components/ui/core/date-time-pickers/date-picker/types.js.map +1 -0
  171. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +2 -2
  172. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +51 -36
  173. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js.map +1 -0
  174. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +11 -13
  175. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +89 -64
  176. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js.map +1 -0
  177. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -3
  178. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js +3 -0
  179. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js.map +1 -0
  180. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +20 -20
  181. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js +3 -0
  182. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js.map +1 -0
  183. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -4
  184. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +95 -60
  185. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js.map +1 -0
  186. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.d.ts +15 -0
  187. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js +120 -0
  188. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js.map +1 -0
  189. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.d.ts +3 -1
  190. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js +3 -0
  191. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js.map +1 -0
  192. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.d.ts +25 -32
  193. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js +3 -0
  194. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js.map +1 -0
  195. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.d.ts +2 -2
  196. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js +78 -0
  197. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js.map +1 -0
  198. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +13 -15
  199. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +165 -119
  200. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js.map +1 -0
  201. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -3
  202. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js +3 -0
  203. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js.map +1 -0
  204. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +37 -37
  205. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js +3 -0
  206. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js.map +1 -0
  207. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -3
  208. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +163 -104
  209. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js.map +1 -0
  210. package/dist/components/ui/core/date-time-pickers/index.d.ts +17 -12
  211. package/dist/components/ui/core/date-time-pickers/index.js +10 -6
  212. package/dist/components/ui/core/date-time-pickers/index.js.map +1 -0
  213. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +5 -5
  214. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +52 -42
  215. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js.map +1 -0
  216. package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +6 -1
  217. package/dist/components/ui/core/date-time-pickers/shared/constants.js +23 -0
  218. package/dist/components/ui/core/date-time-pickers/shared/constants.js.map +1 -0
  219. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +16 -15
  220. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +87 -64
  221. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js.map +1 -0
  222. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +10 -9
  223. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +89 -38
  224. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js.map +1 -0
  225. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +5 -5
  226. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +34 -23
  227. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js.map +1 -0
  228. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +23 -23
  229. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +95 -52
  230. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js.map +1 -0
  231. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +5 -5
  232. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +22 -18
  233. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js.map +1 -0
  234. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.d.ts +19 -19
  235. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +41 -24
  236. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js.map +1 -0
  237. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +13 -13
  238. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +33 -24
  239. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js.map +1 -0
  240. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +5 -5
  241. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +9 -4
  242. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js.map +1 -0
  243. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -9
  244. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +22 -17
  245. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js.map +1 -0
  246. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.d.ts +2 -2
  247. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js +3 -0
  248. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js.map +1 -0
  249. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +13 -13
  250. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +49 -40
  251. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js.map +1 -0
  252. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +7 -7
  253. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +41 -34
  254. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js.map +1 -0
  255. package/dist/components/ui/core/date-time-pickers/time-picker/index.d.ts +3 -3
  256. package/dist/components/ui/core/date-time-pickers/time-picker/index.js +3 -0
  257. package/dist/components/ui/core/date-time-pickers/time-picker/index.js.map +1 -0
  258. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.d.ts +12 -14
  259. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +99 -79
  260. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js.map +1 -0
  261. package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +20 -20
  262. package/dist/components/ui/core/date-time-pickers/time-picker/types.js +3 -0
  263. package/dist/components/ui/core/date-time-pickers/time-picker/types.js.map +1 -0
  264. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.d.ts +2 -2
  265. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +63 -41
  266. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js.map +1 -0
  267. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.d.ts +3 -1
  268. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js +3 -0
  269. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js.map +1 -0
  270. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.d.ts +14 -0
  271. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js +115 -0
  272. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js.map +1 -0
  273. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.d.ts +30 -36
  274. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js +3 -0
  275. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js.map +1 -0
  276. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.d.ts +2 -2
  277. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js +145 -0
  278. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js.map +1 -0
  279. package/dist/components/ui/core/date-time-pickers/utils/date-input.d.ts +56 -0
  280. package/dist/components/ui/core/date-time-pickers/utils/date-input.js +67 -0
  281. package/dist/components/ui/core/date-time-pickers/utils/date-input.js.map +1 -0
  282. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +18 -18
  283. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js +42 -0
  284. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js.map +1 -0
  285. package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +31 -29
  286. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js +56 -0
  287. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js.map +1 -0
  288. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +21 -21
  289. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js +170 -0
  290. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js.map +1 -0
  291. package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +28 -28
  292. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +88 -7
  293. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js.map +1 -0
  294. package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +17 -17
  295. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js +43 -0
  296. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js.map +1 -0
  297. package/dist/components/ui/core/dialog/dialog.d.ts +12 -9
  298. package/dist/components/ui/core/dialog/dialog.js +90 -82
  299. package/dist/components/ui/core/dialog/dialog.js.map +1 -0
  300. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +22 -19
  301. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +204 -149
  302. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js.map +1 -0
  303. package/dist/components/ui/core/empty-state/empty-state.context.d.ts +4 -4
  304. package/dist/components/ui/core/empty-state/empty-state.context.js +8 -5
  305. package/dist/components/ui/core/empty-state/empty-state.context.js.map +1 -0
  306. package/dist/components/ui/core/empty-state/empty-state.d.ts +14 -14
  307. package/dist/components/ui/core/empty-state/empty-state.js +96 -82
  308. package/dist/components/ui/core/empty-state/empty-state.js.map +1 -0
  309. package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -7
  310. package/dist/components/ui/core/helper-text/helper-text.js +55 -36
  311. package/dist/components/ui/core/helper-text/helper-text.js.map +1 -0
  312. package/dist/components/ui/core/hover-card/hover-card.d.ts +7 -6
  313. package/dist/components/ui/core/hover-card/hover-card.js +56 -52
  314. package/dist/components/ui/core/hover-card/hover-card.js.map +1 -0
  315. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +26 -25
  316. package/dist/components/ui/core/inline-citation/inline-citation.js +121 -97
  317. package/dist/components/ui/core/inline-citation/inline-citation.js.map +1 -0
  318. package/dist/components/ui/core/input/input.d.ts +2 -2
  319. package/dist/components/ui/core/input/input.gallery.d.ts +2 -0
  320. package/dist/components/ui/core/input/input.gallery.js +89 -0
  321. package/dist/components/ui/core/input/input.gallery.js.map +1 -0
  322. package/dist/components/ui/core/input/input.js +15 -13
  323. package/dist/components/ui/core/input/input.js.map +1 -0
  324. package/dist/components/ui/core/input-group/input-group.d.ts +25 -14
  325. package/dist/components/ui/core/input-group/input-group.js +149 -76
  326. package/dist/components/ui/core/input-group/input-group.js.map +1 -0
  327. package/dist/components/ui/core/item/item.d.ts +20 -0
  328. package/dist/components/ui/core/item/item.js +93 -0
  329. package/dist/components/ui/core/item/item.js.map +1 -0
  330. package/dist/components/ui/core/kbd/kbd.d.ts +3 -3
  331. package/dist/components/ui/core/kbd/kbd.js +24 -20
  332. package/dist/components/ui/core/kbd/kbd.js.map +1 -0
  333. package/dist/components/ui/core/label/label.d.ts +3 -3
  334. package/dist/components/ui/core/label/label.gallery.d.ts +2 -0
  335. package/dist/components/ui/core/label/label.gallery.js +57 -0
  336. package/dist/components/ui/core/label/label.gallery.js.map +1 -0
  337. package/dist/components/ui/core/label/label.js +33 -26
  338. package/dist/components/ui/core/label/label.js.map +1 -0
  339. package/dist/components/ui/core/loader/loader.d.ts +6 -6
  340. package/dist/components/ui/core/loader/loader.js +97 -80
  341. package/dist/components/ui/core/loader/loader.js.map +1 -0
  342. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +8 -9
  343. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +18 -12
  344. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js.map +1 -0
  345. package/dist/components/ui/core/message/message-response-math-plugin.d.ts +3 -0
  346. package/dist/components/ui/core/message/message-response-math-plugin.js +6 -0
  347. package/dist/components/ui/core/message/message-response-math-plugin.js.map +1 -0
  348. package/dist/components/ui/core/message/message.d.ts +27 -23
  349. package/dist/components/ui/core/message/message.js +458 -316
  350. package/dist/components/ui/core/message/message.js.map +1 -0
  351. package/dist/components/ui/core/overflow-list/overflow-list.d.ts +21 -0
  352. package/dist/components/ui/core/overflow-list/overflow-list.js +197 -0
  353. package/dist/components/ui/core/overflow-list/overflow-list.js.map +1 -0
  354. package/dist/components/ui/core/overflow-list/overflow-list.utils.d.ts +37 -35
  355. package/dist/components/ui/core/overflow-list/overflow-list.utils.js +206 -0
  356. package/dist/components/ui/core/overflow-list/overflow-list.utils.js.map +1 -0
  357. package/dist/components/ui/core/pagination/pagination-size-context.d.ts +2 -2
  358. package/dist/components/ui/core/pagination/pagination-size-context.js +6 -5
  359. package/dist/components/ui/core/pagination/pagination-size-context.js.map +1 -0
  360. package/dist/components/ui/core/pagination/pagination-teleport.d.ts +9 -9
  361. package/dist/components/ui/core/pagination/pagination-teleport.js +127 -84
  362. package/dist/components/ui/core/pagination/pagination-teleport.js.map +1 -0
  363. package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
  364. package/dist/components/ui/core/pagination/pagination-teleport.utils.js.map +1 -0
  365. package/dist/components/ui/core/pagination/pagination.d.ts +39 -39
  366. package/dist/components/ui/core/pagination/pagination.js +294 -234
  367. package/dist/components/ui/core/pagination/pagination.js.map +1 -0
  368. package/dist/components/ui/core/popover/popover.d.ts +12 -11
  369. package/dist/components/ui/core/popover/popover.js +104 -89
  370. package/dist/components/ui/core/popover/popover.js.map +1 -0
  371. package/dist/components/ui/core/progress/progress.d.ts +9 -8
  372. package/dist/components/ui/core/progress/progress.js +50 -35
  373. package/dist/components/ui/core/progress/progress.js.map +1 -0
  374. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +27 -27
  375. package/dist/components/ui/core/prompt-input/prompt-input.js +342 -271
  376. package/dist/components/ui/core/prompt-input/prompt-input.js.map +1 -0
  377. package/dist/components/ui/core/radio-group/radio-group.d.ts +12 -12
  378. package/dist/components/ui/core/radio-group/radio-group.gallery.d.ts +2 -0
  379. package/dist/components/ui/core/radio-group/radio-group.gallery.js +44 -0
  380. package/dist/components/ui/core/radio-group/radio-group.gallery.js.map +1 -0
  381. package/dist/components/ui/core/radio-group/radio-group.js +88 -58
  382. package/dist/components/ui/core/radio-group/radio-group.js.map +1 -0
  383. package/dist/components/ui/core/reasoning/reasoning.d.ts +7 -7
  384. package/dist/components/ui/core/reasoning/reasoning.js +68 -56
  385. package/dist/components/ui/core/reasoning/reasoning.js.map +1 -0
  386. package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -4
  387. package/dist/components/ui/core/scroll-area/scroll-area.js +50 -40
  388. package/dist/components/ui/core/scroll-area/scroll-area.js.map +1 -0
  389. package/dist/components/ui/core/search/search.d.ts +8 -8
  390. package/dist/components/ui/core/search/search.js +122 -76
  391. package/dist/components/ui/core/search/search.js.map +1 -0
  392. package/dist/components/ui/core/segmented-control/segmented-control.d.ts +10 -10
  393. package/dist/components/ui/core/segmented-control/segmented-control.js +203 -149
  394. package/dist/components/ui/core/segmented-control/segmented-control.js.map +1 -0
  395. package/dist/components/ui/core/select/select.d.ts +33 -26
  396. package/dist/components/ui/core/select/select.js +262 -168
  397. package/dist/components/ui/core/select/select.js.map +1 -0
  398. package/dist/components/ui/core/separator/separator.d.ts +2 -2
  399. package/dist/components/ui/core/separator/separator.gallery.d.ts +2 -0
  400. package/dist/components/ui/core/separator/separator.gallery.js +63 -0
  401. package/dist/components/ui/core/separator/separator.gallery.js.map +1 -0
  402. package/dist/components/ui/core/separator/separator.js +13 -13
  403. package/dist/components/ui/core/separator/separator.js.map +1 -0
  404. package/dist/components/ui/core/shimmer/shimmer.d.ts +8 -8
  405. package/dist/components/ui/core/shimmer/shimmer.js +64 -40
  406. package/dist/components/ui/core/shimmer/shimmer.js.map +1 -0
  407. package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -2
  408. package/dist/components/ui/core/skeleton/skeleton.gallery.d.ts +2 -0
  409. package/dist/components/ui/core/skeleton/skeleton.gallery.js +22 -0
  410. package/dist/components/ui/core/skeleton/skeleton.gallery.js.map +1 -0
  411. package/dist/components/ui/core/skeleton/skeleton.js +13 -13
  412. package/dist/components/ui/core/skeleton/skeleton.js.map +1 -0
  413. package/dist/components/ui/core/slider/slider.d.ts +7 -7
  414. package/dist/components/ui/core/slider/slider.gallery.d.ts +2 -0
  415. package/dist/components/ui/core/slider/slider.gallery.js +62 -0
  416. package/dist/components/ui/core/slider/slider.gallery.js.map +1 -0
  417. package/dist/components/ui/core/slider/slider.js +51 -39
  418. package/dist/components/ui/core/slider/slider.js.map +1 -0
  419. package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +2 -2
  420. package/dist/components/ui/core/sonner-toast/sonner-toast.js +67 -54
  421. package/dist/components/ui/core/sonner-toast/sonner-toast.js.map +1 -0
  422. package/dist/components/ui/core/sources/sources.d.ts +12 -12
  423. package/dist/components/ui/core/sources/sources.js +87 -58
  424. package/dist/components/ui/core/sources/sources.js.map +1 -0
  425. package/dist/components/ui/core/status-text/status-text.d.ts +4 -0
  426. package/dist/components/ui/core/status-text/status-text.js +14 -0
  427. package/dist/components/ui/core/status-text/status-text.js.map +1 -0
  428. package/dist/components/ui/core/switch/switch.d.ts +9 -9
  429. package/dist/components/ui/core/switch/switch.gallery.d.ts +2 -0
  430. package/dist/components/ui/core/switch/switch.gallery.js +67 -0
  431. package/dist/components/ui/core/switch/switch.gallery.js.map +1 -0
  432. package/dist/components/ui/core/switch/switch.js +83 -61
  433. package/dist/components/ui/core/switch/switch.js.map +1 -0
  434. package/dist/components/ui/core/switch/switch.metadata.d.ts +1 -1
  435. package/dist/components/ui/core/switch/switch.metadata.js +8 -0
  436. package/dist/components/ui/core/switch/switch.metadata.js.map +1 -0
  437. package/dist/components/ui/core/tabs/tabs.d.ts +20 -18
  438. package/dist/components/ui/core/tabs/tabs.js +176 -147
  439. package/dist/components/ui/core/tabs/tabs.js.map +1 -0
  440. package/dist/components/ui/core/tabs/tabs.utils.d.ts +1 -1
  441. package/dist/components/ui/core/tabs/tabs.utils.js +10 -6
  442. package/dist/components/ui/core/tabs/tabs.utils.js.map +1 -0
  443. package/dist/components/ui/core/textarea/textarea.d.ts +2 -2
  444. package/dist/components/ui/core/textarea/textarea.gallery.d.ts +2 -0
  445. package/dist/components/ui/core/textarea/textarea.gallery.js +51 -0
  446. package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -0
  447. package/dist/components/ui/core/textarea/textarea.js +13 -13
  448. package/dist/components/ui/core/textarea/textarea.js.map +1 -0
  449. package/dist/components/ui/core/toggle/toggle.d.ts +9 -9
  450. package/dist/components/ui/core/toggle/toggle.gallery.d.ts +2 -0
  451. package/dist/components/ui/core/toggle/toggle.gallery.js +32 -0
  452. package/dist/components/ui/core/toggle/toggle.gallery.js.map +1 -0
  453. package/dist/components/ui/core/toggle/toggle.js +60 -54
  454. package/dist/components/ui/core/toggle/toggle.js.map +1 -0
  455. package/dist/components/ui/core/tool/tool.d.ts +18 -18
  456. package/dist/components/ui/core/tool/tool.js +167 -126
  457. package/dist/components/ui/core/tool/tool.js.map +1 -0
  458. package/dist/components/ui/core/toolbar/toolbar.d.ts +37 -0
  459. package/dist/components/ui/core/toolbar/toolbar.js +171 -0
  460. package/dist/components/ui/core/toolbar/toolbar.js.map +1 -0
  461. package/dist/components/ui/core/tooltip/tooltip.d.ts +8 -7
  462. package/dist/components/ui/core/tooltip/tooltip.gallery.d.ts +2 -0
  463. package/dist/components/ui/core/tooltip/tooltip.gallery.js +52 -0
  464. package/dist/components/ui/core/tooltip/tooltip.gallery.js.map +1 -0
  465. package/dist/components/ui/core/tooltip/tooltip.js +53 -46
  466. package/dist/components/ui/core/tooltip/tooltip.js.map +1 -0
  467. package/dist/components/ui/core/topbar/topbar.d.ts +26 -26
  468. package/dist/components/ui/core/topbar/topbar.js +160 -105
  469. package/dist/components/ui/core/topbar/topbar.js.map +1 -0
  470. package/dist/components/ui/core/tree/tree.d.ts +20 -0
  471. package/dist/components/ui/core/tree/tree.js +100 -0
  472. package/dist/components/ui/core/tree/tree.js.map +1 -0
  473. package/dist/eslint/index.d.ts +5 -5
  474. package/dist/eslint/index.js +9 -5
  475. package/dist/eslint/index.js.map +1 -0
  476. package/dist/eslint/no-overriding-styles.d.ts +1 -1
  477. package/dist/eslint/no-overriding-styles.js +341 -201
  478. package/dist/eslint/no-overriding-styles.js.map +1 -0
  479. package/dist/icons/index.d.ts +1 -1
  480. package/dist/icons/index.js +2 -0
  481. package/dist/icons/index.js.map +1 -0
  482. package/dist/index.d.ts +1 -1
  483. package/dist/index.js +3 -0
  484. package/dist/index.js.map +1 -0
  485. package/dist/lib/ai/types.d.ts +43 -43
  486. package/dist/lib/ai/types.js +3 -0
  487. package/dist/lib/ai/types.js.map +1 -0
  488. package/dist/lib/decorative-variant-classes.d.ts +53 -0
  489. package/dist/lib/decorative-variant-classes.js +58 -0
  490. package/dist/lib/decorative-variant-classes.js.map +1 -0
  491. package/dist/lib/highlight-code.d.ts +11 -8
  492. package/dist/lib/highlight-code.js +58 -40
  493. package/dist/lib/highlight-code.js.map +1 -0
  494. package/dist/lib/portal-container-context.d.ts +1 -1
  495. package/dist/lib/portal-container-context.js +8 -8
  496. package/dist/lib/portal-container-context.js.map +1 -0
  497. package/dist/lib/shared-theme-from-url.d.ts +13 -0
  498. package/dist/lib/shared-theme-from-url.js +61 -0
  499. package/dist/lib/shared-theme-from-url.js.map +1 -0
  500. package/dist/lib/style-scope.d.ts +2 -2
  501. package/dist/lib/style-scope.js +6 -6
  502. package/dist/lib/style-scope.js.map +1 -0
  503. package/dist/lib/theme-share-url.d.ts +31 -0
  504. package/dist/lib/theme-share-url.js +116 -0
  505. package/dist/lib/theme-share-url.js.map +1 -0
  506. package/dist/lib/types.d.ts +39 -39
  507. package/dist/lib/types.js +3 -0
  508. package/dist/lib/types.js.map +1 -0
  509. package/dist/lib/use-controllable-state.d.ts +4 -7
  510. package/dist/lib/use-controllable-state.js +34 -21
  511. package/dist/lib/use-controllable-state.js.map +1 -0
  512. package/dist/lib/utils.d.ts +63 -34
  513. package/dist/lib/utils.js +134 -32
  514. package/dist/lib/utils.js.map +1 -0
  515. package/dist/styles.css +2 -1
  516. package/dist/styles.source.css +46 -16
  517. package/dist/utils/assign-ref.d.ts +3 -0
  518. package/dist/utils/assign-ref.js +13 -0
  519. package/dist/utils/assign-ref.js.map +1 -0
  520. package/package.json +49 -14
  521. package/src/components/ui/core/alert/alert.md +46 -0
  522. package/src/components/ui/core/avatar/avatar.md +30 -0
  523. package/src/components/ui/core/badge/badge.md +32 -0
  524. package/src/components/ui/core/banner/banner.md +51 -0
  525. package/src/components/ui/core/breadcrumb/breadcrumb.md +45 -0
  526. package/src/components/ui/core/button/button.md +93 -0
  527. package/src/components/ui/core/button-group/button-group.md +38 -0
  528. package/src/components/ui/core/checkbox/checkbox.md +37 -0
  529. package/src/components/ui/core/collapsible/collapsible.md +42 -0
  530. package/src/components/ui/core/count/count.md +33 -0
  531. package/src/components/ui/core/input/input.md +48 -0
  532. package/src/components/ui/core/label/label.md +35 -0
  533. package/src/components/ui/core/radio-group/radio-group.md +38 -0
  534. package/src/components/ui/core/separator/separator.md +32 -0
  535. package/src/components/ui/core/skeleton/skeleton.md +33 -0
  536. package/src/components/ui/core/slider/slider.md +41 -0
  537. package/src/components/ui/core/switch/switch.md +26 -0
  538. package/src/components/ui/core/textarea/textarea.md +42 -0
  539. package/src/components/ui/core/toggle/toggle.md +39 -0
  540. package/src/components/ui/core/tooltip/tooltip.md +41 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.ts"],"sourcesContent":["import { useCallback, useRef, useState } from 'react';\n\nimport type { Dayjs } from 'dayjs';\n\nimport type { RangeSelectionStep } from './use-range-step-manager';\n\nexport interface DateStateSnapshot {\n tempStart: Dayjs | null;\n tempEnd: Dayjs | null;\n}\n\nexport interface UseRangeDateStateOptions {\n value: [Dayjs | null, Dayjs | null];\n defaultDate: Dayjs;\n /** Transforms a clicked date before storing; pass time-of-day defaults for datetime variants. */\n mapDate?: (date: Dayjs, role: 'start' | 'end') => Dayjs;\n /** Called when the end date is selected; used for auto-apply in date-only variants. */\n onEndDateSelected?: (start: Dayjs | null, end: Dayjs) => void;\n}\n\nexport interface UseRangeDateStateReturn {\n tempStart: Dayjs | null;\n tempEnd: Dayjs | null;\n displayedMonth: Dayjs;\n hoverDate: Dayjs | null;\n /** Synchronous ref — use inside callbacks to avoid stale closures. */\n stateRef: React.MutableRefObject<DateStateSnapshot>;\n handleDateClick: (date: Dayjs, step: RangeSelectionStep) => void;\n handleDateHover: (date: Dayjs | null) => void;\n handleMonthChange: (month: Dayjs) => void;\n /** Returns the new [start, end] tuple, or null if the segment was already empty (signals caller to move focus to start). */\n clearActiveSegment: (\n step: RangeSelectionStep\n ) => [Dayjs | null, Dayjs | null] | null;\n resetDates: (value: [Dayjs | null, Dayjs | null]) => void;\n}\n\nexport const useRangeDateState = ({\n value,\n defaultDate,\n mapDate,\n onEndDateSelected,\n}: UseRangeDateStateOptions): UseRangeDateStateReturn => {\n const applyMap = useCallback(\n (date: Dayjs, role: 'start' | 'end'): Dayjs =>\n mapDate ? mapDate(date, role) : date,\n [mapDate]\n );\n\n const [tempStart, setTempStart] = useState<Dayjs | null>(value[0]);\n const [tempEnd, setTempEnd] = useState<Dayjs | null>(value[1]);\n const [displayedMonth, setDisplayedMonth] = useState<Dayjs>(\n () => value[0] ?? defaultDate\n );\n const [hoverDate, setHoverDate] = useState<Dayjs | null>(null);\n\n const stateRef = useRef<DateStateSnapshot>({\n tempStart: value[0],\n tempEnd: value[1],\n });\n\n const updateStart = useCallback((date: Dayjs | null) => {\n stateRef.current.tempStart = date;\n setTempStart(date);\n }, []);\n\n const updateEnd = useCallback((date: Dayjs | null) => {\n stateRef.current.tempEnd = date;\n setTempEnd(date);\n }, []);\n\n const handleDateClick = useCallback(\n (date: Dayjs, step: RangeSelectionStep) => {\n if (step === 'start') {\n updateStart(applyMap(date, 'start'));\n updateEnd(null);\n setHoverDate(null);\n return;\n }\n\n const currentStart = stateRef.current.tempStart;\n if (currentStart && date.isBefore(currentStart, 'day')) {\n updateStart(applyMap(date, 'start'));\n updateEnd(null);\n setHoverDate(null);\n return;\n }\n\n const mappedEnd = applyMap(date, 'end');\n updateEnd(mappedEnd);\n setHoverDate(null);\n onEndDateSelected?.(stateRef.current.tempStart, mappedEnd);\n },\n [applyMap, updateStart, updateEnd, onEndDateSelected]\n );\n\n const handleDateHover = useCallback((date: Dayjs | null) => {\n setHoverDate(date);\n }, []);\n\n const handleMonthChange = useCallback((month: Dayjs) => {\n setDisplayedMonth(month);\n }, []);\n\n const clearActiveSegment = useCallback(\n (step: RangeSelectionStep): [Dayjs | null, Dayjs | null] | null => {\n if (step === 'start') {\n updateStart(null);\n return [null, stateRef.current.tempEnd];\n }\n if (stateRef.current.tempEnd === null) {\n return null;\n }\n updateEnd(null);\n return [stateRef.current.tempStart, null];\n },\n [updateStart, updateEnd]\n );\n\n const resetDates = useCallback(\n (newValue: [Dayjs | null, Dayjs | null]) => {\n updateStart(newValue[0]);\n updateEnd(newValue[1]);\n setHoverDate(null);\n setDisplayedMonth(newValue[0] ?? defaultDate);\n },\n [updateStart, updateEnd, defaultDate]\n );\n\n return {\n tempStart,\n tempEnd,\n displayedMonth,\n hoverDate,\n stateRef,\n handleDateClick,\n handleDateHover,\n handleMonthChange,\n clearActiveSegment,\n resetDates,\n };\n};\n"],"names":["useCallback","useRef","useState","useRangeDateState","value","defaultDate","mapDate","onEndDateSelected","applyMap","date","role","tempStart","setTempStart","tempEnd","setTempEnd","displayedMonth","setDisplayedMonth","hoverDate","setHoverDate","stateRef","updateStart","current","updateEnd","handleDateClick","step","currentStart","isBefore","mappedEnd","handleDateHover","handleMonthChange","month","clearActiveSegment","resetDates","newValue"],"mappings":"AAAA,SAASA,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAqCtD,OAAO,MAAMC,oBAAoB,CAAC,EAChCC,KAAK,EACLC,WAAW,EACXC,OAAO,EACPC,iBAAiB,EACQ;IACzB,MAAMC,WAAWR,YACf,CAACS,MAAaC,OACZJ,UAAUA,QAAQG,MAAMC,QAAQD,MAClC;QAACH;KAAQ;IAGX,MAAM,CAACK,WAAWC,aAAa,GAAGV,SAAuBE,KAAK,CAAC,EAAE;IACjE,MAAM,CAACS,SAASC,WAAW,GAAGZ,SAAuBE,KAAK,CAAC,EAAE;IAC7D,MAAM,CAACW,gBAAgBC,kBAAkB,GAAGd,SAC1C,IAAME,KAAK,CAAC,EAAE,IAAIC;IAEpB,MAAM,CAACY,WAAWC,aAAa,GAAGhB,SAAuB;IAEzD,MAAMiB,WAAWlB,OAA0B;QACzCU,WAAWP,KAAK,CAAC,EAAE;QACnBS,SAAST,KAAK,CAAC,EAAE;IACnB;IAEA,MAAMgB,cAAcpB,YAAY,CAACS;QAC/BU,SAASE,OAAO,CAACV,SAAS,GAAGF;QAC7BG,aAAaH;IACf,GAAG,EAAE;IAEL,MAAMa,YAAYtB,YAAY,CAACS;QAC7BU,SAASE,OAAO,CAACR,OAAO,GAAGJ;QAC3BK,WAAWL;IACb,GAAG,EAAE;IAEL,MAAMc,kBAAkBvB,YACtB,CAACS,MAAae;QACZ,IAAIA,SAAS,SAAS;YACpBJ,YAAYZ,SAASC,MAAM;YAC3Ba,UAAU;YACVJ,aAAa;YACb;QACF;QAEA,MAAMO,eAAeN,SAASE,OAAO,CAACV,SAAS;QAC/C,IAAIc,gBAAgBhB,KAAKiB,QAAQ,CAACD,cAAc,QAAQ;YACtDL,YAAYZ,SAASC,MAAM;YAC3Ba,UAAU;YACVJ,aAAa;YACb;QACF;QAEA,MAAMS,YAAYnB,SAASC,MAAM;QACjCa,UAAUK;QACVT,aAAa;QACbX,oBAAoBY,SAASE,OAAO,CAACV,SAAS,EAAEgB;IAClD,GACA;QAACnB;QAAUY;QAAaE;QAAWf;KAAkB;IAGvD,MAAMqB,kBAAkB5B,YAAY,CAACS;QACnCS,aAAaT;IACf,GAAG,EAAE;IAEL,MAAMoB,oBAAoB7B,YAAY,CAAC8B;QACrCd,kBAAkBc;IACpB,GAAG,EAAE;IAEL,MAAMC,qBAAqB/B,YACzB,CAACwB;QACC,IAAIA,SAAS,SAAS;YACpBJ,YAAY;YACZ,OAAO;gBAAC;gBAAMD,SAASE,OAAO,CAACR,OAAO;aAAC;QACzC;QACA,IAAIM,SAASE,OAAO,CAACR,OAAO,KAAK,MAAM;YACrC,OAAO;QACT;QACAS,UAAU;QACV,OAAO;YAACH,SAASE,OAAO,CAACV,SAAS;YAAE;SAAK;IAC3C,GACA;QAACS;QAAaE;KAAU;IAG1B,MAAMU,aAAahC,YACjB,CAACiC;QACCb,YAAYa,QAAQ,CAAC,EAAE;QACvBX,UAAUW,QAAQ,CAAC,EAAE;QACrBf,aAAa;QACbF,kBAAkBiB,QAAQ,CAAC,EAAE,IAAI5B;IACnC,GACA;QAACe;QAAaE;QAAWjB;KAAY;IAGvC,OAAO;QACLM;QACAE;QACAE;QACAE;QACAE;QACAI;QACAK;QACAC;QACAE;QACAC;IACF;AACF,EAAE"}
@@ -1,8 +1,8 @@
1
- export type RangeSelectionStep = 'start' | 'end';
1
+ export type RangeSelectionStep = "start" | "end";
2
2
  export interface UseRangeStepManagerReturn {
3
- step: RangeSelectionStep;
4
- handleNext: () => void;
5
- handleBack: () => void;
6
- resetStep: () => void;
3
+ step: RangeSelectionStep;
4
+ handleNext: () => void;
5
+ handleBack: () => void;
6
+ resetStep: () => void;
7
7
  }
8
8
  export declare const useRangeStepManager: () => UseRangeStepManagerReturn;
@@ -1,19 +1,23 @@
1
- import { useCallback as e, useState as t } from "react";
2
- //#region libs/aura/src/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.ts
3
- var n = () => {
4
- let [n, r] = t("start");
5
- return {
6
- step: n,
7
- handleNext: e(() => {
8
- r("end");
9
- }, []),
10
- handleBack: e(() => {
11
- r("start");
12
- }, []),
13
- resetStep: e(() => {
14
- r("start");
15
- }, [])
16
- };
1
+ import { useCallback, useState } from "react";
2
+ export const useRangeStepManager = ()=>{
3
+ const [step, setStep] = useState('start');
4
+ const handleNext = useCallback(()=>{
5
+ setStep('end');
6
+ }, []);
7
+ // Navigates back to the start step during range selection
8
+ const handleBack = useCallback(()=>{
9
+ setStep('start');
10
+ }, []);
11
+ // Resets selection to the initial start step (e.g. after a value is committed)
12
+ const resetStep = useCallback(()=>{
13
+ setStep('start');
14
+ }, []);
15
+ return {
16
+ step,
17
+ handleNext,
18
+ handleBack,
19
+ resetStep
20
+ };
17
21
  };
18
- //#endregion
19
- export { n as useRangeStepManager };
22
+
23
+ //# sourceMappingURL=use-range-step-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\n\nexport type RangeSelectionStep = 'start' | 'end';\n\nexport interface UseRangeStepManagerReturn {\n step: RangeSelectionStep;\n handleNext: () => void;\n handleBack: () => void;\n resetStep: () => void;\n}\n\nexport const useRangeStepManager = (): UseRangeStepManagerReturn => {\n const [step, setStep] = useState<RangeSelectionStep>('start');\n\n const handleNext = useCallback(() => {\n setStep('end');\n }, []);\n\n // Navigates back to the start step during range selection\n const handleBack = useCallback(() => {\n setStep('start');\n }, []);\n\n // Resets selection to the initial start step (e.g. after a value is committed)\n const resetStep = useCallback(() => {\n setStep('start');\n }, []);\n\n return {\n step,\n handleNext,\n handleBack,\n resetStep,\n };\n};\n"],"names":["useCallback","useState","useRangeStepManager","step","setStep","handleNext","handleBack","resetStep"],"mappings":"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,QAAQ;AAW9C,OAAO,MAAMC,sBAAsB;IACjC,MAAM,CAACC,MAAMC,QAAQ,GAAGH,SAA6B;IAErD,MAAMI,aAAaL,YAAY;QAC7BI,QAAQ;IACV,GAAG,EAAE;IAEL,0DAA0D;IAC1D,MAAME,aAAaN,YAAY;QAC7BI,QAAQ;IACV,GAAG,EAAE;IAEL,+EAA+E;IAC/E,MAAMG,YAAYP,YAAY;QAC5BI,QAAQ;IACV,GAAG,EAAE;IAEL,OAAO;QACLD;QACAE;QACAC;QACAC;IACF;AACF,EAAE"}
@@ -1,23 +1,23 @@
1
- import { Dayjs } from 'dayjs';
1
+ import type { Dayjs } from "dayjs";
2
2
  export interface UseSingleDateStateOptions {
3
- value: Dayjs | null;
4
- defaultDate: Dayjs;
5
- /** Transforms a clicked date before storing; pass time-of-day defaults for datetime variants. */
6
- mapDate?: (date: Dayjs) => Dayjs;
7
- /** Called when a date is selected; used for auto-apply in date-only variants. */
8
- onDateSelected?: (date: Dayjs) => void;
3
+ value: Dayjs | null;
4
+ defaultDate: Dayjs;
5
+ /** Transforms a clicked date before storing; pass time-of-day defaults for datetime variants. */
6
+ mapDate?: (date: Dayjs) => Dayjs;
7
+ /** Called when a date is selected; used for auto-apply in date-only variants. */
8
+ onDateSelected?: (date: Dayjs) => void;
9
9
  }
10
10
  export interface UseSingleDateStateReturn {
11
- tempDate: Dayjs | null;
12
- displayedMonth: Dayjs;
13
- /** Synchronous ref — use inside callbacks to avoid stale closures. */
14
- stateRef: React.MutableRefObject<{
15
- tempDate: Dayjs | null;
16
- }>;
17
- handleDateClick: (date: Dayjs) => void;
18
- handleMonthChange: (month: Dayjs) => void;
19
- /** Returns true when a date was cleared, false when already empty. */
20
- clearDate: () => boolean;
21
- resetDate: (value: Dayjs | null) => void;
11
+ tempDate: Dayjs | null;
12
+ displayedMonth: Dayjs;
13
+ /** Synchronous ref — use inside callbacks to avoid stale closures. */
14
+ stateRef: React.MutableRefObject<{
15
+ tempDate: Dayjs | null;
16
+ }>;
17
+ handleDateClick: (date: Dayjs) => void;
18
+ handleMonthChange: (month: Dayjs) => void;
19
+ /** Returns true when a date was cleared, false when already empty. */
20
+ clearDate: () => boolean;
21
+ resetDate: (value: Dayjs | null) => void;
22
22
  }
23
- export declare const useSingleDateState: ({ value, defaultDate, mapDate, onDateSelected, }: UseSingleDateStateOptions) => UseSingleDateStateReturn;
23
+ export declare const useSingleDateState: ({ value, defaultDate, mapDate, onDateSelected }: UseSingleDateStateOptions) => UseSingleDateStateReturn;
@@ -1,25 +1,42 @@
1
- import { useRef as e, useState as t } from "react";
2
- //#region libs/aura/src/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.ts
3
- var n = ({ value: n, defaultDate: r, mapDate: i, onDateSelected: a }) => {
4
- let [o, s] = t(n), [c, l] = t(() => n ?? r), u = e({ tempDate: n }), d = (e) => {
5
- u.current.tempDate = e, s(e);
6
- };
7
- return {
8
- tempDate: o,
9
- displayedMonth: c,
10
- stateRef: u,
11
- handleDateClick: (e) => {
12
- let t = i ? i(e) : e;
13
- d(t), a?.(t);
14
- },
15
- handleMonthChange: (e) => {
16
- l(e);
17
- },
18
- clearDate: () => u.current.tempDate === null ? !1 : (d(null), !0),
19
- resetDate: (e) => {
20
- d(e), l(e ?? r);
21
- }
22
- };
1
+ import { useRef, useState } from "react";
2
+ export const useSingleDateState = ({ value, defaultDate, mapDate, onDateSelected })=>{
3
+ const [tempDate, setTempDate] = useState(value);
4
+ const [displayedMonth, setDisplayedMonth] = useState(()=>value ?? defaultDate);
5
+ const stateRef = useRef({
6
+ tempDate: value
7
+ });
8
+ const updateDate = (date)=>{
9
+ stateRef.current.tempDate = date;
10
+ setTempDate(date);
11
+ };
12
+ const handleDateClick = (date)=>{
13
+ const mapped = mapDate ? mapDate(date) : date;
14
+ updateDate(mapped);
15
+ onDateSelected?.(mapped);
16
+ };
17
+ const handleMonthChange = (month)=>{
18
+ setDisplayedMonth(month);
19
+ };
20
+ const clearDate = ()=>{
21
+ if (stateRef.current.tempDate === null) {
22
+ return false;
23
+ }
24
+ updateDate(null);
25
+ return true;
26
+ };
27
+ const resetDate = (newValue)=>{
28
+ updateDate(newValue);
29
+ setDisplayedMonth(newValue ?? defaultDate);
30
+ };
31
+ return {
32
+ tempDate,
33
+ displayedMonth,
34
+ stateRef,
35
+ handleDateClick,
36
+ handleMonthChange,
37
+ clearDate,
38
+ resetDate
39
+ };
23
40
  };
24
- //#endregion
25
- export { n as useSingleDateState };
41
+
42
+ //# sourceMappingURL=use-single-date-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.ts"],"sourcesContent":["import { useRef, useState } from 'react';\n\nimport type { Dayjs } from 'dayjs';\n\nexport interface UseSingleDateStateOptions {\n value: Dayjs | null;\n defaultDate: Dayjs;\n /** Transforms a clicked date before storing; pass time-of-day defaults for datetime variants. */\n mapDate?: (date: Dayjs) => Dayjs;\n /** Called when a date is selected; used for auto-apply in date-only variants. */\n onDateSelected?: (date: Dayjs) => void;\n}\n\nexport interface UseSingleDateStateReturn {\n tempDate: Dayjs | null;\n displayedMonth: Dayjs;\n /** Synchronous ref — use inside callbacks to avoid stale closures. */\n stateRef: React.MutableRefObject<{ tempDate: Dayjs | null }>;\n handleDateClick: (date: Dayjs) => void;\n handleMonthChange: (month: Dayjs) => void;\n /** Returns true when a date was cleared, false when already empty. */\n clearDate: () => boolean;\n resetDate: (value: Dayjs | null) => void;\n}\n\nexport const useSingleDateState = ({\n value,\n defaultDate,\n mapDate,\n onDateSelected,\n}: UseSingleDateStateOptions): UseSingleDateStateReturn => {\n const [tempDate, setTempDate] = useState<Dayjs | null>(value);\n const [displayedMonth, setDisplayedMonth] = useState<Dayjs>(\n () => value ?? defaultDate\n );\n\n const stateRef = useRef({ tempDate: value });\n\n const updateDate = (date: Dayjs | null) => {\n stateRef.current.tempDate = date;\n setTempDate(date);\n };\n\n const handleDateClick = (date: Dayjs) => {\n const mapped = mapDate ? mapDate(date) : date;\n updateDate(mapped);\n onDateSelected?.(mapped);\n };\n\n const handleMonthChange = (month: Dayjs) => {\n setDisplayedMonth(month);\n };\n\n const clearDate = (): boolean => {\n if (stateRef.current.tempDate === null) {\n return false;\n }\n updateDate(null);\n return true;\n };\n\n const resetDate = (newValue: Dayjs | null) => {\n updateDate(newValue);\n setDisplayedMonth(newValue ?? defaultDate);\n };\n\n return {\n tempDate,\n displayedMonth,\n stateRef,\n handleDateClick,\n handleMonthChange,\n clearDate,\n resetDate,\n };\n};\n"],"names":["useRef","useState","useSingleDateState","value","defaultDate","mapDate","onDateSelected","tempDate","setTempDate","displayedMonth","setDisplayedMonth","stateRef","updateDate","date","current","handleDateClick","mapped","handleMonthChange","month","clearDate","resetDate","newValue"],"mappings":"AAAA,SAASA,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAyBzC,OAAO,MAAMC,qBAAqB,CAAC,EACjCC,KAAK,EACLC,WAAW,EACXC,OAAO,EACPC,cAAc,EACY;IAC1B,MAAM,CAACC,UAAUC,YAAY,GAAGP,SAAuBE;IACvD,MAAM,CAACM,gBAAgBC,kBAAkB,GAAGT,SAC1C,IAAME,SAASC;IAGjB,MAAMO,WAAWX,OAAO;QAAEO,UAAUJ;IAAM;IAE1C,MAAMS,aAAa,CAACC;QAClBF,SAASG,OAAO,CAACP,QAAQ,GAAGM;QAC5BL,YAAYK;IACd;IAEA,MAAME,kBAAkB,CAACF;QACvB,MAAMG,SAASX,UAAUA,QAAQQ,QAAQA;QACzCD,WAAWI;QACXV,iBAAiBU;IACnB;IAEA,MAAMC,oBAAoB,CAACC;QACzBR,kBAAkBQ;IACpB;IAEA,MAAMC,YAAY;QAChB,IAAIR,SAASG,OAAO,CAACP,QAAQ,KAAK,MAAM;YACtC,OAAO;QACT;QACAK,WAAW;QACX,OAAO;IACT;IAEA,MAAMQ,YAAY,CAACC;QACjBT,WAAWS;QACXX,kBAAkBW,YAAYjB;IAChC;IAEA,OAAO;QACLG;QACAE;QACAE;QACAI;QACAE;QACAE;QACAC;IACF;AACF,EAAE"}
@@ -1,17 +1,17 @@
1
- import { AmPm, TimeFormat } from '../../utils/format-utils';
1
+ import type { AmPm, TimeFormat } from "../../utils/format-utils";
2
2
  export interface UseTimeStateOptions {
3
- initialHour?: number;
4
- initialMinute?: number;
5
- timeFormat?: TimeFormat;
3
+ initialHour?: number;
4
+ initialMinute?: number;
5
+ timeFormat?: TimeFormat;
6
6
  }
7
7
  export interface UseTimeStateReturn {
8
- hour: number;
9
- minute: number;
10
- amPm: AmPm;
11
- hour24: number;
12
- handleHourChange: (hour: number) => void;
13
- handleMinuteChange: (minute: number) => void;
14
- handleAmPmChange: (amPm: AmPm) => void;
15
- resetTime: (hour: number, minute: number) => void;
8
+ hour: number;
9
+ minute: number;
10
+ amPm: AmPm;
11
+ hour24: number;
12
+ handleHourChange: (hour: number) => void;
13
+ handleMinuteChange: (minute: number) => void;
14
+ handleAmPmChange: (amPm: AmPm) => void;
15
+ resetTime: (hour: number, minute: number) => void;
16
16
  }
17
- export declare const useTimeState: ({ initialHour, initialMinute, timeFormat, }?: UseTimeStateOptions) => UseTimeStateReturn;
17
+ export declare const useTimeState: ({ initialHour, initialMinute, timeFormat }?: UseTimeStateOptions) => UseTimeStateReturn;
@@ -1,25 +1,34 @@
1
- import { convert12HourTo24Hour as e, convert24HourTo12Hour as t, getAmPmFromHour as n } from "../../utils/time-utils.js";
2
- import { useCallback as r, useMemo as i, useState as a } from "react";
3
- //#region libs/aura/src/components/ui/core/date-time-pickers/shared/hooks/use-time-state.ts
4
- var o = ({ initialHour: o = 9, initialMinute: s = 0, timeFormat: c = "24h" } = {}) => {
5
- let [l, u] = a(c === "12h" ? t(o) : o), [d, f] = a(s), [p, m] = a(() => n(o));
6
- return {
7
- hour: l,
8
- minute: d,
9
- amPm: p,
10
- hour24: i(() => c === "12h" ? e(l, p) : l, [
11
- l,
12
- p,
13
- c
14
- ]),
15
- handleHourChange: u,
16
- handleMinuteChange: f,
17
- handleAmPmChange: m,
18
- resetTime: r((e, r) => {
19
- let i = c === "12h" ? t(e) : e;
20
- u(i), f(r), m(n(e));
21
- }, [c])
22
- };
1
+ import { useCallback, useMemo, useState } from "react";
2
+ import { convert12HourTo24Hour, convert24HourTo12Hour, getAmPmFromHour } from "../../utils/time-utils.js";
3
+ import { DEFAULT_MINUTE, DEFAULT_START_HOUR } from "../constants.js";
4
+ export const useTimeState = ({ initialHour = DEFAULT_START_HOUR, initialMinute = DEFAULT_MINUTE, timeFormat = '24h' } = {})=>{
5
+ const initialDisplayHour = timeFormat === '12h' ? convert24HourTo12Hour(initialHour) : initialHour;
6
+ const [hour, setHour] = useState(initialDisplayHour);
7
+ const [minute, setMinute] = useState(initialMinute);
8
+ const [amPm, setAmPm] = useState(()=>getAmPmFromHour(initialHour));
9
+ const hour24 = useMemo(()=>timeFormat === '12h' ? convert12HourTo24Hour(hour, amPm) : hour, [
10
+ hour,
11
+ amPm,
12
+ timeFormat
13
+ ]);
14
+ const resetTime = useCallback((newHour, newMinute)=>{
15
+ const displayHour = timeFormat === '12h' ? convert24HourTo12Hour(newHour) : newHour;
16
+ setHour(displayHour);
17
+ setMinute(newMinute);
18
+ setAmPm(getAmPmFromHour(newHour));
19
+ }, [
20
+ timeFormat
21
+ ]);
22
+ return {
23
+ hour,
24
+ minute,
25
+ amPm,
26
+ hour24,
27
+ handleHourChange: setHour,
28
+ handleMinuteChange: setMinute,
29
+ handleAmPmChange: setAmPm,
30
+ resetTime
31
+ };
23
32
  };
24
- //#endregion
25
- export { o as useTimeState };
33
+
34
+ //# sourceMappingURL=use-time-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/components/ui/core/date-time-pickers/shared/hooks/use-time-state.ts"],"sourcesContent":["import { useCallback, useMemo, useState } from 'react';\n\nimport type { AmPm, TimeFormat } from '../../utils/format-utils';\nimport {\n convert12HourTo24Hour,\n convert24HourTo12Hour,\n getAmPmFromHour,\n} from '../../utils/time-utils';\nimport { DEFAULT_MINUTE, DEFAULT_START_HOUR } from '../constants';\n\nexport interface UseTimeStateOptions {\n initialHour?: number;\n initialMinute?: number;\n timeFormat?: TimeFormat;\n}\n\nexport interface UseTimeStateReturn {\n hour: number;\n minute: number;\n amPm: AmPm;\n hour24: number;\n handleHourChange: (hour: number) => void;\n handleMinuteChange: (minute: number) => void;\n handleAmPmChange: (amPm: AmPm) => void;\n resetTime: (hour: number, minute: number) => void;\n}\n\nexport const useTimeState = ({\n initialHour = DEFAULT_START_HOUR,\n initialMinute = DEFAULT_MINUTE,\n timeFormat = '24h',\n}: UseTimeStateOptions = {}): UseTimeStateReturn => {\n const initialDisplayHour =\n timeFormat === '12h' ? convert24HourTo12Hour(initialHour) : initialHour;\n const [hour, setHour] = useState(initialDisplayHour);\n const [minute, setMinute] = useState(initialMinute);\n const [amPm, setAmPm] = useState<AmPm>(() => getAmPmFromHour(initialHour));\n\n const hour24 = useMemo(\n () => (timeFormat === '12h' ? convert12HourTo24Hour(hour, amPm) : hour),\n [hour, amPm, timeFormat]\n );\n\n const resetTime = useCallback(\n (newHour: number, newMinute: number) => {\n const displayHour =\n timeFormat === '12h' ? convert24HourTo12Hour(newHour) : newHour;\n setHour(displayHour);\n setMinute(newMinute);\n setAmPm(getAmPmFromHour(newHour));\n },\n [timeFormat]\n );\n\n return {\n hour,\n minute,\n amPm,\n hour24,\n handleHourChange: setHour,\n handleMinuteChange: setMinute,\n handleAmPmChange: setAmPm,\n resetTime,\n };\n};\n"],"names":["useCallback","useMemo","useState","convert12HourTo24Hour","convert24HourTo12Hour","getAmPmFromHour","DEFAULT_MINUTE","DEFAULT_START_HOUR","useTimeState","initialHour","initialMinute","timeFormat","initialDisplayHour","hour","setHour","minute","setMinute","amPm","setAmPm","hour24","resetTime","newHour","newMinute","displayHour","handleHourChange","handleMinuteChange","handleAmPmChange"],"mappings":"AAAA,SAASA,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,QAAQ;AAGvD,SACEC,qBAAqB,EACrBC,qBAAqB,EACrBC,eAAe,QACV,4BAAyB;AAChC,SAASC,cAAc,EAAEC,kBAAkB,QAAQ,kBAAe;AAmBlE,OAAO,MAAMC,eAAe,CAAC,EAC3BC,cAAcF,kBAAkB,EAChCG,gBAAgBJ,cAAc,EAC9BK,aAAa,KAAK,EACE,GAAG,CAAC,CAAC;IACzB,MAAMC,qBACJD,eAAe,QAAQP,sBAAsBK,eAAeA;IAC9D,MAAM,CAACI,MAAMC,QAAQ,GAAGZ,SAASU;IACjC,MAAM,CAACG,QAAQC,UAAU,GAAGd,SAASQ;IACrC,MAAM,CAACO,MAAMC,QAAQ,GAAGhB,SAAe,IAAMG,gBAAgBI;IAE7D,MAAMU,SAASlB,QACb,IAAOU,eAAe,QAAQR,sBAAsBU,MAAMI,QAAQJ,MAClE;QAACA;QAAMI;QAAMN;KAAW;IAG1B,MAAMS,YAAYpB,YAChB,CAACqB,SAAiBC;QAChB,MAAMC,cACJZ,eAAe,QAAQP,sBAAsBiB,WAAWA;QAC1DP,QAAQS;QACRP,UAAUM;QACVJ,QAAQb,gBAAgBgB;IAC1B,GACA;QAACV;KAAW;IAGd,OAAO;QACLE;QACAE;QACAE;QACAE;QACAK,kBAAkBV;QAClBW,oBAAoBT;QACpBU,kBAAkBR;QAClBE;IACF;AACF,EAAE"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Shared Tailwind class strings for TimePickerScroll and AmPmScroll.
3
- * Both components render the same scroll container and cell styles.
4
- */
2
+ * Shared Tailwind class strings for TimePickerScroll and AmPmScroll.
3
+ * Both components render the same scroll container and cell styles.
4
+ */
5
5
  export declare const SCROLL_CONTAINER_CLASSES = "overflow-y-auto flex flex-col items-center py-2 w-9 h-72 shrink-0 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";
6
6
  export declare const SCROLL_ITEM_BASE_CLASSES = "w-9 h-9 flex items-center justify-center rounded-lg cursor-pointer text-sm font-medium leading-[18px] tracking-normal select-none transition-colors duration-150 shrink-0";
7
- export declare const SCROLL_ITEM_SELECTED_CLASSES = "bg-primary-background text-foreground-on-primary hover:bg-primary-background";
8
- export declare const SCROLL_ITEM_UNSELECTED_CLASSES = "text-secondary-foreground hover:bg-accent-background";
7
+ export declare const SCROLL_ITEM_SELECTED_CLASSES = "bg-primary-background text-primary-foreground hover:bg-primary-background";
8
+ export declare const SCROLL_ITEM_UNSELECTED_CLASSES = "text-medium-foreground hover:bg-medium-background-hover hover:text-medium-foreground";
@@ -1,4 +1,9 @@
1
- //#region libs/aura/src/components/ui/core/date-time-pickers/shared/scroll-cell-classes.ts
2
- var e = "overflow-y-auto flex flex-col items-center py-2 w-9 h-72 shrink-0 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", t = "w-9 h-9 flex items-center justify-center rounded-lg cursor-pointer text-sm font-medium leading-[18px] tracking-normal select-none transition-colors duration-150 shrink-0", n = "bg-primary-background text-foreground-on-primary hover:bg-primary-background", r = "text-secondary-foreground hover:bg-accent-background";
3
- //#endregion
4
- export { e as SCROLL_CONTAINER_CLASSES, t as SCROLL_ITEM_BASE_CLASSES, n as SCROLL_ITEM_SELECTED_CLASSES, r as SCROLL_ITEM_UNSELECTED_CLASSES };
1
+ /**
2
+ * Shared Tailwind class strings for TimePickerScroll and AmPmScroll.
3
+ * Both components render the same scroll container and cell styles.
4
+ */ export const SCROLL_CONTAINER_CLASSES = 'overflow-y-auto flex flex-col items-center py-2 w-9 h-72 shrink-0 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden';
5
+ export const SCROLL_ITEM_BASE_CLASSES = 'w-9 h-9 flex items-center justify-center rounded-lg cursor-pointer text-sm font-medium leading-[18px] tracking-normal select-none transition-colors duration-150 shrink-0';
6
+ export const SCROLL_ITEM_SELECTED_CLASSES = 'bg-primary-background text-primary-foreground hover:bg-primary-background';
7
+ export const SCROLL_ITEM_UNSELECTED_CLASSES = 'text-medium-foreground hover:bg-medium-background-hover hover:text-medium-foreground';
8
+
9
+ //# sourceMappingURL=scroll-cell-classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/ui/core/date-time-pickers/shared/scroll-cell-classes.ts"],"sourcesContent":["/**\n * Shared Tailwind class strings for TimePickerScroll and AmPmScroll.\n * Both components render the same scroll container and cell styles.\n */\n\nexport const SCROLL_CONTAINER_CLASSES =\n 'overflow-y-auto flex flex-col items-center py-2 w-9 h-72 shrink-0 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden';\n\nexport const SCROLL_ITEM_BASE_CLASSES =\n 'w-9 h-9 flex items-center justify-center rounded-lg cursor-pointer text-sm font-medium leading-[18px] tracking-normal select-none transition-colors duration-150 shrink-0';\n\nexport const SCROLL_ITEM_SELECTED_CLASSES =\n 'bg-primary-background text-primary-foreground hover:bg-primary-background';\n\nexport const SCROLL_ITEM_UNSELECTED_CLASSES =\n 'text-medium-foreground hover:bg-medium-background-hover hover:text-medium-foreground';\n"],"names":["SCROLL_CONTAINER_CLASSES","SCROLL_ITEM_BASE_CLASSES","SCROLL_ITEM_SELECTED_CLASSES","SCROLL_ITEM_UNSELECTED_CLASSES"],"mappings":"AAAA;;;CAGC,GAED,OAAO,MAAMA,2BACX,yHAAyH;AAE3H,OAAO,MAAMC,2BACX,4KAA4K;AAE9K,OAAO,MAAMC,+BACX,4EAA4E;AAE9E,OAAO,MAAMC,iCACX,uFAAuF"}
@@ -1,14 +1,18 @@
1
- import { FC } from 'react';
2
- import { Dayjs } from 'dayjs';
3
- export type ShortcutValueDayjs = Dayjs | [Dayjs | null, Dayjs | null];
1
+ import type { FC } from "react";
2
+ import type { ShortcutValueDayjs, ShortcutValueInput } from "../../utils/date-input";
3
+ export type { ShortcutValueDayjs };
4
4
  export interface ShortcutItem {
5
- id?: string;
6
- label: string;
7
- getValue: () => ShortcutValueDayjs;
5
+ id?: string;
6
+ label: string;
7
+ getValue: () => ShortcutValueInput;
8
8
  }
9
+ type NormalizedShortcutItem = Omit<ShortcutItem, "getValue"> & {
10
+ getValue: () => ShortcutValueDayjs;
11
+ };
12
+ export type { NormalizedShortcutItem };
9
13
  export interface ShortcutsPanelProps {
10
- shortcuts?: ShortcutItem[];
11
- onShortcutClick: (value: ShortcutValueDayjs) => void;
12
- className?: string;
14
+ shortcuts?: NormalizedShortcutItem[];
15
+ onShortcutClick: (value: ShortcutValueDayjs) => void;
16
+ className?: string;
13
17
  }
14
18
  export declare const ShortcutsPanel: FC<ShortcutsPanelProps>;
@@ -1,17 +1,22 @@
1
- import { cn as e } from "../../../../../../lib/utils.js";
2
- import { Button as t } from "../../../button/button.js";
3
- import { jsx as n } from "react/jsx-runtime";
4
- //#region libs/aura/src/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.tsx
5
- var r = [], i = ({ shortcuts: i = r, onShortcutClick: a, className: o }) => i.length === 0 ? null : /* @__PURE__ */ n("div", {
6
- "data-slot": "shortcuts-panel",
7
- className: e("flex flex-col gap-1 p-3 border-r border-border min-w-[150px]", o),
8
- children: i.map((e) => /* @__PURE__ */ n(t, {
9
- variant: "ghost",
10
- size: "default",
11
- className: "w-full justify-start text-secondary-foreground",
12
- onClick: () => a(e.getValue()),
13
- children: e.label
14
- }, e.id ?? e.label))
15
- });
16
- //#endregion
17
- export { i as ShortcutsPanel };
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../../../../../lib/utils.js";
3
+ import { Button } from "../../../button/button.js";
4
+ const DEFAULT_SHORTCUTS = [];
5
+ export const ShortcutsPanel = ({ shortcuts = DEFAULT_SHORTCUTS, onShortcutClick, className })=>{
6
+ if (shortcuts.length === 0) {
7
+ return null;
8
+ }
9
+ return /*#__PURE__*/ _jsx("div", {
10
+ "data-slot": "shortcuts-panel",
11
+ className: cn('flex flex-col gap-1 p-3 border-r border-default min-w-[150px]', className),
12
+ children: shortcuts.map((shortcut)=>/*#__PURE__*/ _jsx(Button, {
13
+ variant: "ghost",
14
+ size: "default",
15
+ className: "w-full justify-start text-medium-foreground",
16
+ onClick: ()=>onShortcutClick(shortcut.getValue()),
17
+ children: shortcut.label
18
+ }, shortcut.id ?? shortcut.label))
19
+ });
20
+ };
21
+
22
+ //# sourceMappingURL=shortcuts-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport { cn } from '../../../../../../lib/utils';\nimport { Button } from '../../../button/button';\nimport type {\n ShortcutValueDayjs,\n ShortcutValueInput,\n} from '../../utils/date-input';\n\nexport type { ShortcutValueDayjs };\n\nexport interface ShortcutItem {\n id?: string;\n label: string;\n getValue: () => ShortcutValueInput;\n}\n\ntype NormalizedShortcutItem = Omit<ShortcutItem, 'getValue'> & {\n getValue: () => ShortcutValueDayjs;\n};\n\nexport type { NormalizedShortcutItem };\n\nexport interface ShortcutsPanelProps {\n shortcuts?: NormalizedShortcutItem[];\n onShortcutClick: (value: ShortcutValueDayjs) => void;\n className?: string;\n}\n\nconst DEFAULT_SHORTCUTS: NormalizedShortcutItem[] = [];\n\nexport const ShortcutsPanel: FC<ShortcutsPanelProps> = ({\n shortcuts = DEFAULT_SHORTCUTS,\n onShortcutClick,\n className,\n}) => {\n if (shortcuts.length === 0) {\n return null;\n }\n\n return (\n <div\n data-slot=\"shortcuts-panel\"\n className={cn(\n 'flex flex-col gap-1 p-3 border-r border-default min-w-[150px]',\n className\n )}\n >\n {shortcuts.map((shortcut) => (\n <Button\n key={shortcut.id ?? shortcut.label}\n variant=\"ghost\"\n size=\"default\"\n className=\"w-full justify-start text-medium-foreground\"\n onClick={() => onShortcutClick(shortcut.getValue())}\n >\n {shortcut.label}\n </Button>\n ))}\n </div>\n );\n};\n"],"names":["cn","Button","DEFAULT_SHORTCUTS","ShortcutsPanel","shortcuts","onShortcutClick","className","length","div","data-slot","map","shortcut","variant","size","onClick","getValue","label","id"],"mappings":";AAEA,SAASA,EAAE,QAAQ,iCAA8B;AACjD,SAASC,MAAM,QAAQ,4BAAyB;AA0BhD,MAAMC,oBAA8C,EAAE;AAEtD,OAAO,MAAMC,iBAA0C,CAAC,EACtDC,YAAYF,iBAAiB,EAC7BG,eAAe,EACfC,SAAS,EACV;IACC,IAAIF,UAAUG,MAAM,KAAK,GAAG;QAC1B,OAAO;IACT;IAEA,qBACE,KAACC;QACCC,aAAU;QACVH,WAAWN,GACT,iEACAM;kBAGDF,UAAUM,GAAG,CAAC,CAACC,yBACd,KAACV;gBAECW,SAAQ;gBACRC,MAAK;gBACLP,WAAU;gBACVQ,SAAS,IAAMT,gBAAgBM,SAASI,QAAQ;0BAE/CJ,SAASK,KAAK;eANVL,SAASM,EAAE,IAAIN,SAASK,KAAK;;AAW5C,EAAE"}
@@ -1,2 +1,2 @@
1
- export { TimePickerPanel } from './time-picker-panel';
2
- export type { TimePickerPanelProps } from './time-picker-panel';
1
+ export { TimePickerPanel } from "./time-picker-panel";
2
+ export type { TimePickerPanelProps } from "./time-picker-panel";
@@ -0,0 +1,3 @@
1
+ export { TimePickerPanel } from "./time-picker-panel.js";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/components/ui/core/date-time-pickers/shared/time-picker-panel/index.ts"],"sourcesContent":["export { TimePickerPanel } from './time-picker-panel';\nexport type { TimePickerPanelProps } from './time-picker-panel';\n"],"names":["TimePickerPanel"],"mappings":"AAAA,SAASA,eAAe,QAAQ,yBAAsB"}
@@ -1,20 +1,20 @@
1
- import { FC } from 'react';
2
- import { AmPm } from '../../utils/format-utils';
1
+ import type { FC } from "react";
2
+ import type { AmPm } from "../../utils/format-utils";
3
3
  type TimePickerPanelBaseProps = {
4
- hour: number;
5
- minute: number;
6
- onHourChange: (hour: number) => void;
7
- onMinuteChange: (minute: number) => void;
8
- className?: string;
4
+ hour: number;
5
+ minute: number;
6
+ onHourChange: (hour: number) => void;
7
+ onMinuteChange: (minute: number) => void;
8
+ className?: string;
9
9
  };
10
10
  export type TimePickerPanelProps = TimePickerPanelBaseProps & ({
11
- timeFormat: '12h';
12
- amPm: AmPm;
13
- onAmPmChange: (amPm: AmPm) => void;
11
+ timeFormat: "12h";
12
+ amPm: AmPm;
13
+ onAmPmChange: (amPm: AmPm) => void;
14
14
  } | {
15
- timeFormat?: '24h';
16
- amPm?: undefined;
17
- onAmPmChange?: undefined;
15
+ timeFormat?: "24h";
16
+ amPm?: undefined;
17
+ onAmPmChange?: undefined;
18
18
  });
19
19
  export declare const TimePickerPanel: FC<TimePickerPanelProps>;
20
20
  export {};
@@ -1,41 +1,50 @@
1
- import { cn as e } from "../../../../../../lib/utils.js";
2
- import { AmPmScroll as t } from "../am-pm-scroll/am-pm-scroll.js";
3
- import { TimePickerScroll as n } from "../time-picker-scroll/time-picker-scroll.js";
4
- import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
- //#region libs/aura/src/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.tsx
6
- var o = (o) => {
7
- let { hour: s, minute: c, onHourChange: l, onMinuteChange: u, className: d } = o, f = o.timeFormat ?? "24h";
8
- return /* @__PURE__ */ a("div", {
9
- "data-slot": "time-picker-panel",
10
- className: e("flex items-stretch", d),
11
- children: [
12
- /* @__PURE__ */ i("div", {
13
- className: "px-3",
14
- children: /* @__PURE__ */ i(n, {
15
- value: s,
16
- onChange: l,
17
- type: "hour",
18
- timeFormat: f
19
- })
20
- }),
21
- /* @__PURE__ */ i("div", { className: "w-px bg-border shrink-0 self-stretch" }),
22
- /* @__PURE__ */ i("div", {
23
- className: "px-3",
24
- children: /* @__PURE__ */ i(n, {
25
- value: c,
26
- onChange: u,
27
- type: "minute"
28
- })
29
- }),
30
- o.timeFormat === "12h" && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", { className: "w-px bg-border shrink-0 self-stretch" }), /* @__PURE__ */ i("div", {
31
- className: "px-3",
32
- children: /* @__PURE__ */ i(t, {
33
- value: o.amPm,
34
- onChange: o.onAmPmChange
35
- })
36
- })] })
37
- ]
38
- });
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { cn } from "../../../../../../lib/utils.js";
3
+ import { AmPmScroll } from "../am-pm-scroll/am-pm-scroll.js";
4
+ import { TimePickerScroll } from "../time-picker-scroll/time-picker-scroll.js";
5
+ export const TimePickerPanel = (props)=>{
6
+ const { hour, minute, onHourChange, onMinuteChange, className } = props;
7
+ const timeFormat = props.timeFormat ?? '24h';
8
+ return /*#__PURE__*/ _jsxs("div", {
9
+ "data-slot": "time-picker-panel",
10
+ className: cn('flex items-stretch', className),
11
+ children: [
12
+ /*#__PURE__*/ _jsx("div", {
13
+ className: "px-3",
14
+ children: /*#__PURE__*/ _jsx(TimePickerScroll, {
15
+ value: hour,
16
+ onChange: onHourChange,
17
+ type: "hour",
18
+ timeFormat: timeFormat
19
+ })
20
+ }),
21
+ /*#__PURE__*/ _jsx("div", {
22
+ className: "w-px bg-border shrink-0 self-stretch"
23
+ }),
24
+ /*#__PURE__*/ _jsx("div", {
25
+ className: "px-3",
26
+ children: /*#__PURE__*/ _jsx(TimePickerScroll, {
27
+ value: minute,
28
+ onChange: onMinuteChange,
29
+ type: "minute"
30
+ })
31
+ }),
32
+ props.timeFormat === '12h' && /*#__PURE__*/ _jsxs(_Fragment, {
33
+ children: [
34
+ /*#__PURE__*/ _jsx("div", {
35
+ className: "w-px bg-border shrink-0 self-stretch"
36
+ }),
37
+ /*#__PURE__*/ _jsx("div", {
38
+ className: "px-3",
39
+ children: /*#__PURE__*/ _jsx(AmPmScroll, {
40
+ value: props.amPm,
41
+ onChange: props.onAmPmChange
42
+ })
43
+ })
44
+ ]
45
+ })
46
+ ]
47
+ });
39
48
  };
40
- //#endregion
41
- export { o as TimePickerPanel };
49
+
50
+ //# sourceMappingURL=time-picker-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../src/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport { cn } from '../../../../../../lib/utils';\nimport type { AmPm } from '../../utils/format-utils';\nimport { AmPmScroll } from '../am-pm-scroll/am-pm-scroll';\nimport { TimePickerScroll } from '../time-picker-scroll/time-picker-scroll';\n\ntype TimePickerPanelBaseProps = {\n hour: number;\n minute: number;\n onHourChange: (hour: number) => void;\n onMinuteChange: (minute: number) => void;\n className?: string;\n};\n\nexport type TimePickerPanelProps = TimePickerPanelBaseProps &\n (\n | {\n timeFormat: '12h';\n amPm: AmPm;\n onAmPmChange: (amPm: AmPm) => void;\n }\n | { timeFormat?: '24h'; amPm?: undefined; onAmPmChange?: undefined }\n );\n\nexport const TimePickerPanel: FC<TimePickerPanelProps> = (props) => {\n const { hour, minute, onHourChange, onMinuteChange, className } = props;\n const timeFormat = props.timeFormat ?? '24h';\n\n return (\n <div\n data-slot=\"time-picker-panel\"\n className={cn('flex items-stretch', className)}\n >\n <div className=\"px-3\">\n <TimePickerScroll\n value={hour}\n onChange={onHourChange}\n type=\"hour\"\n timeFormat={timeFormat}\n />\n </div>\n <div className=\"w-px bg-border shrink-0 self-stretch\" />\n <div className=\"px-3\">\n <TimePickerScroll\n value={minute}\n onChange={onMinuteChange}\n type=\"minute\"\n />\n </div>\n {props.timeFormat === '12h' && (\n <>\n <div className=\"w-px bg-border shrink-0 self-stretch\" />\n <div className=\"px-3\">\n <AmPmScroll value={props.amPm} onChange={props.onAmPmChange} />\n </div>\n </>\n )}\n </div>\n );\n};\n"],"names":["cn","AmPmScroll","TimePickerScroll","TimePickerPanel","props","hour","minute","onHourChange","onMinuteChange","className","timeFormat","div","data-slot","value","onChange","type","amPm","onAmPmChange"],"mappings":";AAEA,SAASA,EAAE,QAAQ,iCAA8B;AAEjD,SAASC,UAAU,QAAQ,kCAA+B;AAC1D,SAASC,gBAAgB,QAAQ,8CAA2C;AAoB5E,OAAO,MAAMC,kBAA4C,CAACC;IACxD,MAAM,EAAEC,IAAI,EAAEC,MAAM,EAAEC,YAAY,EAAEC,cAAc,EAAEC,SAAS,EAAE,GAAGL;IAClE,MAAMM,aAAaN,MAAMM,UAAU,IAAI;IAEvC,qBACE,MAACC;QACCC,aAAU;QACVH,WAAWT,GAAG,sBAAsBS;;0BAEpC,KAACE;gBAAIF,WAAU;0BACb,cAAA,KAACP;oBACCW,OAAOR;oBACPS,UAAUP;oBACVQ,MAAK;oBACLL,YAAYA;;;0BAGhB,KAACC;gBAAIF,WAAU;;0BACf,KAACE;gBAAIF,WAAU;0BACb,cAAA,KAACP;oBACCW,OAAOP;oBACPQ,UAAUN;oBACVO,MAAK;;;YAGRX,MAAMM,UAAU,KAAK,uBACpB;;kCACE,KAACC;wBAAIF,WAAU;;kCACf,KAACE;wBAAIF,WAAU;kCACb,cAAA,KAACR;4BAAWY,OAAOT,MAAMY,IAAI;4BAAEF,UAAUV,MAAMa,YAAY;;;;;;;AAMvE,EAAE"}
@@ -1,10 +1,10 @@
1
- import { FC } from 'react';
2
- import { TimeFormat } from '../../utils/format-utils';
1
+ import type { FC } from "react";
2
+ import type { TimeFormat } from "../../utils/format-utils";
3
3
  export type TimePickerScrollProps = {
4
- value: number | null;
5
- onChange: (value: number) => void;
6
- type: 'hour' | 'minute';
7
- timeFormat?: TimeFormat;
8
- className?: string;
4
+ value: number | null;
5
+ onChange: (value: number) => void;
6
+ type: "hour" | "minute";
7
+ timeFormat?: TimeFormat;
8
+ className?: string;
9
9
  };
10
10
  export declare const TimePickerScroll: FC<TimePickerScrollProps>;