@jfrader/ui 0.5.0 → 0.6.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 (314) hide show
  1. package/README.md +18 -1
  2. package/dist/accordion-D6myONB9.js +206 -0
  3. package/dist/accordion.js +1 -1
  4. package/dist/activity-rings-Uszvwqdl.js +528 -0
  5. package/dist/activity-rings.js +2 -0
  6. package/dist/{alert-DS_einpy.js → alert-Bhj-qSMs.js} +15 -14
  7. package/dist/alert.js +1 -1
  8. package/dist/{announcement-bar-B58xempt.js → announcement-bar-B5J33QUh.js} +132 -131
  9. package/dist/announcement-bar.js +1 -1
  10. package/dist/avatar-B6idYC59.js +146 -0
  11. package/dist/{avatar-group-DOQQuV51.js → avatar-group-DvP8mAE-.js} +10 -9
  12. package/dist/avatar-group.js +1 -1
  13. package/dist/avatar.js +1 -1
  14. package/dist/badge-CfhTcA-Z.js +120 -0
  15. package/dist/badge.js +1 -1
  16. package/dist/billing-toggle-CgC7yxxo.js +349 -0
  17. package/dist/billing-toggle.js +2 -0
  18. package/dist/{bottom-sheet-DPJBFkie.js → bottom-sheet-BFQKO0Wo.js} +287 -268
  19. package/dist/bottom-sheet.js +1 -1
  20. package/dist/{breadcrumbs-Cfw_hgt2.js → breadcrumbs-CG3akw-b.js} +28 -20
  21. package/dist/breadcrumbs.js +1 -1
  22. package/dist/{button-C92uYFJW.js → button-C6OV0C7J.js} +21 -20
  23. package/dist/button-group-B9wP2ddS.js +611 -0
  24. package/dist/button-group.js +2 -0
  25. package/dist/button.js +1 -1
  26. package/dist/calendar-Bg6D2sul.js +377 -0
  27. package/dist/calendar.js +1 -1
  28. package/dist/calendar.utils-azmB4Ej7.js +79 -0
  29. package/dist/card-C008OQCp.js +164 -0
  30. package/dist/card.js +1 -1
  31. package/dist/carousel-lTH4Foke.js +475 -0
  32. package/dist/carousel.js +1 -1
  33. package/dist/chat-thread-DVa17BRC.js +864 -0
  34. package/dist/chat-thread.js +2 -0
  35. package/dist/{checkbox-cFquiSdy.js → checkbox-CClE61GV.js} +23 -21
  36. package/dist/checkbox.js +1 -1
  37. package/dist/{chip-group-DTQd_M-G.js → chip-group-BZUX9KPF.js} +19 -17
  38. package/dist/chip-group.js +1 -1
  39. package/dist/{choice-control-5kJkLXgv.js → choice-control-BsWOZPc9.js} +1 -1
  40. package/dist/{code-block-ahnRi-g8.js → code-block-CYP89_6h.js} +99 -97
  41. package/dist/code-block.js +1 -1
  42. package/dist/{combobox-Bhzvu9ma.js → combobox-D2Oc-co7.js} +131 -125
  43. package/dist/combobox.js +1 -1
  44. package/dist/command-palette-BrT1n9bb.js +394 -0
  45. package/dist/command-palette.js +1 -1
  46. package/dist/comment-thread-BnUHxviq.js +772 -0
  47. package/dist/comment-thread.js +2 -0
  48. package/dist/{container-BOaSptJa.js → container-BxtwJSSD.js} +3 -2
  49. package/dist/container.js +1 -1
  50. package/dist/context-menu-I4i0LRpm.js +371 -0
  51. package/dist/context-menu.js +2 -0
  52. package/dist/{copy-button-ByiA6D3R.js → copy-button-C0p_qrgf.js} +4 -4
  53. package/dist/copy-button.js +1 -1
  54. package/dist/{countdown-Dp_TD1VP.js → countdown-EcpV6rXy.js} +18 -17
  55. package/dist/countdown.js +1 -1
  56. package/dist/css-BYJhdGh-.js +2 -0
  57. package/dist/{date-picker-5zKSSuFF.js → date-picker-D-bn-iHs.js} +15 -14
  58. package/dist/date-picker.js +1 -1
  59. package/dist/date-range-picker-rXcZsI1Y.js +589 -0
  60. package/dist/date-range-picker.js +1 -1
  61. package/dist/dialog-CR1xdkrC.js +222 -0
  62. package/dist/dialog.js +1 -1
  63. package/dist/{divider-DYoJf0I_.js → divider-zOJzkcHh.js} +23 -21
  64. package/dist/divider.js +1 -1
  65. package/dist/drawer-CceaEhCr.js +590 -0
  66. package/dist/drawer.js +1 -1
  67. package/dist/{empty-state-CDgrjPPf.js → empty-state-DO0ApylK.js} +2 -1
  68. package/dist/empty-state.js +1 -1
  69. package/dist/{expandable-card-C-qJcZ14.js → expandable-card-W97vjix9.js} +59 -51
  70. package/dist/expandable-card.js +1 -1
  71. package/dist/expanding-search-Bb2_YfNx.js +239 -0
  72. package/dist/expanding-search.js +2 -0
  73. package/dist/{field-anatomy-COVdNpf5.js → field-anatomy-BDIP42MI.js} +2 -1
  74. package/dist/file-dropzone-Bi5ikRIz.js +458 -0
  75. package/dist/file-dropzone.js +1 -1
  76. package/dist/{filter-toolbar-D5KEKTSe.js → filter-toolbar-QRnC4S_H.js} +36 -33
  77. package/dist/filter-toolbar.js +1 -1
  78. package/dist/{flex-Dh-_J5-U.js → flex-CS7eMRcK.js} +2 -2
  79. package/dist/flex.js +1 -1
  80. package/dist/{hold-to-confirm-DjB2EVjM.js → hold-to-confirm-CVBA0wNT.js} +18 -17
  81. package/dist/hold-to-confirm.js +1 -1
  82. package/dist/{hover-card-B-nrCIy2.js → hover-card-DN1EAlQA.js} +26 -25
  83. package/dist/hover-card.js +1 -1
  84. package/dist/{icon-wrapper-stN8sD7R.js → icon-wrapper-C-zMD0uL.js} +1 -1
  85. package/dist/{image-compare-ciuhPtQZ.js → image-compare-Ln2UUqTU.js} +20 -19
  86. package/dist/image-compare.js +1 -1
  87. package/dist/index.js +98 -78
  88. package/dist/{inline-edit-C0eeml65.js → inline-edit-D-pR2RPC.js} +22 -21
  89. package/dist/inline-edit.js +1 -1
  90. package/dist/{input-control-DmMuAuPS.js → input-control-B6HVBgwl.js} +1 -1
  91. package/dist/{json-viewer-BcySQfjZ.js → json-viewer-Dro3WrjS.js} +34 -29
  92. package/dist/json-viewer.js +1 -1
  93. package/dist/{kbd-C3ACoMoE.js → kbd-BI_9qzYr.js} +2 -1
  94. package/dist/kbd.js +1 -1
  95. package/dist/keycap-keyboard-Cdx-OAS1.js +311 -0
  96. package/dist/keycap-keyboard.js +2 -0
  97. package/dist/{layout-style-Cbd1Vilw.js → layout-style-BE0gSqrH.js} +1 -1
  98. package/dist/lightbox-gallery-D0YaSTut.js +777 -0
  99. package/dist/lightbox-gallery.js +2 -0
  100. package/dist/link-unfurl-CReyIjyy.js +695 -0
  101. package/dist/link-unfurl.js +2 -0
  102. package/dist/{listbox-style-WX-RASp1.js → listbox-style-DNOxAulu.js} +1 -1
  103. package/dist/{loading-ring-B8-30Dl1.js → loading-ring-D0lGrK8z.js} +1 -1
  104. package/dist/locale-switcher-CZF7XNYG.js +295 -0
  105. package/dist/locale-switcher.js +2 -0
  106. package/dist/mention-input-BjjAbJCf.js +600 -0
  107. package/dist/mention-input.js +1 -1
  108. package/dist/menu-CVzpsyXn.js +312 -0
  109. package/dist/menu.js +1 -1
  110. package/dist/{metric-card-Bh9K4fZs.js → metric-card-BnFssTXj.js} +12 -11
  111. package/dist/metric-card.js +1 -1
  112. package/dist/{multi-select-Pce_IYnz.js → multi-select-B3puEVo0.js} +78 -69
  113. package/dist/multi-select.js +1 -1
  114. package/dist/{navigation-sP5fiuQS.js → navigation-C_JD43gA.js} +56 -49
  115. package/dist/navigation.js +1 -1
  116. package/dist/next.js +65 -0
  117. package/dist/now-playing-DjVm1Phm.js +439 -0
  118. package/dist/now-playing.js +2 -0
  119. package/dist/{overlay-layer-SeUyyEPD.js → overlay-layer-qEbpEtb8.js} +16 -2
  120. package/dist/overlay-motion-Cr77ihn2.js +90 -0
  121. package/dist/{overlay-portal-C4JZFq2M.js → overlay-portal-C9igMHnC.js} +1 -1
  122. package/dist/{pagination-DmXZ8E85.js → pagination-Dkh4bJQh.js} +31 -29
  123. package/dist/pagination.js +1 -1
  124. package/dist/{password-field-03pWRkuY.js → password-field-Da58GP1g.js} +4 -4
  125. package/dist/password-field.js +1 -1
  126. package/dist/photo-grid-Dtl17D74.js +830 -0
  127. package/dist/photo-grid.js +2 -0
  128. package/dist/pill-Dd7pog19.js +59 -0
  129. package/dist/pill.js +1 -1
  130. package/dist/popover-CUMOcMtj.js +126 -0
  131. package/dist/popover.js +1 -1
  132. package/dist/presence-spring-4zwtUDQN.js +12 -0
  133. package/dist/{progress-CbOWBUdA.js → progress-Bcuz3Ob4.js} +12 -11
  134. package/dist/progress.js +1 -1
  135. package/dist/{radio-cards-D2QZENI_.js → radio-cards-FkAhESb5.js} +65 -63
  136. package/dist/radio-cards.js +1 -1
  137. package/dist/{radio-group-E6mMRgo7.js → radio-group-DItMf2YM.js} +32 -28
  138. package/dist/radio-group.js +1 -1
  139. package/dist/{resizable-panels-BhjUVXZZ.js → resizable-panels-61h9hA3B.js} +16 -14
  140. package/dist/resizable-panels.js +1 -1
  141. package/dist/{scroll-area-CcZyiSOQ.js → scroll-area-B8KkCPOM.js} +16 -15
  142. package/dist/scroll-area.js +1 -1
  143. package/dist/{search-field-IxF0IJXm.js → search-field-CbsajaZb.js} +94 -93
  144. package/dist/search-field.js +1 -1
  145. package/dist/{segmented-control-yO1K1nbi.js → segmented-control-DCh-4ca-.js} +28 -26
  146. package/dist/segmented-control.js +1 -1
  147. package/dist/{select-n_H52W1Z.js → select-SrcQqZjo.js} +29 -27
  148. package/dist/select.js +1 -1
  149. package/dist/sheet-stack-DYX1SGSB.js +820 -0
  150. package/dist/sheet-stack.js +2 -0
  151. package/dist/shortcut-recorder-VgTQdjjn.js +688 -0
  152. package/dist/shortcut-recorder.js +2 -0
  153. package/dist/signature-pad-khL2yhQI.js +646 -0
  154. package/dist/signature-pad.js +1 -1
  155. package/dist/{skeleton-XQQDkCHd.js → skeleton-LJsQsveI.js} +9 -8
  156. package/dist/skeleton.js +1 -1
  157. package/dist/slider-DjAnGmlC.js +535 -0
  158. package/dist/slider.js +1 -1
  159. package/dist/{sortable-data-table-tirqlLY2.js → sortable-data-table-Bpitup_d.js} +29 -28
  160. package/dist/sortable-data-table.js +1 -1
  161. package/dist/{spinner-DtxvDPdM.js → spinner-CvzajSg9.js} +11 -10
  162. package/dist/spinner.js +1 -1
  163. package/dist/{split-button-Cb3EHs64.js → split-button-Bu41f2AY.js} +88 -93
  164. package/dist/split-button.js +1 -1
  165. package/dist/{stack-DC3IbtWk.js → stack-Bac4sJeI.js} +2 -2
  166. package/dist/stack.js +1 -1
  167. package/dist/{stepper-CruHbXxX.js → stepper-C8Ncavbr.js} +22 -21
  168. package/dist/stepper.js +1 -1
  169. package/dist/stretch-refresh-OrnTEj7P.js +349 -0
  170. package/dist/stretch-refresh.js +2 -0
  171. package/dist/{surface-DZ4d-2aL.js → surface-C69kwSuk.js} +13 -3
  172. package/dist/{swipe-actions-DiZC57-3.js → swipe-actions-1H5UOZKE.js} +29 -26
  173. package/dist/swipe-actions.js +1 -1
  174. package/dist/switch-79-hkQqg.js +146 -0
  175. package/dist/switch.js +1 -1
  176. package/dist/sx-BJXJ2xJK.js +23 -0
  177. package/dist/tabs-Bb5-noYE.js +211 -0
  178. package/dist/tabs.js +1 -1
  179. package/dist/{tag-input-DSRCyrX2.js → tag-input-BQaueKEb.js} +5 -5
  180. package/dist/tag-input.js +1 -1
  181. package/dist/{text-field-C8TWG-tY.js → text-field-D0VP7b4P.js} +18 -16
  182. package/dist/text-field.js +1 -1
  183. package/dist/{textarea-BrW0XcG_.js → textarea-D1YwEPmn.js} +21 -19
  184. package/dist/textarea.js +1 -1
  185. package/dist/theme-provider-BvcY-iJu.js +20 -0
  186. package/dist/theme-root-BrYVcTzt.js +163 -0
  187. package/dist/theme-root.js +1 -1
  188. package/dist/theme-scope-DGWy4H0C.js +62 -0
  189. package/dist/theme-switch-CP42mVDb.js +167 -0
  190. package/dist/theme-switch.js +2 -0
  191. package/dist/thread-parts-DfZNz70v.js +683 -0
  192. package/dist/{time-picker-Db8D49cP.js → time-picker-Tnd-JBLC.js} +39 -32
  193. package/dist/time-picker.js +1 -1
  194. package/dist/{timeline-k3nURuCP.js → timeline-DaldDMX7.js} +28 -21
  195. package/dist/timeline.js +1 -1
  196. package/dist/{toast-BHxI32ZA.js → toast-CSAbl5yK.js} +107 -87
  197. package/dist/{toast-stack-DqrAzdg5.js → toast-stack-BCR4Cu7V.js} +25 -10
  198. package/dist/toast-stack.js +1 -1
  199. package/dist/toast.js +1 -1
  200. package/dist/{toggle-group-fcjzpifI.js → toggle-group-C7ye1v4s.js} +24 -23
  201. package/dist/toggle-group.js +1 -1
  202. package/dist/tooltip-IajLwdUb.js +129 -0
  203. package/dist/tooltip.js +1 -1
  204. package/dist/{tree-view-C2liIxqy.js → tree-view-CoW4oJIZ.js} +18 -13
  205. package/dist/tree-view.js +1 -1
  206. package/dist/{trigger-style-B1KVC8O1.js → trigger-style-CtOrdPk4.js} +1 -1
  207. package/dist/types/components/activity-rings/activity-rings.d.ts +115 -0
  208. package/dist/types/components/activity-rings/index.d.ts +2 -0
  209. package/dist/types/components/billing-toggle/billing-toggle.d.ts +57 -0
  210. package/dist/types/components/billing-toggle/index.d.ts +2 -0
  211. package/dist/types/components/button-group/button-group.d.ts +72 -0
  212. package/dist/types/components/button-group/index.d.ts +2 -0
  213. package/dist/types/components/card/card.d.ts +4 -1
  214. package/dist/types/components/chat-thread/chat-thread.d.ts +130 -0
  215. package/dist/types/components/chat-thread/index.d.ts +2 -0
  216. package/dist/types/components/checkbox/checkbox.d.ts +1 -1
  217. package/dist/types/components/command-palette/command-palette.d.ts +1 -1
  218. package/dist/types/components/comment-thread/comment-thread.d.ts +118 -0
  219. package/dist/types/components/comment-thread/index.d.ts +1 -0
  220. package/dist/types/components/context-menu/context-menu.d.ts +55 -0
  221. package/dist/types/components/context-menu/index.d.ts +2 -0
  222. package/dist/types/components/date-range-picker/date-range-picker.d.ts +1 -1
  223. package/dist/types/components/drawer/drawer.d.ts +7 -1
  224. package/dist/types/components/expanding-search/expanding-search.d.ts +22 -0
  225. package/dist/types/components/expanding-search/index.d.ts +1 -0
  226. package/dist/types/components/keycap-keyboard/index.d.ts +2 -0
  227. package/dist/types/components/keycap-keyboard/keycap-keyboard.d.ts +32 -0
  228. package/dist/types/components/lightbox-gallery/index.d.ts +2 -0
  229. package/dist/types/components/lightbox-gallery/lightbox-gallery.d.ts +74 -0
  230. package/dist/types/components/link-unfurl/index.d.ts +2 -0
  231. package/dist/types/components/link-unfurl/link-unfurl.d.ts +94 -0
  232. package/dist/types/components/locale-switcher/index.d.ts +2 -0
  233. package/dist/types/components/locale-switcher/locale-switcher.d.ts +58 -0
  234. package/dist/types/components/menu/menu.d.ts +74 -7
  235. package/dist/types/components/next/emotion-registry.d.ts +16 -0
  236. package/dist/types/components/next/index.d.ts +2 -0
  237. package/dist/types/components/next/registry.d.ts +21 -0
  238. package/dist/types/components/now-playing/index.d.ts +1 -0
  239. package/dist/types/components/now-playing/now-playing.d.ts +88 -0
  240. package/dist/types/components/pagination/pagination.d.ts +1 -1
  241. package/dist/types/components/photo-grid/index.d.ts +2 -0
  242. package/dist/types/components/photo-grid/photo-grid.d.ts +82 -0
  243. package/dist/types/components/radio-cards/radio-cards.d.ts +1 -1
  244. package/dist/types/components/radio-group/radio-group.d.ts +1 -1
  245. package/dist/types/components/sheet-stack/index.d.ts +2 -0
  246. package/dist/types/components/sheet-stack/sheet-stack.d.ts +78 -0
  247. package/dist/types/components/shortcut-recorder/index.d.ts +2 -0
  248. package/dist/types/components/shortcut-recorder/shortcut-recorder.d.ts +117 -0
  249. package/dist/types/components/slider/slider-style.d.ts +14 -0
  250. package/dist/types/components/slider/slider.d.ts +2 -10
  251. package/dist/types/components/slider/use-slider-interaction.d.ts +79 -0
  252. package/dist/types/components/split-button/split-button.d.ts +2 -2
  253. package/dist/types/components/stretch-refresh/index.d.ts +1 -0
  254. package/dist/types/components/stretch-refresh/stretch-refresh.d.ts +49 -0
  255. package/dist/types/components/tabs/tabs.d.ts +1 -1
  256. package/dist/types/components/text-field/text-field.d.ts +1 -1
  257. package/dist/types/components/textarea/textarea.d.ts +1 -1
  258. package/dist/types/components/theme-root/index.d.ts +1 -0
  259. package/dist/types/components/theme-root/theme-root.d.ts +9 -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/thread/thread-core.d.ts +96 -0
  263. package/dist/types/components/thread/thread-parts.d.ts +119 -0
  264. package/dist/types/components/tooltip/tooltip.d.ts +9 -2
  265. package/dist/types/components/usage-meter/usage-meter.d.ts +2 -12
  266. package/dist/types/components/usage-meter/usage-model.d.ts +30 -0
  267. package/dist/types/components/user-menu/index.d.ts +2 -0
  268. package/dist/types/components/user-menu/user-menu.d.ts +119 -0
  269. package/dist/types/index.d.ts +18 -0
  270. package/dist/types/overlay/exit-motion.d.ts +24 -0
  271. package/dist/types/overlay/overlay-layer.d.ts +20 -0
  272. package/dist/types/overlay/presence-spring.d.ts +12 -0
  273. package/dist/types/overlay/use-native-dialog.d.ts +10 -1
  274. package/dist/types/overlay/use-overlay-floating.d.ts +9 -2
  275. package/dist/types/styling/create-theme.d.ts +24 -0
  276. package/dist/types/styling/css.d.ts +1 -1
  277. package/dist/types/styling/overlay-motion.d.ts +95 -0
  278. package/dist/types/styling/surface.d.ts +7 -0
  279. package/dist/types/styling/theme-scope.d.ts +29 -3
  280. package/dist/types/styling/theme.d.ts +5 -0
  281. package/dist/{usage-meter-qyQ3rYVv.js → usage-meter-CYvlB6l3.js} +165 -175
  282. package/dist/usage-meter.js +1 -1
  283. package/dist/usage-model-C0fS47w4.js +32 -0
  284. package/dist/use-native-dialog-FB0p7lkg.js +93 -0
  285. package/dist/{use-overlay-floating-DvJifLpF.js → use-overlay-floating-Bx2jBKAA.js} +8 -6
  286. package/dist/use-scroll-lock-40gXwwAy.js +23 -0
  287. package/dist/user-menu-DzELTg1x.js +757 -0
  288. package/dist/user-menu.js +2 -0
  289. package/dist/{visually-hidden-BJdvqqvn.js → visually-hidden-DgVO3NaB.js} +1 -1
  290. package/package.json +88 -2
  291. package/dist/accordion-xCI_u0BV.js +0 -198
  292. package/dist/avatar-BahDVO9t.js +0 -132
  293. package/dist/badge-B_sLygxU.js +0 -108
  294. package/dist/calendar-B3Svu0X2.js +0 -447
  295. package/dist/card-D-aI2QHx.js +0 -158
  296. package/dist/carousel-IvPqN-oM.js +0 -472
  297. package/dist/command-palette-BQ5LleGb.js +0 -384
  298. package/dist/date-range-picker-B5uFWsm-.js +0 -562
  299. package/dist/dialog-ciiv9H2b.js +0 -218
  300. package/dist/drawer-DsASTiP-.js +0 -553
  301. package/dist/file-dropzone-pR4v7owg.js +0 -457
  302. package/dist/mention-input-BcQKX2EJ.js +0 -599
  303. package/dist/menu-xwOOUtWP.js +0 -275
  304. package/dist/pill-DO2gHzMb.js +0 -56
  305. package/dist/popover-QHcEvf9c.js +0 -119
  306. package/dist/signature-pad-q2SAsrdD.js +0 -640
  307. package/dist/slider-t0B5cecO.js +0 -477
  308. package/dist/switch-qwv8jQnR.js +0 -142
  309. package/dist/sx-Dx9JUKp5.js +0 -23
  310. package/dist/tabs-CAVJndX1.js +0 -203
  311. package/dist/theme-root-BbTBuLMQ.js +0 -46
  312. package/dist/theme-scope-t7nAKc2c.js +0 -27
  313. package/dist/tooltip-CkeiW9C1.js +0 -113
  314. package/dist/use-native-dialog-DWpIUVO1.js +0 -84
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ export { t as CommentThread } from "./comment-thread-BnUHxviq.js";
@@ -1,6 +1,7 @@
1
1
  'use client';
2
- import { r as e, t } from "./sx-Dx9JUKp5.js";
3
- import { n } from "./layout-style-Cbd1Vilw.js";
2
+ import { i as e } from "./css-BYJhdGh-.js";
3
+ import { t } from "./sx-BJXJ2xJK.js";
4
+ import { n } from "./layout-style-BE0gSqrH.js";
4
5
  import { jsx as r } from "@emotion/react/jsx-runtime";
5
6
  //#region src/components/container/container.tsx
6
7
  var i = {
package/dist/container.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- export { t as Container } from "./container-BOaSptJa.js";
2
+ export { t as Container } from "./container-BxtwJSSD.js";
@@ -0,0 +1,371 @@
1
+ 'use client';
2
+ import { a as e, i as t } from "./css-BYJhdGh-.js";
3
+ import { n, r } from "./media-8yrN85VT.js";
4
+ import { t as i } from "./sx-BJXJ2xJK.js";
5
+ import { t as a } from "./use-latest-callback-cj1OOQL6.js";
6
+ import { t as o } from "./use-controlled-state-DpeVQZNR.js";
7
+ import { t as s } from "./renderable-DzcIj1Lo.js";
8
+ import { t as c } from "./icon-wrapper-C-zMD0uL.js";
9
+ import { t as l } from "./trigger-style-CtOrdPk4.js";
10
+ import { s as u } from "./listbox-style-DNOxAulu.js";
11
+ import { a as d, c as f, d as p, f as m, i as h, m as g, o as _, r as v, u as y } from "./menu-CVzpsyXn.js";
12
+ import { createContext as b, useCallback as x, useContext as S, useEffect as C, useId as w, useLayoutEffect as T, useMemo as ee, useRef as E, useState as D } from "react";
13
+ import { vars as O } from "@jfrader/tokens/vars";
14
+ import { Fragment as te, jsx as k, jsxs as A } from "@emotion/react/jsx-runtime";
15
+ import { useMergeRefs as j } from "@floating-ui/react";
16
+ import { isEventTargetWithin as ne } from "@floating-ui/react/utils";
17
+ //#region src/components/context-menu/context-menu.tsx
18
+ var M = "ContextMenu", N = "13rem", P = "300px", re = 4, F = "--context-menu-origin", I = "--context-menu-available-inline", L = "--context-menu-available-block", R = b(null);
19
+ function z(e) {
20
+ let t = S(R);
21
+ if (!t) throw Error(`${M}.${e} must be rendered inside <${M}>.`);
22
+ return t;
23
+ }
24
+ var B = (e) => {
25
+ let { x: t, y: n, width: r, height: i } = e.getBoundingClientRect();
26
+ return {
27
+ x: t,
28
+ y: n,
29
+ width: r,
30
+ height: i
31
+ };
32
+ }, V = (e) => getComputedStyle(e).direction === "rtl", H = (e) => {
33
+ let t = B(e);
34
+ return {
35
+ ...t,
36
+ x: V(e) ? t.x + t.width : t.x,
37
+ width: 0
38
+ };
39
+ }, U = (e, t) => ({
40
+ x: e,
41
+ y: t,
42
+ width: 0,
43
+ height: 0
44
+ }), ie = (e) => e.nativeEvent.pointerType === "" || e.clientX === 0 && e.clientY === 0, ae = (e) => e.key === "ContextMenu" || e.key === "F10" && e.shiftKey, oe = (e) => e.key === "Enter" || e.key === " ", se = (e) => Object.fromEntries(Object.entries(e).filter(([e]) => e.startsWith("aria-"))), ce = e({
45
+ from: {
46
+ opacity: 0,
47
+ scale: "0.98"
48
+ },
49
+ to: {
50
+ opacity: 1,
51
+ scale: "1"
52
+ }
53
+ }), le = t({
54
+ label: "context-menu-target",
55
+ "&:focus-visible": {
56
+ outline: `2px solid ${O.color.focusRing}`,
57
+ outlineOffset: "2px"
58
+ }
59
+ }), ue = t({
60
+ label: "context-menu",
61
+ borderColor: O.color.borderControl,
62
+ inlineSize: N,
63
+ minInlineSize: 0,
64
+ maxInlineSize: `var(${I}, ${N})`,
65
+ maxBlockSize: `min(${P}, var(${L}, ${P}))`,
66
+ overflowY: "auto",
67
+ overscrollBehavior: "contain",
68
+ fontSize: O.textSize.sm,
69
+ transformOrigin: `var(${F}, top left)`,
70
+ animation: `${ce} ${O.motion.duration.base} ${O.motion.easeStandard}`,
71
+ "&:focus-visible": {
72
+ outline: `2px solid ${O.color.focusRing}`,
73
+ outlineOffset: "2px"
74
+ },
75
+ [r]: { animation: "none" },
76
+ [n]: { borderColor: "ButtonText" }
77
+ }), W = t({
78
+ gap: O.space[2],
79
+ lineHeight: O.lineHeight.base,
80
+ [n]: { "&[data-active]": {
81
+ outline: "2px solid Highlight",
82
+ outlineOffset: "-2px"
83
+ } }
84
+ }), de = t({
85
+ flex: 1,
86
+ minInlineSize: 0,
87
+ overflowWrap: "anywhere"
88
+ }), fe = t({
89
+ boxSizing: "border-box",
90
+ display: "inline-flex",
91
+ alignItems: "center",
92
+ justifyContent: "center",
93
+ flexShrink: 0,
94
+ inlineSize: "1rem",
95
+ blockSize: "1rem",
96
+ border: `1px solid ${O.color.borderControl}`,
97
+ borderRadius: O.radius.sm,
98
+ "& svg": {
99
+ inlineSize: "0.75rem",
100
+ blockSize: "0.75rem",
101
+ visibility: "hidden"
102
+ },
103
+ "&[data-state=\"checked\"] svg": { visibility: "visible" },
104
+ [n]: { borderColor: "ButtonText" }
105
+ }), pe = /* @__PURE__ */ k("svg", {
106
+ viewBox: "0 0 16 16",
107
+ fill: "none",
108
+ stroke: "currentColor",
109
+ strokeWidth: "2",
110
+ strokeLinecap: "round",
111
+ strokeLinejoin: "round",
112
+ children: /* @__PURE__ */ k("path", { d: "M3.5 8.5l3 3 6-7" })
113
+ });
114
+ function me({ available: e, children: t }) {
115
+ let { open: n, refs: r, requestOpen: i, requestClose: o } = g(M, "Root"), s = E(null), c = E(null), l = E(!1), [u, d] = D(null), [f, p] = D(), [m, h] = D(), _ = a(() => o(!1)), v = x((e, t) => {
116
+ r.setReference(e), r.setPositionReference({
117
+ getBoundingClientRect: () => DOMRect.fromRect(t),
118
+ contextElement: e
119
+ }), d(t), l.current = !0, queueMicrotask(() => l.current = !1);
120
+ }, [r]);
121
+ T(() => {
122
+ if (!n) return;
123
+ let e = s.current;
124
+ e && (p(V(e) ? "rtl" : "ltr"), l.current || v(e, H(e)));
125
+ }, [n, v]), C(() => {
126
+ let e = r.domReference.current;
127
+ if (!n || !e) return;
128
+ let t = e.ownerDocument, i = t.defaultView, a = !1, o = (e) => {
129
+ a || e.type === "scroll" && ne(e, r.floating.current) || (a = !0, _());
130
+ };
131
+ return t.addEventListener("scroll", o, {
132
+ capture: !0,
133
+ passive: !0
134
+ }), i?.addEventListener("resize", o), () => {
135
+ t.removeEventListener("scroll", o, { capture: !0 }), i?.removeEventListener("resize", o);
136
+ };
137
+ }, [
138
+ n,
139
+ r,
140
+ _
141
+ ]);
142
+ let y = ee(() => ({
143
+ targetRef: s,
144
+ triggerRef: c,
145
+ anchorTo: v,
146
+ invoke: (e, t) => {
147
+ v(e, t), i();
148
+ },
149
+ anchor: u,
150
+ available: e,
151
+ direction: f,
152
+ targetLabel: m,
153
+ setTargetLabel: h
154
+ }), [
155
+ v,
156
+ i,
157
+ u,
158
+ e,
159
+ f,
160
+ m
161
+ ]);
162
+ return /* @__PURE__ */ k(R.Provider, {
163
+ value: y,
164
+ children: t
165
+ });
166
+ }
167
+ function G({ open: e, defaultOpen: t = !1, onOpenChange: n, children: r }) {
168
+ let [i, a] = D();
169
+ return /* @__PURE__ */ k(h, {
170
+ open: e,
171
+ defaultOpen: t,
172
+ onOpenChange: n,
173
+ placement: "bottom-start",
174
+ positioning: {
175
+ strategy: "fixed",
176
+ gap: re,
177
+ transform: !1,
178
+ onAvailableSize: (e) => a((t) => t?.width === e.width && t.height === e.height ? t : e)
179
+ },
180
+ children: /* @__PURE__ */ k(me, {
181
+ available: i,
182
+ children: r
183
+ })
184
+ });
185
+ }
186
+ G.displayName = "ContextMenu";
187
+ function K({ ref: e, id: t, openOnClick: n = !1, disabled: r = !1, "aria-labelledby": a, className: o, sx: s, ...c }) {
188
+ let l = z("Target"), { open: u, refs: d, requestClose: p, getReferenceProps: m } = g(M, "Target"), h = w(), _ = t ?? h, v = j([l.targetRef, e]), { setTargetLabel: y, triggerRef: b } = l;
189
+ T(() => (y(a ?? _), () => y(void 0)), [
190
+ a,
191
+ _,
192
+ y
193
+ ]);
194
+ let x = (e) => b.current?.contains(e.target) ?? !1, S = r ? {} : {
195
+ ...se(m()),
196
+ onContextMenu: (e) => {
197
+ e.preventDefault();
198
+ let t = e.currentTarget;
199
+ l.invoke(t, ie(e) ? H(t) : U(e.clientX, e.clientY));
200
+ },
201
+ onKeyDown: (e) => {
202
+ let t = n && oe(e) && e.target === e.currentTarget;
203
+ (ae(e) || t) && (e.preventDefault(), l.invoke(e.currentTarget, H(e.currentTarget)));
204
+ },
205
+ onMouseDown: (e) => {
206
+ u && e.button === 2 && e.preventDefault();
207
+ },
208
+ onPointerDown: (e) => {
209
+ !u || n || e.button !== 0 || e.ctrlKey || d.domReference.current !== e.currentTarget || x(e) || p(!1);
210
+ },
211
+ onClick: n ? (e) => {
212
+ e.detail === 0 || x(e) || l.invoke(e.currentTarget, U(e.clientX, e.clientY));
213
+ } : void 0
214
+ };
215
+ return /* @__PURE__ */ k(i, {
216
+ className: o,
217
+ styles: le,
218
+ sx: s,
219
+ children: (e) => /* @__PURE__ */ k("div", {
220
+ role: "group",
221
+ tabIndex: 0,
222
+ ...f(c, (e) => ({
223
+ ...e,
224
+ ...S
225
+ })),
226
+ ref: v,
227
+ id: _,
228
+ "aria-labelledby": a,
229
+ "data-ui": "context-menu-target",
230
+ "data-disabled": r || void 0,
231
+ className: e
232
+ })
233
+ });
234
+ }
235
+ K.displayName = "ContextMenu.Target";
236
+ function q({ ref: e, id: t, className: n, sx: r, ...a }) {
237
+ let o = z("Trigger"), { open: s, getReferenceProps: c } = g(M, "Trigger"), u = w(), d = j([o.triggerRef, e]), p = (e) => (t) => {
238
+ s || o.anchorTo(t.currentTarget, B(t.currentTarget)), typeof e == "function" && e(t);
239
+ }, m = (e) => {
240
+ let t = c(e);
241
+ return {
242
+ ...t,
243
+ onClick: p(t.onClick),
244
+ onKeyDown: p(t.onKeyDown)
245
+ };
246
+ };
247
+ return /* @__PURE__ */ k(i, {
248
+ className: n,
249
+ styles: l,
250
+ sx: r,
251
+ children: (e) => /* @__PURE__ */ k("button", {
252
+ type: "button",
253
+ ...f(a, m),
254
+ ref: d,
255
+ id: t ?? u,
256
+ "data-ui": "context-menu-trigger",
257
+ className: e
258
+ })
259
+ });
260
+ }
261
+ q.displayName = "ContextMenu.Trigger";
262
+ function J({ ref: e, style: t, dir: n, onKeyDown: r, ...i }) {
263
+ let { anchor: a, available: o, direction: s, targetLabel: c } = z("Content"), { floatingContext: l, refs: d } = g(M, "Content"), [f, p] = D(null), m = j([p, e]);
264
+ C(() => {
265
+ f && !f.querySelector("[role^=\"menuitem\"]:not([aria-disabled=\"true\"])") && f.focus({ preventScroll: !0 });
266
+ }, [f]);
267
+ let { x: h, y: _, placement: y } = l, b = n ?? s, x = a && `${(b === "rtl" ? a.x + a.width : a.x) - h}px ${(y.startsWith("top") ? a.y : a.y + a.height) - _}px`, S = {
268
+ [F]: x || void 0,
269
+ [I]: o ? `${o.width}px` : void 0,
270
+ [L]: o ? `${o.height}px` : void 0
271
+ };
272
+ return /* @__PURE__ */ k(v, {
273
+ ...i,
274
+ ref: m,
275
+ dir: b,
276
+ style: {
277
+ ...t,
278
+ ...S
279
+ },
280
+ onKeyDown: (e) => {
281
+ r?.(e);
282
+ let t = d.domReference.current;
283
+ !e.defaultPrevented && e.key === "Tab" && e.shiftKey && t && (e.preventDefault(), t.focus());
284
+ },
285
+ defaultLabelledBy: c,
286
+ family: M,
287
+ marker: "context-menu",
288
+ styles: [u, ue]
289
+ });
290
+ }
291
+ J.displayName = "ContextMenu.Content";
292
+ var Y = (e) => s(e) && e !== "";
293
+ function X({ icon: e, children: t }) {
294
+ return /* @__PURE__ */ A(te, { children: [Y(e) && /* @__PURE__ */ k("span", {
295
+ css: c,
296
+ "aria-hidden": !0,
297
+ "data-ui": "context-menu-item-icon",
298
+ children: e
299
+ }), Y(t) && /* @__PURE__ */ k("span", {
300
+ css: de,
301
+ children: t
302
+ })] });
303
+ }
304
+ function Z({ tone: e = "neutral", icon: t, children: n, ...r }) {
305
+ return z("Item"), /* @__PURE__ */ k(d, {
306
+ ...r,
307
+ part: "Item",
308
+ family: M,
309
+ marker: "context-menu-item",
310
+ styles: [
311
+ y,
312
+ W,
313
+ p[e]
314
+ ],
315
+ children: /* @__PURE__ */ k(X, {
316
+ icon: t,
317
+ children: n
318
+ })
319
+ });
320
+ }
321
+ Z.displayName = "ContextMenu.Item";
322
+ function Q({ value: e, defaultValue: t = !1, onValueChange: n, onSelect: r, closeOnSelect: i = !1, tone: a = "neutral", icon: s, children: c, ...l }) {
323
+ z("CheckboxItem");
324
+ let [u = !1, f] = o(e, t, n);
325
+ return /* @__PURE__ */ A(d, {
326
+ ...l,
327
+ "aria-checked": u,
328
+ onSelect: () => {
329
+ f(!u), r?.();
330
+ },
331
+ itemRole: "menuitemcheckbox",
332
+ closeOnSelect: i,
333
+ part: "CheckboxItem",
334
+ family: M,
335
+ marker: "context-menu-checkbox-item",
336
+ styles: [
337
+ y,
338
+ W,
339
+ p[a]
340
+ ],
341
+ children: [/* @__PURE__ */ k("span", {
342
+ css: fe,
343
+ "aria-hidden": !0,
344
+ "data-state": u ? "checked" : "unchecked",
345
+ "data-ui": "context-menu-check",
346
+ children: pe
347
+ }), /* @__PURE__ */ k(X, {
348
+ icon: s,
349
+ children: c
350
+ })]
351
+ });
352
+ }
353
+ Q.displayName = "ContextMenu.CheckboxItem";
354
+ function $(e) {
355
+ return z("Separator"), /* @__PURE__ */ k(_, {
356
+ ...e,
357
+ marker: "context-menu-separator",
358
+ styles: m
359
+ });
360
+ }
361
+ $.displayName = "ContextMenu.Separator";
362
+ var he = Object.assign(G, {
363
+ Target: K,
364
+ Trigger: q,
365
+ Content: J,
366
+ Item: Z,
367
+ CheckboxItem: Q,
368
+ Separator: $
369
+ });
370
+ //#endregion
371
+ export { he as t };
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ export { t as ContextMenu } from "./context-menu-I4i0LRpm.js";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { r as e } from "./sx-Dx9JUKp5.js";
2
+ import { i as e } from "./css-BYJhdGh-.js";
3
3
  import { n as t, r as n } from "./media-8yrN85VT.js";
4
4
  import { t as r } from "./use-controlled-state-DpeVQZNR.js";
5
- import { t as i } from "./visually-hidden-BJdvqqvn.js";
5
+ import { t as i } from "./visually-hidden-DgVO3NaB.js";
6
6
  import { t as a } from "./renderable-DzcIj1Lo.js";
7
- import { t as o } from "./loading-ring-B8-30Dl1.js";
8
- import { t as ee } from "./button-C92uYFJW.js";
7
+ import { t as o } from "./loading-ring-D0lGrK8z.js";
8
+ import { t as ee } from "./button-C6OV0C7J.js";
9
9
  import { useEffect as s, useRef as c, useState as l } from "react";
10
10
  import { vars as u } from "@jfrader/tokens/vars";
11
11
  import { Fragment as d, jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- export { t as CopyButton } from "./copy-button-ByiA6D3R.js";
2
+ export { t as CopyButton } from "./copy-button-C0p_qrgf.js";
@@ -1,8 +1,9 @@
1
1
  'use client';
2
- import { i as e, r as t, t as n } from "./sx-Dx9JUKp5.js";
3
- import { n as r, r as i } from "./media-8yrN85VT.js";
2
+ import { a as e, i as t } from "./css-BYJhdGh-.js";
3
+ import { n, r } from "./media-8yrN85VT.js";
4
+ import { t as i } from "./sx-BJXJ2xJK.js";
4
5
  import { t as a } from "./use-latest-callback-cj1OOQL6.js";
5
- import { t as o } from "./visually-hidden-BJdvqqvn.js";
6
+ import { t as o } from "./visually-hidden-DgVO3NaB.js";
6
7
  import { t as s } from "./renderable-DzcIj1Lo.js";
7
8
  import { useEffect as c, useId as l, useRef as u, useState as d } from "react";
8
9
  import { vars as f } from "@jfrader/tokens/vars";
@@ -88,7 +89,7 @@ var w = e({
88
89
  textAlign: "start",
89
90
  lineHeight: f.lineHeight.base,
90
91
  overflowWrap: "anywhere",
91
- [r]: { color: "CanvasText" }
92
+ [n]: { color: "CanvasText" }
92
93
  }), E = t({
93
94
  fontSize: f.textSize.sm,
94
95
  color: f.color.textMuted
@@ -108,7 +109,7 @@ var w = e({
108
109
  paddingBlock: f.space[1],
109
110
  backgroundColor: f.color.surfaceRaised,
110
111
  "& [data-ui=\"countdown-content\"]": { gap: f.space[2] },
111
- [r]: {
112
+ [n]: {
112
113
  borderColor: "CanvasText",
113
114
  backgroundColor: "transparent"
114
115
  }
@@ -125,7 +126,7 @@ var w = e({
125
126
  lineHeight: f.lineHeight.tight
126
127
  }), k = t({ fontSize: `clamp(${f.textSize["2xl"]}, 8cqi, ${f.textSize["3xl"]})` }), A = t({ fontSize: f.textSize.sm }), j = t({
127
128
  animation: `${w} ${f.motion.duration.base} ${f.motion.easeStandard}`,
128
- [i]: { animation: "none" }
129
+ [r]: { animation: "none" }
129
130
  }), M = t({
130
131
  display: "flex",
131
132
  flexWrap: "wrap",
@@ -133,11 +134,11 @@ var w = e({
133
134
  gap: f.space[2],
134
135
  color: f.color.text,
135
136
  animation: `${T} ${f.motion.duration.fast} ${f.motion.easeStandard}`,
136
- [i]: { animation: "none" }
137
+ [r]: { animation: "none" }
137
138
  }), se = t({
138
139
  display: "inline-flex",
139
140
  color: f.color.success,
140
- [r]: { color: "CanvasText" }
141
+ [n]: { color: "CanvasText" }
141
142
  });
142
143
  function ce({ value: e, variant: t, slot: n }) {
143
144
  let r = u(e), i = r.current !== e;
@@ -155,8 +156,8 @@ function ce({ value: e, variant: t, slot: n }) {
155
156
  children: e
156
157
  }, e);
157
158
  }
158
- function N({ ref: e, target: t, variant: r = "display", units: i = v, label: s = "Time remaining", locale: f, unitDisplay: g = r === "display" ? "long" : "narrow", completeLabel: y = "Live now", completeText: w = "Complete", pendingLabel: T = "—", invalidLabel: O = "Unavailable", invalidText: k = "Unavailable", clock: A = te, initialNow: j, onComplete: N, announceCompletion: P = !1, completionIcon: F, slotProps: I, className: L, sx: le, "aria-labelledby": R, "aria-describedby": ue, "aria-label": de, ...fe }) {
159
- let z = `${l()}-label`, B = `${l()}-description`, V = ne(t), H = v.filter((e) => i.includes(e)), U = H.length ? H : v, [W, pe] = d(j), [me, G] = d(null), K = a(N), q = u({
159
+ function N({ ref: e, target: t, variant: n = "display", units: r = v, label: s = "Time remaining", locale: f, unitDisplay: g = n === "display" ? "long" : "narrow", completeLabel: y = "Live now", completeText: w = "Complete", pendingLabel: T = "—", invalidLabel: O = "Unavailable", invalidText: k = "Unavailable", clock: A = te, initialNow: j, onComplete: N, announceCompletion: P = !1, completionIcon: F, slotProps: I, className: L, sx: le, "aria-labelledby": R, "aria-describedby": ue, "aria-label": de, ...fe }) {
160
+ let z = `${l()}-label`, B = `${l()}-description`, V = ne(t), H = v.filter((e) => r.includes(e)), U = H.length ? H : v, [W, pe] = d(j), [me, G] = d(null), K = a(N), q = u({
160
161
  epoch: V,
161
162
  fired: !1
162
163
  });
@@ -205,9 +206,9 @@ function N({ ref: e, target: t, variant: r = "display", units: i = v, label: s =
205
206
  children: w
206
207
  })
207
208
  ] });
208
- return /* @__PURE__ */ m(n, {
209
+ return /* @__PURE__ */ m(i, {
209
210
  className: L,
210
- styles: [ie, r === "compact" && ae],
211
+ styles: [ie, n === "compact" && ae],
211
212
  sx: le,
212
213
  children: (t) => /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
213
214
  ...fe,
@@ -215,7 +216,7 @@ function N({ ref: e, target: t, variant: r = "display", units: i = v, label: s =
215
216
  className: t,
216
217
  "data-ui": "countdown",
217
218
  "data-state": J,
218
- "data-variant": r,
219
+ "data-variant": n,
219
220
  role: "timer",
220
221
  "aria-live": "off",
221
222
  "aria-label": de ?? (!S(s) && !R ? "Time remaining" : void 0),
@@ -235,20 +236,20 @@ function N({ ref: e, target: t, variant: r = "display", units: i = v, label: s =
235
236
  className: I?.content?.className,
236
237
  css: [D, I?.content?.css],
237
238
  children: C(Y, U).map(({ unit: e, value: t }) => {
238
- let n = new Intl.NumberFormat(f, {
239
+ let r = new Intl.NumberFormat(f, {
239
240
  style: "unit",
240
241
  unit: b[e],
241
242
  unitDisplay: g,
242
243
  minimumIntegerDigits: 2,
243
244
  useGrouping: !1
244
- }), i = n.resolvedOptions();
245
+ }), i = r.resolvedOptions();
245
246
  return /* @__PURE__ */ m("bdi", {
246
247
  "data-ui": "countdown-unit",
247
248
  className: I?.unit?.className,
248
249
  css: [oe, I?.unit?.css],
249
- children: n.formatToParts(t).map((e, t) => e.type === "integer" ? /* @__PURE__ */ m(ce, {
250
+ children: r.formatToParts(t).map((e, t) => e.type === "integer" ? /* @__PURE__ */ m(ce, {
250
251
  value: e.value,
251
- variant: r,
252
+ variant: n,
252
253
  slot: I?.number
253
254
  }, t) : /* @__PURE__ */ m("span", { children: e.value }, t))
254
255
  }, `${e}-${i.locale}-${i.numberingSystem}`);
package/dist/countdown.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- export { t as Countdown } from "./countdown-Dp_TD1VP.js";
2
+ export { t as Countdown } from "./countdown-EcpV6rXy.js";
@@ -0,0 +1,2 @@
1
+ 'use client';
2
+ export { keyframes as a, css as i, ClassNames as n, useTheme as o, ThemeProvider as r, CacheProvider as t } from "@emotion/react";
@@ -1,13 +1,14 @@
1
1
  'use client';
2
- import { r as e, t } from "./sx-Dx9JUKp5.js";
2
+ import { i as e } from "./css-BYJhdGh-.js";
3
+ import { t } from "./sx-BJXJ2xJK.js";
3
4
  import { t as n } from "./use-controlled-state-DpeVQZNR.js";
4
5
  import { t as r } from "./renderable-DzcIj1Lo.js";
5
- import { n as i } from "./surface-DZ4d-2aL.js";
6
- import { t as a } from "./overlay-layer-SeUyyEPD.js";
7
- import { t as o } from "./calendar-B3Svu0X2.js";
8
- import { t as s } from "./overlay-portal-C4JZFq2M.js";
9
- import { t as c } from "./use-overlay-floating-DvJifLpF.js";
10
- import { t as l } from "./text-field-C8TWG-tY.js";
6
+ import { n as i } from "./surface-C69kwSuk.js";
7
+ import { t as a } from "./overlay-layer-qEbpEtb8.js";
8
+ import { t as o } from "./overlay-portal-C9igMHnC.js";
9
+ import { t as s } from "./use-overlay-floating-Bx2jBKAA.js";
10
+ import { t as c } from "./calendar-Bg6D2sul.js";
11
+ import { t as l } from "./text-field-D0VP7b4P.js";
11
12
  import { createContext as u, useContext as d, useEffect as f, useId as p, useLayoutEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
12
13
  import { vars as v } from "@jfrader/tokens/vars";
13
14
  import { jsx as y, jsxs as b } from "@emotion/react/jsx-runtime";
@@ -55,8 +56,8 @@ var V = e({
55
56
  boxShadow: v.shadow.overlay,
56
57
  padding: v.space[3]
57
58
  });
58
- function U({ value: e, defaultValue: t, onValueChange: r, open: i, defaultOpen: a = !1, onOpenChange: o, min: s, max: l, locale: u, firstDayOfWeek: d, disabled: p = !1, name: m, placeholder: v, children: x }) {
59
- let [T, O] = n(e, t, r), [k = !1, A] = n(i, a, o), [j, M] = _(!1), F = p || j, I = k && !F, [L, B] = _(null), V = g(null), H = g(!1), U = h(() => new Intl.DateTimeFormat(u ?? ne()).resolvedOptions().locale, [u]), W = h(() => new Intl.DateTimeFormat(U, N), [U]), G = h(() => re(W, U), [W, U]), K = R(T), q = K ? W.format(K) : "", J = z(s), Y = z(l), X = ee(z(T) ?? te(), J, Y).slice(0, 7), { refs: Z, floatingStyles: Q, context: $ } = c({
59
+ function U({ value: e, defaultValue: t, onValueChange: r, open: i, defaultOpen: a = !1, onOpenChange: o, min: c, max: l, locale: u, firstDayOfWeek: d, disabled: p = !1, name: m, placeholder: v, children: x }) {
60
+ let [T, O] = n(e, t, r), [k = !1, A] = n(i, a, o), [j, M] = _(!1), F = p || j, I = k && !F, [L, B] = _(null), V = g(null), H = g(!1), U = h(() => new Intl.DateTimeFormat(u ?? ne()).resolvedOptions().locale, [u]), W = h(() => new Intl.DateTimeFormat(U, N), [U]), G = h(() => re(W, U), [W, U]), K = R(T), q = K ? W.format(K) : "", J = z(c), Y = z(l), X = ee(z(T) ?? te(), J, Y).slice(0, 7), { refs: Z, floatingStyles: Q, context: $ } = s({
60
61
  open: I,
61
62
  placement: D,
62
63
  onOpenChange: (e, t, n) => {
@@ -196,10 +197,10 @@ function G({ ref: e, label: t, id: n, disabled: i, slotProps: a, onKeyDown: o, o
196
197
  }
197
198
  G.displayName = "DatePicker.Input";
198
199
  function K({ ref: e, style: n, className: r, sx: i, ...a }) {
199
- let { open: c, value: l, initialMonth: u, min: d, max: f, locale: p, firstDayOfWeek: m, inputLabelling: h, gridRef: _, refs: v, floatingContext: S, floatingStyles: C, getFloatingProps: w, selectDate: E } = F("Popup"), D = T([v.setFloating, e]), O = g(null), k = T([(e) => {
200
+ let { open: s, value: l, initialMonth: u, min: d, max: f, locale: p, firstDayOfWeek: m, inputLabelling: h, gridRef: _, refs: v, floatingContext: S, floatingStyles: C, getFloatingProps: w, selectDate: E } = F("Popup"), D = T([v.setFloating, e]), O = g(null), k = T([(e) => {
200
201
  _.current = e, O.current = B(e);
201
202
  }]);
202
- if (!c) return null;
203
+ if (!s) return null;
203
204
  let A = a["aria-labelledby"] !== void 0 || a["aria-label"] !== void 0 ? {} : h?.labelledBy === void 0 ? { "aria-label": h?.label } : { "aria-labelledby": h.labelledBy }, M = (e) => {
204
205
  let t = e.target.closest(j);
205
206
  if (t?.disabled) return;
@@ -208,7 +209,7 @@ function K({ ref: e, style: n, className: r, sx: i, ...a }) {
208
209
  }, N = (e) => {
209
210
  e.target.closest(j)?.disabled && e.preventDefault();
210
211
  };
211
- return /* @__PURE__ */ y(s, { children: /* @__PURE__ */ y(x, {
212
+ return /* @__PURE__ */ y(o, { children: /* @__PURE__ */ y(x, {
212
213
  context: S,
213
214
  modal: !1,
214
215
  initialFocus: O,
@@ -229,14 +230,14 @@ function K({ ref: e, style: n, className: r, sx: i, ...a }) {
229
230
  ...C
230
231
  },
231
232
  className: e,
232
- children: /* @__PURE__ */ b(o, {
233
+ children: /* @__PURE__ */ b(c, {
233
234
  value: l ?? "",
234
235
  defaultVisibleMonth: u,
235
236
  min: d,
236
237
  max: f,
237
238
  locale: p,
238
239
  firstDayOfWeek: m,
239
- children: [/* @__PURE__ */ y(o.Header, {}), /* @__PURE__ */ y(o.Grid, {
240
+ children: [/* @__PURE__ */ y(c.Header, {}), /* @__PURE__ */ y(c.Grid, {
240
241
  ref: k,
241
242
  onClick: M,
242
243
  onPointerDownCapture: N
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- export { t as DatePicker } from "./date-picker-5zKSSuFF.js";
2
+ export { t as DatePicker } from "./date-picker-D-bn-iHs.js";