@szum-tech/design-system 3.17.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 (299) 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-35H6T7OQ.cjs +0 -2912
  19. package/dist/chunk-375QAB65.cjs +0 -145
  20. package/dist/chunk-3DP3VMPN.js +0 -173
  21. package/dist/chunk-3GNVQFCK.cjs +0 -50
  22. package/dist/chunk-3RK5PCIC.js +0 -86
  23. package/dist/chunk-3WSQRFUY.cjs +0 -11
  24. package/dist/chunk-4LNGZHF2.cjs +0 -33
  25. package/dist/chunk-4TRADSTP.js +0 -34
  26. package/dist/chunk-5B37TQYT.cjs +0 -18
  27. package/dist/chunk-5F2Y65JH.js +0 -32
  28. package/dist/chunk-5MJPZUTO.js +0 -38
  29. package/dist/chunk-5MV54MWS.js +0 -46
  30. package/dist/chunk-6BSR3O2J.js +0 -53
  31. package/dist/chunk-6HX7ETL3.cjs +0 -183
  32. package/dist/chunk-7OD2NBSV.cjs +0 -50
  33. package/dist/chunk-A72LE53B.js +0 -21
  34. package/dist/chunk-A7SBXO2Y.cjs +0 -40
  35. package/dist/chunk-AAPMLWYK.js +0 -2831
  36. package/dist/chunk-B4M7Q5KX.cjs +0 -25
  37. package/dist/chunk-B7RHEMZH.js +0 -48
  38. package/dist/chunk-BTSHACKG.js +0 -123
  39. package/dist/chunk-BUJO4FB6.js +0 -252
  40. package/dist/chunk-CL2C6STG.cjs +0 -278
  41. package/dist/chunk-CXHDWIGF.cjs +0 -89
  42. package/dist/chunk-DGWBE2Y3.cjs +0 -205
  43. package/dist/chunk-DUAM4RTP.cjs +0 -23
  44. package/dist/chunk-EOTQVIA5.js +0 -993
  45. package/dist/chunk-EUH466AL.cjs +0 -179
  46. package/dist/chunk-F7NFSDOD.cjs +0 -91
  47. package/dist/chunk-G24PWQKG.js +0 -20
  48. package/dist/chunk-GEDBA3JU.cjs +0 -49
  49. package/dist/chunk-GYXQUTWZ.cjs +0 -59
  50. package/dist/chunk-H2BWO3SI.cjs +0 -11
  51. package/dist/chunk-H5NHGMSQ.js +0 -136
  52. package/dist/chunk-HCHVDUI6.cjs +0 -34
  53. package/dist/chunk-HNRVLRMN.js +0 -82
  54. package/dist/chunk-HPICKLBZ.cjs +0 -204
  55. package/dist/chunk-I3E75OQX.js +0 -16
  56. package/dist/chunk-I3RSTJP6.js +0 -20
  57. package/dist/chunk-IWF52DDE.js +0 -55
  58. package/dist/chunk-IZU3KULT.js +0 -41
  59. package/dist/chunk-K5AURCK5.js +0 -183
  60. package/dist/chunk-KTAIBRTH.cjs +0 -10
  61. package/dist/chunk-L2TRMQNN.js +0 -130
  62. package/dist/chunk-M7NIRB3U.js +0 -43
  63. package/dist/chunk-MNDQXDV4.cjs +0 -607
  64. package/dist/chunk-N4TYSZSU.cjs +0 -44
  65. package/dist/chunk-NU5UQPBX.cjs +0 -25
  66. package/dist/chunk-NXEZE7LG.js +0 -15
  67. package/dist/chunk-OCOCENE6.js +0 -42
  68. package/dist/chunk-OQCNPNPS.js +0 -23
  69. package/dist/chunk-OXZQGDTR.js +0 -208
  70. package/dist/chunk-OZSNSRLV.cjs +0 -1027
  71. package/dist/chunk-P4IL77YC.js +0 -66
  72. package/dist/chunk-P4JIMFSL.js +0 -51
  73. package/dist/chunk-P5IUC7HJ.js +0 -9
  74. package/dist/chunk-PBEZZMAB.js +0 -25
  75. package/dist/chunk-RKFU4DS3.cjs +0 -1064
  76. package/dist/chunk-S3ANEJJ7.cjs +0 -22
  77. package/dist/chunk-S3ZUFD6U.js +0 -23
  78. package/dist/chunk-SHPJGB2L.cjs +0 -19
  79. package/dist/chunk-TH44JYXB.cjs +0 -27
  80. package/dist/chunk-TMXVL5CV.cjs +0 -48
  81. package/dist/chunk-U3QKV7I4.js +0 -54
  82. package/dist/chunk-U7XZJQ4O.js +0 -36
  83. package/dist/chunk-UJX74PFK.cjs +0 -46
  84. package/dist/chunk-ULEEQ723.cjs +0 -108
  85. package/dist/chunk-UNOMGKAZ.cjs +0 -141
  86. package/dist/chunk-USIW3VT5.cjs +0 -73
  87. package/dist/chunk-VK2FJ65F.js +0 -575
  88. package/dist/chunk-VK5EX3OG.cjs +0 -132
  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/breadcrump/index.cjs +0 -80
  129. package/dist/components/breadcrump/index.d.cts +0 -21
  130. package/dist/components/breadcrump/index.d.ts +0 -21
  131. package/dist/components/breadcrump/index.js +0 -72
  132. package/dist/components/button/index.cjs +0 -52
  133. package/dist/components/button/index.d.cts +0 -58
  134. package/dist/components/button/index.d.ts +0 -58
  135. package/dist/components/button/index.js +0 -43
  136. package/dist/components/card/index.cjs +0 -35
  137. package/dist/components/card/index.d.cts +0 -25
  138. package/dist/components/card/index.d.ts +0 -25
  139. package/dist/components/card/index.js +0 -2
  140. package/dist/components/carousel/index.cjs +0 -269
  141. package/dist/components/carousel/index.d.cts +0 -48
  142. package/dist/components/carousel/index.d.ts +0 -48
  143. package/dist/components/carousel/index.js +0 -238
  144. package/dist/components/checkbox/index.cjs +0 -11
  145. package/dist/components/checkbox/index.d.cts +0 -8
  146. package/dist/components/checkbox/index.d.ts +0 -8
  147. package/dist/components/checkbox/index.js +0 -2
  148. package/dist/components/collapsible/index.cjs +0 -18
  149. package/dist/components/collapsible/index.d.cts +0 -12
  150. package/dist/components/collapsible/index.d.ts +0 -12
  151. package/dist/components/collapsible/index.js +0 -1
  152. package/dist/components/color-picker/index.cjs +0 -92
  153. package/dist/components/color-picker/index.d.cts +0 -71
  154. package/dist/components/color-picker/index.d.ts +0 -71
  155. package/dist/components/color-picker/index.js +0 -43
  156. package/dist/components/color-swatch/index.cjs +0 -11
  157. package/dist/components/color-swatch/index.d.cts +0 -22
  158. package/dist/components/color-swatch/index.d.ts +0 -22
  159. package/dist/components/color-swatch/index.js +0 -2
  160. package/dist/components/counting-number/index.cjs +0 -11
  161. package/dist/components/counting-number/index.d.cts +0 -57
  162. package/dist/components/counting-number/index.d.ts +0 -57
  163. package/dist/components/counting-number/index.js +0 -2
  164. package/dist/components/dialog/index.cjs +0 -39
  165. package/dist/components/dialog/index.d.cts +0 -42
  166. package/dist/components/dialog/index.d.ts +0 -42
  167. package/dist/components/dialog/index.js +0 -2
  168. package/dist/components/dropdown-menu/index.cjs +0 -71
  169. package/dist/components/dropdown-menu/index.d.cts +0 -67
  170. package/dist/components/dropdown-menu/index.d.ts +0 -67
  171. package/dist/components/dropdown-menu/index.js +0 -2
  172. package/dist/components/empty/index.cjs +0 -31
  173. package/dist/components/empty/index.d.cts +0 -29
  174. package/dist/components/empty/index.d.ts +0 -29
  175. package/dist/components/empty/index.js +0 -2
  176. package/dist/components/field/index.cjs +0 -49
  177. package/dist/components/field/index.d.cts +0 -50
  178. package/dist/components/field/index.d.ts +0 -50
  179. package/dist/components/field/index.js +0 -4
  180. package/dist/components/file-upload/index.cjs +0 -60
  181. package/dist/components/file-upload/index.d.cts +0 -131
  182. package/dist/components/file-upload/index.d.ts +0 -131
  183. package/dist/components/file-upload/index.js +0 -3
  184. package/dist/components/header/index.cjs +0 -11
  185. package/dist/components/header/index.d.cts +0 -18
  186. package/dist/components/header/index.d.ts +0 -18
  187. package/dist/components/header/index.js +0 -2
  188. package/dist/components/input/index.cjs +0 -11
  189. package/dist/components/input/index.d.cts +0 -9
  190. package/dist/components/input/index.d.ts +0 -9
  191. package/dist/components/input/index.js +0 -2
  192. package/dist/components/item/index.cjs +0 -48
  193. package/dist/components/item/index.d.cts +0 -61
  194. package/dist/components/item/index.d.ts +0 -61
  195. package/dist/components/item/index.js +0 -3
  196. package/dist/components/label/index.cjs +0 -11
  197. package/dist/components/label/index.d.cts +0 -8
  198. package/dist/components/label/index.d.ts +0 -8
  199. package/dist/components/label/index.js +0 -2
  200. package/dist/components/marquee/index.cjs +0 -11
  201. package/dist/components/marquee/index.d.cts +0 -48
  202. package/dist/components/marquee/index.d.ts +0 -48
  203. package/dist/components/marquee/index.js +0 -2
  204. package/dist/components/masonry/index.cjs +0 -16
  205. package/dist/components/masonry/index.d.cts +0 -181
  206. package/dist/components/masonry/index.d.ts +0 -181
  207. package/dist/components/masonry/index.js +0 -3
  208. package/dist/components/popover/index.cjs +0 -35
  209. package/dist/components/popover/index.d.cts +0 -18
  210. package/dist/components/popover/index.d.ts +0 -18
  211. package/dist/components/popover/index.js +0 -2
  212. package/dist/components/progress/index.cjs +0 -11
  213. package/dist/components/progress/index.d.cts +0 -8
  214. package/dist/components/progress/index.d.ts +0 -8
  215. package/dist/components/progress/index.js +0 -2
  216. package/dist/components/radio-group/index.cjs +0 -15
  217. package/dist/components/radio-group/index.d.cts +0 -22
  218. package/dist/components/radio-group/index.d.ts +0 -22
  219. package/dist/components/radio-group/index.js +0 -2
  220. package/dist/components/scroll-area/index.cjs +0 -15
  221. package/dist/components/scroll-area/index.d.cts +0 -11
  222. package/dist/components/scroll-area/index.d.ts +0 -11
  223. package/dist/components/scroll-area/index.js +0 -2
  224. package/dist/components/select/index.cjs +0 -31
  225. package/dist/components/select/index.d.cts +0 -22
  226. package/dist/components/select/index.d.ts +0 -22
  227. package/dist/components/select/index.js +0 -2
  228. package/dist/components/separator/index.cjs +0 -11
  229. package/dist/components/separator/index.d.cts +0 -8
  230. package/dist/components/separator/index.d.ts +0 -8
  231. package/dist/components/separator/index.js +0 -2
  232. package/dist/components/sheet/index.cjs +0 -39
  233. package/dist/components/sheet/index.d.cts +0 -42
  234. package/dist/components/sheet/index.d.ts +0 -42
  235. package/dist/components/sheet/index.js +0 -2
  236. package/dist/components/sidebar/index.cjs +0 -148
  237. package/dist/components/sidebar/index.d.cts +0 -135
  238. package/dist/components/sidebar/index.d.ts +0 -135
  239. package/dist/components/sidebar/index.js +0 -43
  240. package/dist/components/skeleton/index.cjs +0 -11
  241. package/dist/components/skeleton/index.d.cts +0 -7
  242. package/dist/components/skeleton/index.d.ts +0 -7
  243. package/dist/components/skeleton/index.js +0 -2
  244. package/dist/components/sortable/index.cjs +0 -27
  245. package/dist/components/sortable/index.d.cts +0 -50
  246. package/dist/components/sortable/index.d.ts +0 -50
  247. package/dist/components/sortable/index.js +0 -2
  248. package/dist/components/spinner/index.cjs +0 -11
  249. package/dist/components/spinner/index.d.cts +0 -7
  250. package/dist/components/spinner/index.d.ts +0 -7
  251. package/dist/components/spinner/index.js +0 -2
  252. package/dist/components/status/index.cjs +0 -19
  253. package/dist/components/status/index.d.cts +0 -25
  254. package/dist/components/status/index.d.ts +0 -25
  255. package/dist/components/status/index.js +0 -2
  256. package/dist/components/stepper/index.cjs +0 -124
  257. package/dist/components/stepper/index.d.cts +0 -164
  258. package/dist/components/stepper/index.d.ts +0 -164
  259. package/dist/components/stepper/index.js +0 -43
  260. package/dist/components/switch/index.cjs +0 -11
  261. package/dist/components/switch/index.d.cts +0 -19
  262. package/dist/components/switch/index.d.ts +0 -19
  263. package/dist/components/switch/index.js +0 -2
  264. package/dist/components/tabs/index.cjs +0 -23
  265. package/dist/components/tabs/index.d.cts +0 -17
  266. package/dist/components/tabs/index.d.ts +0 -17
  267. package/dist/components/tabs/index.js +0 -2
  268. package/dist/components/textarea/index.cjs +0 -11
  269. package/dist/components/textarea/index.d.cts +0 -9
  270. package/dist/components/textarea/index.d.ts +0 -9
  271. package/dist/components/textarea/index.js +0 -2
  272. package/dist/components/timeline/index.cjs +0 -45
  273. package/dist/components/timeline/index.d.cts +0 -63
  274. package/dist/components/timeline/index.d.ts +0 -63
  275. package/dist/components/timeline/index.js +0 -4
  276. package/dist/components/toaster/index.cjs +0 -56
  277. package/dist/components/toaster/index.d.cts +0 -8
  278. package/dist/components/toaster/index.d.ts +0 -8
  279. package/dist/components/toaster/index.js +0 -43
  280. package/dist/components/tooltip/index.cjs +0 -19
  281. package/dist/components/tooltip/index.d.cts +0 -12
  282. package/dist/components/tooltip/index.d.ts +0 -12
  283. package/dist/components/tooltip/index.js +0 -2
  284. package/dist/components/typing-text/index.cjs +0 -11
  285. package/dist/components/typing-text/index.d.cts +0 -41
  286. package/dist/components/typing-text/index.d.ts +0 -41
  287. package/dist/components/typing-text/index.js +0 -2
  288. package/dist/components/word-rotate/index.cjs +0 -11
  289. package/dist/components/word-rotate/index.d.cts +0 -30
  290. package/dist/components/word-rotate/index.d.ts +0 -30
  291. package/dist/components/word-rotate/index.js +0 -2
  292. package/dist/direction-CUOPDLCj.d.cts +0 -7
  293. package/dist/direction-CUOPDLCj.d.ts +0 -7
  294. package/dist/popover-trigger-Cf4PPj0z.d.cts +0 -14
  295. package/dist/popover-trigger-Cf4PPj0z.d.ts +0 -14
  296. package/dist/select-Bf6XQtt-.d.cts +0 -12
  297. package/dist/select-Bf6XQtt-.d.ts +0 -12
  298. package/dist/tooltip-content-DqtogPBq.d.cts +0 -8
  299. package/dist/tooltip-content-DqtogPBq.d.ts +0 -8
@@ -1,157 +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, jsxs } from 'react/jsx-runtime';
5
-
6
- var cursorVariants = {
7
- blinking: {
8
- opacity: [0, 0, 1, 1],
9
- transition: {
10
- duration: 1,
11
- repeat: Infinity,
12
- repeatDelay: 0,
13
- ease: "linear",
14
- times: [0, 0.5, 0.5, 1]
15
- }
16
- }
17
- };
18
- var animationVariants = {
19
- fadeIn: {
20
- hidden: { opacity: 0, y: 10 },
21
- show: { opacity: 1, y: 0 },
22
- exit: { opacity: 0 }
23
- },
24
- blurIn: {
25
- hidden: { opacity: 0, filter: "blur(4px)" },
26
- show: { opacity: 1, filter: "blur(0px)" },
27
- exit: { opacity: 0, filter: "blur(4px)" }
28
- },
29
- blurInUp: {
30
- hidden: { opacity: 0, y: 20, filter: "blur(4px)" },
31
- show: { opacity: 1, y: 0, filter: "blur(0px)" },
32
- exit: { opacity: 0, y: -20, filter: "blur(4px)" }
33
- },
34
- blurInDown: {
35
- hidden: { opacity: 0, y: -20, filter: "blur(4px)" },
36
- show: { opacity: 1, y: 0, filter: "blur(0px)" },
37
- exit: { opacity: 0, y: 20, filter: "blur(4px)" }
38
- },
39
- slideUp: {
40
- hidden: { opacity: 0, y: 20 },
41
- show: { opacity: 1, y: 0 },
42
- exit: { opacity: 0, y: -20 }
43
- },
44
- slideDown: {
45
- hidden: { opacity: 0, y: -20 },
46
- show: { opacity: 1, y: 0 },
47
- exit: { opacity: 0, y: 20 }
48
- },
49
- slideLeft: {
50
- hidden: { opacity: 0, x: 20 },
51
- show: { opacity: 1, x: 0 },
52
- exit: { opacity: 0, x: -20 }
53
- },
54
- slideRight: {
55
- hidden: { opacity: 0, x: -20 },
56
- show: { opacity: 1, x: 0 },
57
- exit: { opacity: 0, x: 20 }
58
- },
59
- scaleUp: {
60
- hidden: { opacity: 0, scale: 0.8 },
61
- show: { opacity: 1, scale: 1 },
62
- exit: { opacity: 0, scale: 1.2 }
63
- },
64
- scaleDown: {
65
- hidden: { opacity: 0, scale: 1.2 },
66
- show: { opacity: 1, scale: 1 },
67
- exit: { opacity: 0, scale: 0.8 }
68
- }
69
- };
70
- function TypingText({
71
- text,
72
- texts,
73
- speed = 100,
74
- delay = 0,
75
- showCursor = true,
76
- cursorClassName = "",
77
- cursor = "|",
78
- loop = false,
79
- pauseDuration = 2e3,
80
- className,
81
- onComplete,
82
- startOnView = true,
83
- once = false,
84
- animation = "fadeIn",
85
- inViewMargin,
86
- ...props
87
- }) {
88
- const ref = React.useRef(null);
89
- const isInView = useInView(ref, { once, margin: inViewMargin });
90
- const [hasAnimated, setHasAnimated] = React.useState(false);
91
- const [displayText, setDisplayText] = React.useState("");
92
- const [currentIndex, setCurrentIndex] = React.useState(0);
93
- const [isTyping, setIsTyping] = React.useState(false);
94
- const [currentTextIndex, setCurrentTextIndex] = React.useState(0);
95
- const shouldStart = !startOnView || isInView && (!once || !hasAnimated);
96
- const textArray = texts && texts.length > 0 ? texts : [text];
97
- const currentText = textArray[currentTextIndex] ?? "";
98
- React.useEffect(() => {
99
- if (!shouldStart) return;
100
- const timeout = setTimeout(() => {
101
- setIsTyping(true);
102
- setHasAnimated(true);
103
- }, delay);
104
- return () => clearTimeout(timeout);
105
- }, [delay, shouldStart]);
106
- React.useEffect(() => {
107
- if (!isTyping) return;
108
- if (currentIndex < currentText.length) {
109
- const timeout = setTimeout(() => {
110
- setDisplayText(currentText.slice(0, currentIndex + 1));
111
- setCurrentIndex(currentIndex + 1);
112
- }, speed);
113
- return () => clearTimeout(timeout);
114
- } else {
115
- onComplete?.();
116
- if (loop && texts && texts.length > 1) {
117
- const timeout = setTimeout(() => {
118
- setDisplayText("");
119
- setCurrentIndex(0);
120
- setCurrentTextIndex((prev) => (prev + 1) % texts.length);
121
- }, pauseDuration);
122
- return () => clearTimeout(timeout);
123
- }
124
- }
125
- }, [currentIndex, currentText, isTyping, speed, loop, texts, pauseDuration, onComplete]);
126
- const selectedVariants = animationVariants[animation];
127
- const MotionComponent = motion.span;
128
- return /* @__PURE__ */ jsx(
129
- MotionComponent,
130
- {
131
- ref,
132
- variants: selectedVariants,
133
- initial: "hidden",
134
- whileInView: startOnView ? "show" : void 0,
135
- animate: startOnView ? void 0 : "show",
136
- exit: "exit",
137
- className: cn("whitespace-pre-wrap", className),
138
- viewport: { once },
139
- "data-slot": "typing-text",
140
- ...props,
141
- children: /* @__PURE__ */ jsxs("span", { style: { display: "inline-flex", alignItems: "center" }, children: [
142
- displayText,
143
- showCursor && /* @__PURE__ */ jsx(
144
- motion.span,
145
- {
146
- variants: cursorVariants,
147
- animate: "blinking",
148
- className: cn("text-foreground ms-1 inline-block w-px font-normal select-none", cursorClassName),
149
- children: cursor
150
- }
151
- )
152
- ] })
153
- }
154
- );
155
- }
156
-
157
- export { TypingText };
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var radixUi = require('radix-ui');
5
- var jsxRuntime = require('react/jsx-runtime');
6
- var lucideReact = require('lucide-react');
7
-
8
- function Accordion({ ...props }) {
9
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Accordion.Root, { "data-slot": "accordion", ...props });
10
- }
11
- function AccordionContent({ className, children, ...props }) {
12
- return /* @__PURE__ */ jsxRuntime.jsx(
13
- radixUi.Accordion.Content,
14
- {
15
- "data-slot": "accordion-content",
16
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
17
- ...props,
18
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("pt-0 pb-4", className), children })
19
- }
20
- );
21
- }
22
- function AccordionTrigger({ className, children, ...props }) {
23
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Accordion.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
24
- radixUi.Accordion.Trigger,
25
- {
26
- "data-slot": "accordion-trigger",
27
- className: chunkH2BWO3SI_cjs.cn(
28
- "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
29
- className
30
- ),
31
- ...props,
32
- children: [
33
- children,
34
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
35
- ]
36
- }
37
- ) });
38
- }
39
- function AccordionItem({ className, ...props }) {
40
- return /* @__PURE__ */ jsxRuntime.jsx(
41
- radixUi.Accordion.Item,
42
- {
43
- "data-slot": "accordion-item",
44
- className: chunkH2BWO3SI_cjs.cn("border-b last:border-b-0", className),
45
- ...props
46
- }
47
- );
48
- }
49
-
50
- exports.Accordion = Accordion;
51
- exports.AccordionContent = AccordionContent;
52
- exports.AccordionItem = AccordionItem;
53
- exports.AccordionTrigger = AccordionTrigger;
@@ -1,48 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Switch as Switch$1 } from 'radix-ui';
3
- import { cva } from 'class-variance-authority';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var switchVariants = cva(
7
- [
8
- "peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none",
9
- "data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",
10
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3",
11
- "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error dark:aria-invalid:border-error/50 aria-invalid:ring-3",
12
- "data-disabled:cursor-not-allowed data-disabled:opacity-50",
13
- "after:absolute after:-inset-x-3 after:-inset-y-2"
14
- ],
15
- {
16
- variants: {
17
- size: {
18
- default: "h-[18.4px] w-8",
19
- sm: "h-3.5 w-6"
20
- }
21
- },
22
- defaultVariants: {
23
- size: "default"
24
- }
25
- }
26
- );
27
- var switchThumbVariants = cva(
28
- [
29
- "pointer-events-none block rounded-full ring-0 transition-transform",
30
- "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground"
31
- ],
32
- {
33
- variants: {
34
- size: {
35
- default: "size-4 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
36
- sm: "size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
37
- }
38
- },
39
- defaultVariants: {
40
- size: "default"
41
- }
42
- }
43
- );
44
- function Switch({ className, size = "default", ...props }) {
45
- return /* @__PURE__ */ jsx(Switch$1.Root, { "data-slot": "switch", className: cn(switchVariants({ size }), className), ...props, children: /* @__PURE__ */ jsx(Switch$1.Thumb, { "data-slot": "switch-thumb", className: switchThumbVariants({ size }) }) });
46
- }
47
-
48
- export { Switch };
@@ -1,8 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- function Skeleton({ className, ...props }) {
5
- return /* @__PURE__ */ jsx("div", { "data-slot": "skeleton", className: cn("bg-muted animate-pulse rounded-md", className), ...props });
6
- }
7
-
8
- export { Skeleton };
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var radixUi = require('radix-ui');
5
- var jsxRuntime = require('react/jsx-runtime');
6
- var lucideReact = require('lucide-react');
7
-
8
- function RadioGroup({ className, ...props }) {
9
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.RadioGroup.Root, { "data-slot": "radio-group", className: chunkH2BWO3SI_cjs.cn("grid gap-3", className), ...props });
10
- }
11
- function RadioGroupItem({ className, ...props }) {
12
- return /* @__PURE__ */ jsxRuntime.jsx(
13
- radixUi.RadioGroup.Item,
14
- {
15
- "data-slot": "radio-group-item",
16
- className: chunkH2BWO3SI_cjs.cn(
17
- "border-input text-primary dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50",
18
- "disabled:cursor-not-allowed disabled:opacity-50",
19
- "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
20
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
21
- className
22
- ),
23
- ...props,
24
- children: /* @__PURE__ */ jsxRuntime.jsx(
25
- radixUi.RadioGroup.Indicator,
26
- {
27
- "data-slot": "radio-group-indicator",
28
- className: "relative flex items-center justify-center",
29
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
30
- }
31
- )
32
- }
33
- );
34
- }
35
-
36
- exports.RadioGroup = RadioGroup;
37
- exports.RadioGroupItem = RadioGroupItem;
@@ -1,176 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { ChevronDownIcon, ChevronUpIcon, CheckIcon } from 'lucide-react';
3
- import { Select as Select$1 } from 'radix-ui';
4
- import { jsxs, jsx } from 'react/jsx-runtime';
5
-
6
- function Select({
7
- children,
8
- disabled,
9
- defaultOpen,
10
- defaultValue,
11
- value,
12
- dir,
13
- open,
14
- form,
15
- name,
16
- onOpenChange,
17
- onValueChange,
18
- required,
19
- autoComplete,
20
- // value props
21
- placeholder,
22
- // trigger props
23
- className,
24
- size = "default",
25
- invalid = false,
26
- ...triggerProps
27
- }) {
28
- const rootProps = {
29
- children,
30
- disabled,
31
- defaultOpen,
32
- defaultValue,
33
- value,
34
- dir,
35
- open,
36
- form,
37
- name,
38
- onOpenChange,
39
- onValueChange,
40
- required,
41
- autoComplete
42
- };
43
- return /* @__PURE__ */ jsxs(Select$1.Root, { "data-slot": "select", ...rootProps, children: [
44
- /* @__PURE__ */ jsxs(
45
- Select$1.Trigger,
46
- {
47
- "data-slot": "select-trigger",
48
- "aria-invalid": triggerProps["aria-invalid"] || invalid ? true : void 0,
49
- "data-size": size,
50
- className: cn(
51
- "border-input dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none",
52
- "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
53
- "disabled:cursor-not-allowed disabled:opacity-50",
54
- "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
55
- "data-[size=default]:h-9 data-[size=sm]:h-8",
56
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
57
- "[&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
58
- "data-[placeholder]:text-muted-foreground",
59
- className
60
- ),
61
- ...triggerProps,
62
- children: [
63
- /* @__PURE__ */ jsx(Select$1.Value, { "data-slot": "select-value", placeholder }),
64
- /* @__PURE__ */ jsx(Select$1.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
65
- ]
66
- }
67
- ),
68
- children
69
- ] });
70
- }
71
- function SelectContent({
72
- className,
73
- children,
74
- position = "popper",
75
- align = "center",
76
- ...props
77
- }) {
78
- return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsxs(
79
- Select$1.Content,
80
- {
81
- "data-slot": "select-content",
82
- className: cn(
83
- "bg-popover text-popover-foreground border-border relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-sm",
84
- "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 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",
85
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
86
- className
87
- ),
88
- position,
89
- align,
90
- ...props,
91
- children: [
92
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
93
- /* @__PURE__ */ jsx(
94
- Select$1.Viewport,
95
- {
96
- className: cn(
97
- "p-1",
98
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
99
- ),
100
- children
101
- }
102
- ),
103
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
104
- ]
105
- }
106
- ) });
107
- }
108
- function SelectScrollUpButton({ className, ...props }) {
109
- return /* @__PURE__ */ jsx(
110
- Select$1.ScrollUpButton,
111
- {
112
- "data-slot": "select-scroll-up-button",
113
- className: cn("flex cursor-default items-center justify-center py-1", className),
114
- ...props,
115
- children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
116
- }
117
- );
118
- }
119
- function SelectScrollDownButton({
120
- className,
121
- ...props
122
- }) {
123
- return /* @__PURE__ */ jsx(
124
- Select$1.ScrollDownButton,
125
- {
126
- "data-slot": "select-scroll-down-button",
127
- className: cn("flex cursor-default items-center justify-center py-1", className),
128
- ...props,
129
- children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
130
- }
131
- );
132
- }
133
- function SelectGroup(props) {
134
- return /* @__PURE__ */ jsx(Select$1.Group, { "data-slot": "select-group", ...props });
135
- }
136
- function SelectItem({ className, children, ...props }) {
137
- return /* @__PURE__ */ jsxs(
138
- Select$1.Item,
139
- {
140
- "data-slot": "select-item",
141
- className: cn(
142
- "focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
143
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
144
- "[&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
145
- className
146
- ),
147
- ...props,
148
- children: [
149
- /* @__PURE__ */ jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
150
- /* @__PURE__ */ jsx(Select$1.ItemText, { children })
151
- ]
152
- }
153
- );
154
- }
155
- function SelectLabel({ className, ...props }) {
156
- return /* @__PURE__ */ jsx(
157
- Select$1.Label,
158
- {
159
- "data-slot": "select-label",
160
- className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
161
- ...props
162
- }
163
- );
164
- }
165
- function SelectSeparator({ className, ...props }) {
166
- return /* @__PURE__ */ jsx(
167
- Select$1.Separator,
168
- {
169
- "data-slot": "select-separator",
170
- className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
171
- ...props
172
- }
173
- );
174
- }
175
-
176
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator };
@@ -1,29 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Avatar as Avatar$1 } from 'radix-ui';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- function Avatar({ className, ...props }) {
6
- return /* @__PURE__ */ jsx(
7
- Avatar$1.Root,
8
- {
9
- "data-slot": "avatar",
10
- className: cn("relative flex size-8 shrink-0 overflow-hidden rounded", className),
11
- ...props
12
- }
13
- );
14
- }
15
- function AvatarImage({ className, ...props }) {
16
- return /* @__PURE__ */ jsx(Avatar$1.Image, { "data-slot": "avatar-image", className: cn("aspect-square size-full", className), ...props });
17
- }
18
- function AvatarFallback({ className, ...props }) {
19
- return /* @__PURE__ */ jsx(
20
- Avatar$1.Fallback,
21
- {
22
- "data-slot": "avatar-fallback",
23
- className: cn("bg-muted flex size-full items-center justify-center rounded", className),
24
- ...props
25
- }
26
- );
27
- }
28
-
29
- export { Avatar, AvatarFallback, AvatarImage };