@jfrader/ui 0.4.0 → 0.5.1

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 (307) hide show
  1. package/README.md +2 -0
  2. package/dist/accordion-DLul6vIl.js +205 -0
  3. package/dist/accordion.js +1 -1
  4. package/dist/{alert-BBqaKI4k.js → alert-DS_einpy.js} +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/announcement-bar-Dlbq5-9D.js +382 -0
  7. package/dist/announcement-bar.js +2 -0
  8. package/dist/avatar-CaGJHy1N.js +145 -0
  9. package/dist/avatar-group-M1opAQEG.js +138 -0
  10. package/dist/avatar-group.js +2 -0
  11. package/dist/avatar.js +1 -1
  12. package/dist/badge-CjM5Agqk.js +119 -0
  13. package/dist/badge.js +1 -1
  14. package/dist/bottom-sheet-DjZOPq4k.js +674 -0
  15. package/dist/bottom-sheet.js +2 -0
  16. package/dist/{breadcrumbs-DVAOxfvL.js → breadcrumbs-BDK_LiwH.js} +11 -4
  17. package/dist/breadcrumbs.js +1 -1
  18. package/dist/{button-P2e7_44z.js → button-NLY0h6EJ.js} +8 -8
  19. package/dist/button.js +1 -1
  20. package/dist/calendar-BzJdv_SZ.js +449 -0
  21. package/dist/calendar.js +1 -1
  22. package/dist/card-Ca4KQKYQ.js +154 -0
  23. package/dist/card.js +1 -1
  24. package/dist/carousel-B7OrvD6J.js +474 -0
  25. package/dist/carousel.js +2 -0
  26. package/dist/{checkbox-COYG6L7d.js → checkbox-DKSzExj2.js} +17 -16
  27. package/dist/checkbox.js +1 -1
  28. package/dist/chip-group-DjQ0_6Y9.js +290 -0
  29. package/dist/chip-group.js +2 -0
  30. package/dist/code-block/shiki.js +147 -0
  31. package/dist/code-block-B5we2lZa.js +293 -0
  32. package/dist/code-block.js +2 -0
  33. package/dist/collection-registry-k6JcD3Jr.js +44 -0
  34. package/dist/combobox-DFFqOBCi.js +339 -0
  35. package/dist/combobox.js +1 -1
  36. package/dist/command-palette-BmQu2w4H.js +391 -0
  37. package/dist/command-palette.js +1 -1
  38. package/dist/comment-thread-ASaXDcGo.js +1410 -0
  39. package/dist/comment-thread.js +2 -0
  40. package/dist/context-menu-__1c2Dk9.js +370 -0
  41. package/dist/context-menu.js +2 -0
  42. package/dist/copy-button-DCSLcYS-.js +252 -0
  43. package/dist/copy-button.js +2 -0
  44. package/dist/countdown-Dp_TD1VP.js +293 -0
  45. package/dist/countdown.js +2 -0
  46. package/dist/date-picker-BiPN7yeK.js +255 -0
  47. package/dist/date-picker.js +1 -1
  48. package/dist/date-range-picker-DQpUeKqV.js +570 -0
  49. package/dist/date-range-picker.js +2 -0
  50. package/dist/{dialog-xaydbXl2.js → dialog-BX1zYMs-.js} +21 -20
  51. package/dist/dialog.js +1 -1
  52. package/dist/{divider-DYoJf0I_.js → divider-Cp7aNbhM.js} +21 -20
  53. package/dist/divider.js +1 -1
  54. package/dist/drawer-DsASTiP-.js +553 -0
  55. package/dist/drawer.js +2 -0
  56. package/dist/elastic-slider-BG6K019r.js +395 -0
  57. package/dist/elastic-slider.js +2 -0
  58. package/dist/empty-state-CDgrjPPf.js +142 -0
  59. package/dist/empty-state.js +2 -0
  60. package/dist/expandable-card-rUATve0o.js +347 -0
  61. package/dist/expandable-card.js +2 -0
  62. package/dist/expanding-search-BxOwtdwt.js +238 -0
  63. package/dist/expanding-search.js +2 -0
  64. package/dist/field-anatomy-COVdNpf5.js +84 -0
  65. package/dist/file-dropzone-BuXm3Tea.js +457 -0
  66. package/dist/file-dropzone.js +2 -0
  67. package/dist/filter-toolbar-Cy5Hqur-.js +314 -0
  68. package/dist/filter-toolbar.js +2 -0
  69. package/dist/hold-to-confirm-DjB2EVjM.js +294 -0
  70. package/dist/hold-to-confirm.js +2 -0
  71. package/dist/hover-card-CoMJKg1g.js +347 -0
  72. package/dist/hover-card.js +2 -0
  73. package/dist/image-compare-BxY8Ykzt.js +415 -0
  74. package/dist/image-compare.js +2 -0
  75. package/dist/index.js +84 -38
  76. package/dist/inline-edit-C0eeml65.js +535 -0
  77. package/dist/inline-edit.js +2 -0
  78. package/dist/input-control-DmMuAuPS.js +34 -0
  79. package/dist/json-viewer-DgWqyU75.js +802 -0
  80. package/dist/json-viewer.js +2 -0
  81. package/dist/listbox-style-WX-RASp1.js +59 -0
  82. package/dist/{media-D_eA_I-e.js → media-8yrN85VT.js} +2 -2
  83. package/dist/mention-input-sq61si9L.js +600 -0
  84. package/dist/mention-input.js +2 -0
  85. package/dist/menu-DDKgmK2F.js +295 -0
  86. package/dist/menu.js +1 -1
  87. package/dist/metric-card--lVTz5Wn.js +118 -0
  88. package/dist/metric-card.js +2 -0
  89. package/dist/multi-select-DG1BCFX7.js +598 -0
  90. package/dist/multi-select.js +2 -0
  91. package/dist/{navigation-DhnKriOp.js → navigation-CC26JDr-.js} +24 -18
  92. package/dist/navigation.js +1 -1
  93. package/dist/overlay-layer-qEbpEtb8.js +78 -0
  94. package/dist/overlay-portal-C4JZFq2M.js +15 -0
  95. package/dist/{pagination-DYdwsxwe.js → pagination-BfkeWbmP.js} +24 -23
  96. package/dist/pagination.js +1 -1
  97. package/dist/password-field-03pWRkuY.js +250 -0
  98. package/dist/password-field.js +2 -0
  99. package/dist/pill-BaS-uIbn.js +58 -0
  100. package/dist/pill.js +1 -1
  101. package/dist/popover-CErIw2q3.js +125 -0
  102. package/dist/popover.js +1 -1
  103. package/dist/{progress-BpJswTG4.js → progress-DAQkfhPd.js} +5 -5
  104. package/dist/progress.js +1 -1
  105. package/dist/radio-cards-Cu9cBssN.js +456 -0
  106. package/dist/radio-cards.js +2 -0
  107. package/dist/{radio-group-Ce0_IWQr.js → radio-group-TIK0-iPX.js} +22 -19
  108. package/dist/radio-group.js +1 -1
  109. package/dist/resizable-panels-DUpQEpwG.js +520 -0
  110. package/dist/resizable-panels.js +2 -0
  111. package/dist/scroll-area-CcZyiSOQ.js +371 -0
  112. package/dist/scroll-area.js +2 -0
  113. package/dist/search-field-DMvho0KQ.js +274 -0
  114. package/dist/search-field.js +2 -0
  115. package/dist/segmented-control-8ZUGnsZm.js +327 -0
  116. package/dist/segmented-control.js +2 -0
  117. package/dist/select-D5rhJ8gi.js +293 -0
  118. package/dist/select.js +1 -1
  119. package/dist/signature-pad-_bTeguN9.js +645 -0
  120. package/dist/signature-pad.js +2 -0
  121. package/dist/{skeleton-OoFlOEXO.js → skeleton-XQQDkCHd.js} +1 -1
  122. package/dist/skeleton.js +1 -1
  123. package/dist/slider-DVG6-Awh.js +308 -0
  124. package/dist/slider.js +2 -0
  125. package/dist/sortable-data-table-CYKT_Ng7.js +365 -0
  126. package/dist/sortable-data-table.js +2 -0
  127. package/dist/{spinner-C2YDoiMn.js → spinner-DtxvDPdM.js} +1 -1
  128. package/dist/spinner.js +1 -1
  129. package/dist/split-button-BCw4zZom.js +262 -0
  130. package/dist/split-button.js +2 -0
  131. package/dist/stepper-CruHbXxX.js +480 -0
  132. package/dist/stepper.js +2 -0
  133. package/dist/swipe-actions-CBuJREU1.js +420 -0
  134. package/dist/swipe-actions.js +2 -0
  135. package/dist/switch-C1WrKrf-.js +145 -0
  136. package/dist/switch.js +1 -1
  137. package/dist/tabs-XluwRjgg.js +210 -0
  138. package/dist/tabs.js +1 -1
  139. package/dist/tag-input-DSRCyrX2.js +418 -0
  140. package/dist/tag-input.js +2 -0
  141. package/dist/{text-field-D60ok14S.js → text-field-hU72iSVS.js} +20 -17
  142. package/dist/text-field.js +1 -1
  143. package/dist/{textarea-DyfjtP0A.js → textarea-3k4Y0QQ3.js} +23 -20
  144. package/dist/textarea.js +1 -1
  145. package/dist/theme-root.js +1 -1
  146. package/dist/theme-switch-C505TtU8.js +166 -0
  147. package/dist/theme-switch.js +2 -0
  148. package/dist/time-picker-CPlhW0tr.js +311 -0
  149. package/dist/time-picker.js +2 -0
  150. package/dist/timeline-B0uAAVfT.js +624 -0
  151. package/dist/timeline.js +2 -0
  152. package/dist/toast-B7wo3sX1.js +371 -0
  153. package/dist/toast-stack-B40VpS4M.js +197 -0
  154. package/dist/toast-stack.js +2 -0
  155. package/dist/toast.js +1 -1
  156. package/dist/{toggle-group-CI0e7hFm.js → toggle-group-B2fpFZwV.js} +5 -5
  157. package/dist/toggle-group.js +1 -1
  158. package/dist/tooltip-BvgVTCTN.js +120 -0
  159. package/dist/tooltip.js +1 -1
  160. package/dist/tree-view-j8qLqkb_.js +364 -0
  161. package/dist/tree-view.js +2 -0
  162. package/dist/types/components/announcement-bar/announcement-bar.d.ts +75 -0
  163. package/dist/types/components/announcement-bar/index.d.ts +2 -0
  164. package/dist/types/components/avatar-group/avatar-group.d.ts +43 -0
  165. package/dist/types/components/avatar-group/index.d.ts +2 -0
  166. package/dist/types/components/bottom-sheet/bottom-sheet.d.ts +60 -0
  167. package/dist/types/components/bottom-sheet/index.d.ts +2 -0
  168. package/dist/types/components/calendar/calendar.d.ts +25 -1
  169. package/dist/types/components/calendar/index.d.ts +1 -1
  170. package/dist/types/components/carousel/carousel.d.ts +73 -0
  171. package/dist/types/components/carousel/index.d.ts +2 -0
  172. package/dist/types/components/checkbox/checkbox.d.ts +1 -1
  173. package/dist/types/components/chip-group/chip-group.d.ts +54 -0
  174. package/dist/types/components/chip-group/index.d.ts +1 -0
  175. package/dist/types/components/code-block/code-block.d.ts +58 -0
  176. package/dist/types/components/code-block/index.d.ts +1 -0
  177. package/dist/types/components/code-block/shiki.d.ts +3 -0
  178. package/dist/types/components/combobox/combobox.d.ts +1 -1
  179. package/dist/types/components/command-palette/command-palette.d.ts +2 -2
  180. package/dist/types/components/comment-thread/comment-thread.d.ts +118 -0
  181. package/dist/types/components/comment-thread/index.d.ts +1 -0
  182. package/dist/types/components/comment-thread/thread-core.d.ts +96 -0
  183. package/dist/types/components/comment-thread/thread-parts.d.ts +114 -0
  184. package/dist/types/components/context-menu/context-menu.d.ts +55 -0
  185. package/dist/types/components/context-menu/index.d.ts +2 -0
  186. package/dist/types/components/copy-button/copy-button.d.ts +49 -0
  187. package/dist/types/components/copy-button/index.d.ts +2 -0
  188. package/dist/types/components/countdown/countdown.d.ts +37 -0
  189. package/dist/types/components/countdown/index.d.ts +1 -0
  190. package/dist/types/components/date-picker/date-picker.d.ts +1 -1
  191. package/dist/types/components/date-range-picker/date-range-picker.d.ts +103 -0
  192. package/dist/types/components/date-range-picker/index.d.ts +2 -0
  193. package/dist/types/components/drawer/drawer.d.ts +59 -0
  194. package/dist/types/components/drawer/index.d.ts +2 -0
  195. package/dist/types/components/elastic-slider/elastic-slider.d.ts +53 -0
  196. package/dist/types/components/elastic-slider/index.d.ts +1 -0
  197. package/dist/types/components/empty-state/empty-state.d.ts +36 -0
  198. package/dist/types/components/empty-state/index.d.ts +2 -0
  199. package/dist/types/components/expandable-card/expandable-card.d.ts +28 -0
  200. package/dist/types/components/expandable-card/index.d.ts +2 -0
  201. package/dist/types/components/expanding-search/expanding-search.d.ts +22 -0
  202. package/dist/types/components/expanding-search/index.d.ts +1 -0
  203. package/dist/types/components/field/field-anatomy.d.ts +4 -2
  204. package/dist/types/components/file-dropzone/file-dropzone.d.ts +93 -0
  205. package/dist/types/components/file-dropzone/index.d.ts +2 -0
  206. package/dist/types/components/filter-toolbar/filter-toolbar.d.ts +70 -0
  207. package/dist/types/components/filter-toolbar/index.d.ts +1 -0
  208. package/dist/types/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
  209. package/dist/types/components/hold-to-confirm/index.d.ts +2 -0
  210. package/dist/types/components/hover-card/hover-card.d.ts +97 -0
  211. package/dist/types/components/hover-card/index.d.ts +2 -0
  212. package/dist/types/components/image-compare/image-compare.d.ts +54 -0
  213. package/dist/types/components/image-compare/index.d.ts +1 -0
  214. package/dist/types/components/inline-edit/index.d.ts +2 -0
  215. package/dist/types/components/inline-edit/inline-edit.d.ts +93 -0
  216. package/dist/types/components/json-viewer/index.d.ts +2 -0
  217. package/dist/types/components/json-viewer/json-viewer.d.ts +82 -0
  218. package/dist/types/components/mention-input/index.d.ts +2 -0
  219. package/dist/types/components/mention-input/mention-input.d.ts +87 -0
  220. package/dist/types/components/menu/menu.d.ts +68 -7
  221. package/dist/types/components/metric-card/index.d.ts +1 -0
  222. package/dist/types/components/metric-card/metric-card.d.ts +37 -0
  223. package/dist/types/components/multi-select/index.d.ts +2 -0
  224. package/dist/types/components/multi-select/multi-select.d.ts +73 -0
  225. package/dist/types/components/pagination/pagination.d.ts +1 -1
  226. package/dist/types/components/password-field/index.d.ts +2 -0
  227. package/dist/types/components/password-field/password-field.d.ts +34 -0
  228. package/dist/types/components/popover/popover.d.ts +1 -1
  229. package/dist/types/components/radio-cards/index.d.ts +1 -0
  230. package/dist/types/components/radio-cards/radio-cards.d.ts +42 -0
  231. package/dist/types/components/radio-group/radio-group.d.ts +1 -1
  232. package/dist/types/components/resizable-panels/index.d.ts +2 -0
  233. package/dist/types/components/resizable-panels/resizable-panels.d.ts +42 -0
  234. package/dist/types/components/scroll-area/index.d.ts +2 -0
  235. package/dist/types/components/scroll-area/scroll-area.d.ts +34 -0
  236. package/dist/types/components/search-field/index.d.ts +1 -0
  237. package/dist/types/components/search-field/search-field.d.ts +31 -0
  238. package/dist/types/components/segmented-control/index.d.ts +2 -0
  239. package/dist/types/components/segmented-control/segmented-control.d.ts +32 -0
  240. package/dist/types/components/select/select.d.ts +1 -1
  241. package/dist/types/components/signature-pad/index.d.ts +2 -0
  242. package/dist/types/components/signature-pad/signature-pad.d.ts +104 -0
  243. package/dist/types/components/slider/index.d.ts +1 -0
  244. package/dist/types/components/slider/slider-style.d.ts +14 -0
  245. package/dist/types/components/slider/slider.d.ts +62 -0
  246. package/dist/types/components/slider/use-slider-interaction.d.ts +79 -0
  247. package/dist/types/components/sortable-data-table/index.d.ts +1 -0
  248. package/dist/types/components/sortable-data-table/sortable-data-table.d.ts +76 -0
  249. package/dist/types/components/split-button/index.d.ts +2 -0
  250. package/dist/types/components/split-button/split-button.d.ts +55 -0
  251. package/dist/types/components/stepper/index.d.ts +2 -0
  252. package/dist/types/components/stepper/stepper.d.ts +85 -0
  253. package/dist/types/components/swipe-actions/index.d.ts +2 -0
  254. package/dist/types/components/swipe-actions/swipe-actions.d.ts +44 -0
  255. package/dist/types/components/tabs/tabs.d.ts +1 -1
  256. package/dist/types/components/tag-input/index.d.ts +2 -0
  257. package/dist/types/components/tag-input/tag-input.d.ts +66 -0
  258. package/dist/types/components/text-field/text-field.d.ts +1 -1
  259. package/dist/types/components/textarea/textarea.d.ts +1 -1
  260. package/dist/types/components/theme-switch/index.d.ts +1 -0
  261. package/dist/types/components/theme-switch/theme-switch.d.ts +33 -0
  262. package/dist/types/components/time-picker/index.d.ts +2 -0
  263. package/dist/types/components/time-picker/time-picker.d.ts +48 -0
  264. package/dist/types/components/timeline/index.d.ts +2 -0
  265. package/dist/types/components/timeline/timeline.d.ts +66 -0
  266. package/dist/types/components/toast/toast.d.ts +37 -2
  267. package/dist/types/components/toast-stack/index.d.ts +2 -0
  268. package/dist/types/components/toast-stack/toast-stack.d.ts +28 -0
  269. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  270. package/dist/types/components/tree-view/index.d.ts +1 -0
  271. package/dist/types/components/tree-view/tree-view.d.ts +47 -0
  272. package/dist/types/components/usage-meter/index.d.ts +2 -0
  273. package/dist/types/components/usage-meter/usage-meter.d.ts +83 -0
  274. package/dist/types/index.d.ts +45 -0
  275. package/dist/types/overlay/overlay-layer.d.ts +53 -0
  276. package/dist/types/overlay/use-overlay-floating.d.ts +19 -2
  277. package/dist/types/styling/media.d.ts +1 -0
  278. package/dist/types/styling/theme.d.ts +12 -0
  279. package/dist/types/utils/use-controlled-state.d.ts +2 -1
  280. package/dist/usage-meter-qyQ3rYVv.js +463 -0
  281. package/dist/usage-meter.js +2 -0
  282. package/dist/use-controlled-state-DpeVQZNR.js +20 -0
  283. package/dist/use-latest-callback-cj1OOQL6.js +11 -0
  284. package/dist/use-overlay-floating-Bx2jBKAA.js +33 -0
  285. package/dist/use-slider-interaction-ChL-208h.js +234 -0
  286. package/package.json +195 -3
  287. package/dist/accordion-Bd-j04hW.js +0 -198
  288. package/dist/avatar-BahDVO9t.js +0 -132
  289. package/dist/badge-B_sLygxU.js +0 -108
  290. package/dist/calendar-C9Yad_-w.js +0 -394
  291. package/dist/card-D-aI2QHx.js +0 -158
  292. package/dist/collection-registry-BTYi6zGh.js +0 -98
  293. package/dist/combobox-DiMC2g_u.js +0 -327
  294. package/dist/command-palette-V_2pEay7.js +0 -379
  295. package/dist/date-picker-C29Uo4Tx.js +0 -250
  296. package/dist/field-anatomy-D2ToMeRa.js +0 -109
  297. package/dist/menu-CGPTNRnF.js +0 -216
  298. package/dist/pill-DO2gHzMb.js +0 -56
  299. package/dist/popover-CdRXjQqI.js +0 -113
  300. package/dist/select-BgG7WgSh.js +0 -286
  301. package/dist/switch-Dr-qjmT4.js +0 -142
  302. package/dist/tabs-CK_g1RKa.js +0 -203
  303. package/dist/toast-CjmELMZZ.js +0 -283
  304. package/dist/tooltip-CaL3rKbV.js +0 -108
  305. package/dist/use-controlled-state-CVXDa-qM.js +0 -21
  306. package/dist/use-overlay-floating-Bit-f0FU.js +0 -31
  307. package/dist/{theme-root-BbTBuLMQ.js → theme-root-Bs1U3uPA.js} +2 -2
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { r as e } from "./sx-Dx9JUKp5.js";
3
- import { a as t, i as n, n as r, o as i, r as a, t as o } from "./field-anatomy-D2ToMeRa.js";
3
+ import { t } from "./input-control-DmMuAuPS.js";
4
+ import { a as n, i as r, n as i, r as a, t as o } from "./field-anatomy-COVdNpf5.js";
4
5
  import { vars as s } from "@jfrader/tokens/vars";
5
6
  import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
6
7
  //#region src/components/text-field/text-field.tsx
@@ -21,50 +22,52 @@ var u = {
21
22
  fontSize: s.textSize.md
22
23
  })
23
24
  };
24
- function d({ ref: e, label: s, description: d, error: f, size: p = "md", onChange: m, onValueChange: h, slotProps: g, className: _, sx: v, required: y, id: b, "aria-describedby": x, "aria-invalid": S, ...C }) {
25
- let w = t({
25
+ function d({ ref: e, label: s, description: d, error: f, size: p = "md", onChange: m, onValueChange: h, slotProps: g, className: _, sx: v, required: y, id: b, dir: x, "aria-describedby": S, "aria-invalid": C, ...w }) {
26
+ let T = n({
26
27
  id: b,
27
28
  description: d,
28
29
  error: f,
29
- "aria-describedby": x,
30
- "aria-invalid": S
31
- }), T = (e) => {
30
+ "aria-describedby": S,
31
+ "aria-invalid": C
32
+ }), E = (e) => {
32
33
  m?.(e), h?.(e.currentTarget.value);
33
34
  };
34
- return /* @__PURE__ */ l(n, {
35
+ return /* @__PURE__ */ l(r, {
35
36
  "data-ui": "text-field",
37
+ dir: x,
36
38
  className: _,
37
39
  sx: v,
38
40
  part: g?.root,
39
41
  children: [
40
42
  /* @__PURE__ */ c(a, {
41
- htmlFor: w.id,
43
+ htmlFor: T.id,
42
44
  required: y,
43
45
  part: g?.label,
44
46
  children: s
45
47
  }),
46
48
  /* @__PURE__ */ c("input", {
47
- ...C,
49
+ ...w,
48
50
  ref: e,
49
- id: w.id,
51
+ id: T.id,
52
+ dir: x,
50
53
  required: y,
51
- "aria-describedby": w.describedBy,
52
- "aria-invalid": w.ariaInvalid,
53
- onChange: T,
54
+ "aria-describedby": T.describedBy,
55
+ "aria-invalid": T.ariaInvalid,
56
+ onChange: E,
54
57
  className: g?.control?.className,
55
58
  css: [
56
- i,
59
+ t,
57
60
  u[p],
58
61
  g?.control?.css
59
62
  ]
60
63
  }),
61
64
  /* @__PURE__ */ c(o, {
62
- id: w.descriptionId,
65
+ id: T.descriptionId,
63
66
  part: g?.description,
64
67
  children: d
65
68
  }),
66
- /* @__PURE__ */ c(r, {
67
- id: w.errorId,
69
+ /* @__PURE__ */ c(i, {
70
+ id: T.errorId,
68
71
  part: g?.error,
69
72
  children: f
70
73
  })
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- export { t as TextField } from "./text-field-D60ok14S.js";
2
+ export { t as TextField } from "./text-field-hU72iSVS.js";
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { r as e } from "./sx-Dx9JUKp5.js";
3
- import { a as t, i as n, n as r, o as i, r as a, t as o } from "./field-anatomy-D2ToMeRa.js";
3
+ import { t } from "./input-control-DmMuAuPS.js";
4
+ import { a as n, i as r, n as i, r as a, t as o } from "./field-anatomy-COVdNpf5.js";
4
5
  import { vars as s } from "@jfrader/tokens/vars";
5
6
  import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
6
7
  //#region src/components/textarea/textarea.tsx
@@ -27,40 +28,42 @@ var u = e({
27
28
  none: e({ resize: "none" }),
28
29
  vertical: e({ resize: "vertical" })
29
30
  }, p = e({ fieldSizing: "content" });
30
- function m({ ref: e, label: s, description: m, error: h, size: g = "md", resize: _ = "vertical", autoResize: v = !1, rows: y = 3, onChange: b, onValueChange: x, slotProps: S, className: C, sx: w, required: T, id: E, "aria-describedby": D, "aria-invalid": O, ...k }) {
31
- let A = t({
32
- id: E,
31
+ function m({ ref: e, label: s, description: m, error: h, size: g = "md", resize: _ = "vertical", autoResize: v = !1, rows: y = 3, onChange: b, onValueChange: x, slotProps: S, className: C, sx: w, dir: T, required: E, id: D, "aria-describedby": O, "aria-invalid": k, ...A }) {
32
+ let j = n({
33
+ id: D,
33
34
  description: m,
34
35
  error: h,
35
- "aria-describedby": D,
36
- "aria-invalid": O
37
- }), j = (e) => {
36
+ "aria-describedby": O,
37
+ "aria-invalid": k
38
+ }), M = (e) => {
38
39
  b?.(e), x?.(e.currentTarget.value);
39
40
  };
40
- return /* @__PURE__ */ l(n, {
41
+ return /* @__PURE__ */ l(r, {
41
42
  "data-ui": "textarea",
43
+ dir: T,
42
44
  className: C,
43
45
  sx: w,
44
46
  part: S?.root,
45
47
  children: [
46
48
  /* @__PURE__ */ c(a, {
47
- htmlFor: A.id,
48
- required: T,
49
+ htmlFor: j.id,
50
+ required: E,
49
51
  part: S?.label,
50
52
  children: s
51
53
  }),
52
54
  /* @__PURE__ */ c("textarea", {
53
- ...k,
55
+ ...A,
54
56
  ref: e,
55
- id: A.id,
57
+ id: j.id,
56
58
  rows: y,
57
- required: T,
58
- "aria-describedby": A.describedBy,
59
- "aria-invalid": A.ariaInvalid,
60
- onChange: j,
59
+ dir: T,
60
+ required: E,
61
+ "aria-describedby": j.describedBy,
62
+ "aria-invalid": j.ariaInvalid,
63
+ onChange: M,
61
64
  className: S?.control?.className,
62
65
  css: [
63
- i,
66
+ t,
64
67
  u,
65
68
  d[g],
66
69
  f[_],
@@ -69,12 +72,12 @@ function m({ ref: e, label: s, description: m, error: h, size: g = "md", resize:
69
72
  ]
70
73
  }),
71
74
  /* @__PURE__ */ c(o, {
72
- id: A.descriptionId,
75
+ id: j.descriptionId,
73
76
  part: S?.description,
74
77
  children: m
75
78
  }),
76
- /* @__PURE__ */ c(r, {
77
- id: A.errorId,
79
+ /* @__PURE__ */ c(i, {
80
+ id: j.errorId,
78
81
  part: S?.error,
79
82
  children: h
80
83
  })
package/dist/textarea.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- export { t as Textarea } from "./textarea-DyfjtP0A.js";
2
+ export { t as Textarea } from "./textarea-3k4Y0QQ3.js";
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- export { t as ThemeRoot } from "./theme-root-BbTBuLMQ.js";
2
+ export { t as ThemeRoot } from "./theme-root-Bs1U3uPA.js";
@@ -0,0 +1,166 @@
1
+ 'use client';
2
+ import { r as e, t } from "./sx-Dx9JUKp5.js";
3
+ import { n, r } from "./media-8yrN85VT.js";
4
+ import { t as i } from "./use-controlled-state-DpeVQZNR.js";
5
+ import { t as a } from "./visually-hidden-BJdvqqvn.js";
6
+ import { t as o } from "./renderable-DzcIj1Lo.js";
7
+ import { t as s } from "./switch-C1WrKrf-.js";
8
+ import { useId as c, useState as l } from "react";
9
+ import { vars as u } from "@jfrader/tokens/vars";
10
+ import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
11
+ //#region src/components/theme-switch/theme-switch.tsx
12
+ var p = e({
13
+ display: "inline-flex",
14
+ alignItems: "center",
15
+ gap: u.space[2],
16
+ maxInlineSize: "100%",
17
+ minInlineSize: 0,
18
+ "&:has(input:disabled) [data-ui=\"theme-switch-icon-frame\"]": { cursor: "not-allowed" }
19
+ }), m = e({
20
+ minBlockSize: u.space[8],
21
+ justifyContent: "center"
22
+ }), h = e({
23
+ display: "inline-grid",
24
+ flexShrink: 0,
25
+ inlineSize: u.space[5],
26
+ blockSize: u.space[5],
27
+ alignItems: "center",
28
+ justifyItems: "center",
29
+ cursor: "pointer",
30
+ "&[data-animated=\"true\"]": {
31
+ transitionProperty: "transform",
32
+ transitionDuration: u.motion.duration.slow,
33
+ transitionTimingFunction: u.motion.easeStandard
34
+ },
35
+ [r]: {
36
+ transform: "none !important",
37
+ transitionDuration: "0s !important"
38
+ },
39
+ [n]: { color: "CanvasText" }
40
+ }), g = e({
41
+ gridArea: "1 / 1",
42
+ display: "inline-flex",
43
+ inlineSize: "100%",
44
+ blockSize: "100%",
45
+ opacity: 0,
46
+ transform: "rotate(-30deg) scale(.8)",
47
+ "&[data-active=\"true\"]": {
48
+ opacity: 1,
49
+ transform: "none"
50
+ },
51
+ "&[data-animated=\"true\"]": {
52
+ transitionProperty: "opacity, transform",
53
+ transitionDuration: u.motion.duration.base,
54
+ transitionTimingFunction: u.motion.easeStandard
55
+ },
56
+ [r]: {
57
+ transform: "none",
58
+ transitionDuration: "0s !important"
59
+ }
60
+ }), _ = {
61
+ reveal: e({ "&[data-value=\"dark\"]": { transform: "scale(1.08)" } }),
62
+ eclipse: e({
63
+ "&[data-value=\"dark\"]": { transform: `translateX(calc(${u.space[1]} / -2))` },
64
+ "&:dir(rtl)[data-value=\"dark\"]": { transform: `translateX(calc(${u.space[1]} / 2))` }
65
+ }),
66
+ split: e({
67
+ "&[data-value=\"dark\"]": { transform: `translateX(calc(${u.space[1]} / 4))` },
68
+ "&:dir(rtl)[data-value=\"dark\"]": { transform: `translateX(calc(${u.space[1]} / -4))` }
69
+ }),
70
+ rise: e({ "&[data-value=\"dark\"]": { transform: `translateY(calc(${u.space[1]} / -2))` } })
71
+ }, v = /* @__PURE__ */ f("svg", {
72
+ viewBox: "0 0 24 24",
73
+ fill: "none",
74
+ stroke: "currentColor",
75
+ strokeWidth: "2",
76
+ focusable: "false",
77
+ children: [/* @__PURE__ */ d("circle", {
78
+ cx: "12",
79
+ cy: "12",
80
+ r: "4"
81
+ }), /* @__PURE__ */ d("path", { d: "M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5" })]
82
+ }), y = /* @__PURE__ */ d("svg", {
83
+ viewBox: "0 0 24 24",
84
+ fill: "none",
85
+ stroke: "currentColor",
86
+ strokeWidth: "2",
87
+ focusable: "false",
88
+ children: /* @__PURE__ */ d("path", { d: "M20 15A9 9 0 0 1 9 4a9 9 0 1 0 11 11Z" })
89
+ });
90
+ function b({ value: e, defaultValue: n = "light", onValueChange: r, label: u, iconOnly: b = !1, lightIcon: x = v, darkIcon: S = y, transition: C = "reveal", loading: w = !1, className: T, sx: E, slotProps: D, onChange: O, onClick: k, dir: A, id: j, ...M }) {
91
+ let N = c(), P = j ?? N, { iconFrame: F, lightIcon: I, darkIcon: L, ...R } = D ?? {}, [z, B] = i(e, n), [V, H] = l(!1), U = o(u) && u !== "", W = o(x) && x !== "", G = o(S) && S !== "", K = w || M["aria-disabled"] === !0 || M["aria-disabled"] === "true";
92
+ return /* @__PURE__ */ d(t, {
93
+ className: T,
94
+ styles: p,
95
+ sx: E,
96
+ children: (e) => /* @__PURE__ */ f("span", {
97
+ "data-ui": "theme-switch",
98
+ "data-value": z,
99
+ "data-transition": C,
100
+ dir: A,
101
+ className: e,
102
+ children: [(W || G) && /* @__PURE__ */ f("label", {
103
+ htmlFor: P,
104
+ "aria-hidden": "true",
105
+ "data-ui": "theme-switch-icon-frame",
106
+ "data-value": z,
107
+ "data-animated": V,
108
+ className: F?.className,
109
+ css: [
110
+ h,
111
+ _[C],
112
+ F?.css
113
+ ],
114
+ children: [W && /* @__PURE__ */ d("span", {
115
+ "data-ui": "theme-switch-light-icon",
116
+ "data-active": z === "light",
117
+ "data-animated": V,
118
+ className: I?.className,
119
+ css: [g, I?.css],
120
+ children: x
121
+ }), G && /* @__PURE__ */ d("span", {
122
+ "data-ui": "theme-switch-dark-icon",
123
+ "data-active": z === "dark",
124
+ "data-animated": V,
125
+ className: L?.className,
126
+ css: [g, L?.css],
127
+ children: S
128
+ })]
129
+ }), /* @__PURE__ */ d(s, {
130
+ ...M,
131
+ id: P,
132
+ dir: A,
133
+ checked: z === "dark",
134
+ "aria-busy": w || M["aria-busy"],
135
+ "aria-disabled": K || M["aria-disabled"],
136
+ description: M.description === "" ? void 0 : M.description,
137
+ slotProps: {
138
+ ...R,
139
+ root: {
140
+ ...R.root,
141
+ css: [m, R.root?.css]
142
+ }
143
+ },
144
+ onClick: (e) => {
145
+ k?.(e), K && e.preventDefault();
146
+ },
147
+ onChange: (e) => {
148
+ if (O?.(e), e.defaultPrevented || e.nativeEvent.defaultPrevented || K) return;
149
+ let t = e.currentTarget.checked ? "dark" : "light";
150
+ t !== z && (H(!0), B(t), r?.(t, {
151
+ transition: C,
152
+ trigger: e.currentTarget,
153
+ reducedMotion: e.currentTarget.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)").matches ?? !1
154
+ }));
155
+ },
156
+ label: U ? /* @__PURE__ */ d("span", {
157
+ css: b && a,
158
+ children: u
159
+ }) : void 0
160
+ })]
161
+ })
162
+ });
163
+ }
164
+ b.displayName = "ThemeSwitch";
165
+ //#endregion
166
+ export { b as t };
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ export { t as ThemeSwitch } from "./theme-switch-C505TtU8.js";
@@ -0,0 +1,311 @@
1
+ 'use client';
2
+ import { r as e, t } from "./sx-Dx9JUKp5.js";
3
+ import { n } from "./media-8yrN85VT.js";
4
+ import { t as r } from "./use-controlled-state-DpeVQZNR.js";
5
+ import { t as i } from "./renderable-DzcIj1Lo.js";
6
+ import { t as a } from "./icon-wrapper-stN8sD7R.js";
7
+ import { a as o } from "./field-anatomy-COVdNpf5.js";
8
+ import { t as s } from "./select-D5rhJ8gi.js";
9
+ import { useEffect as c, useId as ee, useMemo as te, useRef as l, useState as ne } from "react";
10
+ import { vars as u } from "@jfrader/tokens/vars";
11
+ import { createElement as re } from "@emotion/react";
12
+ import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
13
+ import { useMergeRefs as p } from "@floating-ui/react";
14
+ //#region src/components/time-picker/time-picker.tsx
15
+ var m = 60, ie = 1440, ae = 6e4, h = "250px", oe = "09:00", se = 8, ce = 8, g = /^([01]\d|2[0-3]):([0-5]\d)$/, le = () => typeof navigator > "u" ? void 0 : navigator.language;
16
+ function _(e) {
17
+ if (e !== void 0 && g.test(e)) return Number(e.slice(0, 2)) * m + Number(e.slice(3));
18
+ }
19
+ function ue(e) {
20
+ return `${String(Math.floor(e / m)).padStart(2, "0")}:${String(e % m).padStart(2, "0")}`;
21
+ }
22
+ function v(e, t) {
23
+ e.offsetTop < t.scrollTop ? t.scrollTop = e.offsetTop : e.offsetTop + e.offsetHeight > t.scrollTop + t.clientHeight && (t.scrollTop = e.offsetTop + e.offsetHeight - t.clientHeight);
24
+ }
25
+ var de = e({
26
+ display: "grid",
27
+ gap: u.space[1],
28
+ inlineSize: "100%"
29
+ }), fe = e({
30
+ fontSize: u.textSize.sm,
31
+ fontWeight: u.fontWeight.medium,
32
+ color: u.color.text
33
+ }), pe = e({
34
+ fontSize: u.textSize.sm,
35
+ color: u.color.textMuted
36
+ }), y = e({
37
+ fontSize: u.textSize.sm,
38
+ color: u.color.dangerText
39
+ }), me = e({
40
+ minInlineSize: u.space[12],
41
+ inlineSize: "100%",
42
+ gap: u.space[2],
43
+ "&[aria-invalid=\"true\"]": { borderColor: u.color.dangerText },
44
+ [n]: {
45
+ backgroundColor: "Canvas",
46
+ color: "CanvasText",
47
+ borderColor: "CanvasText",
48
+ "&:focus-visible": { outlineColor: "Highlight" }
49
+ }
50
+ }), he = {
51
+ sm: e({
52
+ minBlockSize: u.space[8],
53
+ paddingInline: u.space[3],
54
+ fontSize: u.textSize.sm
55
+ }),
56
+ md: e({
57
+ minBlockSize: u.space[10],
58
+ paddingInline: u.space[4],
59
+ fontSize: u.textSize.sm
60
+ }),
61
+ lg: e({
62
+ minBlockSize: u.space[12],
63
+ paddingInline: u.space[4],
64
+ fontSize: u.textSize.md
65
+ })
66
+ }, ge = e({
67
+ flex: 1,
68
+ minInlineSize: 0,
69
+ textAlign: "start",
70
+ overflow: "hidden",
71
+ textOverflow: "ellipsis",
72
+ whiteSpace: "nowrap",
73
+ "&[data-placeholder]": { color: u.color.textMuted }
74
+ }), _e = e({
75
+ inlineSize: "var(--time-picker-inline-size)",
76
+ minInlineSize: 0,
77
+ maxInlineSize: "calc(100vw - 16px)",
78
+ maxBlockSize: `min(${h}, var(--time-picker-available-height, ${h}))`,
79
+ overscrollBehavior: "contain",
80
+ [n]: {
81
+ backgroundColor: "Canvas",
82
+ color: "CanvasText",
83
+ borderColor: "CanvasText"
84
+ }
85
+ }), ve = e({
86
+ minBlockSize: u.space[8],
87
+ [n]: {
88
+ "&[data-active]": { outlineColor: "Highlight" },
89
+ "&[aria-selected=\"true\"]": { border: "1px solid Highlight" }
90
+ }
91
+ });
92
+ function b({ ref: e, value: n, defaultValue: u = oe, onValueChange: m, open: h, defaultOpen: g = !1, onOpenChange: b, minuteStep: x = 15, min: ye, max: be, locale: S, hourCycle: C, label: w, description: T, error: E, placeholder: xe, size: Se = "md", disabled: Ce = !1, readOnly: D = !1, required: O = !1, name: k, icon: A, slotProps: j, className: we, sx: Te, dir: M, id: Ee, onClick: De, onKeyDown: Oe, onBlur: ke, ...N }) {
93
+ let P = l(u).current, [F = "", I, L] = r(n, P, m), [Ae = !1, je] = r(h, g, b), R = Ce || j?.control?.disabled === !0, z = R || D, B = Ae && !z, V = l(null), H = l(null), [U, Me] = ne(null), W = l(!1), Ne = p([
94
+ V,
95
+ e,
96
+ j?.control?.ref
97
+ ]), Pe = p([
98
+ H,
99
+ Me,
100
+ j?.content?.ref
101
+ ]), G = `${ee()}-label`, K = te(() => new Intl.DateTimeFormat(S ?? le(), {
102
+ hour: "numeric",
103
+ minute: "2-digit",
104
+ timeZone: "UTC",
105
+ ...C === void 0 ? {} : { hourCycle: C }
106
+ }), [S, C]), q = _(ye), J = _(be), Y = ye !== void 0 && q === void 0 || be !== void 0 && J === void 0 || q !== void 0 && J !== void 0 && q > J, X = te(() => Y ? [] : Array.from({ length: ie / x }, (e, t) => t * x).filter((e) => e >= (q ?? 0) && e <= (J ?? 1439)).map((e) => ({
107
+ time: e,
108
+ value: ue(e),
109
+ label: K.format(/* @__PURE__ */ new Date(e * ae))
110
+ })), [
111
+ x,
112
+ q,
113
+ J,
114
+ Y,
115
+ K
116
+ ]), Z = _(F), Fe = Y || F !== "" && Z === void 0, Q = j?.control, $ = o({
117
+ id: Ee ?? Q?.id,
118
+ description: T,
119
+ error: E,
120
+ "aria-describedby": [N["aria-describedby"], Q?.["aria-describedby"]].filter(Boolean).join(" ") || void 0,
121
+ "aria-invalid": Fe ? !0 : N["aria-invalid"] ?? Q?.["aria-invalid"]
122
+ }), Ie = [
123
+ N["aria-labelledby"],
124
+ Q?.["aria-labelledby"],
125
+ i(w) && G
126
+ ].filter(Boolean).join(" ") || void 0, Le = Z === void 0 ? xe : K.format(/* @__PURE__ */ new Date(Z * ae));
127
+ return c(() => {
128
+ let e = V.current?.form;
129
+ if (!e) return;
130
+ let t = (e) => {
131
+ queueMicrotask(() => {
132
+ e.defaultPrevented || (n === void 0 ? L() : I(P));
133
+ });
134
+ };
135
+ return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
136
+ }, [
137
+ n,
138
+ I,
139
+ L,
140
+ P,
141
+ N.form,
142
+ Q?.form
143
+ ]), c(() => {
144
+ if (!B) return;
145
+ let e = V.current, t = U, n = e?.ownerDocument.defaultView;
146
+ if (!e || !t || !n) return;
147
+ let r = () => {
148
+ let r = e.getBoundingClientRect(), i = Math.max(r.top - ce - se, n.innerHeight - r.bottom - ce - se);
149
+ t.dir = n.getComputedStyle(e).direction, t.style.setProperty("--time-picker-inline-size", `${r.width}px`), t.style.setProperty("--time-picker-available-height", `${Math.max(0, Math.min(i, n.innerHeight - 16))}px`);
150
+ };
151
+ r();
152
+ let i = new ResizeObserver(r);
153
+ i.observe(e), n.addEventListener("resize", r);
154
+ let a = !1, o = () => {
155
+ let e = t.querySelector("[data-active]");
156
+ if (!e) return;
157
+ let n = e.offsetTop;
158
+ a ? v(e, t) : (t.scrollTop = n - (t.clientHeight - e.offsetHeight) / 2, a = !0);
159
+ }, s = new MutationObserver(o);
160
+ s.observe(t, {
161
+ attributes: !0,
162
+ subtree: !0,
163
+ attributeFilter: ["data-active"]
164
+ });
165
+ let c = n.requestAnimationFrame(() => {
166
+ if (!W.current && Z !== void 0 && !X.some((e) => e.value === F)) {
167
+ let e = X.find((e) => e.time >= Z) ?? X.at(-1);
168
+ (e && t.querySelector(`[data-time="${e.value}"]`))?.dispatchEvent(new n.MouseEvent("mousemove", { bubbles: !0 }));
169
+ }
170
+ o();
171
+ });
172
+ return () => {
173
+ i.disconnect(), s.disconnect(), n.removeEventListener("resize", r), n.cancelAnimationFrame(c);
174
+ };
175
+ }, [
176
+ B,
177
+ U,
178
+ Z,
179
+ X,
180
+ F,
181
+ M,
182
+ Q?.dir,
183
+ j?.root?.dir
184
+ ]), /* @__PURE__ */ d(t, {
185
+ className: [we, j?.root?.className].filter(Boolean).join(" "),
186
+ styles: [de, j?.root?.css],
187
+ sx: Te,
188
+ children: (e) => /* @__PURE__ */ f("div", {
189
+ ...j?.root,
190
+ css: void 0,
191
+ className: e,
192
+ dir: M ?? j?.root?.dir,
193
+ "data-ui": "time-picker",
194
+ children: [
195
+ i(w) && /* @__PURE__ */ f("label", {
196
+ ...j?.label,
197
+ id: G,
198
+ htmlFor: $.id,
199
+ css: [fe, j?.label?.css],
200
+ children: [w, O && /* @__PURE__ */ f("span", {
201
+ "aria-hidden": !0,
202
+ css: y,
203
+ children: [" ", "*"]
204
+ })]
205
+ }),
206
+ /* @__PURE__ */ f(s, {
207
+ value: F,
208
+ onValueChange: I,
209
+ open: B,
210
+ onOpenChange: (e) => {
211
+ !z && (X.length > 0 || !e) && je(e);
212
+ },
213
+ disabled: R,
214
+ children: [/* @__PURE__ */ f(s.Trigger, {
215
+ ...Q,
216
+ ...N,
217
+ ref: Ne,
218
+ id: $.id,
219
+ disabled: R,
220
+ dir: M ?? Q?.dir,
221
+ "aria-label": N["aria-label"] ?? Q?.["aria-label"],
222
+ "aria-labelledby": Ie,
223
+ "aria-describedby": $.describedBy,
224
+ "aria-invalid": $.ariaInvalid,
225
+ "aria-readonly": D || N["aria-readonly"] || Q?.["aria-readonly"],
226
+ "aria-required": O || N["aria-required"] || Q?.["aria-required"],
227
+ css: [
228
+ me,
229
+ he[Se],
230
+ Q?.css
231
+ ],
232
+ onClick: void 0,
233
+ onKeyDown: void 0,
234
+ onClickCapture: (e) => {
235
+ Q?.onClickCapture?.(e), N.onClickCapture?.(e), Q?.onClick?.(e), De?.(e), B || (W.current = !1), (z || X.length === 0) && e.preventDefault(), e.defaultPrevented && e.stopPropagation();
236
+ },
237
+ onKeyDownCapture: (e) => {
238
+ Q?.onKeyDownCapture?.(e), N.onKeyDownCapture?.(e), Q?.onKeyDown?.(e), Oe?.(e), B || (W.current = e.key.length === 1 && e.key !== " " && !e.ctrlKey && !e.altKey && !e.metaKey), (z || X.length === 0) && e.key !== "Tab" && e.preventDefault(), e.defaultPrevented && e.stopPropagation();
239
+ },
240
+ onBlur: (e) => {
241
+ Q?.onBlur?.(e), ke?.(e);
242
+ },
243
+ children: [
244
+ i(A) && /* @__PURE__ */ d("span", {
245
+ ...j?.icon,
246
+ "aria-hidden": !0,
247
+ css: [a, j?.icon?.css],
248
+ children: A
249
+ }),
250
+ /* @__PURE__ */ d("span", {
251
+ css: ge,
252
+ "data-placeholder": Z === void 0 || void 0,
253
+ children: Le
254
+ }),
255
+ /* @__PURE__ */ d("span", {
256
+ "aria-hidden": !0,
257
+ children: "▾"
258
+ })
259
+ ]
260
+ }), /* @__PURE__ */ d(s.Content, {
261
+ ...j?.content,
262
+ ref: Pe,
263
+ dir: M,
264
+ css: [_e, j?.content?.css],
265
+ children: X.map((e) => /* @__PURE__ */ re(s.Item, {
266
+ ...j?.option,
267
+ key: e.value,
268
+ value: e.value,
269
+ "data-time": e.value,
270
+ css: [ve, j?.option?.css],
271
+ ref: (e) => {
272
+ let t = j?.option?.ref, n = typeof t == "function" ? t(e) : void 0;
273
+ if (t && typeof t != "function" && (t.current = e), !e) return n;
274
+ let r = e.scrollIntoView;
275
+ return e.scrollIntoView = () => {
276
+ let t = H.current;
277
+ t && v(e, t);
278
+ }, () => {
279
+ e.scrollIntoView = r, typeof n == "function" ? n() : typeof t == "function" ? t(null) : t && (t.current = null);
280
+ };
281
+ }
282
+ }, e.label))
283
+ })]
284
+ }),
285
+ k !== void 0 && /* @__PURE__ */ d("input", {
286
+ type: "hidden",
287
+ name: k,
288
+ value: F,
289
+ disabled: R,
290
+ form: N.form ?? Q?.form
291
+ }),
292
+ i(T) && /* @__PURE__ */ d("span", {
293
+ ...j?.description,
294
+ id: $.descriptionId,
295
+ css: [pe, j?.description?.css],
296
+ children: T
297
+ }),
298
+ i(E) && /* @__PURE__ */ d("span", {
299
+ ...j?.error,
300
+ id: $.errorId,
301
+ role: "alert",
302
+ css: [y, j?.error?.css],
303
+ children: E
304
+ })
305
+ ]
306
+ })
307
+ });
308
+ }
309
+ b.displayName = "TimePicker";
310
+ //#endregion
311
+ export { b as t };
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ export { t as TimePicker } from "./time-picker-CPlhW0tr.js";