@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,179 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var React = require('react');
5
- var react = require('motion/react');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
-
28
- var cursorVariants = {
29
- blinking: {
30
- opacity: [0, 0, 1, 1],
31
- transition: {
32
- duration: 1,
33
- repeat: Infinity,
34
- repeatDelay: 0,
35
- ease: "linear",
36
- times: [0, 0.5, 0.5, 1]
37
- }
38
- }
39
- };
40
- var animationVariants = {
41
- fadeIn: {
42
- hidden: { opacity: 0, y: 10 },
43
- show: { opacity: 1, y: 0 },
44
- exit: { opacity: 0 }
45
- },
46
- blurIn: {
47
- hidden: { opacity: 0, filter: "blur(4px)" },
48
- show: { opacity: 1, filter: "blur(0px)" },
49
- exit: { opacity: 0, filter: "blur(4px)" }
50
- },
51
- blurInUp: {
52
- hidden: { opacity: 0, y: 20, filter: "blur(4px)" },
53
- show: { opacity: 1, y: 0, filter: "blur(0px)" },
54
- exit: { opacity: 0, y: -20, filter: "blur(4px)" }
55
- },
56
- blurInDown: {
57
- hidden: { opacity: 0, y: -20, filter: "blur(4px)" },
58
- show: { opacity: 1, y: 0, filter: "blur(0px)" },
59
- exit: { opacity: 0, y: 20, filter: "blur(4px)" }
60
- },
61
- slideUp: {
62
- hidden: { opacity: 0, y: 20 },
63
- show: { opacity: 1, y: 0 },
64
- exit: { opacity: 0, y: -20 }
65
- },
66
- slideDown: {
67
- hidden: { opacity: 0, y: -20 },
68
- show: { opacity: 1, y: 0 },
69
- exit: { opacity: 0, y: 20 }
70
- },
71
- slideLeft: {
72
- hidden: { opacity: 0, x: 20 },
73
- show: { opacity: 1, x: 0 },
74
- exit: { opacity: 0, x: -20 }
75
- },
76
- slideRight: {
77
- hidden: { opacity: 0, x: -20 },
78
- show: { opacity: 1, x: 0 },
79
- exit: { opacity: 0, x: 20 }
80
- },
81
- scaleUp: {
82
- hidden: { opacity: 0, scale: 0.8 },
83
- show: { opacity: 1, scale: 1 },
84
- exit: { opacity: 0, scale: 1.2 }
85
- },
86
- scaleDown: {
87
- hidden: { opacity: 0, scale: 1.2 },
88
- show: { opacity: 1, scale: 1 },
89
- exit: { opacity: 0, scale: 0.8 }
90
- }
91
- };
92
- function TypingText({
93
- text,
94
- texts,
95
- speed = 100,
96
- delay = 0,
97
- showCursor = true,
98
- cursorClassName = "",
99
- cursor = "|",
100
- loop = false,
101
- pauseDuration = 2e3,
102
- className,
103
- onComplete,
104
- startOnView = true,
105
- once = false,
106
- animation = "fadeIn",
107
- inViewMargin,
108
- ...props
109
- }) {
110
- const ref = React__namespace.useRef(null);
111
- const isInView = react.useInView(ref, { once, margin: inViewMargin });
112
- const [hasAnimated, setHasAnimated] = React__namespace.useState(false);
113
- const [displayText, setDisplayText] = React__namespace.useState("");
114
- const [currentIndex, setCurrentIndex] = React__namespace.useState(0);
115
- const [isTyping, setIsTyping] = React__namespace.useState(false);
116
- const [currentTextIndex, setCurrentTextIndex] = React__namespace.useState(0);
117
- const shouldStart = !startOnView || isInView && (!once || !hasAnimated);
118
- const textArray = texts && texts.length > 0 ? texts : [text];
119
- const currentText = textArray[currentTextIndex] ?? "";
120
- React__namespace.useEffect(() => {
121
- if (!shouldStart) return;
122
- const timeout = setTimeout(() => {
123
- setIsTyping(true);
124
- setHasAnimated(true);
125
- }, delay);
126
- return () => clearTimeout(timeout);
127
- }, [delay, shouldStart]);
128
- React__namespace.useEffect(() => {
129
- if (!isTyping) return;
130
- if (currentIndex < currentText.length) {
131
- const timeout = setTimeout(() => {
132
- setDisplayText(currentText.slice(0, currentIndex + 1));
133
- setCurrentIndex(currentIndex + 1);
134
- }, speed);
135
- return () => clearTimeout(timeout);
136
- } else {
137
- onComplete?.();
138
- if (loop && texts && texts.length > 1) {
139
- const timeout = setTimeout(() => {
140
- setDisplayText("");
141
- setCurrentIndex(0);
142
- setCurrentTextIndex((prev) => (prev + 1) % texts.length);
143
- }, pauseDuration);
144
- return () => clearTimeout(timeout);
145
- }
146
- }
147
- }, [currentIndex, currentText, isTyping, speed, loop, texts, pauseDuration, onComplete]);
148
- const selectedVariants = animationVariants[animation];
149
- const MotionComponent = react.motion.span;
150
- return /* @__PURE__ */ jsxRuntime.jsx(
151
- MotionComponent,
152
- {
153
- ref,
154
- variants: selectedVariants,
155
- initial: "hidden",
156
- whileInView: startOnView ? "show" : void 0,
157
- animate: startOnView ? void 0 : "show",
158
- exit: "exit",
159
- className: chunkH2BWO3SI_cjs.cn("whitespace-pre-wrap", className),
160
- viewport: { once },
161
- "data-slot": "typing-text",
162
- ...props,
163
- children: /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "inline-flex", alignItems: "center" }, children: [
164
- displayText,
165
- showCursor && /* @__PURE__ */ jsxRuntime.jsx(
166
- react.motion.span,
167
- {
168
- variants: cursorVariants,
169
- animate: "blinking",
170
- className: chunkH2BWO3SI_cjs.cn("text-foreground ms-1 inline-block w-px font-normal select-none", cursorClassName),
171
- children: cursor
172
- }
173
- )
174
- ] })
175
- }
176
- );
177
- }
178
-
179
- exports.TypingText = TypingText;
@@ -1,91 +0,0 @@
1
- 'use strict';
2
-
3
- var React3 = require('react');
4
-
5
- function _interopNamespace(e) {
6
- if (e && e.__esModule) return e;
7
- var n = Object.create(null);
8
- if (e) {
9
- Object.keys(e).forEach(function (k) {
10
- if (k !== 'default') {
11
- var d = Object.getOwnPropertyDescriptor(e, k);
12
- Object.defineProperty(n, k, d.get ? d : {
13
- enumerable: true,
14
- get: function () { return e[k]; }
15
- });
16
- }
17
- });
18
- }
19
- n.default = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
24
-
25
- // src/hooks/use-validation-log.tsx
26
- function useValidationLog({ check, scope, message }) {
27
- React3__namespace.useEffect(() => {
28
- if (!check) {
29
- console.error(
30
- `%c[Szum Tech-Design System]%c
31
- ${scope}%c
32
- ${message}`,
33
- "color: #ef4444; font-weight: bold;",
34
- "color: #3b82f6; font-weight: bold;",
35
- "color: #f59e0b;"
36
- );
37
- }
38
- }, [check, scope, message]);
39
- }
40
- function setRef(ref, value) {
41
- if (typeof ref === "function") {
42
- return ref(value);
43
- }
44
- if (ref !== null && ref !== void 0) {
45
- ref.current = value;
46
- }
47
- }
48
- function composeRefs(...refs) {
49
- return (node) => {
50
- let hasCleanup = false;
51
- const cleanups = refs.map((ref) => {
52
- const cleanup = setRef(ref, node);
53
- if (!hasCleanup && typeof cleanup === "function") {
54
- hasCleanup = true;
55
- }
56
- return cleanup;
57
- });
58
- if (hasCleanup) {
59
- return () => {
60
- for (let i = 0; i < cleanups.length; i++) {
61
- const cleanup = cleanups[i];
62
- if (typeof cleanup === "function") {
63
- cleanup();
64
- } else {
65
- setRef(refs[i], null);
66
- }
67
- }
68
- };
69
- }
70
- };
71
- }
72
- function useComposedRefs(...refs) {
73
- return React3__namespace.useCallback(composeRefs(...refs), refs);
74
- }
75
- var MOBILE_BREAKPOINT = 768;
76
- function useIsMobile() {
77
- const [isMobile, setIsMobile] = React3__namespace.useState(void 0);
78
- React3__namespace.useEffect(() => {
79
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
80
- const onChange = () => setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
81
- mql.addEventListener("change", onChange);
82
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
83
- return () => mql.removeEventListener("change", onChange);
84
- }, []);
85
- return !!isMobile;
86
- }
87
-
88
- exports.composeRefs = composeRefs;
89
- exports.useComposedRefs = useComposedRefs;
90
- exports.useIsMobile = useIsMobile;
91
- exports.useValidationLog = useValidationLog;
@@ -1,20 +0,0 @@
1
- import * as React2 from 'react';
2
-
3
- // src/hooks/use-lazy-ref.tsx
4
- function useLazyRef(fn) {
5
- const ref = React2.useRef(null);
6
- if (ref.current === null) {
7
- ref.current = fn();
8
- }
9
- return ref;
10
- }
11
- var useIsomorphicLayoutEffect = typeof window === "undefined" ? React2.useEffect : React2.useLayoutEffect;
12
- function useAsRef(props) {
13
- const ref = React2.useRef(props);
14
- useIsomorphicLayoutEffect(() => {
15
- ref.current = props;
16
- });
17
- return ref;
18
- }
19
-
20
- export { useAsRef, useIsomorphicLayoutEffect, useLazyRef };
@@ -1,49 +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
-
7
- function Popover(props) {
8
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Popover.Root, { "data-slot": "popover", ...props });
9
- }
10
- function PopoverAnchor(props) {
11
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Popover.Anchor, { "data-slot": "popover-anchor", ...props });
12
- }
13
- function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
14
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Popover.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
15
- radixUi.Popover.Content,
16
- {
17
- "data-slot": "popover-content",
18
- align,
19
- sideOffset,
20
- className: chunkH2BWO3SI_cjs.cn(
21
- "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",
22
- "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",
23
- "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",
24
- className
25
- ),
26
- ...props
27
- }
28
- ) });
29
- }
30
- function PopoverTrigger(props) {
31
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
32
- }
33
- function PopoverHeader({ className, ...props }) {
34
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "popover-header", className: chunkH2BWO3SI_cjs.cn("flex flex-col gap-0.5 text-sm", className), ...props });
35
- }
36
- function PopoverTitle({ className, ...props }) {
37
- return /* @__PURE__ */ jsxRuntime.jsx("h2", { "data-slot": "popover-title", className: chunkH2BWO3SI_cjs.cn("font-medium", className), ...props });
38
- }
39
- function PopoverDescription({ className, ...props }) {
40
- return /* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "popover-description", className: chunkH2BWO3SI_cjs.cn("text-muted-foreground", className), ...props });
41
- }
42
-
43
- exports.Popover = Popover;
44
- exports.PopoverAnchor = PopoverAnchor;
45
- exports.PopoverContent = PopoverContent;
46
- exports.PopoverDescription = PopoverDescription;
47
- exports.PopoverHeader = PopoverHeader;
48
- exports.PopoverTitle = PopoverTitle;
49
- exports.PopoverTrigger = PopoverTrigger;
@@ -1,59 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var reactSlot = require('@radix-ui/react-slot');
5
- var classVarianceAuthority = require('class-variance-authority');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- var statusVariants = classVarianceAuthority.cva(
9
- "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",
10
- {
11
- variants: {
12
- variant: {
13
- default: "border-transparent bg-muted text-muted-foreground **:data-[slot=status-indicator]:bg-muted-foreground",
14
- success: "border-success/20 bg-success/10 text-success **:data-[slot=status-indicator]:bg-success",
15
- error: "border-error/20 bg-error/10 text-error **:data-[slot=status-indicator]:bg-error",
16
- warning: "border-warning/20 bg-warning/10 text-warning **:data-[slot=status-indicator]:bg-warning",
17
- primary: "border-primary/20 bg-primary/10 text-primary **:data-[slot=status-indicator]:bg-primary "
18
- }
19
- },
20
- defaultVariants: {
21
- variant: "default"
22
- }
23
- }
24
- );
25
- function Status({ className, variant = "default", asChild, ...rootProps }) {
26
- const RootPrimitive = asChild ? reactSlot.Slot : "div";
27
- return /* @__PURE__ */ jsxRuntime.jsx(
28
- RootPrimitive,
29
- {
30
- "data-slot": "status",
31
- "data-variant": variant,
32
- ...rootProps,
33
- className: chunkH2BWO3SI_cjs.cn(statusVariants({ variant }), className)
34
- }
35
- );
36
- }
37
- function StatusIndicator(props) {
38
- const { className, ...indicatorProps } = props;
39
- return /* @__PURE__ */ jsxRuntime.jsx(
40
- "div",
41
- {
42
- "data-slot": "status-indicator",
43
- ...indicatorProps,
44
- className: chunkH2BWO3SI_cjs.cn(
45
- "relative flex size-2 shrink-0 rounded-full",
46
- "before:absolute before:inset-0 before:animate-ping before:rounded-full before:bg-inherit",
47
- "after:absolute after:inset-0.5 after:rounded-full after:bg-inherit",
48
- className
49
- )
50
- }
51
- );
52
- }
53
- function StatusLabel({ className, ...labelProps }) {
54
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "status-label", ...labelProps, className: chunkH2BWO3SI_cjs.cn("leading-none", className) });
55
- }
56
-
57
- exports.Status = Status;
58
- exports.StatusIndicator = StatusIndicator;
59
- exports.StatusLabel = StatusLabel;
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var clsx = require('clsx');
4
- var tailwindMerge = require('tailwind-merge');
5
-
6
- // src/utils/index.ts
7
- function cn(...inputs) {
8
- return tailwindMerge.twMerge(clsx.clsx(inputs));
9
- }
10
-
11
- exports.cn = cn;
@@ -1,136 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Dialog } from 'radix-ui';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
- import { XIcon } from 'lucide-react';
5
- import { cva } from 'class-variance-authority';
6
-
7
- function Sheet(props) {
8
- return /* @__PURE__ */ jsx(Dialog.Root, { "data-slot": "sheet", ...props });
9
- }
10
- function SheetTrigger(props) {
11
- return /* @__PURE__ */ jsx(Dialog.Trigger, { "data-slot": "sheet-trigger", ...props });
12
- }
13
- function SheetClose(props) {
14
- return /* @__PURE__ */ jsx(Dialog.Close, { "data-slot": "sheet-close", ...props });
15
- }
16
- var sheetContentStyles = cva(
17
- [
18
- "bg-background text-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed z-50 flex flex-col gap-4 bg-clip-padding shadow-lg transition duration-200 ease-in-out",
19
- "data-[state=open]:slide-in data-[state=closed]:slide-out"
20
- ],
21
- {
22
- variants: {
23
- side: {
24
- top: [
25
- "data-[side=top]:data-[state=open]:slide-in-from-top-10",
26
- "data-[side=top]:data-[state=closed]:slide-out-to-top-10",
27
- "data-[side=top]:inset-x-0",
28
- "data-[side=top]:top-0",
29
- "data-[side=top]:h-auto",
30
- "data-[side=top]:border-b",
31
- "data-[side=top]:max-h-[90vh]"
32
- ],
33
- right: [
34
- "data-[side=right]:data-[state=open]:slide-in-from-right-10",
35
- "data-[side=right]:data-[state=closed]:slide-out-to-right-10",
36
- "data-[side=right]:inset-y-0",
37
- "data-[side=right]:right-0",
38
- "data-[side=right]:h-full",
39
- "data-[side=right]:border-l",
40
- "data-[side=right]:w-3/4",
41
- "data-[side=right]:sm:max-w-sm"
42
- ],
43
- bottom: [
44
- "data-[side=bottom]:data-[state=open]:slide-in-from-bottom-10",
45
- "data-[side=bottom]:data-[state=closed]:slide-out-to-bottom-10",
46
- "data-[side=bottom]:inset-x-0",
47
- "data-[side=bottom]:bottom-0",
48
- "data-[side=bottom]:h-auto",
49
- "data-[side=bottom]:border-t",
50
- "data-[side=bottom]:max-h-[90vh]"
51
- ],
52
- left: [
53
- "data-[side=left]:data-[state=open]:slide-in-from-left-10",
54
- "data-[side=left]:data-[state=closed]:slide-out-to-left-10",
55
- "data-[side=left]:inset-y-0",
56
- "data-[side=left]:left-0",
57
- "data-[side=left]:h-full",
58
- "data-[side=left]:border-r",
59
- "data-[side=left]:w-3/4",
60
- "data-[side=left]:sm:max-w-sm"
61
- ]
62
- }
63
- },
64
- defaultVariants: {
65
- side: "right"
66
- }
67
- }
68
- );
69
- function SheetContent({
70
- side = "right",
71
- showCloseButton = true,
72
- className,
73
- children,
74
- ...props
75
- }) {
76
- return /* @__PURE__ */ jsxs(Dialog.Portal, { "data-slot": "sheet-portal", children: [
77
- /* @__PURE__ */ jsx(
78
- Dialog.Overlay,
79
- {
80
- "data-slot": "sheet-overlay",
81
- className: "data-[state=open]:animate-in data-[state=closed]:animate-out [state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs"
82
- }
83
- ),
84
- /* @__PURE__ */ jsxs(
85
- Dialog.Content,
86
- {
87
- "data-slot": "sheet-content",
88
- "data-side": side,
89
- className: cn(sheetContentStyles({ side }), className),
90
- ...props,
91
- children: [
92
- children,
93
- showCloseButton ? /* @__PURE__ */ jsxs(
94
- Dialog.Close,
95
- {
96
- "data-slot": "sheet-close",
97
- className: "focus:ring-ring focus:ring-offset-background absolute top-3 right-3 rounded opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",
98
- children: [
99
- /* @__PURE__ */ jsx(XIcon, {}),
100
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
101
- ]
102
- }
103
- ) : null
104
- ]
105
- }
106
- )
107
- ] });
108
- }
109
- function SheetHeader({ className, ...props }) {
110
- return /* @__PURE__ */ jsx("div", { "data-slot": "sheet-header", className: cn("flex flex-col gap-0.5 p-4", className), ...props });
111
- }
112
- function SheetFooter({ className, ...props }) {
113
- return /* @__PURE__ */ jsx("div", { "data-slot": "sheet-footer", className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
114
- }
115
- function SheetTitle({ className, ...props }) {
116
- return /* @__PURE__ */ jsx(
117
- Dialog.Title,
118
- {
119
- "data-slot": "sheet-title",
120
- className: cn("text-foreground text-base font-medium", className),
121
- ...props
122
- }
123
- );
124
- }
125
- function SheetDescription({ className, ...props }) {
126
- return /* @__PURE__ */ jsx(
127
- Dialog.Description,
128
- {
129
- "data-slot": "sheet-description",
130
- className: cn("text-muted-foreground text-sm", className),
131
- ...props
132
- }
133
- );
134
- }
135
-
136
- export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -1,34 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var lucideReact = require('lucide-react');
5
- var radixUi = require('radix-ui');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- function Checkbox({ className, ...props }) {
9
- return /* @__PURE__ */ jsxRuntime.jsx(
10
- radixUi.Checkbox.Root,
11
- {
12
- "data-slot": "checkbox",
13
- className: chunkH2BWO3SI_cjs.cn(
14
- "peer border-input dark:bg-input/30 size-4 shrink-0 rounded border shadow-xs transition-shadow outline-none",
15
- "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
16
- "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
17
- "disabled:cursor-not-allowed disabled:opacity-50",
18
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
19
- className
20
- ),
21
- ...props,
22
- children: /* @__PURE__ */ jsxRuntime.jsx(
23
- radixUi.Checkbox.Indicator,
24
- {
25
- "data-slot": "checkbox-indicator",
26
- className: "grid place-content-center text-current transition-none",
27
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-3.5" })
28
- }
29
- )
30
- }
31
- );
32
- }
33
-
34
- exports.Checkbox = Checkbox;
@@ -1,82 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { cva } from 'class-variance-authority';
4
-
5
- function Empty({ className, border = false, ...props }) {
6
- return /* @__PURE__ */ jsx(
7
- "div",
8
- {
9
- "data-slot": "empty",
10
- className: cn(
11
- "border-border flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded p-6 text-center text-balance md:p-12",
12
- border ? "border" : "",
13
- border === "dashed" ? "border-dashed" : "",
14
- className
15
- ),
16
- ...props
17
- }
18
- );
19
- }
20
- function EmptyHeader({ className, ...props }) {
21
- return /* @__PURE__ */ jsx(
22
- "div",
23
- {
24
- "data-slot": "empty-header",
25
- className: cn("flex max-w-sm flex-col items-center gap-2 text-center", className),
26
- ...props
27
- }
28
- );
29
- }
30
- function EmptyTitle({ className, ...props }) {
31
- return /* @__PURE__ */ jsx("div", { "data-slot": "empty-title", className: cn("text-lg font-medium tracking-tight", className), ...props });
32
- }
33
- function EmptyDescription({ className, ...props }) {
34
- return /* @__PURE__ */ jsx(
35
- "p",
36
- {
37
- "data-slot": "empty-description",
38
- className: cn(
39
- "text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
40
- className
41
- ),
42
- ...props
43
- }
44
- );
45
- }
46
- function EmptyContent({ className, ...props }) {
47
- return /* @__PURE__ */ jsx(
48
- "div",
49
- {
50
- "data-slot": "empty-content",
51
- className: cn("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", className),
52
- ...props
53
- }
54
- );
55
- }
56
- var emptyMediaVariants = cva(
57
- "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
58
- {
59
- variants: {
60
- variant: {
61
- default: "bg-transparent",
62
- icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded [&_svg:not([class*='size-'])]:size-6"
63
- }
64
- },
65
- defaultVariants: {
66
- variant: "default"
67
- }
68
- }
69
- );
70
- function EmptyMedia({ className, variant = "default", ...props }) {
71
- return /* @__PURE__ */ jsx(
72
- "div",
73
- {
74
- "data-slot": "empty-icon",
75
- "data-variant": variant,
76
- className: cn(emptyMediaVariants({ variant, className })),
77
- ...props
78
- }
79
- );
80
- }
81
-
82
- export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };