@szum-tech/design-system 3.16.0 → 3.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/dist/chunk-D5PAWOAZ.cjs +1 -0
  2. package/dist/chunk-JUNHRB4B.js +1 -0
  3. package/dist/chunk-P7BFOJLM.cjs +3 -0
  4. package/dist/chunk-ZYG2KYKK.js +3 -0
  5. package/dist/components/index.cjs +1 -924
  6. package/dist/components/index.d.cts +1650 -56
  7. package/dist/components/index.d.ts +1650 -56
  8. package/dist/components/index.js +1 -43
  9. package/dist/hooks/index.cjs +1 -35
  10. package/dist/hooks/index.js +1 -2
  11. package/dist/icons/index.cjs +2 -93
  12. package/dist/icons/index.js +2 -88
  13. package/dist/utils/index.cjs +1 -10
  14. package/dist/utils/index.js +1 -1
  15. package/package.json +30 -38
  16. package/dist/chunk-2WQJ36RD.cjs +0 -78
  17. package/dist/chunk-2Y2ZCPNV.cjs +0 -61
  18. package/dist/chunk-375QAB65.cjs +0 -145
  19. package/dist/chunk-3DP3VMPN.js +0 -173
  20. package/dist/chunk-3GNVQFCK.cjs +0 -50
  21. package/dist/chunk-3RK5PCIC.js +0 -86
  22. package/dist/chunk-3WSQRFUY.cjs +0 -11
  23. package/dist/chunk-4LNGZHF2.cjs +0 -33
  24. package/dist/chunk-4TRADSTP.js +0 -34
  25. package/dist/chunk-5F2Y65JH.js +0 -32
  26. package/dist/chunk-5MJPZUTO.js +0 -38
  27. package/dist/chunk-5MV54MWS.js +0 -46
  28. package/dist/chunk-6BSR3O2J.js +0 -53
  29. package/dist/chunk-6HX7ETL3.cjs +0 -183
  30. package/dist/chunk-6X26XC6P.cjs +0 -17
  31. package/dist/chunk-7OD2NBSV.cjs +0 -50
  32. package/dist/chunk-A72LE53B.js +0 -21
  33. package/dist/chunk-A7SBXO2Y.cjs +0 -40
  34. package/dist/chunk-B4M7Q5KX.cjs +0 -25
  35. package/dist/chunk-B7RHEMZH.js +0 -48
  36. package/dist/chunk-BTSHACKG.js +0 -123
  37. package/dist/chunk-BUJO4FB6.js +0 -252
  38. package/dist/chunk-CL2C6STG.cjs +0 -278
  39. package/dist/chunk-CXHDWIGF.cjs +0 -89
  40. package/dist/chunk-DGWBE2Y3.cjs +0 -205
  41. package/dist/chunk-DUAM4RTP.cjs +0 -23
  42. package/dist/chunk-EOTQVIA5.js +0 -993
  43. package/dist/chunk-EUH466AL.cjs +0 -179
  44. package/dist/chunk-F7NFSDOD.cjs +0 -91
  45. package/dist/chunk-G24PWQKG.js +0 -20
  46. package/dist/chunk-GEDBA3JU.cjs +0 -49
  47. package/dist/chunk-GYXQUTWZ.cjs +0 -59
  48. package/dist/chunk-H2BWO3SI.cjs +0 -11
  49. package/dist/chunk-H5NHGMSQ.js +0 -136
  50. package/dist/chunk-HCHVDUI6.cjs +0 -34
  51. package/dist/chunk-HNRVLRMN.js +0 -82
  52. package/dist/chunk-HPICKLBZ.cjs +0 -204
  53. package/dist/chunk-I3RSTJP6.js +0 -20
  54. package/dist/chunk-IWF52DDE.js +0 -55
  55. package/dist/chunk-IZU3KULT.js +0 -41
  56. package/dist/chunk-K5AURCK5.js +0 -183
  57. package/dist/chunk-KTAIBRTH.cjs +0 -10
  58. package/dist/chunk-L2TRMQNN.js +0 -130
  59. package/dist/chunk-M7NIRB3U.js +0 -43
  60. package/dist/chunk-MFTNHVPZ.cjs +0 -2906
  61. package/dist/chunk-MNDQXDV4.cjs +0 -607
  62. package/dist/chunk-N4TYSZSU.cjs +0 -44
  63. package/dist/chunk-NU5UQPBX.cjs +0 -25
  64. package/dist/chunk-NXEZE7LG.js +0 -15
  65. package/dist/chunk-OCOCENE6.js +0 -42
  66. package/dist/chunk-OIM2X2NK.js +0 -2825
  67. package/dist/chunk-OQCNPNPS.js +0 -23
  68. package/dist/chunk-OXZQGDTR.js +0 -208
  69. package/dist/chunk-OZSNSRLV.cjs +0 -1027
  70. package/dist/chunk-P4IL77YC.js +0 -66
  71. package/dist/chunk-P4JIMFSL.js +0 -51
  72. package/dist/chunk-P5IUC7HJ.js +0 -9
  73. package/dist/chunk-PBEZZMAB.js +0 -25
  74. package/dist/chunk-RKFU4DS3.cjs +0 -1064
  75. package/dist/chunk-S3ANEJJ7.cjs +0 -22
  76. package/dist/chunk-S3ZUFD6U.js +0 -23
  77. package/dist/chunk-SHPJGB2L.cjs +0 -19
  78. package/dist/chunk-TH44JYXB.cjs +0 -27
  79. package/dist/chunk-TMXVL5CV.cjs +0 -48
  80. package/dist/chunk-U3QKV7I4.js +0 -54
  81. package/dist/chunk-U7XZJQ4O.js +0 -36
  82. package/dist/chunk-UJX74PFK.cjs +0 -46
  83. package/dist/chunk-ULEEQ723.cjs +0 -108
  84. package/dist/chunk-UNOMGKAZ.cjs +0 -141
  85. package/dist/chunk-USIW3VT5.cjs +0 -73
  86. package/dist/chunk-VK2FJ65F.js +0 -575
  87. package/dist/chunk-VK5EX3OG.cjs +0 -132
  88. package/dist/chunk-VT5GDGZJ.js +0 -15
  89. package/dist/chunk-WCQ5WKCQ.js +0 -1042
  90. package/dist/chunk-WMGJCB7O.js +0 -157
  91. package/dist/chunk-X3ZT3KGX.cjs +0 -53
  92. package/dist/chunk-X5O7GP4S.js +0 -48
  93. package/dist/chunk-X7WREEFD.js +0 -8
  94. package/dist/chunk-XENOUBSI.cjs +0 -37
  95. package/dist/chunk-XKCLVPUC.js +0 -176
  96. package/dist/chunk-XTKD76O5.js +0 -29
  97. package/dist/chunk-YBFG2IRJ.cjs +0 -225
  98. package/dist/chunk-YEFLGE3L.cjs +0 -47
  99. package/dist/chunk-YUMKV5TH.js +0 -56
  100. package/dist/chunk-ZD2QRAOX.js +0 -9
  101. package/dist/chunk-ZVF7J4EI.cjs +0 -58
  102. package/dist/color-picker.types-GI7dq2Ig.d.cts +0 -42
  103. package/dist/color-picker.types-GI7dq2Ig.d.ts +0 -42
  104. package/dist/components/accordion/index.cjs +0 -23
  105. package/dist/components/accordion/index.d.cts +0 -17
  106. package/dist/components/accordion/index.d.ts +0 -17
  107. package/dist/components/accordion/index.js +0 -2
  108. package/dist/components/alert/index.cjs +0 -19
  109. package/dist/components/alert/index.d.cts +0 -24
  110. package/dist/components/alert/index.d.ts +0 -24
  111. package/dist/components/alert/index.js +0 -2
  112. package/dist/components/alert-dialog/index.cjs +0 -43
  113. package/dist/components/alert-dialog/index.d.cts +0 -32
  114. package/dist/components/alert-dialog/index.d.ts +0 -32
  115. package/dist/components/alert-dialog/index.js +0 -2
  116. package/dist/components/avatar/index.cjs +0 -19
  117. package/dist/components/avatar/index.d.cts +0 -14
  118. package/dist/components/avatar/index.d.ts +0 -14
  119. package/dist/components/avatar/index.js +0 -2
  120. package/dist/components/badge/index.cjs +0 -19
  121. package/dist/components/badge/index.d.cts +0 -28
  122. package/dist/components/badge/index.d.ts +0 -28
  123. package/dist/components/badge/index.js +0 -2
  124. package/dist/components/badge-overflow/index.cjs +0 -183
  125. package/dist/components/badge-overflow/index.d.cts +0 -21
  126. package/dist/components/badge-overflow/index.d.ts +0 -21
  127. package/dist/components/badge-overflow/index.js +0 -161
  128. package/dist/components/button/index.cjs +0 -52
  129. package/dist/components/button/index.d.cts +0 -58
  130. package/dist/components/button/index.d.ts +0 -58
  131. package/dist/components/button/index.js +0 -43
  132. package/dist/components/card/index.cjs +0 -35
  133. package/dist/components/card/index.d.cts +0 -25
  134. package/dist/components/card/index.d.ts +0 -25
  135. package/dist/components/card/index.js +0 -2
  136. package/dist/components/carousel/index.cjs +0 -269
  137. package/dist/components/carousel/index.d.cts +0 -48
  138. package/dist/components/carousel/index.d.ts +0 -48
  139. package/dist/components/carousel/index.js +0 -238
  140. package/dist/components/checkbox/index.cjs +0 -11
  141. package/dist/components/checkbox/index.d.cts +0 -8
  142. package/dist/components/checkbox/index.d.ts +0 -8
  143. package/dist/components/checkbox/index.js +0 -2
  144. package/dist/components/collapsible/index.cjs +0 -18
  145. package/dist/components/collapsible/index.d.cts +0 -12
  146. package/dist/components/collapsible/index.d.ts +0 -12
  147. package/dist/components/collapsible/index.js +0 -1
  148. package/dist/components/color-picker/index.cjs +0 -92
  149. package/dist/components/color-picker/index.d.cts +0 -71
  150. package/dist/components/color-picker/index.d.ts +0 -71
  151. package/dist/components/color-picker/index.js +0 -43
  152. package/dist/components/color-swatch/index.cjs +0 -11
  153. package/dist/components/color-swatch/index.d.cts +0 -22
  154. package/dist/components/color-swatch/index.d.ts +0 -22
  155. package/dist/components/color-swatch/index.js +0 -2
  156. package/dist/components/counting-number/index.cjs +0 -11
  157. package/dist/components/counting-number/index.d.cts +0 -57
  158. package/dist/components/counting-number/index.d.ts +0 -57
  159. package/dist/components/counting-number/index.js +0 -2
  160. package/dist/components/dialog/index.cjs +0 -39
  161. package/dist/components/dialog/index.d.cts +0 -42
  162. package/dist/components/dialog/index.d.ts +0 -42
  163. package/dist/components/dialog/index.js +0 -2
  164. package/dist/components/dropdown-menu/index.cjs +0 -71
  165. package/dist/components/dropdown-menu/index.d.cts +0 -67
  166. package/dist/components/dropdown-menu/index.d.ts +0 -67
  167. package/dist/components/dropdown-menu/index.js +0 -2
  168. package/dist/components/empty/index.cjs +0 -31
  169. package/dist/components/empty/index.d.cts +0 -29
  170. package/dist/components/empty/index.d.ts +0 -29
  171. package/dist/components/empty/index.js +0 -2
  172. package/dist/components/field/index.cjs +0 -49
  173. package/dist/components/field/index.d.cts +0 -50
  174. package/dist/components/field/index.d.ts +0 -50
  175. package/dist/components/field/index.js +0 -4
  176. package/dist/components/file-upload/index.cjs +0 -60
  177. package/dist/components/file-upload/index.d.cts +0 -131
  178. package/dist/components/file-upload/index.d.ts +0 -131
  179. package/dist/components/file-upload/index.js +0 -3
  180. package/dist/components/header/index.cjs +0 -10
  181. package/dist/components/header/index.d.cts +0 -9
  182. package/dist/components/header/index.d.ts +0 -9
  183. package/dist/components/header/index.js +0 -1
  184. package/dist/components/input/index.cjs +0 -11
  185. package/dist/components/input/index.d.cts +0 -9
  186. package/dist/components/input/index.d.ts +0 -9
  187. package/dist/components/input/index.js +0 -2
  188. package/dist/components/item/index.cjs +0 -48
  189. package/dist/components/item/index.d.cts +0 -61
  190. package/dist/components/item/index.d.ts +0 -61
  191. package/dist/components/item/index.js +0 -3
  192. package/dist/components/label/index.cjs +0 -11
  193. package/dist/components/label/index.d.cts +0 -8
  194. package/dist/components/label/index.d.ts +0 -8
  195. package/dist/components/label/index.js +0 -2
  196. package/dist/components/marquee/index.cjs +0 -11
  197. package/dist/components/marquee/index.d.cts +0 -48
  198. package/dist/components/marquee/index.d.ts +0 -48
  199. package/dist/components/marquee/index.js +0 -2
  200. package/dist/components/masonry/index.cjs +0 -16
  201. package/dist/components/masonry/index.d.cts +0 -181
  202. package/dist/components/masonry/index.d.ts +0 -181
  203. package/dist/components/masonry/index.js +0 -3
  204. package/dist/components/popover/index.cjs +0 -35
  205. package/dist/components/popover/index.d.cts +0 -18
  206. package/dist/components/popover/index.d.ts +0 -18
  207. package/dist/components/popover/index.js +0 -2
  208. package/dist/components/progress/index.cjs +0 -11
  209. package/dist/components/progress/index.d.cts +0 -8
  210. package/dist/components/progress/index.d.ts +0 -8
  211. package/dist/components/progress/index.js +0 -2
  212. package/dist/components/radio-group/index.cjs +0 -15
  213. package/dist/components/radio-group/index.d.cts +0 -22
  214. package/dist/components/radio-group/index.d.ts +0 -22
  215. package/dist/components/radio-group/index.js +0 -2
  216. package/dist/components/scroll-area/index.cjs +0 -15
  217. package/dist/components/scroll-area/index.d.cts +0 -11
  218. package/dist/components/scroll-area/index.d.ts +0 -11
  219. package/dist/components/scroll-area/index.js +0 -2
  220. package/dist/components/select/index.cjs +0 -31
  221. package/dist/components/select/index.d.cts +0 -22
  222. package/dist/components/select/index.d.ts +0 -22
  223. package/dist/components/select/index.js +0 -2
  224. package/dist/components/separator/index.cjs +0 -11
  225. package/dist/components/separator/index.d.cts +0 -8
  226. package/dist/components/separator/index.d.ts +0 -8
  227. package/dist/components/separator/index.js +0 -2
  228. package/dist/components/sheet/index.cjs +0 -39
  229. package/dist/components/sheet/index.d.cts +0 -42
  230. package/dist/components/sheet/index.d.ts +0 -42
  231. package/dist/components/sheet/index.js +0 -2
  232. package/dist/components/sidebar/index.cjs +0 -148
  233. package/dist/components/sidebar/index.d.cts +0 -135
  234. package/dist/components/sidebar/index.d.ts +0 -135
  235. package/dist/components/sidebar/index.js +0 -43
  236. package/dist/components/skeleton/index.cjs +0 -11
  237. package/dist/components/skeleton/index.d.cts +0 -7
  238. package/dist/components/skeleton/index.d.ts +0 -7
  239. package/dist/components/skeleton/index.js +0 -2
  240. package/dist/components/sortable/index.cjs +0 -27
  241. package/dist/components/sortable/index.d.cts +0 -50
  242. package/dist/components/sortable/index.d.ts +0 -50
  243. package/dist/components/sortable/index.js +0 -2
  244. package/dist/components/spinner/index.cjs +0 -11
  245. package/dist/components/spinner/index.d.cts +0 -7
  246. package/dist/components/spinner/index.d.ts +0 -7
  247. package/dist/components/spinner/index.js +0 -2
  248. package/dist/components/status/index.cjs +0 -19
  249. package/dist/components/status/index.d.cts +0 -25
  250. package/dist/components/status/index.d.ts +0 -25
  251. package/dist/components/status/index.js +0 -2
  252. package/dist/components/stepper/index.cjs +0 -124
  253. package/dist/components/stepper/index.d.cts +0 -164
  254. package/dist/components/stepper/index.d.ts +0 -164
  255. package/dist/components/stepper/index.js +0 -43
  256. package/dist/components/switch/index.cjs +0 -11
  257. package/dist/components/switch/index.d.cts +0 -19
  258. package/dist/components/switch/index.d.ts +0 -19
  259. package/dist/components/switch/index.js +0 -2
  260. package/dist/components/tabs/index.cjs +0 -23
  261. package/dist/components/tabs/index.d.cts +0 -17
  262. package/dist/components/tabs/index.d.ts +0 -17
  263. package/dist/components/tabs/index.js +0 -2
  264. package/dist/components/textarea/index.cjs +0 -11
  265. package/dist/components/textarea/index.d.cts +0 -9
  266. package/dist/components/textarea/index.d.ts +0 -9
  267. package/dist/components/textarea/index.js +0 -2
  268. package/dist/components/timeline/index.cjs +0 -45
  269. package/dist/components/timeline/index.d.cts +0 -63
  270. package/dist/components/timeline/index.d.ts +0 -63
  271. package/dist/components/timeline/index.js +0 -4
  272. package/dist/components/toaster/index.cjs +0 -56
  273. package/dist/components/toaster/index.d.cts +0 -8
  274. package/dist/components/toaster/index.d.ts +0 -8
  275. package/dist/components/toaster/index.js +0 -43
  276. package/dist/components/tooltip/index.cjs +0 -19
  277. package/dist/components/tooltip/index.d.cts +0 -12
  278. package/dist/components/tooltip/index.d.ts +0 -12
  279. package/dist/components/tooltip/index.js +0 -2
  280. package/dist/components/typing-text/index.cjs +0 -11
  281. package/dist/components/typing-text/index.d.cts +0 -41
  282. package/dist/components/typing-text/index.d.ts +0 -41
  283. package/dist/components/typing-text/index.js +0 -2
  284. package/dist/components/word-rotate/index.cjs +0 -11
  285. package/dist/components/word-rotate/index.d.cts +0 -30
  286. package/dist/components/word-rotate/index.d.ts +0 -30
  287. package/dist/components/word-rotate/index.js +0 -2
  288. package/dist/direction-CUOPDLCj.d.cts +0 -7
  289. package/dist/direction-CUOPDLCj.d.ts +0 -7
  290. package/dist/popover-trigger-Cf4PPj0z.d.cts +0 -14
  291. package/dist/popover-trigger-Cf4PPj0z.d.ts +0 -14
  292. package/dist/select-Bf6XQtt-.d.cts +0 -12
  293. package/dist/select-Bf6XQtt-.d.ts +0 -12
  294. package/dist/tooltip-content-DqtogPBq.d.cts +0 -8
  295. package/dist/tooltip-content-DqtogPBq.d.ts +0 -8
@@ -1,204 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkDUAM4RTP_cjs = require('./chunk-DUAM4RTP.cjs');
4
- var chunkS3ANEJJ7_cjs = require('./chunk-S3ANEJJ7.cjs');
5
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
6
- var classVarianceAuthority = require('class-variance-authority');
7
- var jsxRuntime = require('react/jsx-runtime');
8
- var React = require('react');
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n.default = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
29
-
30
- var fieldVariants = classVarianceAuthority.cva("group/field data-[invalid=true]:text-error flex w-full gap-3", {
31
- variants: {
32
- orientation: {
33
- vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
34
- horizontal: [
35
- "flex-row items-center",
36
- "[&>[data-slot=field-label]]:flex-auto",
37
- "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
38
- ],
39
- responsive: [
40
- "flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
41
- "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
42
- "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
43
- ]
44
- }
45
- },
46
- defaultVariants: {
47
- orientation: "vertical"
48
- }
49
- });
50
- function Field({ className, orientation = "vertical", ...props }) {
51
- return /* @__PURE__ */ jsxRuntime.jsx(
52
- "div",
53
- {
54
- role: "group",
55
- "data-slot": "field",
56
- "data-orientation": orientation,
57
- className: chunkH2BWO3SI_cjs.cn(fieldVariants({ orientation }), className),
58
- ...props
59
- }
60
- );
61
- }
62
- function FieldContent({ className, ...props }) {
63
- return /* @__PURE__ */ jsxRuntime.jsx(
64
- "div",
65
- {
66
- "data-slot": "field-content",
67
- className: chunkH2BWO3SI_cjs.cn("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", className),
68
- ...props
69
- }
70
- );
71
- }
72
- function FieldDescription({ className, ...props }) {
73
- return /* @__PURE__ */ jsxRuntime.jsx(
74
- "p",
75
- {
76
- "data-slot": "field-description",
77
- className: chunkH2BWO3SI_cjs.cn(
78
- "text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
79
- "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
80
- "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
81
- className
82
- ),
83
- ...props
84
- }
85
- );
86
- }
87
- function FieldError({ className, children, errors, ...props }) {
88
- const content = React__namespace.useMemo(() => {
89
- if (children) {
90
- return children;
91
- }
92
- if (!errors?.length) {
93
- return null;
94
- }
95
- const uniqueErrors = [...new Map(errors.map((error) => [error?.message, error])).values()];
96
- if (uniqueErrors?.length == 1) {
97
- return uniqueErrors[0]?.message;
98
- }
99
- return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => error?.message && /* @__PURE__ */ jsxRuntime.jsx("li", { children: error.message }, index)) });
100
- }, [children, errors]);
101
- if (!content) {
102
- return null;
103
- }
104
- return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "alert", "data-slot": "field-error", className: chunkH2BWO3SI_cjs.cn("text-error text-sm font-normal", className), ...props, children: content });
105
- }
106
- function FieldGroup({ className, ...props }) {
107
- return /* @__PURE__ */ jsxRuntime.jsx(
108
- "div",
109
- {
110
- "data-slot": "field-group",
111
- className: chunkH2BWO3SI_cjs.cn(
112
- "group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
113
- className
114
- ),
115
- ...props
116
- }
117
- );
118
- }
119
- function FieldLabel({ className, ...props }) {
120
- return /* @__PURE__ */ jsxRuntime.jsx(
121
- chunkS3ANEJJ7_cjs.Label,
122
- {
123
- "data-slot": "field-label",
124
- className: chunkH2BWO3SI_cjs.cn(
125
- "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
126
- "has-[>[data-slot=field]]:border-border has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4",
127
- "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
128
- className
129
- ),
130
- ...props
131
- }
132
- );
133
- }
134
- function FieldLegend({ className, variant = "legend", ...props }) {
135
- return /* @__PURE__ */ jsxRuntime.jsx(
136
- "legend",
137
- {
138
- "data-slot": "field-legend",
139
- "data-variant": variant,
140
- className: chunkH2BWO3SI_cjs.cn("mb-3 font-medium", "data-[variant=legend]:text-base", "data-[variant=label]:text-sm", className),
141
- ...props
142
- }
143
- );
144
- }
145
- function FieldSeparator({ children, className, ...props }) {
146
- return /* @__PURE__ */ jsxRuntime.jsxs(
147
- "div",
148
- {
149
- "data-slot": "field-separator",
150
- "data-content": !!children,
151
- className: chunkH2BWO3SI_cjs.cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
152
- ...props,
153
- children: [
154
- /* @__PURE__ */ jsxRuntime.jsx(chunkDUAM4RTP_cjs.Separator, { className: "absolute inset-0 top-1/2" }),
155
- children ? /* @__PURE__ */ jsxRuntime.jsx(
156
- "span",
157
- {
158
- className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
159
- "data-slot": "field-separator-content",
160
- children
161
- }
162
- ) : null
163
- ]
164
- }
165
- );
166
- }
167
- function FieldSet({ className, ...props }) {
168
- return /* @__PURE__ */ jsxRuntime.jsx(
169
- "fieldset",
170
- {
171
- "data-slot": "field-set",
172
- className: chunkH2BWO3SI_cjs.cn(
173
- "flex flex-col gap-6",
174
- "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
175
- className
176
- ),
177
- ...props
178
- }
179
- );
180
- }
181
- function FieldTitle({ className, ...props }) {
182
- return /* @__PURE__ */ jsxRuntime.jsx(
183
- "div",
184
- {
185
- "data-slot": "field-label",
186
- className: chunkH2BWO3SI_cjs.cn(
187
- "flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
188
- className
189
- ),
190
- ...props
191
- }
192
- );
193
- }
194
-
195
- exports.Field = Field;
196
- exports.FieldContent = FieldContent;
197
- exports.FieldDescription = FieldDescription;
198
- exports.FieldError = FieldError;
199
- exports.FieldGroup = FieldGroup;
200
- exports.FieldLabel = FieldLabel;
201
- exports.FieldLegend = FieldLegend;
202
- exports.FieldSeparator = FieldSeparator;
203
- exports.FieldSet = FieldSet;
204
- exports.FieldTitle = FieldTitle;
@@ -1,20 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Label as Label$1 } from 'radix-ui';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- function Label({ className, ...props }) {
6
- return /* @__PURE__ */ jsx(
7
- Label$1.Root,
8
- {
9
- "data-slot": "label",
10
- className: cn(
11
- "flex items-center gap-2 text-sm leading-none font-medium select-none",
12
- "group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
13
- className
14
- ),
15
- ...props
16
- }
17
- );
18
- }
19
-
20
- export { Label };
@@ -1,55 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Slot } from '@radix-ui/react-slot';
3
- import { cva } from 'class-variance-authority';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var statusVariants = cva(
7
- "inline-flex w-fit shrink-0 items-center gap-1.5 overflow-hidden whitespace-nowrap rounded-full border px-2.5 py-1 font-medium text-xs transition-colors",
8
- {
9
- variants: {
10
- variant: {
11
- default: "border-transparent bg-muted text-muted-foreground **:data-[slot=status-indicator]:bg-muted-foreground",
12
- success: "border-success/20 bg-success/10 text-success **:data-[slot=status-indicator]:bg-success",
13
- error: "border-error/20 bg-error/10 text-error **:data-[slot=status-indicator]:bg-error",
14
- warning: "border-warning/20 bg-warning/10 text-warning **:data-[slot=status-indicator]:bg-warning",
15
- primary: "border-primary/20 bg-primary/10 text-primary **:data-[slot=status-indicator]:bg-primary "
16
- }
17
- },
18
- defaultVariants: {
19
- variant: "default"
20
- }
21
- }
22
- );
23
- function Status({ className, variant = "default", asChild, ...rootProps }) {
24
- const RootPrimitive = asChild ? Slot : "div";
25
- return /* @__PURE__ */ jsx(
26
- RootPrimitive,
27
- {
28
- "data-slot": "status",
29
- "data-variant": variant,
30
- ...rootProps,
31
- className: cn(statusVariants({ variant }), className)
32
- }
33
- );
34
- }
35
- function StatusIndicator(props) {
36
- const { className, ...indicatorProps } = props;
37
- return /* @__PURE__ */ jsx(
38
- "div",
39
- {
40
- "data-slot": "status-indicator",
41
- ...indicatorProps,
42
- className: cn(
43
- "relative flex size-2 shrink-0 rounded-full",
44
- "before:absolute before:inset-0 before:animate-ping before:rounded-full before:bg-inherit",
45
- "after:absolute after:inset-0.5 after:rounded-full after:bg-inherit",
46
- className
47
- )
48
- }
49
- );
50
- }
51
- function StatusLabel({ className, ...labelProps }) {
52
- return /* @__PURE__ */ jsx("div", { "data-slot": "status-label", ...labelProps, className: cn("leading-none", className) });
53
- }
54
-
55
- export { Status, StatusIndicator, StatusLabel };
@@ -1,41 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Popover as Popover$1 } from 'radix-ui';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- function Popover(props) {
6
- return /* @__PURE__ */ jsx(Popover$1.Root, { "data-slot": "popover", ...props });
7
- }
8
- function PopoverAnchor(props) {
9
- return /* @__PURE__ */ jsx(Popover$1.Anchor, { "data-slot": "popover-anchor", ...props });
10
- }
11
- function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
12
- return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(
13
- Popover$1.Content,
14
- {
15
- "data-slot": "popover-content",
16
- align,
17
- sideOffset,
18
- className: cn(
19
- "bg-popover text-popover-foreground ring-foreground/10 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100",
20
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
21
- "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
22
- className
23
- ),
24
- ...props
25
- }
26
- ) });
27
- }
28
- function PopoverTrigger(props) {
29
- return /* @__PURE__ */ jsx(Popover$1.Trigger, { "data-slot": "popover-trigger", ...props });
30
- }
31
- function PopoverHeader({ className, ...props }) {
32
- return /* @__PURE__ */ jsx("div", { "data-slot": "popover-header", className: cn("flex flex-col gap-0.5 text-sm", className), ...props });
33
- }
34
- function PopoverTitle({ className, ...props }) {
35
- return /* @__PURE__ */ jsx("h2", { "data-slot": "popover-title", className: cn("font-medium", className), ...props });
36
- }
37
- function PopoverDescription({ className, ...props }) {
38
- return /* @__PURE__ */ jsx("p", { "data-slot": "popover-description", className: cn("text-muted-foreground", className), ...props });
39
- }
40
-
41
- export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
@@ -1,183 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import * as React from 'react';
3
- import { useInView, motion } from 'motion/react';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- function WordRotate({
7
- words,
8
- duration = 1500,
9
- animationStyle = "fade",
10
- loop = true,
11
- className,
12
- containerClassName,
13
- pauseDuration = 300,
14
- startOnView = true,
15
- once = false,
16
- inViewMargin,
17
- ...props
18
- }) {
19
- const ref = React.useRef(null);
20
- const isInView = useInView(ref, { once, margin: inViewMargin });
21
- const [hasAnimated, setHasAnimated] = React.useState(false);
22
- const [currentWord, setCurrentWord] = React.useState(0);
23
- const [show, setShow] = React.useState(true);
24
- const variants = {
25
- fade: {
26
- initial: { opacity: 0 },
27
- animate: {
28
- opacity: 1,
29
- transition: {
30
- duration: 0.4,
31
- ease: [0.4, 0, 0.2, 1]
32
- // Custom cubic-bezier for smooth fade
33
- }
34
- },
35
- exit: {
36
- opacity: 0,
37
- transition: {
38
- duration: 0.3,
39
- ease: [0.4, 0, 1, 1]
40
- // Faster exit
41
- }
42
- }
43
- },
44
- "slide-up": {
45
- initial: { opacity: 0, y: 24 },
46
- animate: {
47
- opacity: 1,
48
- y: 0,
49
- transition: {
50
- type: "spring",
51
- stiffness: 300,
52
- damping: 25,
53
- mass: 0.8
54
- }
55
- },
56
- exit: {
57
- opacity: 0,
58
- y: -24,
59
- transition: {
60
- duration: 0.25,
61
- ease: [0.4, 0, 1, 1]
62
- }
63
- }
64
- },
65
- "slide-down": {
66
- initial: { opacity: 0, y: -24 },
67
- animate: {
68
- opacity: 1,
69
- y: 0,
70
- transition: {
71
- type: "spring",
72
- stiffness: 300,
73
- damping: 25,
74
- mass: 0.8
75
- }
76
- },
77
- exit: {
78
- opacity: 0,
79
- y: 24,
80
- transition: {
81
- duration: 0.25,
82
- ease: [0.4, 0, 1, 1]
83
- }
84
- }
85
- },
86
- scale: {
87
- initial: { opacity: 0, scale: 0.8 },
88
- animate: {
89
- opacity: 1,
90
- scale: 1,
91
- transition: {
92
- type: "spring",
93
- stiffness: 400,
94
- damping: 30,
95
- mass: 0.6
96
- }
97
- },
98
- exit: {
99
- opacity: 0,
100
- scale: 0.9,
101
- transition: {
102
- duration: 0.2,
103
- ease: [0.4, 0, 1, 1]
104
- }
105
- }
106
- },
107
- flip: {
108
- initial: { opacity: 0, rotateX: 90 },
109
- animate: {
110
- opacity: 1,
111
- rotateX: 0,
112
- transition: {
113
- type: "spring",
114
- stiffness: 200,
115
- damping: 20,
116
- mass: 1
117
- }
118
- },
119
- exit: {
120
- opacity: 0,
121
- rotateX: -90,
122
- transition: {
123
- duration: 0.3,
124
- ease: [0.4, 0, 1, 1]
125
- }
126
- }
127
- }
128
- };
129
- const shouldStart = !startOnView || isInView && (!once || !hasAnimated);
130
- React.useEffect(() => {
131
- if (!shouldStart) return;
132
- if (words.length === 0) return;
133
- let intervalId;
134
- let timeoutId;
135
- intervalId = setInterval(() => {
136
- setShow(false);
137
- timeoutId = setTimeout(() => {
138
- setCurrentWord((prev) => {
139
- const nextIndex = prev + 1;
140
- if (!loop && nextIndex >= words.length) {
141
- clearInterval(intervalId);
142
- clearTimeout(timeoutId);
143
- return prev;
144
- }
145
- return loop ? nextIndex % words.length : nextIndex;
146
- });
147
- setShow(true);
148
- setHasAnimated(true);
149
- }, pauseDuration);
150
- }, duration + pauseDuration);
151
- return () => {
152
- clearInterval(intervalId);
153
- clearTimeout(timeoutId);
154
- };
155
- }, [shouldStart, duration, pauseDuration, words.length, loop, once, hasAnimated]);
156
- return /* @__PURE__ */ jsx(
157
- motion.span,
158
- {
159
- ref,
160
- "data-slot": "word-rotate",
161
- className: cn("inline-block overflow-hidden align-bottom leading-none", containerClassName),
162
- ...props,
163
- children: /* @__PURE__ */ jsx(
164
- motion.span,
165
- {
166
- initial: "initial",
167
- animate: show ? "animate" : "exit",
168
- exit: "exit",
169
- variants: variants[animationStyle],
170
- transition: { duration: 0.5 },
171
- style: {
172
- perspective: animationStyle === "flip" ? 1e3 : void 0
173
- },
174
- className: cn("inline-block", className),
175
- children: words[currentWord]
176
- },
177
- currentWord
178
- )
179
- }
180
- );
181
- }
182
-
183
- export { WordRotate };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var jsxRuntime = require('react/jsx-runtime');
5
-
6
- function Skeleton({ className, ...props }) {
7
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "skeleton", className: chunkH2BWO3SI_cjs.cn("bg-muted animate-pulse rounded-md", className), ...props });
8
- }
9
-
10
- exports.Skeleton = Skeleton;
@@ -1,130 +0,0 @@
1
- import { Separator } from './chunk-A72LE53B.js';
2
- import { cn } from './chunk-ZD2QRAOX.js';
3
- import { Slot } from '@radix-ui/react-slot';
4
- import { cva } from 'class-variance-authority';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- var itemVariants = cva(
8
- "group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:ring [a]:transition-colors",
9
- {
10
- variants: {
11
- variant: {
12
- default: "bg-transparent",
13
- outline: "border-border",
14
- muted: "bg-muted/50"
15
- },
16
- size: {
17
- default: "gap-4 p-4 ",
18
- sm: "gap-2.5 px-4 py-3"
19
- }
20
- },
21
- defaultVariants: {
22
- variant: "default",
23
- size: "default"
24
- }
25
- }
26
- );
27
- function Item({ className, variant = "default", size = "default", asChild = false, ...props }) {
28
- const Comp = asChild ? Slot : "div";
29
- return /* @__PURE__ */ jsx(
30
- Comp,
31
- {
32
- "data-slot": "item",
33
- "data-variant": variant,
34
- "data-size": size,
35
- className: cn(itemVariants({ variant, size, className })),
36
- ...props
37
- }
38
- );
39
- }
40
- var itemMediaVariants = cva(
41
- "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
42
- {
43
- variants: {
44
- variant: {
45
- default: "bg-transparent",
46
- icon: "border-border bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
47
- image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
48
- }
49
- },
50
- defaultVariants: {
51
- variant: "default"
52
- }
53
- }
54
- );
55
- function ItemMedia({ className, variant = "default", ...props }) {
56
- return /* @__PURE__ */ jsx(
57
- "div",
58
- {
59
- "data-slot": "item-media",
60
- "data-variant": variant,
61
- className: cn(itemMediaVariants({ variant }), className),
62
- ...props
63
- }
64
- );
65
- }
66
- function ItemGroup({ className, ...props }) {
67
- return /* @__PURE__ */ jsx("div", { role: "list", "data-slot": "item-group", className: cn("group/item-group flex flex-col", className), ...props });
68
- }
69
- function ItemActions({ className, ...props }) {
70
- return /* @__PURE__ */ jsx("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
71
- }
72
- function ItemContent({ className, ...props }) {
73
- return /* @__PURE__ */ jsx(
74
- "div",
75
- {
76
- "data-slot": "item-content",
77
- className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
78
- ...props
79
- }
80
- );
81
- }
82
- function ItemDescription({ className, ...props }) {
83
- return /* @__PURE__ */ jsx(
84
- "p",
85
- {
86
- "data-slot": "item-description",
87
- className: cn(
88
- "text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
89
- "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
90
- className
91
- ),
92
- ...props
93
- }
94
- );
95
- }
96
- function ItemFooter({ className, ...props }) {
97
- return /* @__PURE__ */ jsx(
98
- "div",
99
- {
100
- "data-slot": "item-footer",
101
- className: cn("flex basis-full items-center justify-between gap-2", className),
102
- ...props
103
- }
104
- );
105
- }
106
- function ItemHeader({ className, ...props }) {
107
- return /* @__PURE__ */ jsx(
108
- "div",
109
- {
110
- "data-slot": "item-header",
111
- className: cn("flex basis-full items-center justify-between gap-2", className),
112
- ...props
113
- }
114
- );
115
- }
116
- function ItemTitle({ className, ...props }) {
117
- return /* @__PURE__ */ jsx(
118
- "div",
119
- {
120
- "data-slot": "item-title",
121
- className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
122
- ...props
123
- }
124
- );
125
- }
126
- function ItemSeparator({ className, ...props }) {
127
- return /* @__PURE__ */ jsx(Separator, { "data-slot": "item-separator", orientation: "horizontal", className: cn("my-0", className), ...props });
128
- }
129
-
130
- export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
@@ -1,43 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { ScrollArea as ScrollArea$1 } from 'radix-ui';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
-
5
- function ScrollBar({ className, orientation = "vertical", ...props }) {
6
- return /* @__PURE__ */ jsx(
7
- ScrollArea$1.ScrollAreaScrollbar,
8
- {
9
- "data-slot": "scroll-area-scrollbar",
10
- orientation,
11
- className: cn(
12
- "flex touch-none p-px transition-colors select-none",
13
- orientation === "vertical" ? "h-full w-2.5 border-l border-l-transparent" : "",
14
- orientation === "horizontal" ? "h-2.5 flex-col border-t border-t-transparent" : "",
15
- className
16
- ),
17
- ...props,
18
- children: /* @__PURE__ */ jsx(
19
- ScrollArea$1.ScrollAreaThumb,
20
- {
21
- "data-slot": "scroll-area-thumb",
22
- className: "bg-border relative flex-1 rounded"
23
- }
24
- )
25
- }
26
- );
27
- }
28
- function ScrollArea({ className, children, ...props }) {
29
- return /* @__PURE__ */ jsxs(ScrollArea$1.Root, { "data-slot": "scroll-area", className: cn("relative", className), ...props, children: [
30
- /* @__PURE__ */ jsx(
31
- ScrollArea$1.Viewport,
32
- {
33
- "data-slot": "scroll-area-viewport",
34
- className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring focus-visible:outline-1",
35
- children
36
- }
37
- ),
38
- /* @__PURE__ */ jsx(ScrollBar, {}),
39
- /* @__PURE__ */ jsx(ScrollArea$1.Corner, {})
40
- ] });
41
- }
42
-
43
- export { ScrollArea, ScrollBar };