@xjur-ui/react 2.2.3 → 2.3.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 (332) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunk-26RT6WUU.js +2 -0
  3. package/dist/chunk-26RT6WUU.js.map +1 -0
  4. package/dist/chunk-2TVBY4IY.js +2 -0
  5. package/dist/chunk-2TVBY4IY.js.map +1 -0
  6. package/dist/chunk-3DZWZLV3.js +2 -0
  7. package/dist/chunk-3DZWZLV3.js.map +1 -0
  8. package/dist/chunk-3LWJK7RE.js +2 -0
  9. package/dist/chunk-3LWJK7RE.js.map +1 -0
  10. package/dist/chunk-3QA5HU4T.js +2 -0
  11. package/dist/chunk-3QA5HU4T.js.map +1 -0
  12. package/dist/chunk-3RD2PGPH.js +2 -0
  13. package/dist/chunk-3RD2PGPH.js.map +1 -0
  14. package/dist/chunk-4GDW5WIQ.js +2 -0
  15. package/dist/chunk-4GDW5WIQ.js.map +1 -0
  16. package/dist/{chunk-TTKENFBF.js → chunk-4NBJXNQ7.js} +2 -2
  17. package/dist/{chunk-TTKENFBF.js.map → chunk-4NBJXNQ7.js.map} +1 -1
  18. package/dist/chunk-4ZEXJODE.js +2 -0
  19. package/dist/chunk-4ZEXJODE.js.map +1 -0
  20. package/dist/chunk-5CA552M6.js +2 -0
  21. package/dist/chunk-5CA552M6.js.map +1 -0
  22. package/dist/chunk-5Z3AIBBS.js +2 -0
  23. package/dist/{chunk-JGPHBUVM.js.map → chunk-5Z3AIBBS.js.map} +1 -1
  24. package/dist/chunk-6EDRVSCQ.js +2 -0
  25. package/dist/{chunk-6PHXO2YA.js.map → chunk-6EDRVSCQ.js.map} +1 -1
  26. package/dist/chunk-6KKZP5G3.js +2 -0
  27. package/dist/chunk-6KKZP5G3.js.map +1 -0
  28. package/dist/chunk-7DGDSULM.js +2 -0
  29. package/dist/chunk-7DGDSULM.js.map +1 -0
  30. package/dist/chunk-7EEEHHLL.js +2 -0
  31. package/dist/chunk-7EEEHHLL.js.map +1 -0
  32. package/dist/{chunk-SLMHDBWO.js → chunk-AGO3UKJY.js} +2 -2
  33. package/dist/{chunk-SLMHDBWO.js.map → chunk-AGO3UKJY.js.map} +1 -1
  34. package/dist/chunk-AIQVBX52.js +2 -0
  35. package/dist/chunk-AIQVBX52.js.map +1 -0
  36. package/dist/{chunk-HLWHETF5.js → chunk-BIPU447J.js} +2 -2
  37. package/dist/{chunk-HLWHETF5.js.map → chunk-BIPU447J.js.map} +1 -1
  38. package/dist/chunk-BXWTGQRV.js +2 -0
  39. package/dist/{chunk-MTIWFWRN.js.map → chunk-BXWTGQRV.js.map} +1 -1
  40. package/dist/chunk-C4YYI53B.js +2 -0
  41. package/dist/chunk-C4YYI53B.js.map +1 -0
  42. package/dist/chunk-CCSIBUKX.js +2 -0
  43. package/dist/chunk-CCSIBUKX.js.map +1 -0
  44. package/dist/chunk-CTBO27FM.js +2 -0
  45. package/dist/chunk-CTBO27FM.js.map +1 -0
  46. package/dist/chunk-DZSAQN5T.js +2 -0
  47. package/dist/chunk-DZSAQN5T.js.map +1 -0
  48. package/dist/chunk-EDVE3ICB.js +2 -0
  49. package/dist/chunk-EDVE3ICB.js.map +1 -0
  50. package/dist/chunk-EOKFSNH5.js +2 -0
  51. package/dist/chunk-EOKFSNH5.js.map +1 -0
  52. package/dist/chunk-FOY43MIQ.js +2 -0
  53. package/dist/chunk-FOY43MIQ.js.map +1 -0
  54. package/dist/chunk-FU4H45BR.js +2 -0
  55. package/dist/chunk-FU4H45BR.js.map +1 -0
  56. package/dist/chunk-H4XO5KQZ.js +2 -0
  57. package/dist/chunk-H4XO5KQZ.js.map +1 -0
  58. package/dist/chunk-HIT33DXM.js +2 -0
  59. package/dist/chunk-HIT33DXM.js.map +1 -0
  60. package/dist/chunk-HRG3L64O.js +2 -0
  61. package/dist/chunk-HRG3L64O.js.map +1 -0
  62. package/dist/chunk-IQKIIIQ3.js +2 -0
  63. package/dist/chunk-IQKIIIQ3.js.map +1 -0
  64. package/dist/chunk-JHRYQ25B.js +2 -0
  65. package/dist/chunk-JHRYQ25B.js.map +1 -0
  66. package/dist/chunk-LA22O6VE.js +2 -0
  67. package/dist/chunk-LA22O6VE.js.map +1 -0
  68. package/dist/{chunk-BYXTOSM6.js → chunk-LWBGC4MI.js} +2 -2
  69. package/dist/{chunk-BYXTOSM6.js.map → chunk-LWBGC4MI.js.map} +1 -1
  70. package/dist/chunk-NDXYABGR.js +2 -0
  71. package/dist/chunk-NDXYABGR.js.map +1 -0
  72. package/dist/chunk-NQFPNHFQ.js +2 -0
  73. package/dist/chunk-NQFPNHFQ.js.map +1 -0
  74. package/dist/chunk-NRQWDEPL.js +2 -0
  75. package/dist/chunk-NRQWDEPL.js.map +1 -0
  76. package/dist/chunk-OGRUMTZC.js +2 -0
  77. package/dist/chunk-OGRUMTZC.js.map +1 -0
  78. package/dist/{chunk-OKSGVAQQ.js → chunk-OWFC7RTB.js} +2 -2
  79. package/dist/{chunk-OKSGVAQQ.js.map → chunk-OWFC7RTB.js.map} +1 -1
  80. package/dist/chunk-OZ7TAILP.js +2 -0
  81. package/dist/chunk-OZ7TAILP.js.map +1 -0
  82. package/dist/chunk-PN2PHVKQ.js +2 -0
  83. package/dist/chunk-PN2PHVKQ.js.map +1 -0
  84. package/dist/chunk-QBBE3G4O.js +2 -0
  85. package/dist/chunk-QBBE3G4O.js.map +1 -0
  86. package/dist/{chunk-4M3WR2KJ.js → chunk-RAW5SN5A.js} +2 -2
  87. package/dist/{chunk-4M3WR2KJ.js.map → chunk-RAW5SN5A.js.map} +1 -1
  88. package/dist/chunk-RCP3J3FN.js +2 -0
  89. package/dist/chunk-RCP3J3FN.js.map +1 -0
  90. package/dist/chunk-RSILFO3M.js +2 -0
  91. package/dist/chunk-RSILFO3M.js.map +1 -0
  92. package/dist/chunk-RZQ2HH5A.js +2 -0
  93. package/dist/chunk-RZQ2HH5A.js.map +1 -0
  94. package/dist/chunk-SLQNE7TL.js +2 -0
  95. package/dist/chunk-SLQNE7TL.js.map +1 -0
  96. package/dist/chunk-TVYYMHLA.js +2 -0
  97. package/dist/chunk-TVYYMHLA.js.map +1 -0
  98. package/dist/chunk-UDJUMHNY.js +2 -0
  99. package/dist/chunk-UDJUMHNY.js.map +1 -0
  100. package/dist/chunk-VWS2FZKZ.js +2 -0
  101. package/dist/chunk-VWS2FZKZ.js.map +1 -0
  102. package/dist/chunk-WFZACDDH.js +2 -0
  103. package/dist/chunk-WFZACDDH.js.map +1 -0
  104. package/dist/chunk-WOVO46OF.js +2 -0
  105. package/dist/chunk-WOVO46OF.js.map +1 -0
  106. package/dist/chunk-WUHYNXHE.js +2 -0
  107. package/dist/chunk-WUHYNXHE.js.map +1 -0
  108. package/dist/chunk-WW4B3LUO.js +2 -0
  109. package/dist/chunk-WW4B3LUO.js.map +1 -0
  110. package/dist/chunk-XJFPH3IG.js +2 -0
  111. package/dist/chunk-XJFPH3IG.js.map +1 -0
  112. package/dist/chunk-XPC3GTK7.js +2 -0
  113. package/dist/chunk-XPC3GTK7.js.map +1 -0
  114. package/dist/chunk-XU7DDF5D.js +2 -0
  115. package/dist/chunk-XU7DDF5D.js.map +1 -0
  116. package/dist/chunk-YDRZPQ3J.js +2 -0
  117. package/dist/chunk-YDRZPQ3J.js.map +1 -0
  118. package/dist/chunk-YHG3FCHM.js +2 -0
  119. package/dist/chunk-YHG3FCHM.js.map +1 -0
  120. package/dist/chunk-ZHLE6XEC.js +2 -0
  121. package/dist/chunk-ZHLE6XEC.js.map +1 -0
  122. package/dist/components/carousel/carousel-action.d.ts +8 -0
  123. package/dist/components/carousel/carousel-action.js +2 -0
  124. package/dist/components/carousel/carousel-action.js.map +1 -0
  125. package/dist/components/carousel/carousel-content.d.ts +6 -0
  126. package/dist/components/carousel/carousel-content.js +2 -0
  127. package/dist/components/carousel/carousel-content.js.map +1 -0
  128. package/dist/components/carousel/carousel-item.d.ts +6 -0
  129. package/dist/components/carousel/carousel-item.js +2 -0
  130. package/dist/components/carousel/carousel-item.js.map +1 -0
  131. package/dist/components/carousel/carousel-root.d.ts +13 -0
  132. package/dist/components/carousel/carousel-root.js +2 -0
  133. package/dist/components/carousel/carousel-root.js.map +1 -0
  134. package/dist/components/carousel/index.d.ts +6 -0
  135. package/dist/components/carousel/index.js +2 -0
  136. package/dist/components/carousel/index.js.map +1 -0
  137. package/dist/components/chip.d.ts +1 -1
  138. package/dist/components/chip.js +1 -1
  139. package/dist/components/chip.js.map +1 -1
  140. package/dist/components/controls/date-picker/date-picker-caption.d.ts +6 -0
  141. package/dist/components/controls/date-picker/date-picker-caption.js +2 -0
  142. package/dist/components/controls/date-picker/date-picker-caption.js.map +1 -0
  143. package/dist/components/controls/date-picker/date-picker-content.d.ts +7 -0
  144. package/dist/components/controls/date-picker/date-picker-content.js +2 -0
  145. package/dist/components/controls/date-picker/date-picker-content.js.map +1 -0
  146. package/dist/components/controls/date-picker/date-picker-icon.d.ts +10 -0
  147. package/dist/components/controls/date-picker/date-picker-icon.js +2 -0
  148. package/dist/components/controls/date-picker/date-picker-icon.js.map +1 -0
  149. package/dist/components/controls/date-picker/date-picker-label.d.ts +7 -0
  150. package/dist/components/controls/date-picker/date-picker-label.js +2 -0
  151. package/dist/components/controls/date-picker/date-picker-label.js.map +1 -0
  152. package/dist/components/controls/date-picker/date-picker-root.d.ts +10 -0
  153. package/dist/components/controls/date-picker/date-picker-root.js +2 -0
  154. package/dist/components/controls/date-picker/date-picker-root.js.map +1 -0
  155. package/dist/components/controls/date-picker/date-picker-slot.d.ts +6 -0
  156. package/dist/components/controls/date-picker/date-picker-slot.js +2 -0
  157. package/dist/components/controls/date-picker/date-picker-slot.js.map +1 -0
  158. package/dist/components/controls/date-picker/date-picker-styles.d.ts +65 -0
  159. package/dist/components/controls/date-picker/date-picker-styles.js +2 -0
  160. package/dist/components/controls/date-picker/date-picker-styles.js.map +1 -0
  161. package/dist/components/controls/date-picker/date-picker-trigger.d.ts +7 -0
  162. package/dist/components/controls/date-picker/date-picker-trigger.js +2 -0
  163. package/dist/components/controls/date-picker/date-picker-trigger.js.map +1 -0
  164. package/dist/components/controls/date-picker/date-picker-value.d.ts +8 -0
  165. package/dist/components/controls/date-picker/date-picker-value.js +2 -0
  166. package/dist/components/controls/date-picker/date-picker-value.js.map +1 -0
  167. package/dist/components/controls/date-picker/index.d.ts +16 -0
  168. package/dist/components/controls/date-picker/index.js +2 -0
  169. package/dist/components/controls/date-picker/index.js.map +1 -0
  170. package/dist/components/controls/date-picker.d.ts +2 -1
  171. package/dist/components/controls/date-picker.js +1 -1
  172. package/dist/components/controls/date-picker.js.map +1 -1
  173. package/dist/components/controls/floating-label.js +1 -1
  174. package/dist/components/controls/input/index.d.ts +21 -0
  175. package/dist/components/controls/input/index.js +2 -0
  176. package/dist/components/controls/input/index.js.map +1 -0
  177. package/dist/components/controls/input/input-action.d.ts +6 -0
  178. package/dist/components/controls/input/input-action.js +2 -0
  179. package/dist/components/controls/input/input-action.js.map +1 -0
  180. package/dist/components/controls/input/input-caption.d.ts +6 -0
  181. package/dist/components/controls/input/input-caption.js +2 -0
  182. package/dist/components/controls/input/input-caption.js.map +1 -0
  183. package/dist/components/controls/input/input-content.d.ts +6 -0
  184. package/dist/components/controls/input/input-content.js +2 -0
  185. package/dist/components/controls/input/input-content.js.map +1 -0
  186. package/dist/components/controls/input/input-currency.d.ts +13 -0
  187. package/dist/components/controls/input/input-currency.js +2 -0
  188. package/dist/components/controls/input/input-currency.js.map +1 -0
  189. package/dist/components/controls/input/input-icon.d.ts +10 -0
  190. package/dist/components/controls/input/input-icon.js +2 -0
  191. package/dist/components/controls/{input.js.map → input/input-icon.js.map} +1 -1
  192. package/dist/components/controls/input/input-label.d.ts +7 -0
  193. package/dist/components/controls/input/input-label.js +2 -0
  194. package/dist/components/controls/input/input-label.js.map +1 -0
  195. package/dist/components/controls/input/input-mask.d.ts +6 -0
  196. package/dist/components/controls/input/input-mask.js +2 -0
  197. package/dist/components/controls/input/input-mask.js.map +1 -0
  198. package/dist/components/controls/input/input-number.d.ts +8 -0
  199. package/dist/components/controls/input/input-number.js +2 -0
  200. package/dist/components/controls/input/input-number.js.map +1 -0
  201. package/dist/components/controls/input/input-numeric-stepper.d.ts +8 -0
  202. package/dist/components/controls/input/input-numeric-stepper.js +2 -0
  203. package/dist/components/controls/input/input-numeric-stepper.js.map +1 -0
  204. package/dist/components/controls/input/input-root.d.ts +9 -0
  205. package/dist/components/controls/input/input-root.js +2 -0
  206. package/dist/components/controls/input/input-root.js.map +1 -0
  207. package/dist/components/controls/input/input-slot.d.ts +6 -0
  208. package/dist/components/controls/input/input-slot.js +2 -0
  209. package/dist/components/controls/input/input-slot.js.map +1 -0
  210. package/dist/components/controls/input/input-styles.d.ts +71 -0
  211. package/dist/components/controls/input/input-styles.js +2 -0
  212. package/dist/components/controls/input/input-styles.js.map +1 -0
  213. package/dist/components/controls/input/input-text.d.ts +6 -0
  214. package/dist/components/controls/input/input-text.js +2 -0
  215. package/dist/components/controls/input/input-text.js.map +1 -0
  216. package/dist/components/controls/input/input-trigger.d.ts +6 -0
  217. package/dist/components/controls/input/input-trigger.js +2 -0
  218. package/dist/components/controls/input/input-trigger.js.map +1 -0
  219. package/dist/components/controls/rating.js +1 -1
  220. package/dist/components/controls/rich-editor.js +1 -1
  221. package/dist/components/controls/rich-editor.js.map +1 -1
  222. package/dist/components/controls/search-input.d.ts +2 -2
  223. package/dist/components/controls/search-input.js +1 -1
  224. package/dist/components/controls/search-selector.js +1 -1
  225. package/dist/components/controls/search-selector.js.map +1 -1
  226. package/dist/components/controls/select/index.d.ts +27 -0
  227. package/dist/components/controls/select/index.js +2 -0
  228. package/dist/components/controls/select/index.js.map +1 -0
  229. package/dist/components/controls/select/select-caption.d.ts +6 -0
  230. package/dist/components/controls/select/select-caption.js +2 -0
  231. package/dist/components/controls/select/select-caption.js.map +1 -0
  232. package/dist/components/controls/select/select-content.d.ts +7 -0
  233. package/dist/components/controls/select/select-content.js +2 -0
  234. package/dist/components/controls/select/select-content.js.map +1 -0
  235. package/dist/components/controls/select/select-header-title.d.ts +10 -0
  236. package/dist/components/controls/select/select-header-title.js +2 -0
  237. package/dist/components/controls/select/select-header-title.js.map +1 -0
  238. package/dist/components/controls/select/select-header.d.ts +7 -0
  239. package/dist/components/controls/select/select-header.js +2 -0
  240. package/dist/components/controls/select/select-header.js.map +1 -0
  241. package/dist/components/controls/select/select-icon.d.ts +10 -0
  242. package/dist/components/controls/select/select-icon.js +2 -0
  243. package/dist/components/controls/{select.js.map → select/select-icon.js.map} +1 -1
  244. package/dist/components/controls/select/select-multi-value.d.ts +16 -0
  245. package/dist/components/controls/select/select-multi-value.js +2 -0
  246. package/dist/components/controls/select/select-multi-value.js.map +1 -0
  247. package/dist/components/controls/select/select-option-text.d.ts +9 -0
  248. package/dist/components/controls/select/select-option-text.js +2 -0
  249. package/dist/components/controls/select/select-option-text.js.map +1 -0
  250. package/dist/components/controls/select/select-option.d.ts +9 -0
  251. package/dist/components/controls/select/select-option.js +2 -0
  252. package/dist/components/controls/select/select-option.js.map +1 -0
  253. package/dist/components/controls/select/select-options.d.ts +7 -0
  254. package/dist/components/controls/select/select-options.js +2 -0
  255. package/dist/components/controls/select/select-options.js.map +1 -0
  256. package/dist/components/controls/select/select-root.d.ts +10 -0
  257. package/dist/components/controls/select/select-root.js +2 -0
  258. package/dist/components/controls/select/select-root.js.map +1 -0
  259. package/dist/components/controls/select/select-slot.d.ts +6 -0
  260. package/dist/components/controls/select/select-slot.js +2 -0
  261. package/dist/components/controls/select/select-slot.js.map +1 -0
  262. package/dist/components/controls/select/select-styles.d.ts +65 -0
  263. package/dist/components/controls/select/select-styles.js +2 -0
  264. package/dist/components/controls/select/select-styles.js.map +1 -0
  265. package/dist/components/controls/select/select-trigger.d.ts +7 -0
  266. package/dist/components/controls/select/select-trigger.js +2 -0
  267. package/dist/components/controls/select/select-trigger.js.map +1 -0
  268. package/dist/components/controls/select/select-value.d.ts +8 -0
  269. package/dist/components/controls/select/select-value.js +2 -0
  270. package/dist/components/controls/select/select-value.js.map +1 -0
  271. package/dist/components/controls/slider.js +1 -1
  272. package/dist/components/custom/pessoa/index.js +1 -1
  273. package/dist/components/dropdown-menu.d.ts +4 -1
  274. package/dist/components/dropdown-menu.js +1 -1
  275. package/dist/components/full-calendar/calendar-cell.js +1 -1
  276. package/dist/components/full-calendar/calendar-day-view.js +1 -1
  277. package/dist/components/full-calendar/calendar-month-view.js +1 -1
  278. package/dist/components/full-calendar/calendar-more-events-dropdown.js +1 -1
  279. package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
  280. package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
  281. package/dist/components/full-calendar/calendar-week-view.js +1 -1
  282. package/dist/components/full-calendar/index.js +1 -1
  283. package/dist/components/list/context/list-context.d.ts +10 -0
  284. package/dist/components/list/context/list-context.js +2 -0
  285. package/dist/components/list/context/list-context.js.map +1 -0
  286. package/dist/components/list/index.d.ts +12 -0
  287. package/dist/components/list/index.js +2 -0
  288. package/dist/components/list/index.js.map +1 -0
  289. package/dist/components/list/list-content.d.ts +9 -0
  290. package/dist/components/list/list-content.js +2 -0
  291. package/dist/components/list/list-content.js.map +1 -0
  292. package/dist/components/list/list-header-title.d.ts +9 -0
  293. package/dist/components/list/list-header-title.js +2 -0
  294. package/dist/components/list/list-header-title.js.map +1 -0
  295. package/dist/components/list/list-header.d.ts +8 -0
  296. package/dist/components/list/list-header.js +2 -0
  297. package/dist/components/list/list-header.js.map +1 -0
  298. package/dist/components/list/list-item.d.ts +14 -0
  299. package/dist/components/list/list-item.js +2 -0
  300. package/dist/components/list/list-item.js.map +1 -0
  301. package/dist/components/list/list-root.d.ts +12 -0
  302. package/dist/components/list/list-root.js +2 -0
  303. package/dist/components/list/list-root.js.map +1 -0
  304. package/dist/components/steps/index.js +1 -1
  305. package/dist/components/table/index.js +1 -1
  306. package/dist/components/typography.d.ts +1 -1
  307. package/dist/components/upload.js +1 -1
  308. package/dist/components/upload.js.map +1 -1
  309. package/dist/index.css +1 -1
  310. package/dist/index.css.map +1 -1
  311. package/package.json +10 -8
  312. package/dist/chunk-6PHXO2YA.js +0 -2
  313. package/dist/chunk-DTNZXDCY.js +0 -2
  314. package/dist/chunk-DTNZXDCY.js.map +0 -1
  315. package/dist/chunk-JGPHBUVM.js +0 -2
  316. package/dist/chunk-MTIWFWRN.js +0 -2
  317. package/dist/chunk-TQWBQ452.js +0 -2
  318. package/dist/chunk-TQWBQ452.js.map +0 -1
  319. package/dist/chunk-XGPKBYDY.js +0 -2
  320. package/dist/chunk-XGPKBYDY.js.map +0 -1
  321. package/dist/chunk-YOLTIAFT.js +0 -2
  322. package/dist/chunk-YOLTIAFT.js.map +0 -1
  323. package/dist/components/controls/input.d.ts +0 -96
  324. package/dist/components/controls/input.js +0 -2
  325. package/dist/components/controls/select.d.ts +0 -93
  326. package/dist/components/controls/select.js +0 -2
  327. package/dist/components/horizontal-scroll.d.ts +0 -11
  328. package/dist/components/horizontal-scroll.js +0 -2
  329. package/dist/components/horizontal-scroll.js.map +0 -1
  330. package/dist/components/list.d.ts +0 -25
  331. package/dist/components/list.js +0 -2
  332. package/dist/components/list.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @xjur-ui/react
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ec0543c: Adiciona novo componente InputCurrency para formatação e entrada de valores monetários. Componente modular exportado via Input.Currency com suporte a formatação automática de moeda usando Intl.NumberFormat. Adiciona threshold de 500 bytes para input-currency.js. Atualiza documentação com exemplos de uso no Storybook.
8
+ - 848f902: Refatora componentes select, input e date-picker para estrutura modular com subcomponentes isolados. Cada componente agora possui sua própria pasta com fragmentos individuais (ex: select-root.tsx, select-trigger.tsx), facilitando manutenção e tree-shaking. Mantém mesma API pública e compatibilidade retroativa.
9
+
10
+ ### Patch Changes
11
+
12
+ - a909f80: Adiciona documentação completa do componente Carousel no Storybook. Inclui descrição dos subcomponentes (CarouselRoot, CarouselContent, CarouselItem, CarouselAction), propriedades, exemplo de uso básico e funcionalidades como scroll suave, detecção automática de navegação e responsividade.
13
+ - 4a735f3: Atualiza e revisa thresholds de bundle size para todos os componentes do projeto. Adiciona thresholds para novos componentes modularizados (carousel, date-picker subcomponents, input subcomponents, select subcomponents, list, table, steps, pessoa). Ajusta thresholds existentes: upload (9000→9100 bytes), full-calendar index (1500→2000 bytes), calendar-toggle-view (1000→1100 bytes). Remove thresholds de componentes refatorados que não existem mais como arquivos únicos. Total de 142 componentes com limites definidos.
14
+ - cc45cc3: Atualiza documentação do componente List no Storybook com informações sobre o novo padrão de virtualização usando @tanstack/react-virtual. Adiciona detalhes sobre as propriedades virtualized, itemCount, estimateSize e overscan no ListRoot, além da propriedade renderItem no ListContent. Inclui exemplo de código e explicação sobre como usar virtualização para listas grandes com milhões de itens mantendo alta performance.
15
+
16
+ ## 2.2.4
17
+
18
+ ### Patch Changes
19
+
20
+ - f4d0a2a: fix slot icon
21
+
3
22
  ## 2.2.3
4
23
 
5
24
  ### Patch Changes
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-5Z3AIBBS.js';import {b}from'./chunk-2JQVYVAT.js';import {a as a$1}from'./chunk-EIG6CBTQ.js';import {twMerge}from'@xjur-ui/util';import {useMemo,Fragment}from'react';import {jsxs,jsx}from'react/jsx-runtime';function h({className:i,value:e,placeholder:t,renderValue:p,...c}){let{variant:a$2}=b(),d=useMemo(()=>a$2==="filter"?false:!e&&t,[e,t,a$2]),f=useMemo(()=>Array.isArray(e)&&e.length>0,[e]);return jsxs("div",{className:twMerge(i,"gap-small-1x scrollbar-hide grid w-full items-center overflow-x-hidden","group-disabled:!pl-0"),children:[t&&a$2==="filter"&&jsx(a,{children:t}),t&&a$2==="filter"&&jsx(a$1,{className:"invisible col-start-1 row-start-1 self-center",children:t}),d&&jsx(a$1,{className:"text-neutral-dark",children:t}),jsx("div",{className:"gap-small-1x col-start-1 row-start-1 flex items-center",children:e.map(n=>jsx(Fragment,{children:p(n)},n.value))}),jsx("input",{...c,"aria-readonly":true,className:twMerge(i,"pointer-events-none"),hidden:true,placeholder:f?"":" ",readOnly:true,value:Array.isArray(e)?e.join(","):e})]})}export{h as a};//# sourceMappingURL=chunk-26RT6WUU.js.map
2
+ //# sourceMappingURL=chunk-26RT6WUU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/select/select-multi-value.tsx"],"names":["SelectMultiValue","className","value","placeholder","renderValue","props","variant","useFieldContext","shouldShowPlaceholder","useMemo","hasSelectedItems","jsxs","twMerge","jsx","FloatingLabel","Typography","Fragment"],"mappings":"qOAgBO,SAASA,CAAAA,CAAiB,CAC/B,SAAA,CAAAC,EACA,KAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEG,CACD,GAAM,CAAE,OAAA,CAAAC,GAAQ,EAAIC,CAAAA,EAAgB,CAE9BC,CAAAA,CAAwBC,OAAAA,CAAQ,IAChCH,GAAAA,GAAY,QAAA,CAAiB,KAAA,CAC1B,CAACJ,GAASC,CAAAA,CAChB,CAACD,CAAAA,CAAOC,CAAAA,CAAaG,GAAO,CAAC,CAAA,CAE1BI,CAAAA,CAAmBD,OAAAA,CAAQ,IACxB,KAAA,CAAM,OAAA,CAAQP,CAAK,CAAA,EAAKA,EAAM,MAAA,CAAS,CAAA,CAC7C,CAACA,CAAK,CAAC,CAAA,CAEV,OACES,IAAAA,CAAC,KAAA,CAAA,CACC,UAAWC,OAAAA,CACTX,CAAAA,CACA,wEAAA,CACA,sBACF,EAEC,QAAA,CAAA,CAAAE,CAAAA,EAAeG,GAAAA,GAAY,QAAA,EAC1BO,IAACC,CAAAA,CAAA,CAAe,QAAA,CAAAX,CAAAA,CAAY,EAG7BA,CAAAA,EAAeG,GAAAA,GAAY,QAAA,EAC1BO,GAAAA,CAACE,IAAA,CAAW,SAAA,CAAU,+CAAA,CACnB,QAAA,CAAAZ,EACH,CAAA,CAGDK,CAAAA,EACCK,GAAAA,CAACE,GAAAA,CAAA,CAAW,SAAA,CAAU,mBAAA,CAAqB,QAAA,CAAAZ,CAAAA,CAAY,EAGzDU,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,wDAAA,CACZ,SAAAX,CAAAA,CAAM,GAAA,CAAIA,CAAAA,EACTW,GAAAA,CAACG,SAAA,CAA4B,QAAA,CAAAZ,CAAAA,CAAYF,CAAK,GAA/BA,CAAAA,CAAM,KAA2B,CACjD,CAAA,CACH,EAEAW,GAAAA,CAAC,OAAA,CAAA,CACE,GAAGR,CAAAA,CACJ,gBAAe,IAAA,CACf,SAAA,CAAWO,OAAAA,CAAQX,CAAAA,CAAW,qBAAqB,CAAA,CACnD,MAAA,CAAQ,IAAA,CACR,WAAA,CAAaS,EAAmB,EAAA,CAAK,GAAA,CACrC,QAAA,CAAU,IAAA,CACV,MAAO,KAAA,CAAM,OAAA,CAAQR,CAAK,CAAA,CAAIA,EAAM,IAAA,CAAK,GAAG,CAAA,CAAIA,CAAAA,CAClD,GACF,CAEJ","file":"chunk-26RT6WUU.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport { Fragment, useMemo, type ComponentProps } from 'react'\nimport { Typography } from '../../typography'\nimport { useFieldContext } from '../context/field.context'\nimport { FloatingLabel } from '../floating-label'\n\nexport interface MultiSelectValue {\n value: string\n label: string\n}\n\ninterface SelectMultiValueProps extends Omit<ComponentProps<'input'>, 'value'> {\n renderValue: (value: MultiSelectValue) => React.ReactNode\n value: MultiSelectValue[]\n}\n\nexport function SelectMultiValue({\n className,\n value,\n placeholder,\n renderValue,\n ...props\n}: SelectMultiValueProps & {\n renderValue: (value: string) => React.ReactNode\n}) {\n const { variant } = useFieldContext()\n\n const shouldShowPlaceholder = useMemo(() => {\n if (variant === 'filter') return false\n return !value && placeholder\n }, [value, placeholder, variant])\n\n const hasSelectedItems = useMemo(() => {\n return Array.isArray(value) && value.length > 0\n }, [value])\n\n return (\n <div\n className={twMerge(\n className,\n 'gap-small-1x scrollbar-hide grid w-full items-center overflow-x-hidden',\n 'group-disabled:!pl-0'\n )}\n >\n {placeholder && variant === 'filter' && (\n <FloatingLabel>{placeholder}</FloatingLabel>\n )}\n\n {placeholder && variant === 'filter' && (\n <Typography className=\"invisible col-start-1 row-start-1 self-center\">\n {placeholder}\n </Typography>\n )}\n\n {shouldShowPlaceholder && (\n <Typography className=\"text-neutral-dark\">{placeholder}</Typography>\n )}\n\n <div className=\"gap-small-1x col-start-1 row-start-1 flex items-center\">\n {value.map(value => (\n <Fragment key={value.value}>{renderValue(value)}</Fragment>\n ))}\n </div>\n\n <input\n {...props}\n aria-readonly={true}\n className={twMerge(className, 'pointer-events-none')}\n hidden={true}\n placeholder={hasSelectedItems ? '' : ' '}\n readOnly={true}\n value={Array.isArray(value) ? value.join(',') : value}\n />\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-HIT33DXM.js';import {a as a$1}from'./chunk-CBFC4QME.js';import {b}from'./chunk-DVDHTP4C.js';import {jsxs,jsx}from'react/jsx-runtime';function u({handleIncrement:o,handleDecrement:a$2}){return jsxs(a,{className:"w-large-4x border-border-layer-2 rounded-r-small-1x bg-layer-2-hover flex flex-col items-center justify-center border",children:[jsx("button",{className:"flex h-1/2 items-center justify-center",type:"button",onClick:o,children:jsx(b,{className:"text-icon-neutral-3",name:"keyboard_arrow_up"})}),jsx(a$1,{}),jsx("button",{className:"flex h-1/2 items-center justify-center",type:"button",onClick:a$2,children:jsx(b,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})})]})}export{u as a};//# sourceMappingURL=chunk-2TVBY4IY.js.map
2
+ //# sourceMappingURL=chunk-2TVBY4IY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-numeric-stepper.tsx"],"names":["InputNumericStepper","handleIncrement","handleDecrement","jsxs","InputAction","jsx","Icon","Divider"],"mappings":"4JAIO,SAASA,CAAAA,CAAoB,CAClC,eAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,GACF,CAAA,CAGG,CACD,OACEC,IAAAA,CAACC,CAAAA,CAAA,CAAY,SAAA,CAAU,uHAAA,CACrB,QAAA,CAAA,CAAAC,GAAAA,CAAC,QAAA,CAAA,CACC,SAAA,CAAU,wCAAA,CACV,IAAA,CAAK,QAAA,CACL,OAAA,CAASJ,CAAAA,CAET,QAAA,CAAAI,GAAAA,CAACC,CAAAA,CAAA,CAAK,SAAA,CAAU,qBAAA,CAAsB,IAAA,CAAK,mBAAA,CAAoB,CAAA,CACjE,CAAA,CAEAD,GAAAA,CAACE,GAAAA,CAAA,EAAQ,CAAA,CAETF,GAAAA,CAAC,QAAA,CAAA,CACC,SAAA,CAAU,wCAAA,CACV,IAAA,CAAK,QAAA,CACL,OAAA,CAASH,GAAAA,CAET,QAAA,CAAAG,GAAAA,CAACC,CAAAA,CAAA,CAAK,SAAA,CAAU,qBAAA,CAAsB,IAAA,CAAK,qBAAA,CAAsB,CAAA,CACnE,GACF,CAEJ","file":"chunk-2TVBY4IY.js","sourcesContent":["import { Icon } from '../../icon'\nimport { Divider } from '../../divider'\nimport { InputAction } from './input-action'\n\nexport function InputNumericStepper({\n handleIncrement,\n handleDecrement\n}: {\n handleIncrement: () => void\n handleDecrement: () => void\n}) {\n return (\n <InputAction className=\"w-large-4x border-border-layer-2 rounded-r-small-1x bg-layer-2-hover flex flex-col items-center justify-center border\">\n <button\n className=\"flex h-1/2 items-center justify-center\"\n type=\"button\"\n onClick={handleIncrement}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"keyboard_arrow_up\" />\n </button>\n\n <Divider />\n\n <button\n className=\"flex h-1/2 items-center justify-center\"\n type=\"button\"\n onClick={handleDecrement}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"keyboard_arrow_down\" />\n </button>\n </InputAction>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {NumericFormat}from'react-number-format';import {jsx}from'react/jsx-runtime';var{value:l}=a();function u({className:e,placeholder:p,...i}){let{state:r,variant:m}=b();return jsx(NumericFormat,{className:l({className:e,state:r}),disabled:r==="disabled",placeholder:m==="filter"?" ":p,readOnly:r==="disabled",...i})}function f(e){return jsx(u,{allowNegative:false,decimalScale:2,decimalSeparator:",",fixedDecimalScale:true,inputMode:"decimal",thousandSeparator:".",...e})}export{u as a,f as b};//# sourceMappingURL=chunk-3DZWZLV3.js.map
2
+ //# sourceMappingURL=chunk-3DZWZLV3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-number.tsx"],"names":["value","input","InputNumber","className","placeholder","props","state","variant","useFieldContext","jsx","NumericFormat","InputCurrency"],"mappings":"4JAKA,GAAM,CAAE,KAAA,CAAAA,CAAM,EAAIC,CAAAA,EAAM,CAEjB,SAASC,CAAAA,CAAY,CAC1B,UAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAuB,CACrB,GAAM,CAAE,KAAA,CAAAC,EAAO,OAAA,CAAAC,CAAQ,CAAA,CAAIC,CAAAA,GAE3B,OACEC,GAAAA,CAACC,cAAA,CACC,SAAA,CAAWV,EAAM,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAG,CAAM,CAAC,CAAA,CACrC,SAAUA,CAAAA,GAAU,UAAA,CACpB,YAAaC,CAAAA,GAAY,QAAA,CAAW,GAAA,CAAMH,CAAAA,CAC1C,SAAUE,CAAAA,GAAU,UAAA,CACnB,GAAGD,CAAAA,CACN,CAEJ,CAEO,SAASM,CAAAA,CAAcN,CAAAA,CAA2C,CACvE,OACEI,GAAAA,CAACP,CAAAA,CAAA,CACC,aAAA,CAAe,KAAA,CACf,aAAc,CAAA,CACd,gBAAA,CAAiB,GAAA,CACjB,iBAAA,CAAmB,KACnB,SAAA,CAAU,SAAA,CACV,kBAAkB,GAAA,CACjB,GAAGG,EACN,CAEJ","file":"chunk-3DZWZLV3.js","sourcesContent":["import { NumericFormat, type NumericFormatProps } from 'react-number-format'\nimport type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { value } = input()\n\nexport function InputNumber({\n className,\n placeholder,\n ...props\n}: NumericFormatProps) {\n const { state, variant } = useFieldContext()\n\n return (\n <NumericFormat\n className={value({ className, state })}\n disabled={state === 'disabled'}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n {...props}\n />\n )\n}\n\nexport function InputCurrency(props: ComponentProps<typeof InputNumber>) {\n return (\n <InputNumber\n allowNegative={false}\n decimalScale={2}\n decimalSeparator=\",\"\n fixedDecimalScale={true}\n inputMode=\"decimal\"\n thousandSeparator=\".\"\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-EIG6CBTQ.js';import {jsx}from'react/jsx-runtime';function e(p){return jsx(a,{...p})}export{e as a};//# sourceMappingURL=chunk-3LWJK7RE.js.map
2
+ //# sourceMappingURL=chunk-3LWJK7RE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/select/select-option-text.tsx"],"names":["SelectOptionText","props","jsx","Typography"],"mappings":"wEAGO,SAASA,CAAAA,CAAiBC,CAAAA,CAA0C,CACzE,OAAOC,GAAAA,CAACC,CAAAA,CAAA,CAAY,GAAGF,CAAAA,CAAO,CAChC","file":"chunk-3LWJK7RE.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { Typography } from '../../typography'\n\nexport function SelectOptionText(props: ComponentProps<typeof Typography>) {\n return <Typography {...props} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ //# sourceMappingURL=chunk-3QA5HU4T.js.map
2
+ //# sourceMappingURL=chunk-3QA5HU4T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-3QA5HU4T.js"}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-5Z3AIBBS.js';import {b}from'./chunk-2JQVYVAT.js';import {a as a$1}from'./chunk-EIG6CBTQ.js';import {twJoin}from'@xjur-ui/util';import {useMemo}from'react';import {jsxs,jsx}from'react/jsx-runtime';function N({className:s,displayValue:o="",value:l,placeholder:t,...m}){let{variant:r}=b(),p=useMemo(()=>r==="filter"?o:o||t,[o,t,r]);return jsxs("div",{className:"grid w-full items-center",children:[t&&r==="filter"&&jsx(a,{children:t}),t&&r==="filter"&&jsx(a$1,{className:"invisible col-start-1 row-start-1 self-center",children:t}),jsx(a$1,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:p}),jsx("input",{...m,"aria-readonly":true,className:twJoin("pointer-events-none",s),hidden:true,placeholder:" ",readOnly:true,value:l??""})]})}export{N as a};//# sourceMappingURL=chunk-3RD2PGPH.js.map
2
+ //# sourceMappingURL=chunk-3RD2PGPH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/select/select-value.tsx"],"names":["SelectValue","className","displayValue","value","placeholder","props","variant","useFieldContext","valueOrPlaceholder","useMemo","jsxs","jsx","FloatingLabel","Typography","twJoin"],"mappings":"2NAMO,SAASA,CAAAA,CAAY,CAC1B,SAAA,CAAAC,CAAAA,CACA,aAAAC,CAAAA,CAAe,EAAA,CACf,KAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAwD,CACtD,GAAM,CAAE,QAAAC,CAAQ,CAAA,CAAIC,CAAAA,EAAgB,CAE9BC,CAAAA,CAAqBC,OAAAA,CAAQ,IAC7BH,CAAAA,GAAY,QAAA,CAAiBJ,CAAAA,CAC1BA,CAAAA,EAAgBE,CAAAA,CACtB,CAACF,EAAcE,CAAAA,CAAaE,CAAO,CAAC,CAAA,CAEvC,OACEI,IAAAA,CAAC,OAAI,SAAA,CAAU,0BAAA,CACZ,UAAAN,CAAAA,EAAeE,CAAAA,GAAY,UAC1BK,GAAAA,CAACC,CAAAA,CAAA,CAAe,QAAA,CAAAR,CAAAA,CAAY,CAAA,CAG7BA,GAAeE,CAAAA,GAAY,QAAA,EAC1BK,GAAAA,CAACE,GAAAA,CAAA,CAAW,SAAA,CAAU,gDACnB,QAAA,CAAAT,CAAAA,CACH,CAAA,CAGFO,GAAAA,CAACE,GAAAA,CAAA,CAAW,UAAU,sEAAA,CACnB,QAAA,CAAAL,CAAAA,CACH,CAAA,CAEAG,GAAAA,CAAC,OAAA,CAAA,CACE,GAAGN,CAAAA,CACJ,eAAA,CAAe,IAAA,CACf,SAAA,CAAWS,MAAAA,CAAO,qBAAA,CAAuBb,CAAS,CAAA,CAClD,MAAA,CAAQ,IAAA,CACR,WAAA,CAAa,GAAA,CACb,QAAA,CAAU,KACV,KAAA,CAAOE,CAAAA,EAAS,EAAA,CAClB,CAAA,CAAA,CACF,CAEJ","file":"chunk-3RD2PGPH.js","sourcesContent":["import { twJoin } from '@xjur-ui/util'\nimport { useMemo, type ComponentProps } from 'react'\nimport { Typography } from '../../typography'\nimport { useFieldContext } from '../context/field.context'\nimport { FloatingLabel } from '../floating-label'\n\nexport function SelectValue({\n className,\n displayValue = '',\n value,\n placeholder,\n ...props\n}: ComponentProps<'input'> & { displayValue?: string }) {\n const { variant } = useFieldContext()\n\n const valueOrPlaceholder = useMemo(() => {\n if (variant === 'filter') return displayValue\n return displayValue || placeholder\n }, [displayValue, placeholder, variant])\n\n return (\n <div className=\"grid w-full items-center\">\n {placeholder && variant === 'filter' && (\n <FloatingLabel>{placeholder}</FloatingLabel>\n )}\n\n {placeholder && variant === 'filter' && (\n <Typography className=\"invisible col-start-1 row-start-1 self-center\">\n {placeholder}\n </Typography>\n )}\n\n <Typography className=\"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left\">\n {valueOrPlaceholder}\n </Typography>\n\n <input\n {...props}\n aria-readonly={true}\n className={twJoin('pointer-events-none', className)}\n hidden={true}\n placeholder={' '}\n readOnly={true}\n value={value ?? ''}\n />\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {tv}from'@xjur-ui/util';var t=tv({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x relative","inline-flex w-auto items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-hover border border-transparent","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:"flex w-full",value:"text-size-body-md font-normal placeholder:text-neutral-placeholder flex-1 outline-none",icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal",action:"h-large-4x overflow-hidden"},variants:{state:{normal:{trigger:"hover:border-border-layer-1 focus-within:border-primary-idle focus-within:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle focus-within:border-danger-idle focus-within:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}});export{t as a};//# sourceMappingURL=chunk-4GDW5WIQ.js.map
2
+ //# sourceMappingURL=chunk-4GDW5WIQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-styles.ts"],"names":["input","tv"],"mappings":"+BAEO,IAAMA,CAAAA,CAAQC,EAAAA,CAAG,CACtB,KAAA,CAAO,CACL,OAAA,CAAS,kCAAA,CACT,OAAA,CAAS,CACP,sBACA,4DAAA,CACA,0BAAA,CACA,4CAAA,CACA,6DAAA,CACA,6BACF,CAAA,CACA,OAAA,CAAS,aAAA,CACT,KAAA,CACE,wFAAA,CACF,IAAA,CAAM,iEAAA,CACN,QAAA,CACE,0FAAA,CACF,QAAS,gCAAA,CACT,MAAA,CAAQ,4BACV,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,MAAA,CAAQ,CACN,OAAA,CACE,qGACJ,CAAA,CACA,KAAA,CAAO,CACL,OAAA,CACE,mHAAA,CACF,OAAA,CAAS,wBACX,CAAA,CACA,QAAA,CAAU,CACR,OAAA,CAAS,wDACX,CACF,CACF,CACF,CAAC","file":"chunk-4GDW5WIQ.js","sourcesContent":["import { tv } from '@xjur-ui/util'\n\nexport const input = tv({\n slots: {\n wrapper: 'group flex flex-col gap-small-2x',\n trigger: [\n 'h-large-4x relative',\n 'inline-flex w-auto items-center gap-small rounded-small-1x',\n 'py-small_1x-alt px-small',\n 'bg-layer-2-hover border border-transparent',\n 'group-has-[div[data-slot=input-action-slot]]:rounded-r-none',\n 'transition-all duration-200'\n ],\n content: 'flex w-full',\n value:\n 'text-size-body-md font-normal placeholder:text-neutral-placeholder flex-1 outline-none',\n icon: 'size-large text-icon-neutral-3 flex items-center justify-center',\n slotText:\n 'size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder',\n caption: '!text-size-body-sm font-normal',\n action: 'h-large-4x overflow-hidden'\n },\n variants: {\n state: {\n normal: {\n trigger:\n 'hover:border-border-layer-1 focus-within:border-primary-idle focus-within:hover:border-primary-idle'\n },\n error: {\n trigger:\n 'border-danger-idle hover:border-danger-idle focus-within:border-danger-idle focus-within:hover:border-danger-idle',\n caption: 'text-danger-label-idle'\n },\n disabled: {\n trigger: 'pointer-events-none border-transparent bg-layer-2-idle'\n }\n }\n }\n})\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$1}from'./chunk-OKSGVAQQ.js';import {o,f}from'./chunk-EXC2XOL6.js';import {b as b$1}from'./chunk-SXGSWVMZ.js';import {b as b$2}from'./chunk-M6ZI7M3R.js';import {b as b$3}from'./chunk-DVDHTP4C.js';import {a}from'./chunk-EIG6CBTQ.js';import {useMemo,Fragment}from'react';import {useDroppable}from'@dnd-kit/core';import {tv,cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function b(r){return +f(r)<Date.now()}var j=tv({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function Q({cell:r,events:t}){let{date:e,type:n}=r,{renderEvent:D,activeEventId:m,onAddEvent:c,disableEventCreationInPast:p}=b$1(),f=useMemo(()=>t.slice(0,2),[t]),E=t.length>=3,{isOver:N,setNodeRef:I}=useDroppable({id:`calendar-cell-${n}-${e.toISOString()}`,data:{date:e,type:n}}),w=useMemo(()=>{let l=t.find(o=>o.id===m);if(!l)return false;let u=o=>o.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),T=u(e),k=u(l.eventDate);return T===k},[m,e,t]),P=j({type:n}),S=useMemo(()=>p&&b(e)&&!o(e),[p,e]);return jsxs("div",{className:P,"data-slot":"calendar-cell",ref:I,children:[n==="month"&&jsx("div",{className:"flex items-center justify-center",children:jsx("div",{className:cx("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",o(e)&&"bg-primary-idle text-neutral-label"),children:jsx(a,{size:"sm",variant:"label",weight:"medium",children:r.date.getDate()})})}),jsxs("div",{className:"gap-small-1x flex flex-col",children:[f.map(l=>jsx(Fragment,{children:D(l)},l.id)),N&&f.length<2&&!w&&jsx("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),jsxs("div",{className:"mt-auto flex items-center justify-between",children:[E&&jsx(a$1,{events:t.slice(2)}),c&&!S&&jsx("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:jsx(b$2,{size:"icon_sm",variant:"outlined",onClick:()=>c(e),children:jsx(b$3,{className:"text-icon-neutral-3",name:"add"})})})]})]})}export{Q as a};//# sourceMappingURL=chunk-TTKENFBF.js.map
2
- //# sourceMappingURL=chunk-TTKENFBF.js.map
1
+ import {a as a$1}from'./chunk-OWFC7RTB.js';import {o,f}from'./chunk-EXC2XOL6.js';import {b as b$1}from'./chunk-SXGSWVMZ.js';import {b as b$2}from'./chunk-M6ZI7M3R.js';import {b as b$3}from'./chunk-DVDHTP4C.js';import {a}from'./chunk-EIG6CBTQ.js';import {useMemo,Fragment}from'react';import {useDroppable}from'@dnd-kit/core';import {tv,cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function b(r){return +f(r)<Date.now()}var j=tv({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function Q({cell:r,events:t}){let{date:e,type:n}=r,{renderEvent:D,activeEventId:m,onAddEvent:c,disableEventCreationInPast:p}=b$1(),f=useMemo(()=>t.slice(0,2),[t]),E=t.length>=3,{isOver:N,setNodeRef:I}=useDroppable({id:`calendar-cell-${n}-${e.toISOString()}`,data:{date:e,type:n}}),w=useMemo(()=>{let l=t.find(o=>o.id===m);if(!l)return false;let u=o=>o.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),T=u(e),k=u(l.eventDate);return T===k},[m,e,t]),P=j({type:n}),S=useMemo(()=>p&&b(e)&&!o(e),[p,e]);return jsxs("div",{className:P,"data-slot":"calendar-cell",ref:I,children:[n==="month"&&jsx("div",{className:"flex items-center justify-center",children:jsx("div",{className:cx("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",o(e)&&"bg-primary-idle text-neutral-label"),children:jsx(a,{size:"sm",variant:"label",weight:"medium",children:r.date.getDate()})})}),jsxs("div",{className:"gap-small-1x flex flex-col",children:[f.map(l=>jsx(Fragment,{children:D(l)},l.id)),N&&f.length<2&&!w&&jsx("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),jsxs("div",{className:"mt-auto flex items-center justify-between",children:[E&&jsx(a$1,{events:t.slice(2)}),c&&!S&&jsx("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:jsx(b$2,{size:"icon_sm",variant:"outlined",onClick:()=>c(e),children:jsx(b$3,{className:"text-icon-neutral-3",name:"add"})})})]})]})}export{Q as a};//# sourceMappingURL=chunk-4NBJXNQ7.js.map
2
+ //# sourceMappingURL=chunk-4NBJXNQ7.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/date-fns/isPast.js","../src/components/full-calendar/calendar-cell.tsx"],"names":["isPast","date","toDate","calendarCellVariants","tv","CalendarCell","cell","events","type","renderEvent","activeEventId","onAddEvent","disableEventCreationInPast","useFullCalendar","eventsToShow","useMemo","hasMore","isOver","setNodeRef","useDroppable","isDraggingInCell","cellEvent","event","formatDate","cellDate","cellEventDate","calendarCellClassNames","disableEventCreation","isToday","jsxs","jsx","cx","Typography","Fragment","CalendarMoreEventsDropdown","Button","Icon"],"mappings":"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","file":"chunk-TTKENFBF.js","sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name isPast\n * @category Common Helpers\n * @summary Is the given date in the past?\n * @pure false\n *\n * @description\n * Is the given date in the past?\n *\n * @param date - The date to check\n *\n * @returns The date is in the past\n *\n * @example\n * // If today is 6 October 2014, is 2 July 2014 in the past?\n * const result = isPast(new Date(2014, 6, 2))\n * //=> true\n */\nexport function isPast(date) {\n return +toDate(date) < Date.now();\n}\n\n// Fallback for modularized imports:\nexport default isPast;\n","import { Fragment, useMemo } from 'react'\nimport { useDroppable } from '@dnd-kit/core'\nimport { cx, tv } from '@xjur-ui/util'\nimport { isPast } from 'date-fns'\nimport { Typography } from '../typography'\nimport { Button } from '../controls/button'\nimport { Icon } from '../icon'\nimport { isToday } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport type { ICalendarCell } from './types/calendar-cell'\nimport type { ICalendarEvent } from './types/calendar-event'\nimport { CalendarMoreEventsDropdown } from './calendar-more-events-dropdown'\n\ninterface CalendarCellProps {\n events: ICalendarEvent[]\n cell: ICalendarCell\n}\n\nconst calendarCellVariants = tv({\n base: 'group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ',\n variants: {\n type: {\n month: 'h-[212px]',\n week: 'min-h-[64px] max-h-[212px]',\n day: 'min-h-[64px] max-h-[212px]'\n }\n }\n})\n\nexport function CalendarCell({ cell, events }: CalendarCellProps) {\n const { date, type } = cell\n\n const { renderEvent, activeEventId, onAddEvent, disableEventCreationInPast } =\n useFullCalendar()\n const eventsToShow = useMemo(() => events.slice(0, 2), [events])\n const hasMore = events.length >= 3\n\n const { isOver, setNodeRef } = useDroppable({\n id: `calendar-cell-${type}-${date.toISOString()}`,\n data: {\n date,\n type\n }\n })\n\n const isDraggingInCell = useMemo(() => {\n const cellEvent = events.find(event => event.id === activeEventId)\n\n if (!cellEvent) return false\n\n const formatDate = (date: Date) => {\n return date.toLocaleDateString('pt-BR', {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit'\n })\n }\n\n const cellDate = formatDate(date)\n const cellEventDate = formatDate(cellEvent.eventDate)\n\n return cellDate === cellEventDate\n }, [activeEventId, date, events])\n\n const calendarCellClassNames = calendarCellVariants({ type })\n\n const disableEventCreation = useMemo(\n () => disableEventCreationInPast && isPast(date) && !isToday(date),\n [disableEventCreationInPast, date]\n )\n\n return (\n <div\n className={calendarCellClassNames}\n data-slot=\"calendar-cell\"\n ref={setNodeRef}\n >\n {type === 'month' && (\n <div className=\"flex items-center justify-center\">\n <div\n className={cx(\n 'size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center',\n isToday(date) && 'bg-primary-idle text-neutral-label'\n )}\n >\n <Typography size=\"sm\" variant=\"label\" weight=\"medium\">\n {cell.date.getDate()}\n </Typography>\n </div>\n </div>\n )}\n\n <div className=\"gap-small-1x flex flex-col\">\n {eventsToShow.map(event => (\n <Fragment key={event.id}>{renderEvent(event)}</Fragment>\n ))}\n\n {isOver && eventsToShow.length < 2 && !isDraggingInCell && (\n <div className=\"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed\" />\n )}\n </div>\n\n <div className=\"mt-auto flex items-center justify-between\">\n {hasMore && <CalendarMoreEventsDropdown events={events.slice(2)} />}\n\n {onAddEvent && !disableEventCreation && (\n <div className=\"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible\">\n <Button\n size=\"icon_sm\"\n variant=\"outlined\"\n onClick={() => onAddEvent(date)}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"add\" />\n </Button>\n </div>\n )}\n </div>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/date-fns/isPast.js","../src/components/full-calendar/calendar-cell.tsx"],"names":["isPast","date","toDate","calendarCellVariants","tv","CalendarCell","cell","events","type","renderEvent","activeEventId","onAddEvent","disableEventCreationInPast","useFullCalendar","eventsToShow","useMemo","hasMore","isOver","setNodeRef","useDroppable","isDraggingInCell","cellEvent","event","formatDate","cellDate","cellEventDate","calendarCellClassNames","disableEventCreation","isToday","jsxs","jsx","cx","Typography","Fragment","CalendarMoreEventsDropdown","Button","Icon"],"mappings":"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","file":"chunk-4NBJXNQ7.js","sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name isPast\n * @category Common Helpers\n * @summary Is the given date in the past?\n * @pure false\n *\n * @description\n * Is the given date in the past?\n *\n * @param date - The date to check\n *\n * @returns The date is in the past\n *\n * @example\n * // If today is 6 October 2014, is 2 July 2014 in the past?\n * const result = isPast(new Date(2014, 6, 2))\n * //=> true\n */\nexport function isPast(date) {\n return +toDate(date) < Date.now();\n}\n\n// Fallback for modularized imports:\nexport default isPast;\n","import { Fragment, useMemo } from 'react'\nimport { useDroppable } from '@dnd-kit/core'\nimport { cx, tv } from '@xjur-ui/util'\nimport { isPast } from 'date-fns'\nimport { Typography } from '../typography'\nimport { Button } from '../controls/button'\nimport { Icon } from '../icon'\nimport { isToday } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport type { ICalendarCell } from './types/calendar-cell'\nimport type { ICalendarEvent } from './types/calendar-event'\nimport { CalendarMoreEventsDropdown } from './calendar-more-events-dropdown'\n\ninterface CalendarCellProps {\n events: ICalendarEvent[]\n cell: ICalendarCell\n}\n\nconst calendarCellVariants = tv({\n base: 'group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ',\n variants: {\n type: {\n month: 'h-[212px]',\n week: 'min-h-[64px] max-h-[212px]',\n day: 'min-h-[64px] max-h-[212px]'\n }\n }\n})\n\nexport function CalendarCell({ cell, events }: CalendarCellProps) {\n const { date, type } = cell\n\n const { renderEvent, activeEventId, onAddEvent, disableEventCreationInPast } =\n useFullCalendar()\n const eventsToShow = useMemo(() => events.slice(0, 2), [events])\n const hasMore = events.length >= 3\n\n const { isOver, setNodeRef } = useDroppable({\n id: `calendar-cell-${type}-${date.toISOString()}`,\n data: {\n date,\n type\n }\n })\n\n const isDraggingInCell = useMemo(() => {\n const cellEvent = events.find(event => event.id === activeEventId)\n\n if (!cellEvent) return false\n\n const formatDate = (date: Date) => {\n return date.toLocaleDateString('pt-BR', {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit'\n })\n }\n\n const cellDate = formatDate(date)\n const cellEventDate = formatDate(cellEvent.eventDate)\n\n return cellDate === cellEventDate\n }, [activeEventId, date, events])\n\n const calendarCellClassNames = calendarCellVariants({ type })\n\n const disableEventCreation = useMemo(\n () => disableEventCreationInPast && isPast(date) && !isToday(date),\n [disableEventCreationInPast, date]\n )\n\n return (\n <div\n className={calendarCellClassNames}\n data-slot=\"calendar-cell\"\n ref={setNodeRef}\n >\n {type === 'month' && (\n <div className=\"flex items-center justify-center\">\n <div\n className={cx(\n 'size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center',\n isToday(date) && 'bg-primary-idle text-neutral-label'\n )}\n >\n <Typography size=\"sm\" variant=\"label\" weight=\"medium\">\n {cell.date.getDate()}\n </Typography>\n </div>\n </div>\n )}\n\n <div className=\"gap-small-1x flex flex-col\">\n {eventsToShow.map(event => (\n <Fragment key={event.id}>{renderEvent(event)}</Fragment>\n ))}\n\n {isOver && eventsToShow.length < 2 && !isDraggingInCell && (\n <div className=\"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed\" />\n )}\n </div>\n\n <div className=\"mt-auto flex items-center justify-between\">\n {hasMore && <CalendarMoreEventsDropdown events={events.slice(2)} />}\n\n {onAddEvent && !disableEventCreation && (\n <div className=\"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible\">\n <Button\n size=\"icon_sm\"\n variant=\"outlined\"\n onClick={() => onAddEvent(date)}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"add\" />\n </Button>\n </div>\n )}\n </div>\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {Slot}from'@radix-ui/react-slot';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function a({className:o,asChild:p,...m}){return jsx(p?Slot:"div",{...m,className:cx(o,"px-small pt-small-1x")})}export{a};//# sourceMappingURL=chunk-4ZEXJODE.js.map
2
+ //# sourceMappingURL=chunk-4ZEXJODE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/list/list-header.tsx"],"names":["ListHeader","className","asChild","props","jsx","Slot","cx"],"mappings":"2GAIO,SAASA,CAAAA,CAAW,CACzB,SAAA,CAAAC,EACA,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEG,CAED,OAAOC,GAAAA,CADMF,EAAUG,IAAAA,CAAO,KAAA,CACtB,CAAM,GAAGF,EAAO,SAAA,CAAWG,EAAAA,CAAGL,CAAAA,CAAW,sBAAsB,EAAG,CAC5E","file":"chunk-4ZEXJODE.js","sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cx } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\n\nexport function ListHeader({\n className,\n asChild,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : 'div'\n return <Comp {...props} className={cx(className, 'px-small pt-small-1x')} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-EIG6CBTQ.js';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function s({variant:e="label",size:p="sm",weight:o="medium",className:t,...a$1}){return jsx(a,{className:cx(t,"text-neutral-placeholder"),size:p,variant:e,weight:o,...a$1})}export{s as a};//# sourceMappingURL=chunk-5CA552M6.js.map
2
+ //# sourceMappingURL=chunk-5CA552M6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/list/list-header-title.tsx"],"names":["ListHeaderTitle","variant","size","weight","className","props","jsx","Typography","cx"],"mappings":"uGAGO,SAASA,CAAAA,CAAgB,CAC9B,OAAA,CAAAC,CAAAA,CAAU,QACV,IAAA,CAAAC,CAAAA,CAAO,KACP,MAAA,CAAAC,CAAAA,CAAS,SACT,SAAA,CAAAC,CAAAA,CACA,GAAGC,GACL,EAAoB,CAClB,OACEC,IAACC,CAAAA,CAAA,CACC,UAAWC,EAAAA,CAAGJ,CAAAA,CAAW,0BAA0B,CAAA,CACnD,IAAA,CAAMF,EACN,OAAA,CAASD,CAAAA,CACT,OAAQE,CAAAA,CACP,GAAGE,IACN,CAEJ","file":"chunk-5CA552M6.js","sourcesContent":["import { cx } from '@xjur-ui/util'\nimport { type TypographyProps, Typography } from '../typography'\n\nexport function ListHeaderTitle({\n variant = 'label',\n size = 'sm',\n weight = 'medium',\n className,\n ...props\n}: TypographyProps) {\n return (\n <Typography\n className={cx(className, 'text-neutral-placeholder')}\n size={size}\n variant={variant}\n weight={weight}\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-2JQVYVAT.js';import {tv}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function d({className:e,htmlFor:a,children:l,...n}){let{state:s}=b(),r=tv({base:["group inline-block max-w-full truncate text-left","ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250","text-size-body-md","group-focus-within:-top-[3px]","group-data-[state=open]:-top-[3px]","group-focus-within:text-size-label-sm-1x group-focus-within:font-medium","group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium","group-has-[input:not(:placeholder-shown)]:-top-[3px]","group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x","group-has-[input:not(:placeholder-shown)]:font-medium","group-has-[div[data-slot=control-left-slot]]:left-large-4x","group-has-[div[data-slot=control-left-slot]]:group-focus-within:left-small","group-has-[div[data-slot=control-left-slot]]:group-has-[input:not(:placeholder-shown)]:left-small","group-has-[div[data-slot=control-left-slot]]:group-data-[state=open]:left-small","group-focus-within:animate-in","group-has-[input:not(:placeholder-shown)]:animate-out","data-[disabled=true]:hidden"],variants:{state:{normal:["group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle","group-has-[input:not(:placeholder-shown)]:!text-primary-idle"],error:["group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active","group-has-[input:not(:placeholder-shown)]:!text-danger-label-active"],disabled:[]}}});return jsx("label",{className:r({className:e,state:s}),htmlFor:a,...n,children:jsx("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:l})})}export{d as a};//# sourceMappingURL=chunk-5Z3AIBBS.js.map
2
+ //# sourceMappingURL=chunk-5Z3AIBBS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/controls/floating-label.tsx"],"names":["FloatingLabel","className","htmlFor","children","props","state","useFieldContext","label","tv","jsx"],"mappings":"uGAIO,SAASA,EAAc,CAC5B,SAAA,CAAAC,EACA,OAAA,CAAAC,CAAAA,CACA,SAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA4B,CAC1B,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAEZC,CAAAA,CAAQC,EAAAA,CAAG,CACf,IAAA,CAAM,CACJ,mDACA,0HAAA,CACA,mBAAA,CAEA,gCACA,oCAAA,CAEA,yEAAA,CACA,oFAEA,sDAAA,CACA,iEAAA,CACA,wDAEA,uDAAA,CACA,uEAAA,CACA,8FAAA,CACA,4EAAA,CAEA,+BAAA,CACA,uDAAA,CACA,6BACF,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,OAAQ,CACN,kFAAA,CACA,8DACF,CAAA,CACA,KAAA,CAAO,CACL,gGAAA,CACA,qEACF,EACA,QAAA,CAAU,EACZ,CACF,CACF,CAAC,CAAA,CAED,OACEC,IAAC,OAAA,CAAA,CAAM,SAAA,CAAWF,EAAM,CAAE,SAAA,CAAAN,EAAW,KAAA,CAAAI,CAAM,CAAC,CAAA,CAAG,OAAA,CAASH,EAAU,GAAGE,CAAAA,CACnE,SAAAK,GAAAA,CAAC,MAAA,CAAA,CAAK,UAAU,6CAAA,CACb,QAAA,CAAAN,CAAAA,CACH,CAAA,CACF,CAEJ","file":"chunk-JGPHBUVM.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { tv } from '@xjur-ui/util'\nimport { useFieldContext } from './context/field.context'\n\nexport function FloatingLabel({\n className,\n htmlFor,\n children,\n ...props\n}: ComponentProps<'label'>) {\n const { state } = useFieldContext()\n\n const label = tv({\n base: [\n 'group inline-block max-w-full truncate text-left',\n 'ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250',\n 'text-size-body-md',\n // Filled\n 'group-focus-within:-top-[3px]',\n 'group-data-[state=open]:-top-[3px]',\n\n 'group-focus-within:text-size-label-sm-1x group-focus-within:font-medium',\n 'group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium',\n\n 'group-has-[input:not(:placeholder-shown)]:-top-[3px]',\n 'group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x',\n 'group-has-[input:not(:placeholder-shown)]:font-medium',\n // If has left slot\n 'group-has-[div[data-slot=control-slot]]:left-large-4x',\n 'group-has-[div[data-slot=control-slot]]:group-focus-within:left-small',\n 'group-has-[div[data-slot=control-slot]]:group-has-[input:not(:placeholder-shown)]:left-small',\n 'group-has-[div[data-slot=control-slot]]:group-data-[state=open]:left-small',\n // Animate\n 'group-focus-within:animate-in',\n 'group-has-[input:not(:placeholder-shown)]:animate-out',\n 'data-[disabled=true]:hidden'\n ],\n variants: {\n state: {\n normal: [\n 'group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle',\n 'group-has-[input:not(:placeholder-shown)]:!text-primary-idle'\n ],\n error: [\n 'group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active',\n 'group-has-[input:not(:placeholder-shown)]:!text-danger-label-active'\n ],\n disabled: []\n }\n }\n })\n\n return (\n <label className={label({ className, state })} htmlFor={htmlFor} {...props}>\n <span className=\"rounded-small-1x bg-layer-2-idle max-w-full\">\n {children}\n </span>\n </label>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/components/controls/floating-label.tsx"],"names":["FloatingLabel","className","htmlFor","children","props","state","useFieldContext","label","tv","jsx"],"mappings":"uGAIO,SAASA,EAAc,CAC5B,SAAA,CAAAC,EACA,OAAA,CAAAC,CAAAA,CACA,SAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA4B,CAC1B,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAEZC,CAAAA,CAAQC,EAAAA,CAAG,CACf,IAAA,CAAM,CACJ,mDACA,0HAAA,CACA,mBAAA,CAEA,gCACA,oCAAA,CAEA,yEAAA,CACA,oFAEA,sDAAA,CACA,iEAAA,CACA,wDAEA,4DAAA,CACA,4EAAA,CACA,mGAAA,CACA,iFAAA,CAEA,+BAAA,CACA,uDAAA,CACA,6BACF,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,OAAQ,CACN,kFAAA,CACA,8DACF,CAAA,CACA,KAAA,CAAO,CACL,gGAAA,CACA,qEACF,EACA,QAAA,CAAU,EACZ,CACF,CACF,CAAC,CAAA,CAED,OACEC,IAAC,OAAA,CAAA,CAAM,SAAA,CAAWF,EAAM,CAAE,SAAA,CAAAN,EAAW,KAAA,CAAAI,CAAM,CAAC,CAAA,CAAG,OAAA,CAASH,EAAU,GAAGE,CAAAA,CACnE,SAAAK,GAAAA,CAAC,MAAA,CAAA,CAAK,UAAU,6CAAA,CACb,QAAA,CAAAN,CAAAA,CACH,CAAA,CACF,CAEJ","file":"chunk-5Z3AIBBS.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { tv } from '@xjur-ui/util'\nimport { useFieldContext } from './context/field.context'\n\nexport function FloatingLabel({\n className,\n htmlFor,\n children,\n ...props\n}: ComponentProps<'label'>) {\n const { state } = useFieldContext()\n\n const label = tv({\n base: [\n 'group inline-block max-w-full truncate text-left',\n 'ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250',\n 'text-size-body-md',\n // Filled\n 'group-focus-within:-top-[3px]',\n 'group-data-[state=open]:-top-[3px]',\n\n 'group-focus-within:text-size-label-sm-1x group-focus-within:font-medium',\n 'group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium',\n\n 'group-has-[input:not(:placeholder-shown)]:-top-[3px]',\n 'group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x',\n 'group-has-[input:not(:placeholder-shown)]:font-medium',\n // If has left slot\n 'group-has-[div[data-slot=control-left-slot]]:left-large-4x',\n 'group-has-[div[data-slot=control-left-slot]]:group-focus-within:left-small',\n 'group-has-[div[data-slot=control-left-slot]]:group-has-[input:not(:placeholder-shown)]:left-small',\n 'group-has-[div[data-slot=control-left-slot]]:group-data-[state=open]:left-small',\n // Animate\n 'group-focus-within:animate-in',\n 'group-has-[input:not(:placeholder-shown)]:animate-out',\n 'data-[disabled=true]:hidden'\n ],\n variants: {\n state: {\n normal: [\n 'group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle',\n 'group-has-[input:not(:placeholder-shown)]:!text-primary-idle'\n ],\n error: [\n 'group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active',\n 'group-has-[input:not(:placeholder-shown)]:!text-danger-label-active'\n ],\n disabled: []\n }\n }\n })\n\n return (\n <label className={label({ className, state })} htmlFor={htmlFor} {...props}>\n <span className=\"rounded-small-1x bg-layer-2-idle max-w-full\">\n {children}\n </span>\n </label>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$1}from'./chunk-XPC3GTK7.js';import {a as a$3}from'./chunk-5CA552M6.js';import {a as a$2}from'./chunk-4ZEXJODE.js';import {a as a$4}from'./chunk-NQFPNHFQ.js';import {a}from'./chunk-PN2PHVKQ.js';import {a as a$6}from'./chunk-CBFC4QME.js';import {a as a$5}from'./chunk-EIG6CBTQ.js';import'react';import*as e from'@radix-ui/react-dropdown-menu';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function x({...o}){return jsx(e.Root,{"data-slot":"dropdown-menu",...o})}function C({...o}){return jsx(e.Portal,{"data-slot":"dropdown-menu-portal",...o})}function R({...o}){return jsx(e.Trigger,{"data-slot":"dropdown-menu-trigger",...o})}function y({className:o,sideOffset:r=4,align:w="start",side:f="bottom",children:P,...c}){return jsx(e.Portal,{children:jsx(e.Content,{align:w,className:cx("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-trigger-width)] min-w-[var(--radix-popover-trigger-width)]",o),"data-slot":"dropdown-menu-content",side:f,sideOffset:r,...c,children:jsx(a,{children:P})})})}function L({...o}){return jsx(a$1,{...o})}function T({...o}){return jsx(a$2,{...o})}function h({...o}){return jsx(a$3,{...o})}function H({className:o,...r}){return jsx(a$4,{className:cx(o,"cursor-pointer"),...r})}function I({...o}){return jsx(a$5,{...o})}function b({...o}){return jsx(a$6,{...o})}export{x as a,C as b,R as c,y as d,L as e,T as f,h as g,H as h,I as i,b as j};//# sourceMappingURL=chunk-6EDRVSCQ.js.map
2
+ //# sourceMappingURL=chunk-6EDRVSCQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/dropdown-menu.tsx"],"names":["DropdownMenuRoot","props","jsx","DropdownMenuPortal","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","align","side","children","cx","ListRoot","DropdownMenuList","ListContent","DropdownMenuHeader","ListHeader","DropdownMenuHeaderTitle","ListHeaderTitle","DropdownMenuItem","ListItem","DropdownMenuItemText","Typography","DropdownMenuItemDivider","Divider"],"mappings":"iRAaO,SAASA,CAAAA,CAAiB,CAC/B,GAAGC,CACL,CAAA,CAA4D,CAC1D,OAAOC,GAAAA,CAAuB,CAAA,CAAA,IAAA,CAAtB,CAA2B,WAAA,CAAU,eAAA,CAAiB,GAAGD,CAAAA,CAAO,CAC1E,CAEO,SAASE,CAAAA,CAAmB,CACjC,GAAGF,CACL,CAAA,CAA8D,CAC5D,OACEC,GAAAA,CAAuB,SAAtB,CAA6B,WAAA,CAAU,sBAAA,CAAwB,GAAGD,CAAAA,CAAO,CAE9E,CAEO,SAASG,CAAAA,CAAoB,CAClC,GAAGH,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,UAAtB,CACC,WAAA,CAAU,wBACT,GAAGD,CAAAA,CACN,CAEJ,CAEO,SAASI,CAAAA,CAAoB,CAClC,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAA,CACb,KAAA,CAAAC,EAAQ,OAAA,CACR,IAAA,CAAAC,CAAAA,CAAO,QAAA,CACP,QAAA,CAAAC,CAAAA,CACA,GAAGT,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,SAAtB,CACC,QAAA,CAAAA,GAAAA,CAAuB,CAAA,CAAA,OAAA,CAAtB,CACC,KAAA,CAAOM,EACP,SAAA,CAAWG,EAAAA,CACT,0JAAA,CACAL,CACF,CAAA,CACA,WAAA,CAAU,wBACV,IAAA,CAAMG,CAAAA,CACN,UAAA,CAAYF,CAAAA,CACX,GAAGN,CAAAA,CAEJ,SAAAC,GAAAA,CAACU,CAAAA,CAAA,CAAU,QAAA,CAAAF,CAAAA,CAAS,EACtB,CAAA,CACF,CAEJ,CAEO,SAASG,CAAAA,CAAiB,CAC/B,GAAGZ,CACL,CAAA,CAA6C,CAC3C,OAAOC,GAAAA,CAACY,EAAA,CAAa,GAAGb,CAAAA,CAAO,CACjC,CAEO,SAASc,EAAmB,CACjC,GAAGd,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACc,GAAAA,CAAA,CAAY,GAAGf,CAAAA,CAAO,CAChC,CAEO,SAASgB,CAAAA,CAAwB,CACtC,GAAGhB,CACL,CAAA,CAAiD,CAC/C,OAAOC,GAAAA,CAACgB,CAAAA,CAAA,CAAiB,GAAGjB,CAAAA,CAAO,CACrC,CAEO,SAASkB,EAAiB,CAC/B,SAAA,CAAAb,EACA,GAAGL,CACL,CAAA,CAA0C,CACxC,OAAOC,GAAAA,CAACkB,IAAA,CAAS,SAAA,CAAWT,EAAAA,CAAGL,CAAAA,CAAW,gBAAgB,CAAA,CAAI,GAAGL,CAAAA,CAAO,CAC1E,CAEO,SAASoB,CAAAA,CAAqB,CACnC,GAAGpB,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACoB,IAAA,CAAY,GAAGrB,CAAAA,CAAO,CAChC,CAEO,SAASsB,EAAwB,CACtC,GAAGtB,CACL,CAAA,CAAyC,CACvC,OAAOC,IAACsB,GAAAA,CAAA,CAAS,GAAGvB,CAAAA,CAAO,CAC7B","file":"chunk-6PHXO2YA.js","sourcesContent":["import * as React from 'react'\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { cx } from '@xjur-ui/util'\nimport {\n ListContent,\n ListHeader,\n ListHeaderTitle,\n ListItem,\n ListRoot\n} from './list'\nimport { Typography } from './typography'\nimport { Divider } from './divider'\n\nexport function DropdownMenuRoot({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />\n}\n\nexport function DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return (\n <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />\n )\n}\n\nexport function DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n )\n}\n\nexport function DropdownMenuContent({\n className,\n sideOffset = 4,\n align = 'start',\n side = 'bottom',\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n align={align}\n className={cx(\n 'group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-trigger-width)] min-w-[var(--radix-popover-trigger-width)]',\n className\n )}\n data-slot=\"dropdown-menu-content\"\n side={side}\n sideOffset={sideOffset}\n {...props}\n >\n <ListRoot>{children}</ListRoot>\n </DropdownMenuPrimitive.Content>\n </DropdownMenuPrimitive.Portal>\n )\n}\n\nexport function DropdownMenuList({\n ...props\n}: React.ComponentProps<typeof ListContent>) {\n return <ListContent {...props} />\n}\n\nexport function DropdownMenuHeader({\n ...props\n}: React.ComponentProps<typeof ListHeader>) {\n return <ListHeader {...props} />\n}\n\nexport function DropdownMenuHeaderTitle({\n ...props\n}: React.ComponentProps<typeof ListHeaderTitle>) {\n return <ListHeaderTitle {...props} />\n}\n\nexport function DropdownMenuItem({\n className,\n ...props\n}: React.ComponentProps<typeof ListItem>) {\n return <ListItem className={cx(className, 'cursor-pointer')} {...props} />\n}\n\nexport function DropdownMenuItemText({\n ...props\n}: React.ComponentProps<typeof Typography>) {\n return <Typography {...props} />\n}\n\nexport function DropdownMenuItemDivider({\n ...props\n}: React.ComponentProps<typeof Divider>) {\n return <Divider {...props} />\n}\n"]}
1
+ {"version":3,"sources":["../src/components/dropdown-menu.tsx"],"names":["DropdownMenuRoot","props","jsx","DropdownMenuPortal","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","align","side","children","cx","ListRoot","DropdownMenuList","ListContent","DropdownMenuHeader","ListHeader","DropdownMenuHeaderTitle","ListHeaderTitle","DropdownMenuItem","ListItem","DropdownMenuItemText","Typography","DropdownMenuItemDivider","Divider"],"mappings":"uaAaO,SAASA,CAAAA,CAAiB,CAC/B,GAAGC,CACL,CAAA,CAA4D,CAC1D,OAAOC,GAAAA,CAAuB,CAAA,CAAA,IAAA,CAAtB,CAA2B,WAAA,CAAU,eAAA,CAAiB,GAAGD,CAAAA,CAAO,CAC1E,CAEO,SAASE,CAAAA,CAAmB,CACjC,GAAGF,CACL,CAAA,CAA8D,CAC5D,OACEC,GAAAA,CAAuB,SAAtB,CAA6B,WAAA,CAAU,sBAAA,CAAwB,GAAGD,CAAAA,CAAO,CAE9E,CAEO,SAASG,CAAAA,CAAoB,CAClC,GAAGH,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,UAAtB,CACC,WAAA,CAAU,wBACT,GAAGD,CAAAA,CACN,CAEJ,CAEO,SAASI,CAAAA,CAAoB,CAClC,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAA,CACb,KAAA,CAAAC,EAAQ,OAAA,CACR,IAAA,CAAAC,CAAAA,CAAO,QAAA,CACP,QAAA,CAAAC,CAAAA,CACA,GAAGT,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,SAAtB,CACC,QAAA,CAAAA,GAAAA,CAAuB,CAAA,CAAA,OAAA,CAAtB,CACC,KAAA,CAAOM,EACP,SAAA,CAAWG,EAAAA,CACT,0JAAA,CACAL,CACF,CAAA,CACA,WAAA,CAAU,wBACV,IAAA,CAAMG,CAAAA,CACN,UAAA,CAAYF,CAAAA,CACX,GAAGN,CAAAA,CAEJ,SAAAC,GAAAA,CAACU,CAAAA,CAAA,CAAU,QAAA,CAAAF,CAAAA,CAAS,EACtB,CAAA,CACF,CAEJ,CAEO,SAASG,CAAAA,CAAiB,CAC/B,GAAGZ,CACL,CAAA,CAA6C,CAC3C,OAAOC,GAAAA,CAACY,IAAA,CAAa,GAAGb,CAAAA,CAAO,CACjC,CAEO,SAASc,EAAmB,CACjC,GAAGd,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACc,GAAAA,CAAA,CAAY,GAAGf,CAAAA,CAAO,CAChC,CAEO,SAASgB,CAAAA,CAAwB,CACtC,GAAGhB,CACL,CAAA,CAAiD,CAC/C,OAAOC,GAAAA,CAACgB,GAAAA,CAAA,CAAiB,GAAGjB,CAAAA,CAAO,CACrC,CAEO,SAASkB,EAAiB,CAC/B,SAAA,CAAAb,EACA,GAAGL,CACL,CAAA,CAA0C,CACxC,OAAOC,GAAAA,CAACkB,IAAA,CAAS,SAAA,CAAWT,EAAAA,CAAGL,CAAAA,CAAW,gBAAgB,CAAA,CAAI,GAAGL,CAAAA,CAAO,CAC1E,CAEO,SAASoB,CAAAA,CAAqB,CACnC,GAAGpB,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACoB,IAAA,CAAY,GAAGrB,CAAAA,CAAO,CAChC,CAEO,SAASsB,EAAwB,CACtC,GAAGtB,CACL,CAAA,CAAyC,CACvC,OAAOC,IAACsB,GAAAA,CAAA,CAAS,GAAGvB,CAAAA,CAAO,CAC7B","file":"chunk-6EDRVSCQ.js","sourcesContent":["import * as React from 'react'\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { cx } from '@xjur-ui/util'\nimport {\n ListContent,\n ListHeader,\n ListHeaderTitle,\n ListItem,\n ListRoot\n} from './list'\nimport { Typography } from './typography'\nimport { Divider } from './divider'\n\nexport function DropdownMenuRoot({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />\n}\n\nexport function DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return (\n <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />\n )\n}\n\nexport function DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n )\n}\n\nexport function DropdownMenuContent({\n className,\n sideOffset = 4,\n align = 'start',\n side = 'bottom',\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n align={align}\n className={cx(\n 'group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-trigger-width)] min-w-[var(--radix-popover-trigger-width)]',\n className\n )}\n data-slot=\"dropdown-menu-content\"\n side={side}\n sideOffset={sideOffset}\n {...props}\n >\n <ListRoot>{children}</ListRoot>\n </DropdownMenuPrimitive.Content>\n </DropdownMenuPrimitive.Portal>\n )\n}\n\nexport function DropdownMenuList({\n ...props\n}: React.ComponentProps<typeof ListContent>) {\n return <ListContent {...props} />\n}\n\nexport function DropdownMenuHeader({\n ...props\n}: React.ComponentProps<typeof ListHeader>) {\n return <ListHeader {...props} />\n}\n\nexport function DropdownMenuHeaderTitle({\n ...props\n}: React.ComponentProps<typeof ListHeaderTitle>) {\n return <ListHeaderTitle {...props} />\n}\n\nexport function DropdownMenuItem({\n className,\n ...props\n}: React.ComponentProps<typeof ListItem>) {\n return <ListItem className={cx(className, 'cursor-pointer')} {...props} />\n}\n\nexport function DropdownMenuItemText({\n ...props\n}: React.ComponentProps<typeof Typography>) {\n return <Typography {...props} />\n}\n\nexport function DropdownMenuItemDivider({\n ...props\n}: React.ComponentProps<typeof Divider>) {\n return <Divider {...props} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-4GDW5WIQ.js';import {a as a$1}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{wrapper:d}=a();function C({className:n,state:o="normal",customMask:p,variant:i="normal",mask:l,...m}){return jsx(a$1.Provider,{value:{state:o,customMask:p,mask:l,variant:i},children:jsx("div",{className:d({className:n,state:o}),...m})})}export{C as a};//# sourceMappingURL=chunk-6KKZP5G3.js.map
2
+ //# sourceMappingURL=chunk-6KKZP5G3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-root.tsx"],"names":["wrapper","input","InputRoot","className","state","customMask","variant","mask","props","jsx","FieldContext"],"mappings":"mHAIA,GAAM,CAAE,OAAA,CAAAA,CAAQ,CAAA,CAAIC,CAAAA,EAAM,CAEnB,SAASC,CAAAA,CAAU,CACxB,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CAAQ,QAAA,CACR,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,QAAA,CACV,IAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA8C,CAC5C,OACEC,GAAAA,CAACC,GAAAA,CAAa,QAAA,CAAb,CAAsB,KAAA,CAAO,CAAE,KAAA,CAAAN,CAAAA,CAAO,UAAA,CAAAC,CAAAA,CAAY,IAAA,CAAAE,CAAAA,CAAM,OAAA,CAAAD,CAAQ,CAAA,CAC/D,QAAA,CAAAG,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWT,CAAAA,CAAQ,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAC,CAAM,CAAC,CAAA,CAAI,GAAGI,CAAAA,CAAO,CAAA,CAC5D,CAEJ","file":"chunk-6KKZP5G3.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { FieldContext, type FieldContextValue } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { wrapper } = input()\n\nexport function InputRoot({\n className,\n state = 'normal',\n customMask,\n variant = 'normal',\n mask,\n ...props\n}: ComponentProps<'div'> & FieldContextValue) {\n return (\n <FieldContext.Provider value={{ state, customMask, mask, variant }}>\n <div className={wrapper({ className, state })} {...props} />\n </FieldContext.Provider>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {jsx}from'react/jsx-runtime';var{icon:s}=a();function d({className:p,name:r,orientation:i="left",...m}){let{state:c}=b();return jsx("div",{className:s({className:p,state:c}),"data-slot":`control-${i}-slot`,...m,children:jsx(b$1,{name:r})})}export{d as a};//# sourceMappingURL=chunk-7DGDSULM.js.map
2
+ //# sourceMappingURL=chunk-7DGDSULM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-icon.tsx"],"names":["icon","input","InputIcon","className","name","orientation","props","state","useFieldContext","jsx","Icon"],"mappings":"uJAKA,GAAM,CAAE,IAAA,CAAAA,CAAK,CAAA,CAAIC,CAAAA,EAAM,CAEhB,SAASC,CAAAA,CAAU,CACxB,UAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,GAAGC,CACL,CAAA,CAGG,CACD,GAAM,CAAE,KAAA,CAAAC,CAAM,EAAIC,CAAAA,EAAgB,CAElC,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWT,CAAAA,CAAK,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAI,CAAM,CAAC,CAAA,CACpC,YAAW,CAAA,QAAA,EAAWF,CAAW,CAAA,KAAA,CAAA,CAChC,GAAGC,CAAAA,CAEJ,QAAA,CAAAG,GAAAA,CAACC,GAAAA,CAAA,CAAK,IAAA,CAAMN,CAAAA,CAAM,CAAA,CACpB,CAEJ","file":"chunk-7DGDSULM.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { Icon, type IconType } from '../../icon'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { icon } = input()\n\nexport function InputIcon({\n className,\n name,\n orientation = 'left',\n ...props\n}: ComponentProps<'div'> & {\n name: IconType\n orientation?: 'left' | 'right'\n}) {\n const { state } = useFieldContext()\n\n return (\n <div\n className={icon({ className, state })}\n data-slot={`control-${orientation}-slot`}\n {...props}\n >\n <Icon name={name} />\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-AIQVBX52.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{caption:n}=a();function c({className:e,...p}){let{state:r}=b();return jsx("p",{className:n({className:e,state:r}),...p})}export{c as a};//# sourceMappingURL=chunk-7EEEHHLL.js.map
2
+ //# sourceMappingURL=chunk-7EEEHHLL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/date-picker/date-picker-caption.tsx"],"names":["caption","datePicker","DatePickerCaption","className","props","state","useFieldContext","jsx"],"mappings":"4GAIA,GAAM,CAAE,OAAA,CAAAA,CAAQ,CAAA,CAAIC,CAAAA,EAAW,CAExB,SAASC,EAAkB,CAChC,SAAA,CAAAC,EACA,GAAGC,CACL,EAAwB,CACtB,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAClB,OAAOC,GAAAA,CAAC,KAAE,SAAA,CAAWP,CAAAA,CAAQ,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CAAI,GAAGD,EAAO,CACjE","file":"chunk-7EEEHHLL.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { datePicker } from './date-picker-styles'\n\nconst { caption } = datePicker()\n\nexport function DatePickerCaption({\n className,\n ...props\n}: ComponentProps<'p'>) {\n const { state } = useFieldContext()\n return <p className={caption({ className, state })} {...props} />\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-TTKENFBF.js';import {q,l}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function D(){let{selectedDate:a$4,events:d}=b(),p=useCallback((e,l)=>q(d,e,l),[d]),y=useCallback((e,l)=>({...e,date:a(e.date,l)}),[]);return jsx("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jsxs("div",{className:"flex flex-1 flex-col",children:[jsxs("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[jsx("div",{className:"w-[64px]"}),jsx(a$1,{className:"border-border-layer-2 items-start border-l",date:a$4})]}),jsx("div",{className:"overflow-hidden",children:l.map(({hour:e,label:l})=>jsxs("div",{className:"flex items-start",children:[jsx("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:jsx(a$2,{size:"sm-1x",variant:"label",weight:"medium",children:l})}),jsx("div",{className:cx("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:jsx(a$3,{cell:y({date:a$4,type:"day"},e),events:p(a$4,e)})})]},e))})]})})}export{D as a};//# sourceMappingURL=chunk-SLMHDBWO.js.map
2
- //# sourceMappingURL=chunk-SLMHDBWO.js.map
1
+ import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-4NBJXNQ7.js';import {q,l}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function D(){let{selectedDate:a$4,events:d}=b(),p=useCallback((e,l)=>q(d,e,l),[d]),y=useCallback((e,l)=>({...e,date:a(e.date,l)}),[]);return jsx("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jsxs("div",{className:"flex flex-1 flex-col",children:[jsxs("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[jsx("div",{className:"w-[64px]"}),jsx(a$1,{className:"border-border-layer-2 items-start border-l",date:a$4})]}),jsx("div",{className:"overflow-hidden",children:l.map(({hour:e,label:l})=>jsxs("div",{className:"flex items-start",children:[jsx("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:jsx(a$2,{size:"sm-1x",variant:"label",weight:"medium",children:l})}),jsx("div",{className:cx("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:jsx(a$3,{cell:y({date:a$4,type:"day"},e),events:p(a$4,e)})})]},e))})]})})}export{D as a};//# sourceMappingURL=chunk-AGO3UKJY.js.map
2
+ //# sourceMappingURL=chunk-AGO3UKJY.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-day-view.tsx"],"names":["CalendarDayView","selectedDate","events","useFullCalendar","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","CalendarWeekDay","WEEK_HOURS","label","Typography","cx","CalendarCell"],"mappings":"uVAUO,SAASA,CAAAA,EAAkB,CAChC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,OAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,EAAiCC,WAAAA,CACrC,CAACC,CAAAA,CAAYC,CAAAA,GACJC,EAAuBN,CAAAA,CAAQI,CAAAA,CAAMC,CAAI,CAAA,CAElD,CAACL,CAAM,CACT,CAAA,CAEMO,CAAAA,CAAgBJ,WAAAA,CAAY,CAACK,CAAAA,CAAqBH,CAAAA,IAC/C,CACL,GAAGG,EACH,IAAA,CAAMC,CAAAA,CAASD,CAAAA,CAAK,IAAA,CAAMH,CAAI,CAChC,CAAA,CAAA,CACC,EAAE,EAEL,OACEK,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,8FACb,QAAA,CAAAC,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uBACb,QAAA,CAAA,CAAAA,IAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,iDACV,WAAA,CAAU,aAAA,CAEV,UAAAD,GAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,UAAA,CAAW,CAAA,CAC1BA,GAAAA,CAACE,GAAAA,CAAA,CACC,SAAA,CAAU,4CAAA,CACV,IAAA,CAAMb,GAAAA,CACR,GACF,CAAA,CAEAW,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBACZ,QAAA,CAAAG,CAAAA,CAAW,GAAA,CAAI,CAAC,CAAE,IAAA,CAAAR,CAAAA,CAAM,KAAA,CAAAS,CAAM,IAC7BH,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBAAA,CACb,UAAAD,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uDAAA,CACb,SAAAA,GAAAA,CAACK,GAAAA,CAAA,CAAW,IAAA,CAAK,OAAA,CAAQ,QAAQ,OAAA,CAAQ,MAAA,CAAO,QAAA,CAC7C,QAAA,CAAAD,EACH,CAAA,CACF,CAAA,CAEAJ,GAAAA,CAAC,KAAA,CAAA,CACC,UAAWM,EAAAA,CACT,aAAA,CACA,6BAAA,CACA,gBAAA,CACA,gBACF,CAAA,CAEA,QAAA,CAAAN,IAACO,GAAAA,CAAA,CACC,KAAMV,CAAAA,CACJ,CACE,IAAA,CAAMR,GAAAA,CACN,KAAM,KACR,CAAA,CACAM,CACF,CAAA,CACA,OAAQH,CAAAA,CAA+BH,GAAAA,CAAcM,CAAI,CAAA,CAC3D,EACF,CAAA,CAAA,CAAA,CAzBqCA,CA0BvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,EACF,CAEJ","file":"chunk-SLMHDBWO.js","sourcesContent":["import { useCallback } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { setHours } from 'date-fns'\nimport { Typography } from '../typography'\nimport { WEEK_HOURS, getEventsForDayAndHour } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarWeekDay } from './calendar-week-day'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarDayView() {\n const { selectedDate, events } = useFullCalendar()\n\n const getEventsForDayAndHourCallback = useCallback(\n (date: Date, hour: number) => {\n return getEventsForDayAndHour(events, date, hour)\n },\n [events]\n )\n\n const cellsWithHour = useCallback((cell: ICalendarCell, hour: number) => {\n return {\n ...cell,\n date: setHours(cell.date, hour)\n }\n }, [])\n\n return (\n <div className=\"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border\">\n <div className=\"flex flex-1 flex-col\">\n <div\n className=\"bg-layer-2-hover sticky top-0 z-10 flex w-full\"\n data-slot=\"week-header\"\n >\n <div className=\"w-[64px]\" />\n <CalendarWeekDay\n className=\"border-border-layer-2 items-start border-l\"\n date={selectedDate}\n />\n </div>\n\n <div className=\"overflow-hidden\">\n {WEEK_HOURS.map(({ hour, label }) => (\n <div className=\"flex items-start\" key={hour}>\n <div className=\"px-small flex h-full w-[64px] items-start justify-end\">\n <Typography size=\"sm-1x\" variant=\"label\" weight=\"medium\">\n {label}\n </Typography>\n </div>\n\n <div\n className={cx(\n 'flex flex-1',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-t',\n '[&>*]:border-l'\n )}\n >\n <CalendarCell\n cell={cellsWithHour(\n {\n date: selectedDate,\n type: 'day'\n },\n hour\n )}\n events={getEventsForDayAndHourCallback(selectedDate, hour)}\n />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-day-view.tsx"],"names":["CalendarDayView","selectedDate","events","useFullCalendar","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","CalendarWeekDay","WEEK_HOURS","label","Typography","cx","CalendarCell"],"mappings":"uVAUO,SAASA,CAAAA,EAAkB,CAChC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,OAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,EAAiCC,WAAAA,CACrC,CAACC,CAAAA,CAAYC,CAAAA,GACJC,EAAuBN,CAAAA,CAAQI,CAAAA,CAAMC,CAAI,CAAA,CAElD,CAACL,CAAM,CACT,CAAA,CAEMO,CAAAA,CAAgBJ,WAAAA,CAAY,CAACK,CAAAA,CAAqBH,CAAAA,IAC/C,CACL,GAAGG,EACH,IAAA,CAAMC,CAAAA,CAASD,CAAAA,CAAK,IAAA,CAAMH,CAAI,CAChC,CAAA,CAAA,CACC,EAAE,EAEL,OACEK,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,8FACb,QAAA,CAAAC,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uBACb,QAAA,CAAA,CAAAA,IAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,iDACV,WAAA,CAAU,aAAA,CAEV,UAAAD,GAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,UAAA,CAAW,CAAA,CAC1BA,GAAAA,CAACE,GAAAA,CAAA,CACC,SAAA,CAAU,4CAAA,CACV,IAAA,CAAMb,GAAAA,CACR,GACF,CAAA,CAEAW,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBACZ,QAAA,CAAAG,CAAAA,CAAW,GAAA,CAAI,CAAC,CAAE,IAAA,CAAAR,CAAAA,CAAM,KAAA,CAAAS,CAAM,IAC7BH,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBAAA,CACb,UAAAD,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uDAAA,CACb,SAAAA,GAAAA,CAACK,GAAAA,CAAA,CAAW,IAAA,CAAK,OAAA,CAAQ,QAAQ,OAAA,CAAQ,MAAA,CAAO,QAAA,CAC7C,QAAA,CAAAD,EACH,CAAA,CACF,CAAA,CAEAJ,GAAAA,CAAC,KAAA,CAAA,CACC,UAAWM,EAAAA,CACT,aAAA,CACA,6BAAA,CACA,gBAAA,CACA,gBACF,CAAA,CAEA,QAAA,CAAAN,IAACO,GAAAA,CAAA,CACC,KAAMV,CAAAA,CACJ,CACE,IAAA,CAAMR,GAAAA,CACN,KAAM,KACR,CAAA,CACAM,CACF,CAAA,CACA,OAAQH,CAAAA,CAA+BH,GAAAA,CAAcM,CAAI,CAAA,CAC3D,EACF,CAAA,CAAA,CAAA,CAzBqCA,CA0BvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,EACF,CAEJ","file":"chunk-AGO3UKJY.js","sourcesContent":["import { useCallback } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { setHours } from 'date-fns'\nimport { Typography } from '../typography'\nimport { WEEK_HOURS, getEventsForDayAndHour } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarWeekDay } from './calendar-week-day'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarDayView() {\n const { selectedDate, events } = useFullCalendar()\n\n const getEventsForDayAndHourCallback = useCallback(\n (date: Date, hour: number) => {\n return getEventsForDayAndHour(events, date, hour)\n },\n [events]\n )\n\n const cellsWithHour = useCallback((cell: ICalendarCell, hour: number) => {\n return {\n ...cell,\n date: setHours(cell.date, hour)\n }\n }, [])\n\n return (\n <div className=\"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border\">\n <div className=\"flex flex-1 flex-col\">\n <div\n className=\"bg-layer-2-hover sticky top-0 z-10 flex w-full\"\n data-slot=\"week-header\"\n >\n <div className=\"w-[64px]\" />\n <CalendarWeekDay\n className=\"border-border-layer-2 items-start border-l\"\n date={selectedDate}\n />\n </div>\n\n <div className=\"overflow-hidden\">\n {WEEK_HOURS.map(({ hour, label }) => (\n <div className=\"flex items-start\" key={hour}>\n <div className=\"px-small flex h-full w-[64px] items-start justify-end\">\n <Typography size=\"sm-1x\" variant=\"label\" weight=\"medium\">\n {label}\n </Typography>\n </div>\n\n <div\n className={cx(\n 'flex flex-1',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-t',\n '[&>*]:border-l'\n )}\n >\n <CalendarCell\n cell={cellsWithHour(\n {\n date: selectedDate,\n type: 'day'\n },\n hour\n )}\n events={getEventsForDayAndHourCallback(selectedDate, hour)}\n />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {tv}from'@xjur-ui/util';var t=tv({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x cursor-pointer relative","inline-flex w-auto items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-hover border border-transparent","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:["group z-10 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-content-available-width)] min-w-[var(--radix-popover-trigger-width)]"],icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal"},variants:{state:{normal:{trigger:"hover:border-border-layer-1 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}});export{t as a};//# sourceMappingURL=chunk-AIQVBX52.js.map
2
+ //# sourceMappingURL=chunk-AIQVBX52.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/date-picker/date-picker-styles.ts"],"names":["datePicker","tv"],"mappings":"+BAEO,IAAMA,CAAAA,CAAaC,GAAG,CAC3B,KAAA,CAAO,CACL,OAAA,CAAS,kCAAA,CACT,OAAA,CAAS,CACP,oCAAA,CACA,4DAAA,CACA,0BAAA,CACA,4CAAA,CACA,6DAAA,CACA,6BACF,CAAA,CACA,OAAA,CAAS,CACP,kKACF,CAAA,CACA,IAAA,CAAM,iEAAA,CACN,QAAA,CACE,2FACF,OAAA,CAAS,gCACX,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,MAAA,CAAQ,CACN,OAAA,CACE,+GACJ,CAAA,CACA,KAAA,CAAO,CACL,OAAA,CACE,6HAAA,CACF,OAAA,CAAS,wBACX,CAAA,CACA,QAAA,CAAU,CACR,OAAA,CAAS,wDACX,CACF,CACF,CACF,CAAC","file":"chunk-AIQVBX52.js","sourcesContent":["import { tv } from '@xjur-ui/util'\n\nexport const datePicker = tv({\n slots: {\n wrapper: 'group flex flex-col gap-small-2x',\n trigger: [\n 'h-large-4x cursor-pointer relative',\n 'inline-flex w-auto items-center gap-small rounded-small-1x',\n 'py-small_1x-alt px-small',\n 'bg-layer-2-hover border border-transparent',\n 'group-has-[div[data-slot=input-action-slot]]:rounded-r-none',\n 'transition-all duration-200'\n ],\n content: [\n 'group z-10 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-content-available-width)] min-w-[var(--radix-popover-trigger-width)]'\n ],\n icon: 'size-large text-icon-neutral-3 flex items-center justify-center',\n slotText:\n 'size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder',\n caption: '!text-size-body-sm font-normal'\n },\n variants: {\n state: {\n normal: {\n trigger:\n 'hover:border-border-layer-1 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle'\n },\n error: {\n trigger:\n 'border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle',\n caption: 'text-danger-label-idle'\n },\n disabled: {\n trigger: 'pointer-events-none border-transparent bg-layer-2-idle'\n }\n }\n }\n})\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$2}from'./chunk-4M3WR2KJ.js';import {a as a$1}from'./chunk-SLMHDBWO.js';import {a}from'./chunk-BYXTOSM6.js';import {b}from'./chunk-SXGSWVMZ.js';import {jsx}from'react/jsx-runtime';function u(){let{calendarView:t}=b();switch(t){case "month":return jsx(a,{});case "week":return jsx(a$2,{});case "day":return jsx(a$1,{});default:return jsx(a,{})}}export{u as a};//# sourceMappingURL=chunk-HLWHETF5.js.map
2
- //# sourceMappingURL=chunk-HLWHETF5.js.map
1
+ import {a as a$2}from'./chunk-RAW5SN5A.js';import {a as a$1}from'./chunk-AGO3UKJY.js';import {a}from'./chunk-LWBGC4MI.js';import {b}from'./chunk-SXGSWVMZ.js';import {jsx}from'react/jsx-runtime';function u(){let{calendarView:t}=b();switch(t){case "month":return jsx(a,{});case "week":return jsx(a$2,{});case "day":return jsx(a$1,{});default:return jsx(a,{})}}export{u as a};//# sourceMappingURL=chunk-BIPU447J.js.map
2
+ //# sourceMappingURL=chunk-BIPU447J.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-view-renderer.tsx"],"names":["CalendarViewRenderer","calendarView","useFullCalendar","jsx","CalendarMonthView","CalendarWeekView","CalendarDayView"],"mappings":"kMAKO,SAASA,GAAuB,CACrC,GAAM,CAAE,YAAA,CAAAC,CAAa,EAAIC,CAAAA,EAAgB,CAEzC,OAAQD,CAAAA,EACN,KAAK,OAAA,CACH,OAAOE,IAACC,CAAAA,CAAA,EAAkB,CAAA,CAC5B,KAAK,OACH,OAAOD,GAAAA,CAACE,IAAA,EAAiB,CAAA,CAC3B,KAAK,KAAA,CACH,OAAOF,IAACG,GAAAA,CAAA,EAAgB,EAC1B,QACE,OAAOH,IAACC,CAAAA,CAAA,EAAkB,CAC9B,CACF","file":"chunk-HLWHETF5.js","sourcesContent":["import { useFullCalendar } from './calendar-root'\nimport { CalendarMonthView } from './calendar-month-view'\nimport { CalendarWeekView } from './calendar-week-view'\nimport { CalendarDayView } from './calendar-day-view'\n\nexport function CalendarViewRenderer() {\n const { calendarView } = useFullCalendar()\n\n switch (calendarView) {\n case 'month':\n return <CalendarMonthView />\n case 'week':\n return <CalendarWeekView />\n case 'day':\n return <CalendarDayView />\n default:\n return <CalendarMonthView />\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-view-renderer.tsx"],"names":["CalendarViewRenderer","calendarView","useFullCalendar","jsx","CalendarMonthView","CalendarWeekView","CalendarDayView"],"mappings":"kMAKO,SAASA,GAAuB,CACrC,GAAM,CAAE,YAAA,CAAAC,CAAa,EAAIC,CAAAA,EAAgB,CAEzC,OAAQD,CAAAA,EACN,KAAK,OAAA,CACH,OAAOE,IAACC,CAAAA,CAAA,EAAkB,CAAA,CAC5B,KAAK,OACH,OAAOD,GAAAA,CAACE,IAAA,EAAiB,CAAA,CAC3B,KAAK,KAAA,CACH,OAAOF,IAACG,GAAAA,CAAA,EAAgB,EAC1B,QACE,OAAOH,IAACC,CAAAA,CAAA,EAAkB,CAC9B,CACF","file":"chunk-BIPU447J.js","sourcesContent":["import { useFullCalendar } from './calendar-root'\nimport { CalendarMonthView } from './calendar-month-view'\nimport { CalendarWeekView } from './calendar-week-view'\nimport { CalendarDayView } from './calendar-day-view'\n\nexport function CalendarViewRenderer() {\n const { calendarView } = useFullCalendar()\n\n switch (calendarView) {\n case 'month':\n return <CalendarMonthView />\n case 'week':\n return <CalendarWeekView />\n case 'day':\n return <CalendarDayView />\n default:\n return <CalendarMonthView />\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-SXGSWVMZ.js';import {a as a$5}from'./chunk-RSILFO3M.js';import {a}from'./chunk-EDVE3ICB.js';import {a as a$1}from'./chunk-WOVO46OF.js';import {a as a$2}from'./chunk-3RD2PGPH.js';import {a as a$4}from'./chunk-H4XO5KQZ.js';import {a as a$3}from'./chunk-XJFPH3IG.js';import {a as a$7}from'./chunk-3LWJK7RE.js';import {a as a$6}from'./chunk-LA22O6VE.js';import {useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var s=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function V(){let{calendarView:l,handleChangeView:S}=b(),v=useMemo(()=>s.find(e=>e.value===l)?.name,[l]);return jsx("div",{className:"w-[94px]",children:jsxs(a,{children:[jsxs(a$1,{children:[jsx(a$2,{displayValue:v,name:"calendar-toggle-view",value:l}),jsx(a$3,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),jsx(a$4,{children:jsx(a$5,{children:s.map(e=>jsx(a$6,{isActive:l===e.value,value:e.value,onClick:()=>S(e.value),children:jsx(a$7,{children:e.name})},e.value))})})]})})}export{V as a};//# sourceMappingURL=chunk-BXWTGQRV.js.map
2
+ //# sourceMappingURL=chunk-BXWTGQRV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-toggle-view.tsx"],"names":["views","CalendarToggleView","calendarView","handleChangeView","useFullCalendar","displayValue","useMemo","view","jsx","jsxs","SelectRoot","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectOptions","SelectOption","SelectOptionText"],"mappings":"kKAcA,IAAMA,CAAAA,CAAsD,CAC1D,CAAE,IAAA,CAAM,QAAA,CAAO,KAAA,CAAO,OAAQ,CAAA,CAC9B,CAAE,IAAA,CAAM,QAAA,CAAU,KAAA,CAAO,MAAO,CAAA,CAChC,CAAE,IAAA,CAAM,KAAA,CAAO,KAAA,CAAO,KAAM,CAC9B,CAAA,CAEO,SAASC,CAAAA,EAAqB,CACnC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,gBAAA,CAAAC,CAAiB,CAAA,CAAIC,CAAAA,EAAgB,CAErDC,CAAAA,CAAeC,OAAAA,CACnB,IAAMN,EAAM,IAAA,CAAKO,CAAAA,EAAQA,CAAAA,CAAK,KAAA,GAAUL,GAAY,CAAA,EAAG,IAAA,CACvD,CAACA,GAAY,CACf,CAAA,CAEA,OACEM,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,UAAA,CACb,SAAAC,IAAAA,CAACC,GAAAA,CAAA,CACC,QAAA,CAAA,CAAAD,IAAAA,CAACE,CAAAA,CAAA,CACC,QAAA,CAAA,CAAAH,GAAAA,CAACI,CAAAA,CAAA,CACC,YAAA,CAAcP,CAAAA,CACd,IAAA,CAAK,sBAAA,CACL,KAAA,CAAOH,IACT,CAAA,CACAM,GAAAA,CAACK,CAAAA,CAAA,CACC,SAAA,CAAU,qBAAA,CACV,IAAA,CAAK,qBAAA,CACP,CAAA,CAAA,CACF,CAAA,CAEAL,GAAAA,CAACM,CAAAA,CAAA,CACC,QAAA,CAAAN,GAAAA,CAACO,CAAAA,CAAA,CACE,QAAA,CAAAf,CAAAA,CAAM,GAAA,CAAIO,CAAAA,EACTC,GAAAA,CAACQ,CAAAA,CAAA,CACC,QAAA,CAAUd,GAAAA,GAAiBK,CAAAA,CAAK,KAAA,CAEhC,KAAA,CAAOA,CAAAA,CAAK,KAAA,CACZ,OAAA,CAAS,IAAMJ,EAAiBI,CAAAA,CAAK,KAAK,CAAA,CAE1C,QAAA,CAAAC,GAAAA,CAACS,CAAAA,CAAA,CAAkB,QAAA,CAAAV,EAAK,IAAA,CAAK,CAAA,CAAA,CAJxBA,CAAAA,CAAK,KAKZ,CACD,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CACF,EACF,CAEJ","file":"chunk-MTIWFWRN.js","sourcesContent":["import { useMemo } from 'react'\nimport {\n SelectContent,\n SelectOption,\n SelectRoot,\n SelectTrigger,\n SelectValue,\n SelectOptions,\n SelectOptionText,\n SelectIcon\n} from '../controls/select'\nimport type { CalendarView } from './types/calendar-view'\nimport { useFullCalendar } from './calendar-root'\n\nconst views: Array<{ name: string; value: CalendarView }> = [\n { name: 'Mês', value: 'month' },\n { name: 'Semana', value: 'week' },\n { name: 'Dia', value: 'day' }\n]\n\nexport function CalendarToggleView() {\n const { calendarView, handleChangeView } = useFullCalendar()\n\n const displayValue = useMemo(\n () => views.find(view => view.value === calendarView)?.name,\n [calendarView]\n )\n\n return (\n <div className=\"w-[94px]\">\n <SelectRoot>\n <SelectTrigger>\n <SelectValue\n displayValue={displayValue}\n name=\"calendar-toggle-view\"\n value={calendarView}\n />\n <SelectIcon\n className=\"text-icon-neutral-3\"\n name=\"keyboard_arrow_down\"\n />\n </SelectTrigger>\n\n <SelectContent>\n <SelectOptions>\n {views.map(view => (\n <SelectOption\n isActive={calendarView === view.value}\n key={view.value}\n value={view.value}\n onClick={() => handleChangeView(view.value)}\n >\n <SelectOptionText>{view.name}</SelectOptionText>\n </SelectOption>\n ))}\n </SelectOptions>\n </SelectContent>\n </SelectRoot>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-toggle-view.tsx"],"names":["views","CalendarToggleView","calendarView","handleChangeView","useFullCalendar","displayValue","useMemo","view","jsx","jsxs","SelectRoot","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectOptions","SelectOption","SelectOptionText"],"mappings":"0bAcA,IAAMA,CAAAA,CAAsD,CAC1D,CAAE,IAAA,CAAM,QAAA,CAAO,KAAA,CAAO,OAAQ,CAAA,CAC9B,CAAE,IAAA,CAAM,QAAA,CAAU,KAAA,CAAO,MAAO,CAAA,CAChC,CAAE,IAAA,CAAM,KAAA,CAAO,KAAA,CAAO,KAAM,CAC9B,CAAA,CAEO,SAASC,CAAAA,EAAqB,CACnC,GAAM,CAAE,YAAA,CAAAC,CAAAA,CAAc,gBAAA,CAAAC,CAAiB,CAAA,CAAIC,CAAAA,EAAgB,CAErDC,CAAAA,CAAeC,OAAAA,CACnB,IAAMN,EAAM,IAAA,CAAKO,CAAAA,EAAQA,CAAAA,CAAK,KAAA,GAAUL,CAAY,CAAA,EAAG,IAAA,CACvD,CAACA,CAAY,CACf,CAAA,CAEA,OACEM,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,UAAA,CACb,SAAAC,IAAAA,CAACC,CAAAA,CAAA,CACC,QAAA,CAAA,CAAAD,IAAAA,CAACE,GAAAA,CAAA,CACC,QAAA,CAAA,CAAAH,GAAAA,CAACI,GAAAA,CAAA,CACC,YAAA,CAAcP,CAAAA,CACd,IAAA,CAAK,sBAAA,CACL,KAAA,CAAOH,EACT,CAAA,CACAM,GAAAA,CAACK,GAAAA,CAAA,CACC,SAAA,CAAU,qBAAA,CACV,IAAA,CAAK,qBAAA,CACP,CAAA,CAAA,CACF,CAAA,CAEAL,GAAAA,CAACM,GAAAA,CAAA,CACC,QAAA,CAAAN,GAAAA,CAACO,GAAAA,CAAA,CACE,QAAA,CAAAf,CAAAA,CAAM,GAAA,CAAIO,CAAAA,EACTC,GAAAA,CAACQ,GAAAA,CAAA,CACC,QAAA,CAAUd,CAAAA,GAAiBK,CAAAA,CAAK,KAAA,CAEhC,KAAA,CAAOA,CAAAA,CAAK,KAAA,CACZ,OAAA,CAAS,IAAMJ,EAAiBI,CAAAA,CAAK,KAAK,CAAA,CAE1C,QAAA,CAAAC,GAAAA,CAACS,GAAAA,CAAA,CAAkB,QAAA,CAAAV,EAAK,IAAA,CAAK,CAAA,CAAA,CAJxBA,CAAAA,CAAK,KAKZ,CACD,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CACF,EACF,CAEJ","file":"chunk-BXWTGQRV.js","sourcesContent":["import { useMemo } from 'react'\nimport {\n SelectContent,\n SelectOption,\n SelectRoot,\n SelectTrigger,\n SelectValue,\n SelectOptions,\n SelectOptionText,\n SelectIcon\n} from '../controls/select'\nimport type { CalendarView } from './types/calendar-view'\nimport { useFullCalendar } from './calendar-root'\n\nconst views: Array<{ name: string; value: CalendarView }> = [\n { name: 'Mês', value: 'month' },\n { name: 'Semana', value: 'week' },\n { name: 'Dia', value: 'day' }\n]\n\nexport function CalendarToggleView() {\n const { calendarView, handleChangeView } = useFullCalendar()\n\n const displayValue = useMemo(\n () => views.find(view => view.value === calendarView)?.name,\n [calendarView]\n )\n\n return (\n <div className=\"w-[94px]\">\n <SelectRoot>\n <SelectTrigger>\n <SelectValue\n displayValue={displayValue}\n name=\"calendar-toggle-view\"\n value={calendarView}\n />\n <SelectIcon\n className=\"text-icon-neutral-3\"\n name=\"keyboard_arrow_down\"\n />\n </SelectTrigger>\n\n <SelectContent>\n <SelectOptions>\n {views.map(view => (\n <SelectOption\n isActive={calendarView === view.value}\n key={view.value}\n value={view.value}\n onClick={() => handleChangeView(view.value)}\n >\n <SelectOptionText>{view.name}</SelectOptionText>\n </SelectOption>\n ))}\n </SelectOptions>\n </SelectContent>\n </SelectRoot>\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$1}from'./chunk-NRQWDEPL.js';import {twMerge}from'@xjur-ui/util';import {useContext}from'react';import {jsx}from'react/jsx-runtime';function a({className:e,...r}){let{scrollRef:t}=useContext(a$1);return jsx("div",{className:twMerge("gap-small bg-layer-2-idle relative z-[5] flex items-center","scrollbar-hide overflow-x-auto overflow-y-visible","p-small min-w-0",e),ref:t,...r})}export{a};//# sourceMappingURL=chunk-C4YYI53B.js.map
2
+ //# sourceMappingURL=chunk-C4YYI53B.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/carousel/carousel-content.tsx"],"names":["CarouselContent","className","props","scrollRef","useContext","CarouselRootContext","jsx","twMerge"],"mappings":"kJAIO,SAASA,EAAgB,CAC9B,SAAA,CAAAC,EACA,GAAGC,CACL,EAA0B,CACxB,GAAM,CAAE,SAAA,CAAAC,CAAU,CAAA,CAAIC,UAAAA,CAAWC,GAAmB,CAAA,CAEpD,OACEC,IAAC,KAAA,CAAA,CACC,SAAA,CAAWC,QACT,4DAAA,CACA,mDAAA,CACA,kBACAN,CACF,CAAA,CACA,IAAKE,CAAAA,CACJ,GAAGD,EACN,CAEJ","file":"chunk-C4YYI53B.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport { useContext, type ComponentProps } from 'react'\nimport { CarouselRootContext } from './carousel-root'\n\nexport function CarouselContent({\n className,\n ...props\n}: ComponentProps<'div'>) {\n const { scrollRef } = useContext(CarouselRootContext)\n\n return (\n <div\n className={twMerge(\n 'gap-small bg-layer-2-idle relative z-[5] flex items-center',\n 'scrollbar-hide overflow-x-auto overflow-y-visible',\n 'p-small min-w-0',\n className\n )}\n ref={scrollRef}\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-5CA552M6.js';import {jsx}from'react/jsx-runtime';function p(t){return jsx(a,{...t})}export{p as a};//# sourceMappingURL=chunk-CCSIBUKX.js.map
2
+ //# sourceMappingURL=chunk-CCSIBUKX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/select/select-header-title.tsx"],"names":["SelectHeaderTitle","props","jsx","ListHeaderTitle"],"mappings":"wEAGO,SAASA,CAAAA,CACdC,CAAAA,CACA,CACA,OAAOC,GAAAA,CAACC,CAAAA,CAAA,CAAiB,GAAGF,CAAAA,CAAO,CACrC","file":"chunk-CCSIBUKX.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { ListHeaderTitle } from '../../list'\n\nexport function SelectHeaderTitle(\n props: ComponentProps<typeof ListHeaderTitle>\n) {\n return <ListHeaderTitle {...props} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-AIQVBX52.js';import {b}from'./chunk-2JQVYVAT.js';import {tv,twMerge}from'@xjur-ui/util';import*as i from'@radix-ui/react-popover';import {jsx}from'react/jsx-runtime';var{trigger:g}=a();function v({className:e,...a}){let{state:r,variant:d}=b(),p=tv({base:["group bg-layer-2-idle relative"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),l=twMerge(g({state:r,className:e}),d==="filter"&&p({state:r,className:e}));return jsx(i.Trigger,{className:l,disabled:r==="disabled",...a})}export{v as a};//# sourceMappingURL=chunk-CTBO27FM.js.map
2
+ //# sourceMappingURL=chunk-CTBO27FM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/date-picker/date-picker-trigger.tsx"],"names":["trigger","datePicker","DatePickerTrigger","className","props","state","variant","useFieldContext","filterTrigger","tv","mergedClassName","twMerge","jsx"],"mappings":"6LAMA,GAAM,CAAE,QAAAA,CAAQ,CAAA,CAAIC,GAAW,CAExB,SAASC,EAAkB,CAChC,SAAA,CAAAC,EACA,GAAGC,CACL,EAAgD,CAC9C,GAAM,CAAE,KAAA,CAAAC,CAAAA,CAAO,QAAAC,CAAQ,CAAA,CAAIC,GAAgB,CAErCC,CAAAA,CAAgBC,GAAG,CACvB,IAAA,CAAM,CAAC,gCAAgC,CAAA,CACvC,QAAA,CAAU,CACR,KAAA,CAAO,CACL,OAAQ,CACN,2GACF,EACA,KAAA,CAAO,CAAC,6CAA6C,CAAA,CACrD,QAAA,CAAU,CAAC,yCAAyC,CACtD,CACF,CACF,CAAC,EAEKC,CAAAA,CAAkBC,OAAAA,CACtBX,EAAQ,CAAE,KAAA,CAAAK,CAAAA,CAAO,SAAA,CAAAF,CAAU,CAAC,EAC5BG,CAAAA,GAAY,QAAA,EAAYE,EAAc,CAAE,KAAA,CAAAH,EAAO,SAAA,CAAAF,CAAU,CAAC,CAC5D,CAAA,CAEA,OACES,GAAAA,CAAc,CAAA,CAAA,OAAA,CAAb,CACC,SAAA,CAAWF,CAAAA,CACX,SAAUL,CAAAA,GAAU,UAAA,CACnB,GAAGD,CAAAA,CACN,CAEJ","file":"chunk-CTBO27FM.js","sourcesContent":["import { tv, twMerge } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { useFieldContext } from '../context/field.context'\nimport { datePicker } from './date-picker-styles'\n\nconst { trigger } = datePicker()\n\nexport function DatePickerTrigger({\n className,\n ...props\n}: ComponentProps<typeof RadixPopover.Trigger>) {\n const { state, variant } = useFieldContext()\n\n const filterTrigger = tv({\n base: ['group bg-layer-2-idle relative'],\n variants: {\n state: {\n normal: [\n 'border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle'\n ],\n error: ['border-danger-idle hover:border-danger-idle'],\n disabled: ['border border-border-layer-2 opacity-60']\n }\n }\n })\n\n const mergedClassName = twMerge(\n trigger({ state, className }),\n variant === 'filter' && filterTrigger({ state, className })\n )\n\n return (\n <RadixPopover.Trigger\n className={mergedClassName}\n disabled={state === 'disabled'}\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{content:r}=a();function c({className:n,...e}){let{state:p}=b();return jsx("div",{className:r({className:n,state:p}),...e})}export{c as a};//# sourceMappingURL=chunk-DZSAQN5T.js.map
2
+ //# sourceMappingURL=chunk-DZSAQN5T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-content.tsx"],"names":["content","input","InputContent","className","props","state","useFieldContext","jsx"],"mappings":"4GAIA,GAAM,CAAE,OAAA,CAAAA,CAAQ,CAAA,CAAIC,CAAAA,EAAM,CAEnB,SAASC,EAAa,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,EAA0B,CAC3E,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAClB,OAAOC,GAAAA,CAAC,OAAI,SAAA,CAAWP,CAAAA,CAAQ,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CAAI,GAAGD,EAAO,CACnE","file":"chunk-DZSAQN5T.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { content } = input()\n\nexport function InputContent({ className, ...props }: ComponentProps<'div'>) {\n const { state } = useFieldContext()\n return <div className={content({ className, state })} {...props} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-SLQNE7TL.js';import {a as a$1}from'./chunk-2JQVYVAT.js';import*as p from'@radix-ui/react-popover';import {jsx}from'react/jsx-runtime';var{wrapper:C}=a();function R({className:n,state:e="normal",defaultOpen:a,variant:i="normal",modal:d,open:l,onOpenChange:m,...v}){return jsx(p.Root,{defaultOpen:a,modal:d,open:l,onOpenChange:m,children:jsx(a$1.Provider,{value:{state:e,variant:i},children:jsx("div",{className:C({className:n,state:e}),...v})})})}export{R as a};//# sourceMappingURL=chunk-EDVE3ICB.js.map
2
+ //# sourceMappingURL=chunk-EDVE3ICB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/select/select-root.tsx"],"names":["wrapper","select","SelectRoot","className","state","defaultOpen","variant","modal","open","handleOpenChange","props","jsx","FieldContext"],"mappings":"6JAKA,GAAM,CAAE,OAAA,CAAAA,CAAQ,EAAIC,CAAAA,EAAO,CAEpB,SAASC,CAAAA,CAAW,CACzB,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CAAQ,SACR,WAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,SACV,KAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,aAAcC,CAAAA,CACd,GAAGC,CACL,CAAA,CAE4C,CAC1C,OACEC,GAAAA,CAAc,CAAA,CAAA,IAAA,CAAb,CACC,YAAaN,CAAAA,CACb,KAAA,CAAOE,CAAAA,CACP,IAAA,CAAMC,EACN,YAAA,CAAcC,CAAAA,CAEd,QAAA,CAAAE,GAAAA,CAACC,IAAa,QAAA,CAAb,CAAsB,KAAA,CAAO,CAAE,MAAAR,CAAAA,CAAO,OAAA,CAAAE,CAAQ,CAAA,CAC7C,SAAAK,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWX,CAAAA,CAAQ,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAC,CAAM,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CAAA,CAC5D,EACF,CAEJ","file":"chunk-EDVE3ICB.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { FieldContext, type FieldContextValue } from '../context/field.context'\nimport { select } from './select-styles'\n\nconst { wrapper } = select()\n\nexport function SelectRoot({\n className,\n state = 'normal',\n defaultOpen,\n variant = 'normal',\n modal,\n open,\n onOpenChange: handleOpenChange,\n ...props\n}: ComponentProps<'div'> &\n FieldContextValue &\n ComponentProps<typeof RadixPopover.Root>) {\n return (\n <RadixPopover.Root\n defaultOpen={defaultOpen}\n modal={modal}\n open={open}\n onOpenChange={handleOpenChange}\n >\n <FieldContext.Provider value={{ state, variant }}>\n <div className={wrapper({ className, state })} {...props} />\n </FieldContext.Provider>\n </RadixPopover.Root>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$1}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{value:a}=a$1();function m({className:n,placeholder:p,...r}){let{state:t,variant:i}=b();return jsx("input",{...r,className:a({className:n,state:t}),disabled:t==="disabled",placeholder:i==="filter"?" ":p,readOnly:t==="disabled"})}export{m as a};//# sourceMappingURL=chunk-EOKFSNH5.js.map
2
+ //# sourceMappingURL=chunk-EOKFSNH5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-text.tsx"],"names":["value","input","InputText","className","placeholder","props","state","variant","useFieldContext","jsx"],"mappings":"mHAIA,GAAM,CAAE,KAAA,CAAAA,CAAM,CAAA,CAAIC,GAAAA,EAAM,CAEjB,SAASC,CAAAA,CAAU,CACxB,UAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA4B,CAC1B,GAAM,CAAE,KAAA,CAAAC,CAAAA,CAAO,OAAA,CAAAC,CAAQ,CAAA,CAAIC,GAAgB,CAE3C,OACEC,GAAAA,CAAC,OAAA,CAAA,CACE,GAAGJ,CAAAA,CACJ,UAAWL,CAAAA,CAAM,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAG,CAAM,CAAC,CAAA,CACrC,QAAA,CAAUA,CAAAA,GAAU,UAAA,CACpB,WAAA,CAAaC,CAAAA,GAAY,QAAA,CAAW,GAAA,CAAMH,CAAAA,CAC1C,QAAA,CAAUE,CAAAA,GAAU,UAAA,CACtB,CAEJ","file":"chunk-EOKFSNH5.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { value } = input()\n\nexport function InputText({\n className,\n placeholder,\n ...props\n}: ComponentProps<'input'>) {\n const { state, variant } = useFieldContext()\n\n return (\n <input\n {...props}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-NRQWDEPL.js';import {b}from'./chunk-M6ZI7M3R.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {twMerge}from'@xjur-ui/util';import {useContext,useState,useCallback,useEffect}from'react';import {jsx}from'react/jsx-runtime';function A({direction:t,className:v,...c}){let{scrollAmount:n,scrollRef:l}=useContext(a),[h,p]=useState(false),[g,b$2]=useState(false),[C,a$1]=useState(false),r=useCallback(()=>{let e=l.current;if(!e)return;let{scrollLeft:o,scrollWidth:L,clientWidth:z}=e;p(o>0),b$2(o<L-z);},[l]),S=useCallback(()=>{let e=l.current;e&&(a$1(true),e.scrollTo({left:t==="left"?e.scrollLeft-n:e.scrollLeft+n,behavior:"smooth"}),setTimeout(()=>a$1(false),300));},[t,n,l]);return useEffect(()=>{let e=l.current;if(!e)return;r(),e.addEventListener("scroll",r,{passive:true}),window.addEventListener("resize",r);let o=null;return typeof ResizeObserver<"u"&&(o=new ResizeObserver(r),o.observe(e)),()=>{e.removeEventListener("scroll",r),window.removeEventListener("resize",r),o&&o.disconnect();}},[r,l]),t==="right"&&!g||t==="left"&&!h?null:jsx("div",{className:twMerge("absolute top-1/2 z-1000 h-full -translate-y-1/2 items-center justify-end","hidden transition-all duration-300 group-hover/carousel-root:flex","group-hover/carousel-root:animate-in group-hover/carousel-root:fade-in",t==="right"&&"right-0",t==="left"&&"left-0",v),style:{background:"rgba(255, 255, 255, 0.4)",...c.style},...c,children:jsx(b,{appearance:"ghost","aria-label":"Scroll right",disabled:C,size:"icon_md",variant:"secondary",onClick:S,children:jsx(b$1,{name:`chevron_${t}`})})})}export{A as a};//# sourceMappingURL=chunk-FOY43MIQ.js.map
2
+ //# sourceMappingURL=chunk-FOY43MIQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/carousel/carousel-action.tsx"],"names":["CarouselAction","direction","className","props","scrollAmount","scrollRef","useContext","CarouselRootContext","canScrollLeft","setCanScrollLeft","useState","canScrollRight","setCanScrollRight","isScrolling","setIsScrolling","handleScroll","useCallback","container","scrollLeft","scrollWidth","clientWidth","handleScrollTo","useEffect","resizeObserver","jsx","twMerge","Button","Icon"],"mappings":"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","file":"chunk-FOY43MIQ.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport {\n type ComponentProps,\n useState,\n useCallback,\n useEffect,\n useContext\n} from 'react'\nimport { Icon } from '../icon'\nimport { Button } from '../controls/button'\nimport { CarouselRootContext } from './carousel-root'\n\nexport function CarouselAction({\n direction,\n className,\n ...props\n}: ComponentProps<'div'> & {\n direction: 'right' | 'left'\n}) {\n const { scrollAmount, scrollRef } = useContext(CarouselRootContext)\n\n const [canScrollLeft, setCanScrollLeft] = useState(false)\n const [canScrollRight, setCanScrollRight] = useState(false)\n const [isScrolling, setIsScrolling] = useState(false)\n\n const handleScroll = useCallback(() => {\n const container = scrollRef.current\n\n if (!container) return\n const { scrollLeft, scrollWidth, clientWidth } = container\n\n setCanScrollLeft(scrollLeft > 0)\n setCanScrollRight(scrollLeft < scrollWidth - clientWidth)\n }, [scrollRef])\n\n const handleScrollTo = useCallback(() => {\n const container = scrollRef.current\n if (!container) return\n setIsScrolling(true)\n container.scrollTo({\n left:\n direction === 'left'\n ? container.scrollLeft - scrollAmount\n : container.scrollLeft + scrollAmount,\n behavior: 'smooth'\n })\n\n setTimeout(() => setIsScrolling(false), 300)\n }, [direction, scrollAmount, scrollRef])\n\n useEffect(() => {\n const container = scrollRef.current\n\n if (!container) return\n\n handleScroll()\n\n container.addEventListener('scroll', handleScroll, { passive: true })\n window.addEventListener('resize', handleScroll)\n\n let resizeObserver: ResizeObserver | null = null\n\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(handleScroll)\n resizeObserver.observe(container)\n }\n\n return () => {\n container.removeEventListener('scroll', handleScroll)\n window.removeEventListener('resize', handleScroll)\n\n if (resizeObserver) {\n resizeObserver.disconnect()\n }\n }\n }, [handleScroll, scrollRef])\n\n if (direction === 'right' && !canScrollRight) return null\n if (direction === 'left' && !canScrollLeft) return null\n\n return (\n <div\n className={twMerge(\n 'absolute top-1/2 z-1000 h-full -translate-y-1/2 items-center justify-end',\n 'hidden transition-all duration-300 group-hover/carousel-root:flex',\n 'group-hover/carousel-root:animate-in group-hover/carousel-root:fade-in',\n direction === 'right' && 'right-0',\n direction === 'left' && 'left-0',\n className\n )}\n style={{\n background: `rgba(255, 255, 255, 0.4)`,\n ...props.style\n }}\n {...props}\n >\n <Button\n appearance=\"ghost\"\n aria-label=\"Scroll right\"\n disabled={isScrolling}\n size=\"icon_md\"\n variant=\"secondary\"\n onClick={handleScrollTo}\n >\n <Icon name={`chevron_${direction}`} />\n </Button>\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {a as a$1}from'./chunk-PBR7SFWY.js';import {InputMask}from'@react-input/mask';import {jsx}from'react/jsx-runtime';var{value:u}=a();function C({className:r,placeholder:s,...m}){let{customMask:o,state:t,mask:n,variant:i}=b();return jsx(InputMask,{...m,...n?{...a$1(n)}:o&&{...o},className:u({className:r,state:t}),disabled:t==="disabled",placeholder:i==="filter"?" ":s,readOnly:t==="disabled"})}export{C as a};//# sourceMappingURL=chunk-FU4H45BR.js.map
2
+ //# sourceMappingURL=chunk-FU4H45BR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-mask.tsx"],"names":["value","input","InputMask","className","placeholder","props","customMask","state","mask","variant","useFieldContext","jsx","InputMaskComponent","inputMask"],"mappings":"iMAMA,GAAM,CAAE,KAAA,CAAAA,CAAM,EAAIC,CAAAA,EAAM,CAEjB,SAASC,CAAAA,CAAU,CACxB,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA4B,CAC1B,GAAM,CAAE,UAAA,CAAAC,CAAAA,CAAY,KAAA,CAAAC,CAAAA,CAAO,KAAAC,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAA,CAAIC,GAAgB,CAE7D,OACEC,GAAAA,CAACC,SAAAA,CAAA,CACE,GAAGP,CAAAA,CACH,GAAIG,CAAAA,CAAO,CAAE,GAAGK,GAAAA,CAAUL,CAAI,CAAE,EAAIF,CAAAA,EAAc,CAAE,GAAGA,CAAW,EACnE,SAAA,CAAWN,CAAAA,CAAM,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAI,CAAM,CAAC,CAAA,CACrC,SAAUA,CAAAA,GAAU,UAAA,CACpB,WAAA,CAAaE,CAAAA,GAAY,SAAW,GAAA,CAAML,CAAAA,CAC1C,QAAA,CAAUG,CAAAA,GAAU,WACtB,CAEJ","file":"chunk-FU4H45BR.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { InputMask as InputMaskComponent } from '@react-input/mask'\nimport { useFieldContext } from '../context/field.context'\nimport { inputMask } from '../../../resources/input-mask'\nimport { input } from './input-styles'\n\nconst { value } = input()\n\nexport function InputMask({\n className,\n placeholder,\n ...props\n}: ComponentProps<'input'>) {\n const { customMask, state, mask, variant } = useFieldContext()\n\n return (\n <InputMaskComponent\n {...props}\n {...(mask ? { ...inputMask(mask) } : customMask && { ...customMask })}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-SLQNE7TL.js';import {b}from'./chunk-2JQVYVAT.js';import {a as a$1}from'./chunk-PN2PHVKQ.js';import*as o from'@radix-ui/react-popover';import {jsx}from'react/jsx-runtime';var{content:f}=a();function x({className:p,sideOffset:i=5,side:s="bottom",align:a="start",children:m,...P}){let{state:d}=b();return jsx(o.Portal,{children:jsx(o.Content,{align:a,className:f({className:p,state:d}),side:s,sideOffset:i,...P,children:jsx(a$1,{children:m})})})}export{x as a};//# sourceMappingURL=chunk-H4XO5KQZ.js.map
2
+ //# sourceMappingURL=chunk-H4XO5KQZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/select/select-content.tsx"],"names":["content","select","SelectContent","className","sideOffset","side","align","children","props","state","useFieldContext","jsx","ListRoot"],"mappings":"iMAMA,GAAM,CAAE,OAAA,CAAAA,CAAQ,EAAIC,CAAAA,EAAO,CAEpB,SAASC,CAAAA,CAAc,CAC5B,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAA,CACb,IAAA,CAAAC,CAAAA,CAAO,QAAA,CACP,MAAAC,CAAAA,CAAQ,OAAA,CACR,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAgD,CAC9C,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,EAAgB,CAElC,OACEC,GAAAA,CAAc,CAAA,CAAA,MAAA,CAAb,CACC,QAAA,CAAAA,GAAAA,CAAc,CAAA,CAAA,OAAA,CAAb,CACC,MAAOL,CAAAA,CACP,SAAA,CAAWN,CAAAA,CAAQ,CAAE,UAAAG,CAAAA,CAAW,KAAA,CAAAM,CAAM,CAAC,CAAA,CACvC,IAAA,CAAMJ,CAAAA,CACN,UAAA,CAAYD,EACX,GAAGI,CAAAA,CAEJ,QAAA,CAAAG,GAAAA,CAACC,IAAA,CAAU,QAAA,CAAAL,CAAAA,CAAS,CAAA,CACtB,EACF,CAEJ","file":"chunk-H4XO5KQZ.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { ListRoot } from '../../list'\nimport { useFieldContext } from '../context/field.context'\nimport { select } from './select-styles'\n\nconst { content } = select()\n\nexport function SelectContent({\n className,\n sideOffset = 5,\n side = 'bottom',\n align = 'start',\n children,\n ...props\n}: ComponentProps<typeof RadixPopover.Content>) {\n const { state } = useFieldContext()\n\n return (\n <RadixPopover.Portal>\n <RadixPopover.Content\n align={align}\n className={content({ className, state })}\n side={side}\n sideOffset={sideOffset}\n {...props}\n >\n <ListRoot>{children}</ListRoot>\n </RadixPopover.Content>\n </RadixPopover.Portal>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$1}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{action:r}=a$1();function a({className:n,...p}){let{state:i}=b();return jsx("div",{className:r({className:n,state:i}),"data-slot":"input-action-slot",...p})}export{a};//# sourceMappingURL=chunk-HIT33DXM.js.map
2
+ //# sourceMappingURL=chunk-HIT33DXM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input/input-action.tsx"],"names":["action","input","InputAction","className","props","state","useFieldContext","jsx"],"mappings":"mHAIA,GAAM,CAAE,MAAA,CAAAA,CAAO,EAAIC,GAAAA,EAAM,CAElB,SAASC,CAAAA,CAAY,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA0B,CAC1E,GAAM,CAAE,KAAA,CAAAC,CAAM,EAAIC,CAAAA,EAAgB,CAClC,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,UAAWP,CAAAA,CAAO,CAAE,UAAAG,CAAAA,CAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CACtC,YAAU,mBAAA,CACT,GAAGD,EACN,CAEJ","file":"chunk-HIT33DXM.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { action } = input()\n\nexport function InputAction({ className, ...props }: ComponentProps<'div'>) {\n const { state } = useFieldContext()\n return (\n <div\n className={action({ className, state })}\n data-slot=\"input-action-slot\"\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ //# sourceMappingURL=chunk-HRG3L64O.js.map
2
+ //# sourceMappingURL=chunk-HRG3L64O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-HRG3L64O.js"}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-AIQVBX52.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{slotText:p}=a();function c({className:e,...r}){let{state:n}=b();return jsx("span",{className:p({className:e,state:n}),...r})}export{c as a};//# sourceMappingURL=chunk-IQKIIIQ3.js.map
2
+ //# sourceMappingURL=chunk-IQKIIIQ3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/date-picker/date-picker-slot.tsx"],"names":["slotText","datePicker","DatePickerSlot","className","props","state","useFieldContext","jsx"],"mappings":"4GAIA,GAAM,CAAE,QAAA,CAAAA,CAAS,CAAA,CAAIC,CAAAA,EAAW,CAEzB,SAASC,EAAe,CAC7B,SAAA,CAAAC,EACA,GAAGC,CACL,EAA2B,CACzB,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAClB,OAAOC,GAAAA,CAAC,QAAK,SAAA,CAAWP,CAAAA,CAAS,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CAAI,GAAGD,EAAO,CACrE","file":"chunk-IQKIIIQ3.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { datePicker } from './date-picker-styles'\n\nconst { slotText } = datePicker()\n\nexport function DatePickerSlot({\n className,\n ...props\n}: ComponentProps<'span'>) {\n const { state } = useFieldContext()\n return <span className={slotText({ className, state })} {...props} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-4ZEXJODE.js';import {jsx}from'react/jsx-runtime';function p(o){return jsx(a,{...o})}export{p as a};//# sourceMappingURL=chunk-JHRYQ25B.js.map
2
+ //# sourceMappingURL=chunk-JHRYQ25B.js.map