@szum-tech/design-system 3.10.3 → 3.11.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.
@@ -24,4 +24,18 @@ function useLazyRef(fn) {
24
24
  }
25
25
  var useIsomorphicLayoutEffect = typeof window === "undefined" ? React3.useEffect : React3.useLayoutEffect;
26
26
 
27
- export { useIsomorphicLayoutEffect, useLazyRef, useValidationLog };
27
+ // src/hooks/use-composed-refs.tsx
28
+ function useComposedRefs(...refs) {
29
+ return (node) => {
30
+ refs.forEach((ref) => {
31
+ if (!ref) return;
32
+ if (typeof ref === "function") {
33
+ ref(node);
34
+ } else {
35
+ ref.current = node;
36
+ }
37
+ });
38
+ };
39
+ }
40
+
41
+ export { useComposedRefs, useIsomorphicLayoutEffect, useLazyRef, useValidationLog };
@@ -1,4 +1,4 @@
1
- import { useLazyRef, useIsomorphicLayoutEffect } from './chunk-DFD2WUOU.js';
1
+ import { useLazyRef, useIsomorphicLayoutEffect } from './chunk-SB5UG7OC.js';
2
2
  import { cn } from './chunk-ZD2QRAOX.js';
3
3
  import * as React2 from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -46,6 +46,21 @@ function useLazyRef(fn) {
46
46
  }
47
47
  var useIsomorphicLayoutEffect = typeof window === "undefined" ? React3__namespace.useEffect : React3__namespace.useLayoutEffect;
48
48
 
49
+ // src/hooks/use-composed-refs.tsx
50
+ function useComposedRefs(...refs) {
51
+ return (node) => {
52
+ refs.forEach((ref) => {
53
+ if (!ref) return;
54
+ if (typeof ref === "function") {
55
+ ref(node);
56
+ } else {
57
+ ref.current = node;
58
+ }
59
+ });
60
+ };
61
+ }
62
+
63
+ exports.useComposedRefs = useComposedRefs;
49
64
  exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
50
65
  exports.useLazyRef = useLazyRef;
51
66
  exports.useValidationLog = useValidationLog;
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkEG374TED_cjs = require('../../chunk-EG374TED.cjs');
3
+ var chunkCP43WJCN_cjs = require('../../chunk-CP43WJCN.cjs');
4
4
  require('../../chunk-NU5UQPBX.cjs');
5
- require('../../chunk-D4QID7AI.cjs');
5
+ require('../../chunk-UJX74PFK.cjs');
6
+ require('../../chunk-KQ6QE7BT.cjs');
6
7
  require('../../chunk-A7SBXO2Y.cjs');
7
- require('../../chunk-EUH466AL.cjs');
8
8
  require('../../chunk-DGWBE2Y3.cjs');
9
- require('../../chunk-UJX74PFK.cjs');
9
+ require('../../chunk-EUH466AL.cjs');
10
+ require('../../chunk-XENOUBSI.cjs');
10
11
  require('../../chunk-XJZOANXX.cjs');
11
12
  require('../../chunk-GHV2TURY.cjs');
12
13
  require('../../chunk-3WSQRFUY.cjs');
@@ -19,8 +20,8 @@ require('../../chunk-CFJ44JVK.cjs');
19
20
  require('../../chunk-UIOBJSKZ.cjs');
20
21
  require('../../chunk-S3ANEJJ7.cjs');
21
22
  require('../../chunk-2WQJ36RD.cjs');
23
+ require('../../chunk-S2BCU6WG.cjs');
22
24
  require('../../chunk-TH44JYXB.cjs');
23
- require('../../chunk-XENOUBSI.cjs');
24
25
  require('../../chunk-ZVF7J4EI.cjs');
25
26
  require('../../chunk-2Y2ZCPNV.cjs');
26
27
  require('../../chunk-HCHVDUI6.cjs');
@@ -28,7 +29,7 @@ require('../../chunk-ULEEQ723.cjs');
28
29
  require('../../chunk-USIW3VT5.cjs');
29
30
  require('../../chunk-VK5EX3OG.cjs');
30
31
  require('../../chunk-CXHDWIGF.cjs');
31
- require('../../chunk-7EYMOUWG.cjs');
32
+ require('../../chunk-XIQUR62A.cjs');
32
33
  require('../../chunk-X3ZT3KGX.cjs');
33
34
  require('../../chunk-3GNVQFCK.cjs');
34
35
  require('../../chunk-TMXVL5CV.cjs');
@@ -39,5 +40,5 @@ require('../../chunk-H2BWO3SI.cjs');
39
40
 
40
41
  Object.defineProperty(exports, "Button", {
41
42
  enumerable: true,
42
- get: function () { return chunkEG374TED_cjs.Button; }
43
+ get: function () { return chunkCP43WJCN_cjs.Button; }
43
44
  });
@@ -1,10 +1,11 @@
1
- export { Button } from '../../chunk-JLKQ6WKK.js';
1
+ export { Button } from '../../chunk-QTYNFISP.js';
2
2
  import '../../chunk-OQCNPNPS.js';
3
- import '../../chunk-YSYZKK24.js';
3
+ import '../../chunk-M7NIRB3U.js';
4
+ import '../../chunk-WXZE35FK.js';
4
5
  import '../../chunk-U7XZJQ4O.js';
5
- import '../../chunk-WMGJCB7O.js';
6
6
  import '../../chunk-K5AURCK5.js';
7
- import '../../chunk-M7NIRB3U.js';
7
+ import '../../chunk-WMGJCB7O.js';
8
+ import '../../chunk-4TRADSTP.js';
8
9
  import '../../chunk-E5TYGWGE.js';
9
10
  import '../../chunk-DTSFPOLX.js';
10
11
  import '../../chunk-P5IUC7HJ.js';
@@ -17,8 +18,8 @@ import '../../chunk-KGGCA634.js';
17
18
  import '../../chunk-XJIUGEPN.js';
18
19
  import '../../chunk-I3RSTJP6.js';
19
20
  import '../../chunk-YUMKV5TH.js';
21
+ import '../../chunk-DL54DIMD.js';
20
22
  import '../../chunk-PBEZZMAB.js';
21
- import '../../chunk-4TRADSTP.js';
22
23
  import '../../chunk-U3QKV7I4.js';
23
24
  import '../../chunk-6BSR3O2J.js';
24
25
  import '../../chunk-5F2Y65JH.js';
@@ -26,7 +27,7 @@ import '../../chunk-3RK5PCIC.js';
26
27
  import '../../chunk-P4JIMFSL.js';
27
28
  import '../../chunk-BTSHACKG.js';
28
29
  import '../../chunk-HNRVLRMN.js';
29
- import '../../chunk-DFD2WUOU.js';
30
+ import '../../chunk-SB5UG7OC.js';
30
31
  import '../../chunk-B7RHEMZH.js';
31
32
  import '../../chunk-5MV54MWS.js';
32
33
  import '../../chunk-5MJPZUTO.js';
@@ -2,13 +2,14 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- var chunkEG374TED_cjs = require('../chunk-EG374TED.cjs');
5
+ var chunkCP43WJCN_cjs = require('../chunk-CP43WJCN.cjs');
6
6
  var chunkNU5UQPBX_cjs = require('../chunk-NU5UQPBX.cjs');
7
- var chunkD4QID7AI_cjs = require('../chunk-D4QID7AI.cjs');
7
+ var chunkUJX74PFK_cjs = require('../chunk-UJX74PFK.cjs');
8
+ var chunkKQ6QE7BT_cjs = require('../chunk-KQ6QE7BT.cjs');
8
9
  var chunkA7SBXO2Y_cjs = require('../chunk-A7SBXO2Y.cjs');
9
- var chunkEUH466AL_cjs = require('../chunk-EUH466AL.cjs');
10
10
  var chunkDGWBE2Y3_cjs = require('../chunk-DGWBE2Y3.cjs');
11
- var chunkUJX74PFK_cjs = require('../chunk-UJX74PFK.cjs');
11
+ var chunkEUH466AL_cjs = require('../chunk-EUH466AL.cjs');
12
+ var chunkXENOUBSI_cjs = require('../chunk-XENOUBSI.cjs');
12
13
  var chunkXJZOANXX_cjs = require('../chunk-XJZOANXX.cjs');
13
14
  var chunkGHV2TURY_cjs = require('../chunk-GHV2TURY.cjs');
14
15
  var chunk3WSQRFUY_cjs = require('../chunk-3WSQRFUY.cjs');
@@ -21,8 +22,8 @@ var chunkCFJ44JVK_cjs = require('../chunk-CFJ44JVK.cjs');
21
22
  var chunkUIOBJSKZ_cjs = require('../chunk-UIOBJSKZ.cjs');
22
23
  var chunkS3ANEJJ7_cjs = require('../chunk-S3ANEJJ7.cjs');
23
24
  var chunk2WQJ36RD_cjs = require('../chunk-2WQJ36RD.cjs');
25
+ var chunkS2BCU6WG_cjs = require('../chunk-S2BCU6WG.cjs');
24
26
  var chunkTH44JYXB_cjs = require('../chunk-TH44JYXB.cjs');
25
- var chunkXENOUBSI_cjs = require('../chunk-XENOUBSI.cjs');
26
27
  var chunkZVF7J4EI_cjs = require('../chunk-ZVF7J4EI.cjs');
27
28
  var chunk2Y2ZCPNV_cjs = require('../chunk-2Y2ZCPNV.cjs');
28
29
  var chunkHCHVDUI6_cjs = require('../chunk-HCHVDUI6.cjs');
@@ -30,7 +31,7 @@ var chunkULEEQ723_cjs = require('../chunk-ULEEQ723.cjs');
30
31
  var chunkUSIW3VT5_cjs = require('../chunk-USIW3VT5.cjs');
31
32
  var chunkVK5EX3OG_cjs = require('../chunk-VK5EX3OG.cjs');
32
33
  var chunkCXHDWIGF_cjs = require('../chunk-CXHDWIGF.cjs');
33
- require('../chunk-7EYMOUWG.cjs');
34
+ require('../chunk-XIQUR62A.cjs');
34
35
  var chunkX3ZT3KGX_cjs = require('../chunk-X3ZT3KGX.cjs');
35
36
  var chunk3GNVQFCK_cjs = require('../chunk-3GNVQFCK.cjs');
36
37
  var chunkTMXVL5CV_cjs = require('../chunk-TMXVL5CV.cjs');
@@ -41,131 +42,139 @@ require('../chunk-H2BWO3SI.cjs');
41
42
 
42
43
  Object.defineProperty(exports, "Button", {
43
44
  enumerable: true,
44
- get: function () { return chunkEG374TED_cjs.Button; }
45
+ get: function () { return chunkCP43WJCN_cjs.Button; }
45
46
  });
46
47
  Object.defineProperty(exports, "Stepper", {
47
48
  enumerable: true,
48
- get: function () { return chunkEG374TED_cjs.Stepper; }
49
+ get: function () { return chunkCP43WJCN_cjs.Stepper; }
49
50
  });
50
51
  Object.defineProperty(exports, "StepperActivationMode", {
51
52
  enumerable: true,
52
- get: function () { return chunkEG374TED_cjs.StepperActivationMode; }
53
+ get: function () { return chunkCP43WJCN_cjs.StepperActivationMode; }
53
54
  });
54
55
  Object.defineProperty(exports, "StepperContent", {
55
56
  enumerable: true,
56
- get: function () { return chunkEG374TED_cjs.StepperContent; }
57
+ get: function () { return chunkCP43WJCN_cjs.StepperContent; }
57
58
  });
58
59
  Object.defineProperty(exports, "StepperDataState", {
59
60
  enumerable: true,
60
- get: function () { return chunkEG374TED_cjs.StepperDataState; }
61
+ get: function () { return chunkCP43WJCN_cjs.StepperDataState; }
61
62
  });
62
63
  Object.defineProperty(exports, "StepperDescription", {
63
64
  enumerable: true,
64
- get: function () { return chunkEG374TED_cjs.StepperDescription; }
65
+ get: function () { return chunkCP43WJCN_cjs.StepperDescription; }
65
66
  });
66
67
  Object.defineProperty(exports, "StepperFocusIntent", {
67
68
  enumerable: true,
68
- get: function () { return chunkEG374TED_cjs.StepperFocusIntent; }
69
+ get: function () { return chunkCP43WJCN_cjs.StepperFocusIntent; }
69
70
  });
70
71
  Object.defineProperty(exports, "StepperIndicator", {
71
72
  enumerable: true,
72
- get: function () { return chunkEG374TED_cjs.StepperIndicator; }
73
+ get: function () { return chunkCP43WJCN_cjs.StepperIndicator; }
73
74
  });
74
75
  Object.defineProperty(exports, "StepperItem", {
75
76
  enumerable: true,
76
- get: function () { return chunkEG374TED_cjs.StepperItem; }
77
+ get: function () { return chunkCP43WJCN_cjs.StepperItem; }
77
78
  });
78
79
  Object.defineProperty(exports, "StepperNav", {
79
80
  enumerable: true,
80
- get: function () { return chunkEG374TED_cjs.StepperNav; }
81
+ get: function () { return chunkCP43WJCN_cjs.StepperNav; }
81
82
  });
82
83
  Object.defineProperty(exports, "StepperNavigationDirection", {
83
84
  enumerable: true,
84
- get: function () { return chunkEG374TED_cjs.StepperNavigationDirection; }
85
+ get: function () { return chunkCP43WJCN_cjs.StepperNavigationDirection; }
85
86
  });
86
87
  Object.defineProperty(exports, "StepperNextTrigger", {
87
88
  enumerable: true,
88
- get: function () { return chunkEG374TED_cjs.StepperNextTrigger; }
89
+ get: function () { return chunkCP43WJCN_cjs.StepperNextTrigger; }
89
90
  });
90
91
  Object.defineProperty(exports, "StepperOrientation", {
91
92
  enumerable: true,
92
- get: function () { return chunkEG374TED_cjs.StepperOrientation; }
93
+ get: function () { return chunkCP43WJCN_cjs.StepperOrientation; }
93
94
  });
94
95
  Object.defineProperty(exports, "StepperPanel", {
95
96
  enumerable: true,
96
- get: function () { return chunkEG374TED_cjs.StepperPanel; }
97
+ get: function () { return chunkCP43WJCN_cjs.StepperPanel; }
97
98
  });
98
99
  Object.defineProperty(exports, "StepperPrevTrigger", {
99
100
  enumerable: true,
100
- get: function () { return chunkEG374TED_cjs.StepperPrevTrigger; }
101
+ get: function () { return chunkCP43WJCN_cjs.StepperPrevTrigger; }
101
102
  });
102
103
  Object.defineProperty(exports, "StepperTitle", {
103
104
  enumerable: true,
104
- get: function () { return chunkEG374TED_cjs.StepperTitle; }
105
+ get: function () { return chunkCP43WJCN_cjs.StepperTitle; }
105
106
  });
106
107
  Object.defineProperty(exports, "StepperTrigger", {
107
108
  enumerable: true,
108
- get: function () { return chunkEG374TED_cjs.StepperTrigger; }
109
+ get: function () { return chunkCP43WJCN_cjs.StepperTrigger; }
109
110
  });
110
111
  Object.defineProperty(exports, "Toaster", {
111
112
  enumerable: true,
112
- get: function () { return chunkEG374TED_cjs.Toaster; }
113
+ get: function () { return chunkCP43WJCN_cjs.Toaster; }
113
114
  });
114
115
  Object.defineProperty(exports, "toast", {
115
116
  enumerable: true,
116
- get: function () { return chunkEG374TED_cjs.toast; }
117
+ get: function () { return chunkCP43WJCN_cjs.toast; }
117
118
  });
118
119
  Object.defineProperty(exports, "useStepperContext", {
119
120
  enumerable: true,
120
- get: function () { return chunkEG374TED_cjs.useStepperContext; }
121
+ get: function () { return chunkCP43WJCN_cjs.useStepperContext; }
121
122
  });
122
123
  Object.defineProperty(exports, "useStepperFocusContext", {
123
124
  enumerable: true,
124
- get: function () { return chunkEG374TED_cjs.useStepperFocusContext; }
125
+ get: function () { return chunkCP43WJCN_cjs.useStepperFocusContext; }
125
126
  });
126
127
  Object.defineProperty(exports, "useStepperItemContext", {
127
128
  enumerable: true,
128
- get: function () { return chunkEG374TED_cjs.useStepperItemContext; }
129
+ get: function () { return chunkCP43WJCN_cjs.useStepperItemContext; }
129
130
  });
130
131
  Object.defineProperty(exports, "Textarea", {
131
132
  enumerable: true,
132
133
  get: function () { return chunkNU5UQPBX_cjs.Textarea; }
133
134
  });
135
+ Object.defineProperty(exports, "ScrollArea", {
136
+ enumerable: true,
137
+ get: function () { return chunkUJX74PFK_cjs.ScrollArea; }
138
+ });
139
+ Object.defineProperty(exports, "ScrollBar", {
140
+ enumerable: true,
141
+ get: function () { return chunkUJX74PFK_cjs.ScrollBar; }
142
+ });
134
143
  Object.defineProperty(exports, "Timeline", {
135
144
  enumerable: true,
136
- get: function () { return chunkD4QID7AI_cjs.Timeline; }
145
+ get: function () { return chunkKQ6QE7BT_cjs.Timeline; }
137
146
  });
138
147
  Object.defineProperty(exports, "TimelineConnector", {
139
148
  enumerable: true,
140
- get: function () { return chunkD4QID7AI_cjs.TimelineConnector; }
149
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineConnector; }
141
150
  });
142
151
  Object.defineProperty(exports, "TimelineContent", {
143
152
  enumerable: true,
144
- get: function () { return chunkD4QID7AI_cjs.TimelineContent; }
153
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineContent; }
145
154
  });
146
155
  Object.defineProperty(exports, "TimelineDescription", {
147
156
  enumerable: true,
148
- get: function () { return chunkD4QID7AI_cjs.TimelineDescription; }
157
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineDescription; }
149
158
  });
150
159
  Object.defineProperty(exports, "TimelineDot", {
151
160
  enumerable: true,
152
- get: function () { return chunkD4QID7AI_cjs.TimelineDot; }
161
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineDot; }
153
162
  });
154
163
  Object.defineProperty(exports, "TimelineHeader", {
155
164
  enumerable: true,
156
- get: function () { return chunkD4QID7AI_cjs.TimelineHeader; }
165
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineHeader; }
157
166
  });
158
167
  Object.defineProperty(exports, "TimelineItem", {
159
168
  enumerable: true,
160
- get: function () { return chunkD4QID7AI_cjs.TimelineItem; }
169
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineItem; }
161
170
  });
162
171
  Object.defineProperty(exports, "TimelineTime", {
163
172
  enumerable: true,
164
- get: function () { return chunkD4QID7AI_cjs.TimelineTime; }
173
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineTime; }
165
174
  });
166
175
  Object.defineProperty(exports, "TimelineTitle", {
167
176
  enumerable: true,
168
- get: function () { return chunkD4QID7AI_cjs.TimelineTitle; }
177
+ get: function () { return chunkKQ6QE7BT_cjs.TimelineTitle; }
169
178
  });
170
179
  Object.defineProperty(exports, "Tooltip", {
171
180
  enumerable: true,
@@ -179,21 +188,21 @@ Object.defineProperty(exports, "TooltipTrigger", {
179
188
  enumerable: true,
180
189
  get: function () { return chunkA7SBXO2Y_cjs.TooltipTrigger; }
181
190
  });
182
- Object.defineProperty(exports, "TypingText", {
183
- enumerable: true,
184
- get: function () { return chunkEUH466AL_cjs.TypingText; }
185
- });
186
191
  Object.defineProperty(exports, "WordRotate", {
187
192
  enumerable: true,
188
193
  get: function () { return chunkDGWBE2Y3_cjs.WordRotate; }
189
194
  });
190
- Object.defineProperty(exports, "ScrollArea", {
195
+ Object.defineProperty(exports, "TypingText", {
191
196
  enumerable: true,
192
- get: function () { return chunkUJX74PFK_cjs.ScrollArea; }
197
+ get: function () { return chunkEUH466AL_cjs.TypingText; }
193
198
  });
194
- Object.defineProperty(exports, "ScrollBar", {
199
+ Object.defineProperty(exports, "RadioGroup", {
195
200
  enumerable: true,
196
- get: function () { return chunkUJX74PFK_cjs.ScrollBar; }
201
+ get: function () { return chunkXENOUBSI_cjs.RadioGroup; }
202
+ });
203
+ Object.defineProperty(exports, "RadioGroupItem", {
204
+ enumerable: true,
205
+ get: function () { return chunkXENOUBSI_cjs.RadioGroupItem; }
197
206
  });
198
207
  Object.defineProperty(exports, "Select", {
199
208
  enumerable: true,
@@ -383,17 +392,17 @@ Object.defineProperty(exports, "Marquee", {
383
392
  enumerable: true,
384
393
  get: function () { return chunk2WQJ36RD_cjs.Marquee; }
385
394
  });
386
- Object.defineProperty(exports, "Progress", {
395
+ Object.defineProperty(exports, "Masonry", {
387
396
  enumerable: true,
388
- get: function () { return chunkTH44JYXB_cjs.Progress; }
397
+ get: function () { return chunkS2BCU6WG_cjs.Masonry; }
389
398
  });
390
- Object.defineProperty(exports, "RadioGroup", {
399
+ Object.defineProperty(exports, "MasonryItem", {
391
400
  enumerable: true,
392
- get: function () { return chunkXENOUBSI_cjs.RadioGroup; }
401
+ get: function () { return chunkS2BCU6WG_cjs.MasonryItem; }
393
402
  });
394
- Object.defineProperty(exports, "RadioGroupItem", {
403
+ Object.defineProperty(exports, "Progress", {
395
404
  enumerable: true,
396
- get: function () { return chunkXENOUBSI_cjs.RadioGroupItem; }
405
+ get: function () { return chunkTH44JYXB_cjs.Progress; }
397
406
  });
398
407
  Object.defineProperty(exports, "Badge", {
399
408
  enumerable: true,
@@ -32,6 +32,7 @@ export { Accordion, AccordionContent, AccordionContentProps, AccordionItem, Acco
32
32
  export { CountingNumber, CountingNumberProps } from './counting-number/index.cjs';
33
33
  export { TypingText, TypingTextAnimationVariant, TypingTextProps } from './typing-text/index.cjs';
34
34
  export { WordRotate, WordRotateAnimationStyle, WordRotateProps } from './word-rotate/index.cjs';
35
+ export { ItemElement, Masonry, MasonryCache, MasonryCacheConstructor, MasonryCacheKey, MasonryElement, MasonryIntervalTree, MasonryItem, MasonryItemElement, MasonryItemProps, MasonryListNode, MasonryPositioner, MasonryPositionerItem, MasonryProps, MasonryTree, MasonryTreeNode, NodeColor, NodeOperation } from './masonry/index.cjs';
35
36
  export { toast } from 'sonner';
36
37
  import 'react';
37
38
  import 'radix-ui';
@@ -32,6 +32,7 @@ export { Accordion, AccordionContent, AccordionContentProps, AccordionItem, Acco
32
32
  export { CountingNumber, CountingNumberProps } from './counting-number/index.js';
33
33
  export { TypingText, TypingTextAnimationVariant, TypingTextProps } from './typing-text/index.js';
34
34
  export { WordRotate, WordRotateAnimationStyle, WordRotateProps } from './word-rotate/index.js';
35
+ export { ItemElement, Masonry, MasonryCache, MasonryCacheConstructor, MasonryCacheKey, MasonryElement, MasonryIntervalTree, MasonryItem, MasonryItemElement, MasonryItemProps, MasonryListNode, MasonryPositioner, MasonryPositionerItem, MasonryProps, MasonryTree, MasonryTreeNode, NodeColor, NodeOperation } from './masonry/index.js';
35
36
  export { toast } from 'sonner';
36
37
  import 'react';
37
38
  import 'radix-ui';
@@ -1,12 +1,13 @@
1
1
  "use client";
2
2
 
3
- export { Button, Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, Toaster, toast, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../chunk-JLKQ6WKK.js';
3
+ export { Button, Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, Toaster, toast, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../chunk-QTYNFISP.js';
4
4
  export { Textarea } from '../chunk-OQCNPNPS.js';
5
- export { Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineDot, TimelineHeader, TimelineItem, TimelineTime, TimelineTitle } from '../chunk-YSYZKK24.js';
5
+ export { ScrollArea, ScrollBar } from '../chunk-M7NIRB3U.js';
6
+ export { Timeline, TimelineConnector, TimelineContent, TimelineDescription, TimelineDot, TimelineHeader, TimelineItem, TimelineTime, TimelineTitle } from '../chunk-WXZE35FK.js';
6
7
  export { Tooltip, TooltipContent, TooltipTrigger } from '../chunk-U7XZJQ4O.js';
7
- export { TypingText } from '../chunk-WMGJCB7O.js';
8
8
  export { WordRotate } from '../chunk-K5AURCK5.js';
9
- export { ScrollArea, ScrollBar } from '../chunk-M7NIRB3U.js';
9
+ export { TypingText } from '../chunk-WMGJCB7O.js';
10
+ export { RadioGroup, RadioGroupItem } from '../chunk-4TRADSTP.js';
10
11
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator } from '../chunk-E5TYGWGE.js';
11
12
  export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '../chunk-DTSFPOLX.js';
12
13
  export { Spinner } from '../chunk-P5IUC7HJ.js';
@@ -19,8 +20,8 @@ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup,
19
20
  export { Separator } from '../chunk-XJIUGEPN.js';
20
21
  export { Label } from '../chunk-I3RSTJP6.js';
21
22
  export { Marquee } from '../chunk-YUMKV5TH.js';
23
+ export { Masonry, MasonryItem } from '../chunk-DL54DIMD.js';
22
24
  export { Progress } from '../chunk-PBEZZMAB.js';
23
- export { RadioGroup, RadioGroupItem } from '../chunk-4TRADSTP.js';
24
25
  export { Badge, BadgeButton, BadgeDot } from '../chunk-U3QKV7I4.js';
25
26
  export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '../chunk-6BSR3O2J.js';
26
27
  export { Checkbox } from '../chunk-5F2Y65JH.js';
@@ -28,7 +29,7 @@ export { ColorSwatch } from '../chunk-3RK5PCIC.js';
28
29
  export { CountingNumber } from '../chunk-P4JIMFSL.js';
29
30
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../chunk-BTSHACKG.js';
30
31
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from '../chunk-HNRVLRMN.js';
31
- import '../chunk-DFD2WUOU.js';
32
+ import '../chunk-SB5UG7OC.js';
32
33
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '../chunk-B7RHEMZH.js';
33
34
  export { Alert, AlertDescription, AlertTitle } from '../chunk-5MV54MWS.js';
34
35
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '../chunk-5MJPZUTO.js';
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkS2BCU6WG_cjs = require('../../chunk-S2BCU6WG.cjs');
4
+ require('../../chunk-XIQUR62A.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Masonry", {
9
+ enumerable: true,
10
+ get: function () { return chunkS2BCU6WG_cjs.Masonry; }
11
+ });
12
+ Object.defineProperty(exports, "MasonryItem", {
13
+ enumerable: true,
14
+ get: function () { return chunkS2BCU6WG_cjs.MasonryItem; }
15
+ });
@@ -0,0 +1,181 @@
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 };