@szum-tech/design-system 3.17.0 → 3.18.2

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,278 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var React2 = require('react');
5
- var radixUi = require('radix-ui');
6
- var reactDom = require('react-dom');
7
- var core = require('@dnd-kit/core');
8
- var sortable = require('@dnd-kit/sortable');
9
- var jsxRuntime = require('react/jsx-runtime');
10
- var utilities = require('@dnd-kit/utilities');
11
-
12
- function _interopNamespace(e) {
13
- if (e && e.__esModule) return e;
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
22
- });
23
- }
24
- });
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
28
- }
29
-
30
- var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
31
-
32
- var SORTABLE_ROOT_NAME = "Sortable";
33
- var SORTABLE_ITEM_NAME = "SortableItem";
34
- var SORTABLE_ITEM_HANDLE_NAME = "SortableItemHandle";
35
- var SORTABLE_OVERLAY_NAME = "SortableOverlay";
36
- var animateLayoutChanges = (args) => sortable.defaultAnimateLayoutChanges({ ...args, wasDragging: true });
37
- var dropAnimationConfig = {
38
- sideEffects: core.defaultDropAnimationSideEffects({
39
- styles: {
40
- active: {
41
- opacity: "0.4"
42
- }
43
- }
44
- })
45
- };
46
- var SortableItemContext = React2__namespace.createContext(null);
47
- function useSortableItemContext(consumerName) {
48
- const context = React2__namespace.useContext(SortableItemContext);
49
- if (!context) {
50
- throw new Error(`\`${consumerName}\` must be used within \`${SORTABLE_ITEM_NAME}\``);
51
- }
52
- return context;
53
- }
54
- var IsOverlayContext = React2__namespace.createContext(false);
55
- var SortableInternalContext = React2__namespace.createContext(null);
56
- function useSortableInternalContext(consumerName) {
57
- const context = React2__namespace.useContext(SortableInternalContext);
58
- if (!context) {
59
- throw new Error(`\`${consumerName}\` must be used within \`${SORTABLE_ROOT_NAME}\``);
60
- }
61
- return context;
62
- }
63
- function Sortable({
64
- value,
65
- onValueChange,
66
- getItemValue,
67
- className,
68
- asChild = false,
69
- onMove,
70
- strategy = "vertical",
71
- onDragStart,
72
- onDragEnd,
73
- modifiers,
74
- children,
75
- ...props
76
- }) {
77
- const [activeId, setActiveId] = React2__namespace.useState(null);
78
- const [mounted, setMounted] = React2__namespace.useState(false);
79
- React2__namespace.useLayoutEffect(() => setMounted(true), []);
80
- const sensors = core.useSensors(
81
- core.useSensor(core.MouseSensor, {
82
- activationConstraint: {
83
- distance: 10
84
- }
85
- }),
86
- core.useSensor(core.TouchSensor, {
87
- activationConstraint: {
88
- delay: 250,
89
- tolerance: 5
90
- }
91
- }),
92
- core.useSensor(core.KeyboardSensor, {
93
- coordinateGetter: sortable.sortableKeyboardCoordinates
94
- })
95
- );
96
- const handleDragStart = React2__namespace.useCallback(
97
- (event) => {
98
- setActiveId(event.active.id);
99
- onDragStart?.(event);
100
- },
101
- [onDragStart]
102
- );
103
- const handleDragEnd = React2__namespace.useCallback(
104
- (event) => {
105
- const { active, over } = event;
106
- setActiveId(null);
107
- onDragEnd?.(event);
108
- if (!over) return;
109
- const activeIndex = value.findIndex((item) => getItemValue(item) === active.id);
110
- const overIndex = value.findIndex((item) => getItemValue(item) === over.id);
111
- if (activeIndex !== overIndex) {
112
- if (onMove) {
113
- onMove({ event, activeIndex, overIndex });
114
- } else {
115
- const newValue = sortable.arrayMove(value, activeIndex, overIndex);
116
- onValueChange(newValue);
117
- }
118
- }
119
- },
120
- [value, getItemValue, onValueChange, onMove, onDragEnd]
121
- );
122
- const handleDragCancel = React2__namespace.useCallback(() => {
123
- setActiveId(null);
124
- }, []);
125
- const getStrategy = () => {
126
- switch (strategy) {
127
- case "horizontal":
128
- return sortable.rectSortingStrategy;
129
- case "grid":
130
- return sortable.rectSortingStrategy;
131
- case "vertical":
132
- default:
133
- return sortable.verticalListSortingStrategy;
134
- }
135
- };
136
- const itemIds = React2__namespace.useMemo(() => value.map(getItemValue), [value, getItemValue]);
137
- const contextValue = React2__namespace.useMemo(() => ({ activeId, modifiers }), [activeId, modifiers]);
138
- const overlayContent = React2__namespace.useMemo(() => {
139
- if (!activeId) return null;
140
- let result = null;
141
- React2__namespace.Children.forEach(children, (child) => {
142
- if (React2__namespace.isValidElement(child) && child.props.value === activeId) {
143
- result = React2__namespace.cloneElement(child, {
144
- ...child.props,
145
- className: chunkH2BWO3SI_cjs.cn(child.props.className, "z-50")
146
- });
147
- }
148
- });
149
- return result;
150
- }, [activeId, children]);
151
- const Comp = asChild ? radixUi.Slot.Root : "div";
152
- return /* @__PURE__ */ jsxRuntime.jsx(SortableInternalContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(
153
- core.DndContext,
154
- {
155
- sensors,
156
- modifiers,
157
- measuring: {
158
- droppable: {
159
- strategy: core.MeasuringStrategy.Always
160
- }
161
- },
162
- onDragStart: handleDragStart,
163
- onDragEnd: handleDragEnd,
164
- onDragCancel: handleDragCancel,
165
- children: [
166
- /* @__PURE__ */ jsxRuntime.jsx(sortable.SortableContext, { items: itemIds, strategy: getStrategy(), children: /* @__PURE__ */ jsxRuntime.jsx(
167
- Comp,
168
- {
169
- "data-slot": "sortable",
170
- "data-dragging": activeId !== null,
171
- className: chunkH2BWO3SI_cjs.cn(activeId !== null && "cursor-grabbing!", className),
172
- ...props,
173
- children
174
- }
175
- ) }),
176
- mounted && reactDom.createPortal(
177
- /* @__PURE__ */ jsxRuntime.jsx(
178
- core.DragOverlay,
179
- {
180
- dropAnimation: dropAnimationConfig,
181
- modifiers,
182
- className: chunkH2BWO3SI_cjs.cn("z-50", activeId && "cursor-grabbing"),
183
- children: /* @__PURE__ */ jsxRuntime.jsx(IsOverlayContext.Provider, { value: true, children: overlayContent })
184
- }
185
- ),
186
- document.body
187
- )
188
- ]
189
- }
190
- ) });
191
- }
192
- function SortableItem({ value, className, asChild = false, disabled, children, ...props }) {
193
- const isOverlay = React2__namespace.useContext(IsOverlayContext);
194
- const {
195
- setNodeRef,
196
- transform,
197
- transition,
198
- attributes,
199
- listeners,
200
- isDragging: isSortableDragging
201
- } = sortable.useSortable({
202
- id: value,
203
- disabled: disabled || isOverlay,
204
- animateLayoutChanges
205
- });
206
- if (isOverlay) {
207
- const Comp2 = asChild ? radixUi.Slot.Root : "div";
208
- return /* @__PURE__ */ jsxRuntime.jsx(SortableItemContext.Provider, { value: { listeners: void 0, isDragging: true, disabled: false }, children: /* @__PURE__ */ jsxRuntime.jsx(Comp2, { "data-slot": "sortable-item", "data-value": value, "data-dragging": true, className: chunkH2BWO3SI_cjs.cn(className), ...props, children }) });
209
- }
210
- const style = {
211
- transition,
212
- transform: utilities.CSS.Transform.toString(transform)
213
- };
214
- const Comp = asChild ? radixUi.Slot.Root : "div";
215
- return /* @__PURE__ */ jsxRuntime.jsx(SortableItemContext.Provider, { value: { listeners, isDragging: isSortableDragging, disabled }, children: /* @__PURE__ */ jsxRuntime.jsx(
216
- Comp,
217
- {
218
- "data-slot": "sortable-item",
219
- "data-value": value,
220
- "data-dragging": isSortableDragging,
221
- "data-disabled": disabled,
222
- ref: setNodeRef,
223
- style,
224
- ...attributes,
225
- className: chunkH2BWO3SI_cjs.cn(isSortableDragging && "z-50 opacity-50", disabled && "opacity-50", className),
226
- ...props,
227
- children
228
- }
229
- ) });
230
- }
231
- function SortableItemHandle({
232
- className,
233
- asChild = false,
234
- cursor = true,
235
- children,
236
- ...props
237
- }) {
238
- const { listeners, isDragging, disabled } = useSortableItemContext(SORTABLE_ITEM_HANDLE_NAME);
239
- const Comp = asChild ? radixUi.Slot.Root : "div";
240
- return /* @__PURE__ */ jsxRuntime.jsx(
241
- Comp,
242
- {
243
- "data-slot": "sortable-item-handle",
244
- "data-dragging": isDragging,
245
- "data-disabled": disabled,
246
- ...listeners,
247
- className: chunkH2BWO3SI_cjs.cn(cursor && (isDragging ? "cursor-grabbing!" : "cursor-grab!"), className),
248
- ...props,
249
- children
250
- }
251
- );
252
- }
253
- function SortableOverlay({ children, className, ...props }) {
254
- const { activeId, modifiers } = useSortableInternalContext(SORTABLE_OVERLAY_NAME);
255
- const [mounted, setMounted] = React2__namespace.useState(false);
256
- React2__namespace.useLayoutEffect(() => setMounted(true), []);
257
- const content = activeId && children ? typeof children === "function" ? children({ value: activeId }) : children : null;
258
- if (!mounted) return null;
259
- return reactDom.createPortal(
260
- /* @__PURE__ */ jsxRuntime.jsx(
261
- core.DragOverlay,
262
- {
263
- dropAnimation: dropAnimationConfig,
264
- modifiers,
265
- className: chunkH2BWO3SI_cjs.cn("z-50", activeId && "cursor-grabbing", className),
266
- ...props,
267
- children: /* @__PURE__ */ jsxRuntime.jsx(IsOverlayContext.Provider, { value: true, children: content })
268
- }
269
- ),
270
- document.body
271
- );
272
- }
273
-
274
- exports.Sortable = Sortable;
275
- exports.SortableItem = SortableItem;
276
- exports.SortableItemHandle = SortableItemHandle;
277
- exports.SortableOverlay = SortableOverlay;
278
- exports.useSortableItemContext = useSortableItemContext;
@@ -1,89 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var jsxRuntime = require('react/jsx-runtime');
5
- var classVarianceAuthority = require('class-variance-authority');
6
-
7
- function Empty({ className, border = false, ...props }) {
8
- return /* @__PURE__ */ jsxRuntime.jsx(
9
- "div",
10
- {
11
- "data-slot": "empty",
12
- className: chunkH2BWO3SI_cjs.cn(
13
- "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",
14
- border ? "border" : "",
15
- border === "dashed" ? "border-dashed" : "",
16
- className
17
- ),
18
- ...props
19
- }
20
- );
21
- }
22
- function EmptyHeader({ className, ...props }) {
23
- return /* @__PURE__ */ jsxRuntime.jsx(
24
- "div",
25
- {
26
- "data-slot": "empty-header",
27
- className: chunkH2BWO3SI_cjs.cn("flex max-w-sm flex-col items-center gap-2 text-center", className),
28
- ...props
29
- }
30
- );
31
- }
32
- function EmptyTitle({ className, ...props }) {
33
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "empty-title", className: chunkH2BWO3SI_cjs.cn("text-lg font-medium tracking-tight", className), ...props });
34
- }
35
- function EmptyDescription({ className, ...props }) {
36
- return /* @__PURE__ */ jsxRuntime.jsx(
37
- "p",
38
- {
39
- "data-slot": "empty-description",
40
- className: chunkH2BWO3SI_cjs.cn(
41
- "text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
42
- className
43
- ),
44
- ...props
45
- }
46
- );
47
- }
48
- function EmptyContent({ className, ...props }) {
49
- return /* @__PURE__ */ jsxRuntime.jsx(
50
- "div",
51
- {
52
- "data-slot": "empty-content",
53
- className: chunkH2BWO3SI_cjs.cn("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", className),
54
- ...props
55
- }
56
- );
57
- }
58
- var emptyMediaVariants = classVarianceAuthority.cva(
59
- "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
60
- {
61
- variants: {
62
- variant: {
63
- default: "bg-transparent",
64
- icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded [&_svg:not([class*='size-'])]:size-6"
65
- }
66
- },
67
- defaultVariants: {
68
- variant: "default"
69
- }
70
- }
71
- );
72
- function EmptyMedia({ className, variant = "default", ...props }) {
73
- return /* @__PURE__ */ jsxRuntime.jsx(
74
- "div",
75
- {
76
- "data-slot": "empty-icon",
77
- "data-variant": variant,
78
- className: chunkH2BWO3SI_cjs.cn(emptyMediaVariants({ variant, className })),
79
- ...props
80
- }
81
- );
82
- }
83
-
84
- exports.Empty = Empty;
85
- exports.EmptyContent = EmptyContent;
86
- exports.EmptyDescription = EmptyDescription;
87
- exports.EmptyHeader = EmptyHeader;
88
- exports.EmptyMedia = EmptyMedia;
89
- exports.EmptyTitle = EmptyTitle;
@@ -1,205 +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
- function WordRotate({
29
- words,
30
- duration = 1500,
31
- animationStyle = "fade",
32
- loop = true,
33
- className,
34
- containerClassName,
35
- pauseDuration = 300,
36
- startOnView = true,
37
- once = false,
38
- inViewMargin,
39
- ...props
40
- }) {
41
- const ref = React__namespace.useRef(null);
42
- const isInView = react.useInView(ref, { once, margin: inViewMargin });
43
- const [hasAnimated, setHasAnimated] = React__namespace.useState(false);
44
- const [currentWord, setCurrentWord] = React__namespace.useState(0);
45
- const [show, setShow] = React__namespace.useState(true);
46
- const variants = {
47
- fade: {
48
- initial: { opacity: 0 },
49
- animate: {
50
- opacity: 1,
51
- transition: {
52
- duration: 0.4,
53
- ease: [0.4, 0, 0.2, 1]
54
- // Custom cubic-bezier for smooth fade
55
- }
56
- },
57
- exit: {
58
- opacity: 0,
59
- transition: {
60
- duration: 0.3,
61
- ease: [0.4, 0, 1, 1]
62
- // Faster exit
63
- }
64
- }
65
- },
66
- "slide-up": {
67
- initial: { opacity: 0, y: 24 },
68
- animate: {
69
- opacity: 1,
70
- y: 0,
71
- transition: {
72
- type: "spring",
73
- stiffness: 300,
74
- damping: 25,
75
- mass: 0.8
76
- }
77
- },
78
- exit: {
79
- opacity: 0,
80
- y: -24,
81
- transition: {
82
- duration: 0.25,
83
- ease: [0.4, 0, 1, 1]
84
- }
85
- }
86
- },
87
- "slide-down": {
88
- initial: { opacity: 0, y: -24 },
89
- animate: {
90
- opacity: 1,
91
- y: 0,
92
- transition: {
93
- type: "spring",
94
- stiffness: 300,
95
- damping: 25,
96
- mass: 0.8
97
- }
98
- },
99
- exit: {
100
- opacity: 0,
101
- y: 24,
102
- transition: {
103
- duration: 0.25,
104
- ease: [0.4, 0, 1, 1]
105
- }
106
- }
107
- },
108
- scale: {
109
- initial: { opacity: 0, scale: 0.8 },
110
- animate: {
111
- opacity: 1,
112
- scale: 1,
113
- transition: {
114
- type: "spring",
115
- stiffness: 400,
116
- damping: 30,
117
- mass: 0.6
118
- }
119
- },
120
- exit: {
121
- opacity: 0,
122
- scale: 0.9,
123
- transition: {
124
- duration: 0.2,
125
- ease: [0.4, 0, 1, 1]
126
- }
127
- }
128
- },
129
- flip: {
130
- initial: { opacity: 0, rotateX: 90 },
131
- animate: {
132
- opacity: 1,
133
- rotateX: 0,
134
- transition: {
135
- type: "spring",
136
- stiffness: 200,
137
- damping: 20,
138
- mass: 1
139
- }
140
- },
141
- exit: {
142
- opacity: 0,
143
- rotateX: -90,
144
- transition: {
145
- duration: 0.3,
146
- ease: [0.4, 0, 1, 1]
147
- }
148
- }
149
- }
150
- };
151
- const shouldStart = !startOnView || isInView && (!once || !hasAnimated);
152
- React__namespace.useEffect(() => {
153
- if (!shouldStart) return;
154
- if (words.length === 0) return;
155
- let intervalId;
156
- let timeoutId;
157
- intervalId = setInterval(() => {
158
- setShow(false);
159
- timeoutId = setTimeout(() => {
160
- setCurrentWord((prev) => {
161
- const nextIndex = prev + 1;
162
- if (!loop && nextIndex >= words.length) {
163
- clearInterval(intervalId);
164
- clearTimeout(timeoutId);
165
- return prev;
166
- }
167
- return loop ? nextIndex % words.length : nextIndex;
168
- });
169
- setShow(true);
170
- setHasAnimated(true);
171
- }, pauseDuration);
172
- }, duration + pauseDuration);
173
- return () => {
174
- clearInterval(intervalId);
175
- clearTimeout(timeoutId);
176
- };
177
- }, [shouldStart, duration, pauseDuration, words.length, loop, once, hasAnimated]);
178
- return /* @__PURE__ */ jsxRuntime.jsx(
179
- react.motion.span,
180
- {
181
- ref,
182
- "data-slot": "word-rotate",
183
- className: chunkH2BWO3SI_cjs.cn("inline-block overflow-hidden align-bottom leading-none", containerClassName),
184
- ...props,
185
- children: /* @__PURE__ */ jsxRuntime.jsx(
186
- react.motion.span,
187
- {
188
- initial: "initial",
189
- animate: show ? "animate" : "exit",
190
- exit: "exit",
191
- variants: variants[animationStyle],
192
- transition: { duration: 0.5 },
193
- style: {
194
- perspective: animationStyle === "flip" ? 1e3 : void 0
195
- },
196
- className: chunkH2BWO3SI_cjs.cn("inline-block", className),
197
- children: words[currentWord]
198
- },
199
- currentWord
200
- )
201
- }
202
- );
203
- }
204
-
205
- exports.WordRotate = WordRotate;
@@ -1,23 +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 Separator({ className, orientation = "horizontal", decorative = false, ...props }) {
8
- return /* @__PURE__ */ jsxRuntime.jsx(
9
- radixUi.Separator.Root,
10
- {
11
- "data-slot": "separator",
12
- decorative,
13
- orientation,
14
- className: chunkH2BWO3SI_cjs.cn(
15
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
16
- className
17
- ),
18
- ...props
19
- }
20
- );
21
- }
22
-
23
- exports.Separator = Separator;