@vlrc-fe/components 2.7.0 → 2.8.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 (476) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/ConfirmModal.d.ts +2 -3
  3. package/dist/ConfirmModal.d.ts.map +1 -1
  4. package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
  5. package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
  6. package/dist/Dropdown/Dropdown.d.ts.map +1 -1
  7. package/dist/Dropdown/types.d.ts +1 -1
  8. package/dist/Dropdown/types.d.ts.map +1 -1
  9. package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
  10. package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts +2 -1
  11. package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts.map +1 -1
  12. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +7 -1
  13. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
  14. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -1
  15. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
  16. package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
  17. package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
  18. package/dist/Form/FormDatePicker/types.d.ts +5 -0
  19. package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
  20. package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
  21. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +2 -2
  22. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
  23. package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -1
  24. package/dist/Form/FormSelect/types.d.ts +1 -1
  25. package/dist/Form/FormSelect/types.d.ts.map +1 -1
  26. package/dist/Form/FormSelect/useFormSelect.d.ts +1 -1
  27. package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
  28. package/dist/MultiSelect/MultiSelect.d.ts +3 -31
  29. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  30. package/dist/MultiSelect/renderers.d.ts.map +1 -1
  31. package/dist/MultiSelect/type.d.ts +1 -0
  32. package/dist/MultiSelect/type.d.ts.map +1 -1
  33. package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
  34. package/dist/Select/BaseSelect.d.ts.map +1 -1
  35. package/dist/Select/MultiSelectTags.d.ts.map +1 -1
  36. package/dist/Select/type.d.ts +1 -1
  37. package/dist/Select/type.d.ts.map +1 -1
  38. package/dist/Typography/Code.d.ts.map +1 -1
  39. package/dist/Typography/Link.d.ts.map +1 -1
  40. package/dist/Typography/Paragraph.d.ts.map +1 -1
  41. package/dist/Typography/Text.d.ts.map +1 -1
  42. package/dist/Typography/Title.d.ts.map +1 -1
  43. package/dist/Typography/types.d.ts +37 -1
  44. package/dist/Typography/types.d.ts.map +1 -1
  45. package/dist/Typography/utils.d.ts +3 -2
  46. package/dist/Typography/utils.d.ts.map +1 -1
  47. package/dist/assets/stylex.css +36 -24
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.js +108 -108
  50. package/dist/index10.cjs +1 -1
  51. package/dist/index10.js +18 -55
  52. package/dist/index101.cjs +1 -1
  53. package/dist/index101.js +89 -89
  54. package/dist/index102.cjs +1 -1
  55. package/dist/index102.js +29 -29
  56. package/dist/index103.cjs +1 -1
  57. package/dist/index103.js +128 -124
  58. package/dist/index104.cjs +1 -1
  59. package/dist/index104.js +16 -16
  60. package/dist/index106.cjs +1 -1
  61. package/dist/index106.js +2 -2
  62. package/dist/index107.cjs +1 -1
  63. package/dist/index107.js +114 -117
  64. package/dist/index108.cjs +1 -1
  65. package/dist/index108.js +95 -92
  66. package/dist/index109.cjs +1 -1
  67. package/dist/index109.js +41 -41
  68. package/dist/index11.cjs +1 -1
  69. package/dist/index11.js +36 -164
  70. package/dist/index110.cjs +1 -1
  71. package/dist/index110.js +1 -1
  72. package/dist/index111.cjs +1 -1
  73. package/dist/index111.js +1 -1
  74. package/dist/index112.cjs +1 -1
  75. package/dist/index112.js +128 -120
  76. package/dist/index114.cjs +1 -1
  77. package/dist/index114.js +151 -151
  78. package/dist/index116.cjs +1 -1
  79. package/dist/index116.js +96 -91
  80. package/dist/index117.cjs +1 -1
  81. package/dist/index117.js +18 -18
  82. package/dist/index118.cjs +1 -1
  83. package/dist/index118.js +2 -2
  84. package/dist/index119.cjs +1 -1
  85. package/dist/index119.js +15 -15
  86. package/dist/index12.cjs +1 -1
  87. package/dist/index12.js +147 -103
  88. package/dist/index120.cjs +1 -1
  89. package/dist/index120.js +10 -10
  90. package/dist/index121.cjs +1 -1
  91. package/dist/index121.js +31 -31
  92. package/dist/index122.cjs +1 -1
  93. package/dist/index122.js +3 -3
  94. package/dist/index123.cjs +1 -1
  95. package/dist/index123.js +2 -2
  96. package/dist/index124.cjs +1 -1
  97. package/dist/index124.js +53 -49
  98. package/dist/index126.cjs +1 -1
  99. package/dist/index126.js +35 -38
  100. package/dist/index127.cjs +1 -1
  101. package/dist/index127.js +114 -107
  102. package/dist/index128.cjs +1 -1
  103. package/dist/index128.js +8 -8
  104. package/dist/index129.cjs +1 -1
  105. package/dist/index129.js +53 -53
  106. package/dist/index13.cjs +1 -1
  107. package/dist/index13.js +130 -102
  108. package/dist/index130.cjs +1 -1
  109. package/dist/index130.js +134 -130
  110. package/dist/index132.cjs +1 -1
  111. package/dist/index132.js +7 -7
  112. package/dist/index133.cjs +1 -1
  113. package/dist/index133.js +95 -95
  114. package/dist/index134.cjs +1 -1
  115. package/dist/index134.js +2 -2
  116. package/dist/index135.cjs +1 -1
  117. package/dist/index135.js +113 -99
  118. package/dist/index136.cjs +1 -1
  119. package/dist/index136.js +8 -8
  120. package/dist/index137.cjs +1 -1
  121. package/dist/index137.js +16 -16
  122. package/dist/index138.cjs +1 -1
  123. package/dist/index138.js +20 -20
  124. package/dist/index14.cjs +1 -1
  125. package/dist/index14.js +154 -80
  126. package/dist/index140.cjs +1 -1
  127. package/dist/index140.js +2 -2
  128. package/dist/index141.cjs +1 -1
  129. package/dist/index141.js +24 -24
  130. package/dist/index142.cjs +1 -1
  131. package/dist/index142.js +2 -2
  132. package/dist/index143.cjs +1 -1
  133. package/dist/index143.js +15 -15
  134. package/dist/index144.cjs +1 -1
  135. package/dist/index144.js +3 -3
  136. package/dist/index145.cjs +1 -1
  137. package/dist/index145.js +2 -2
  138. package/dist/index146.cjs +1 -1
  139. package/dist/index146.js +1 -1
  140. package/dist/index147.cjs +1 -1
  141. package/dist/index147.js +88 -88
  142. package/dist/index149.cjs +1 -1
  143. package/dist/index149.js +64 -64
  144. package/dist/index15.cjs +1 -1
  145. package/dist/index15.js +116 -63
  146. package/dist/index150.cjs +1 -1
  147. package/dist/index150.js +9 -9
  148. package/dist/index152.cjs +1 -1
  149. package/dist/index152.js +1 -1
  150. package/dist/index153.cjs +1 -1
  151. package/dist/index153.js +41 -41
  152. package/dist/index154.cjs +1 -1
  153. package/dist/index154.js +73 -73
  154. package/dist/index155.cjs +1 -1
  155. package/dist/index155.js +34 -34
  156. package/dist/index156.cjs +1 -1
  157. package/dist/index156.js +8 -8
  158. package/dist/index157.cjs +1 -1
  159. package/dist/index157.js +1 -1
  160. package/dist/index158.cjs +1 -1
  161. package/dist/index158.js +30 -30
  162. package/dist/index159.cjs +1 -1
  163. package/dist/index159.js +21 -21
  164. package/dist/index16.cjs +1 -1
  165. package/dist/index16.js +60 -91
  166. package/dist/index160.cjs +1 -1
  167. package/dist/index160.js +59 -59
  168. package/dist/index161.cjs +1 -1
  169. package/dist/index161.js +2 -2
  170. package/dist/index162.cjs +1 -1
  171. package/dist/index162.js +50 -50
  172. package/dist/index163.cjs +1 -1
  173. package/dist/index163.js +11 -11
  174. package/dist/index164.cjs +1 -1
  175. package/dist/index164.js +1 -1
  176. package/dist/index165.cjs +1 -1
  177. package/dist/index165.js +33 -33
  178. package/dist/index166.cjs +1 -1
  179. package/dist/index166.js +11 -11
  180. package/dist/index167.cjs +1 -1
  181. package/dist/index167.js +2 -2
  182. package/dist/index168.cjs +1 -1
  183. package/dist/index168.js +7 -7
  184. package/dist/index169.cjs +1 -1
  185. package/dist/index169.js +74 -65
  186. package/dist/index17.cjs +1 -1
  187. package/dist/index17.js +122 -15
  188. package/dist/index170.cjs +1 -1
  189. package/dist/index170.js +9 -9
  190. package/dist/index171.cjs +1 -1
  191. package/dist/index171.js +7 -7
  192. package/dist/index172.cjs +1 -1
  193. package/dist/index172.js +12 -12
  194. package/dist/index174.cjs +1 -1
  195. package/dist/index174.js +15 -15
  196. package/dist/index175.cjs +1 -1
  197. package/dist/index175.js +13 -13
  198. package/dist/index176.cjs +1 -1
  199. package/dist/index176.js +2 -2
  200. package/dist/index177.cjs +1 -1
  201. package/dist/index177.js +140 -115
  202. package/dist/index178.cjs +1 -1
  203. package/dist/index178.js +4 -4
  204. package/dist/index179.cjs +1 -1
  205. package/dist/index179.js +47 -47
  206. package/dist/index18.cjs +1 -1
  207. package/dist/index18.js +15 -268
  208. package/dist/index181.cjs +1 -1
  209. package/dist/index181.js +36 -25
  210. package/dist/index183.cjs +1 -1
  211. package/dist/index183.js +4 -4
  212. package/dist/index185.cjs +1 -1
  213. package/dist/index185.js +5 -8
  214. package/dist/index186.cjs +1 -1
  215. package/dist/index186.js +5 -15
  216. package/dist/index187.cjs +1 -1
  217. package/dist/index187.js +5 -20
  218. package/dist/index188.cjs +1 -1
  219. package/dist/index188.js +5 -16
  220. package/dist/index189.cjs +1 -1
  221. package/dist/index189.js +8 -5
  222. package/dist/index19.cjs +1 -1
  223. package/dist/index19.js +11 -281
  224. package/dist/index190.cjs +1 -1
  225. package/dist/index190.js +7 -4
  226. package/dist/index191.cjs +1 -1
  227. package/dist/index191.js +12 -6
  228. package/dist/index192.cjs +1 -1
  229. package/dist/index192.js +6 -5
  230. package/dist/index193.cjs +1 -1
  231. package/dist/index193.js +6 -5
  232. package/dist/index194.cjs +1 -1
  233. package/dist/index194.js +6 -7
  234. package/dist/index195.cjs +1 -1
  235. package/dist/index195.js +10 -68
  236. package/dist/index196.cjs +1 -1
  237. package/dist/index196.js +9 -10
  238. package/dist/index197.cjs +1 -1
  239. package/dist/index197.js +5 -201
  240. package/dist/index198.cjs +1 -1
  241. package/dist/index198.js +7 -123
  242. package/dist/index199.cjs +1 -1
  243. package/dist/index199.js +7 -31
  244. package/dist/index20.cjs +1 -1
  245. package/dist/index20.js +26 -11
  246. package/dist/index200.cjs +1 -1
  247. package/dist/index200.js +66 -17
  248. package/dist/index201.cjs +1 -1
  249. package/dist/index201.js +8 -68
  250. package/dist/index202.cjs +1 -1
  251. package/dist/index202.js +13 -13
  252. package/dist/index203.cjs +1 -1
  253. package/dist/index203.js +6 -6
  254. package/dist/index204.cjs +1 -1
  255. package/dist/index204.js +15 -278
  256. package/dist/index205.cjs +1 -1
  257. package/dist/index205.js +171 -126
  258. package/dist/index206.cjs +1 -1
  259. package/dist/index206.js +21 -19
  260. package/dist/index207.cjs +1 -1
  261. package/dist/index207.js +16 -8
  262. package/dist/index208.cjs +1 -1
  263. package/dist/index208.js +123 -13
  264. package/dist/index209.cjs +1 -1
  265. package/dist/index209.js +19 -7
  266. package/dist/index21.cjs +1 -1
  267. package/dist/index21.js +29 -26
  268. package/dist/index210.cjs +1 -1
  269. package/dist/index210.js +8 -6
  270. package/dist/index211.cjs +1 -1
  271. package/dist/index211.js +9 -9
  272. package/dist/index212.cjs +1 -1
  273. package/dist/index212.js +13 -8
  274. package/dist/index213.cjs +1 -1
  275. package/dist/index213.js +9 -4
  276. package/dist/index214.cjs +1 -1
  277. package/dist/index214.js +9 -6
  278. package/dist/index215.cjs +1 -1
  279. package/dist/index215.js +4 -6
  280. package/dist/index216.cjs +1 -1
  281. package/dist/index216.js +42 -9
  282. package/dist/index217.cjs +1 -1
  283. package/dist/index217.js +386 -8
  284. package/dist/index218.cjs +1 -1
  285. package/dist/index218.js +37 -14
  286. package/dist/index219.cjs +1 -1
  287. package/dist/index219.js +22 -10
  288. package/dist/index22.cjs +1 -1
  289. package/dist/index22.js +367 -59
  290. package/dist/index220.cjs +1 -1
  291. package/dist/index220.js +57 -9
  292. package/dist/index221.cjs +1 -1
  293. package/dist/index221.js +39 -4
  294. package/dist/index222.cjs +1 -1
  295. package/dist/index222.js +116 -35
  296. package/dist/index223.cjs +1 -1
  297. package/dist/index223.js +85 -387
  298. package/dist/index224.cjs +1 -1
  299. package/dist/index224.js +87 -35
  300. package/dist/index225.cjs +1 -1
  301. package/dist/index225.js +116 -18
  302. package/dist/index226.cjs +1 -1
  303. package/dist/index226.js +97 -55
  304. package/dist/index227.cjs +1 -1
  305. package/dist/index227.js +154 -37
  306. package/dist/index228.cjs +1 -1
  307. package/dist/index228.js +76 -121
  308. package/dist/index229.cjs +9 -1
  309. package/dist/index229.js +588 -77
  310. package/dist/index23.cjs +1 -1
  311. package/dist/index23.js +212 -29
  312. package/dist/index230.cjs +1 -1
  313. package/dist/index230.js +64 -68
  314. package/dist/index231.cjs +1 -1
  315. package/dist/index231.js +42 -115
  316. package/dist/index232.cjs +1 -1
  317. package/dist/index232.js +65 -98
  318. package/dist/index233.cjs +1 -1
  319. package/dist/index233.js +48 -149
  320. package/dist/index234.cjs +1 -1
  321. package/dist/index234.js +98 -68
  322. package/dist/index235.cjs +1 -9
  323. package/dist/index235.js +214 -580
  324. package/dist/index236.cjs +1 -1
  325. package/dist/index236.js +29 -66
  326. package/dist/index237.cjs +1 -1
  327. package/dist/index237.js +23 -40
  328. package/dist/index238.cjs +1 -1
  329. package/dist/index238.js +55 -59
  330. package/dist/index239.cjs +1 -1
  331. package/dist/index239.js +419 -46
  332. package/dist/index24.cjs +1 -1
  333. package/dist/index24.js +200 -312
  334. package/dist/index240.cjs +1 -1
  335. package/dist/index240.js +30 -97
  336. package/dist/index241.cjs +1 -1
  337. package/dist/index241.js +205 -196
  338. package/dist/index25.cjs +1 -1
  339. package/dist/index25.js +228 -124
  340. package/dist/index26.cjs +1 -1
  341. package/dist/index26.js +161 -86
  342. package/dist/index27.cjs +1 -1
  343. package/dist/index27.js +89 -143
  344. package/dist/index28.cjs +1 -1
  345. package/dist/index28.js +140 -76
  346. package/dist/index29.cjs +1 -1
  347. package/dist/index29.js +92 -84
  348. package/dist/index30.cjs +1 -1
  349. package/dist/index30.js +84 -26
  350. package/dist/index31.cjs +1 -1
  351. package/dist/index31.js +26 -35
  352. package/dist/index32.cjs +1 -1
  353. package/dist/index32.js +39 -86
  354. package/dist/index33.cjs +1 -1
  355. package/dist/index33.js +84 -231
  356. package/dist/index34.cjs +1 -1
  357. package/dist/index34.js +234 -44
  358. package/dist/index35.cjs +1 -1
  359. package/dist/index35.js +39 -26
  360. package/dist/index36.cjs +1 -1
  361. package/dist/index36.js +30 -14
  362. package/dist/index37.cjs +1 -1
  363. package/dist/index37.js +14 -13
  364. package/dist/index38.cjs +1 -1
  365. package/dist/index38.js +13 -3
  366. package/dist/index39.cjs +1 -1
  367. package/dist/index39.js +4 -87
  368. package/dist/index40.cjs +1 -1
  369. package/dist/index40.js +83 -174
  370. package/dist/index41.cjs +1 -1
  371. package/dist/index41.js +66 -142
  372. package/dist/index42.cjs +1 -1
  373. package/dist/index42.js +217 -62
  374. package/dist/index43.cjs +1 -1
  375. package/dist/index43.js +135 -47
  376. package/dist/index44.cjs +1 -1
  377. package/dist/index44.js +47 -260
  378. package/dist/index45.cjs +1 -1
  379. package/dist/index45.js +273 -8
  380. package/dist/index46.cjs +1 -1
  381. package/dist/index46.js +7 -4
  382. package/dist/index47.cjs +1 -1
  383. package/dist/index47.js +4 -503
  384. package/dist/index48.cjs +1 -1
  385. package/dist/index48.js +472 -177
  386. package/dist/index49.cjs +1 -1
  387. package/dist/index49.js +205 -23
  388. package/dist/index50.cjs +1 -1
  389. package/dist/index50.js +21 -1008
  390. package/dist/index51.cjs +1 -1
  391. package/dist/index51.js +1014 -21
  392. package/dist/index52.cjs +1 -1
  393. package/dist/index52.js +22 -207
  394. package/dist/index53.cjs +1 -1
  395. package/dist/index53.js +181 -130
  396. package/dist/index54.cjs +1 -1
  397. package/dist/index54.js +132 -99
  398. package/dist/index55.cjs +1 -1
  399. package/dist/index55.js +123 -19
  400. package/dist/index56.cjs +1 -1
  401. package/dist/index56.js +17 -79
  402. package/dist/index57.cjs +1 -1
  403. package/dist/index57.js +75 -90
  404. package/dist/index58.cjs +1 -1
  405. package/dist/index58.js +91 -9
  406. package/dist/index59.cjs +1 -1
  407. package/dist/index59.js +12 -91
  408. package/dist/index6.cjs +1 -1
  409. package/dist/index6.js +62 -5
  410. package/dist/index60.cjs +1 -1
  411. package/dist/index60.js +92 -31
  412. package/dist/index61.cjs +1 -1
  413. package/dist/index61.js +29 -208
  414. package/dist/index62.cjs +1 -1
  415. package/dist/index62.js +123 -99
  416. package/dist/index63.cjs +1 -1
  417. package/dist/index63.js +17 -17
  418. package/dist/index64.cjs +1 -1
  419. package/dist/index64.js +28 -28
  420. package/dist/index65.cjs +1 -1
  421. package/dist/index65.js +30 -30
  422. package/dist/index67.cjs +1 -1
  423. package/dist/index67.js +11 -11
  424. package/dist/index7.cjs +1 -1
  425. package/dist/index7.js +22 -28
  426. package/dist/index73.cjs +1 -1
  427. package/dist/index73.js +1 -1
  428. package/dist/index74.cjs +1 -1
  429. package/dist/index74.js +20 -20
  430. package/dist/index75.cjs +1 -1
  431. package/dist/index75.js +7 -7
  432. package/dist/index77.cjs +1 -1
  433. package/dist/index77.js +28 -28
  434. package/dist/index8.cjs +1 -1
  435. package/dist/index8.js +28 -61
  436. package/dist/index9.cjs +1 -1
  437. package/dist/index9.js +60 -15
  438. package/dist/ui/accordion.d.ts.map +1 -1
  439. package/dist/ui/avatar.d.ts.map +1 -1
  440. package/dist/ui/breadcrumb.d.ts.map +1 -1
  441. package/dist/ui/button.d.ts.map +1 -1
  442. package/dist/ui/calendar.d.ts +1 -1
  443. package/dist/ui/calendar.d.ts.map +1 -1
  444. package/dist/ui/command.d.ts +1 -1
  445. package/dist/ui/command.d.ts.map +1 -1
  446. package/dist/ui/context-menu.d.ts.map +1 -1
  447. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  448. package/dist/ui/editable.d.ts.map +1 -1
  449. package/dist/ui/field.d.ts.map +1 -1
  450. package/dist/ui/form.d.ts.map +1 -1
  451. package/dist/ui/input-group.d.ts.map +1 -1
  452. package/dist/ui/input-otp.d.ts +1 -1
  453. package/dist/ui/input-otp.d.ts.map +1 -1
  454. package/dist/ui/item.d.ts.map +1 -1
  455. package/dist/ui/menubar.d.ts.map +1 -1
  456. package/dist/ui/pagination.d.ts +3 -1
  457. package/dist/ui/pagination.d.ts.map +1 -1
  458. package/dist/ui/toggle-group.d.ts +1 -1
  459. package/dist/ui/toggle-group.d.ts.map +1 -1
  460. package/dist/ui/toggle.d.ts +1 -1
  461. package/dist/ui/toggle.d.ts.map +1 -1
  462. package/dist/ui/useBreakpoint.d.ts +0 -4
  463. package/dist/ui/useBreakpoint.d.ts.map +1 -1
  464. package/package.json +1 -1
  465. package/dist/index242.cjs +0 -1
  466. package/dist/index242.js +0 -25
  467. package/dist/index243.cjs +0 -1
  468. package/dist/index243.js +0 -26
  469. package/dist/index244.cjs +0 -1
  470. package/dist/index244.js +0 -63
  471. package/dist/index245.cjs +0 -1
  472. package/dist/index245.js +0 -422
  473. package/dist/index246.cjs +0 -1
  474. package/dist/index246.js +0 -25
  475. package/dist/index247.cjs +0 -1
  476. package/dist/index247.js +0 -209
package/dist/index218.js CHANGED
@@ -1,14 +1,37 @@
1
- import { constructFrom as e } from "./index190.js";
2
- import { getDefaultOptions as t } from "./index192.js";
3
- import n from "./index193.js";
4
- import r from "./index194.js";
5
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
6
- function i(i, a) {
7
- let o = n(i, a?.in), s = o.getFullYear(), c = t(), l = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? c.firstWeekContainsDate ?? c.locale?.options?.firstWeekContainsDate ?? 1, u = e(a?.in || i, 0);
8
- u.setFullYear(s + 1, 0, l), u.setHours(0, 0, 0, 0);
9
- let d = r(u, a), f = e(a?.in || i, 0);
10
- f.setFullYear(s, 0, l), f.setHours(0, 0, 0, 0);
11
- let p = r(f, a);
12
- return +o >= +d ? s + 1 : +o >= +p ? s : s - 1;
13
- }
14
- export { i as default, i as getWeekYear };
1
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
2
+ var e = (e, t) => {
3
+ switch (e) {
4
+ case "P": return t.date({ width: "short" });
5
+ case "PP": return t.date({ width: "medium" });
6
+ case "PPP": return t.date({ width: "long" });
7
+ default: return t.date({ width: "full" });
8
+ }
9
+ }, t = (e, t) => {
10
+ switch (e) {
11
+ case "p": return t.time({ width: "short" });
12
+ case "pp": return t.time({ width: "medium" });
13
+ case "ppp": return t.time({ width: "long" });
14
+ default: return t.time({ width: "full" });
15
+ }
16
+ }, n = {
17
+ p: t,
18
+ P: (n, r) => {
19
+ let i = n.match(/(P+)(p+)?/) || [], a = i[1], o = i[2];
20
+ if (!o) return e(n, r);
21
+ let s;
22
+ switch (a) {
23
+ case "P":
24
+ s = r.dateTime({ width: "short" });
25
+ break;
26
+ case "PP":
27
+ s = r.dateTime({ width: "medium" });
28
+ break;
29
+ case "PPP":
30
+ s = r.dateTime({ width: "long" });
31
+ break;
32
+ default: s = r.dateTime({ width: "full" });
33
+ }
34
+ return s.replace("{{date}}", e(a, r)).replace("{{time}}", t(o, r));
35
+ }
36
+ };
37
+ export { n as longFormatters };
package/dist/index219.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index190.cjs"),t=require("./index192.cjs"),n=require("./index194.cjs"),r=require("./index218.cjs");function i(i,a){let o=t.getDefaultOptions(),s=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=r.default(i,a),l=e.constructFrom(a?.in||i,0);return l.setFullYear(c,0,s),l.setHours(0,0,0,0),n.default(l,a)}exports.default=i,exports.startOfWeekYear=i;
1
+ var e=/^D+$/,t=/^Y+$/,n=[`D`,`DD`,`YY`,`YYYY`];function r(t){return e.test(t)}function i(e){return t.test(e)}function a(e,t,r){let i=o(e,t,r);if(console.warn(i),n.includes(e))throw RangeError(i)}function o(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}exports.isProtectedDayOfYearToken=r,exports.isProtectedWeekYearToken=i,exports.warnOrThrowProtectedError=a;
package/dist/index219.js CHANGED
@@ -1,10 +1,22 @@
1
- import { constructFrom as e } from "./index190.js";
2
- import { getDefaultOptions as t } from "./index192.js";
3
- import n from "./index194.js";
4
- import r from "./index218.js";
5
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
6
- function i(i, a) {
7
- let o = t(), s = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, c = r(i, a), l = e(a?.in || i, 0);
8
- return l.setFullYear(c, 0, s), l.setHours(0, 0, 0, 0), n(l, a);
9
- }
10
- export { i as default, i as startOfWeekYear };
1
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js
2
+ var e = /^D+$/, t = /^Y+$/, n = [
3
+ "D",
4
+ "DD",
5
+ "YY",
6
+ "YYYY"
7
+ ];
8
+ function r(t) {
9
+ return e.test(t);
10
+ }
11
+ function i(e) {
12
+ return t.test(e);
13
+ }
14
+ function a(e, t, r) {
15
+ let i = o(e, t, r);
16
+ if (console.warn(i), n.includes(e)) throw RangeError(i);
17
+ }
18
+ function o(e, t, n) {
19
+ let r = e[0] === "Y" ? "years" : "days of the month";
20
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
21
+ }
22
+ export { r as isProtectedDayOfYearToken, i as isProtectedWeekYearToken, a as warnOrThrowProtectedError };
package/dist/index22.cjs CHANGED
@@ -1 +1 @@
1
- var e={xxs:{rem:`0.25rem`,px:4},xs:{rem:`0.5rem`,px:8},sm:{rem:`0.75rem`,px:12},md:{rem:`1rem`,px:16},lg:{rem:`1.5rem`,px:24},xl:{rem:`2rem`,px:32},xxl:{rem:`3rem`,px:48}};function t(t){return typeof t==`string`&&t in e}function n(n){if(n!=null)return typeof n==`number`?`${n}px`:t(n)?`var(--spacing-${n}, ${e[n].rem})`:n}function r(n){if(n!=null){if(typeof n==`number`)return n;if(t(n))return e[n].px;if(typeof n==`string`){if(n.endsWith(`px`)){let e=parseFloat(n);return Number.isNaN(e)?void 0:e}if(n.endsWith(`rem`)){let e=parseFloat(n);return Number.isNaN(e)?void 0:e*16}}}}function i(e){if(e!=null){if(Array.isArray(e)){let t=n(e[0]),r=n(e[1]);return t&&r?`${t} ${r}`:t||r||void 0}return n(e)}}exports.ComponentSpacingPresetMap=e,exports.isComponentSize=t,exports.resolveGap=i,exports.resolveSpacing=n,exports.resolveSpacingPixel=r;
1
+ const e=require("./index2.cjs"),t=require("./index20.cjs");let n=require("@stylexjs/stylex");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react");i=e.__toESM(i,1);let a=require("@radix-ui/react-slot");var o={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`x13z6uf9`,khDVqt:`xuxw1ft`,kaIpWk:`xsda711`,kGuDYH:`xkpwil5`,k63SB2:`xk50ysn`,kkrTdU:`x1ypdohk`,k1ekBW:`xfagghw`,kIyJzY:`xx6bhzk`,kAMwcw:`xwwtwea`,kI3sdo:`x1a2a7pz`,kMzoRj:`xc342km`,ksu8eU:`x1y0btm7`,kmuXW:`x2lah0s`,k7HAVu:`xaqnwrm`,kWCcOm:`xijokvz`,kYPGJ8:`x1s07b3s`,kEtg5x:`x1ippke1`,$$css:!0},variantDefault:{kWkggS:`x1j7ufkg`,kMwMTN:`xstwp1q`,kKhh5M:`x18uuni6`,$$css:!0},variantDestructive:{kWkggS:`x57dptr`,kMwMTN:`x1f7m26b`,kKhh5M:`x18uuni6`,kEtg5x:`xi3z2r8`,$$css:!0},variantOutline:{kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xb30jbz`,kWkggS:`x1mlyrtw`,kGVxlE:`x1dsmnui`,kGzVvX:`x9p52ec`,kDPRdz:`x10ubyu6`,$$css:!0},variantSecondary:{kWkggS:`xr2cb9l`,kMwMTN:`x2mg7mp`,kKhh5M:`x5z6fxw`,$$css:!0},variantGhost:{kWkggS:`xjbqb8w`,kMwMTN:`x1heor9g`,kGzVvX:`x9p52ec`,kDPRdz:`x10ubyu6`,$$css:!0},variantLink:{kWkggS:`xjbqb8w`,kMwMTN:`x6gpbkk`,kcSHmL:`x3pynha`,k67Jb4:`xt0b8zv`,$$css:!0},variantAccent:{kWkggS:`x1jgryid`,kMwMTN:`xzeqxs3`,kKhh5M:`x18uuni6`,$$css:!0},variantAccentCta:{kWkggS:`x1jgryid`,kMwMTN:`xzeqxs3`,kGVxlE:`xe3tlyi`,kwmNyF:`x14snt5h`,kwh8RV:`x1ue318z`,$$css:!0},variantGradient:{kKwaWg:`x1d6nh5w`,kMwMTN:`xstwp1q`,kGVxlE:`xq2yyqn`,kKhh5M:`xclktvd`,kwh8RV:`x1l46q3f`,$$css:!0},variantGradientSuccess:{kKwaWg:`x14lf7vg`,kMwMTN:`x1f7m26b`,kGVxlE:`x1wvf0jk`,kKhh5M:`xclktvd`,kwh8RV:`x1cdh3jk`,$$css:!0},sizeXxs:{kZKoxP:`xam5rvr`,kaIpWk:`x1q0v2j7`,kOIVth:`xvh977a`,kg3NbH:`x97vtpp`,kGuDYH:`x12lo8hy`,$$css:!0},sizeXs:{kZKoxP:`xb8l8e1`,kaIpWk:`x1q0v2j7`,kOIVth:`xx7b8my`,kg3NbH:`xvpgqt4`,kGuDYH:`xboafo0`,$$css:!0},sizeSm:{kZKoxP:`xettwda`,kaIpWk:`xsda711`,kOIVth:`xpj7pl4`,kg3NbH:`x1ryrjj2`,kGuDYH:`x1dcheo9`,$$css:!0},sizeMd:{kZKoxP:`xk8t5le`,kaIpWk:`xsda711`,kOIVth:`x13z6uf9`,kg3NbH:`xnxx81d`,kGuDYH:`xkpwil5`,$$css:!0},sizeLg:{kZKoxP:`xwaiz5r`,kaIpWk:`xsda711`,kOIVth:`x13z6uf9`,kg3NbH:`x1qhpy6z`,kGuDYH:`x6u19be`,$$css:!0},sizeXl:{kZKoxP:`x12hms15`,kaIpWk:`x1f78wua`,kOIVth:`xb6y1gh`,kg3NbH:`xzsmjar`,kGuDYH:`x1jchvi3`,$$css:!0},sizeXxl:{kZKoxP:`x1j7fsof`,kaIpWk:`x1f78wua`,kOIVth:`x8233eu`,kg3NbH:`x129psgg`,kGuDYH:`x1c3i2sq`,$$css:!0},sizeIconXxs:{kZKoxP:`xam5rvr`,kzqmXN:`xp8d6y2`,kmVPX3:`x1717udv`,kaIpWk:`x1q0v2j7`,$$css:!0},sizeIconXs:{kZKoxP:`xb8l8e1`,kzqmXN:`xh29eag`,kmVPX3:`x1717udv`,kaIpWk:`x1q0v2j7`,$$css:!0},sizeIconSm:{kZKoxP:`xettwda`,kzqmXN:`xs5h3dt`,kmVPX3:`x1717udv`,$$css:!0},sizeIconMd:{kZKoxP:`xk8t5le`,kzqmXN:`x1s4ejo4`,kmVPX3:`x1717udv`,$$css:!0},sizeIconLg:{kZKoxP:`xwaiz5r`,kzqmXN:`xvm51jw`,kmVPX3:`x1717udv`,$$css:!0},sizeIconXl:{kZKoxP:`x12hms15`,kzqmXN:`xb1qrhf`,kmVPX3:`x1717udv`,$$css:!0},sizeIconXxl:{kZKoxP:`x1j7fsof`,kzqmXN:`x14cw3s8`,kmVPX3:`x1717udv`,$$css:!0},addonWrapper:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kMwMTN:`x1heor9g`,kLWn49:`xo5v014`,$$css:!0},iconGlyphXxs:{kzqmXN:`x1jw3ynk`,kZKoxP:`xvle69y`,$$css:!0},iconGlyphXs:{kzqmXN:`x1xvt488`,kZKoxP:`xf08kfj`,$$css:!0},iconGlyphSm:{kzqmXN:`xcdlrvm`,kZKoxP:`x1l36t39`,$$css:!0},iconGlyphMd:{kzqmXN:`xsk17dz`,kZKoxP:`xaylbqo`,$$css:!0},iconGlyphLg:{kzqmXN:`xwqq7k2`,kZKoxP:`xmll18r`,$$css:!0},iconGlyphXl:{kzqmXN:`x1h5jark`,kZKoxP:`x11q3zg3`,$$css:!0},iconGlyphXxl:{kzqmXN:`xp8d6y2`,kZKoxP:`xam5rvr`,$$css:!0},spinner:{kKVMdj:`x1aerksh`,k44tkh:`x1q3qbx4`,kyAemX:`x1esw782`,ko0y90:`xa4qsjk`,kaIpWk:`x7xypw4`,kMzoRj:`xdh2fpr`,ksu8eU:`x1y0btm7`,kVAM5u:`x1r7ld26`,kLZC3w:`x1v8p93f`,kmuXW:`x2lah0s`,$$css:!0}},s={default:o.variantDefault,destructive:o.variantDestructive,outline:o.variantOutline,secondary:o.variantSecondary,ghost:o.variantGhost,link:o.variantLink,accent:o.variantAccent,"accent-cta":o.variantAccentCta,gradient:o.variantGradient,"gradient-success":o.variantGradientSuccess},c={xxs:o.sizeXxs,xs:o.sizeXs,sm:o.sizeSm,md:o.sizeMd,lg:o.sizeLg,xl:o.sizeXl,xxl:o.sizeXxl,default:o.sizeMd,"2xl":o.sizeXxl,icon:o.sizeIconMd,"icon-xxs":o.sizeIconXxs,"icon-xs":o.sizeIconXs,"icon-sm":o.sizeIconSm,"icon-md":o.sizeIconMd,"icon-lg":o.sizeIconLg,"icon-xl":o.sizeIconXl,"icon-xxl":o.sizeIconXxl},l={xxs:o.iconGlyphXxs,xs:o.iconGlyphXs,sm:o.iconGlyphSm,md:o.iconGlyphMd,lg:o.iconGlyphLg,xl:o.iconGlyphXl,xxl:o.iconGlyphXxl},u={xxs:`xxs`,xs:`xs`,sm:`sm`,md:`sm`,default:`sm`,lg:`md`,xl:`lg`,xxl:`xl`,"2xl":`xl`,icon:`md`,"icon-xxs":`xxs`,"icon-xs":`xs`,"icon-sm":`sm`,"icon-md":`md`,"icon-lg":`lg`,"icon-xl":`xl`,"icon-xxl":`xxl`};function d({className:e,type:i,variant:d=`default`,size:f=`md`,asChild:p=!1,width:m,style:h,prefix:g,prefixIcon:_,suffix:v,suffixIcon:y,iconSize:b,prefixSize:x,suffixSize:S,isLoading:C,loading:w,disabled:T,htmlType:E,children:D,sx:O,...k}){let A=C??w??!1,j=T??A,M=E??i??`button`,N=p?a.Slot:`button`,P=t.resolveWidth(m),F=f==="default"?`md`:f,I=c[F]??o.sizeMd,L=u[F]??`sm`,R=x??b??L,z=S??b??L,B=g??_,V=v??y,H=n.props(o.base,s[d]??o.variantDefault,I,O),U=e?`${H.className||``} ${e}`.trim():H.className;return p?(0,r.jsx)(N,{"data-slot":`button`,"data-variant":d,"data-size":F,"data-width":m,disabled:j,...H,style:{...H.style,...h,...P?{width:P}:{}},className:U,...k,children:D}):(0,r.jsxs)(`button`,{type:M,"data-slot":`button`,"data-variant":d,"data-size":F,"data-width":m,disabled:j,...H,style:{...H.style,...h,...P?{width:P}:{}},className:U,...k,children:[A?(0,r.jsx)(`span`,{...n.props(o.addonWrapper,o.spinner,l[R]),"aria-hidden":`true`}):B?(0,r.jsx)(`span`,{...n.props(o.addonWrapper,l[R]),"data-slot":`button-prefix`,children:B}):null,D,V&&!A?(0,r.jsx)(`span`,{...n.props(o.addonWrapper,l[z]),"data-slot":`button-suffix`,children:V}):null]})}function f(e){let t=e?.variant||`default`,r=e?.size||`md`,i=r==="default"?`md`:r;return n.props(o.base,s[t]??o.variantDefault,c[i]??o.sizeMd).className||``}exports.Button=d,exports.buttonVariants=f;
package/dist/index22.js CHANGED
@@ -1,63 +1,371 @@
1
- // src/theme/spacing.ts
2
- var e = {
3
- xxs: {
4
- rem: "0.25rem",
5
- px: 4
6
- },
7
- xs: {
8
- rem: "0.5rem",
9
- px: 8
10
- },
11
- sm: {
12
- rem: "0.75rem",
13
- px: 12
14
- },
15
- md: {
16
- rem: "1rem",
17
- px: 16
18
- },
19
- lg: {
20
- rem: "1.5rem",
21
- px: 24
22
- },
23
- xl: {
24
- rem: "2rem",
25
- px: 32
26
- },
27
- xxl: {
28
- rem: "3rem",
29
- px: 48
1
+ import { resolveWidth as e } from "./index20.js";
2
+ import * as t from "@stylexjs/stylex";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import "react";
5
+ import { Slot as i } from "@radix-ui/react-slot";
6
+ // src/ui/button.tsx
7
+ var a = {
8
+ base: {
9
+ k1xSpc: "x3nfvp2",
10
+ kGNEyG: "x6s0dn4",
11
+ kjj79g: "xl56j7k",
12
+ kOIVth: "x13z6uf9",
13
+ khDVqt: "xuxw1ft",
14
+ kaIpWk: "xsda711",
15
+ kGuDYH: "xkpwil5",
16
+ k63SB2: "xk50ysn",
17
+ kkrTdU: "x1ypdohk",
18
+ k1ekBW: "xfagghw",
19
+ kIyJzY: "xx6bhzk",
20
+ kAMwcw: "xwwtwea",
21
+ kI3sdo: "x1a2a7pz",
22
+ kMzoRj: "xc342km",
23
+ ksu8eU: "x1y0btm7",
24
+ kmuXW: "x2lah0s",
25
+ k7HAVu: "xaqnwrm",
26
+ kWCcOm: "xijokvz",
27
+ kYPGJ8: "x1s07b3s",
28
+ kEtg5x: "x1ippke1",
29
+ $$css: !0
30
+ },
31
+ variantDefault: {
32
+ kWkggS: "x1j7ufkg",
33
+ kMwMTN: "xstwp1q",
34
+ kKhh5M: "x18uuni6",
35
+ $$css: !0
36
+ },
37
+ variantDestructive: {
38
+ kWkggS: "x57dptr",
39
+ kMwMTN: "x1f7m26b",
40
+ kKhh5M: "x18uuni6",
41
+ kEtg5x: "xi3z2r8",
42
+ $$css: !0
43
+ },
44
+ variantOutline: {
45
+ kMzoRj: "xmkeg23",
46
+ ksu8eU: "x1y0btm7",
47
+ kVAM5u: "xb30jbz",
48
+ kWkggS: "x1mlyrtw",
49
+ kGVxlE: "x1dsmnui",
50
+ kGzVvX: "x9p52ec",
51
+ kDPRdz: "x10ubyu6",
52
+ $$css: !0
53
+ },
54
+ variantSecondary: {
55
+ kWkggS: "xr2cb9l",
56
+ kMwMTN: "x2mg7mp",
57
+ kKhh5M: "x5z6fxw",
58
+ $$css: !0
59
+ },
60
+ variantGhost: {
61
+ kWkggS: "xjbqb8w",
62
+ kMwMTN: "x1heor9g",
63
+ kGzVvX: "x9p52ec",
64
+ kDPRdz: "x10ubyu6",
65
+ $$css: !0
66
+ },
67
+ variantLink: {
68
+ kWkggS: "xjbqb8w",
69
+ kMwMTN: "x6gpbkk",
70
+ kcSHmL: "x3pynha",
71
+ k67Jb4: "xt0b8zv",
72
+ $$css: !0
73
+ },
74
+ variantAccent: {
75
+ kWkggS: "x1jgryid",
76
+ kMwMTN: "xzeqxs3",
77
+ kKhh5M: "x18uuni6",
78
+ $$css: !0
79
+ },
80
+ variantAccentCta: {
81
+ kWkggS: "x1jgryid",
82
+ kMwMTN: "xzeqxs3",
83
+ kGVxlE: "xe3tlyi",
84
+ kwmNyF: "x14snt5h",
85
+ kwh8RV: "x1ue318z",
86
+ $$css: !0
87
+ },
88
+ variantGradient: {
89
+ kKwaWg: "x1d6nh5w",
90
+ kMwMTN: "xstwp1q",
91
+ kGVxlE: "xq2yyqn",
92
+ kKhh5M: "xclktvd",
93
+ kwh8RV: "x1l46q3f",
94
+ $$css: !0
95
+ },
96
+ variantGradientSuccess: {
97
+ kKwaWg: "x14lf7vg",
98
+ kMwMTN: "x1f7m26b",
99
+ kGVxlE: "x1wvf0jk",
100
+ kKhh5M: "xclktvd",
101
+ kwh8RV: "x1cdh3jk",
102
+ $$css: !0
103
+ },
104
+ sizeXxs: {
105
+ kZKoxP: "xam5rvr",
106
+ kaIpWk: "x1q0v2j7",
107
+ kOIVth: "xvh977a",
108
+ kg3NbH: "x97vtpp",
109
+ kGuDYH: "x12lo8hy",
110
+ $$css: !0
111
+ },
112
+ sizeXs: {
113
+ kZKoxP: "xb8l8e1",
114
+ kaIpWk: "x1q0v2j7",
115
+ kOIVth: "xx7b8my",
116
+ kg3NbH: "xvpgqt4",
117
+ kGuDYH: "xboafo0",
118
+ $$css: !0
119
+ },
120
+ sizeSm: {
121
+ kZKoxP: "xettwda",
122
+ kaIpWk: "xsda711",
123
+ kOIVth: "xpj7pl4",
124
+ kg3NbH: "x1ryrjj2",
125
+ kGuDYH: "x1dcheo9",
126
+ $$css: !0
127
+ },
128
+ sizeMd: {
129
+ kZKoxP: "xk8t5le",
130
+ kaIpWk: "xsda711",
131
+ kOIVth: "x13z6uf9",
132
+ kg3NbH: "xnxx81d",
133
+ kGuDYH: "xkpwil5",
134
+ $$css: !0
135
+ },
136
+ sizeLg: {
137
+ kZKoxP: "xwaiz5r",
138
+ kaIpWk: "xsda711",
139
+ kOIVth: "x13z6uf9",
140
+ kg3NbH: "x1qhpy6z",
141
+ kGuDYH: "x6u19be",
142
+ $$css: !0
143
+ },
144
+ sizeXl: {
145
+ kZKoxP: "x12hms15",
146
+ kaIpWk: "x1f78wua",
147
+ kOIVth: "xb6y1gh",
148
+ kg3NbH: "xzsmjar",
149
+ kGuDYH: "x1jchvi3",
150
+ $$css: !0
151
+ },
152
+ sizeXxl: {
153
+ kZKoxP: "x1j7fsof",
154
+ kaIpWk: "x1f78wua",
155
+ kOIVth: "x8233eu",
156
+ kg3NbH: "x129psgg",
157
+ kGuDYH: "x1c3i2sq",
158
+ $$css: !0
159
+ },
160
+ sizeIconXxs: {
161
+ kZKoxP: "xam5rvr",
162
+ kzqmXN: "xp8d6y2",
163
+ kmVPX3: "x1717udv",
164
+ kaIpWk: "x1q0v2j7",
165
+ $$css: !0
166
+ },
167
+ sizeIconXs: {
168
+ kZKoxP: "xb8l8e1",
169
+ kzqmXN: "xh29eag",
170
+ kmVPX3: "x1717udv",
171
+ kaIpWk: "x1q0v2j7",
172
+ $$css: !0
173
+ },
174
+ sizeIconSm: {
175
+ kZKoxP: "xettwda",
176
+ kzqmXN: "xs5h3dt",
177
+ kmVPX3: "x1717udv",
178
+ $$css: !0
179
+ },
180
+ sizeIconMd: {
181
+ kZKoxP: "xk8t5le",
182
+ kzqmXN: "x1s4ejo4",
183
+ kmVPX3: "x1717udv",
184
+ $$css: !0
185
+ },
186
+ sizeIconLg: {
187
+ kZKoxP: "xwaiz5r",
188
+ kzqmXN: "xvm51jw",
189
+ kmVPX3: "x1717udv",
190
+ $$css: !0
191
+ },
192
+ sizeIconXl: {
193
+ kZKoxP: "x12hms15",
194
+ kzqmXN: "xb1qrhf",
195
+ kmVPX3: "x1717udv",
196
+ $$css: !0
197
+ },
198
+ sizeIconXxl: {
199
+ kZKoxP: "x1j7fsof",
200
+ kzqmXN: "x14cw3s8",
201
+ kmVPX3: "x1717udv",
202
+ $$css: !0
203
+ },
204
+ addonWrapper: {
205
+ k1xSpc: "x3nfvp2",
206
+ kGNEyG: "x6s0dn4",
207
+ kjj79g: "xl56j7k",
208
+ kmuXW: "x2lah0s",
209
+ kMwMTN: "x1heor9g",
210
+ kLWn49: "xo5v014",
211
+ $$css: !0
212
+ },
213
+ iconGlyphXxs: {
214
+ kzqmXN: "x1jw3ynk",
215
+ kZKoxP: "xvle69y",
216
+ $$css: !0
217
+ },
218
+ iconGlyphXs: {
219
+ kzqmXN: "x1xvt488",
220
+ kZKoxP: "xf08kfj",
221
+ $$css: !0
222
+ },
223
+ iconGlyphSm: {
224
+ kzqmXN: "xcdlrvm",
225
+ kZKoxP: "x1l36t39",
226
+ $$css: !0
227
+ },
228
+ iconGlyphMd: {
229
+ kzqmXN: "xsk17dz",
230
+ kZKoxP: "xaylbqo",
231
+ $$css: !0
232
+ },
233
+ iconGlyphLg: {
234
+ kzqmXN: "xwqq7k2",
235
+ kZKoxP: "xmll18r",
236
+ $$css: !0
237
+ },
238
+ iconGlyphXl: {
239
+ kzqmXN: "x1h5jark",
240
+ kZKoxP: "x11q3zg3",
241
+ $$css: !0
242
+ },
243
+ iconGlyphXxl: {
244
+ kzqmXN: "xp8d6y2",
245
+ kZKoxP: "xam5rvr",
246
+ $$css: !0
247
+ },
248
+ spinner: {
249
+ kKVMdj: "x1aerksh",
250
+ k44tkh: "x1q3qbx4",
251
+ kyAemX: "x1esw782",
252
+ ko0y90: "xa4qsjk",
253
+ kaIpWk: "x7xypw4",
254
+ kMzoRj: "xdh2fpr",
255
+ ksu8eU: "x1y0btm7",
256
+ kVAM5u: "x1r7ld26",
257
+ kLZC3w: "x1v8p93f",
258
+ kmuXW: "x2lah0s",
259
+ $$css: !0
30
260
  }
261
+ }, o = {
262
+ default: a.variantDefault,
263
+ destructive: a.variantDestructive,
264
+ outline: a.variantOutline,
265
+ secondary: a.variantSecondary,
266
+ ghost: a.variantGhost,
267
+ link: a.variantLink,
268
+ accent: a.variantAccent,
269
+ "accent-cta": a.variantAccentCta,
270
+ gradient: a.variantGradient,
271
+ "gradient-success": a.variantGradientSuccess
272
+ }, s = {
273
+ xxs: a.sizeXxs,
274
+ xs: a.sizeXs,
275
+ sm: a.sizeSm,
276
+ md: a.sizeMd,
277
+ lg: a.sizeLg,
278
+ xl: a.sizeXl,
279
+ xxl: a.sizeXxl,
280
+ default: a.sizeMd,
281
+ "2xl": a.sizeXxl,
282
+ icon: a.sizeIconMd,
283
+ "icon-xxs": a.sizeIconXxs,
284
+ "icon-xs": a.sizeIconXs,
285
+ "icon-sm": a.sizeIconSm,
286
+ "icon-md": a.sizeIconMd,
287
+ "icon-lg": a.sizeIconLg,
288
+ "icon-xl": a.sizeIconXl,
289
+ "icon-xxl": a.sizeIconXxl
290
+ }, c = {
291
+ xxs: a.iconGlyphXxs,
292
+ xs: a.iconGlyphXs,
293
+ sm: a.iconGlyphSm,
294
+ md: a.iconGlyphMd,
295
+ lg: a.iconGlyphLg,
296
+ xl: a.iconGlyphXl,
297
+ xxl: a.iconGlyphXxl
298
+ }, l = {
299
+ xxs: "xxs",
300
+ xs: "xs",
301
+ sm: "sm",
302
+ md: "sm",
303
+ default: "sm",
304
+ lg: "md",
305
+ xl: "lg",
306
+ xxl: "xl",
307
+ "2xl": "xl",
308
+ icon: "md",
309
+ "icon-xxs": "xxs",
310
+ "icon-xs": "xs",
311
+ "icon-sm": "sm",
312
+ "icon-md": "md",
313
+ "icon-lg": "lg",
314
+ "icon-xl": "xl",
315
+ "icon-xxl": "xxl"
31
316
  };
32
- function t(t) {
33
- return typeof t == "string" && t in e;
317
+ function u({ className: u, type: d, variant: f = "default", size: p = "md", asChild: m = !1, width: h, style: g, prefix: _, prefixIcon: v, suffix: y, suffixIcon: b, iconSize: x, prefixSize: S, suffixSize: C, isLoading: w, loading: T, disabled: E, htmlType: D, children: O, sx: k, ...A }) {
318
+ let j = w ?? T ?? !1, M = E ?? j, N = D ?? d ?? "button", P = m ? i : "button", F = e(h), I = p === "default" ? "md" : p, L = s[I] ?? a.sizeMd, R = l[I] ?? "sm", z = S ?? x ?? R, B = C ?? x ?? R, V = _ ?? v, H = y ?? b, U = t.props(a.base, o[f] ?? a.variantDefault, L, k), W = u ? `${U.className || ""} ${u}`.trim() : U.className;
319
+ return m ? /* @__PURE__ */ n(P, {
320
+ "data-slot": "button",
321
+ "data-variant": f,
322
+ "data-size": I,
323
+ "data-width": h,
324
+ disabled: M,
325
+ ...U,
326
+ style: {
327
+ ...U.style,
328
+ ...g,
329
+ ...F ? { width: F } : {}
330
+ },
331
+ className: W,
332
+ ...A,
333
+ children: O
334
+ }) : /* @__PURE__ */ r("button", {
335
+ type: N,
336
+ "data-slot": "button",
337
+ "data-variant": f,
338
+ "data-size": I,
339
+ "data-width": h,
340
+ disabled: M,
341
+ ...U,
342
+ style: {
343
+ ...U.style,
344
+ ...g,
345
+ ...F ? { width: F } : {}
346
+ },
347
+ className: W,
348
+ ...A,
349
+ children: [
350
+ j ? /* @__PURE__ */ n("span", {
351
+ ...t.props(a.addonWrapper, a.spinner, c[z]),
352
+ "aria-hidden": "true"
353
+ }) : V ? /* @__PURE__ */ n("span", {
354
+ ...t.props(a.addonWrapper, c[z]),
355
+ "data-slot": "button-prefix",
356
+ children: V
357
+ }) : null,
358
+ O,
359
+ H && !j ? /* @__PURE__ */ n("span", {
360
+ ...t.props(a.addonWrapper, c[B]),
361
+ "data-slot": "button-suffix",
362
+ children: H
363
+ }) : null
364
+ ]
365
+ });
34
366
  }
35
- function n(n) {
36
- if (n != null) return typeof n == "number" ? `${n}px` : t(n) ? `var(--spacing-${n}, ${e[n].rem})` : n;
37
- }
38
- function r(n) {
39
- if (n != null) {
40
- if (typeof n == "number") return n;
41
- if (t(n)) return e[n].px;
42
- if (typeof n == "string") {
43
- if (n.endsWith("px")) {
44
- let e = parseFloat(n);
45
- return Number.isNaN(e) ? void 0 : e;
46
- }
47
- if (n.endsWith("rem")) {
48
- let e = parseFloat(n);
49
- return Number.isNaN(e) ? void 0 : e * 16;
50
- }
51
- }
52
- }
53
- }
54
- function i(e) {
55
- if (e != null) {
56
- if (Array.isArray(e)) {
57
- let t = n(e[0]), r = n(e[1]);
58
- return t && r ? `${t} ${r}` : t || r || void 0;
59
- }
60
- return n(e);
61
- }
367
+ function d(e) {
368
+ let n = e?.variant || "default", r = e?.size || "md", i = r === "default" ? "md" : r;
369
+ return t.props(a.base, o[n] ?? a.variantDefault, s[i] ?? a.sizeMd).className || "";
62
370
  }
63
- export { e as ComponentSpacingPresetMap, t as isComponentSize, i as resolveGap, n as resolveSpacing, r as resolveSpacingPixel };
371
+ export { u as Button, d as buttonVariants };
package/dist/index220.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index189.cjs"),t=require("./index193.cjs"),n=require("./index194.cjs"),r=require("./index219.cjs");function i(i,a){let o=t.default(i,a?.in),s=+n.default(o,a)-r.default(o,a);return Math.round(s/e.millisecondsInWeek)+1}exports.default=i,exports.getWeek=i;
1
+ const e=require("./index187.cjs"),t=require("./index188.cjs"),n=require("./index198.cjs"),r=require("./index209.cjs"),i=require("./index217.cjs"),a=require("./index218.cjs"),o=require("./index219.cjs");var s=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l=/^'([^]*?)'?$/,u=/''/g,d=/[a-zA-Z]/;function f(l,u,f){let m=t.getDefaultOptions(),h=f?.locale??m.locale??r.default,g=f?.firstWeekContainsDate??f?.locale?.options?.firstWeekContainsDate??m.firstWeekContainsDate??m.locale?.options?.firstWeekContainsDate??1,_=f?.weekStartsOn??f?.locale?.options?.weekStartsOn??m.weekStartsOn??m.locale?.options?.weekStartsOn??0,v=e.default(l,f?.in);if(!n.default(v))throw RangeError(`Invalid time value`);let y=u.match(c).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=a.longFormatters[t];return n(e,h.formatLong)}return e}).join(``).match(s).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:p(e)};if(i.formatters[t])return{isToken:!0,value:e};if(t.match(d))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});h.localize.preprocessor&&(y=h.localize.preprocessor(v,y));let b={firstWeekContainsDate:g,weekStartsOn:_,locale:h};return y.map(e=>{if(!e.isToken)return e.value;let t=e.value;(!f?.useAdditionalWeekYearTokens&&o.isProtectedWeekYearToken(t)||!f?.useAdditionalDayOfYearTokens&&o.isProtectedDayOfYearToken(t))&&o.warnOrThrowProtectedError(t,u,String(l));let n=i.formatters[t[0]];return n(v,t,h.localize,b)}).join(``)}function p(e){let t=e.match(l);return t?t[1].replace(u,`'`):e}exports.default=f,exports.format=f,exports.formatDate=f,exports.formatters=i.formatters,exports.longFormatters=a.longFormatters;
package/dist/index220.js CHANGED
@@ -1,10 +1,58 @@
1
- import { millisecondsInWeek as e } from "./index189.js";
2
- import t from "./index193.js";
3
- import n from "./index194.js";
4
- import r from "./index219.js";
5
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
6
- function i(i, a) {
7
- let o = t(i, a?.in), s = +n(o, a) - r(o, a);
8
- return Math.round(s / e) + 1;
1
+ import e from "./index187.js";
2
+ import { getDefaultOptions as t } from "./index188.js";
3
+ import n from "./index198.js";
4
+ import r from "./index209.js";
5
+ import { formatters as i } from "./index217.js";
6
+ import { longFormatters as a } from "./index218.js";
7
+ import { isProtectedDayOfYearToken as o, isProtectedWeekYearToken as s, warnOrThrowProtectedError as c } from "./index219.js";
8
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
9
+ var l = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, u = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, d = /^'([^]*?)'?$/, f = /''/g, p = /[a-zA-Z]/;
10
+ function m(d, f, m) {
11
+ let g = t(), _ = m?.locale ?? g.locale ?? r, v = m?.firstWeekContainsDate ?? m?.locale?.options?.firstWeekContainsDate ?? g.firstWeekContainsDate ?? g.locale?.options?.firstWeekContainsDate ?? 1, y = m?.weekStartsOn ?? m?.locale?.options?.weekStartsOn ?? g.weekStartsOn ?? g.locale?.options?.weekStartsOn ?? 0, b = e(d, m?.in);
12
+ if (!n(b)) throw RangeError("Invalid time value");
13
+ let x = f.match(u).map((e) => {
14
+ let t = e[0];
15
+ if (t === "p" || t === "P") {
16
+ let n = a[t];
17
+ return n(e, _.formatLong);
18
+ }
19
+ return e;
20
+ }).join("").match(l).map((e) => {
21
+ if (e === "''") return {
22
+ isToken: !1,
23
+ value: "'"
24
+ };
25
+ let t = e[0];
26
+ if (t === "'") return {
27
+ isToken: !1,
28
+ value: h(e)
29
+ };
30
+ if (i[t]) return {
31
+ isToken: !0,
32
+ value: e
33
+ };
34
+ if (t.match(p)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
35
+ return {
36
+ isToken: !1,
37
+ value: e
38
+ };
39
+ });
40
+ _.localize.preprocessor && (x = _.localize.preprocessor(b, x));
41
+ let S = {
42
+ firstWeekContainsDate: v,
43
+ weekStartsOn: y,
44
+ locale: _
45
+ };
46
+ return x.map((e) => {
47
+ if (!e.isToken) return e.value;
48
+ let t = e.value;
49
+ (!m?.useAdditionalWeekYearTokens && s(t) || !m?.useAdditionalDayOfYearTokens && o(t)) && c(t, f, String(d));
50
+ let n = i[t[0]];
51
+ return n(b, t, _.localize, S);
52
+ }).join("");
9
53
  }
10
- export { i as default, i as getWeek };
54
+ function h(e) {
55
+ let t = e.match(d);
56
+ return t ? t[1].replace(f, "'") : e;
57
+ }
58
+ export { m as default, m as format, m as formatDate, i as formatters, a as longFormatters };
package/dist/index221.cjs CHANGED
@@ -1 +1 @@
1
- function e(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}exports.addLeadingZeros=e;
1
+ const e=require("./index198.cjs"),t=require("./index220.cjs");function n(e){let{pickerType:t=`date`,showTime:n,dateFormat:r,rules:s={},onChangeDate:c,onChangeRange:l}=e,u=r||i(t,n),d=s.required!==void 0&&s.required!==!1;return{dateFormat:u,isRequired:d,processedRules:o(s,d),handleRangeChange:(e,t)=>{if(e.onChange(t),l){let e=[t[0]?a(t[0],u):``,t[1]?a(t[1],u):``];l(t,e)}},handleSingleChange:(e,t)=>{e.onChange(t),c&&c(t,t?a(t,u):``)}}}var r=(e,t,n)=>{if(!e&&!t)return``;let r=e?a(e,n):``,i=t?a(t,n):``;return r&&i?`${r} ~ ${i}`:r||``},i=(e,t)=>e===`time`?typeof t==`object`&&t.format?t.format:`HH:mm:ss`:e===`month`?`MM/yyyy`:e===`year`?`yyyy`:e===`datetime`||t?typeof t==`object`&&t.format?`dd/MM/yyyy ${t.format}`:`dd/MM/yyyy HH:mm:ss`:`dd/MM/yyyy`,a=(n,r)=>{if(!n||!e.default(n))return``;try{return t.default(n,r)}catch(e){return console.warn(`Error formatting date:`,e),``}};function o(e={},t){let n={...e};return t&&typeof n.required!=`string`&&typeof n.required!=`object`?n.required=`This field is required`:typeof n.required==`object`&&!n.required.message&&(n.required={...n.required,message:`This field is required`}),n}exports.buildRangeDisplayValue=r,exports.formatDateValue=a,exports.getDefaultFormat=i,exports.useFormDatePicker=n;
package/dist/index221.js CHANGED
@@ -1,5 +1,40 @@
1
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
2
- function e(e, t) {
3
- return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
1
+ import e from "./index198.js";
2
+ import t from "./index220.js";
3
+ // src/Form/FormDatePicker/useFormDatePicker.ts
4
+ function n(e) {
5
+ let { pickerType: t = "date", showTime: n, dateFormat: r, rules: s = {}, onChangeDate: c, onChangeRange: l } = e, u = r || i(t, n), d = s.required !== void 0 && s.required !== !1;
6
+ return {
7
+ dateFormat: u,
8
+ isRequired: d,
9
+ processedRules: o(s, d),
10
+ handleRangeChange: (e, t) => {
11
+ if (e.onChange(t), l) {
12
+ let e = [t[0] ? a(t[0], u) : "", t[1] ? a(t[1], u) : ""];
13
+ l(t, e);
14
+ }
15
+ },
16
+ handleSingleChange: (e, t) => {
17
+ e.onChange(t), c && c(t, t ? a(t, u) : "");
18
+ }
19
+ };
4
20
  }
5
- export { e as addLeadingZeros };
21
+ var r = (e, t, n) => {
22
+ if (!e && !t) return "";
23
+ let r = e ? a(e, n) : "", i = t ? a(t, n) : "";
24
+ return r && i ? `${r} ~ ${i}` : r || "";
25
+ }, i = (e, t) => e === "time" ? typeof t == "object" && t.format ? t.format : "HH:mm:ss" : e === "month" ? "MM/yyyy" : e === "year" ? "yyyy" : e === "datetime" || t ? typeof t == "object" && t.format ? `dd/MM/yyyy ${t.format}` : "dd/MM/yyyy HH:mm:ss" : "dd/MM/yyyy", a = (n, r) => {
26
+ if (!n || !e(n)) return "";
27
+ try {
28
+ return t(n, r);
29
+ } catch (e) {
30
+ return console.warn("Error formatting date:", e), "";
31
+ }
32
+ };
33
+ function o(e = {}, t) {
34
+ let n = { ...e };
35
+ return t && typeof n.required != "string" && typeof n.required != "object" ? n.required = "This field is required" : typeof n.required == "object" && !n.required.message && (n.required = {
36
+ ...n.required,
37
+ message: "This field is required"
38
+ }), n;
39
+ }
40
+ export { r as buildRangeDisplayValue, a as formatDateValue, i as getDefaultFormat, n as useFormDatePicker };