@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,181 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import React__default from 'react';
4
-
5
- /**
6
- * Props for the Masonry component
7
- */
8
- type MasonryProps = React.ComponentProps<"div"> & {
9
- /**
10
- * The width of each column in pixels.
11
- * @default 200
12
- */
13
- columnWidth?: number;
14
- /**
15
- * Fixed number of columns. Takes precedence over `columnWidth` if provided.
16
- */
17
- columnCount?: number;
18
- /**
19
- * Maximum number of columns allowed. Useful for responsive layouts.
20
- */
21
- maxColumnCount?: number;
22
- /**
23
- * Gap between items. Can be a single number for uniform spacing or an object
24
- * with separate `column` and `row` gaps.
25
- * @default 16
26
- * @example
27
- * gap={20}
28
- * gap={{ column: 16, row: 24 }}
29
- */
30
- gap?: number | {
31
- column: number;
32
- row: number;
33
- };
34
- /**
35
- * Default height for items before they are measured. Used for initial layout calculations.
36
- * @default 300
37
- */
38
- itemHeight?: number;
39
- /**
40
- * Default container width used during SSR or before first measurement.
41
- */
42
- defaultWidth?: number;
43
- /**
44
- * Default container height used during SSR or before first measurement.
45
- */
46
- defaultHeight?: number;
47
- /**
48
- * Number of pixels to render outside the visible viewport for smoother scrolling.
49
- * @default 200
50
- */
51
- overscan?: number;
52
- /**
53
- * Scroll event sampling rate in frames per second. Higher values provide smoother
54
- * updates but may impact performance.
55
- * @default 12
56
- */
57
- scrollFps?: number;
58
- /**
59
- * Content to display while items are being measured or loaded.
60
- */
61
- fallback?: React.ReactNode;
62
- /**
63
- * When `true`, items are positioned linearly (left-to-right, top-to-bottom)
64
- * instead of using the default masonry algorithm that fills shortest columns first.
65
- * @default false
66
- */
67
- linear?: boolean;
68
- /**
69
- * When `true`, renders the component as its child element using Radix UI's Slot.
70
- * @default false
71
- */
72
- asChild?: boolean;
73
- };
74
- type MasonryElement = React.ComponentRef<"div">;
75
- /**
76
- * A performant masonry layout component that efficiently arranges items of varying heights
77
- * into columns. Features virtualization, resize observation, and smooth scrolling performance.
78
- *
79
- * @component
80
- * @example
81
- * // Basic usage
82
- * <Masonry>
83
- * {items.map((item, index) => (
84
- * <Masonry.Item key={index}>
85
- * <img src={item.url} alt={item.title} />
86
- * </Masonry.Item>
87
- * ))}
88
- * </Masonry>
89
- *
90
- * @example
91
- * // Custom column width and gap
92
- * <Masonry columnWidth={250} gap={{ column: 20, row: 30 }}>
93
- * {items.map((item, index) => (
94
- * <Masonry.Item key={index}>
95
- * <Card>{item.content}</Card>
96
- * </Masonry.Item>
97
- * ))}
98
- * </Masonry>
99
- *
100
- * @example
101
- * // Fixed number of columns with linear positioning
102
- * <Masonry columnCount={3} linear>
103
- * {items.map((item, index) => (
104
- * <Masonry.Item key={index}>
105
- * {item.content}
106
- * </Masonry.Item>
107
- * ))}
108
- * </Masonry>
109
- *
110
- * @example
111
- * // With fallback content
112
- * <Masonry fallback={<Spinner />}>
113
- * {items.map((item, index) => (
114
- * <Masonry.Item key={index}>
115
- * <LazyImage src={item.url} />
116
- * </Masonry.Item>
117
- * ))}
118
- * </Masonry>
119
- */
120
- declare function Masonry(props: MasonryProps): react_jsx_runtime.JSX.Element;
121
-
122
- type MasonryItemProps = React__default.ComponentProps<"div"> & {
123
- asChild?: boolean;
124
- };
125
- type MasonryItemElement = HTMLDivElement;
126
- declare function MasonryItem({ asChild, ref, ...props }: MasonryItemProps): react_jsx_runtime.JSX.Element;
127
-
128
- type NodeColor = 0 | 1 | 2;
129
- type NodeOperation = 0 | 1;
130
- type ItemElement = HTMLDivElement;
131
- type MasonryListNode = {
132
- index: number;
133
- high: number;
134
- next: MasonryListNode | null;
135
- };
136
- type MasonryTreeNode = {
137
- max: number;
138
- low: number;
139
- high: number;
140
- color: NodeColor;
141
- parent: MasonryTreeNode;
142
- right: MasonryTreeNode;
143
- left: MasonryTreeNode;
144
- list: MasonryListNode;
145
- };
146
- type MasonryTree = {
147
- root: MasonryTreeNode;
148
- size: number;
149
- };
150
- type MasonryIntervalTree = {
151
- insert(low: number, high: number, index: number): void;
152
- remove(index: number): void;
153
- search(low: number, high: number, onCallback: (index: number, low: number) => void): void;
154
- size: number;
155
- };
156
- type MasonryCacheKey = string | number | symbol;
157
- type MasonryCacheConstructor = (new () => MasonryCache) | Record<MasonryCacheKey, unknown>;
158
- type MasonryCache<K = MasonryCacheKey, V = unknown> = {
159
- set: (k: K, v: V) => V;
160
- get: (k: K) => V | undefined;
161
- };
162
- type MasonryPositioner = {
163
- columnCount: number;
164
- columnWidth: number;
165
- set: (index: number, height: number) => void;
166
- get: (index: number) => MasonryPositionerItem | undefined;
167
- update: (updates: number[]) => void;
168
- range: (low: number, high: number, onItemRender: (index: number, left: number, top: number) => void) => void;
169
- size: () => number;
170
- estimateHeight: (itemCount: number, defaultItemHeight: number) => number;
171
- shortestColumn: () => number;
172
- all: () => Array<MasonryPositionerItem>;
173
- };
174
- type MasonryPositionerItem = {
175
- top: number;
176
- left: number;
177
- height: number;
178
- columnIndex: number;
179
- };
180
-
181
- export { type ItemElement, Masonry, type MasonryCache, type MasonryCacheConstructor, type MasonryCacheKey, type MasonryElement, type MasonryIntervalTree, MasonryItem, type MasonryItemElement, type MasonryItemProps, type MasonryListNode, type MasonryPositioner, type MasonryPositionerItem, type MasonryProps, type MasonryTree, type MasonryTreeNode, type NodeColor, type NodeOperation };
@@ -1,181 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import React__default from 'react';
4
-
5
- /**
6
- * Props for the Masonry component
7
- */
8
- type MasonryProps = React.ComponentProps<"div"> & {
9
- /**
10
- * The width of each column in pixels.
11
- * @default 200
12
- */
13
- columnWidth?: number;
14
- /**
15
- * Fixed number of columns. Takes precedence over `columnWidth` if provided.
16
- */
17
- columnCount?: number;
18
- /**
19
- * Maximum number of columns allowed. Useful for responsive layouts.
20
- */
21
- maxColumnCount?: number;
22
- /**
23
- * Gap between items. Can be a single number for uniform spacing or an object
24
- * with separate `column` and `row` gaps.
25
- * @default 16
26
- * @example
27
- * gap={20}
28
- * gap={{ column: 16, row: 24 }}
29
- */
30
- gap?: number | {
31
- column: number;
32
- row: number;
33
- };
34
- /**
35
- * Default height for items before they are measured. Used for initial layout calculations.
36
- * @default 300
37
- */
38
- itemHeight?: number;
39
- /**
40
- * Default container width used during SSR or before first measurement.
41
- */
42
- defaultWidth?: number;
43
- /**
44
- * Default container height used during SSR or before first measurement.
45
- */
46
- defaultHeight?: number;
47
- /**
48
- * Number of pixels to render outside the visible viewport for smoother scrolling.
49
- * @default 200
50
- */
51
- overscan?: number;
52
- /**
53
- * Scroll event sampling rate in frames per second. Higher values provide smoother
54
- * updates but may impact performance.
55
- * @default 12
56
- */
57
- scrollFps?: number;
58
- /**
59
- * Content to display while items are being measured or loaded.
60
- */
61
- fallback?: React.ReactNode;
62
- /**
63
- * When `true`, items are positioned linearly (left-to-right, top-to-bottom)
64
- * instead of using the default masonry algorithm that fills shortest columns first.
65
- * @default false
66
- */
67
- linear?: boolean;
68
- /**
69
- * When `true`, renders the component as its child element using Radix UI's Slot.
70
- * @default false
71
- */
72
- asChild?: boolean;
73
- };
74
- type MasonryElement = React.ComponentRef<"div">;
75
- /**
76
- * A performant masonry layout component that efficiently arranges items of varying heights
77
- * into columns. Features virtualization, resize observation, and smooth scrolling performance.
78
- *
79
- * @component
80
- * @example
81
- * // Basic usage
82
- * <Masonry>
83
- * {items.map((item, index) => (
84
- * <Masonry.Item key={index}>
85
- * <img src={item.url} alt={item.title} />
86
- * </Masonry.Item>
87
- * ))}
88
- * </Masonry>
89
- *
90
- * @example
91
- * // Custom column width and gap
92
- * <Masonry columnWidth={250} gap={{ column: 20, row: 30 }}>
93
- * {items.map((item, index) => (
94
- * <Masonry.Item key={index}>
95
- * <Card>{item.content}</Card>
96
- * </Masonry.Item>
97
- * ))}
98
- * </Masonry>
99
- *
100
- * @example
101
- * // Fixed number of columns with linear positioning
102
- * <Masonry columnCount={3} linear>
103
- * {items.map((item, index) => (
104
- * <Masonry.Item key={index}>
105
- * {item.content}
106
- * </Masonry.Item>
107
- * ))}
108
- * </Masonry>
109
- *
110
- * @example
111
- * // With fallback content
112
- * <Masonry fallback={<Spinner />}>
113
- * {items.map((item, index) => (
114
- * <Masonry.Item key={index}>
115
- * <LazyImage src={item.url} />
116
- * </Masonry.Item>
117
- * ))}
118
- * </Masonry>
119
- */
120
- declare function Masonry(props: MasonryProps): react_jsx_runtime.JSX.Element;
121
-
122
- type MasonryItemProps = React__default.ComponentProps<"div"> & {
123
- asChild?: boolean;
124
- };
125
- type MasonryItemElement = HTMLDivElement;
126
- declare function MasonryItem({ asChild, ref, ...props }: MasonryItemProps): react_jsx_runtime.JSX.Element;
127
-
128
- type NodeColor = 0 | 1 | 2;
129
- type NodeOperation = 0 | 1;
130
- type ItemElement = HTMLDivElement;
131
- type MasonryListNode = {
132
- index: number;
133
- high: number;
134
- next: MasonryListNode | null;
135
- };
136
- type MasonryTreeNode = {
137
- max: number;
138
- low: number;
139
- high: number;
140
- color: NodeColor;
141
- parent: MasonryTreeNode;
142
- right: MasonryTreeNode;
143
- left: MasonryTreeNode;
144
- list: MasonryListNode;
145
- };
146
- type MasonryTree = {
147
- root: MasonryTreeNode;
148
- size: number;
149
- };
150
- type MasonryIntervalTree = {
151
- insert(low: number, high: number, index: number): void;
152
- remove(index: number): void;
153
- search(low: number, high: number, onCallback: (index: number, low: number) => void): void;
154
- size: number;
155
- };
156
- type MasonryCacheKey = string | number | symbol;
157
- type MasonryCacheConstructor = (new () => MasonryCache) | Record<MasonryCacheKey, unknown>;
158
- type MasonryCache<K = MasonryCacheKey, V = unknown> = {
159
- set: (k: K, v: V) => V;
160
- get: (k: K) => V | undefined;
161
- };
162
- type MasonryPositioner = {
163
- columnCount: number;
164
- columnWidth: number;
165
- set: (index: number, height: number) => void;
166
- get: (index: number) => MasonryPositionerItem | undefined;
167
- update: (updates: number[]) => void;
168
- range: (low: number, high: number, onItemRender: (index: number, left: number, top: number) => void) => void;
169
- size: () => number;
170
- estimateHeight: (itemCount: number, defaultItemHeight: number) => number;
171
- shortestColumn: () => number;
172
- all: () => Array<MasonryPositionerItem>;
173
- };
174
- type MasonryPositionerItem = {
175
- top: number;
176
- left: number;
177
- height: number;
178
- columnIndex: number;
179
- };
180
-
181
- export { type ItemElement, Masonry, type MasonryCache, type MasonryCacheConstructor, type MasonryCacheKey, type MasonryElement, type MasonryIntervalTree, MasonryItem, type MasonryItemElement, type MasonryItemProps, type MasonryListNode, type MasonryPositioner, type MasonryPositionerItem, type MasonryProps, type MasonryTree, type MasonryTreeNode, type NodeColor, type NodeOperation };
@@ -1,3 +0,0 @@
1
- export { Masonry, MasonryItem } from '../../chunk-WCQ5WKCQ.js';
2
- import '../../chunk-P4IL77YC.js';
3
- import '../../chunk-G24PWQKG.js';
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkGEDBA3JU_cjs = require('../../chunk-GEDBA3JU.cjs');
4
- require('../../chunk-H2BWO3SI.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "Popover", {
9
- enumerable: true,
10
- get: function () { return chunkGEDBA3JU_cjs.Popover; }
11
- });
12
- Object.defineProperty(exports, "PopoverAnchor", {
13
- enumerable: true,
14
- get: function () { return chunkGEDBA3JU_cjs.PopoverAnchor; }
15
- });
16
- Object.defineProperty(exports, "PopoverContent", {
17
- enumerable: true,
18
- get: function () { return chunkGEDBA3JU_cjs.PopoverContent; }
19
- });
20
- Object.defineProperty(exports, "PopoverDescription", {
21
- enumerable: true,
22
- get: function () { return chunkGEDBA3JU_cjs.PopoverDescription; }
23
- });
24
- Object.defineProperty(exports, "PopoverHeader", {
25
- enumerable: true,
26
- get: function () { return chunkGEDBA3JU_cjs.PopoverHeader; }
27
- });
28
- Object.defineProperty(exports, "PopoverTitle", {
29
- enumerable: true,
30
- get: function () { return chunkGEDBA3JU_cjs.PopoverTitle; }
31
- });
32
- Object.defineProperty(exports, "PopoverTrigger", {
33
- enumerable: true,
34
- get: function () { return chunkGEDBA3JU_cjs.PopoverTrigger; }
35
- });
@@ -1,18 +0,0 @@
1
- export { P as Popover, a as PopoverContent, b as PopoverContentProps, c as PopoverProps, d as PopoverTrigger, e as PopoverTriggerProps } from '../../popover-trigger-Cf4PPj0z.cjs';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import * as React from 'react';
4
- import { Popover } from 'radix-ui';
5
-
6
- type PopoverAnchorProps = React.ComponentProps<typeof Popover.Anchor>;
7
- declare function PopoverAnchor(props: PopoverAnchorProps): react_jsx_runtime.JSX.Element;
8
-
9
- type PopoverHeaderProps = React.ComponentProps<"div">;
10
- declare function PopoverHeader({ className, ...props }: PopoverHeaderProps): react_jsx_runtime.JSX.Element;
11
-
12
- type PopoverTitleProps = React.ComponentProps<"h2">;
13
- declare function PopoverTitle({ className, ...props }: PopoverTitleProps): react_jsx_runtime.JSX.Element;
14
-
15
- type PopoverDescriptionProps = React.ComponentProps<"p">;
16
- declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): react_jsx_runtime.JSX.Element;
17
-
18
- export { PopoverAnchor, type PopoverAnchorProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, PopoverTitle, type PopoverTitleProps };
@@ -1,18 +0,0 @@
1
- export { P as Popover, a as PopoverContent, b as PopoverContentProps, c as PopoverProps, d as PopoverTrigger, e as PopoverTriggerProps } from '../../popover-trigger-Cf4PPj0z.js';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import * as React from 'react';
4
- import { Popover } from 'radix-ui';
5
-
6
- type PopoverAnchorProps = React.ComponentProps<typeof Popover.Anchor>;
7
- declare function PopoverAnchor(props: PopoverAnchorProps): react_jsx_runtime.JSX.Element;
8
-
9
- type PopoverHeaderProps = React.ComponentProps<"div">;
10
- declare function PopoverHeader({ className, ...props }: PopoverHeaderProps): react_jsx_runtime.JSX.Element;
11
-
12
- type PopoverTitleProps = React.ComponentProps<"h2">;
13
- declare function PopoverTitle({ className, ...props }: PopoverTitleProps): react_jsx_runtime.JSX.Element;
14
-
15
- type PopoverDescriptionProps = React.ComponentProps<"p">;
16
- declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): react_jsx_runtime.JSX.Element;
17
-
18
- export { PopoverAnchor, type PopoverAnchorProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, PopoverTitle, type PopoverTitleProps };
@@ -1,2 +0,0 @@
1
- export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '../../chunk-IZU3KULT.js';
2
- import '../../chunk-ZD2QRAOX.js';
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkTH44JYXB_cjs = require('../../chunk-TH44JYXB.cjs');
4
- require('../../chunk-H2BWO3SI.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "Progress", {
9
- enumerable: true,
10
- get: function () { return chunkTH44JYXB_cjs.Progress; }
11
- });
@@ -1,8 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { Progress as Progress$1 } from 'radix-ui';
4
-
5
- type ProgressProps = React.ComponentProps<typeof Progress$1.Root>;
6
- declare function Progress({ className, value, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
7
-
8
- export { Progress, type ProgressProps };
@@ -1,8 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { Progress as Progress$1 } from 'radix-ui';
4
-
5
- type ProgressProps = React.ComponentProps<typeof Progress$1.Root>;
6
- declare function Progress({ className, value, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
7
-
8
- export { Progress, type ProgressProps };
@@ -1,2 +0,0 @@
1
- export { Progress } from '../../chunk-PBEZZMAB.js';
2
- import '../../chunk-ZD2QRAOX.js';
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkXENOUBSI_cjs = require('../../chunk-XENOUBSI.cjs');
4
- require('../../chunk-H2BWO3SI.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "RadioGroup", {
9
- enumerable: true,
10
- get: function () { return chunkXENOUBSI_cjs.RadioGroup; }
11
- });
12
- Object.defineProperty(exports, "RadioGroupItem", {
13
- enumerable: true,
14
- get: function () { return chunkXENOUBSI_cjs.RadioGroupItem; }
15
- });
@@ -1,22 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { RadioGroup as RadioGroup$1 } from 'radix-ui';
4
-
5
- type RadioGroupProps = React.ComponentPropsWithoutRef<"div"> & {
6
- asChild?: boolean;
7
- name?: string;
8
- required?: boolean;
9
- disabled?: boolean;
10
- dir?: "ltr" | "rtl";
11
- orientation?: "horizontal" | "vertical";
12
- loop?: boolean;
13
- defaultValue?: string;
14
- value?: string | null;
15
- onValueChange?: (value: string) => void;
16
- };
17
- declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
18
-
19
- type RadioGroupItemProps = React.ComponentProps<typeof RadioGroup$1.Item>;
20
- declare function RadioGroupItem({ className, ...props }: RadioGroupItemProps): react_jsx_runtime.JSX.Element;
21
-
22
- export { RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps };
@@ -1,22 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { RadioGroup as RadioGroup$1 } from 'radix-ui';
4
-
5
- type RadioGroupProps = React.ComponentPropsWithoutRef<"div"> & {
6
- asChild?: boolean;
7
- name?: string;
8
- required?: boolean;
9
- disabled?: boolean;
10
- dir?: "ltr" | "rtl";
11
- orientation?: "horizontal" | "vertical";
12
- loop?: boolean;
13
- defaultValue?: string;
14
- value?: string | null;
15
- onValueChange?: (value: string) => void;
16
- };
17
- declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
18
-
19
- type RadioGroupItemProps = React.ComponentProps<typeof RadioGroup$1.Item>;
20
- declare function RadioGroupItem({ className, ...props }: RadioGroupItemProps): react_jsx_runtime.JSX.Element;
21
-
22
- export { RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps };
@@ -1,2 +0,0 @@
1
- export { RadioGroup, RadioGroupItem } from '../../chunk-4TRADSTP.js';
2
- import '../../chunk-ZD2QRAOX.js';
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkUJX74PFK_cjs = require('../../chunk-UJX74PFK.cjs');
4
- require('../../chunk-H2BWO3SI.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "ScrollArea", {
9
- enumerable: true,
10
- get: function () { return chunkUJX74PFK_cjs.ScrollArea; }
11
- });
12
- Object.defineProperty(exports, "ScrollBar", {
13
- enumerable: true,
14
- get: function () { return chunkUJX74PFK_cjs.ScrollBar; }
15
- });
@@ -1,11 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { ScrollArea as ScrollArea$1 } from 'radix-ui';
4
-
5
- type ScrollAreaProps = React.ComponentProps<typeof ScrollArea$1.Root>;
6
- declare function ScrollArea({ className, children, ...props }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
7
-
8
- type ScrollBarProps = React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>;
9
- declare function ScrollBar({ className, orientation, ...props }: ScrollBarProps): react_jsx_runtime.JSX.Element;
10
-
11
- export { ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps };
@@ -1,11 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { ScrollArea as ScrollArea$1 } from 'radix-ui';
4
-
5
- type ScrollAreaProps = React.ComponentProps<typeof ScrollArea$1.Root>;
6
- declare function ScrollArea({ className, children, ...props }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
7
-
8
- type ScrollBarProps = React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>;
9
- declare function ScrollBar({ className, orientation, ...props }: ScrollBarProps): react_jsx_runtime.JSX.Element;
10
-
11
- export { ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps };
@@ -1,2 +0,0 @@
1
- export { ScrollArea, ScrollBar } from '../../chunk-M7NIRB3U.js';
2
- import '../../chunk-ZD2QRAOX.js';
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk6HX7ETL3_cjs = require('../../chunk-6HX7ETL3.cjs');
4
- require('../../chunk-H2BWO3SI.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "Select", {
9
- enumerable: true,
10
- get: function () { return chunk6HX7ETL3_cjs.Select; }
11
- });
12
- Object.defineProperty(exports, "SelectContent", {
13
- enumerable: true,
14
- get: function () { return chunk6HX7ETL3_cjs.SelectContent; }
15
- });
16
- Object.defineProperty(exports, "SelectGroup", {
17
- enumerable: true,
18
- get: function () { return chunk6HX7ETL3_cjs.SelectGroup; }
19
- });
20
- Object.defineProperty(exports, "SelectItem", {
21
- enumerable: true,
22
- get: function () { return chunk6HX7ETL3_cjs.SelectItem; }
23
- });
24
- Object.defineProperty(exports, "SelectLabel", {
25
- enumerable: true,
26
- get: function () { return chunk6HX7ETL3_cjs.SelectLabel; }
27
- });
28
- Object.defineProperty(exports, "SelectSeparator", {
29
- enumerable: true,
30
- get: function () { return chunk6HX7ETL3_cjs.SelectSeparator; }
31
- });
@@ -1,22 +0,0 @@
1
- export { S as Select, a as SelectProps } from '../../select-Bf6XQtt-.cjs';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import * as React from 'react';
4
- import React__default from 'react';
5
- import { Select } from 'radix-ui';
6
-
7
- type SelectContentProps = React.ComponentProps<typeof Select.Content>;
8
- declare function SelectContent({ className, children, position, align, ...props }: SelectContentProps): react_jsx_runtime.JSX.Element;
9
-
10
- type SelectGroupProps = React.ComponentProps<typeof Select.Group>;
11
- declare function SelectGroup(props: SelectGroupProps): react_jsx_runtime.JSX.Element;
12
-
13
- type SelectItemProps = React.ComponentProps<typeof Select.Item>;
14
- declare function SelectItem({ className, children, ...props }: SelectItemProps): react_jsx_runtime.JSX.Element;
15
-
16
- type SelectLabelProps = React.ComponentProps<typeof Select.Label>;
17
- declare function SelectLabel({ className, ...props }: SelectLabelProps): react_jsx_runtime.JSX.Element;
18
-
19
- type SelectSeparatorProps = React__default.ComponentProps<typeof Select.Separator>;
20
- declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): react_jsx_runtime.JSX.Element;
21
-
22
- export { SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectSeparator, type SelectSeparatorProps };
@@ -1,22 +0,0 @@
1
- export { S as Select, a as SelectProps } from '../../select-Bf6XQtt-.js';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import * as React from 'react';
4
- import React__default from 'react';
5
- import { Select } from 'radix-ui';
6
-
7
- type SelectContentProps = React.ComponentProps<typeof Select.Content>;
8
- declare function SelectContent({ className, children, position, align, ...props }: SelectContentProps): react_jsx_runtime.JSX.Element;
9
-
10
- type SelectGroupProps = React.ComponentProps<typeof Select.Group>;
11
- declare function SelectGroup(props: SelectGroupProps): react_jsx_runtime.JSX.Element;
12
-
13
- type SelectItemProps = React.ComponentProps<typeof Select.Item>;
14
- declare function SelectItem({ className, children, ...props }: SelectItemProps): react_jsx_runtime.JSX.Element;
15
-
16
- type SelectLabelProps = React.ComponentProps<typeof Select.Label>;
17
- declare function SelectLabel({ className, ...props }: SelectLabelProps): react_jsx_runtime.JSX.Element;
18
-
19
- type SelectSeparatorProps = React__default.ComponentProps<typeof Select.Separator>;
20
- declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): react_jsx_runtime.JSX.Element;
21
-
22
- export { SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, SelectSeparator, type SelectSeparatorProps };