@cognite/aura 0.3.5 → 1.46105.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 (446) hide show
  1. package/CHANGELOG.md +264 -0
  2. package/DESIGN.md +638 -281
  3. package/LICENSE +21 -0
  4. package/README.md +21 -13
  5. package/dist/colors-deprecated.css +587 -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 +125 -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.js +181 -152
  21. package/dist/components/ui/core/alert/alert.js.map +1 -0
  22. package/dist/components/ui/core/avatar/avatar.d.ts +10 -9
  23. package/dist/components/ui/core/avatar/avatar.js +75 -65
  24. package/dist/components/ui/core/avatar/avatar.js.map +1 -0
  25. package/dist/components/ui/core/badge/badge.d.ts +13 -12
  26. package/dist/components/ui/core/badge/badge.js +88 -72
  27. package/dist/components/ui/core/badge/badge.js.map +1 -0
  28. package/dist/components/ui/core/banner/banner.d.ts +18 -18
  29. package/dist/components/ui/core/banner/banner.js +179 -142
  30. package/dist/components/ui/core/banner/banner.js.map +1 -0
  31. package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -12
  32. package/dist/components/ui/core/breadcrumb/breadcrumb.js +139 -104
  33. package/dist/components/ui/core/breadcrumb/breadcrumb.js.map +1 -0
  34. package/dist/components/ui/core/button/button.d.ts +7 -7
  35. package/dist/components/ui/core/button/button.gallery.d.ts +2 -0
  36. package/dist/components/ui/core/button/button.gallery.js +76 -0
  37. package/dist/components/ui/core/button/button.gallery.js.map +1 -0
  38. package/dist/components/ui/core/button/button.js +57 -47
  39. package/dist/components/ui/core/button/button.js.map +1 -0
  40. package/dist/components/ui/core/button-group/button-group.d.ts +9 -9
  41. package/dist/components/ui/core/button-group/button-group.js +50 -40
  42. package/dist/components/ui/core/button-group/button-group.js.map +1 -0
  43. package/dist/components/ui/core/calendar/calendar-header.d.ts +7 -7
  44. package/dist/components/ui/core/calendar/calendar-header.js +102 -63
  45. package/dist/components/ui/core/calendar/calendar-header.js.map +1 -0
  46. package/dist/components/ui/core/calendar/calendar-utils.d.ts +30 -30
  47. package/dist/components/ui/core/calendar/calendar-utils.js +116 -39
  48. package/dist/components/ui/core/calendar/calendar-utils.js.map +1 -0
  49. package/dist/components/ui/core/calendar/calendar.d.ts +10 -10
  50. package/dist/components/ui/core/calendar/calendar.js +95 -66
  51. package/dist/components/ui/core/calendar/calendar.js.map +1 -0
  52. package/dist/components/ui/core/calendar/constants.js +3 -0
  53. package/dist/components/ui/core/calendar/constants.js.map +1 -0
  54. package/dist/components/ui/core/card/card.d.ts +20 -20
  55. package/dist/components/ui/core/card/card.js +133 -104
  56. package/dist/components/ui/core/card/card.js.map +1 -0
  57. package/dist/components/ui/core/chart/chart.d.ts +55 -53
  58. package/dist/components/ui/core/chart/chart.js +196 -116
  59. package/dist/components/ui/core/chart/chart.js.map +1 -0
  60. package/dist/components/ui/core/chart/index.d.ts +2 -2
  61. package/dist/components/ui/core/chart/index.js +3 -2
  62. package/dist/components/ui/core/chart/index.js.map +1 -0
  63. package/dist/components/ui/core/checkbox/checkbox.d.ts +9 -9
  64. package/dist/components/ui/core/checkbox/checkbox.js +88 -68
  65. package/dist/components/ui/core/checkbox/checkbox.js.map +1 -0
  66. package/dist/components/ui/core/checkbox/checkbox.metadata.d.ts +1 -1
  67. package/dist/components/ui/core/checkbox/checkbox.metadata.js +6 -7
  68. package/dist/components/ui/core/checkbox/checkbox.metadata.js.map +1 -0
  69. package/dist/components/ui/core/code-block/code-block.d.ts +19 -19
  70. package/dist/components/ui/core/code-block/code-block.js +259 -175
  71. package/dist/components/ui/core/code-block/code-block.js.map +1 -0
  72. package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -5
  73. package/dist/components/ui/core/collapsible/collapsible.js +36 -30
  74. package/dist/components/ui/core/collapsible/collapsible.js.map +1 -0
  75. package/dist/components/ui/core/combobox/combobox.d.ts +13 -13
  76. package/dist/components/ui/core/combobox/combobox.js +89 -40
  77. package/dist/components/ui/core/combobox/combobox.js.map +1 -0
  78. package/dist/components/ui/core/command/command.d.ts +20 -18
  79. package/dist/components/ui/core/command/command.js +137 -85
  80. package/dist/components/ui/core/command/command.js.map +1 -0
  81. package/dist/components/ui/core/conversation/conversation.d.ts +14 -0
  82. package/dist/components/ui/core/conversation/conversation.js +51 -0
  83. package/dist/components/ui/core/conversation/conversation.js.map +1 -0
  84. package/dist/components/ui/core/count/count.d.ts +8 -6
  85. package/dist/components/ui/core/count/count.js +51 -21
  86. package/dist/components/ui/core/count/count.js.map +1 -0
  87. package/dist/components/ui/core/data-grid/data-grid-cell.d.ts +7 -7
  88. package/dist/components/ui/core/data-grid/data-grid-cell.js +22 -22
  89. package/dist/components/ui/core/data-grid/data-grid-cell.js.map +1 -0
  90. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.d.ts +14 -0
  91. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js +36 -0
  92. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js.map +1 -0
  93. package/dist/components/ui/core/data-grid/data-grid-filter-panel.d.ts +41 -0
  94. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +273 -0
  95. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js.map +1 -0
  96. package/dist/components/ui/core/data-grid/data-grid-footer.d.ts +6 -0
  97. package/dist/components/ui/core/data-grid/data-grid-footer.js +34 -0
  98. package/dist/components/ui/core/data-grid/data-grid-footer.js.map +1 -0
  99. package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +10 -10
  100. package/dist/components/ui/core/data-grid/data-grid-header-row.js +69 -55
  101. package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -0
  102. package/dist/components/ui/core/data-grid/data-grid-header.d.ts +11 -0
  103. package/dist/components/ui/core/data-grid/data-grid-header.js +67 -0
  104. package/dist/components/ui/core/data-grid/data-grid-header.js.map +1 -0
  105. package/dist/components/ui/core/data-grid/data-grid-row.d.ts +15 -15
  106. package/dist/components/ui/core/data-grid/data-grid-row.js +104 -76
  107. package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -0
  108. package/dist/components/ui/core/data-grid/data-grid.d.ts +85 -35
  109. package/dist/components/ui/core/data-grid/data-grid.fixtures.d.ts +7 -7
  110. package/dist/components/ui/core/data-grid/data-grid.fixtures.js +139 -0
  111. package/dist/components/ui/core/data-grid/data-grid.fixtures.js.map +1 -0
  112. package/dist/components/ui/core/data-grid/data-grid.js +402 -132
  113. package/dist/components/ui/core/data-grid/data-grid.js.map +1 -0
  114. package/dist/components/ui/core/data-grid/data-grid.utils.d.ts +3 -3
  115. package/dist/components/ui/core/data-grid/data-grid.utils.js +44 -33
  116. package/dist/components/ui/core/data-grid/data-grid.utils.js.map +1 -0
  117. package/dist/components/ui/core/data-grid/index.d.ts +4 -1
  118. package/dist/components/ui/core/data-grid/index.js +5 -2
  119. package/dist/components/ui/core/data-grid/index.js.map +1 -0
  120. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.d.ts +11 -13
  121. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +85 -61
  122. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js.map +1 -0
  123. package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -3
  124. package/dist/components/ui/core/date-time-pickers/date-picker/index.js +3 -0
  125. package/dist/components/ui/core/date-time-pickers/date-picker/index.js.map +1 -0
  126. package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +14 -14
  127. package/dist/components/ui/core/date-time-pickers/date-picker/types.js +3 -0
  128. package/dist/components/ui/core/date-time-pickers/date-picker/types.js.map +1 -0
  129. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +2 -2
  130. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +51 -36
  131. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js.map +1 -0
  132. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +11 -13
  133. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +89 -64
  134. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js.map +1 -0
  135. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -3
  136. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js +3 -0
  137. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js.map +1 -0
  138. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +20 -20
  139. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js +3 -0
  140. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js.map +1 -0
  141. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -4
  142. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +95 -60
  143. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js.map +1 -0
  144. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.d.ts +15 -0
  145. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js +120 -0
  146. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js.map +1 -0
  147. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.d.ts +3 -1
  148. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js +3 -0
  149. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js.map +1 -0
  150. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.d.ts +25 -32
  151. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js +3 -0
  152. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js.map +1 -0
  153. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.d.ts +2 -2
  154. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js +78 -0
  155. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js.map +1 -0
  156. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +13 -15
  157. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +165 -119
  158. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js.map +1 -0
  159. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -3
  160. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js +3 -0
  161. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js.map +1 -0
  162. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +37 -37
  163. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js +3 -0
  164. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js.map +1 -0
  165. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -3
  166. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +163 -104
  167. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js.map +1 -0
  168. package/dist/components/ui/core/date-time-pickers/index.d.ts +17 -12
  169. package/dist/components/ui/core/date-time-pickers/index.js +10 -6
  170. package/dist/components/ui/core/date-time-pickers/index.js.map +1 -0
  171. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +5 -5
  172. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +52 -42
  173. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js.map +1 -0
  174. package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +6 -1
  175. package/dist/components/ui/core/date-time-pickers/shared/constants.js +23 -0
  176. package/dist/components/ui/core/date-time-pickers/shared/constants.js.map +1 -0
  177. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +16 -15
  178. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +87 -64
  179. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js.map +1 -0
  180. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +10 -9
  181. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +89 -38
  182. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js.map +1 -0
  183. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +5 -5
  184. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +34 -23
  185. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js.map +1 -0
  186. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +23 -23
  187. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +95 -52
  188. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js.map +1 -0
  189. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +5 -5
  190. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +22 -18
  191. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js.map +1 -0
  192. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.d.ts +19 -19
  193. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +41 -24
  194. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js.map +1 -0
  195. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +13 -13
  196. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +33 -24
  197. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js.map +1 -0
  198. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +5 -5
  199. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +9 -4
  200. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js.map +1 -0
  201. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -9
  202. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +22 -17
  203. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js.map +1 -0
  204. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.d.ts +2 -2
  205. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js +3 -0
  206. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js.map +1 -0
  207. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +13 -13
  208. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +49 -40
  209. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js.map +1 -0
  210. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +7 -7
  211. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +41 -34
  212. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js.map +1 -0
  213. package/dist/components/ui/core/date-time-pickers/time-picker/index.d.ts +3 -3
  214. package/dist/components/ui/core/date-time-pickers/time-picker/index.js +3 -0
  215. package/dist/components/ui/core/date-time-pickers/time-picker/index.js.map +1 -0
  216. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.d.ts +12 -14
  217. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +99 -79
  218. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js.map +1 -0
  219. package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +20 -20
  220. package/dist/components/ui/core/date-time-pickers/time-picker/types.js +3 -0
  221. package/dist/components/ui/core/date-time-pickers/time-picker/types.js.map +1 -0
  222. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.d.ts +2 -2
  223. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +63 -41
  224. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js.map +1 -0
  225. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.d.ts +3 -1
  226. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js +3 -0
  227. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js.map +1 -0
  228. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.d.ts +14 -0
  229. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js +115 -0
  230. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js.map +1 -0
  231. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.d.ts +30 -36
  232. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js +3 -0
  233. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js.map +1 -0
  234. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.d.ts +2 -2
  235. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js +145 -0
  236. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js.map +1 -0
  237. package/dist/components/ui/core/date-time-pickers/utils/date-input.d.ts +56 -0
  238. package/dist/components/ui/core/date-time-pickers/utils/date-input.js +67 -0
  239. package/dist/components/ui/core/date-time-pickers/utils/date-input.js.map +1 -0
  240. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +18 -18
  241. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js +42 -0
  242. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js.map +1 -0
  243. package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +31 -29
  244. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js +56 -0
  245. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js.map +1 -0
  246. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +21 -21
  247. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js +170 -0
  248. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js.map +1 -0
  249. package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +28 -28
  250. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +88 -7
  251. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js.map +1 -0
  252. package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +17 -17
  253. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js +43 -0
  254. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js.map +1 -0
  255. package/dist/components/ui/core/dialog/dialog.d.ts +12 -9
  256. package/dist/components/ui/core/dialog/dialog.js +90 -82
  257. package/dist/components/ui/core/dialog/dialog.js.map +1 -0
  258. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +22 -19
  259. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +204 -149
  260. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js.map +1 -0
  261. package/dist/components/ui/core/empty-state/empty-state.context.d.ts +4 -4
  262. package/dist/components/ui/core/empty-state/empty-state.context.js +8 -5
  263. package/dist/components/ui/core/empty-state/empty-state.context.js.map +1 -0
  264. package/dist/components/ui/core/empty-state/empty-state.d.ts +14 -14
  265. package/dist/components/ui/core/empty-state/empty-state.js +96 -82
  266. package/dist/components/ui/core/empty-state/empty-state.js.map +1 -0
  267. package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -7
  268. package/dist/components/ui/core/helper-text/helper-text.js +55 -36
  269. package/dist/components/ui/core/helper-text/helper-text.js.map +1 -0
  270. package/dist/components/ui/core/hover-card/hover-card.d.ts +7 -6
  271. package/dist/components/ui/core/hover-card/hover-card.js +56 -52
  272. package/dist/components/ui/core/hover-card/hover-card.js.map +1 -0
  273. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +26 -25
  274. package/dist/components/ui/core/inline-citation/inline-citation.js +121 -97
  275. package/dist/components/ui/core/inline-citation/inline-citation.js.map +1 -0
  276. package/dist/components/ui/core/input/input.d.ts +2 -2
  277. package/dist/components/ui/core/input/input.js +15 -13
  278. package/dist/components/ui/core/input/input.js.map +1 -0
  279. package/dist/components/ui/core/input-group/input-group.d.ts +25 -14
  280. package/dist/components/ui/core/input-group/input-group.js +149 -76
  281. package/dist/components/ui/core/input-group/input-group.js.map +1 -0
  282. package/dist/components/ui/core/item/item.d.ts +20 -0
  283. package/dist/components/ui/core/item/item.js +93 -0
  284. package/dist/components/ui/core/item/item.js.map +1 -0
  285. package/dist/components/ui/core/kbd/kbd.d.ts +3 -3
  286. package/dist/components/ui/core/kbd/kbd.js +24 -20
  287. package/dist/components/ui/core/kbd/kbd.js.map +1 -0
  288. package/dist/components/ui/core/label/label.d.ts +3 -3
  289. package/dist/components/ui/core/label/label.js +33 -26
  290. package/dist/components/ui/core/label/label.js.map +1 -0
  291. package/dist/components/ui/core/loader/loader.d.ts +6 -6
  292. package/dist/components/ui/core/loader/loader.js +97 -80
  293. package/dist/components/ui/core/loader/loader.js.map +1 -0
  294. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +9 -9
  295. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +19 -12
  296. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js.map +1 -0
  297. package/dist/components/ui/core/message/message-response-math-plugin.d.ts +3 -0
  298. package/dist/components/ui/core/message/message-response-math-plugin.js +6 -0
  299. package/dist/components/ui/core/message/message-response-math-plugin.js.map +1 -0
  300. package/dist/components/ui/core/message/message.d.ts +27 -23
  301. package/dist/components/ui/core/message/message.js +453 -316
  302. package/dist/components/ui/core/message/message.js.map +1 -0
  303. package/dist/components/ui/core/overflow-list/overflow-list.d.ts +21 -0
  304. package/dist/components/ui/core/overflow-list/overflow-list.js +197 -0
  305. package/dist/components/ui/core/overflow-list/overflow-list.js.map +1 -0
  306. package/dist/components/ui/core/overflow-list/overflow-list.utils.d.ts +37 -35
  307. package/dist/components/ui/core/overflow-list/overflow-list.utils.js +206 -0
  308. package/dist/components/ui/core/overflow-list/overflow-list.utils.js.map +1 -0
  309. package/dist/components/ui/core/pagination/pagination-size-context.d.ts +2 -2
  310. package/dist/components/ui/core/pagination/pagination-size-context.js +6 -5
  311. package/dist/components/ui/core/pagination/pagination-size-context.js.map +1 -0
  312. package/dist/components/ui/core/pagination/pagination-teleport.d.ts +9 -9
  313. package/dist/components/ui/core/pagination/pagination-teleport.js +127 -84
  314. package/dist/components/ui/core/pagination/pagination-teleport.js.map +1 -0
  315. package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
  316. package/dist/components/ui/core/pagination/pagination-teleport.utils.js.map +1 -0
  317. package/dist/components/ui/core/pagination/pagination.d.ts +39 -39
  318. package/dist/components/ui/core/pagination/pagination.js +294 -234
  319. package/dist/components/ui/core/pagination/pagination.js.map +1 -0
  320. package/dist/components/ui/core/popover/popover.d.ts +12 -11
  321. package/dist/components/ui/core/popover/popover.js +104 -89
  322. package/dist/components/ui/core/popover/popover.js.map +1 -0
  323. package/dist/components/ui/core/progress/progress.d.ts +9 -8
  324. package/dist/components/ui/core/progress/progress.js +50 -35
  325. package/dist/components/ui/core/progress/progress.js.map +1 -0
  326. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +27 -27
  327. package/dist/components/ui/core/prompt-input/prompt-input.js +342 -271
  328. package/dist/components/ui/core/prompt-input/prompt-input.js.map +1 -0
  329. package/dist/components/ui/core/radio-group/radio-group.d.ts +12 -12
  330. package/dist/components/ui/core/radio-group/radio-group.js +88 -58
  331. package/dist/components/ui/core/radio-group/radio-group.js.map +1 -0
  332. package/dist/components/ui/core/reasoning/reasoning.d.ts +7 -7
  333. package/dist/components/ui/core/reasoning/reasoning.js +68 -56
  334. package/dist/components/ui/core/reasoning/reasoning.js.map +1 -0
  335. package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -4
  336. package/dist/components/ui/core/scroll-area/scroll-area.js +50 -40
  337. package/dist/components/ui/core/scroll-area/scroll-area.js.map +1 -0
  338. package/dist/components/ui/core/search/search.d.ts +8 -8
  339. package/dist/components/ui/core/search/search.js +122 -76
  340. package/dist/components/ui/core/search/search.js.map +1 -0
  341. package/dist/components/ui/core/segmented-control/segmented-control.d.ts +10 -10
  342. package/dist/components/ui/core/segmented-control/segmented-control.js +203 -149
  343. package/dist/components/ui/core/segmented-control/segmented-control.js.map +1 -0
  344. package/dist/components/ui/core/select/select.d.ts +27 -26
  345. package/dist/components/ui/core/select/select.js +213 -168
  346. package/dist/components/ui/core/select/select.js.map +1 -0
  347. package/dist/components/ui/core/separator/separator.d.ts +2 -2
  348. package/dist/components/ui/core/separator/separator.js +13 -13
  349. package/dist/components/ui/core/separator/separator.js.map +1 -0
  350. package/dist/components/ui/core/shimmer/shimmer.d.ts +8 -8
  351. package/dist/components/ui/core/shimmer/shimmer.js +64 -40
  352. package/dist/components/ui/core/shimmer/shimmer.js.map +1 -0
  353. package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -2
  354. package/dist/components/ui/core/skeleton/skeleton.js +13 -13
  355. package/dist/components/ui/core/skeleton/skeleton.js.map +1 -0
  356. package/dist/components/ui/core/slider/slider.d.ts +7 -7
  357. package/dist/components/ui/core/slider/slider.js +51 -39
  358. package/dist/components/ui/core/slider/slider.js.map +1 -0
  359. package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +2 -2
  360. package/dist/components/ui/core/sonner-toast/sonner-toast.js +67 -54
  361. package/dist/components/ui/core/sonner-toast/sonner-toast.js.map +1 -0
  362. package/dist/components/ui/core/sources/sources.d.ts +12 -12
  363. package/dist/components/ui/core/sources/sources.js +87 -58
  364. package/dist/components/ui/core/sources/sources.js.map +1 -0
  365. package/dist/components/ui/core/switch/switch.d.ts +9 -9
  366. package/dist/components/ui/core/switch/switch.js +83 -61
  367. package/dist/components/ui/core/switch/switch.js.map +1 -0
  368. package/dist/components/ui/core/switch/switch.metadata.d.ts +1 -1
  369. package/dist/components/ui/core/switch/switch.metadata.js +8 -0
  370. package/dist/components/ui/core/switch/switch.metadata.js.map +1 -0
  371. package/dist/components/ui/core/tabs/tabs.d.ts +20 -18
  372. package/dist/components/ui/core/tabs/tabs.js +176 -147
  373. package/dist/components/ui/core/tabs/tabs.js.map +1 -0
  374. package/dist/components/ui/core/tabs/tabs.utils.d.ts +1 -1
  375. package/dist/components/ui/core/tabs/tabs.utils.js +10 -6
  376. package/dist/components/ui/core/tabs/tabs.utils.js.map +1 -0
  377. package/dist/components/ui/core/textarea/textarea.d.ts +2 -2
  378. package/dist/components/ui/core/textarea/textarea.js +13 -13
  379. package/dist/components/ui/core/textarea/textarea.js.map +1 -0
  380. package/dist/components/ui/core/toggle/toggle.d.ts +9 -9
  381. package/dist/components/ui/core/toggle/toggle.js +60 -54
  382. package/dist/components/ui/core/toggle/toggle.js.map +1 -0
  383. package/dist/components/ui/core/tool/tool.d.ts +18 -18
  384. package/dist/components/ui/core/tool/tool.js +167 -126
  385. package/dist/components/ui/core/tool/tool.js.map +1 -0
  386. package/dist/components/ui/core/toolbar/toolbar.d.ts +37 -0
  387. package/dist/components/ui/core/toolbar/toolbar.js +171 -0
  388. package/dist/components/ui/core/toolbar/toolbar.js.map +1 -0
  389. package/dist/components/ui/core/tooltip/tooltip.d.ts +8 -7
  390. package/dist/components/ui/core/tooltip/tooltip.js +53 -46
  391. package/dist/components/ui/core/tooltip/tooltip.js.map +1 -0
  392. package/dist/components/ui/core/topbar/topbar.d.ts +26 -26
  393. package/dist/components/ui/core/topbar/topbar.js +160 -105
  394. package/dist/components/ui/core/topbar/topbar.js.map +1 -0
  395. package/dist/components/ui/core/tree/tree.d.ts +20 -0
  396. package/dist/components/ui/core/tree/tree.js +100 -0
  397. package/dist/components/ui/core/tree/tree.js.map +1 -0
  398. package/dist/eslint/index.d.ts +5 -5
  399. package/dist/eslint/index.js +9 -5
  400. package/dist/eslint/index.js.map +1 -0
  401. package/dist/eslint/no-overriding-styles.d.ts +1 -1
  402. package/dist/eslint/no-overriding-styles.js +341 -201
  403. package/dist/eslint/no-overriding-styles.js.map +1 -0
  404. package/dist/icons/index.d.ts +1 -1
  405. package/dist/icons/index.js +2 -0
  406. package/dist/icons/index.js.map +1 -0
  407. package/dist/index.d.ts +1 -1
  408. package/dist/index.js +3 -0
  409. package/dist/index.js.map +1 -0
  410. package/dist/lib/ai/types.d.ts +43 -43
  411. package/dist/lib/ai/types.js +3 -0
  412. package/dist/lib/ai/types.js.map +1 -0
  413. package/dist/lib/decorative-variant-classes.d.ts +53 -0
  414. package/dist/lib/decorative-variant-classes.js +58 -0
  415. package/dist/lib/decorative-variant-classes.js.map +1 -0
  416. package/dist/lib/highlight-code.d.ts +11 -8
  417. package/dist/lib/highlight-code.js +58 -40
  418. package/dist/lib/highlight-code.js.map +1 -0
  419. package/dist/lib/portal-container-context.d.ts +1 -1
  420. package/dist/lib/portal-container-context.js +8 -8
  421. package/dist/lib/portal-container-context.js.map +1 -0
  422. package/dist/lib/shared-theme-from-url.d.ts +13 -0
  423. package/dist/lib/shared-theme-from-url.js +61 -0
  424. package/dist/lib/shared-theme-from-url.js.map +1 -0
  425. package/dist/lib/style-scope.d.ts +2 -2
  426. package/dist/lib/style-scope.js +6 -6
  427. package/dist/lib/style-scope.js.map +1 -0
  428. package/dist/lib/theme-share-url.d.ts +31 -0
  429. package/dist/lib/theme-share-url.js +116 -0
  430. package/dist/lib/theme-share-url.js.map +1 -0
  431. package/dist/lib/types.d.ts +39 -39
  432. package/dist/lib/types.js +3 -0
  433. package/dist/lib/types.js.map +1 -0
  434. package/dist/lib/use-controllable-state.d.ts +4 -7
  435. package/dist/lib/use-controllable-state.js +34 -21
  436. package/dist/lib/use-controllable-state.js.map +1 -0
  437. package/dist/lib/utils.d.ts +63 -34
  438. package/dist/lib/utils.js +134 -32
  439. package/dist/lib/utils.js.map +1 -0
  440. package/dist/styles.css +2 -1
  441. package/dist/styles.source.css +24 -12
  442. package/dist/utils/assign-ref.d.ts +3 -0
  443. package/dist/utils/assign-ref.js +13 -0
  444. package/dist/utils/assign-ref.js.map +1 -0
  445. package/package.json +46 -11
  446. package/src/components/ui/core/button/button.md +93 -0
@@ -1,7 +1,88 @@
1
- import e from "dayjs";
2
- import t from "dayjs/plugin/customParseFormat.js";
3
- //#region libs/aura/src/components/ui/core/date-time-pickers/utils/time-utils.ts
4
- e.extend(t);
5
- var n = (e = "24h") => e === "12h" ? Array.from({ length: 12 }, (e, t) => t + 1) : Array.from({ length: 24 }, (e, t) => t), r = () => Array.from({ length: 60 / 1 }, (e, t) => t * 1), i = (e) => e >= 12 ? "PM" : "AM", a = (e, t) => t === "PM" && e < 12 ? e + 12 : t === "AM" && e === 12 ? 0 : e, o = (e) => e === 0 ? 12 : e > 12 ? e - 12 : e;
6
- //#endregion
7
- export { a as convert12HourTo24Hour, o as convert24HourTo12Hour, n as generateHours, r as generateMinutes, i as getAmPmFromHour };
1
+ import dayjs from "dayjs";
2
+ import customParseFormat from "dayjs/plugin/customParseFormat.js";
3
+ import { HOURS_IN_12H, HOURS_IN_DAY, MINUTE_INCREMENT, MINUTES_IN_HOUR } from "../shared/constants.js";
4
+ dayjs.extend(customParseFormat);
5
+ const TIME_COMPONENT_PADDING = 2;
6
+ const PADDING_CHAR = '0';
7
+ /**
8
+ * Generates an array of hours.
9
+ * If timeFormat is '12h', generates hours from 1 to 12.
10
+ * Otherwise, generates hours from 0 to 23.
11
+ * @returns Array of hours
12
+ */ export const generateHours = (timeFormat = '24h')=>{
13
+ if (timeFormat === '12h') {
14
+ return Array.from({
15
+ length: HOURS_IN_12H
16
+ }, (_, i)=>i + 1); // 1 to 12
17
+ }
18
+ return Array.from({
19
+ length: HOURS_IN_DAY
20
+ }, (_, i)=>i); // 0 to 23
21
+ };
22
+ /**
23
+ * Generates an array of minutes in 5-minute increments
24
+ * @returns Array of minutes [0, 5, 10, ..., 55]
25
+ */ export const generateMinutes = ()=>{
26
+ return Array.from({
27
+ length: MINUTES_IN_HOUR / MINUTE_INCREMENT
28
+ }, (_, i)=>i * MINUTE_INCREMENT);
29
+ };
30
+ /**
31
+ * Formats time components into HH:MM string format
32
+ * @param hour - Hour value (0-23)
33
+ * @param minute - Minute value (0-59)
34
+ * @returns Formatted time string (e.g., "09:05")
35
+ */ export const formatTime = (hour, minute)=>{
36
+ const paddedHour = hour.toString().padStart(TIME_COMPONENT_PADDING, PADDING_CHAR);
37
+ const paddedMinute = minute.toString().padStart(TIME_COMPONENT_PADDING, PADDING_CHAR);
38
+ return `${paddedHour}:${paddedMinute}`;
39
+ };
40
+ /**
41
+ * Parses a time string in HH:MM or H:MM format
42
+ * @param timeString - Time string in HH:MM format (e.g., "09:30", "9:30")
43
+ * @returns Object with hour and minute properties, or null if invalid
44
+ */ export const parseTime = (timeString)=>{
45
+ // Try strict HH:mm first, then H:mm for single-digit hours
46
+ const time = dayjs(timeString, [
47
+ 'HH:mm',
48
+ 'H:mm'
49
+ ], true);
50
+ if (!time.isValid()) {
51
+ return null;
52
+ }
53
+ return {
54
+ hour: time.hour(),
55
+ minute: time.minute()
56
+ };
57
+ };
58
+ /**
59
+ * Gets AM/PM period from a 24-hour format hour.
60
+ */ export const getAmPmFromHour = (hour)=>{
61
+ return hour >= HOURS_IN_12H ? 'PM' : 'AM';
62
+ };
63
+ /**
64
+ * Converts a 12-hour format hour and AM/PM period to a 24-hour format hour.
65
+ */ export const convert12HourTo24Hour = (hour, ampm)=>{
66
+ if (ampm === 'PM' && hour < HOURS_IN_12H) {
67
+ return hour + HOURS_IN_12H;
68
+ }
69
+ if (ampm === 'AM' && hour === HOURS_IN_12H) {
70
+ return 0; // 12 AM is 00:00 in 24h format
71
+ }
72
+ return hour;
73
+ };
74
+ /**
75
+ * Converts a 24-hour format hour to a 12-hour display value (1-12).
76
+ * Used when displaying time in 12-hour format.
77
+ * @param hour24 - Hour value (0-23)
78
+ */ export const convert24HourTo12Hour = (hour24)=>{
79
+ if (hour24 === 0) {
80
+ return HOURS_IN_12H; // midnight displays as 12
81
+ }
82
+ if (hour24 > HOURS_IN_12H) {
83
+ return hour24 - HOURS_IN_12H;
84
+ }
85
+ return hour24;
86
+ };
87
+
88
+ //# sourceMappingURL=time-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/ui/core/date-time-pickers/utils/time-utils.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js';\n\nimport {\n HOURS_IN_12H,\n HOURS_IN_DAY,\n MINUTE_INCREMENT,\n MINUTES_IN_HOUR,\n} from '../shared/constants';\n\nimport type { AmPm, TimeFormat } from './format-utils';\n\ndayjs.extend(customParseFormat);\n\nconst TIME_COMPONENT_PADDING = 2;\nconst PADDING_CHAR = '0';\n\n/**\n * Generates an array of hours.\n * If timeFormat is '12h', generates hours from 1 to 12.\n * Otherwise, generates hours from 0 to 23.\n * @returns Array of hours\n */\nexport const generateHours = (timeFormat: TimeFormat = '24h'): number[] => {\n if (timeFormat === '12h') {\n return Array.from({ length: HOURS_IN_12H }, (_, i) => i + 1); // 1 to 12\n }\n return Array.from({ length: HOURS_IN_DAY }, (_, i) => i); // 0 to 23\n};\n\n/**\n * Generates an array of minutes in 5-minute increments\n * @returns Array of minutes [0, 5, 10, ..., 55]\n */\nexport const generateMinutes = (): number[] => {\n return Array.from(\n { length: MINUTES_IN_HOUR / MINUTE_INCREMENT },\n (_, i) => i * MINUTE_INCREMENT\n );\n};\n\n/**\n * Formats time components into HH:MM string format\n * @param hour - Hour value (0-23)\n * @param minute - Minute value (0-59)\n * @returns Formatted time string (e.g., \"09:05\")\n */\nexport const formatTime = (hour: number, minute: number): string => {\n const paddedHour = hour\n .toString()\n .padStart(TIME_COMPONENT_PADDING, PADDING_CHAR);\n const paddedMinute = minute\n .toString()\n .padStart(TIME_COMPONENT_PADDING, PADDING_CHAR);\n return `${paddedHour}:${paddedMinute}`;\n};\n\n/**\n * Parses a time string in HH:MM or H:MM format\n * @param timeString - Time string in HH:MM format (e.g., \"09:30\", \"9:30\")\n * @returns Object with hour and minute properties, or null if invalid\n */\nexport const parseTime = (\n timeString: string\n): { hour: number; minute: number } | null => {\n // Try strict HH:mm first, then H:mm for single-digit hours\n const time = dayjs(timeString, ['HH:mm', 'H:mm'], true);\n\n if (!time.isValid()) {\n return null;\n }\n\n return {\n hour: time.hour(),\n minute: time.minute(),\n };\n};\n\n/**\n * Gets AM/PM period from a 24-hour format hour.\n */\nexport const getAmPmFromHour = (hour: number): AmPm => {\n return hour >= HOURS_IN_12H ? 'PM' : 'AM';\n};\n\n/**\n * Converts a 12-hour format hour and AM/PM period to a 24-hour format hour.\n */\nexport const convert12HourTo24Hour = (hour: number, ampm: AmPm): number => {\n if (ampm === 'PM' && hour < HOURS_IN_12H) {\n return hour + HOURS_IN_12H;\n }\n if (ampm === 'AM' && hour === HOURS_IN_12H) {\n return 0; // 12 AM is 00:00 in 24h format\n }\n return hour;\n};\n\n/**\n * Converts a 24-hour format hour to a 12-hour display value (1-12).\n * Used when displaying time in 12-hour format.\n * @param hour24 - Hour value (0-23)\n */\nexport const convert24HourTo12Hour = (hour24: number): number => {\n if (hour24 === 0) {\n return HOURS_IN_12H; // midnight displays as 12\n }\n if (hour24 > HOURS_IN_12H) {\n return hour24 - HOURS_IN_12H;\n }\n return hour24;\n};\n"],"names":["dayjs","customParseFormat","HOURS_IN_12H","HOURS_IN_DAY","MINUTE_INCREMENT","MINUTES_IN_HOUR","extend","TIME_COMPONENT_PADDING","PADDING_CHAR","generateHours","timeFormat","Array","from","length","_","i","generateMinutes","formatTime","hour","minute","paddedHour","toString","padStart","paddedMinute","parseTime","timeString","time","isValid","getAmPmFromHour","convert12HourTo24Hour","ampm","convert24HourTo12Hour","hour24"],"mappings":"AAAA,OAAOA,WAAW,QAAQ;AAC1B,OAAOC,uBAAuB,oCAAoC;AAElE,SACEC,YAAY,EACZC,YAAY,EACZC,gBAAgB,EAChBC,eAAe,QACV,yBAAsB;AAI7BL,MAAMM,MAAM,CAACL;AAEb,MAAMM,yBAAyB;AAC/B,MAAMC,eAAe;AAErB;;;;;CAKC,GACD,OAAO,MAAMC,gBAAgB,CAACC,aAAyB,KAAK;IAC1D,IAAIA,eAAe,OAAO;QACxB,OAAOC,MAAMC,IAAI,CAAC;YAAEC,QAAQX;QAAa,GAAG,CAACY,GAAGC,IAAMA,IAAI,IAAI,UAAU;IAC1E;IACA,OAAOJ,MAAMC,IAAI,CAAC;QAAEC,QAAQV;IAAa,GAAG,CAACW,GAAGC,IAAMA,IAAI,UAAU;AACtE,EAAE;AAEF;;;CAGC,GACD,OAAO,MAAMC,kBAAkB;IAC7B,OAAOL,MAAMC,IAAI,CACf;QAAEC,QAAQR,kBAAkBD;IAAiB,GAC7C,CAACU,GAAGC,IAAMA,IAAIX;AAElB,EAAE;AAEF;;;;;CAKC,GACD,OAAO,MAAMa,aAAa,CAACC,MAAcC;IACvC,MAAMC,aAAaF,KAChBG,QAAQ,GACRC,QAAQ,CAACf,wBAAwBC;IACpC,MAAMe,eAAeJ,OAClBE,QAAQ,GACRC,QAAQ,CAACf,wBAAwBC;IACpC,OAAO,GAAGY,WAAW,CAAC,EAAEG,cAAc;AACxC,EAAE;AAEF;;;;CAIC,GACD,OAAO,MAAMC,YAAY,CACvBC;IAEA,2DAA2D;IAC3D,MAAMC,OAAO1B,MAAMyB,YAAY;QAAC;QAAS;KAAO,EAAE;IAElD,IAAI,CAACC,KAAKC,OAAO,IAAI;QACnB,OAAO;IACT;IAEA,OAAO;QACLT,MAAMQ,KAAKR,IAAI;QACfC,QAAQO,KAAKP,MAAM;IACrB;AACF,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMS,kBAAkB,CAACV;IAC9B,OAAOA,QAAQhB,eAAe,OAAO;AACvC,EAAE;AAEF;;CAEC,GACD,OAAO,MAAM2B,wBAAwB,CAACX,MAAcY;IAClD,IAAIA,SAAS,QAAQZ,OAAOhB,cAAc;QACxC,OAAOgB,OAAOhB;IAChB;IACA,IAAI4B,SAAS,QAAQZ,SAAShB,cAAc;QAC1C,OAAO,GAAG,+BAA+B;IAC3C;IACA,OAAOgB;AACT,EAAE;AAEF;;;;CAIC,GACD,OAAO,MAAMa,wBAAwB,CAACC;IACpC,IAAIA,WAAW,GAAG;QAChB,OAAO9B,cAAc,0BAA0B;IACjD;IACA,IAAI8B,SAAS9B,cAAc;QACzB,OAAO8B,SAAS9B;IAClB;IACA,OAAO8B;AACT,EAAE"}
@@ -1,23 +1,23 @@
1
- import { Dayjs } from 'dayjs';
1
+ import type { Dayjs } from "dayjs";
2
2
  /**
3
- * Validates and orders a time range, swapping if end is before start
4
- * @param startHour - Start hour (0-23)
5
- * @param startMinute - Start minute (0-59)
6
- * @param endHour - End hour (0-23)
7
- * @param endMinute - End minute (0-59)
8
- * @returns Ordered time range [start, end]
9
- */
3
+ * Validates and orders a time range, swapping if end is before start
4
+ * @param startHour - Start hour (0-23)
5
+ * @param startMinute - Start minute (0-59)
6
+ * @param endHour - End hour (0-23)
7
+ * @param endMinute - End minute (0-59)
8
+ * @returns Ordered time range [start, end]
9
+ */
10
10
  export declare const orderTimeRange: (startHour: number, startMinute: number, endHour: number, endMinute: number) => [{
11
- hour: number;
12
- minute: number;
11
+ hour: number;
12
+ minute: number;
13
13
  }, {
14
- hour: number;
15
- minute: number;
14
+ hour: number;
15
+ minute: number;
16
16
  }];
17
17
  /**
18
- * Validates and orders a date range, swapping if end is before start
19
- * @param start - Start date
20
- * @param end - End date
21
- * @returns Ordered date range [start, end]
22
- */
18
+ * Validates and orders a date range, swapping if end is before start
19
+ * @param start - Start date
20
+ * @param end - End date
21
+ * @returns Ordered date range [start, end]
22
+ */
23
23
  export declare const orderDateRange: (start: Dayjs, end: Dayjs) => [Dayjs, Dayjs];
@@ -0,0 +1,43 @@
1
+ import { MINUTES_IN_HOUR } from "../shared/constants.js";
2
+ /**
3
+ * Validates and orders a time range, swapping if end is before start
4
+ * @param startHour - Start hour (0-23)
5
+ * @param startMinute - Start minute (0-59)
6
+ * @param endHour - End hour (0-23)
7
+ * @param endMinute - End minute (0-59)
8
+ * @returns Ordered time range [start, end]
9
+ */ export const orderTimeRange = (startHour, startMinute, endHour, endMinute)=>{
10
+ const startMinutes = startHour * MINUTES_IN_HOUR + startMinute;
11
+ const endMinutes = endHour * MINUTES_IN_HOUR + endMinute;
12
+ const startTime = {
13
+ hour: startHour,
14
+ minute: startMinute
15
+ };
16
+ const endTime = {
17
+ hour: endHour,
18
+ minute: endMinute
19
+ };
20
+ return endMinutes >= startMinutes ? [
21
+ startTime,
22
+ endTime
23
+ ] : [
24
+ endTime,
25
+ startTime
26
+ ];
27
+ };
28
+ /**
29
+ * Validates and orders a date range, swapping if end is before start
30
+ * @param start - Start date
31
+ * @param end - End date
32
+ * @returns Ordered date range [start, end]
33
+ */ export const orderDateRange = (start, end)=>{
34
+ return start.isAfter(end) ? [
35
+ end,
36
+ start
37
+ ] : [
38
+ start,
39
+ end
40
+ ];
41
+ };
42
+
43
+ //# sourceMappingURL=time-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/ui/core/date-time-pickers/utils/time-validation.ts"],"sourcesContent":["import type { Dayjs } from 'dayjs';\n\nimport { MINUTES_IN_HOUR } from '../shared/constants';\n\n/**\n * Validates and orders a time range, swapping if end is before start\n * @param startHour - Start hour (0-23)\n * @param startMinute - Start minute (0-59)\n * @param endHour - End hour (0-23)\n * @param endMinute - End minute (0-59)\n * @returns Ordered time range [start, end]\n */\nexport const orderTimeRange = (\n startHour: number,\n startMinute: number,\n endHour: number,\n endMinute: number\n): [{ hour: number; minute: number }, { hour: number; minute: number }] => {\n const startMinutes = startHour * MINUTES_IN_HOUR + startMinute;\n const endMinutes = endHour * MINUTES_IN_HOUR + endMinute;\n\n const startTime = { hour: startHour, minute: startMinute };\n const endTime = { hour: endHour, minute: endMinute };\n\n return endMinutes >= startMinutes\n ? [startTime, endTime]\n : [endTime, startTime];\n};\n\n/**\n * Validates and orders a date range, swapping if end is before start\n * @param start - Start date\n * @param end - End date\n * @returns Ordered date range [start, end]\n */\nexport const orderDateRange = (start: Dayjs, end: Dayjs): [Dayjs, Dayjs] => {\n return start.isAfter(end) ? [end, start] : [start, end];\n};\n"],"names":["MINUTES_IN_HOUR","orderTimeRange","startHour","startMinute","endHour","endMinute","startMinutes","endMinutes","startTime","hour","minute","endTime","orderDateRange","start","end","isAfter"],"mappings":"AAEA,SAASA,eAAe,QAAQ,yBAAsB;AAEtD;;;;;;;CAOC,GACD,OAAO,MAAMC,iBAAiB,CAC5BC,WACAC,aACAC,SACAC;IAEA,MAAMC,eAAeJ,YAAYF,kBAAkBG;IACnD,MAAMI,aAAaH,UAAUJ,kBAAkBK;IAE/C,MAAMG,YAAY;QAAEC,MAAMP;QAAWQ,QAAQP;IAAY;IACzD,MAAMQ,UAAU;QAAEF,MAAML;QAASM,QAAQL;IAAU;IAEnD,OAAOE,cAAcD,eACjB;QAACE;QAAWG;KAAQ,GACpB;QAACA;QAASH;KAAU;AAC1B,EAAE;AAEF;;;;;CAKC,GACD,OAAO,MAAMI,iBAAiB,CAACC,OAAcC;IAC3C,OAAOD,MAAME,OAAO,CAACD,OAAO;QAACA;QAAKD;KAAM,GAAG;QAACA;QAAOC;KAAI;AACzD,EAAE"}
@@ -1,18 +1,21 @@
1
- import { ComponentProps, ReactNode } from 'react';
2
- import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
3
+ import { type ButtonVariantProps } from "../button/button";
3
4
  declare function Dialog({ ...props }: DialogPrimitive.Root.Props): ReactNode;
4
5
  declare function DialogTrigger({ children, ...props }: DialogPrimitive.Trigger.Props): ReactNode;
5
6
  declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): ReactNode;
6
7
  declare function DialogClose({ children, ...props }: DialogPrimitive.Close.Props & {
7
- children?: ReactNode;
8
+ children?: ReactNode;
8
9
  }): ReactNode;
9
10
  declare function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props): ReactNode;
10
- declare function DialogContent({ className, children, showCloseButton, closeButtonLabel, ...props }: DialogPrimitive.Popup.Props & {
11
- showCloseButton?: boolean;
12
- closeButtonLabel?: string;
11
+ declare function DialogContent({ className, children, showCloseButton, closeButtonLabel, closeButtonClassName, closeButtonSize, ...props }: DialogPrimitive.Popup.Props & {
12
+ showCloseButton?: boolean;
13
+ closeButtonLabel?: string;
14
+ closeButtonClassName?: string;
15
+ closeButtonSize?: NonNullable<ButtonVariantProps["size"]>;
13
16
  }): ReactNode;
14
- declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): ReactNode;
15
- declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): ReactNode;
17
+ declare function DialogHeader({ className, ...props }: ComponentProps<"div">): ReactNode;
18
+ declare function DialogFooter({ className, ...props }: ComponentProps<"div">): ReactNode;
16
19
  declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): ReactNode;
17
20
  declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): ReactNode;
18
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
21
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
@@ -1,92 +1,100 @@
1
- import { cn as e } from "../../../../lib/utils.js";
2
- import { Button as t } from "../button/button.js";
3
- import { usePortalContainer as n } from "../../../../lib/portal-container-context.js";
4
- import { IconX as r } from "@tabler/icons-react";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import { Dialog as o } from "@base-ui/react/dialog";
7
- //#region libs/aura/src/components/ui/core/dialog/dialog.tsx
8
- function s({ ...e }) {
9
- return /* @__PURE__ */ i(o.Root, {
10
- "data-slot": "dialog",
11
- ...e
12
- });
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
3
+ import { IconX } from "@tabler/icons-react";
4
+ import { usePortalContainer } from "../../../../lib/portal-container-context.js";
5
+ import { cn } from "../../../../lib/utils.js";
6
+ import { Button } from "../button/button.js";
7
+ function Dialog({ ...props }) {
8
+ return /*#__PURE__*/ _jsx(DialogPrimitive.Root, {
9
+ "data-slot": "dialog",
10
+ ...props
11
+ });
13
12
  }
14
- function c({ children: e, ...t }) {
15
- return /* @__PURE__ */ i(o.Trigger, {
16
- "data-slot": "dialog-trigger",
17
- ...t,
18
- children: e
19
- });
13
+ function DialogTrigger({ children, ...props }) {
14
+ return /*#__PURE__*/ _jsx(DialogPrimitive.Trigger, {
15
+ "data-slot": "dialog-trigger",
16
+ ...props,
17
+ children: children
18
+ });
20
19
  }
21
- function l({ ...e }) {
22
- let t = n();
23
- return /* @__PURE__ */ i(o.Portal, {
24
- "data-slot": "dialog-portal",
25
- container: t,
26
- ...e
27
- });
20
+ function DialogPortal({ ...props }) {
21
+ const container = usePortalContainer();
22
+ return /*#__PURE__*/ _jsx(DialogPrimitive.Portal, {
23
+ "data-slot": "dialog-portal",
24
+ container: container,
25
+ ...props
26
+ });
28
27
  }
29
- function u({ children: e, ...t }) {
30
- return /* @__PURE__ */ i(o.Close, {
31
- "data-slot": "dialog-close",
32
- ...t,
33
- children: e
34
- });
28
+ function DialogClose({ children, ...props }) {
29
+ return /*#__PURE__*/ _jsx(DialogPrimitive.Close, {
30
+ "data-slot": "dialog-close",
31
+ ...props,
32
+ children: children
33
+ });
35
34
  }
36
- function d({ className: t, ...n }) {
37
- return /* @__PURE__ */ i(o.Backdrop, {
38
- "data-slot": "dialog-overlay",
39
- className: e("fixed inset-0 z-50 bg-black/50 transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0", t),
40
- ...n
41
- });
35
+ function DialogOverlay({ className, ...props }) {
36
+ return /*#__PURE__*/ _jsx(DialogPrimitive.Backdrop, {
37
+ "data-slot": "dialog-overlay",
38
+ className: cn('fixed inset-0 z-50 bg-black/50 transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0', className),
39
+ ...props
40
+ });
42
41
  }
43
- function f({ className: n, children: s, showCloseButton: c = !0, closeButtonLabel: u = "Close", ...f }) {
44
- return /* @__PURE__ */ a(l, {
45
- "data-slot": "dialog-portal",
46
- children: [/* @__PURE__ */ i(d, {}), /* @__PURE__ */ a(o.Popup, {
47
- "data-slot": "dialog-content",
48
- className: e("bg-popover-background fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2", n),
49
- ...f,
50
- children: [s, c && /* @__PURE__ */ i(o.Close, {
51
- "data-slot": "dialog-close",
52
- render: /* @__PURE__ */ i(t, {
53
- variant: "ghost",
54
- size: "icon-sm",
55
- className: "absolute top-5 right-4 opacity-70 hover:opacity-100",
56
- "aria-label": u,
57
- children: /* @__PURE__ */ i(r, { className: "h-4 w-4" })
58
- })
59
- })]
60
- })]
61
- });
42
+ function DialogContent({ className, children, showCloseButton = true, closeButtonLabel = 'Close', closeButtonClassName, closeButtonSize = 'icon-sm', ...props }) {
43
+ return /*#__PURE__*/ _jsxs(DialogPortal, {
44
+ "data-slot": "dialog-portal",
45
+ children: [
46
+ /*#__PURE__*/ _jsx(DialogOverlay, {}),
47
+ /*#__PURE__*/ _jsxs(DialogPrimitive.Popup, {
48
+ "data-slot": "dialog-content",
49
+ className: cn('bg-popover-background fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2', className),
50
+ ...props,
51
+ children: [
52
+ children,
53
+ showCloseButton && /*#__PURE__*/ _jsx(DialogPrimitive.Close, {
54
+ "data-slot": "dialog-close",
55
+ render: /*#__PURE__*/ _jsx(Button, {
56
+ variant: "ghost",
57
+ size: closeButtonSize,
58
+ className: cn('absolute top-5 right-4 opacity-70 hover:opacity-100', closeButtonClassName),
59
+ "aria-label": closeButtonLabel,
60
+ children: /*#__PURE__*/ _jsx(IconX, {
61
+ className: "h-4 w-4"
62
+ })
63
+ })
64
+ })
65
+ ]
66
+ })
67
+ ]
68
+ });
62
69
  }
63
- function p({ className: t, ...n }) {
64
- return /* @__PURE__ */ i("div", {
65
- "data-slot": "dialog-header",
66
- className: e("flex flex-col gap-2 text-center sm:text-left pb-2", t),
67
- ...n
68
- });
70
+ function DialogHeader({ className, ...props }) {
71
+ return /*#__PURE__*/ _jsx("div", {
72
+ "data-slot": "dialog-header",
73
+ className: cn('flex flex-col gap-2 text-center sm:text-left pb-2', className),
74
+ ...props
75
+ });
69
76
  }
70
- function m({ className: t, ...n }) {
71
- return /* @__PURE__ */ i("div", {
72
- "data-slot": "dialog-footer",
73
- className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end pt-3", t),
74
- ...n
75
- });
77
+ function DialogFooter({ className, ...props }) {
78
+ return /*#__PURE__*/ _jsx("div", {
79
+ "data-slot": "dialog-footer",
80
+ className: cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end pt-3', className),
81
+ ...props
82
+ });
76
83
  }
77
- function h({ className: t, ...n }) {
78
- return /* @__PURE__ */ i(o.Title, {
79
- "data-slot": "dialog-title",
80
- className: e("text-lg font-medium text-foreground leading-6 tracking-tightest", t),
81
- ...n
82
- });
84
+ function DialogTitle({ className, ...props }) {
85
+ return /*#__PURE__*/ _jsx(DialogPrimitive.Title, {
86
+ "data-slot": "dialog-title",
87
+ className: cn('text-lg font-medium text-foreground leading-6 tracking-tightest', className),
88
+ ...props
89
+ });
83
90
  }
84
- function g({ className: t, ...n }) {
85
- return /* @__PURE__ */ i(o.Description, {
86
- "data-slot": "dialog-description",
87
- className: e("text-muted-foreground text-base font-normal leading-5 tracking-tightest pt-2", t),
88
- ...n
89
- });
91
+ function DialogDescription({ className, ...props }) {
92
+ return /*#__PURE__*/ _jsx(DialogPrimitive.Description, {
93
+ "data-slot": "dialog-description",
94
+ className: cn('text-muted-foreground text-base font-normal leading-5 tracking-tightest pt-2', className),
95
+ ...props
96
+ });
90
97
  }
91
- //#endregion
92
- export { s as Dialog, u as DialogClose, f as DialogContent, g as DialogDescription, m as DialogFooter, p as DialogHeader, d as DialogOverlay, l as DialogPortal, h as DialogTitle, c as DialogTrigger };
98
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
99
+
100
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/dialog/dialog.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport { Dialog as DialogPrimitive } from '@base-ui/react/dialog';\nimport { IconX } from '@tabler/icons-react';\n\nimport { usePortalContainer } from '../../../../lib/portal-container-context';\nimport { cn } from '../../../../lib/utils';\nimport { Button, type ButtonVariantProps } from '../button/button';\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props): ReactNode {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({\n children,\n ...props\n}: DialogPrimitive.Trigger.Props): ReactNode {\n return (\n <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props}>\n {children}\n </DialogPrimitive.Trigger>\n );\n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props): ReactNode {\n const container = usePortalContainer();\n return (\n <DialogPrimitive.Portal\n data-slot=\"dialog-portal\"\n container={container}\n {...props}\n />\n );\n}\n\nfunction DialogClose({\n children,\n ...props\n}: DialogPrimitive.Close.Props & { children?: ReactNode }): ReactNode {\n return (\n <DialogPrimitive.Close data-slot=\"dialog-close\" {...props}>\n {children}\n </DialogPrimitive.Close>\n );\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props): ReactNode {\n return (\n <DialogPrimitive.Backdrop\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50 transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeButtonLabel = 'Close',\n closeButtonClassName,\n closeButtonSize = 'icon-sm',\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean;\n closeButtonLabel?: string;\n closeButtonClassName?: string;\n closeButtonSize?: NonNullable<ButtonVariantProps['size']>;\n}): ReactNode {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <DialogPrimitive.Popup\n data-slot=\"dialog-content\"\n className={cn(\n 'bg-popover-background fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2',\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n render={\n <Button\n variant=\"ghost\"\n size={closeButtonSize}\n className={cn(\n 'absolute top-5 right-4 opacity-70 hover:opacity-100',\n closeButtonClassName\n )}\n aria-label={closeButtonLabel}\n >\n <IconX className=\"h-4 w-4\" />\n </Button>\n }\n />\n )}\n </DialogPrimitive.Popup>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\n 'flex flex-col gap-2 text-center sm:text-left pb-2',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end pt-3',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Title>): ReactNode {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\n 'text-lg font-medium text-foreground leading-6 tracking-tightest',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props): ReactNode {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\n 'text-muted-foreground text-base font-normal leading-5 tracking-tightest pt-2',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["Dialog","DialogPrimitive","IconX","usePortalContainer","cn","Button","props","Root","data-slot","DialogTrigger","children","Trigger","DialogPortal","container","Portal","DialogClose","Close","DialogOverlay","className","Backdrop","DialogContent","showCloseButton","closeButtonLabel","closeButtonClassName","closeButtonSize","Popup","render","variant","size","aria-label","DialogHeader","div","DialogFooter","DialogTitle","Title","DialogDescription","Description"],"mappings":";AAEA,SAASA,UAAUC,eAAe,QAAQ,wBAAwB;AAClE,SAASC,KAAK,QAAQ,sBAAsB;AAE5C,SAASC,kBAAkB,QAAQ,8CAA2C;AAC9E,SAASC,EAAE,QAAQ,2BAAwB;AAC3C,SAASC,MAAM,QAAiC,sBAAmB;AAEnE,SAASL,OAAO,EAAE,GAAGM,OAAmC;IACtD,qBAAO,KAACL,gBAAgBM,IAAI;QAACC,aAAU;QAAU,GAAGF,KAAK;;AAC3D;AAEA,SAASG,cAAc,EACrBC,QAAQ,EACR,GAAGJ,OAC2B;IAC9B,qBACE,KAACL,gBAAgBU,OAAO;QAACH,aAAU;QAAkB,GAAGF,KAAK;kBAC1DI;;AAGP;AAEA,SAASE,aAAa,EAAE,GAAGN,OAAqC;IAC9D,MAAMO,YAAYV;IAClB,qBACE,KAACF,gBAAgBa,MAAM;QACrBN,aAAU;QACVK,WAAWA;QACV,GAAGP,KAAK;;AAGf;AAEA,SAASS,YAAY,EACnBL,QAAQ,EACR,GAAGJ,OACoD;IACvD,qBACE,KAACL,gBAAgBe,KAAK;QAACR,aAAU;QAAgB,GAAGF,KAAK;kBACtDI;;AAGP;AAEA,SAASO,cAAc,EACrBC,SAAS,EACT,GAAGZ,OAC4B;IAC/B,qBACE,KAACL,gBAAgBkB,QAAQ;QACvBX,aAAU;QACVU,WAAWd,GACT,8GACAc;QAED,GAAGZ,KAAK;;AAGf;AAEA,SAASc,cAAc,EACrBF,SAAS,EACTR,QAAQ,EACRW,kBAAkB,IAAI,EACtBC,mBAAmB,OAAO,EAC1BC,oBAAoB,EACpBC,kBAAkB,SAAS,EAC3B,GAAGlB,OAMJ;IACC,qBACE,MAACM;QAAaJ,aAAU;;0BACtB,KAACS;0BACD,MAAChB,gBAAgBwB,KAAK;gBACpBjB,aAAU;gBACVU,WAAWd,GACT,qRACAc;gBAED,GAAGZ,KAAK;;oBAERI;oBACAW,iCACC,KAACpB,gBAAgBe,KAAK;wBACpBR,aAAU;wBACVkB,sBACE,KAACrB;4BACCsB,SAAQ;4BACRC,MAAMJ;4BACNN,WAAWd,GACT,uDACAmB;4BAEFM,cAAYP;sCAEZ,cAAA,KAACpB;gCAAMgB,WAAU;;;;;;;;AAQjC;AAEA,SAASY,aAAa,EACpBZ,SAAS,EACT,GAAGZ,OACmB;IACtB,qBACE,KAACyB;QACCvB,aAAU;QACVU,WAAWd,GACT,qDACAc;QAED,GAAGZ,KAAK;;AAGf;AAEA,SAAS0B,aAAa,EACpBd,SAAS,EACT,GAAGZ,OACmB;IACtB,qBACE,KAACyB;QACCvB,aAAU;QACVU,WAAWd,GACT,+DACAc;QAED,GAAGZ,KAAK;;AAGf;AAEA,SAAS2B,YAAY,EACnBf,SAAS,EACT,GAAGZ,OAC0C;IAC7C,qBACE,KAACL,gBAAgBiC,KAAK;QACpB1B,aAAU;QACVU,WAAWd,GACT,mEACAc;QAED,GAAGZ,KAAK;;AAGf;AAEA,SAAS6B,kBAAkB,EACzBjB,SAAS,EACT,GAAGZ,OAC+B;IAClC,qBACE,KAACL,gBAAgBmC,WAAW;QAC1B5B,aAAU;QACVU,WAAWd,GACT,gFACAc;QAED,GAAGZ,KAAK;;AAGf;AAEA,SACEN,MAAM,EACNe,WAAW,EACXK,aAAa,EACbe,iBAAiB,EACjBH,YAAY,EACZF,YAAY,EACZb,aAAa,EACbL,YAAY,EACZqB,WAAW,EACXxB,aAAa,GACb"}
@@ -1,32 +1,35 @@
1
- import { ComponentProps, ComponentRef, ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from 'react';
2
- import { Menu as MenuPrimitive } from '@base-ui/react/menu';
1
+ import { type ComponentProps, type ComponentRef, type ForwardRefExoticComponent, type HTMLAttributes, type ReactNode, type RefAttributes } from "react";
2
+ import { Menu as MenuPrimitive } from "@base-ui/react/menu";
3
3
  declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): ReactNode;
4
4
  declare function DropdownMenuPortal({ container, ...props }: MenuPrimitive.Portal.Props): ReactNode;
5
- declare const DropdownMenuTrigger: ForwardRefExoticComponent<Omit<MenuPrimitive.Trigger.Props, 'ref'> & RefAttributes<HTMLButtonElement>>;
6
- declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, container, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'> & {
7
- container?: MenuPrimitive.Portal.Props['container'];
5
+ declare const DropdownMenuTrigger: ForwardRefExoticComponent<Omit<MenuPrimitive.Trigger.Props, "ref"> & RefAttributes<HTMLButtonElement>>;
6
+ declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, container, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset"> & {
7
+ container?: MenuPrimitive.Portal.Props["container"];
8
8
  }): ReactNode;
9
9
  declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): ReactNode;
10
10
  type DropdownMenuItemProps = MenuPrimitive.Item.Props & {
11
- inset?: boolean;
12
- variant?: 'default' | 'destructive';
11
+ inset?: boolean;
12
+ variant?: "default" | "destructive";
13
13
  };
14
- declare const DropdownMenuItem: ForwardRefExoticComponent<Omit<DropdownMenuItemProps, 'ref'> & RefAttributes<ComponentRef<typeof MenuPrimitive.Item>>>;
15
- declare const DropdownMenuCheckboxItem: ForwardRefExoticComponent<Omit<MenuPrimitive.CheckboxItem.Props, 'ref'> & RefAttributes<ComponentRef<typeof MenuPrimitive.CheckboxItem>>>;
14
+ declare const DropdownMenuItem: ForwardRefExoticComponent<Omit<DropdownMenuItemProps, "ref"> & RefAttributes<ComponentRef<typeof MenuPrimitive.Item>>>;
15
+ declare const DropdownMenuCheckboxItem: ForwardRefExoticComponent<Omit<MenuPrimitive.CheckboxItem.Props, "ref"> & RefAttributes<ComponentRef<typeof MenuPrimitive.CheckboxItem>>>;
16
16
  declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): ReactNode;
17
- declare const DropdownMenuRadioItem: ForwardRefExoticComponent<Omit<MenuPrimitive.RadioItem.Props, 'ref'> & RefAttributes<ComponentRef<typeof MenuPrimitive.RadioItem>>>;
17
+ declare const DropdownMenuRadioItem: ForwardRefExoticComponent<Omit<MenuPrimitive.RadioItem.Props, "ref"> & RefAttributes<ComponentRef<typeof MenuPrimitive.RadioItem>>>;
18
18
  type DropdownMenuLabelProps = MenuPrimitive.GroupLabel.Props & {
19
- inset?: boolean;
19
+ inset?: boolean;
20
20
  };
21
- declare const DropdownMenuLabel: ForwardRefExoticComponent<Omit<DropdownMenuLabelProps, 'ref'> & RefAttributes<ComponentRef<typeof MenuPrimitive.GroupLabel>>>;
22
- declare const DropdownMenuHeader: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, 'ref'> & RefAttributes<HTMLDivElement>>;
23
- declare const DropdownMenuSeparator: ForwardRefExoticComponent<Omit<MenuPrimitive.Separator.Props, 'ref'> & RefAttributes<ComponentRef<typeof MenuPrimitive.Separator>>>;
24
- declare const DropdownMenuShortcut: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLSpanElement>, 'ref'> & RefAttributes<HTMLSpanElement>>;
21
+ declare const DropdownMenuLabel: ForwardRefExoticComponent<Omit<DropdownMenuLabelProps, "ref"> & RefAttributes<ComponentRef<typeof MenuPrimitive.GroupLabel>>>;
22
+ declare const DropdownMenuHeader: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
23
+ declare const DropdownMenuSeparator: ForwardRefExoticComponent<Omit<MenuPrimitive.Separator.Props, "ref"> & RefAttributes<ComponentRef<typeof MenuPrimitive.Separator>>>;
24
+ type DropdownMenuShortcutProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
25
+ children: string;
26
+ };
27
+ declare const DropdownMenuShortcut: ForwardRefExoticComponent<Omit<DropdownMenuShortcutProps, "ref"> & RefAttributes<HTMLSpanElement>>;
25
28
  declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): ReactNode;
26
29
  type DropdownMenuSubTriggerProps = MenuPrimitive.SubmenuTrigger.Props & {
27
- inset?: boolean;
30
+ inset?: boolean;
28
31
  };
29
- declare const DropdownMenuSubTrigger: ForwardRefExoticComponent<Omit<DropdownMenuSubTriggerProps, 'ref'> & RefAttributes<ComponentRef<typeof MenuPrimitive.SubmenuTrigger>>>;
32
+ declare const DropdownMenuSubTrigger: ForwardRefExoticComponent<Omit<DropdownMenuSubTriggerProps, "ref"> & RefAttributes<ComponentRef<typeof MenuPrimitive.SubmenuTrigger>>>;
30
33
  declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: ComponentProps<typeof DropdownMenuContent>): ReactNode;
31
- declare const DropdownMenuSectionLabel: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, 'ref'> & RefAttributes<HTMLDivElement>>;
32
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSectionLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
34
+ declare const DropdownMenuSectionLabel: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
35
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSectionLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };