@vkzstudio/muza-ui 1.0.45 → 1.0.46
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.
- package/dist/components/Accordion/Accordion.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +63 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +67 -0
- package/dist/components/Card/Card.stories.d.ts +13 -0
- package/dist/components/Card/Card.stories.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +140 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.js +241 -0
- package/dist/components/Carousel/Carousel.stories.d.ts +13 -0
- package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/Carousel/index.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/components/EdgeButton/EdgeButton.stories.d.ts.map +1 -1
- package/dist/components/Flex/Flex.d.ts +372 -1
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +61 -63
- package/dist/components/Flex/Flex.stories.d.ts.map +1 -1
- package/dist/components/Icons/Icons.stories.d.ts.map +1 -1
- package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
- package/dist/components/MuzaUIProvider/MuzaUIProvider.stories.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/components/Progress/Progress.d.ts +49 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/Progress.js +64 -0
- package/dist/components/Progress/Progress.stories.d.ts +13 -0
- package/dist/components/Progress/Progress.stories.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.d.ts +89 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/Sheet.js +189 -0
- package/dist/components/Sheet/Sheet.stories.d.ts +20 -0
- package/dist/components/Sheet/Sheet.stories.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +2 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +65 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/Slider.js +134 -0
- package/dist/components/Slider/Slider.stories.d.ts +12 -0
- package/dist/components/Slider/Slider.stories.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
- package/dist/components/Typography/Typography.stories.d.ts.map +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/globals.css +1 -0
- package/dist/index.js +310 -277
- package/dist/muza-ui.css +1 -1
- package/dist/styles/primitives.css +5 -1
- package/dist/styles/token-colors.css +175 -27
- package/dist/styles/token-sizes.css +594 -257
- package/dist/styles/typography.css +36 -7
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +17 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +17 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +19 -2
- package/dist/translations/types.d.ts +42 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/cn.js +8 -2
- package/package.json +6 -3
|
@@ -1,6 +1,377 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { SpacingProps } from '../../utils/spacing';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Reusable layout-variant block — the direction/wrap/justify/align/flex
|
|
6
|
+
* variants plus all spacing variants. Exposed so other cva-based components
|
|
7
|
+
* (e.g. Card) can compose Flex's full layout API into a single cva call
|
|
8
|
+
* without duplicating definitions.
|
|
9
|
+
*/
|
|
10
|
+
export declare const flexLayoutVariants: {
|
|
11
|
+
gap: {
|
|
12
|
+
none: string;
|
|
13
|
+
'3xs': string;
|
|
14
|
+
'2xs': string;
|
|
15
|
+
xs: string;
|
|
16
|
+
sm: string;
|
|
17
|
+
md: string;
|
|
18
|
+
lg: string;
|
|
19
|
+
xl: string;
|
|
20
|
+
'2xl': string;
|
|
21
|
+
'3xl': string;
|
|
22
|
+
'4xl': string;
|
|
23
|
+
'5xl': string;
|
|
24
|
+
'6xl': string;
|
|
25
|
+
'7xl': string;
|
|
26
|
+
'8xl': string;
|
|
27
|
+
'9xl': string;
|
|
28
|
+
'10xl': string;
|
|
29
|
+
};
|
|
30
|
+
gapX: {
|
|
31
|
+
none: string;
|
|
32
|
+
'3xs': string;
|
|
33
|
+
'2xs': string;
|
|
34
|
+
xs: string;
|
|
35
|
+
sm: string;
|
|
36
|
+
md: string;
|
|
37
|
+
lg: string;
|
|
38
|
+
xl: string;
|
|
39
|
+
'2xl': string;
|
|
40
|
+
'3xl': string;
|
|
41
|
+
'4xl': string;
|
|
42
|
+
'5xl': string;
|
|
43
|
+
'6xl': string;
|
|
44
|
+
'7xl': string;
|
|
45
|
+
'8xl': string;
|
|
46
|
+
'9xl': string;
|
|
47
|
+
'10xl': string;
|
|
48
|
+
};
|
|
49
|
+
gapY: {
|
|
50
|
+
none: string;
|
|
51
|
+
'3xs': string;
|
|
52
|
+
'2xs': string;
|
|
53
|
+
xs: string;
|
|
54
|
+
sm: string;
|
|
55
|
+
md: string;
|
|
56
|
+
lg: string;
|
|
57
|
+
xl: string;
|
|
58
|
+
'2xl': string;
|
|
59
|
+
'3xl': string;
|
|
60
|
+
'4xl': string;
|
|
61
|
+
'5xl': string;
|
|
62
|
+
'6xl': string;
|
|
63
|
+
'7xl': string;
|
|
64
|
+
'8xl': string;
|
|
65
|
+
'9xl': string;
|
|
66
|
+
'10xl': string;
|
|
67
|
+
};
|
|
68
|
+
p: {
|
|
69
|
+
none: string;
|
|
70
|
+
'3xs': string;
|
|
71
|
+
'2xs': string;
|
|
72
|
+
xs: string;
|
|
73
|
+
sm: string;
|
|
74
|
+
md: string;
|
|
75
|
+
lg: string;
|
|
76
|
+
xl: string;
|
|
77
|
+
'2xl': string;
|
|
78
|
+
'3xl': string;
|
|
79
|
+
'4xl': string;
|
|
80
|
+
'5xl': string;
|
|
81
|
+
'6xl': string;
|
|
82
|
+
'7xl': string;
|
|
83
|
+
'8xl': string;
|
|
84
|
+
'9xl': string;
|
|
85
|
+
'10xl': string;
|
|
86
|
+
};
|
|
87
|
+
px: {
|
|
88
|
+
none: string;
|
|
89
|
+
'3xs': string;
|
|
90
|
+
'2xs': string;
|
|
91
|
+
xs: string;
|
|
92
|
+
sm: string;
|
|
93
|
+
md: string;
|
|
94
|
+
lg: string;
|
|
95
|
+
xl: string;
|
|
96
|
+
'2xl': string;
|
|
97
|
+
'3xl': string;
|
|
98
|
+
'4xl': string;
|
|
99
|
+
'5xl': string;
|
|
100
|
+
'6xl': string;
|
|
101
|
+
'7xl': string;
|
|
102
|
+
'8xl': string;
|
|
103
|
+
'9xl': string;
|
|
104
|
+
'10xl': string;
|
|
105
|
+
};
|
|
106
|
+
py: {
|
|
107
|
+
none: string;
|
|
108
|
+
'3xs': string;
|
|
109
|
+
'2xs': string;
|
|
110
|
+
xs: string;
|
|
111
|
+
sm: string;
|
|
112
|
+
md: string;
|
|
113
|
+
lg: string;
|
|
114
|
+
xl: string;
|
|
115
|
+
'2xl': string;
|
|
116
|
+
'3xl': string;
|
|
117
|
+
'4xl': string;
|
|
118
|
+
'5xl': string;
|
|
119
|
+
'6xl': string;
|
|
120
|
+
'7xl': string;
|
|
121
|
+
'8xl': string;
|
|
122
|
+
'9xl': string;
|
|
123
|
+
'10xl': string;
|
|
124
|
+
};
|
|
125
|
+
pt: {
|
|
126
|
+
none: string;
|
|
127
|
+
'3xs': string;
|
|
128
|
+
'2xs': string;
|
|
129
|
+
xs: string;
|
|
130
|
+
sm: string;
|
|
131
|
+
md: string;
|
|
132
|
+
lg: string;
|
|
133
|
+
xl: string;
|
|
134
|
+
'2xl': string;
|
|
135
|
+
'3xl': string;
|
|
136
|
+
'4xl': string;
|
|
137
|
+
'5xl': string;
|
|
138
|
+
'6xl': string;
|
|
139
|
+
'7xl': string;
|
|
140
|
+
'8xl': string;
|
|
141
|
+
'9xl': string;
|
|
142
|
+
'10xl': string;
|
|
143
|
+
};
|
|
144
|
+
pr: {
|
|
145
|
+
none: string;
|
|
146
|
+
'3xs': string;
|
|
147
|
+
'2xs': string;
|
|
148
|
+
xs: string;
|
|
149
|
+
sm: string;
|
|
150
|
+
md: string;
|
|
151
|
+
lg: string;
|
|
152
|
+
xl: string;
|
|
153
|
+
'2xl': string;
|
|
154
|
+
'3xl': string;
|
|
155
|
+
'4xl': string;
|
|
156
|
+
'5xl': string;
|
|
157
|
+
'6xl': string;
|
|
158
|
+
'7xl': string;
|
|
159
|
+
'8xl': string;
|
|
160
|
+
'9xl': string;
|
|
161
|
+
'10xl': string;
|
|
162
|
+
};
|
|
163
|
+
pb: {
|
|
164
|
+
none: string;
|
|
165
|
+
'3xs': string;
|
|
166
|
+
'2xs': string;
|
|
167
|
+
xs: string;
|
|
168
|
+
sm: string;
|
|
169
|
+
md: string;
|
|
170
|
+
lg: string;
|
|
171
|
+
xl: string;
|
|
172
|
+
'2xl': string;
|
|
173
|
+
'3xl': string;
|
|
174
|
+
'4xl': string;
|
|
175
|
+
'5xl': string;
|
|
176
|
+
'6xl': string;
|
|
177
|
+
'7xl': string;
|
|
178
|
+
'8xl': string;
|
|
179
|
+
'9xl': string;
|
|
180
|
+
'10xl': string;
|
|
181
|
+
};
|
|
182
|
+
pl: {
|
|
183
|
+
none: string;
|
|
184
|
+
'3xs': string;
|
|
185
|
+
'2xs': string;
|
|
186
|
+
xs: string;
|
|
187
|
+
sm: string;
|
|
188
|
+
md: string;
|
|
189
|
+
lg: string;
|
|
190
|
+
xl: string;
|
|
191
|
+
'2xl': string;
|
|
192
|
+
'3xl': string;
|
|
193
|
+
'4xl': string;
|
|
194
|
+
'5xl': string;
|
|
195
|
+
'6xl': string;
|
|
196
|
+
'7xl': string;
|
|
197
|
+
'8xl': string;
|
|
198
|
+
'9xl': string;
|
|
199
|
+
'10xl': string;
|
|
200
|
+
};
|
|
201
|
+
m: {
|
|
202
|
+
none: string;
|
|
203
|
+
'3xs': string;
|
|
204
|
+
'2xs': string;
|
|
205
|
+
xs: string;
|
|
206
|
+
sm: string;
|
|
207
|
+
md: string;
|
|
208
|
+
lg: string;
|
|
209
|
+
xl: string;
|
|
210
|
+
'2xl': string;
|
|
211
|
+
'3xl': string;
|
|
212
|
+
'4xl': string;
|
|
213
|
+
'5xl': string;
|
|
214
|
+
'6xl': string;
|
|
215
|
+
'7xl': string;
|
|
216
|
+
'8xl': string;
|
|
217
|
+
'9xl': string;
|
|
218
|
+
'10xl': string;
|
|
219
|
+
};
|
|
220
|
+
mx: {
|
|
221
|
+
none: string;
|
|
222
|
+
'3xs': string;
|
|
223
|
+
'2xs': string;
|
|
224
|
+
xs: string;
|
|
225
|
+
sm: string;
|
|
226
|
+
md: string;
|
|
227
|
+
lg: string;
|
|
228
|
+
xl: string;
|
|
229
|
+
'2xl': string;
|
|
230
|
+
'3xl': string;
|
|
231
|
+
'4xl': string;
|
|
232
|
+
'5xl': string;
|
|
233
|
+
'6xl': string;
|
|
234
|
+
'7xl': string;
|
|
235
|
+
'8xl': string;
|
|
236
|
+
'9xl': string;
|
|
237
|
+
'10xl': string;
|
|
238
|
+
};
|
|
239
|
+
my: {
|
|
240
|
+
none: string;
|
|
241
|
+
'3xs': string;
|
|
242
|
+
'2xs': string;
|
|
243
|
+
xs: string;
|
|
244
|
+
sm: string;
|
|
245
|
+
md: string;
|
|
246
|
+
lg: string;
|
|
247
|
+
xl: string;
|
|
248
|
+
'2xl': string;
|
|
249
|
+
'3xl': string;
|
|
250
|
+
'4xl': string;
|
|
251
|
+
'5xl': string;
|
|
252
|
+
'6xl': string;
|
|
253
|
+
'7xl': string;
|
|
254
|
+
'8xl': string;
|
|
255
|
+
'9xl': string;
|
|
256
|
+
'10xl': string;
|
|
257
|
+
};
|
|
258
|
+
mt: {
|
|
259
|
+
none: string;
|
|
260
|
+
'3xs': string;
|
|
261
|
+
'2xs': string;
|
|
262
|
+
xs: string;
|
|
263
|
+
sm: string;
|
|
264
|
+
md: string;
|
|
265
|
+
lg: string;
|
|
266
|
+
xl: string;
|
|
267
|
+
'2xl': string;
|
|
268
|
+
'3xl': string;
|
|
269
|
+
'4xl': string;
|
|
270
|
+
'5xl': string;
|
|
271
|
+
'6xl': string;
|
|
272
|
+
'7xl': string;
|
|
273
|
+
'8xl': string;
|
|
274
|
+
'9xl': string;
|
|
275
|
+
'10xl': string;
|
|
276
|
+
};
|
|
277
|
+
mr: {
|
|
278
|
+
none: string;
|
|
279
|
+
'3xs': string;
|
|
280
|
+
'2xs': string;
|
|
281
|
+
xs: string;
|
|
282
|
+
sm: string;
|
|
283
|
+
md: string;
|
|
284
|
+
lg: string;
|
|
285
|
+
xl: string;
|
|
286
|
+
'2xl': string;
|
|
287
|
+
'3xl': string;
|
|
288
|
+
'4xl': string;
|
|
289
|
+
'5xl': string;
|
|
290
|
+
'6xl': string;
|
|
291
|
+
'7xl': string;
|
|
292
|
+
'8xl': string;
|
|
293
|
+
'9xl': string;
|
|
294
|
+
'10xl': string;
|
|
295
|
+
};
|
|
296
|
+
mb: {
|
|
297
|
+
none: string;
|
|
298
|
+
'3xs': string;
|
|
299
|
+
'2xs': string;
|
|
300
|
+
xs: string;
|
|
301
|
+
sm: string;
|
|
302
|
+
md: string;
|
|
303
|
+
lg: string;
|
|
304
|
+
xl: string;
|
|
305
|
+
'2xl': string;
|
|
306
|
+
'3xl': string;
|
|
307
|
+
'4xl': string;
|
|
308
|
+
'5xl': string;
|
|
309
|
+
'6xl': string;
|
|
310
|
+
'7xl': string;
|
|
311
|
+
'8xl': string;
|
|
312
|
+
'9xl': string;
|
|
313
|
+
'10xl': string;
|
|
314
|
+
};
|
|
315
|
+
ml: {
|
|
316
|
+
none: string;
|
|
317
|
+
'3xs': string;
|
|
318
|
+
'2xs': string;
|
|
319
|
+
xs: string;
|
|
320
|
+
sm: string;
|
|
321
|
+
md: string;
|
|
322
|
+
lg: string;
|
|
323
|
+
xl: string;
|
|
324
|
+
'2xl': string;
|
|
325
|
+
'3xl': string;
|
|
326
|
+
'4xl': string;
|
|
327
|
+
'5xl': string;
|
|
328
|
+
'6xl': string;
|
|
329
|
+
'7xl': string;
|
|
330
|
+
'8xl': string;
|
|
331
|
+
'9xl': string;
|
|
332
|
+
'10xl': string;
|
|
333
|
+
};
|
|
334
|
+
direction: {
|
|
335
|
+
row: string;
|
|
336
|
+
column: string;
|
|
337
|
+
'row-reverse': string;
|
|
338
|
+
'column-reverse': string;
|
|
339
|
+
};
|
|
340
|
+
wrap: {
|
|
341
|
+
nowrap: string;
|
|
342
|
+
wrap: string;
|
|
343
|
+
'wrap-reverse': string;
|
|
344
|
+
};
|
|
345
|
+
justify: {
|
|
346
|
+
start: string;
|
|
347
|
+
end: string;
|
|
348
|
+
center: string;
|
|
349
|
+
between: string;
|
|
350
|
+
around: string;
|
|
351
|
+
evenly: string;
|
|
352
|
+
stretch: string;
|
|
353
|
+
};
|
|
354
|
+
align: {
|
|
355
|
+
start: string;
|
|
356
|
+
end: string;
|
|
357
|
+
center: string;
|
|
358
|
+
baseline: string;
|
|
359
|
+
stretch: string;
|
|
360
|
+
};
|
|
361
|
+
flex: {
|
|
362
|
+
1: string;
|
|
363
|
+
auto: string;
|
|
364
|
+
initial: string;
|
|
365
|
+
none: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
/** Default values for `flexLayoutVariants`, mirrored on the Flex component. */
|
|
369
|
+
export declare const flexLayoutDefaults: {
|
|
370
|
+
readonly direction: "row";
|
|
371
|
+
readonly wrap: "nowrap";
|
|
372
|
+
readonly justify: "start";
|
|
373
|
+
readonly align: "stretch";
|
|
374
|
+
};
|
|
4
375
|
declare const flexVariants: (props?: ({
|
|
5
376
|
gap?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
|
|
6
377
|
gapX?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
|
|
@@ -21,7 +392,7 @@ declare const flexVariants: (props?: ({
|
|
|
21
392
|
ml?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
|
|
22
393
|
direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
|
|
23
394
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
24
|
-
justify?: "end" | "start" | "center" | "
|
|
395
|
+
justify?: "end" | "start" | "center" | "stretch" | "between" | "around" | "evenly" | null | undefined;
|
|
25
396
|
align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
|
|
26
397
|
flex?: 1 | "none" | "auto" | "initial" | null | undefined;
|
|
27
398
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names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MAAM,IAAI,+EA4CT,CAAA;AAID,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,55 +1,51 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { cva as
|
|
3
|
-
import {
|
|
2
|
+
import { cva as d } from "class-variance-authority";
|
|
3
|
+
import { spacingVariantDefinitions as v, getSpacingVariants as j } from "../../utils/spacing.js";
|
|
4
4
|
import { cn as g } from "../../utils/cn.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
align: "stretch"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
), V = e.forwardRef(
|
|
5
|
+
const V = {
|
|
6
|
+
direction: {
|
|
7
|
+
row: "flex-row",
|
|
8
|
+
column: "flex-col",
|
|
9
|
+
"row-reverse": "flex-row-reverse",
|
|
10
|
+
"column-reverse": "flex-col-reverse"
|
|
11
|
+
},
|
|
12
|
+
wrap: {
|
|
13
|
+
nowrap: "flex-nowrap",
|
|
14
|
+
wrap: "flex-wrap",
|
|
15
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
16
|
+
},
|
|
17
|
+
justify: {
|
|
18
|
+
start: "justify-start",
|
|
19
|
+
end: "justify-end",
|
|
20
|
+
center: "justify-center",
|
|
21
|
+
between: "justify-between",
|
|
22
|
+
around: "justify-around",
|
|
23
|
+
evenly: "justify-evenly",
|
|
24
|
+
stretch: "justify-stretch"
|
|
25
|
+
},
|
|
26
|
+
align: {
|
|
27
|
+
start: "items-start",
|
|
28
|
+
end: "items-end",
|
|
29
|
+
center: "items-center",
|
|
30
|
+
baseline: "items-baseline",
|
|
31
|
+
stretch: "items-stretch"
|
|
32
|
+
},
|
|
33
|
+
flex: {
|
|
34
|
+
1: "flex-1",
|
|
35
|
+
auto: "flex-auto",
|
|
36
|
+
initial: "flex-initial",
|
|
37
|
+
none: "flex-none"
|
|
38
|
+
},
|
|
39
|
+
...v
|
|
40
|
+
}, h = {
|
|
41
|
+
direction: "row",
|
|
42
|
+
wrap: "nowrap",
|
|
43
|
+
justify: "start",
|
|
44
|
+
align: "stretch"
|
|
45
|
+
}, b = d("flex", {
|
|
46
|
+
variants: V,
|
|
47
|
+
defaultVariants: h
|
|
48
|
+
}), D = e.forwardRef(
|
|
53
49
|
({
|
|
54
50
|
children: t,
|
|
55
51
|
className: r,
|
|
@@ -61,35 +57,37 @@ const h = v(
|
|
|
61
57
|
flex: l,
|
|
62
58
|
gap: f,
|
|
63
59
|
padding: c,
|
|
64
|
-
margin:
|
|
65
|
-
component:
|
|
66
|
-
...
|
|
67
|
-
},
|
|
68
|
-
const
|
|
60
|
+
margin: u,
|
|
61
|
+
component: m = "div",
|
|
62
|
+
...p
|
|
63
|
+
}, x) => {
|
|
64
|
+
const w = m ?? "div", y = j({ gap: f, padding: c, margin: u });
|
|
69
65
|
return e.createElement(
|
|
70
|
-
|
|
66
|
+
w,
|
|
71
67
|
{
|
|
72
|
-
ref:
|
|
68
|
+
ref: x,
|
|
73
69
|
className: g(
|
|
74
|
-
|
|
70
|
+
b({
|
|
75
71
|
direction: n,
|
|
76
72
|
wrap: s,
|
|
77
73
|
justify: i,
|
|
78
74
|
align: o,
|
|
79
75
|
flex: l,
|
|
80
|
-
...
|
|
76
|
+
...y
|
|
81
77
|
}),
|
|
82
78
|
r
|
|
83
79
|
),
|
|
84
80
|
style: a,
|
|
85
|
-
...
|
|
81
|
+
...p
|
|
86
82
|
},
|
|
87
83
|
t
|
|
88
84
|
);
|
|
89
85
|
}
|
|
90
86
|
);
|
|
91
|
-
|
|
87
|
+
D.displayName = "Flex";
|
|
92
88
|
export {
|
|
93
|
-
|
|
94
|
-
h as
|
|
89
|
+
D as Flex,
|
|
90
|
+
h as flexLayoutDefaults,
|
|
91
|
+
V as flexLayoutVariants,
|
|
92
|
+
b as flexVariants
|
|
95
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"Flex.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAkB7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAgI3B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAGlC,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,KAoB1B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAoB3B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAmB5B,CAAA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,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAyCnB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KA4BpB,CAAA;
|
|
1
|
+
{"version":3,"file":"Icons.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/Icons.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI,kDAAuB,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CA8C3B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAyCnB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KA4BpB,CAAA;AAuBD,eAAO,MAAM,gBAAgB,EAAE,KA8C9B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAcxB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAsBjC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogosAndBadges.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/LogosAndBadges.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAI3D,QAAA,MAAM,IAAI,EAAE,IAeX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"LogosAndBadges.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/LogosAndBadges.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAI3D,QAAA,MAAM,IAAI,EAAE,IAeX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAyBrB,eAAO,MAAM,KAAK,EAAE,KAoBnB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAyBpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAqB3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CA4HlC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"MultiSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAqB3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CA4HlC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAuBlC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAmB9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAkBvB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA4DtB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAoBzB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAqB5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAgBxB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAuBzB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KA2C5B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAoDhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkCjC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuzaUIProvider.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MuzaUIProvider/MuzaUIProvider.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAkKrC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAA;AAE5C,eAAO,MAAM,OAAO,EAAE,KAoCrB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAsBhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAwBjC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,KA+CtC,CAAA;
|
|
1
|
+
{"version":3,"file":"MuzaUIProvider.stories.d.ts","sourceRoot":"","sources":["../../../src/components/MuzaUIProvider/MuzaUIProvider.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAkKrC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAA;AAE5C,eAAO,MAAM,OAAO,EAAE,KAoCrB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAsBhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAwBjC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,KA+CtC,CAAA;AAuID,eAAO,MAAM,iBAAiB,EAAE,KAmC/B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAwD7B,CAAA"}
|
|
@@ -2,9 +2,9 @@ import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import * as X from "react";
|
|
3
3
|
import { useState as S, useCallback as b, useEffect as Y } from "react";
|
|
4
4
|
import { useMuzaTranslations as C } from "../../translations/TranslationContext.js";
|
|
5
|
-
import { ButtonArrow as z } from "../ButtonArrow/ButtonArrow.js";
|
|
6
5
|
import { Select as aa } from "../Select/Select.js";
|
|
7
6
|
import { Flex as p } from "../Flex/Flex.js";
|
|
7
|
+
import { ButtonArrow as z } from "../ButtonArrow/ButtonArrow.js";
|
|
8
8
|
import { Input as ea } from "../Input/Input.js";
|
|
9
9
|
import { Typography as v } from "../Typography/Typography.js";
|
|
10
10
|
const ta = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAiFjC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AAExC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgB1B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAA;
|
|
1
|
+
{"version":3,"file":"Pagination.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAiFjC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AAExC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgB1B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAA;AAsBD,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
4
|
+
/**
|
|
5
|
+
* CVA variants for the Progress root track.
|
|
6
|
+
* Exposes the `size` variant (`sm` | `md` | `lg`) that controls bar height.
|
|
7
|
+
*/
|
|
8
|
+
export declare const progressVariants: (props?: ({
|
|
9
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Props for the Progress component.
|
|
13
|
+
* Renders a horizontal progress bar built on
|
|
14
|
+
* [Radix Progress](https://www.radix-ui.com/primitives/docs/components/progress).
|
|
15
|
+
*/
|
|
16
|
+
export interface ProgressProps extends ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, VariantProps<typeof progressVariants> {
|
|
17
|
+
/**
|
|
18
|
+
* Current progress value. Numbers are clamped to the `[0, max]` range.
|
|
19
|
+
* Pass `null` (or omit) for the indeterminate state — the indicator
|
|
20
|
+
* collapses to zero width and Radix exposes `data-state="indeterminate"`
|
|
21
|
+
* for custom styling.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <Progress value={42} /> // 42% complete
|
|
25
|
+
* <Progress value={null} /> // indeterminate
|
|
26
|
+
* <Progress value={120} max={200} /> // 60% complete with custom max
|
|
27
|
+
*/
|
|
28
|
+
value?: number | null;
|
|
29
|
+
/** Maximum value the bar can reach. @default 100 */
|
|
30
|
+
max?: number;
|
|
31
|
+
/** Controls bar height. @default 'md' */
|
|
32
|
+
size?: 'sm' | 'md' | 'lg';
|
|
33
|
+
/**
|
|
34
|
+
* Sets the accessible label announced by screen readers.
|
|
35
|
+
* Falls back to `translations.progress.ariaLabel` (English: `"Progress"`).
|
|
36
|
+
*/
|
|
37
|
+
ariaLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Applies non-interactive disabled styling. Sets `data-disabled` and
|
|
40
|
+
* `aria-disabled` on the root so track + indicator pick up the
|
|
41
|
+
* `data-[disabled]:` Tailwind variants.
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
}
|
|
47
|
+
declare const Progress: import('react').ForwardRefExoticComponent<ProgressProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
48
|
+
export { Progress };
|
|
49
|
+
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAG9B,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAIjE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;8EAgB5B,CAAA;AAQD;;;;GAIG;AACH,MAAM,WAAW,aACf,SAAQ,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,oDAAoD;IACpD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,QAAQ,0GAwCb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|