@skeletonlabs/skeleton-react 5.0.1 → 5.0.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.
- package/dist/index.css +1 -1
- package/dist/index.d.mts +321 -1041
- package/dist/index.mjs +618 -981
- package/package.json +40 -40
package/dist/index.mjs
CHANGED
|
@@ -31,34 +31,30 @@ import { connect as connect$24, machine as machine$24, splitItemProps as splitIt
|
|
|
31
31
|
import { connect as connect$25, machine as machine$25, splitProps as splitProps$24 } from "@zag-js/tooltip";
|
|
32
32
|
import { collection as createTreeViewCollection, connect as connect$26, machine as machine$26, splitProps as splitProps$25 } from "@zag-js/tree-view";
|
|
33
33
|
import { ListCollection } from "@zag-js/collection";
|
|
34
|
-
|
|
34
|
+
// src/internal/create-context.ts
|
|
35
35
|
function createContext$1(defaultValue) {
|
|
36
36
|
return createContext(defaultValue);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
//#region src/components/accordion/modules/item-context.ts
|
|
38
|
+
// src/components/accordion/modules/item-context.ts
|
|
40
39
|
const AccordionItemContext = createContext$1();
|
|
41
|
-
|
|
42
|
-
//#region src/components/locale-provider/modules/root-context.ts
|
|
40
|
+
// src/components/locale-provider/modules/root-context.ts
|
|
43
41
|
const LocaleProviderRootContext = createContext$1({
|
|
44
42
|
locale: "en-US",
|
|
45
43
|
dir: isRTL("en-US") ? "rtl" : "ltr"
|
|
46
44
|
});
|
|
47
|
-
|
|
48
|
-
//#region src/components/accordion/modules/provider.ts
|
|
45
|
+
// src/components/accordion/modules/provider.ts
|
|
49
46
|
function useAccordion(props = {}) {
|
|
50
47
|
const locale = use(LocaleProviderRootContext);
|
|
51
|
-
|
|
48
|
+
const service = useMachine(machine, {
|
|
52
49
|
id: useId(),
|
|
53
50
|
dir: locale.dir,
|
|
54
51
|
...props
|
|
55
|
-
})
|
|
52
|
+
});
|
|
53
|
+
return connect(service, normalizeProps);
|
|
56
54
|
}
|
|
57
|
-
|
|
58
|
-
//#region src/components/accordion/modules/root-context.ts
|
|
55
|
+
// src/components/accordion/modules/root-context.ts
|
|
59
56
|
const AccordionRootContext$1 = createContext$1();
|
|
60
|
-
|
|
61
|
-
//#region src/components/accordion/anatomy/item-content.tsx
|
|
57
|
+
// src/components/accordion/anatomy/item-content.tsx
|
|
62
58
|
function ItemContent(props) {
|
|
63
59
|
const accordion = use(AccordionRootContext$1);
|
|
64
60
|
const itemProps = use(AccordionItemContext);
|
|
@@ -69,8 +65,7 @@ function ItemContent(props) {
|
|
|
69
65
|
children
|
|
70
66
|
});
|
|
71
67
|
}
|
|
72
|
-
|
|
73
|
-
//#region src/components/accordion/anatomy/item-indicator.tsx
|
|
68
|
+
// src/components/accordion/anatomy/item-indicator.tsx
|
|
74
69
|
function ItemIndicator$3(props) {
|
|
75
70
|
const accordion = use(AccordionRootContext$1);
|
|
76
71
|
const itemProps = use(AccordionItemContext);
|
|
@@ -81,8 +76,7 @@ function ItemIndicator$3(props) {
|
|
|
81
76
|
children
|
|
82
77
|
});
|
|
83
78
|
}
|
|
84
|
-
|
|
85
|
-
//#region src/components/accordion/anatomy/item-trigger.tsx
|
|
79
|
+
// src/components/accordion/anatomy/item-trigger.tsx
|
|
86
80
|
function ItemTrigger(props) {
|
|
87
81
|
const accordion = use(AccordionRootContext$1);
|
|
88
82
|
const itemProps = use(AccordionItemContext);
|
|
@@ -93,8 +87,7 @@ function ItemTrigger(props) {
|
|
|
93
87
|
children
|
|
94
88
|
});
|
|
95
89
|
}
|
|
96
|
-
|
|
97
|
-
//#region src/components/accordion/anatomy/item.tsx
|
|
90
|
+
// src/components/accordion/anatomy/item.tsx
|
|
98
91
|
function Item$12(props) {
|
|
99
92
|
const accordion = use(AccordionRootContext$1);
|
|
100
93
|
const [itemProps, componentProps] = splitItemProps(props);
|
|
@@ -108,15 +101,13 @@ function Item$12(props) {
|
|
|
108
101
|
})
|
|
109
102
|
});
|
|
110
103
|
}
|
|
111
|
-
|
|
112
|
-
//#region src/components/accordion/anatomy/root-context.tsx
|
|
104
|
+
// src/components/accordion/anatomy/root-context.tsx
|
|
113
105
|
function AccordionRootContext(props) {
|
|
114
106
|
const accordion = use(AccordionRootContext$1);
|
|
115
107
|
const { children } = props;
|
|
116
108
|
return children(accordion);
|
|
117
109
|
}
|
|
118
|
-
|
|
119
|
-
//#region src/components/accordion/anatomy/root-provider.tsx
|
|
110
|
+
// src/components/accordion/anatomy/root-provider.tsx
|
|
120
111
|
function RootProvider$20(props) {
|
|
121
112
|
const { element, children, value: accordion, ...rest } = props;
|
|
122
113
|
const attributes = mergeProps(accordion.getRootProps(), rest);
|
|
@@ -128,8 +119,7 @@ function RootProvider$20(props) {
|
|
|
128
119
|
})
|
|
129
120
|
});
|
|
130
121
|
}
|
|
131
|
-
|
|
132
|
-
//#region src/components/accordion/anatomy/root.tsx
|
|
122
|
+
// src/components/accordion/anatomy/root.tsx
|
|
133
123
|
function Root$22(props) {
|
|
134
124
|
const [accordionProps, componentProps] = splitProps(props);
|
|
135
125
|
const { element, children, ...rest } = componentProps;
|
|
@@ -143,8 +133,7 @@ function Root$22(props) {
|
|
|
143
133
|
})
|
|
144
134
|
});
|
|
145
135
|
}
|
|
146
|
-
|
|
147
|
-
//#region src/components/accordion/modules/anatomy.ts
|
|
136
|
+
// src/components/accordion/modules/anatomy.ts
|
|
148
137
|
const Accordion = Object.assign(Root$22, {
|
|
149
138
|
Provider: RootProvider$20,
|
|
150
139
|
Context: AccordionRootContext,
|
|
@@ -153,8 +142,7 @@ const Accordion = Object.assign(Root$22, {
|
|
|
153
142
|
ItemIndicator: ItemIndicator$3,
|
|
154
143
|
ItemContent
|
|
155
144
|
});
|
|
156
|
-
|
|
157
|
-
//#region src/components/app-bar/anatomy/headline.tsx
|
|
145
|
+
// src/components/app-bar/anatomy/headline.tsx
|
|
158
146
|
function AppBarHeadline(props) {
|
|
159
147
|
const { element, children, ...rest } = props;
|
|
160
148
|
const attributes = mergeProps({
|
|
@@ -166,8 +154,7 @@ function AppBarHeadline(props) {
|
|
|
166
154
|
children
|
|
167
155
|
});
|
|
168
156
|
}
|
|
169
|
-
|
|
170
|
-
//#region src/components/app-bar/anatomy/lead.tsx
|
|
157
|
+
// src/components/app-bar/anatomy/lead.tsx
|
|
171
158
|
function AppBarLead(props) {
|
|
172
159
|
const { element, children, ...rest } = props;
|
|
173
160
|
const attributes = mergeProps({
|
|
@@ -179,12 +166,12 @@ function AppBarLead(props) {
|
|
|
179
166
|
children
|
|
180
167
|
});
|
|
181
168
|
}
|
|
182
|
-
|
|
183
|
-
//#region src/components/app-bar/anatomy/root.tsx
|
|
169
|
+
// src/components/app-bar/anatomy/root.tsx
|
|
184
170
|
function AppBarRoot(props) {
|
|
185
171
|
const { element, children, ...rest } = props;
|
|
172
|
+
const locale = use(LocaleProviderRootContext);
|
|
186
173
|
const attributes = mergeProps({
|
|
187
|
-
dir:
|
|
174
|
+
dir: locale.dir,
|
|
188
175
|
"data-scope": "app-bar",
|
|
189
176
|
"data-part": "root"
|
|
190
177
|
}, rest);
|
|
@@ -193,8 +180,7 @@ function AppBarRoot(props) {
|
|
|
193
180
|
children
|
|
194
181
|
});
|
|
195
182
|
}
|
|
196
|
-
|
|
197
|
-
//#region src/components/app-bar/anatomy/toolbar.tsx
|
|
183
|
+
// src/components/app-bar/anatomy/toolbar.tsx
|
|
198
184
|
function AppBarToolbar(props) {
|
|
199
185
|
const { element, children, ...rest } = props;
|
|
200
186
|
const attributes = mergeProps({
|
|
@@ -206,8 +192,7 @@ function AppBarToolbar(props) {
|
|
|
206
192
|
children
|
|
207
193
|
});
|
|
208
194
|
}
|
|
209
|
-
|
|
210
|
-
//#region src/components/app-bar/anatomy/trail.tsx
|
|
195
|
+
// src/components/app-bar/anatomy/trail.tsx
|
|
211
196
|
function AppBarTrail(props) {
|
|
212
197
|
const { element, children, ...rest } = props;
|
|
213
198
|
const attributes = mergeProps({
|
|
@@ -219,19 +204,16 @@ function AppBarTrail(props) {
|
|
|
219
204
|
children
|
|
220
205
|
});
|
|
221
206
|
}
|
|
222
|
-
|
|
223
|
-
//#region src/components/app-bar/modules/anatomy.ts
|
|
207
|
+
// src/components/app-bar/modules/anatomy.ts
|
|
224
208
|
const AppBar = Object.assign(AppBarRoot, {
|
|
225
209
|
Toolbar: AppBarToolbar,
|
|
226
210
|
Lead: AppBarLead,
|
|
227
211
|
Headline: AppBarHeadline,
|
|
228
212
|
Trail: AppBarTrail
|
|
229
213
|
});
|
|
230
|
-
|
|
231
|
-
//#region src/components/avatar/modules/root-context.ts
|
|
214
|
+
// src/components/avatar/modules/root-context.ts
|
|
232
215
|
const AvatarRootContext$1 = createContext$1();
|
|
233
|
-
|
|
234
|
-
//#region src/components/avatar/anatomy/fallback.tsx
|
|
216
|
+
// src/components/avatar/anatomy/fallback.tsx
|
|
235
217
|
function Fallback(props) {
|
|
236
218
|
const avatar = use(AvatarRootContext$1);
|
|
237
219
|
const { element, children, ...rest } = props;
|
|
@@ -241,23 +223,20 @@ function Fallback(props) {
|
|
|
241
223
|
children
|
|
242
224
|
});
|
|
243
225
|
}
|
|
244
|
-
|
|
245
|
-
//#region src/components/avatar/anatomy/image.tsx
|
|
226
|
+
// src/components/avatar/anatomy/image.tsx
|
|
246
227
|
function Image(props) {
|
|
247
228
|
const avatar = use(AvatarRootContext$1);
|
|
248
229
|
const { element, ...rest } = props;
|
|
249
230
|
const attributes = mergeProps(avatar.getImageProps(), rest);
|
|
250
231
|
return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
|
|
251
232
|
}
|
|
252
|
-
|
|
253
|
-
//#region src/components/avatar/anatomy/root-context.tsx
|
|
233
|
+
// src/components/avatar/anatomy/root-context.tsx
|
|
254
234
|
function AvatarRootContext(props) {
|
|
255
235
|
const avatar = use(AvatarRootContext$1);
|
|
256
236
|
const { children } = props;
|
|
257
237
|
return children(avatar);
|
|
258
238
|
}
|
|
259
|
-
|
|
260
|
-
//#region src/components/avatar/anatomy/root-provider.tsx
|
|
239
|
+
// src/components/avatar/anatomy/root-provider.tsx
|
|
261
240
|
function AvatarRootProvider(props) {
|
|
262
241
|
const { element, children, value: avatar, ...rest } = props;
|
|
263
242
|
const attributes = mergeProps(avatar.getRootProps(), rest);
|
|
@@ -269,18 +248,17 @@ function AvatarRootProvider(props) {
|
|
|
269
248
|
})
|
|
270
249
|
});
|
|
271
250
|
}
|
|
272
|
-
|
|
273
|
-
//#region src/components/avatar/modules/provider.ts
|
|
251
|
+
// src/components/avatar/modules/provider.ts
|
|
274
252
|
function useAvatar(props = {}) {
|
|
275
253
|
const locale = use(LocaleProviderRootContext);
|
|
276
|
-
|
|
254
|
+
const service = useMachine(machine$1, {
|
|
277
255
|
id: useId(),
|
|
278
256
|
dir: locale.dir,
|
|
279
257
|
...props
|
|
280
|
-
})
|
|
258
|
+
});
|
|
259
|
+
return connect$1(service, normalizeProps);
|
|
281
260
|
}
|
|
282
|
-
|
|
283
|
-
//#region src/components/avatar/anatomy/root.tsx
|
|
261
|
+
// src/components/avatar/anatomy/root.tsx
|
|
284
262
|
function AvatarRoot(props) {
|
|
285
263
|
const [avatarProps, componentProps] = splitProps$1(props);
|
|
286
264
|
const { element, children, ...rest } = componentProps;
|
|
@@ -294,19 +272,16 @@ function AvatarRoot(props) {
|
|
|
294
272
|
})
|
|
295
273
|
});
|
|
296
274
|
}
|
|
297
|
-
|
|
298
|
-
//#region src/components/avatar/modules/anatomy.ts
|
|
275
|
+
// src/components/avatar/modules/anatomy.ts
|
|
299
276
|
const Avatar = Object.assign(AvatarRoot, {
|
|
300
277
|
Provider: AvatarRootProvider,
|
|
301
278
|
Context: AvatarRootContext,
|
|
302
279
|
Image,
|
|
303
280
|
Fallback
|
|
304
281
|
});
|
|
305
|
-
|
|
306
|
-
//#region src/components/carousel/modules/root-context.ts
|
|
282
|
+
// src/components/carousel/modules/root-context.ts
|
|
307
283
|
const CarouselRootContext$1 = createContext$1();
|
|
308
|
-
|
|
309
|
-
//#region src/components/carousel/anatomy/autoplay-trigger.tsx
|
|
284
|
+
// src/components/carousel/anatomy/autoplay-trigger.tsx
|
|
310
285
|
function AutoplayTrigger(props) {
|
|
311
286
|
const carousel = use(CarouselRootContext$1);
|
|
312
287
|
const { element, children, ...rest } = props;
|
|
@@ -316,8 +291,7 @@ function AutoplayTrigger(props) {
|
|
|
316
291
|
children
|
|
317
292
|
});
|
|
318
293
|
}
|
|
319
|
-
|
|
320
|
-
//#region src/components/carousel/anatomy/control.tsx
|
|
294
|
+
// src/components/carousel/anatomy/control.tsx
|
|
321
295
|
function Control$8(props) {
|
|
322
296
|
const carousel = use(CarouselRootContext$1);
|
|
323
297
|
const { element, children, ...rest } = props;
|
|
@@ -327,8 +301,7 @@ function Control$8(props) {
|
|
|
327
301
|
children
|
|
328
302
|
});
|
|
329
303
|
}
|
|
330
|
-
|
|
331
|
-
//#region src/components/carousel/anatomy/indicator.tsx
|
|
304
|
+
// src/components/carousel/anatomy/indicator.tsx
|
|
332
305
|
function Indicator$5(props) {
|
|
333
306
|
const carousel = use(CarouselRootContext$1);
|
|
334
307
|
const [indicatorProps, componentProps] = splitIndicatorProps(props);
|
|
@@ -339,8 +312,7 @@ function Indicator$5(props) {
|
|
|
339
312
|
children
|
|
340
313
|
});
|
|
341
314
|
}
|
|
342
|
-
|
|
343
|
-
//#region src/components/carousel/anatomy/indicator-group.tsx
|
|
315
|
+
// src/components/carousel/anatomy/indicator-group.tsx
|
|
344
316
|
function IndicatorGroup(props) {
|
|
345
317
|
const carousel = use(CarouselRootContext$1);
|
|
346
318
|
const { element, children, ...rest } = props;
|
|
@@ -350,8 +322,7 @@ function IndicatorGroup(props) {
|
|
|
350
322
|
children
|
|
351
323
|
});
|
|
352
324
|
}
|
|
353
|
-
|
|
354
|
-
//#region src/components/carousel/anatomy/item.tsx
|
|
325
|
+
// src/components/carousel/anatomy/item.tsx
|
|
355
326
|
function Item$11(props) {
|
|
356
327
|
const carousel = use(CarouselRootContext$1);
|
|
357
328
|
const [itemProps, componentProps] = splitItemProps$1(props);
|
|
@@ -362,8 +333,7 @@ function Item$11(props) {
|
|
|
362
333
|
children
|
|
363
334
|
});
|
|
364
335
|
}
|
|
365
|
-
|
|
366
|
-
//#region src/components/carousel/anatomy/item-group.tsx
|
|
336
|
+
// src/components/carousel/anatomy/item-group.tsx
|
|
367
337
|
function ItemGroup$4(props) {
|
|
368
338
|
const carousel = use(CarouselRootContext$1);
|
|
369
339
|
const { element, children, ...rest } = props;
|
|
@@ -373,8 +343,7 @@ function ItemGroup$4(props) {
|
|
|
373
343
|
children
|
|
374
344
|
});
|
|
375
345
|
}
|
|
376
|
-
|
|
377
|
-
//#region src/components/carousel/anatomy/next-trigger.tsx
|
|
346
|
+
// src/components/carousel/anatomy/next-trigger.tsx
|
|
378
347
|
function NextTrigger$3(props) {
|
|
379
348
|
const carousel = use(CarouselRootContext$1);
|
|
380
349
|
const { element, children, ...rest } = props;
|
|
@@ -384,8 +353,7 @@ function NextTrigger$3(props) {
|
|
|
384
353
|
children
|
|
385
354
|
});
|
|
386
355
|
}
|
|
387
|
-
|
|
388
|
-
//#region src/components/carousel/anatomy/prev-trigger.tsx
|
|
356
|
+
// src/components/carousel/anatomy/prev-trigger.tsx
|
|
389
357
|
function PrevTrigger$3(props) {
|
|
390
358
|
const carousel = use(CarouselRootContext$1);
|
|
391
359
|
const { element, children, ...rest } = props;
|
|
@@ -395,8 +363,7 @@ function PrevTrigger$3(props) {
|
|
|
395
363
|
children
|
|
396
364
|
});
|
|
397
365
|
}
|
|
398
|
-
|
|
399
|
-
//#region src/components/carousel/anatomy/progress-text.tsx
|
|
366
|
+
// src/components/carousel/anatomy/progress-text.tsx
|
|
400
367
|
function ProgressText(props) {
|
|
401
368
|
const carousel = use(CarouselRootContext$1);
|
|
402
369
|
const { element, children, ...rest } = props;
|
|
@@ -406,15 +373,13 @@ function ProgressText(props) {
|
|
|
406
373
|
children
|
|
407
374
|
});
|
|
408
375
|
}
|
|
409
|
-
|
|
410
|
-
//#region src/components/carousel/anatomy/root-context.tsx
|
|
376
|
+
// src/components/carousel/anatomy/root-context.tsx
|
|
411
377
|
function CarouselRootContext(props) {
|
|
412
378
|
const carousel = use(CarouselRootContext$1);
|
|
413
379
|
const { children } = props;
|
|
414
380
|
return children(carousel);
|
|
415
381
|
}
|
|
416
|
-
|
|
417
|
-
//#region src/components/carousel/anatomy/root-provider.tsx
|
|
382
|
+
// src/components/carousel/anatomy/root-provider.tsx
|
|
418
383
|
function RootProvider$19(props) {
|
|
419
384
|
const { element, children, value: carousel, ...rest } = props;
|
|
420
385
|
const attributes = mergeProps(carousel.getRootProps(), rest);
|
|
@@ -426,20 +391,19 @@ function RootProvider$19(props) {
|
|
|
426
391
|
})
|
|
427
392
|
});
|
|
428
393
|
}
|
|
429
|
-
|
|
430
|
-
//#region src/components/carousel/modules/provider.ts
|
|
394
|
+
// src/components/carousel/modules/provider.ts
|
|
431
395
|
function useCarousel(props) {
|
|
432
396
|
const { slideCount, ...rest } = props;
|
|
433
397
|
const locale = use(LocaleProviderRootContext);
|
|
434
|
-
|
|
398
|
+
const service = useMachine(machine$2, {
|
|
435
399
|
id: useId(),
|
|
436
400
|
dir: locale.dir,
|
|
437
401
|
slideCount: slideCount ?? 0,
|
|
438
402
|
...rest
|
|
439
|
-
})
|
|
403
|
+
});
|
|
404
|
+
return connect$2(service, normalizeProps);
|
|
440
405
|
}
|
|
441
|
-
|
|
442
|
-
//#region src/components/carousel/anatomy/root.tsx
|
|
406
|
+
// src/components/carousel/anatomy/root.tsx
|
|
443
407
|
function Root$21(props) {
|
|
444
408
|
const [carouselProps, componentProps] = splitProps$2(props);
|
|
445
409
|
const { element, children, ...rest } = componentProps;
|
|
@@ -456,8 +420,7 @@ function Root$21(props) {
|
|
|
456
420
|
})
|
|
457
421
|
});
|
|
458
422
|
}
|
|
459
|
-
|
|
460
|
-
//#region src/components/carousel/modules/anatomy.ts
|
|
423
|
+
// src/components/carousel/modules/anatomy.ts
|
|
461
424
|
const Carousel = Object.assign(Root$21, {
|
|
462
425
|
Provider: RootProvider$19,
|
|
463
426
|
Context: CarouselRootContext,
|
|
@@ -471,11 +434,9 @@ const Carousel = Object.assign(Root$21, {
|
|
|
471
434
|
Indicator: Indicator$5,
|
|
472
435
|
ProgressText
|
|
473
436
|
});
|
|
474
|
-
|
|
475
|
-
//#region src/components/marquee/modules/root-context.ts
|
|
437
|
+
// src/components/marquee/modules/root-context.ts
|
|
476
438
|
const MarqueeRootContext$1 = createContext$1();
|
|
477
|
-
|
|
478
|
-
//#region src/components/marquee/anatomy/content.tsx
|
|
439
|
+
// src/components/marquee/anatomy/content.tsx
|
|
479
440
|
function Content$11(props) {
|
|
480
441
|
const marquee = use(MarqueeRootContext$1);
|
|
481
442
|
const { element, children, index, ...rest } = props;
|
|
@@ -485,8 +446,7 @@ function Content$11(props) {
|
|
|
485
446
|
children
|
|
486
447
|
});
|
|
487
448
|
}
|
|
488
|
-
|
|
489
|
-
//#region src/components/marquee/anatomy/edge.tsx
|
|
449
|
+
// src/components/marquee/anatomy/edge.tsx
|
|
490
450
|
function Edge(props) {
|
|
491
451
|
const marquee = use(MarqueeRootContext$1);
|
|
492
452
|
const { element, children, side, ...rest } = props;
|
|
@@ -496,15 +456,13 @@ function Edge(props) {
|
|
|
496
456
|
children
|
|
497
457
|
});
|
|
498
458
|
}
|
|
499
|
-
|
|
500
|
-
//#region src/components/marquee/anatomy/root-context.tsx
|
|
459
|
+
// src/components/marquee/anatomy/root-context.tsx
|
|
501
460
|
function MarqueeRootContext(props) {
|
|
502
461
|
const marquee = use(MarqueeRootContext$1);
|
|
503
462
|
const { children } = props;
|
|
504
463
|
return children(marquee);
|
|
505
464
|
}
|
|
506
|
-
|
|
507
|
-
//#region src/components/marquee/anatomy/root-provider.tsx
|
|
465
|
+
// src/components/marquee/anatomy/root-provider.tsx
|
|
508
466
|
function RootProvider$18(props) {
|
|
509
467
|
const { element, children, value: marquee, ...rest } = props;
|
|
510
468
|
const attributes = mergeProps(marquee.getRootProps(), rest);
|
|
@@ -516,18 +474,17 @@ function RootProvider$18(props) {
|
|
|
516
474
|
})
|
|
517
475
|
});
|
|
518
476
|
}
|
|
519
|
-
|
|
520
|
-
//#region src/components/marquee/modules/provider.ts
|
|
477
|
+
// src/components/marquee/modules/provider.ts
|
|
521
478
|
function useMarquee(props = {}) {
|
|
522
479
|
const locale = use(LocaleProviderRootContext);
|
|
523
|
-
|
|
480
|
+
const service = useMachine(machine$3, {
|
|
524
481
|
id: useId(),
|
|
525
482
|
dir: locale.dir,
|
|
526
483
|
...props
|
|
527
|
-
})
|
|
484
|
+
});
|
|
485
|
+
return connect$3(service, normalizeProps);
|
|
528
486
|
}
|
|
529
|
-
|
|
530
|
-
//#region src/components/marquee/anatomy/root.tsx
|
|
487
|
+
// src/components/marquee/anatomy/root.tsx
|
|
531
488
|
function Root$20(props) {
|
|
532
489
|
const [marqueeProps, componentProps] = splitProps$3(props);
|
|
533
490
|
const { element, children, ...rest } = componentProps;
|
|
@@ -541,8 +498,7 @@ function Root$20(props) {
|
|
|
541
498
|
})
|
|
542
499
|
});
|
|
543
500
|
}
|
|
544
|
-
|
|
545
|
-
//#region src/components/marquee/anatomy/viewport.tsx
|
|
501
|
+
// src/components/marquee/anatomy/viewport.tsx
|
|
546
502
|
function Viewport(props) {
|
|
547
503
|
const marquee = use(MarqueeRootContext$1);
|
|
548
504
|
const { element, children, ...rest } = props;
|
|
@@ -552,8 +508,7 @@ function Viewport(props) {
|
|
|
552
508
|
children
|
|
553
509
|
});
|
|
554
510
|
}
|
|
555
|
-
|
|
556
|
-
//#region src/components/marquee/modules/anatomy.ts
|
|
511
|
+
// src/components/marquee/modules/anatomy.ts
|
|
557
512
|
const Marquee = Object.assign(Root$20, {
|
|
558
513
|
Provider: RootProvider$18,
|
|
559
514
|
Context: MarqueeRootContext,
|
|
@@ -561,11 +516,9 @@ const Marquee = Object.assign(Root$20, {
|
|
|
561
516
|
Content: Content$11,
|
|
562
517
|
Edge
|
|
563
518
|
});
|
|
564
|
-
|
|
565
|
-
//#region src/components/collapsible/modules/root-context.ts
|
|
519
|
+
// src/components/collapsible/modules/root-context.ts
|
|
566
520
|
const CollapsibleRootContext$1 = createContext$1();
|
|
567
|
-
|
|
568
|
-
//#region src/components/collapsible/anatomy/content.tsx
|
|
521
|
+
// src/components/collapsible/anatomy/content.tsx
|
|
569
522
|
function Content$10(props) {
|
|
570
523
|
const collapsible = use(CollapsibleRootContext$1);
|
|
571
524
|
const { element, children, ...rest } = props;
|
|
@@ -575,8 +528,7 @@ function Content$10(props) {
|
|
|
575
528
|
children
|
|
576
529
|
});
|
|
577
530
|
}
|
|
578
|
-
|
|
579
|
-
//#region src/components/collapsible/anatomy/indicator.tsx
|
|
531
|
+
// src/components/collapsible/anatomy/indicator.tsx
|
|
580
532
|
function Indicator$4(props) {
|
|
581
533
|
const collapsible = use(CollapsibleRootContext$1);
|
|
582
534
|
const { element, children, ...rest } = props;
|
|
@@ -586,15 +538,13 @@ function Indicator$4(props) {
|
|
|
586
538
|
children
|
|
587
539
|
});
|
|
588
540
|
}
|
|
589
|
-
|
|
590
|
-
//#region src/components/collapsible/anatomy/root-context.tsx
|
|
541
|
+
// src/components/collapsible/anatomy/root-context.tsx
|
|
591
542
|
function CollapsibleRootContext(props) {
|
|
592
543
|
const collapsible = use(CollapsibleRootContext$1);
|
|
593
544
|
const { children } = props;
|
|
594
545
|
return children(collapsible);
|
|
595
546
|
}
|
|
596
|
-
|
|
597
|
-
//#region src/components/collapsible/anatomy/root-provider.tsx
|
|
547
|
+
// src/components/collapsible/anatomy/root-provider.tsx
|
|
598
548
|
function CollapsibleRootProvider(props) {
|
|
599
549
|
const { element, children, value: collapsible, ...rest } = props;
|
|
600
550
|
const attributes = mergeProps(collapsible.getRootProps(), rest);
|
|
@@ -606,18 +556,17 @@ function CollapsibleRootProvider(props) {
|
|
|
606
556
|
})
|
|
607
557
|
});
|
|
608
558
|
}
|
|
609
|
-
|
|
610
|
-
//#region src/components/collapsible/modules/provider.ts
|
|
559
|
+
// src/components/collapsible/modules/provider.ts
|
|
611
560
|
function useCollapsible(props = {}) {
|
|
612
561
|
const locale = use(LocaleProviderRootContext);
|
|
613
|
-
|
|
562
|
+
const service = useMachine(machine$4, {
|
|
614
563
|
id: useId(),
|
|
615
564
|
dir: locale.dir,
|
|
616
565
|
...props
|
|
617
|
-
})
|
|
566
|
+
});
|
|
567
|
+
return connect$4(service, normalizeProps);
|
|
618
568
|
}
|
|
619
|
-
|
|
620
|
-
//#region src/components/collapsible/anatomy/root.tsx
|
|
569
|
+
// src/components/collapsible/anatomy/root.tsx
|
|
621
570
|
function CollapsibleRoot(props) {
|
|
622
571
|
const [collapsibleProps, componentProps] = splitProps$4(props);
|
|
623
572
|
const { element, children, ...rest } = componentProps;
|
|
@@ -631,8 +580,7 @@ function CollapsibleRoot(props) {
|
|
|
631
580
|
})
|
|
632
581
|
});
|
|
633
582
|
}
|
|
634
|
-
|
|
635
|
-
//#region src/components/collapsible/anatomy/trigger.tsx
|
|
583
|
+
// src/components/collapsible/anatomy/trigger.tsx
|
|
636
584
|
function Trigger$10(props) {
|
|
637
585
|
const collapsible = use(CollapsibleRootContext$1);
|
|
638
586
|
const { element, children, ...rest } = props;
|
|
@@ -642,8 +590,7 @@ function Trigger$10(props) {
|
|
|
642
590
|
children
|
|
643
591
|
});
|
|
644
592
|
}
|
|
645
|
-
|
|
646
|
-
//#region src/components/collapsible/modules/anatomy.ts
|
|
593
|
+
// src/components/collapsible/modules/anatomy.ts
|
|
647
594
|
const Collapsible = Object.assign(CollapsibleRoot, {
|
|
648
595
|
Provider: CollapsibleRootProvider,
|
|
649
596
|
Context: CollapsibleRootContext,
|
|
@@ -651,11 +598,9 @@ const Collapsible = Object.assign(CollapsibleRoot, {
|
|
|
651
598
|
Indicator: Indicator$4,
|
|
652
599
|
Content: Content$10
|
|
653
600
|
});
|
|
654
|
-
|
|
655
|
-
//#region src/components/combobox/modules/root-context.ts
|
|
601
|
+
// src/components/combobox/modules/root-context.ts
|
|
656
602
|
const ComboboxRootContext$1 = createContext$1();
|
|
657
|
-
|
|
658
|
-
//#region src/components/combobox/anatomy/clear-trigger.tsx
|
|
603
|
+
// src/components/combobox/anatomy/clear-trigger.tsx
|
|
659
604
|
function ClearTrigger$2(props) {
|
|
660
605
|
const combobox = use(ComboboxRootContext$1);
|
|
661
606
|
const { element, children, ...rest } = props;
|
|
@@ -665,8 +610,7 @@ function ClearTrigger$2(props) {
|
|
|
665
610
|
children
|
|
666
611
|
});
|
|
667
612
|
}
|
|
668
|
-
|
|
669
|
-
//#region src/components/combobox/anatomy/content.tsx
|
|
613
|
+
// src/components/combobox/anatomy/content.tsx
|
|
670
614
|
function Content$9(props) {
|
|
671
615
|
const combobox = use(ComboboxRootContext$1);
|
|
672
616
|
const { element, children, ...rest } = props;
|
|
@@ -676,8 +620,7 @@ function Content$9(props) {
|
|
|
676
620
|
children
|
|
677
621
|
});
|
|
678
622
|
}
|
|
679
|
-
|
|
680
|
-
//#region src/components/combobox/anatomy/control.tsx
|
|
623
|
+
// src/components/combobox/anatomy/control.tsx
|
|
681
624
|
function Control$7(props) {
|
|
682
625
|
const combobox = use(ComboboxRootContext$1);
|
|
683
626
|
const { element, children, ...rest } = props;
|
|
@@ -687,23 +630,21 @@ function Control$7(props) {
|
|
|
687
630
|
children
|
|
688
631
|
});
|
|
689
632
|
}
|
|
690
|
-
|
|
691
|
-
//#region src/components/combobox/anatomy/input.tsx
|
|
633
|
+
// src/components/combobox/anatomy/input.tsx
|
|
692
634
|
function Input$3(props) {
|
|
693
635
|
const combobox = use(ComboboxRootContext$1);
|
|
694
636
|
const { element, ...rest } = props;
|
|
695
637
|
const attributes = mergeProps(combobox.getInputProps(), rest);
|
|
696
638
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
697
639
|
}
|
|
698
|
-
|
|
699
|
-
//#region src/components/combobox/modules/item-group-context.ts
|
|
640
|
+
// src/components/combobox/modules/item-group-context.ts
|
|
700
641
|
const ComboboxItemGroupContext = createContext$1();
|
|
701
|
-
|
|
702
|
-
//#region src/components/combobox/anatomy/item-group-label.tsx
|
|
642
|
+
// src/components/combobox/anatomy/item-group-label.tsx
|
|
703
643
|
function ItemGroupLabel$2(props) {
|
|
704
644
|
const combobox = use(ComboboxRootContext$1);
|
|
645
|
+
const itemGroupProps = use(ComboboxItemGroupContext);
|
|
705
646
|
const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({
|
|
706
|
-
htmlFor:
|
|
647
|
+
htmlFor: itemGroupProps.id,
|
|
707
648
|
...props
|
|
708
649
|
});
|
|
709
650
|
const { element, children, ...rest } = componentProps;
|
|
@@ -713,8 +654,7 @@ function ItemGroupLabel$2(props) {
|
|
|
713
654
|
children
|
|
714
655
|
});
|
|
715
656
|
}
|
|
716
|
-
|
|
717
|
-
//#region src/components/combobox/anatomy/item-group.tsx
|
|
657
|
+
// src/components/combobox/anatomy/item-group.tsx
|
|
718
658
|
function ItemGroup$3(props) {
|
|
719
659
|
const combobox = use(ComboboxRootContext$1);
|
|
720
660
|
const [itemGroupProps, componentProps] = splitItemGroupProps({
|
|
@@ -731,30 +671,28 @@ function ItemGroup$3(props) {
|
|
|
731
671
|
})
|
|
732
672
|
});
|
|
733
673
|
}
|
|
734
|
-
|
|
735
|
-
//#region src/internal/components/check.tsx
|
|
674
|
+
// src/internal/components/check.tsx
|
|
736
675
|
function Check(props) {
|
|
737
676
|
const { ...rest } = props;
|
|
677
|
+
const attributes = mergeProps({
|
|
678
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
679
|
+
width: "24",
|
|
680
|
+
height: "24",
|
|
681
|
+
viewBox: "0 0 24 24",
|
|
682
|
+
fill: "none",
|
|
683
|
+
stroke: "currentColor",
|
|
684
|
+
strokeWidth: "2",
|
|
685
|
+
strokeLinecap: "round",
|
|
686
|
+
strokeLinejoin: "round"
|
|
687
|
+
}, rest);
|
|
738
688
|
return /* @__PURE__ */ jsx("svg", {
|
|
739
|
-
...
|
|
740
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
741
|
-
width: "24",
|
|
742
|
-
height: "24",
|
|
743
|
-
viewBox: "0 0 24 24",
|
|
744
|
-
fill: "none",
|
|
745
|
-
stroke: "currentColor",
|
|
746
|
-
strokeWidth: "2",
|
|
747
|
-
strokeLinecap: "round",
|
|
748
|
-
strokeLinejoin: "round"
|
|
749
|
-
}, rest),
|
|
689
|
+
...attributes,
|
|
750
690
|
children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
751
691
|
});
|
|
752
692
|
}
|
|
753
|
-
|
|
754
|
-
//#region src/components/combobox/modules/item-context.ts
|
|
693
|
+
// src/components/combobox/modules/item-context.ts
|
|
755
694
|
const ComboboxItemContext = createContext$1();
|
|
756
|
-
|
|
757
|
-
//#region src/components/combobox/anatomy/item-indicator.tsx
|
|
695
|
+
// src/components/combobox/anatomy/item-indicator.tsx
|
|
758
696
|
function ItemIndicator$2(props) {
|
|
759
697
|
const combobox = use(ComboboxRootContext$1);
|
|
760
698
|
const itemProps = use(ComboboxItemContext);
|
|
@@ -765,8 +703,7 @@ function ItemIndicator$2(props) {
|
|
|
765
703
|
children
|
|
766
704
|
});
|
|
767
705
|
}
|
|
768
|
-
|
|
769
|
-
//#region src/components/combobox/anatomy/item-text.tsx
|
|
706
|
+
// src/components/combobox/anatomy/item-text.tsx
|
|
770
707
|
function ItemText$4(props) {
|
|
771
708
|
const combobox = use(ComboboxRootContext$1);
|
|
772
709
|
const itemProps = use(ComboboxItemContext);
|
|
@@ -777,8 +714,7 @@ function ItemText$4(props) {
|
|
|
777
714
|
children
|
|
778
715
|
});
|
|
779
716
|
}
|
|
780
|
-
|
|
781
|
-
//#region src/components/combobox/anatomy/item.tsx
|
|
717
|
+
// src/components/combobox/anatomy/item.tsx
|
|
782
718
|
function Item$10(props) {
|
|
783
719
|
const combobox = use(ComboboxRootContext$1);
|
|
784
720
|
const [itemProps, componentProps] = splitItemProps$2(props);
|
|
@@ -792,8 +728,7 @@ function Item$10(props) {
|
|
|
792
728
|
})
|
|
793
729
|
});
|
|
794
730
|
}
|
|
795
|
-
|
|
796
|
-
//#region src/components/combobox/anatomy/label.tsx
|
|
731
|
+
// src/components/combobox/anatomy/label.tsx
|
|
797
732
|
function Label$10(props) {
|
|
798
733
|
const combobox = use(ComboboxRootContext$1);
|
|
799
734
|
const { element, children, ...rest } = props;
|
|
@@ -803,8 +738,7 @@ function Label$10(props) {
|
|
|
803
738
|
children
|
|
804
739
|
});
|
|
805
740
|
}
|
|
806
|
-
|
|
807
|
-
//#region src/components/combobox/anatomy/positioner.tsx
|
|
741
|
+
// src/components/combobox/anatomy/positioner.tsx
|
|
808
742
|
function Positioner$6(props) {
|
|
809
743
|
const combobox = use(ComboboxRootContext$1);
|
|
810
744
|
const { element, children, ...rest } = props;
|
|
@@ -814,25 +748,23 @@ function Positioner$6(props) {
|
|
|
814
748
|
children
|
|
815
749
|
});
|
|
816
750
|
}
|
|
817
|
-
|
|
818
|
-
//#region src/components/combobox/anatomy/root-context.tsx
|
|
751
|
+
// src/components/combobox/anatomy/root-context.tsx
|
|
819
752
|
function ComboboxRootContext(props) {
|
|
820
753
|
const combobox = use(ComboboxRootContext$1);
|
|
821
754
|
const { children } = props;
|
|
822
755
|
return children(combobox);
|
|
823
756
|
}
|
|
824
|
-
|
|
825
|
-
//#region src/components/combobox/modules/provider.ts
|
|
757
|
+
// src/components/combobox/modules/provider.ts
|
|
826
758
|
function useCombobox(props = {}) {
|
|
827
759
|
const locale = use(LocaleProviderRootContext);
|
|
828
|
-
|
|
760
|
+
const service = useMachine(machine$5, {
|
|
829
761
|
id: useId(),
|
|
830
762
|
dir: locale.dir,
|
|
831
763
|
...props
|
|
832
|
-
})
|
|
764
|
+
});
|
|
765
|
+
return connect$5(service, normalizeProps);
|
|
833
766
|
}
|
|
834
|
-
|
|
835
|
-
//#region src/components/combobox/anatomy/root-provider.tsx
|
|
767
|
+
// src/components/combobox/anatomy/root-provider.tsx
|
|
836
768
|
function RootProvider$17(props) {
|
|
837
769
|
const { element, children, value: combobox, ...rest } = props;
|
|
838
770
|
const attributes = mergeProps(combobox.getRootProps(), rest);
|
|
@@ -844,8 +776,7 @@ function RootProvider$17(props) {
|
|
|
844
776
|
})
|
|
845
777
|
});
|
|
846
778
|
}
|
|
847
|
-
|
|
848
|
-
//#region src/components/combobox/anatomy/root.tsx
|
|
779
|
+
// src/components/combobox/anatomy/root.tsx
|
|
849
780
|
function Root$19(props) {
|
|
850
781
|
const [comboboxProps, componentProps] = splitProps$5(props);
|
|
851
782
|
const { element, children, ...rest } = componentProps;
|
|
@@ -859,27 +790,26 @@ function Root$19(props) {
|
|
|
859
790
|
})
|
|
860
791
|
});
|
|
861
792
|
}
|
|
862
|
-
|
|
863
|
-
//#region src/internal/components/chevron-down.tsx
|
|
793
|
+
// src/internal/components/chevron-down.tsx
|
|
864
794
|
function ChevronDown(props) {
|
|
865
795
|
const { ...rest } = props;
|
|
796
|
+
const attributes = mergeProps({
|
|
797
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
798
|
+
width: "24",
|
|
799
|
+
height: "24",
|
|
800
|
+
viewBox: "0 0 24 24",
|
|
801
|
+
fill: "none",
|
|
802
|
+
stroke: "currentColor",
|
|
803
|
+
strokeWidth: "2",
|
|
804
|
+
strokeLinecap: "round",
|
|
805
|
+
strokeLinejoin: "round"
|
|
806
|
+
}, rest);
|
|
866
807
|
return /* @__PURE__ */ jsx("svg", {
|
|
867
|
-
...
|
|
868
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
869
|
-
width: "24",
|
|
870
|
-
height: "24",
|
|
871
|
-
viewBox: "0 0 24 24",
|
|
872
|
-
fill: "none",
|
|
873
|
-
stroke: "currentColor",
|
|
874
|
-
strokeWidth: "2",
|
|
875
|
-
strokeLinecap: "round",
|
|
876
|
-
strokeLinejoin: "round"
|
|
877
|
-
}, rest),
|
|
808
|
+
...attributes,
|
|
878
809
|
children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
|
|
879
810
|
});
|
|
880
811
|
}
|
|
881
|
-
|
|
882
|
-
//#region src/components/combobox/anatomy/trigger.tsx
|
|
812
|
+
// src/components/combobox/anatomy/trigger.tsx
|
|
883
813
|
function Trigger$9(props) {
|
|
884
814
|
const combobox = use(ComboboxRootContext$1);
|
|
885
815
|
const { element, children = /* @__PURE__ */ jsx(ChevronDown, {}), ...rest } = props;
|
|
@@ -889,8 +819,7 @@ function Trigger$9(props) {
|
|
|
889
819
|
children
|
|
890
820
|
});
|
|
891
821
|
}
|
|
892
|
-
|
|
893
|
-
//#region src/components/combobox/modules/anatomy.ts
|
|
822
|
+
// src/components/combobox/modules/anatomy.ts
|
|
894
823
|
const Combobox = Object.assign(Root$19, {
|
|
895
824
|
Provider: RootProvider$17,
|
|
896
825
|
Context: ComboboxRootContext,
|
|
@@ -907,11 +836,9 @@ const Combobox = Object.assign(Root$19, {
|
|
|
907
836
|
ItemText: ItemText$4,
|
|
908
837
|
ItemIndicator: ItemIndicator$2
|
|
909
838
|
});
|
|
910
|
-
|
|
911
|
-
//#region src/components/date-picker/modules/root-context.ts
|
|
839
|
+
// src/components/date-picker/modules/root-context.ts
|
|
912
840
|
const DatePickerRootContext$1 = createContext$1();
|
|
913
|
-
|
|
914
|
-
//#region src/components/date-picker/anatomy/content.tsx
|
|
841
|
+
// src/components/date-picker/anatomy/content.tsx
|
|
915
842
|
function Content$8(props) {
|
|
916
843
|
const datePicker = use(DatePickerRootContext$1);
|
|
917
844
|
const { element, children, ...rest } = props;
|
|
@@ -921,8 +848,7 @@ function Content$8(props) {
|
|
|
921
848
|
children
|
|
922
849
|
});
|
|
923
850
|
}
|
|
924
|
-
|
|
925
|
-
//#region src/components/date-picker/anatomy/control.tsx
|
|
851
|
+
// src/components/date-picker/anatomy/control.tsx
|
|
926
852
|
function Control$6(props) {
|
|
927
853
|
const datePicker = use(DatePickerRootContext$1);
|
|
928
854
|
const { element, children, ...rest } = props;
|
|
@@ -932,8 +858,7 @@ function Control$6(props) {
|
|
|
932
858
|
children
|
|
933
859
|
});
|
|
934
860
|
}
|
|
935
|
-
|
|
936
|
-
//#region src/components/date-picker/anatomy/input.tsx
|
|
861
|
+
// src/components/date-picker/anatomy/input.tsx
|
|
937
862
|
function Input$2(props) {
|
|
938
863
|
const datePicker = use(DatePickerRootContext$1);
|
|
939
864
|
const [inputProps, componentProps] = splitInputProps(props);
|
|
@@ -941,8 +866,7 @@ function Input$2(props) {
|
|
|
941
866
|
const attributes = mergeProps(datePicker.getInputProps(inputProps), rest);
|
|
942
867
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
943
868
|
}
|
|
944
|
-
|
|
945
|
-
//#region src/components/date-picker/anatomy/label.tsx
|
|
869
|
+
// src/components/date-picker/anatomy/label.tsx
|
|
946
870
|
function Label$9(props) {
|
|
947
871
|
const datePicker = use(DatePickerRootContext$1);
|
|
948
872
|
const { element, children, ...rest } = props;
|
|
@@ -952,8 +876,7 @@ function Label$9(props) {
|
|
|
952
876
|
children
|
|
953
877
|
});
|
|
954
878
|
}
|
|
955
|
-
|
|
956
|
-
//#region src/components/date-picker/anatomy/month-select.tsx
|
|
879
|
+
// src/components/date-picker/anatomy/month-select.tsx
|
|
957
880
|
function MonthSelect(props) {
|
|
958
881
|
const datePicker = use(DatePickerRootContext$1);
|
|
959
882
|
const { element, ...rest } = props;
|
|
@@ -966,30 +889,28 @@ function MonthSelect(props) {
|
|
|
966
889
|
}, i))
|
|
967
890
|
});
|
|
968
891
|
}
|
|
969
|
-
|
|
970
|
-
//#region src/internal/components/chevron-right.tsx
|
|
892
|
+
// src/internal/components/chevron-right.tsx
|
|
971
893
|
function ChevronRight(props) {
|
|
972
894
|
const { ...rest } = props;
|
|
895
|
+
const attributes = mergeProps({
|
|
896
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
897
|
+
width: "24",
|
|
898
|
+
height: "24",
|
|
899
|
+
viewBox: "0 0 24 24",
|
|
900
|
+
fill: "none",
|
|
901
|
+
stroke: "currentColor",
|
|
902
|
+
strokeWidth: "2",
|
|
903
|
+
strokeLinecap: "round",
|
|
904
|
+
strokeLinejoin: "round"
|
|
905
|
+
}, rest);
|
|
973
906
|
return /* @__PURE__ */ jsx("svg", {
|
|
974
|
-
...
|
|
975
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
976
|
-
width: "24",
|
|
977
|
-
height: "24",
|
|
978
|
-
viewBox: "0 0 24 24",
|
|
979
|
-
fill: "none",
|
|
980
|
-
stroke: "currentColor",
|
|
981
|
-
strokeWidth: "2",
|
|
982
|
-
strokeLinecap: "round",
|
|
983
|
-
strokeLinejoin: "round"
|
|
984
|
-
}, rest),
|
|
907
|
+
...attributes,
|
|
985
908
|
children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
|
|
986
909
|
});
|
|
987
910
|
}
|
|
988
|
-
|
|
989
|
-
//#region src/components/date-picker/modules/view-context.ts
|
|
911
|
+
// src/components/date-picker/modules/view-context.ts
|
|
990
912
|
const DatePickerViewContext = createContext$1({ view: "day" });
|
|
991
|
-
|
|
992
|
-
//#region src/components/date-picker/anatomy/next-trigger.tsx
|
|
913
|
+
// src/components/date-picker/anatomy/next-trigger.tsx
|
|
993
914
|
function NextTrigger$2(props) {
|
|
994
915
|
const datePicker = use(DatePickerRootContext$1);
|
|
995
916
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1000,8 +921,7 @@ function NextTrigger$2(props) {
|
|
|
1000
921
|
children
|
|
1001
922
|
});
|
|
1002
923
|
}
|
|
1003
|
-
|
|
1004
|
-
//#region src/components/date-picker/anatomy/positioner.tsx
|
|
924
|
+
// src/components/date-picker/anatomy/positioner.tsx
|
|
1005
925
|
function Positioner$5(props) {
|
|
1006
926
|
const datePicker = use(DatePickerRootContext$1);
|
|
1007
927
|
const { element, children, ...rest } = props;
|
|
@@ -1011,8 +931,7 @@ function Positioner$5(props) {
|
|
|
1011
931
|
children
|
|
1012
932
|
});
|
|
1013
933
|
}
|
|
1014
|
-
|
|
1015
|
-
//#region src/components/date-picker/anatomy/preset-trigger.tsx
|
|
934
|
+
// src/components/date-picker/anatomy/preset-trigger.tsx
|
|
1016
935
|
function PresetTrigger(props) {
|
|
1017
936
|
const datePicker = use(DatePickerRootContext$1);
|
|
1018
937
|
const [presetTriggerProps, componentProps] = splitPresetTriggerProps(props);
|
|
@@ -1023,27 +942,26 @@ function PresetTrigger(props) {
|
|
|
1023
942
|
children
|
|
1024
943
|
});
|
|
1025
944
|
}
|
|
1026
|
-
|
|
1027
|
-
//#region src/internal/components/chevron-left.tsx
|
|
945
|
+
// src/internal/components/chevron-left.tsx
|
|
1028
946
|
function ChevronLeft(props) {
|
|
1029
947
|
const { ...rest } = props;
|
|
948
|
+
const attributes = mergeProps({
|
|
949
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
950
|
+
width: "24",
|
|
951
|
+
height: "24",
|
|
952
|
+
viewBox: "0 0 24 24",
|
|
953
|
+
fill: "none",
|
|
954
|
+
stroke: "currentColor",
|
|
955
|
+
strokeWidth: "2",
|
|
956
|
+
strokeLinecap: "round",
|
|
957
|
+
strokeLinejoin: "round"
|
|
958
|
+
}, rest);
|
|
1030
959
|
return /* @__PURE__ */ jsx("svg", {
|
|
1031
|
-
...
|
|
1032
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1033
|
-
width: "24",
|
|
1034
|
-
height: "24",
|
|
1035
|
-
viewBox: "0 0 24 24",
|
|
1036
|
-
fill: "none",
|
|
1037
|
-
stroke: "currentColor",
|
|
1038
|
-
strokeWidth: "2",
|
|
1039
|
-
strokeLinecap: "round",
|
|
1040
|
-
strokeLinejoin: "round"
|
|
1041
|
-
}, rest),
|
|
960
|
+
...attributes,
|
|
1042
961
|
children: /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" })
|
|
1043
962
|
});
|
|
1044
963
|
}
|
|
1045
|
-
|
|
1046
|
-
//#region src/components/date-picker/anatomy/prev-trigger.tsx
|
|
964
|
+
// src/components/date-picker/anatomy/prev-trigger.tsx
|
|
1047
965
|
function PrevTrigger$2(props) {
|
|
1048
966
|
const datePicker = use(DatePickerRootContext$1);
|
|
1049
967
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1054,8 +972,7 @@ function PrevTrigger$2(props) {
|
|
|
1054
972
|
children
|
|
1055
973
|
});
|
|
1056
974
|
}
|
|
1057
|
-
|
|
1058
|
-
//#region src/components/date-picker/anatomy/range-text.tsx
|
|
975
|
+
// src/components/date-picker/anatomy/range-text.tsx
|
|
1059
976
|
function RangeText(props) {
|
|
1060
977
|
const datePicker = use(DatePickerRootContext$1);
|
|
1061
978
|
const rangeText = Array.from(/* @__PURE__ */ new Set([datePicker.visibleRangeText.start, datePicker.visibleRangeText.end])).join(" - ");
|
|
@@ -1066,25 +983,23 @@ function RangeText(props) {
|
|
|
1066
983
|
children
|
|
1067
984
|
});
|
|
1068
985
|
}
|
|
1069
|
-
|
|
1070
|
-
//#region src/components/date-picker/anatomy/root-context.tsx
|
|
986
|
+
// src/components/date-picker/anatomy/root-context.tsx
|
|
1071
987
|
function DatePickerRootContext(props) {
|
|
1072
988
|
const datePicker = use(DatePickerRootContext$1);
|
|
1073
989
|
const { children } = props;
|
|
1074
990
|
return children(datePicker);
|
|
1075
991
|
}
|
|
1076
|
-
|
|
1077
|
-
//#region src/components/date-picker/modules/provider.ts
|
|
992
|
+
// src/components/date-picker/modules/provider.ts
|
|
1078
993
|
function useDatePicker(props = {}) {
|
|
1079
994
|
const locale = use(LocaleProviderRootContext);
|
|
1080
|
-
|
|
995
|
+
const service = useMachine(machine$6, {
|
|
1081
996
|
id: useId(),
|
|
1082
997
|
dir: locale.dir,
|
|
1083
998
|
...props
|
|
1084
|
-
})
|
|
999
|
+
});
|
|
1000
|
+
return connect$6(service, normalizeProps);
|
|
1085
1001
|
}
|
|
1086
|
-
|
|
1087
|
-
//#region src/components/date-picker/anatomy/root-provider.tsx
|
|
1002
|
+
// src/components/date-picker/anatomy/root-provider.tsx
|
|
1088
1003
|
function RootProvider$16(props) {
|
|
1089
1004
|
const { element, children, value: datePicker, ...rest } = props;
|
|
1090
1005
|
const attributes = mergeProps(datePicker.getRootProps(), rest);
|
|
@@ -1096,8 +1011,7 @@ function RootProvider$16(props) {
|
|
|
1096
1011
|
})
|
|
1097
1012
|
});
|
|
1098
1013
|
}
|
|
1099
|
-
|
|
1100
|
-
//#region src/components/date-picker/anatomy/root.tsx
|
|
1014
|
+
// src/components/date-picker/anatomy/root.tsx
|
|
1101
1015
|
function Root$18(props) {
|
|
1102
1016
|
const [datePickerProps, componentProps] = splitProps$6(props);
|
|
1103
1017
|
const { element, children, ...rest } = componentProps;
|
|
@@ -1111,8 +1025,7 @@ function Root$18(props) {
|
|
|
1111
1025
|
})
|
|
1112
1026
|
});
|
|
1113
1027
|
}
|
|
1114
|
-
|
|
1115
|
-
//#region src/components/date-picker/anatomy/table-body.tsx
|
|
1028
|
+
// src/components/date-picker/anatomy/table-body.tsx
|
|
1116
1029
|
function TableBody(props) {
|
|
1117
1030
|
const datePicker = use(DatePickerRootContext$1);
|
|
1118
1031
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1123,11 +1036,9 @@ function TableBody(props) {
|
|
|
1123
1036
|
children
|
|
1124
1037
|
});
|
|
1125
1038
|
}
|
|
1126
|
-
|
|
1127
|
-
//#region src/components/date-picker/modules/table-cell-context.ts
|
|
1039
|
+
// src/components/date-picker/modules/table-cell-context.ts
|
|
1128
1040
|
const DatePickerTableCellContext = createContext$1();
|
|
1129
|
-
|
|
1130
|
-
//#region src/components/date-picker/anatomy/table-cell-trigger.tsx
|
|
1041
|
+
// src/components/date-picker/anatomy/table-cell-trigger.tsx
|
|
1131
1042
|
function TableCellTrigger(props) {
|
|
1132
1043
|
const datePicker = use(DatePickerRootContext$1);
|
|
1133
1044
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1146,8 +1057,7 @@ function TableCellTrigger(props) {
|
|
|
1146
1057
|
children
|
|
1147
1058
|
});
|
|
1148
1059
|
}
|
|
1149
|
-
|
|
1150
|
-
//#region src/components/date-picker/anatomy/table-cell.tsx
|
|
1060
|
+
// src/components/date-picker/anatomy/table-cell.tsx
|
|
1151
1061
|
function TableCell(props) {
|
|
1152
1062
|
const datePicker = use(DatePickerRootContext$1);
|
|
1153
1063
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1169,8 +1079,7 @@ function TableCell(props) {
|
|
|
1169
1079
|
})
|
|
1170
1080
|
});
|
|
1171
1081
|
}
|
|
1172
|
-
|
|
1173
|
-
//#region src/components/date-picker/anatomy/table-head.tsx
|
|
1082
|
+
// src/components/date-picker/anatomy/table-head.tsx
|
|
1174
1083
|
function TableHead(props) {
|
|
1175
1084
|
const datePicker = use(DatePickerRootContext$1);
|
|
1176
1085
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1181,8 +1090,7 @@ function TableHead(props) {
|
|
|
1181
1090
|
children
|
|
1182
1091
|
});
|
|
1183
1092
|
}
|
|
1184
|
-
|
|
1185
|
-
//#region src/components/date-picker/anatomy/table-header.tsx
|
|
1093
|
+
// src/components/date-picker/anatomy/table-header.tsx
|
|
1186
1094
|
function TableHeader(props) {
|
|
1187
1095
|
const datePicker = use(DatePickerRootContext$1);
|
|
1188
1096
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1193,8 +1101,7 @@ function TableHeader(props) {
|
|
|
1193
1101
|
children
|
|
1194
1102
|
});
|
|
1195
1103
|
}
|
|
1196
|
-
|
|
1197
|
-
//#region src/components/date-picker/anatomy/table-row.tsx
|
|
1104
|
+
// src/components/date-picker/anatomy/table-row.tsx
|
|
1198
1105
|
function TableRow(props) {
|
|
1199
1106
|
const datePicker = use(DatePickerRootContext$1);
|
|
1200
1107
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1205,8 +1112,7 @@ function TableRow(props) {
|
|
|
1205
1112
|
children
|
|
1206
1113
|
});
|
|
1207
1114
|
}
|
|
1208
|
-
|
|
1209
|
-
//#region src/components/date-picker/anatomy/table.tsx
|
|
1115
|
+
// src/components/date-picker/anatomy/table.tsx
|
|
1210
1116
|
function Table(props) {
|
|
1211
1117
|
const datePicker = use(DatePickerRootContext$1);
|
|
1212
1118
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1217,22 +1123,22 @@ function Table(props) {
|
|
|
1217
1123
|
children
|
|
1218
1124
|
});
|
|
1219
1125
|
}
|
|
1220
|
-
|
|
1221
|
-
//#region src/internal/components/calendar.tsx
|
|
1126
|
+
// src/internal/components/calendar.tsx
|
|
1222
1127
|
function Calendar(props) {
|
|
1223
1128
|
const { ...rest } = props;
|
|
1129
|
+
const attributes = mergeProps({
|
|
1130
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1131
|
+
width: "24",
|
|
1132
|
+
height: "24",
|
|
1133
|
+
viewBox: "0 0 24 24",
|
|
1134
|
+
fill: "none",
|
|
1135
|
+
stroke: "currentColor",
|
|
1136
|
+
strokeWidth: "2",
|
|
1137
|
+
strokeLinecap: "round",
|
|
1138
|
+
strokeLinejoin: "round"
|
|
1139
|
+
}, rest);
|
|
1224
1140
|
return /* @__PURE__ */ jsxs("svg", {
|
|
1225
|
-
...
|
|
1226
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1227
|
-
width: "24",
|
|
1228
|
-
height: "24",
|
|
1229
|
-
viewBox: "0 0 24 24",
|
|
1230
|
-
fill: "none",
|
|
1231
|
-
stroke: "currentColor",
|
|
1232
|
-
strokeWidth: "2",
|
|
1233
|
-
strokeLinecap: "round",
|
|
1234
|
-
strokeLinejoin: "round"
|
|
1235
|
-
}, rest),
|
|
1141
|
+
...attributes,
|
|
1236
1142
|
children: [
|
|
1237
1143
|
/* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
|
|
1238
1144
|
/* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
|
|
@@ -1247,8 +1153,7 @@ function Calendar(props) {
|
|
|
1247
1153
|
]
|
|
1248
1154
|
});
|
|
1249
1155
|
}
|
|
1250
|
-
|
|
1251
|
-
//#region src/components/date-picker/anatomy/trigger.tsx
|
|
1156
|
+
// src/components/date-picker/anatomy/trigger.tsx
|
|
1252
1157
|
function Trigger$8(props) {
|
|
1253
1158
|
const datePicker = use(DatePickerRootContext$1);
|
|
1254
1159
|
const { element, children = /* @__PURE__ */ jsx(Calendar, {}), ...rest } = props;
|
|
@@ -1258,8 +1163,7 @@ function Trigger$8(props) {
|
|
|
1258
1163
|
children
|
|
1259
1164
|
});
|
|
1260
1165
|
}
|
|
1261
|
-
|
|
1262
|
-
//#region src/components/date-picker/anatomy/view-control.tsx
|
|
1166
|
+
// src/components/date-picker/anatomy/view-control.tsx
|
|
1263
1167
|
function ViewControl(props) {
|
|
1264
1168
|
const datePicker = use(DatePickerRootContext$1);
|
|
1265
1169
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1270,8 +1174,7 @@ function ViewControl(props) {
|
|
|
1270
1174
|
children
|
|
1271
1175
|
});
|
|
1272
1176
|
}
|
|
1273
|
-
|
|
1274
|
-
//#region src/components/date-picker/anatomy/view-trigger.tsx
|
|
1177
|
+
// src/components/date-picker/anatomy/view-trigger.tsx
|
|
1275
1178
|
function ViewTrigger(props) {
|
|
1276
1179
|
const datePicker = use(DatePickerRootContext$1);
|
|
1277
1180
|
const viewProps = use(DatePickerViewContext);
|
|
@@ -1282,8 +1185,7 @@ function ViewTrigger(props) {
|
|
|
1282
1185
|
children
|
|
1283
1186
|
});
|
|
1284
1187
|
}
|
|
1285
|
-
|
|
1286
|
-
//#region src/components/date-picker/anatomy/view.tsx
|
|
1188
|
+
// src/components/date-picker/anatomy/view.tsx
|
|
1287
1189
|
function View(props) {
|
|
1288
1190
|
const datePicker = use(DatePickerRootContext$1);
|
|
1289
1191
|
const [viewProps, componentProps] = splitViewProps(props);
|
|
@@ -1297,8 +1199,7 @@ function View(props) {
|
|
|
1297
1199
|
})
|
|
1298
1200
|
});
|
|
1299
1201
|
}
|
|
1300
|
-
|
|
1301
|
-
//#region src/components/date-picker/anatomy/year-select.tsx
|
|
1202
|
+
// src/components/date-picker/anatomy/year-select.tsx
|
|
1302
1203
|
function YearSelect(props) {
|
|
1303
1204
|
const datePicker = use(DatePickerRootContext$1);
|
|
1304
1205
|
const { element, ...rest } = props;
|
|
@@ -1311,8 +1212,7 @@ function YearSelect(props) {
|
|
|
1311
1212
|
}, i))
|
|
1312
1213
|
});
|
|
1313
1214
|
}
|
|
1314
|
-
|
|
1315
|
-
//#region src/components/date-picker/modules/anatomy.ts
|
|
1215
|
+
// src/components/date-picker/modules/anatomy.ts
|
|
1316
1216
|
const DatePicker = Object.assign(Root$18, {
|
|
1317
1217
|
Provider: RootProvider$16,
|
|
1318
1218
|
Context: DatePickerRootContext,
|
|
@@ -1339,19 +1239,16 @@ const DatePicker = Object.assign(Root$18, {
|
|
|
1339
1239
|
TableCell,
|
|
1340
1240
|
TableCellTrigger
|
|
1341
1241
|
});
|
|
1342
|
-
|
|
1343
|
-
//#region src/components/dialog/modules/root-context.ts
|
|
1242
|
+
// src/components/dialog/modules/root-context.ts
|
|
1344
1243
|
const DialogRootContext$1 = createContext$1();
|
|
1345
|
-
|
|
1346
|
-
//#region src/components/dialog/anatomy/backdrop.tsx
|
|
1244
|
+
// src/components/dialog/anatomy/backdrop.tsx
|
|
1347
1245
|
function Backdrop(props) {
|
|
1348
1246
|
const dialog = use(DialogRootContext$1);
|
|
1349
1247
|
const { element, ...rest } = props;
|
|
1350
1248
|
const attributes = mergeProps(dialog.getBackdropProps(), rest);
|
|
1351
1249
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
1352
1250
|
}
|
|
1353
|
-
|
|
1354
|
-
//#region src/components/dialog/anatomy/close-trigger.tsx
|
|
1251
|
+
// src/components/dialog/anatomy/close-trigger.tsx
|
|
1355
1252
|
function CloseTrigger$3(props) {
|
|
1356
1253
|
const dialog = use(DialogRootContext$1);
|
|
1357
1254
|
const { element, children, ...rest } = props;
|
|
@@ -1361,8 +1258,7 @@ function CloseTrigger$3(props) {
|
|
|
1361
1258
|
children
|
|
1362
1259
|
});
|
|
1363
1260
|
}
|
|
1364
|
-
|
|
1365
|
-
//#region src/components/dialog/anatomy/content.tsx
|
|
1261
|
+
// src/components/dialog/anatomy/content.tsx
|
|
1366
1262
|
function Content$7(props) {
|
|
1367
1263
|
const dialog = use(DialogRootContext$1);
|
|
1368
1264
|
const { element, children, ...rest } = props;
|
|
@@ -1372,8 +1268,7 @@ function Content$7(props) {
|
|
|
1372
1268
|
children
|
|
1373
1269
|
});
|
|
1374
1270
|
}
|
|
1375
|
-
|
|
1376
|
-
//#region src/components/dialog/anatomy/description.tsx
|
|
1271
|
+
// src/components/dialog/anatomy/description.tsx
|
|
1377
1272
|
function Description$2(props) {
|
|
1378
1273
|
const dialog = use(DialogRootContext$1);
|
|
1379
1274
|
const { element, children, ...rest } = props;
|
|
@@ -1383,8 +1278,7 @@ function Description$2(props) {
|
|
|
1383
1278
|
children
|
|
1384
1279
|
});
|
|
1385
1280
|
}
|
|
1386
|
-
|
|
1387
|
-
//#region src/components/dialog/anatomy/positioner.tsx
|
|
1281
|
+
// src/components/dialog/anatomy/positioner.tsx
|
|
1388
1282
|
function Positioner$4(props) {
|
|
1389
1283
|
const dialog = use(DialogRootContext$1);
|
|
1390
1284
|
const { element, children, ...rest } = props;
|
|
@@ -1394,15 +1288,13 @@ function Positioner$4(props) {
|
|
|
1394
1288
|
children
|
|
1395
1289
|
});
|
|
1396
1290
|
}
|
|
1397
|
-
|
|
1398
|
-
//#region src/components/dialog/anatomy/root-context.tsx
|
|
1291
|
+
// src/components/dialog/anatomy/root-context.tsx
|
|
1399
1292
|
function DialogRootContext(props) {
|
|
1400
1293
|
const dialog = use(DialogRootContext$1);
|
|
1401
1294
|
const { children } = props;
|
|
1402
1295
|
return children(dialog);
|
|
1403
1296
|
}
|
|
1404
|
-
|
|
1405
|
-
//#region src/components/dialog/anatomy/root-provider.tsx
|
|
1297
|
+
// src/components/dialog/anatomy/root-provider.tsx
|
|
1406
1298
|
function RootProvider$15(props) {
|
|
1407
1299
|
const { children, value: dialog } = props;
|
|
1408
1300
|
return /* @__PURE__ */ jsx(DialogRootContext$1.Provider, {
|
|
@@ -1410,18 +1302,17 @@ function RootProvider$15(props) {
|
|
|
1410
1302
|
children
|
|
1411
1303
|
});
|
|
1412
1304
|
}
|
|
1413
|
-
|
|
1414
|
-
//#region src/components/dialog/modules/provider.ts
|
|
1305
|
+
// src/components/dialog/modules/provider.ts
|
|
1415
1306
|
function useDialog(props = {}) {
|
|
1416
1307
|
const locale = use(LocaleProviderRootContext);
|
|
1417
|
-
|
|
1308
|
+
const service = useMachine(machine$7, {
|
|
1418
1309
|
id: useId(),
|
|
1419
1310
|
dir: locale.dir,
|
|
1420
1311
|
...props
|
|
1421
|
-
})
|
|
1312
|
+
});
|
|
1313
|
+
return connect$7(service, normalizeProps);
|
|
1422
1314
|
}
|
|
1423
|
-
|
|
1424
|
-
//#region src/components/dialog/anatomy/root.tsx
|
|
1315
|
+
// src/components/dialog/anatomy/root.tsx
|
|
1425
1316
|
function Root$17(props) {
|
|
1426
1317
|
const [dialogProps, componentProps] = splitProps$7(props);
|
|
1427
1318
|
const { children } = componentProps;
|
|
@@ -1431,8 +1322,7 @@ function Root$17(props) {
|
|
|
1431
1322
|
children
|
|
1432
1323
|
});
|
|
1433
1324
|
}
|
|
1434
|
-
|
|
1435
|
-
//#region src/components/dialog/anatomy/title.tsx
|
|
1325
|
+
// src/components/dialog/anatomy/title.tsx
|
|
1436
1326
|
function Title$3(props) {
|
|
1437
1327
|
const dialog = use(DialogRootContext$1);
|
|
1438
1328
|
const { element, children, ...rest } = props;
|
|
@@ -1442,8 +1332,7 @@ function Title$3(props) {
|
|
|
1442
1332
|
children
|
|
1443
1333
|
});
|
|
1444
1334
|
}
|
|
1445
|
-
|
|
1446
|
-
//#region src/components/dialog/anatomy/trigger.tsx
|
|
1335
|
+
// src/components/dialog/anatomy/trigger.tsx
|
|
1447
1336
|
function Trigger$7(props) {
|
|
1448
1337
|
const dialog = use(DialogRootContext$1);
|
|
1449
1338
|
const { element, children, ...rest } = props;
|
|
@@ -1453,8 +1342,7 @@ function Trigger$7(props) {
|
|
|
1453
1342
|
children
|
|
1454
1343
|
});
|
|
1455
1344
|
}
|
|
1456
|
-
|
|
1457
|
-
//#region src/components/dialog/modules/anatomy.ts
|
|
1345
|
+
// src/components/dialog/modules/anatomy.ts
|
|
1458
1346
|
const Dialog = Object.assign(Root$17, {
|
|
1459
1347
|
Provider: RootProvider$15,
|
|
1460
1348
|
Context: DialogRootContext,
|
|
@@ -1466,11 +1354,9 @@ const Dialog = Object.assign(Root$17, {
|
|
|
1466
1354
|
Description: Description$2,
|
|
1467
1355
|
CloseTrigger: CloseTrigger$3
|
|
1468
1356
|
});
|
|
1469
|
-
|
|
1470
|
-
//#region src/components/file-upload/modules/root-context.ts
|
|
1357
|
+
// src/components/file-upload/modules/root-context.ts
|
|
1471
1358
|
const FileUploadRootContext$1 = createContext$1();
|
|
1472
|
-
|
|
1473
|
-
//#region src/components/file-upload/anatomy/clear-trigger.tsx
|
|
1359
|
+
// src/components/file-upload/anatomy/clear-trigger.tsx
|
|
1474
1360
|
function ClearTrigger$1(props) {
|
|
1475
1361
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1476
1362
|
const { element, children, ...rest } = props;
|
|
@@ -1480,8 +1366,7 @@ function ClearTrigger$1(props) {
|
|
|
1480
1366
|
children
|
|
1481
1367
|
});
|
|
1482
1368
|
}
|
|
1483
|
-
|
|
1484
|
-
//#region src/components/file-upload/anatomy/dropzone.tsx
|
|
1369
|
+
// src/components/file-upload/anatomy/dropzone.tsx
|
|
1485
1370
|
function Dropzone(props) {
|
|
1486
1371
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1487
1372
|
const { element, children, ...rest } = props;
|
|
@@ -1491,19 +1376,16 @@ function Dropzone(props) {
|
|
|
1491
1376
|
children
|
|
1492
1377
|
});
|
|
1493
1378
|
}
|
|
1494
|
-
|
|
1495
|
-
//#region src/components/file-upload/anatomy/hidden-input.tsx
|
|
1379
|
+
// src/components/file-upload/anatomy/hidden-input.tsx
|
|
1496
1380
|
function HiddenInput$4(props) {
|
|
1497
1381
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1498
1382
|
const { element, ...rest } = props;
|
|
1499
1383
|
const attributes = mergeProps(fileUpload.getHiddenInputProps(), rest);
|
|
1500
1384
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
1501
1385
|
}
|
|
1502
|
-
|
|
1503
|
-
//#region src/components/file-upload/modules/item-context.ts
|
|
1386
|
+
// src/components/file-upload/modules/item-context.ts
|
|
1504
1387
|
const FileUploadItemContext = createContext$1();
|
|
1505
|
-
|
|
1506
|
-
//#region src/components/file-upload/anatomy/item-delete-trigger.tsx
|
|
1388
|
+
// src/components/file-upload/anatomy/item-delete-trigger.tsx
|
|
1507
1389
|
function ItemDeleteTrigger$1(props) {
|
|
1508
1390
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1509
1391
|
const itemProps = use(FileUploadItemContext);
|
|
@@ -1514,8 +1396,7 @@ function ItemDeleteTrigger$1(props) {
|
|
|
1514
1396
|
children
|
|
1515
1397
|
});
|
|
1516
1398
|
}
|
|
1517
|
-
|
|
1518
|
-
//#region src/components/file-upload/anatomy/item-group.tsx
|
|
1399
|
+
// src/components/file-upload/anatomy/item-group.tsx
|
|
1519
1400
|
function ItemGroup$2(props) {
|
|
1520
1401
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1521
1402
|
const { element, children, ...rest } = props;
|
|
@@ -1525,8 +1406,7 @@ function ItemGroup$2(props) {
|
|
|
1525
1406
|
children
|
|
1526
1407
|
});
|
|
1527
1408
|
}
|
|
1528
|
-
|
|
1529
|
-
//#region src/components/file-upload/anatomy/item-name.tsx
|
|
1409
|
+
// src/components/file-upload/anatomy/item-name.tsx
|
|
1530
1410
|
function ItemName(props) {
|
|
1531
1411
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1532
1412
|
const itemProps = use(FileUploadItemContext);
|
|
@@ -1537,8 +1417,7 @@ function ItemName(props) {
|
|
|
1537
1417
|
children
|
|
1538
1418
|
});
|
|
1539
1419
|
}
|
|
1540
|
-
|
|
1541
|
-
//#region src/components/file-upload/anatomy/item-size-text.tsx
|
|
1420
|
+
// src/components/file-upload/anatomy/item-size-text.tsx
|
|
1542
1421
|
function ItemSizeText(props) {
|
|
1543
1422
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1544
1423
|
const itemProps = use(FileUploadItemContext);
|
|
@@ -1549,8 +1428,7 @@ function ItemSizeText(props) {
|
|
|
1549
1428
|
children
|
|
1550
1429
|
});
|
|
1551
1430
|
}
|
|
1552
|
-
|
|
1553
|
-
//#region src/components/file-upload/anatomy/item.tsx
|
|
1431
|
+
// src/components/file-upload/anatomy/item.tsx
|
|
1554
1432
|
function Item$9(props) {
|
|
1555
1433
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1556
1434
|
const [itemProps, componentProps] = splitItemProps$3(props);
|
|
@@ -1564,8 +1442,7 @@ function Item$9(props) {
|
|
|
1564
1442
|
})
|
|
1565
1443
|
});
|
|
1566
1444
|
}
|
|
1567
|
-
|
|
1568
|
-
//#region src/components/file-upload/anatomy/label.tsx
|
|
1445
|
+
// src/components/file-upload/anatomy/label.tsx
|
|
1569
1446
|
function Label$8(props) {
|
|
1570
1447
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1571
1448
|
const { element, children, ...rest } = props;
|
|
@@ -1575,15 +1452,13 @@ function Label$8(props) {
|
|
|
1575
1452
|
children
|
|
1576
1453
|
});
|
|
1577
1454
|
}
|
|
1578
|
-
|
|
1579
|
-
//#region src/components/file-upload/anatomy/root-context.tsx
|
|
1455
|
+
// src/components/file-upload/anatomy/root-context.tsx
|
|
1580
1456
|
function FileUploadRootContext(props) {
|
|
1581
1457
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1582
1458
|
const { children } = props;
|
|
1583
1459
|
return children(fileUpload);
|
|
1584
1460
|
}
|
|
1585
|
-
|
|
1586
|
-
//#region src/components/file-upload/anatomy/root-provider.tsx
|
|
1461
|
+
// src/components/file-upload/anatomy/root-provider.tsx
|
|
1587
1462
|
function RootProvider$14(props) {
|
|
1588
1463
|
const { element, children, value: fileUpload, ...rest } = props;
|
|
1589
1464
|
const attributes = mergeProps(fileUpload.getRootProps(), rest);
|
|
@@ -1595,18 +1470,17 @@ function RootProvider$14(props) {
|
|
|
1595
1470
|
})
|
|
1596
1471
|
});
|
|
1597
1472
|
}
|
|
1598
|
-
|
|
1599
|
-
//#region src/components/file-upload/modules/provider.ts
|
|
1473
|
+
// src/components/file-upload/modules/provider.ts
|
|
1600
1474
|
function useFileUpload(props = {}) {
|
|
1601
1475
|
const locale = use(LocaleProviderRootContext);
|
|
1602
|
-
|
|
1476
|
+
const service = useMachine(machine$8, {
|
|
1603
1477
|
id: useId(),
|
|
1604
1478
|
dir: locale.dir,
|
|
1605
1479
|
...props
|
|
1606
|
-
})
|
|
1480
|
+
});
|
|
1481
|
+
return connect$8(service, normalizeProps);
|
|
1607
1482
|
}
|
|
1608
|
-
|
|
1609
|
-
//#region src/components/file-upload/anatomy/root.tsx
|
|
1483
|
+
// src/components/file-upload/anatomy/root.tsx
|
|
1610
1484
|
function Root$16(props) {
|
|
1611
1485
|
const [fileUploadProps, componentProps] = splitProps$8(props);
|
|
1612
1486
|
const { element, children, ...rest } = componentProps;
|
|
@@ -1620,8 +1494,7 @@ function Root$16(props) {
|
|
|
1620
1494
|
})
|
|
1621
1495
|
});
|
|
1622
1496
|
}
|
|
1623
|
-
|
|
1624
|
-
//#region src/components/file-upload/anatomy/trigger.tsx
|
|
1497
|
+
// src/components/file-upload/anatomy/trigger.tsx
|
|
1625
1498
|
function Trigger$6(props) {
|
|
1626
1499
|
const fileUpload = use(FileUploadRootContext$1);
|
|
1627
1500
|
const { element, children, ...rest } = props;
|
|
@@ -1631,8 +1504,7 @@ function Trigger$6(props) {
|
|
|
1631
1504
|
children
|
|
1632
1505
|
});
|
|
1633
1506
|
}
|
|
1634
|
-
|
|
1635
|
-
//#region src/components/file-upload/modules/anatomy.ts
|
|
1507
|
+
// src/components/file-upload/modules/anatomy.ts
|
|
1636
1508
|
const FileUpload = Object.assign(Root$16, {
|
|
1637
1509
|
Provider: RootProvider$14,
|
|
1638
1510
|
Context: FileUploadRootContext,
|
|
@@ -1647,11 +1519,9 @@ const FileUpload = Object.assign(Root$16, {
|
|
|
1647
1519
|
ItemSizeText,
|
|
1648
1520
|
ItemDeleteTrigger: ItemDeleteTrigger$1
|
|
1649
1521
|
});
|
|
1650
|
-
|
|
1651
|
-
//#region src/components/floating-panel/modules/root-context.ts
|
|
1522
|
+
// src/components/floating-panel/modules/root-context.ts
|
|
1652
1523
|
const FloatingPanelRootContext$1 = createContext$1();
|
|
1653
|
-
|
|
1654
|
-
//#region src/components/floating-panel/anatomy/body.tsx
|
|
1524
|
+
// src/components/floating-panel/anatomy/body.tsx
|
|
1655
1525
|
function Body(props) {
|
|
1656
1526
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1657
1527
|
const { element, children, ...rest } = props;
|
|
@@ -1661,8 +1531,7 @@ function Body(props) {
|
|
|
1661
1531
|
children
|
|
1662
1532
|
});
|
|
1663
1533
|
}
|
|
1664
|
-
|
|
1665
|
-
//#region src/components/floating-panel/anatomy/close-trigger.tsx
|
|
1534
|
+
// src/components/floating-panel/anatomy/close-trigger.tsx
|
|
1666
1535
|
function CloseTrigger$2(props) {
|
|
1667
1536
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1668
1537
|
const { element, children, ...rest } = props;
|
|
@@ -1672,8 +1541,7 @@ function CloseTrigger$2(props) {
|
|
|
1672
1541
|
children
|
|
1673
1542
|
});
|
|
1674
1543
|
}
|
|
1675
|
-
|
|
1676
|
-
//#region src/components/floating-panel/anatomy/content.tsx
|
|
1544
|
+
// src/components/floating-panel/anatomy/content.tsx
|
|
1677
1545
|
function Content$6(props) {
|
|
1678
1546
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1679
1547
|
const { element, children, ...rest } = props;
|
|
@@ -1683,8 +1551,7 @@ function Content$6(props) {
|
|
|
1683
1551
|
children
|
|
1684
1552
|
});
|
|
1685
1553
|
}
|
|
1686
|
-
|
|
1687
|
-
//#region src/components/floating-panel/anatomy/control.tsx
|
|
1554
|
+
// src/components/floating-panel/anatomy/control.tsx
|
|
1688
1555
|
function Control$5(props) {
|
|
1689
1556
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1690
1557
|
const { element, children, ...rest } = props;
|
|
@@ -1694,8 +1561,7 @@ function Control$5(props) {
|
|
|
1694
1561
|
children
|
|
1695
1562
|
});
|
|
1696
1563
|
}
|
|
1697
|
-
|
|
1698
|
-
//#region src/components/floating-panel/anatomy/drag-trigger.tsx
|
|
1564
|
+
// src/components/floating-panel/anatomy/drag-trigger.tsx
|
|
1699
1565
|
function DragTrigger(props) {
|
|
1700
1566
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1701
1567
|
const { element, children, ...rest } = props;
|
|
@@ -1705,8 +1571,7 @@ function DragTrigger(props) {
|
|
|
1705
1571
|
children
|
|
1706
1572
|
});
|
|
1707
1573
|
}
|
|
1708
|
-
|
|
1709
|
-
//#region src/components/floating-panel/anatomy/header.tsx
|
|
1574
|
+
// src/components/floating-panel/anatomy/header.tsx
|
|
1710
1575
|
function Header(props) {
|
|
1711
1576
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1712
1577
|
const { element, children, ...rest } = props;
|
|
@@ -1716,8 +1581,7 @@ function Header(props) {
|
|
|
1716
1581
|
children
|
|
1717
1582
|
});
|
|
1718
1583
|
}
|
|
1719
|
-
|
|
1720
|
-
//#region src/components/floating-panel/anatomy/positioner.tsx
|
|
1584
|
+
// src/components/floating-panel/anatomy/positioner.tsx
|
|
1721
1585
|
function Positioner$3(props) {
|
|
1722
1586
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1723
1587
|
const { element, children, ...rest } = props;
|
|
@@ -1727,8 +1591,7 @@ function Positioner$3(props) {
|
|
|
1727
1591
|
children
|
|
1728
1592
|
});
|
|
1729
1593
|
}
|
|
1730
|
-
|
|
1731
|
-
//#region src/components/floating-panel/anatomy/resize-trigger.tsx
|
|
1594
|
+
// src/components/floating-panel/anatomy/resize-trigger.tsx
|
|
1732
1595
|
function ResizeTrigger(props) {
|
|
1733
1596
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1734
1597
|
const [resizeTriggerProps, componentProps] = splitResizeTriggerProps(props);
|
|
@@ -1739,15 +1602,13 @@ function ResizeTrigger(props) {
|
|
|
1739
1602
|
children
|
|
1740
1603
|
});
|
|
1741
1604
|
}
|
|
1742
|
-
|
|
1743
|
-
//#region src/components/floating-panel/anatomy/root-context.tsx
|
|
1605
|
+
// src/components/floating-panel/anatomy/root-context.tsx
|
|
1744
1606
|
function FloatingPanelRootContext(props) {
|
|
1745
1607
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1746
1608
|
const { children } = props;
|
|
1747
1609
|
return children(floatingPanel);
|
|
1748
1610
|
}
|
|
1749
|
-
|
|
1750
|
-
//#region src/components/floating-panel/anatomy/root-provider.tsx
|
|
1611
|
+
// src/components/floating-panel/anatomy/root-provider.tsx
|
|
1751
1612
|
function RootProvider$13(props) {
|
|
1752
1613
|
const { children, value: floatingPanel } = props;
|
|
1753
1614
|
return /* @__PURE__ */ jsx(FloatingPanelRootContext$1.Provider, {
|
|
@@ -1755,18 +1616,17 @@ function RootProvider$13(props) {
|
|
|
1755
1616
|
children
|
|
1756
1617
|
});
|
|
1757
1618
|
}
|
|
1758
|
-
|
|
1759
|
-
//#region src/components/floating-panel/modules/provider.ts
|
|
1619
|
+
// src/components/floating-panel/modules/provider.ts
|
|
1760
1620
|
function useFloatingPanel(props = {}) {
|
|
1761
1621
|
const locale = use(LocaleProviderRootContext);
|
|
1762
|
-
|
|
1622
|
+
const service = useMachine(machine$9, {
|
|
1763
1623
|
id: useId(),
|
|
1764
1624
|
dir: locale.dir,
|
|
1765
1625
|
...props
|
|
1766
|
-
})
|
|
1626
|
+
});
|
|
1627
|
+
return connect$9(service, normalizeProps);
|
|
1767
1628
|
}
|
|
1768
|
-
|
|
1769
|
-
//#region src/components/floating-panel/anatomy/root.tsx
|
|
1629
|
+
// src/components/floating-panel/anatomy/root.tsx
|
|
1770
1630
|
function Root$15(props) {
|
|
1771
1631
|
const [floatingPanelProps, componentProps] = splitProps$9(props);
|
|
1772
1632
|
const { children } = componentProps;
|
|
@@ -1776,8 +1636,7 @@ function Root$15(props) {
|
|
|
1776
1636
|
children
|
|
1777
1637
|
});
|
|
1778
1638
|
}
|
|
1779
|
-
|
|
1780
|
-
//#region src/components/floating-panel/anatomy/stage-trigger.tsx
|
|
1639
|
+
// src/components/floating-panel/anatomy/stage-trigger.tsx
|
|
1781
1640
|
function StageTrigger(props) {
|
|
1782
1641
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1783
1642
|
const { element, children, stage, ...rest } = props;
|
|
@@ -1787,8 +1646,7 @@ function StageTrigger(props) {
|
|
|
1787
1646
|
children
|
|
1788
1647
|
});
|
|
1789
1648
|
}
|
|
1790
|
-
|
|
1791
|
-
//#region src/components/floating-panel/anatomy/title.tsx
|
|
1649
|
+
// src/components/floating-panel/anatomy/title.tsx
|
|
1792
1650
|
function Title$2(props) {
|
|
1793
1651
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1794
1652
|
const { element, children, ...rest } = props;
|
|
@@ -1798,8 +1656,7 @@ function Title$2(props) {
|
|
|
1798
1656
|
children
|
|
1799
1657
|
});
|
|
1800
1658
|
}
|
|
1801
|
-
|
|
1802
|
-
//#region src/components/floating-panel/anatomy/trigger.tsx
|
|
1659
|
+
// src/components/floating-panel/anatomy/trigger.tsx
|
|
1803
1660
|
function Trigger$5(props) {
|
|
1804
1661
|
const floatingPanel = use(FloatingPanelRootContext$1);
|
|
1805
1662
|
const { element, children, ...rest } = props;
|
|
@@ -1809,8 +1666,7 @@ function Trigger$5(props) {
|
|
|
1809
1666
|
children
|
|
1810
1667
|
});
|
|
1811
1668
|
}
|
|
1812
|
-
|
|
1813
|
-
//#region src/components/floating-panel/modules/anatomy.ts
|
|
1669
|
+
// src/components/floating-panel/modules/anatomy.ts
|
|
1814
1670
|
const FloatingPanel = Object.assign(Root$15, {
|
|
1815
1671
|
Provider: RootProvider$13,
|
|
1816
1672
|
Context: FloatingPanelRootContext,
|
|
@@ -1826,11 +1682,9 @@ const FloatingPanel = Object.assign(Root$15, {
|
|
|
1826
1682
|
Body,
|
|
1827
1683
|
ResizeTrigger
|
|
1828
1684
|
});
|
|
1829
|
-
|
|
1830
|
-
//#region src/components/listbox/modules/root-context.ts
|
|
1685
|
+
// src/components/listbox/modules/root-context.ts
|
|
1831
1686
|
const ListboxRootContext$1 = createContext$1();
|
|
1832
|
-
|
|
1833
|
-
//#region src/components/listbox/anatomy/content.tsx
|
|
1687
|
+
// src/components/listbox/anatomy/content.tsx
|
|
1834
1688
|
function Content$5(props) {
|
|
1835
1689
|
const listbox = use(ListboxRootContext$1);
|
|
1836
1690
|
const { element, children, ...rest } = props;
|
|
@@ -1840,23 +1694,21 @@ function Content$5(props) {
|
|
|
1840
1694
|
children
|
|
1841
1695
|
});
|
|
1842
1696
|
}
|
|
1843
|
-
|
|
1844
|
-
//#region src/components/listbox/anatomy/input.tsx
|
|
1697
|
+
// src/components/listbox/anatomy/input.tsx
|
|
1845
1698
|
function Input$1(props) {
|
|
1846
1699
|
const listbox = use(ListboxRootContext$1);
|
|
1847
1700
|
const { element, ...rest } = props;
|
|
1848
1701
|
const attributes = mergeProps(listbox.getInputProps(), rest);
|
|
1849
1702
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
1850
1703
|
}
|
|
1851
|
-
|
|
1852
|
-
//#region src/components/listbox/modules/item-group-context.ts
|
|
1704
|
+
// src/components/listbox/modules/item-group-context.ts
|
|
1853
1705
|
const ListboxItemGroupContext = createContext$1();
|
|
1854
|
-
|
|
1855
|
-
//#region src/components/listbox/anatomy/item-group-label.tsx
|
|
1706
|
+
// src/components/listbox/anatomy/item-group-label.tsx
|
|
1856
1707
|
function ItemGroupLabel$1(props) {
|
|
1857
1708
|
const listbox = use(ListboxRootContext$1);
|
|
1709
|
+
const itemGroupProps = use(ListboxItemGroupContext);
|
|
1858
1710
|
const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps$1({
|
|
1859
|
-
htmlFor:
|
|
1711
|
+
htmlFor: itemGroupProps.id,
|
|
1860
1712
|
...props
|
|
1861
1713
|
});
|
|
1862
1714
|
const { element, children, ...rest } = componentProps;
|
|
@@ -1866,8 +1718,7 @@ function ItemGroupLabel$1(props) {
|
|
|
1866
1718
|
children
|
|
1867
1719
|
});
|
|
1868
1720
|
}
|
|
1869
|
-
|
|
1870
|
-
//#region src/components/listbox/anatomy/item-group.tsx
|
|
1721
|
+
// src/components/listbox/anatomy/item-group.tsx
|
|
1871
1722
|
function ItemGroup$1(props) {
|
|
1872
1723
|
const listbox = use(ListboxRootContext$1);
|
|
1873
1724
|
const [itemGroupProps, componentProps] = splitItemGroupProps$1({
|
|
@@ -1884,11 +1735,9 @@ function ItemGroup$1(props) {
|
|
|
1884
1735
|
})
|
|
1885
1736
|
});
|
|
1886
1737
|
}
|
|
1887
|
-
|
|
1888
|
-
//#region src/components/listbox/modules/item-context.ts
|
|
1738
|
+
// src/components/listbox/modules/item-context.ts
|
|
1889
1739
|
const ListboxItemContext = createContext$1();
|
|
1890
|
-
|
|
1891
|
-
//#region src/components/listbox/anatomy/item-indicator.tsx
|
|
1740
|
+
// src/components/listbox/anatomy/item-indicator.tsx
|
|
1892
1741
|
function ItemIndicator$1(props) {
|
|
1893
1742
|
const listbox = use(ListboxRootContext$1);
|
|
1894
1743
|
const itemProps = use(ListboxItemContext);
|
|
@@ -1899,8 +1748,7 @@ function ItemIndicator$1(props) {
|
|
|
1899
1748
|
children
|
|
1900
1749
|
});
|
|
1901
1750
|
}
|
|
1902
|
-
|
|
1903
|
-
//#region src/components/listbox/anatomy/item-text.tsx
|
|
1751
|
+
// src/components/listbox/anatomy/item-text.tsx
|
|
1904
1752
|
function ItemText$3(props) {
|
|
1905
1753
|
const listbox = use(ListboxRootContext$1);
|
|
1906
1754
|
const itemProps = use(ListboxItemContext);
|
|
@@ -1911,8 +1759,7 @@ function ItemText$3(props) {
|
|
|
1911
1759
|
children
|
|
1912
1760
|
});
|
|
1913
1761
|
}
|
|
1914
|
-
|
|
1915
|
-
//#region src/components/listbox/anatomy/item.tsx
|
|
1762
|
+
// src/components/listbox/anatomy/item.tsx
|
|
1916
1763
|
function Item$8(props) {
|
|
1917
1764
|
const listbox = use(ListboxRootContext$1);
|
|
1918
1765
|
const [itemProps, componentProps] = splitItemProps$4(props);
|
|
@@ -1926,8 +1773,7 @@ function Item$8(props) {
|
|
|
1926
1773
|
})
|
|
1927
1774
|
});
|
|
1928
1775
|
}
|
|
1929
|
-
|
|
1930
|
-
//#region src/components/listbox/anatomy/label.tsx
|
|
1776
|
+
// src/components/listbox/anatomy/label.tsx
|
|
1931
1777
|
function Label$7(props) {
|
|
1932
1778
|
const listbox = use(ListboxRootContext$1);
|
|
1933
1779
|
const { element, children, ...rest } = props;
|
|
@@ -1937,25 +1783,23 @@ function Label$7(props) {
|
|
|
1937
1783
|
children
|
|
1938
1784
|
});
|
|
1939
1785
|
}
|
|
1940
|
-
|
|
1941
|
-
//#region src/components/listbox/anatomy/root-context.tsx
|
|
1786
|
+
// src/components/listbox/anatomy/root-context.tsx
|
|
1942
1787
|
function ListboxRootContext(props) {
|
|
1943
1788
|
const listbox = use(ListboxRootContext$1);
|
|
1944
1789
|
const { children } = props;
|
|
1945
1790
|
return children(listbox);
|
|
1946
1791
|
}
|
|
1947
|
-
|
|
1948
|
-
//#region src/components/listbox/modules/provider.ts
|
|
1792
|
+
// src/components/listbox/modules/provider.ts
|
|
1949
1793
|
function useListbox(props) {
|
|
1950
1794
|
const locale = use(LocaleProviderRootContext);
|
|
1951
|
-
|
|
1795
|
+
const service = useMachine(machine$10, {
|
|
1952
1796
|
id: useId(),
|
|
1953
1797
|
dir: locale.dir,
|
|
1954
1798
|
...props
|
|
1955
|
-
})
|
|
1799
|
+
});
|
|
1800
|
+
return connect$10(service, normalizeProps);
|
|
1956
1801
|
}
|
|
1957
|
-
|
|
1958
|
-
//#region src/components/listbox/anatomy/root-provider.tsx
|
|
1802
|
+
// src/components/listbox/anatomy/root-provider.tsx
|
|
1959
1803
|
function RootProvider$12(props) {
|
|
1960
1804
|
const { element, children, value: listbox, ...rest } = props;
|
|
1961
1805
|
const attributes = mergeProps(listbox.getRootProps(), rest);
|
|
@@ -1967,8 +1811,7 @@ function RootProvider$12(props) {
|
|
|
1967
1811
|
})
|
|
1968
1812
|
});
|
|
1969
1813
|
}
|
|
1970
|
-
|
|
1971
|
-
//#region src/components/listbox/anatomy/root.tsx
|
|
1814
|
+
// src/components/listbox/anatomy/root.tsx
|
|
1972
1815
|
function Root$14(props) {
|
|
1973
1816
|
const [listboxProps, componentProps] = splitProps$10(props);
|
|
1974
1817
|
const { element, children, ...rest } = componentProps;
|
|
@@ -1982,8 +1825,7 @@ function Root$14(props) {
|
|
|
1982
1825
|
})
|
|
1983
1826
|
});
|
|
1984
1827
|
}
|
|
1985
|
-
|
|
1986
|
-
//#region src/components/listbox/modules/anatomy.ts
|
|
1828
|
+
// src/components/listbox/modules/anatomy.ts
|
|
1987
1829
|
const Listbox = Object.assign(Root$14, {
|
|
1988
1830
|
Provider: RootProvider$12,
|
|
1989
1831
|
Context: ListboxRootContext,
|
|
@@ -1996,8 +1838,7 @@ const Listbox = Object.assign(Root$14, {
|
|
|
1996
1838
|
ItemText: ItemText$3,
|
|
1997
1839
|
ItemIndicator: ItemIndicator$1
|
|
1998
1840
|
});
|
|
1999
|
-
|
|
2000
|
-
//#region src/components/locale-provider/anatomy/root.tsx
|
|
1841
|
+
// src/components/locale-provider/anatomy/root.tsx
|
|
2001
1842
|
function Root$13(props) {
|
|
2002
1843
|
const { children, locale } = props;
|
|
2003
1844
|
return /* @__PURE__ */ jsx(LocaleProviderRootContext.Provider, {
|
|
@@ -2008,21 +1849,17 @@ function Root$13(props) {
|
|
|
2008
1849
|
children
|
|
2009
1850
|
});
|
|
2010
1851
|
}
|
|
2011
|
-
|
|
2012
|
-
//#region src/components/locale-provider/anatomy/root-context.tsx
|
|
1852
|
+
// src/components/locale-provider/anatomy/root-context.tsx
|
|
2013
1853
|
function RootContext(props) {
|
|
2014
1854
|
const locale = use(LocaleProviderRootContext);
|
|
2015
1855
|
const { children } = props;
|
|
2016
1856
|
return children(locale);
|
|
2017
1857
|
}
|
|
2018
|
-
|
|
2019
|
-
//#region src/components/locale-provider/modules/anatomy.ts
|
|
1858
|
+
// src/components/locale-provider/modules/anatomy.ts
|
|
2020
1859
|
const LocaleProvider = Object.assign(Root$13, { Context: RootContext });
|
|
2021
|
-
|
|
2022
|
-
//#region src/components/menu/modules/root-context.ts
|
|
1860
|
+
// src/components/menu/modules/root-context.ts
|
|
2023
1861
|
const MenuRootContext$1 = createContext$1();
|
|
2024
|
-
|
|
2025
|
-
//#region src/components/menu/anatomy/arrow-tip.tsx
|
|
1862
|
+
// src/components/menu/anatomy/arrow-tip.tsx
|
|
2026
1863
|
function ArrowTip$2(props) {
|
|
2027
1864
|
const menu = use(MenuRootContext$1);
|
|
2028
1865
|
const { element, children, ...rest } = props;
|
|
@@ -2032,8 +1869,7 @@ function ArrowTip$2(props) {
|
|
|
2032
1869
|
children
|
|
2033
1870
|
});
|
|
2034
1871
|
}
|
|
2035
|
-
|
|
2036
|
-
//#region src/components/menu/anatomy/arrow.tsx
|
|
1872
|
+
// src/components/menu/anatomy/arrow.tsx
|
|
2037
1873
|
function Arrow$2(props) {
|
|
2038
1874
|
const menu = use(MenuRootContext$1);
|
|
2039
1875
|
const { element, children, ...rest } = props;
|
|
@@ -2043,8 +1879,7 @@ function Arrow$2(props) {
|
|
|
2043
1879
|
children
|
|
2044
1880
|
});
|
|
2045
1881
|
}
|
|
2046
|
-
|
|
2047
|
-
//#region src/components/menu/anatomy/content.tsx
|
|
1882
|
+
// src/components/menu/anatomy/content.tsx
|
|
2048
1883
|
function Content$4(props) {
|
|
2049
1884
|
const menu = use(MenuRootContext$1);
|
|
2050
1885
|
const { element, children, ...rest } = props;
|
|
@@ -2054,8 +1889,7 @@ function Content$4(props) {
|
|
|
2054
1889
|
children
|
|
2055
1890
|
});
|
|
2056
1891
|
}
|
|
2057
|
-
|
|
2058
|
-
//#region src/components/menu/anatomy/context-trigger.tsx
|
|
1892
|
+
// src/components/menu/anatomy/context-trigger.tsx
|
|
2059
1893
|
function ContextTrigger(props) {
|
|
2060
1894
|
const menu = use(MenuRootContext$1);
|
|
2061
1895
|
const { element, children, ...rest } = props;
|
|
@@ -2065,8 +1899,7 @@ function ContextTrigger(props) {
|
|
|
2065
1899
|
children
|
|
2066
1900
|
});
|
|
2067
1901
|
}
|
|
2068
|
-
|
|
2069
|
-
//#region src/components/menu/anatomy/indicator.tsx
|
|
1902
|
+
// src/components/menu/anatomy/indicator.tsx
|
|
2070
1903
|
function Indicator$3(props) {
|
|
2071
1904
|
const menu = use(MenuRootContext$1);
|
|
2072
1905
|
const { element, children, ...rest } = props;
|
|
@@ -2076,15 +1909,14 @@ function Indicator$3(props) {
|
|
|
2076
1909
|
children
|
|
2077
1910
|
});
|
|
2078
1911
|
}
|
|
2079
|
-
|
|
2080
|
-
//#region src/components/menu/modules/item-group-context.ts
|
|
1912
|
+
// src/components/menu/modules/item-group-context.ts
|
|
2081
1913
|
const MenuItemGroupContext = createContext$1();
|
|
2082
|
-
|
|
2083
|
-
//#region src/components/menu/anatomy/item-group-label.tsx
|
|
1914
|
+
// src/components/menu/anatomy/item-group-label.tsx
|
|
2084
1915
|
function ItemGroupLabel(props) {
|
|
2085
1916
|
const menu = use(MenuRootContext$1);
|
|
1917
|
+
const itemGroupProps = use(MenuItemGroupContext);
|
|
2086
1918
|
const [labelProps, componentProps] = splitItemGroupLabelProps$2({
|
|
2087
|
-
htmlFor:
|
|
1919
|
+
htmlFor: itemGroupProps.id,
|
|
2088
1920
|
...props
|
|
2089
1921
|
});
|
|
2090
1922
|
const { element, children, ...rest } = componentProps;
|
|
@@ -2094,8 +1926,7 @@ function ItemGroupLabel(props) {
|
|
|
2094
1926
|
children
|
|
2095
1927
|
});
|
|
2096
1928
|
}
|
|
2097
|
-
|
|
2098
|
-
//#region src/components/menu/anatomy/item-group.tsx
|
|
1929
|
+
// src/components/menu/anatomy/item-group.tsx
|
|
2099
1930
|
function ItemGroup(props) {
|
|
2100
1931
|
const menu = use(MenuRootContext$1);
|
|
2101
1932
|
const [itemGroupProps, componentProps] = splitItemGroupProps$2({
|
|
@@ -2112,11 +1943,9 @@ function ItemGroup(props) {
|
|
|
2112
1943
|
})
|
|
2113
1944
|
});
|
|
2114
1945
|
}
|
|
2115
|
-
|
|
2116
|
-
//#region src/components/menu/modules/item-context.ts
|
|
1946
|
+
// src/components/menu/modules/item-context.ts
|
|
2117
1947
|
const MenuItemContext = createContext$1();
|
|
2118
|
-
|
|
2119
|
-
//#region src/components/menu/anatomy/item-indicator.tsx
|
|
1948
|
+
// src/components/menu/anatomy/item-indicator.tsx
|
|
2120
1949
|
function ItemIndicator(props) {
|
|
2121
1950
|
const menu = use(MenuRootContext$1);
|
|
2122
1951
|
const itemProps = use(MenuItemContext);
|
|
@@ -2127,8 +1956,7 @@ function ItemIndicator(props) {
|
|
|
2127
1956
|
children
|
|
2128
1957
|
});
|
|
2129
1958
|
}
|
|
2130
|
-
|
|
2131
|
-
//#region src/components/menu/anatomy/item-text.tsx
|
|
1959
|
+
// src/components/menu/anatomy/item-text.tsx
|
|
2132
1960
|
function ItemText$2(props) {
|
|
2133
1961
|
const menu = use(MenuRootContext$1);
|
|
2134
1962
|
const itemProps = use(MenuItemContext);
|
|
@@ -2139,8 +1967,7 @@ function ItemText$2(props) {
|
|
|
2139
1967
|
children
|
|
2140
1968
|
});
|
|
2141
1969
|
}
|
|
2142
|
-
|
|
2143
|
-
//#region src/components/menu/anatomy/item.tsx
|
|
1970
|
+
// src/components/menu/anatomy/item.tsx
|
|
2144
1971
|
function Item$7(props) {
|
|
2145
1972
|
const menu = use(MenuRootContext$1);
|
|
2146
1973
|
const [itemProps, componentProps] = splitItemProps$5(props);
|
|
@@ -2154,8 +1981,7 @@ function Item$7(props) {
|
|
|
2154
1981
|
})
|
|
2155
1982
|
});
|
|
2156
1983
|
}
|
|
2157
|
-
|
|
2158
|
-
//#region src/components/menu/anatomy/option-item.tsx
|
|
1984
|
+
// src/components/menu/anatomy/option-item.tsx
|
|
2159
1985
|
function OptionItem(props) {
|
|
2160
1986
|
const menu = use(MenuRootContext$1);
|
|
2161
1987
|
const [itemProps, componentProps] = splitOptionItemProps(props);
|
|
@@ -2169,8 +1995,7 @@ function OptionItem(props) {
|
|
|
2169
1995
|
})
|
|
2170
1996
|
});
|
|
2171
1997
|
}
|
|
2172
|
-
|
|
2173
|
-
//#region src/components/menu/anatomy/positioner.tsx
|
|
1998
|
+
// src/components/menu/anatomy/positioner.tsx
|
|
2174
1999
|
function Positioner$2(props) {
|
|
2175
2000
|
const menu = use(MenuRootContext$1);
|
|
2176
2001
|
const { element, children, ...rest } = props;
|
|
@@ -2180,18 +2005,15 @@ function Positioner$2(props) {
|
|
|
2180
2005
|
children
|
|
2181
2006
|
});
|
|
2182
2007
|
}
|
|
2183
|
-
|
|
2184
|
-
//#region src/components/menu/anatomy/root-context.tsx
|
|
2008
|
+
// src/components/menu/anatomy/root-context.tsx
|
|
2185
2009
|
function MenuRootContext(props) {
|
|
2186
2010
|
const menu = use(MenuRootContext$1);
|
|
2187
2011
|
const { children } = props;
|
|
2188
2012
|
return children(menu);
|
|
2189
2013
|
}
|
|
2190
|
-
|
|
2191
|
-
//#region src/components/menu/modules/trigger-item-context.ts
|
|
2014
|
+
// src/components/menu/modules/trigger-item-context.ts
|
|
2192
2015
|
const MenuTriggerItemContext = createContext$1();
|
|
2193
|
-
|
|
2194
|
-
//#region src/components/menu/anatomy/root-provider.tsx
|
|
2016
|
+
// src/components/menu/anatomy/root-provider.tsx
|
|
2195
2017
|
function RootProvider$11(props) {
|
|
2196
2018
|
const parentMenu = use(MenuRootContext$1);
|
|
2197
2019
|
const { children, value: menu } = props;
|
|
@@ -2208,8 +2030,7 @@ function RootProvider$11(props) {
|
|
|
2208
2030
|
})
|
|
2209
2031
|
});
|
|
2210
2032
|
}
|
|
2211
|
-
|
|
2212
|
-
//#region src/components/menu/modules/provider.ts
|
|
2033
|
+
// src/components/menu/modules/provider.ts
|
|
2213
2034
|
function useMenu(props = {}) {
|
|
2214
2035
|
const locale = use(LocaleProviderRootContext);
|
|
2215
2036
|
const service = useMachine(machine$11, {
|
|
@@ -2222,8 +2043,7 @@ function useMenu(props = {}) {
|
|
|
2222
2043
|
service
|
|
2223
2044
|
};
|
|
2224
2045
|
}
|
|
2225
|
-
|
|
2226
|
-
//#region src/components/menu/anatomy/root.tsx
|
|
2046
|
+
// src/components/menu/anatomy/root.tsx
|
|
2227
2047
|
function Root$12(props) {
|
|
2228
2048
|
const parentMenu = use(MenuRootContext$1);
|
|
2229
2049
|
const [menuProps, componentProps] = splitProps$11(props);
|
|
@@ -2242,16 +2062,14 @@ function Root$12(props) {
|
|
|
2242
2062
|
})
|
|
2243
2063
|
});
|
|
2244
2064
|
}
|
|
2245
|
-
|
|
2246
|
-
//#region src/components/menu/anatomy/separator.tsx
|
|
2065
|
+
// src/components/menu/anatomy/separator.tsx
|
|
2247
2066
|
function Separator$1(props) {
|
|
2248
2067
|
const menu = use(MenuRootContext$1);
|
|
2249
2068
|
const { element, ...rest } = props;
|
|
2250
2069
|
const attributes = mergeProps(menu.getSeparatorProps(), rest);
|
|
2251
2070
|
return element ? element(attributes) : /* @__PURE__ */ jsx("hr", { ...attributes });
|
|
2252
2071
|
}
|
|
2253
|
-
|
|
2254
|
-
//#region src/components/menu/anatomy/trigger-item.tsx
|
|
2072
|
+
// src/components/menu/anatomy/trigger-item.tsx
|
|
2255
2073
|
function TriggerItem(props) {
|
|
2256
2074
|
const triggerItemProps = use(MenuTriggerItemContext);
|
|
2257
2075
|
const [itemProps, componentProps] = splitItemProps$5(props);
|
|
@@ -2265,8 +2083,7 @@ function TriggerItem(props) {
|
|
|
2265
2083
|
})
|
|
2266
2084
|
});
|
|
2267
2085
|
}
|
|
2268
|
-
|
|
2269
|
-
//#region src/components/menu/anatomy/trigger.tsx
|
|
2086
|
+
// src/components/menu/anatomy/trigger.tsx
|
|
2270
2087
|
function Trigger$4(props) {
|
|
2271
2088
|
const menu = use(MenuRootContext$1);
|
|
2272
2089
|
const { element, children, ...rest } = props;
|
|
@@ -2276,8 +2093,7 @@ function Trigger$4(props) {
|
|
|
2276
2093
|
children
|
|
2277
2094
|
});
|
|
2278
2095
|
}
|
|
2279
|
-
|
|
2280
|
-
//#region src/components/menu/modules/anatomy.ts
|
|
2096
|
+
// src/components/menu/modules/anatomy.ts
|
|
2281
2097
|
const Menu = Object.assign(Root$12, {
|
|
2282
2098
|
Provider: RootProvider$11,
|
|
2283
2099
|
Context: MenuRootContext,
|
|
@@ -2297,101 +2113,100 @@ const Menu = Object.assign(Root$12, {
|
|
|
2297
2113
|
Arrow: Arrow$2,
|
|
2298
2114
|
ArrowTip: ArrowTip$2
|
|
2299
2115
|
});
|
|
2300
|
-
|
|
2301
|
-
//#region src/components/navigation/modules/root-context.ts
|
|
2116
|
+
// src/components/navigation/modules/root-context.ts
|
|
2302
2117
|
const NavigationRootContext = createContext$1();
|
|
2303
|
-
|
|
2304
|
-
//#region src/components/navigation/anatomy/content.tsx
|
|
2118
|
+
// src/components/navigation/anatomy/content.tsx
|
|
2305
2119
|
function NavigationContent(props) {
|
|
2306
2120
|
const { element, children, ...rest } = props;
|
|
2121
|
+
const navigation = use(NavigationRootContext);
|
|
2307
2122
|
const attributes = mergeProps({
|
|
2308
2123
|
"data-scope": "navigation",
|
|
2309
2124
|
"data-part": "content",
|
|
2310
|
-
"data-layout":
|
|
2125
|
+
"data-layout": navigation.layout
|
|
2311
2126
|
}, rest);
|
|
2312
2127
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2313
2128
|
...attributes,
|
|
2314
2129
|
children
|
|
2315
2130
|
});
|
|
2316
2131
|
}
|
|
2317
|
-
|
|
2318
|
-
//#region src/components/navigation/anatomy/footer.tsx
|
|
2132
|
+
// src/components/navigation/anatomy/footer.tsx
|
|
2319
2133
|
function NavigationFooter(props) {
|
|
2320
2134
|
const { element, children, ...rest } = props;
|
|
2135
|
+
const navigation = use(NavigationRootContext);
|
|
2321
2136
|
const attributes = mergeProps({
|
|
2322
2137
|
"data-scope": "navigation",
|
|
2323
2138
|
"data-part": "footer",
|
|
2324
|
-
"data-layout":
|
|
2139
|
+
"data-layout": navigation.layout
|
|
2325
2140
|
}, rest);
|
|
2326
2141
|
return element ? element(attributes) : /* @__PURE__ */ jsx("footer", {
|
|
2327
2142
|
...attributes,
|
|
2328
2143
|
children
|
|
2329
2144
|
});
|
|
2330
2145
|
}
|
|
2331
|
-
|
|
2332
|
-
//#region src/components/navigation/anatomy/group.tsx
|
|
2146
|
+
// src/components/navigation/anatomy/group.tsx
|
|
2333
2147
|
function NavigationGroup(props) {
|
|
2334
2148
|
const { element, children, ...rest } = props;
|
|
2149
|
+
const navigation = use(NavigationRootContext);
|
|
2335
2150
|
const attributes = mergeProps({
|
|
2336
2151
|
"data-scope": "navigation",
|
|
2337
2152
|
"data-part": "group",
|
|
2338
|
-
"data-layout":
|
|
2153
|
+
"data-layout": navigation.layout
|
|
2339
2154
|
}, rest);
|
|
2340
2155
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2341
2156
|
...attributes,
|
|
2342
2157
|
children
|
|
2343
2158
|
});
|
|
2344
2159
|
}
|
|
2345
|
-
|
|
2346
|
-
//#region src/components/navigation/anatomy/header.tsx
|
|
2160
|
+
// src/components/navigation/anatomy/header.tsx
|
|
2347
2161
|
function NavigationHeader(props) {
|
|
2348
2162
|
const { element, children, ...rest } = props;
|
|
2163
|
+
const navigation = use(NavigationRootContext);
|
|
2349
2164
|
const attributes = mergeProps({
|
|
2350
2165
|
"data-scope": "navigation",
|
|
2351
2166
|
"data-part": "header",
|
|
2352
|
-
"data-layout":
|
|
2167
|
+
"data-layout": navigation.layout
|
|
2353
2168
|
}, rest);
|
|
2354
2169
|
return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
|
|
2355
2170
|
...attributes,
|
|
2356
2171
|
children
|
|
2357
2172
|
});
|
|
2358
2173
|
}
|
|
2359
|
-
|
|
2360
|
-
//#region src/components/navigation/anatomy/label.tsx
|
|
2174
|
+
// src/components/navigation/anatomy/label.tsx
|
|
2361
2175
|
function NavigationLabel(props) {
|
|
2362
2176
|
const { element, children, ...rest } = props;
|
|
2177
|
+
const navigation = use(NavigationRootContext);
|
|
2363
2178
|
const attributes = mergeProps({
|
|
2364
2179
|
"data-scope": "navigation",
|
|
2365
2180
|
"data-part": "label",
|
|
2366
|
-
"data-layout":
|
|
2181
|
+
"data-layout": navigation.layout
|
|
2367
2182
|
}, rest);
|
|
2368
2183
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2369
2184
|
...attributes,
|
|
2370
2185
|
children
|
|
2371
2186
|
});
|
|
2372
2187
|
}
|
|
2373
|
-
|
|
2374
|
-
//#region src/components/navigation/anatomy/menu.tsx
|
|
2188
|
+
// src/components/navigation/anatomy/menu.tsx
|
|
2375
2189
|
function NavigationMenu(props) {
|
|
2376
2190
|
const { element, children, ...rest } = props;
|
|
2191
|
+
const navigation = use(NavigationRootContext);
|
|
2377
2192
|
const attributes = mergeProps({
|
|
2378
2193
|
"data-scope": "navigation",
|
|
2379
2194
|
"data-part": "menu",
|
|
2380
|
-
"data-layout":
|
|
2195
|
+
"data-layout": navigation.layout
|
|
2381
2196
|
}, rest);
|
|
2382
2197
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
|
|
2383
2198
|
...attributes,
|
|
2384
2199
|
children
|
|
2385
2200
|
});
|
|
2386
2201
|
}
|
|
2387
|
-
|
|
2388
|
-
//#region src/components/navigation/anatomy/trigger.tsx
|
|
2202
|
+
// src/components/navigation/anatomy/trigger.tsx
|
|
2389
2203
|
function NavigationTrigger(props) {
|
|
2390
2204
|
const { element, children, ...rest } = props;
|
|
2205
|
+
const navigation = use(NavigationRootContext);
|
|
2391
2206
|
const attributes = mergeProps({
|
|
2392
2207
|
"data-scope": "navigation",
|
|
2393
2208
|
"data-part": "trigger",
|
|
2394
|
-
"data-layout":
|
|
2209
|
+
"data-layout": navigation.layout,
|
|
2395
2210
|
type: "button"
|
|
2396
2211
|
}, rest);
|
|
2397
2212
|
return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
|
|
@@ -2399,40 +2214,40 @@ function NavigationTrigger(props) {
|
|
|
2399
2214
|
children
|
|
2400
2215
|
});
|
|
2401
2216
|
}
|
|
2402
|
-
|
|
2403
|
-
//#region src/components/navigation/anatomy/trigger-anchor.tsx
|
|
2217
|
+
// src/components/navigation/anatomy/trigger-anchor.tsx
|
|
2404
2218
|
function NavigationTriggerAnchor(props) {
|
|
2405
2219
|
const { element, children, ...rest } = props;
|
|
2220
|
+
const navigation = use(NavigationRootContext);
|
|
2406
2221
|
const attributes = mergeProps({
|
|
2407
2222
|
"data-scope": "navigation",
|
|
2408
2223
|
"data-part": "trigger-anchor",
|
|
2409
|
-
"data-layout":
|
|
2224
|
+
"data-layout": navigation.layout
|
|
2410
2225
|
}, rest);
|
|
2411
2226
|
return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
|
|
2412
2227
|
...attributes,
|
|
2413
2228
|
children
|
|
2414
2229
|
});
|
|
2415
2230
|
}
|
|
2416
|
-
|
|
2417
|
-
//#region src/components/navigation/anatomy/trigger-text.tsx
|
|
2231
|
+
// src/components/navigation/anatomy/trigger-text.tsx
|
|
2418
2232
|
function NavigationTriggerText(props) {
|
|
2419
2233
|
const { element, children, ...rest } = props;
|
|
2234
|
+
const navigation = use(NavigationRootContext);
|
|
2420
2235
|
const attributes = mergeProps({
|
|
2421
2236
|
"data-scope": "navigation",
|
|
2422
2237
|
"data-part": "trigger-text",
|
|
2423
|
-
"data-layout":
|
|
2238
|
+
"data-layout": navigation.layout
|
|
2424
2239
|
}, rest);
|
|
2425
2240
|
return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
|
|
2426
2241
|
...attributes,
|
|
2427
2242
|
children
|
|
2428
2243
|
});
|
|
2429
2244
|
}
|
|
2430
|
-
|
|
2431
|
-
//#region src/components/navigation/anatomy/root.tsx
|
|
2245
|
+
// src/components/navigation/anatomy/root.tsx
|
|
2432
2246
|
function NavigationRoot(props) {
|
|
2433
2247
|
const { layout = "bar", element, children, ...rest } = props;
|
|
2248
|
+
const locale = use(LocaleProviderRootContext);
|
|
2434
2249
|
const attributes = mergeProps({
|
|
2435
|
-
dir:
|
|
2250
|
+
dir: locale.dir,
|
|
2436
2251
|
"data-scope": "navigation",
|
|
2437
2252
|
"data-part": "root",
|
|
2438
2253
|
"data-layout": layout
|
|
@@ -2445,8 +2260,7 @@ function NavigationRoot(props) {
|
|
|
2445
2260
|
})
|
|
2446
2261
|
});
|
|
2447
2262
|
}
|
|
2448
|
-
|
|
2449
|
-
//#region src/components/navigation/modules/anatomy.ts
|
|
2263
|
+
// src/components/navigation/modules/anatomy.ts
|
|
2450
2264
|
const Navigation = Object.assign(NavigationRoot, {
|
|
2451
2265
|
Header: NavigationHeader,
|
|
2452
2266
|
Content: NavigationContent,
|
|
@@ -2458,11 +2272,9 @@ const Navigation = Object.assign(NavigationRoot, {
|
|
|
2458
2272
|
TriggerText: NavigationTriggerText,
|
|
2459
2273
|
Footer: NavigationFooter
|
|
2460
2274
|
});
|
|
2461
|
-
|
|
2462
|
-
//#region src/components/pagination/modules/root-context.ts
|
|
2275
|
+
// src/components/pagination/modules/root-context.ts
|
|
2463
2276
|
const PaginationRootContext$1 = createContext$1();
|
|
2464
|
-
|
|
2465
|
-
//#region src/components/pagination/anatomy/ellipsis.tsx
|
|
2277
|
+
// src/components/pagination/anatomy/ellipsis.tsx
|
|
2466
2278
|
function Ellipsis(props) {
|
|
2467
2279
|
const pagination = use(PaginationRootContext$1);
|
|
2468
2280
|
const [ellipsisProps, componentProps] = splitEllipsisProps(props);
|
|
@@ -2473,8 +2285,7 @@ function Ellipsis(props) {
|
|
|
2473
2285
|
children
|
|
2474
2286
|
});
|
|
2475
2287
|
}
|
|
2476
|
-
|
|
2477
|
-
//#region src/components/pagination/anatomy/first-trigger.tsx
|
|
2288
|
+
// src/components/pagination/anatomy/first-trigger.tsx
|
|
2478
2289
|
function FirstTrigger(props) {
|
|
2479
2290
|
const pagination = use(PaginationRootContext$1);
|
|
2480
2291
|
const { element, children, ...rest } = props;
|
|
@@ -2484,8 +2295,7 @@ function FirstTrigger(props) {
|
|
|
2484
2295
|
children
|
|
2485
2296
|
});
|
|
2486
2297
|
}
|
|
2487
|
-
|
|
2488
|
-
//#region src/components/pagination/anatomy/item.tsx
|
|
2298
|
+
// src/components/pagination/anatomy/item.tsx
|
|
2489
2299
|
function Item$6(props) {
|
|
2490
2300
|
const pagination = use(PaginationRootContext$1);
|
|
2491
2301
|
const [itemProps, componentProps] = splitItemProps$6(props);
|
|
@@ -2496,8 +2306,7 @@ function Item$6(props) {
|
|
|
2496
2306
|
children
|
|
2497
2307
|
});
|
|
2498
2308
|
}
|
|
2499
|
-
|
|
2500
|
-
//#region src/components/pagination/anatomy/last-trigger.tsx
|
|
2309
|
+
// src/components/pagination/anatomy/last-trigger.tsx
|
|
2501
2310
|
function LastTrigger(props) {
|
|
2502
2311
|
const pagination = use(PaginationRootContext$1);
|
|
2503
2312
|
const { element, children, ...rest } = props;
|
|
@@ -2507,8 +2316,7 @@ function LastTrigger(props) {
|
|
|
2507
2316
|
children
|
|
2508
2317
|
});
|
|
2509
2318
|
}
|
|
2510
|
-
|
|
2511
|
-
//#region src/components/pagination/anatomy/next-trigger.tsx
|
|
2319
|
+
// src/components/pagination/anatomy/next-trigger.tsx
|
|
2512
2320
|
function NextTrigger$1(props) {
|
|
2513
2321
|
const pagination = use(PaginationRootContext$1);
|
|
2514
2322
|
const { element, children, ...rest } = props;
|
|
@@ -2518,8 +2326,7 @@ function NextTrigger$1(props) {
|
|
|
2518
2326
|
children
|
|
2519
2327
|
});
|
|
2520
2328
|
}
|
|
2521
|
-
|
|
2522
|
-
//#region src/components/pagination/anatomy/prev-trigger.tsx
|
|
2329
|
+
// src/components/pagination/anatomy/prev-trigger.tsx
|
|
2523
2330
|
function PrevTrigger$1(props) {
|
|
2524
2331
|
const pagination = use(PaginationRootContext$1);
|
|
2525
2332
|
const { element, children, ...rest } = props;
|
|
@@ -2529,15 +2336,13 @@ function PrevTrigger$1(props) {
|
|
|
2529
2336
|
children
|
|
2530
2337
|
});
|
|
2531
2338
|
}
|
|
2532
|
-
|
|
2533
|
-
//#region src/components/pagination/anatomy/root-context.tsx
|
|
2339
|
+
// src/components/pagination/anatomy/root-context.tsx
|
|
2534
2340
|
function PaginationRootContext(props) {
|
|
2535
2341
|
const pagination = use(PaginationRootContext$1);
|
|
2536
2342
|
const { children } = props;
|
|
2537
2343
|
return children(pagination);
|
|
2538
2344
|
}
|
|
2539
|
-
|
|
2540
|
-
//#region src/components/pagination/anatomy/root-provider.tsx
|
|
2345
|
+
// src/components/pagination/anatomy/root-provider.tsx
|
|
2541
2346
|
function PaginationRootProvider(props) {
|
|
2542
2347
|
const { element, children, value: pagination, ...rest } = props;
|
|
2543
2348
|
const attributes = mergeProps(pagination.getRootProps(), rest);
|
|
@@ -2549,18 +2354,17 @@ function PaginationRootProvider(props) {
|
|
|
2549
2354
|
})
|
|
2550
2355
|
});
|
|
2551
2356
|
}
|
|
2552
|
-
|
|
2553
|
-
//#region src/components/pagination/modules/provider.ts
|
|
2357
|
+
// src/components/pagination/modules/provider.ts
|
|
2554
2358
|
function usePagination(props = {}) {
|
|
2555
2359
|
const locale = use(LocaleProviderRootContext);
|
|
2556
|
-
|
|
2360
|
+
const service = useMachine(machine$12, {
|
|
2557
2361
|
id: useId(),
|
|
2558
2362
|
dir: locale.dir,
|
|
2559
2363
|
...props
|
|
2560
|
-
})
|
|
2364
|
+
});
|
|
2365
|
+
return connect$12(service, normalizeProps);
|
|
2561
2366
|
}
|
|
2562
|
-
|
|
2563
|
-
//#region src/components/pagination/anatomy/root.tsx
|
|
2367
|
+
// src/components/pagination/anatomy/root.tsx
|
|
2564
2368
|
function PaginationRoot(props) {
|
|
2565
2369
|
const [paginationProps, componentProps] = splitProps$12(props);
|
|
2566
2370
|
const { element, children, ...rest } = componentProps;
|
|
@@ -2574,8 +2378,7 @@ function PaginationRoot(props) {
|
|
|
2574
2378
|
})
|
|
2575
2379
|
});
|
|
2576
2380
|
}
|
|
2577
|
-
|
|
2578
|
-
//#region src/components/pagination/modules/anatomy.ts
|
|
2381
|
+
// src/components/pagination/modules/anatomy.ts
|
|
2579
2382
|
const Pagination = Object.assign(PaginationRoot, {
|
|
2580
2383
|
Provider: PaginationRootProvider,
|
|
2581
2384
|
Context: PaginationRootContext,
|
|
@@ -2586,11 +2389,9 @@ const Pagination = Object.assign(PaginationRoot, {
|
|
|
2586
2389
|
NextTrigger: NextTrigger$1,
|
|
2587
2390
|
LastTrigger
|
|
2588
2391
|
});
|
|
2589
|
-
|
|
2590
|
-
//#region src/components/popover/modules/root-context.ts
|
|
2392
|
+
// src/components/popover/modules/root-context.ts
|
|
2591
2393
|
const PopoverRootContext$1 = createContext$1();
|
|
2592
|
-
|
|
2593
|
-
//#region src/components/popover/anatomy/anchor.tsx
|
|
2394
|
+
// src/components/popover/anatomy/anchor.tsx
|
|
2594
2395
|
function Anchor(props) {
|
|
2595
2396
|
const popover = use(PopoverRootContext$1);
|
|
2596
2397
|
const { element, children, ...rest } = props;
|
|
@@ -2600,8 +2401,7 @@ function Anchor(props) {
|
|
|
2600
2401
|
children
|
|
2601
2402
|
});
|
|
2602
2403
|
}
|
|
2603
|
-
|
|
2604
|
-
//#region src/components/popover/anatomy/arrow-tip.tsx
|
|
2404
|
+
// src/components/popover/anatomy/arrow-tip.tsx
|
|
2605
2405
|
function ArrowTip$1(props) {
|
|
2606
2406
|
const popover = use(PopoverRootContext$1);
|
|
2607
2407
|
const { element, children, ...rest } = props;
|
|
@@ -2611,8 +2411,7 @@ function ArrowTip$1(props) {
|
|
|
2611
2411
|
children
|
|
2612
2412
|
});
|
|
2613
2413
|
}
|
|
2614
|
-
|
|
2615
|
-
//#region src/components/popover/anatomy/arrow.tsx
|
|
2414
|
+
// src/components/popover/anatomy/arrow.tsx
|
|
2616
2415
|
function Arrow$1(props) {
|
|
2617
2416
|
const popover = use(PopoverRootContext$1);
|
|
2618
2417
|
const { element, children, ...rest } = props;
|
|
@@ -2622,8 +2421,7 @@ function Arrow$1(props) {
|
|
|
2622
2421
|
children
|
|
2623
2422
|
});
|
|
2624
2423
|
}
|
|
2625
|
-
|
|
2626
|
-
//#region src/components/popover/anatomy/close-trigger.tsx
|
|
2424
|
+
// src/components/popover/anatomy/close-trigger.tsx
|
|
2627
2425
|
function CloseTrigger$1(props) {
|
|
2628
2426
|
const popover = use(PopoverRootContext$1);
|
|
2629
2427
|
const { element, children, ...rest } = props;
|
|
@@ -2633,8 +2431,7 @@ function CloseTrigger$1(props) {
|
|
|
2633
2431
|
children
|
|
2634
2432
|
});
|
|
2635
2433
|
}
|
|
2636
|
-
|
|
2637
|
-
//#region src/components/popover/anatomy/content.tsx
|
|
2434
|
+
// src/components/popover/anatomy/content.tsx
|
|
2638
2435
|
function Content$3(props) {
|
|
2639
2436
|
const popover = use(PopoverRootContext$1);
|
|
2640
2437
|
const { element, children, ...rest } = props;
|
|
@@ -2644,8 +2441,7 @@ function Content$3(props) {
|
|
|
2644
2441
|
children
|
|
2645
2442
|
});
|
|
2646
2443
|
}
|
|
2647
|
-
|
|
2648
|
-
//#region src/components/popover/anatomy/description.tsx
|
|
2444
|
+
// src/components/popover/anatomy/description.tsx
|
|
2649
2445
|
function Description$1(props) {
|
|
2650
2446
|
const popover = use(PopoverRootContext$1);
|
|
2651
2447
|
const { element, children, ...rest } = props;
|
|
@@ -2655,8 +2451,7 @@ function Description$1(props) {
|
|
|
2655
2451
|
children
|
|
2656
2452
|
});
|
|
2657
2453
|
}
|
|
2658
|
-
|
|
2659
|
-
//#region src/components/popover/anatomy/positioner.tsx
|
|
2454
|
+
// src/components/popover/anatomy/positioner.tsx
|
|
2660
2455
|
function Positioner$1(props) {
|
|
2661
2456
|
const popover = use(PopoverRootContext$1);
|
|
2662
2457
|
const { element, children, ...rest } = props;
|
|
@@ -2666,15 +2461,13 @@ function Positioner$1(props) {
|
|
|
2666
2461
|
children
|
|
2667
2462
|
});
|
|
2668
2463
|
}
|
|
2669
|
-
|
|
2670
|
-
//#region src/components/popover/anatomy/root-context.tsx
|
|
2464
|
+
// src/components/popover/anatomy/root-context.tsx
|
|
2671
2465
|
function PopoverRootContext(props) {
|
|
2672
2466
|
const popover = use(PopoverRootContext$1);
|
|
2673
2467
|
const { children } = props;
|
|
2674
2468
|
return children(popover);
|
|
2675
2469
|
}
|
|
2676
|
-
|
|
2677
|
-
//#region src/components/popover/anatomy/root-provider.tsx
|
|
2470
|
+
// src/components/popover/anatomy/root-provider.tsx
|
|
2678
2471
|
function RootProvider$10(props) {
|
|
2679
2472
|
const { children, value: popover } = props;
|
|
2680
2473
|
return /* @__PURE__ */ jsx(PopoverRootContext$1.Provider, {
|
|
@@ -2682,18 +2475,17 @@ function RootProvider$10(props) {
|
|
|
2682
2475
|
children
|
|
2683
2476
|
});
|
|
2684
2477
|
}
|
|
2685
|
-
|
|
2686
|
-
//#region src/components/popover/modules/provider.ts
|
|
2478
|
+
// src/components/popover/modules/provider.ts
|
|
2687
2479
|
function usePopover(props = {}) {
|
|
2688
2480
|
const locale = use(LocaleProviderRootContext);
|
|
2689
|
-
|
|
2481
|
+
const service = useMachine(machine$13, {
|
|
2690
2482
|
id: useId(),
|
|
2691
2483
|
dir: locale.dir,
|
|
2692
2484
|
...props
|
|
2693
|
-
})
|
|
2485
|
+
});
|
|
2486
|
+
return connect$13(service, normalizeProps);
|
|
2694
2487
|
}
|
|
2695
|
-
|
|
2696
|
-
//#region src/components/popover/anatomy/root.tsx
|
|
2488
|
+
// src/components/popover/anatomy/root.tsx
|
|
2697
2489
|
function Root$11(props) {
|
|
2698
2490
|
const [popoverProps, componentProps] = splitProps$13(props);
|
|
2699
2491
|
const { children } = componentProps;
|
|
@@ -2703,8 +2495,7 @@ function Root$11(props) {
|
|
|
2703
2495
|
children
|
|
2704
2496
|
});
|
|
2705
2497
|
}
|
|
2706
|
-
|
|
2707
|
-
//#region src/components/popover/anatomy/title.tsx
|
|
2498
|
+
// src/components/popover/anatomy/title.tsx
|
|
2708
2499
|
function Title$1(props) {
|
|
2709
2500
|
const popover = use(PopoverRootContext$1);
|
|
2710
2501
|
const { element, children, ...rest } = props;
|
|
@@ -2714,8 +2505,7 @@ function Title$1(props) {
|
|
|
2714
2505
|
children
|
|
2715
2506
|
});
|
|
2716
2507
|
}
|
|
2717
|
-
|
|
2718
|
-
//#region src/components/popover/anatomy/trigger.tsx
|
|
2508
|
+
// src/components/popover/anatomy/trigger.tsx
|
|
2719
2509
|
function Trigger$3(props) {
|
|
2720
2510
|
const popover = use(PopoverRootContext$1);
|
|
2721
2511
|
const { element, children, ...rest } = props;
|
|
@@ -2725,8 +2515,7 @@ function Trigger$3(props) {
|
|
|
2725
2515
|
children
|
|
2726
2516
|
});
|
|
2727
2517
|
}
|
|
2728
|
-
|
|
2729
|
-
//#region src/components/popover/modules/anatomy.ts
|
|
2518
|
+
// src/components/popover/modules/anatomy.ts
|
|
2730
2519
|
const Popover = Object.assign(Root$11, {
|
|
2731
2520
|
Provider: RootProvider$10,
|
|
2732
2521
|
Context: PopoverRootContext,
|
|
@@ -2740,37 +2529,31 @@ const Popover = Object.assign(Root$11, {
|
|
|
2740
2529
|
Description: Description$1,
|
|
2741
2530
|
CloseTrigger: CloseTrigger$1
|
|
2742
2531
|
});
|
|
2743
|
-
|
|
2744
|
-
//#region src/components/portal/anatomy/root.tsx
|
|
2532
|
+
// src/components/portal/anatomy/root.tsx
|
|
2745
2533
|
function Root$10(props) {
|
|
2746
2534
|
const { children, disabled = false, target = typeof window === "undefined" ? void 0 : document.body } = props;
|
|
2747
2535
|
if (disabled || !target) return /* @__PURE__ */ jsx(Fragment, { children });
|
|
2748
2536
|
return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (child) => createPortal(child, target)) });
|
|
2749
2537
|
}
|
|
2750
|
-
|
|
2751
|
-
//#region src/components/portal/modules/anatomy.ts
|
|
2538
|
+
// src/components/portal/modules/anatomy.ts
|
|
2752
2539
|
const Portal = Root$10;
|
|
2753
|
-
|
|
2754
|
-
//#region src/components/progress/modules/root-context.ts
|
|
2540
|
+
// src/components/progress/modules/root-context.ts
|
|
2755
2541
|
const ProgressRootContext$1 = createContext$1();
|
|
2756
|
-
|
|
2757
|
-
//#region src/components/progress/anatomy/circle-range.tsx
|
|
2542
|
+
// src/components/progress/anatomy/circle-range.tsx
|
|
2758
2543
|
function CircleRange(props) {
|
|
2759
2544
|
const progress = use(ProgressRootContext$1);
|
|
2760
2545
|
const { element, ...rest } = props;
|
|
2761
2546
|
const attributes = mergeProps(progress.getCircleRangeProps(), { strokeLinecap: "round" }, rest);
|
|
2762
2547
|
return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
|
|
2763
2548
|
}
|
|
2764
|
-
|
|
2765
|
-
//#region src/components/progress/anatomy/circle-track.tsx
|
|
2549
|
+
// src/components/progress/anatomy/circle-track.tsx
|
|
2766
2550
|
function CircleTrack(props) {
|
|
2767
2551
|
const progress = use(ProgressRootContext$1);
|
|
2768
2552
|
const { element, ...rest } = props;
|
|
2769
2553
|
const attributes = mergeProps(progress.getCircleTrackProps(), rest);
|
|
2770
2554
|
return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
|
|
2771
2555
|
}
|
|
2772
|
-
|
|
2773
|
-
//#region src/components/progress/anatomy/circle.tsx
|
|
2556
|
+
// src/components/progress/anatomy/circle.tsx
|
|
2774
2557
|
function Circle(props) {
|
|
2775
2558
|
const progress = use(ProgressRootContext$1);
|
|
2776
2559
|
const { element, children, ...rest } = props;
|
|
@@ -2780,8 +2563,7 @@ function Circle(props) {
|
|
|
2780
2563
|
children
|
|
2781
2564
|
});
|
|
2782
2565
|
}
|
|
2783
|
-
|
|
2784
|
-
//#region src/components/progress/anatomy/label.tsx
|
|
2566
|
+
// src/components/progress/anatomy/label.tsx
|
|
2785
2567
|
function Label$6(props) {
|
|
2786
2568
|
const progress = use(ProgressRootContext$1);
|
|
2787
2569
|
const { element, children, ...rest } = props;
|
|
@@ -2791,23 +2573,20 @@ function Label$6(props) {
|
|
|
2791
2573
|
children
|
|
2792
2574
|
});
|
|
2793
2575
|
}
|
|
2794
|
-
|
|
2795
|
-
//#region src/components/progress/anatomy/range.tsx
|
|
2576
|
+
// src/components/progress/anatomy/range.tsx
|
|
2796
2577
|
function Range$1(props) {
|
|
2797
2578
|
const progress = use(ProgressRootContext$1);
|
|
2798
2579
|
const { element, ...rest } = props;
|
|
2799
2580
|
const attributes = mergeProps(progress.getRangeProps(), rest);
|
|
2800
2581
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
2801
2582
|
}
|
|
2802
|
-
|
|
2803
|
-
//#region src/components/progress/anatomy/root-context.tsx
|
|
2583
|
+
// src/components/progress/anatomy/root-context.tsx
|
|
2804
2584
|
function ProgressRootContext(props) {
|
|
2805
2585
|
const progress = use(ProgressRootContext$1);
|
|
2806
2586
|
const { children } = props;
|
|
2807
2587
|
return children(progress);
|
|
2808
2588
|
}
|
|
2809
|
-
|
|
2810
|
-
//#region src/components/progress/anatomy/root-provider.tsx
|
|
2589
|
+
// src/components/progress/anatomy/root-provider.tsx
|
|
2811
2590
|
function RootProvider$9(props) {
|
|
2812
2591
|
const { element, children, value: progress, ...rest } = props;
|
|
2813
2592
|
const attributes = mergeProps(progress.getRootProps(), rest);
|
|
@@ -2819,18 +2598,17 @@ function RootProvider$9(props) {
|
|
|
2819
2598
|
})
|
|
2820
2599
|
});
|
|
2821
2600
|
}
|
|
2822
|
-
|
|
2823
|
-
//#region src/components/progress/modules/provider.ts
|
|
2601
|
+
// src/components/progress/modules/provider.ts
|
|
2824
2602
|
function useProgress(props = {}) {
|
|
2825
2603
|
const locale = use(LocaleProviderRootContext);
|
|
2826
|
-
|
|
2604
|
+
const service = useMachine(machine$14, {
|
|
2827
2605
|
id: useId(),
|
|
2828
2606
|
dir: locale.dir,
|
|
2829
2607
|
...props
|
|
2830
|
-
})
|
|
2608
|
+
});
|
|
2609
|
+
return connect$14(service, normalizeProps);
|
|
2831
2610
|
}
|
|
2832
|
-
|
|
2833
|
-
//#region src/components/progress/anatomy/root.tsx
|
|
2611
|
+
// src/components/progress/anatomy/root.tsx
|
|
2834
2612
|
function Root$9(props) {
|
|
2835
2613
|
const [progressProps, componentProps] = splitProps$14(props);
|
|
2836
2614
|
const { element, children, ...rest } = componentProps;
|
|
@@ -2844,8 +2622,7 @@ function Root$9(props) {
|
|
|
2844
2622
|
})
|
|
2845
2623
|
});
|
|
2846
2624
|
}
|
|
2847
|
-
|
|
2848
|
-
//#region src/components/progress/anatomy/track.tsx
|
|
2625
|
+
// src/components/progress/anatomy/track.tsx
|
|
2849
2626
|
function Track$1(props) {
|
|
2850
2627
|
const progress = use(ProgressRootContext$1);
|
|
2851
2628
|
const { element, children, ...rest } = props;
|
|
@@ -2855,8 +2632,7 @@ function Track$1(props) {
|
|
|
2855
2632
|
children
|
|
2856
2633
|
});
|
|
2857
2634
|
}
|
|
2858
|
-
|
|
2859
|
-
//#region src/components/progress/anatomy/value-text.tsx
|
|
2635
|
+
// src/components/progress/anatomy/value-text.tsx
|
|
2860
2636
|
function ValueText$1(props) {
|
|
2861
2637
|
const progress = use(ProgressRootContext$1);
|
|
2862
2638
|
const { element, children, ...rest } = props;
|
|
@@ -2866,8 +2642,7 @@ function ValueText$1(props) {
|
|
|
2866
2642
|
children: children ?? progress.percentAsString
|
|
2867
2643
|
});
|
|
2868
2644
|
}
|
|
2869
|
-
|
|
2870
|
-
//#region src/components/progress/modules/anatomy.ts
|
|
2645
|
+
// src/components/progress/modules/anatomy.ts
|
|
2871
2646
|
const Progress = Object.assign(Root$9, {
|
|
2872
2647
|
Provider: RootProvider$9,
|
|
2873
2648
|
Context: ProgressRootContext,
|
|
@@ -2879,11 +2654,9 @@ const Progress = Object.assign(Root$9, {
|
|
|
2879
2654
|
CircleTrack,
|
|
2880
2655
|
CircleRange
|
|
2881
2656
|
});
|
|
2882
|
-
|
|
2883
|
-
//#region src/components/qr-code/modules/root-context.ts
|
|
2657
|
+
// src/components/qr-code/modules/root-context.ts
|
|
2884
2658
|
const QrCodeRootContext$1 = createContext$1();
|
|
2885
|
-
|
|
2886
|
-
//#region src/components/qr-code/anatomy/download-trigger.tsx
|
|
2659
|
+
// src/components/qr-code/anatomy/download-trigger.tsx
|
|
2887
2660
|
function DownloadTrigger(props) {
|
|
2888
2661
|
const qrCode = use(QrCodeRootContext$1);
|
|
2889
2662
|
const { mimeType, fileName, quality, element, children, ...rest } = props;
|
|
@@ -2897,8 +2670,7 @@ function DownloadTrigger(props) {
|
|
|
2897
2670
|
children
|
|
2898
2671
|
});
|
|
2899
2672
|
}
|
|
2900
|
-
|
|
2901
|
-
//#region src/components/qr-code/anatomy/frame.tsx
|
|
2673
|
+
// src/components/qr-code/anatomy/frame.tsx
|
|
2902
2674
|
function Frame(props) {
|
|
2903
2675
|
const qrCode = use(QrCodeRootContext$1);
|
|
2904
2676
|
const { element, children, ...rest } = props;
|
|
@@ -2908,8 +2680,7 @@ function Frame(props) {
|
|
|
2908
2680
|
children
|
|
2909
2681
|
});
|
|
2910
2682
|
}
|
|
2911
|
-
|
|
2912
|
-
//#region src/components/qr-code/anatomy/overlay.tsx
|
|
2683
|
+
// src/components/qr-code/anatomy/overlay.tsx
|
|
2913
2684
|
function Overlay(props) {
|
|
2914
2685
|
const qrCode = use(QrCodeRootContext$1);
|
|
2915
2686
|
const { element, children, ...rest } = props;
|
|
@@ -2919,23 +2690,20 @@ function Overlay(props) {
|
|
|
2919
2690
|
children
|
|
2920
2691
|
});
|
|
2921
2692
|
}
|
|
2922
|
-
|
|
2923
|
-
//#region src/components/qr-code/anatomy/pattern.tsx
|
|
2693
|
+
// src/components/qr-code/anatomy/pattern.tsx
|
|
2924
2694
|
function Pattern(props) {
|
|
2925
2695
|
const qrCode = use(QrCodeRootContext$1);
|
|
2926
2696
|
const { element, ...rest } = props;
|
|
2927
2697
|
const attributes = mergeProps(qrCode.getPatternProps(), rest);
|
|
2928
2698
|
return element ? element(attributes) : /* @__PURE__ */ jsx("path", { ...attributes });
|
|
2929
2699
|
}
|
|
2930
|
-
|
|
2931
|
-
//#region src/components/qr-code/anatomy/root-context.tsx
|
|
2700
|
+
// src/components/qr-code/anatomy/root-context.tsx
|
|
2932
2701
|
function QrCodeRootContext(props) {
|
|
2933
2702
|
const qrCode = use(QrCodeRootContext$1);
|
|
2934
2703
|
const { children } = props;
|
|
2935
2704
|
return children(qrCode);
|
|
2936
2705
|
}
|
|
2937
|
-
|
|
2938
|
-
//#region src/components/qr-code/anatomy/root-provider.tsx
|
|
2706
|
+
// src/components/qr-code/anatomy/root-provider.tsx
|
|
2939
2707
|
function RootProvider$8(props) {
|
|
2940
2708
|
const { element, children, value: qrCode, ...rest } = props;
|
|
2941
2709
|
const attributes = mergeProps(qrCode.getRootProps(), rest);
|
|
@@ -2947,18 +2715,17 @@ function RootProvider$8(props) {
|
|
|
2947
2715
|
})
|
|
2948
2716
|
});
|
|
2949
2717
|
}
|
|
2950
|
-
|
|
2951
|
-
//#region src/components/qr-code/modules/provider.ts
|
|
2718
|
+
// src/components/qr-code/modules/provider.ts
|
|
2952
2719
|
function useQrCode(props = {}) {
|
|
2953
2720
|
const locale = use(LocaleProviderRootContext);
|
|
2954
|
-
|
|
2721
|
+
const service = useMachine(machine$15, {
|
|
2955
2722
|
id: useId(),
|
|
2956
2723
|
dir: locale.dir,
|
|
2957
2724
|
...props
|
|
2958
|
-
})
|
|
2725
|
+
});
|
|
2726
|
+
return connect$15(service, normalizeProps);
|
|
2959
2727
|
}
|
|
2960
|
-
|
|
2961
|
-
//#region src/components/qr-code/anatomy/root.tsx
|
|
2728
|
+
// src/components/qr-code/anatomy/root.tsx
|
|
2962
2729
|
function Root$8(props) {
|
|
2963
2730
|
const [qrCodeProps, componentProps] = splitProps$15(props);
|
|
2964
2731
|
const { element, children, ...rest } = componentProps;
|
|
@@ -2972,8 +2739,7 @@ function Root$8(props) {
|
|
|
2972
2739
|
})
|
|
2973
2740
|
});
|
|
2974
2741
|
}
|
|
2975
|
-
|
|
2976
|
-
//#region src/components/qr-code/modules/anatomy.ts
|
|
2742
|
+
// src/components/qr-code/modules/anatomy.ts
|
|
2977
2743
|
const QrCode = Object.assign(Root$8, {
|
|
2978
2744
|
Provider: RootProvider$8,
|
|
2979
2745
|
Context: QrCodeRootContext,
|
|
@@ -2982,11 +2748,9 @@ const QrCode = Object.assign(Root$8, {
|
|
|
2982
2748
|
Pattern,
|
|
2983
2749
|
Overlay
|
|
2984
2750
|
});
|
|
2985
|
-
|
|
2986
|
-
//#region src/components/rating-group/modules/root-context.ts
|
|
2751
|
+
// src/components/rating-group/modules/root-context.ts
|
|
2987
2752
|
const RatingGroupRootContext$1 = createContext$1();
|
|
2988
|
-
|
|
2989
|
-
//#region src/components/rating-group/anatomy/control.tsx
|
|
2753
|
+
// src/components/rating-group/anatomy/control.tsx
|
|
2990
2754
|
function Control$4(props) {
|
|
2991
2755
|
const ratingGroup = use(RatingGroupRootContext$1);
|
|
2992
2756
|
const { element, children, ...rest } = props;
|
|
@@ -2996,28 +2760,27 @@ function Control$4(props) {
|
|
|
2996
2760
|
children
|
|
2997
2761
|
});
|
|
2998
2762
|
}
|
|
2999
|
-
|
|
3000
|
-
//#region src/components/rating-group/anatomy/hidden-input.tsx
|
|
2763
|
+
// src/components/rating-group/anatomy/hidden-input.tsx
|
|
3001
2764
|
function HiddenInput$3(props) {
|
|
3002
2765
|
const ratingGroup = use(RatingGroupRootContext$1);
|
|
3003
2766
|
const { element, ...rest } = props;
|
|
3004
2767
|
const attributes = mergeProps(ratingGroup.getHiddenInputProps(), rest);
|
|
3005
2768
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3006
2769
|
}
|
|
3007
|
-
|
|
3008
|
-
//#region src/internal/components/star-empty.tsx
|
|
2770
|
+
// src/internal/components/star-empty.tsx
|
|
3009
2771
|
function StarEmpty(props) {
|
|
3010
2772
|
const { ...rest } = props;
|
|
2773
|
+
const attributes = mergeProps({
|
|
2774
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2775
|
+
width: "24",
|
|
2776
|
+
height: "24",
|
|
2777
|
+
viewBox: "0 0 24 24",
|
|
2778
|
+
fill: "none",
|
|
2779
|
+
stroke: "currentColor",
|
|
2780
|
+
strokeWidth: "1.5"
|
|
2781
|
+
}, rest);
|
|
3011
2782
|
return /* @__PURE__ */ jsx("svg", {
|
|
3012
|
-
...
|
|
3013
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3014
|
-
width: "24",
|
|
3015
|
-
height: "24",
|
|
3016
|
-
viewBox: "0 0 24 24",
|
|
3017
|
-
fill: "none",
|
|
3018
|
-
stroke: "currentColor",
|
|
3019
|
-
strokeWidth: "1.5"
|
|
3020
|
-
}, rest),
|
|
2783
|
+
...attributes,
|
|
3021
2784
|
children: /* @__PURE__ */ jsx("path", {
|
|
3022
2785
|
strokeLinecap: "round",
|
|
3023
2786
|
strokeLinejoin: "round",
|
|
@@ -3025,18 +2788,18 @@ function StarEmpty(props) {
|
|
|
3025
2788
|
})
|
|
3026
2789
|
});
|
|
3027
2790
|
}
|
|
3028
|
-
|
|
3029
|
-
//#region src/internal/components/star-full.tsx
|
|
2791
|
+
// src/internal/components/star-full.tsx
|
|
3030
2792
|
function StarFull(props) {
|
|
3031
2793
|
const { ...rest } = props;
|
|
2794
|
+
const attributes = mergeProps({
|
|
2795
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2796
|
+
width: "24",
|
|
2797
|
+
height: "24",
|
|
2798
|
+
viewBox: "0 0 24 24",
|
|
2799
|
+
fill: "currentColor"
|
|
2800
|
+
}, rest);
|
|
3032
2801
|
return /* @__PURE__ */ jsx("svg", {
|
|
3033
|
-
...
|
|
3034
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3035
|
-
width: "24",
|
|
3036
|
-
height: "24",
|
|
3037
|
-
viewBox: "0 0 24 24",
|
|
3038
|
-
fill: "currentColor"
|
|
3039
|
-
}, rest),
|
|
2802
|
+
...attributes,
|
|
3040
2803
|
children: /* @__PURE__ */ jsx("path", {
|
|
3041
2804
|
fillRule: "evenodd",
|
|
3042
2805
|
clipRule: "evenodd",
|
|
@@ -3044,20 +2807,20 @@ function StarFull(props) {
|
|
|
3044
2807
|
})
|
|
3045
2808
|
});
|
|
3046
2809
|
}
|
|
3047
|
-
|
|
3048
|
-
//#region src/internal/components/star-half.tsx
|
|
2810
|
+
// src/internal/components/star-half.tsx
|
|
3049
2811
|
function StarHalf(props) {
|
|
3050
2812
|
const { ...rest } = props;
|
|
2813
|
+
const attributes = mergeProps({
|
|
2814
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2815
|
+
width: "24",
|
|
2816
|
+
height: "24",
|
|
2817
|
+
viewBox: "0 0 24 24",
|
|
2818
|
+
fill: "none",
|
|
2819
|
+
stroke: "currentColor",
|
|
2820
|
+
strokeWidth: "1.5"
|
|
2821
|
+
}, rest);
|
|
3051
2822
|
return /* @__PURE__ */ jsxs("svg", {
|
|
3052
|
-
...
|
|
3053
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3054
|
-
width: "24",
|
|
3055
|
-
height: "24",
|
|
3056
|
-
viewBox: "0 0 24 24",
|
|
3057
|
-
fill: "none",
|
|
3058
|
-
stroke: "currentColor",
|
|
3059
|
-
strokeWidth: "1.5"
|
|
3060
|
-
}, rest),
|
|
2823
|
+
...attributes,
|
|
3061
2824
|
children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
|
|
3062
2825
|
id: "half-fill",
|
|
3063
2826
|
x1: "0%",
|
|
@@ -3079,8 +2842,7 @@ function StarHalf(props) {
|
|
|
3079
2842
|
})]
|
|
3080
2843
|
});
|
|
3081
2844
|
}
|
|
3082
|
-
|
|
3083
|
-
//#region src/components/rating-group/anatomy/item.tsx
|
|
2845
|
+
// src/components/rating-group/anatomy/item.tsx
|
|
3084
2846
|
function Item$5(props) {
|
|
3085
2847
|
const ratingGroup = use(RatingGroupRootContext$1);
|
|
3086
2848
|
const [itemProps, componentProps] = splitItemProps$7(props);
|
|
@@ -3092,8 +2854,7 @@ function Item$5(props) {
|
|
|
3092
2854
|
children: children ? children : !itemState.highlighted ? empty : itemState.half ? half : full
|
|
3093
2855
|
});
|
|
3094
2856
|
}
|
|
3095
|
-
|
|
3096
|
-
//#region src/components/rating-group/anatomy/label.tsx
|
|
2857
|
+
// src/components/rating-group/anatomy/label.tsx
|
|
3097
2858
|
function Label$5(props) {
|
|
3098
2859
|
const ratingGroup = use(RatingGroupRootContext$1);
|
|
3099
2860
|
const { element, children, ...rest } = props;
|
|
@@ -3103,15 +2864,13 @@ function Label$5(props) {
|
|
|
3103
2864
|
children
|
|
3104
2865
|
});
|
|
3105
2866
|
}
|
|
3106
|
-
|
|
3107
|
-
//#region src/components/rating-group/anatomy/root-context.tsx
|
|
2867
|
+
// src/components/rating-group/anatomy/root-context.tsx
|
|
3108
2868
|
function RatingGroupRootContext(props) {
|
|
3109
2869
|
const ratingGroup = use(RatingGroupRootContext$1);
|
|
3110
2870
|
const { children } = props;
|
|
3111
2871
|
return children(ratingGroup);
|
|
3112
2872
|
}
|
|
3113
|
-
|
|
3114
|
-
//#region src/components/rating-group/anatomy/root-provider.tsx
|
|
2873
|
+
// src/components/rating-group/anatomy/root-provider.tsx
|
|
3115
2874
|
function RootProvider$7(props) {
|
|
3116
2875
|
const { element, children, value: ratingGroup, ...rest } = props;
|
|
3117
2876
|
const attributes = mergeProps(ratingGroup.getRootProps(), rest);
|
|
@@ -3123,18 +2882,17 @@ function RootProvider$7(props) {
|
|
|
3123
2882
|
})
|
|
3124
2883
|
});
|
|
3125
2884
|
}
|
|
3126
|
-
|
|
3127
|
-
//#region src/components/rating-group/modules/provider.ts
|
|
2885
|
+
// src/components/rating-group/modules/provider.ts
|
|
3128
2886
|
function useRatingGroup(props = {}) {
|
|
3129
2887
|
const locale = use(LocaleProviderRootContext);
|
|
3130
|
-
|
|
2888
|
+
const service = useMachine(machine$16, {
|
|
3131
2889
|
id: useId(),
|
|
3132
2890
|
dir: locale.dir,
|
|
3133
2891
|
...props
|
|
3134
|
-
})
|
|
2892
|
+
});
|
|
2893
|
+
return connect$16(service, normalizeProps);
|
|
3135
2894
|
}
|
|
3136
|
-
|
|
3137
|
-
//#region src/components/rating-group/anatomy/root.tsx
|
|
2895
|
+
// src/components/rating-group/anatomy/root.tsx
|
|
3138
2896
|
function Root$7(props) {
|
|
3139
2897
|
const [ratingGroupProps, componentProps] = splitProps$16(props);
|
|
3140
2898
|
const { element, children, ...rest } = componentProps;
|
|
@@ -3148,8 +2906,7 @@ function Root$7(props) {
|
|
|
3148
2906
|
})
|
|
3149
2907
|
});
|
|
3150
2908
|
}
|
|
3151
|
-
|
|
3152
|
-
//#region src/components/rating-group/modules/anatomy.ts
|
|
2909
|
+
// src/components/rating-group/modules/anatomy.ts
|
|
3153
2910
|
const RatingGroup = Object.assign(Root$7, {
|
|
3154
2911
|
Provider: RootProvider$7,
|
|
3155
2912
|
Context: RatingGroupRootContext,
|
|
@@ -3158,8 +2915,7 @@ const RatingGroup = Object.assign(Root$7, {
|
|
|
3158
2915
|
Item: Item$5,
|
|
3159
2916
|
HiddenInput: HiddenInput$3
|
|
3160
2917
|
});
|
|
3161
|
-
|
|
3162
|
-
//#region src/components/segmented-control/anatomy/control.tsx
|
|
2918
|
+
// src/components/segmented-control/anatomy/control.tsx
|
|
3163
2919
|
function Control$3(props) {
|
|
3164
2920
|
const { element, children, ...rest } = props;
|
|
3165
2921
|
const attributes = mergeProps({
|
|
@@ -3171,22 +2927,18 @@ function Control$3(props) {
|
|
|
3171
2927
|
children
|
|
3172
2928
|
});
|
|
3173
2929
|
}
|
|
3174
|
-
|
|
3175
|
-
//#region src/components/segmented-control/modules/root-context.ts
|
|
2930
|
+
// src/components/segmented-control/modules/root-context.ts
|
|
3176
2931
|
const SegmentedControlRootContext$1 = createContext$1();
|
|
3177
|
-
|
|
3178
|
-
//#region src/components/segmented-control/anatomy/indicator.tsx
|
|
2932
|
+
// src/components/segmented-control/anatomy/indicator.tsx
|
|
3179
2933
|
function Indicator$2(props) {
|
|
3180
2934
|
const segmentedControl = use(SegmentedControlRootContext$1);
|
|
3181
2935
|
const { element, ...rest } = props;
|
|
3182
2936
|
const attributes = mergeProps(segmentedControl.getIndicatorProps(), rest);
|
|
3183
2937
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
3184
2938
|
}
|
|
3185
|
-
|
|
3186
|
-
//#region src/components/segmented-control/modules/item-context.ts
|
|
2939
|
+
// src/components/segmented-control/modules/item-context.ts
|
|
3187
2940
|
const SegmentedControlItemContext = createContext$1();
|
|
3188
|
-
|
|
3189
|
-
//#region src/components/segmented-control/anatomy/item-hidden-input.tsx
|
|
2941
|
+
// src/components/segmented-control/anatomy/item-hidden-input.tsx
|
|
3190
2942
|
function ItemHiddenInput(props) {
|
|
3191
2943
|
const segmentedControl = use(SegmentedControlRootContext$1);
|
|
3192
2944
|
const itemProps = use(SegmentedControlItemContext);
|
|
@@ -3194,8 +2946,7 @@ function ItemHiddenInput(props) {
|
|
|
3194
2946
|
const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), rest);
|
|
3195
2947
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3196
2948
|
}
|
|
3197
|
-
|
|
3198
|
-
//#region src/components/segmented-control/anatomy/item-text.tsx
|
|
2949
|
+
// src/components/segmented-control/anatomy/item-text.tsx
|
|
3199
2950
|
function ItemText$1(props) {
|
|
3200
2951
|
const segmentedControl = use(SegmentedControlRootContext$1);
|
|
3201
2952
|
const itemProps = use(SegmentedControlItemContext);
|
|
@@ -3206,8 +2957,7 @@ function ItemText$1(props) {
|
|
|
3206
2957
|
children
|
|
3207
2958
|
});
|
|
3208
2959
|
}
|
|
3209
|
-
|
|
3210
|
-
//#region src/components/segmented-control/anatomy/item.tsx
|
|
2960
|
+
// src/components/segmented-control/anatomy/item.tsx
|
|
3211
2961
|
function Item$4(props) {
|
|
3212
2962
|
const segmentedControl = use(SegmentedControlRootContext$1);
|
|
3213
2963
|
const [itemProps, componentProps] = splitItemProps$8(props);
|
|
@@ -3221,8 +2971,7 @@ function Item$4(props) {
|
|
|
3221
2971
|
})
|
|
3222
2972
|
});
|
|
3223
2973
|
}
|
|
3224
|
-
|
|
3225
|
-
//#region src/components/segmented-control/anatomy/label.tsx
|
|
2974
|
+
// src/components/segmented-control/anatomy/label.tsx
|
|
3226
2975
|
function Label$4(props) {
|
|
3227
2976
|
const segmentedControl = use(SegmentedControlRootContext$1);
|
|
3228
2977
|
const { element, children, ...rest } = props;
|
|
@@ -3232,15 +2981,13 @@ function Label$4(props) {
|
|
|
3232
2981
|
children
|
|
3233
2982
|
});
|
|
3234
2983
|
}
|
|
3235
|
-
|
|
3236
|
-
//#region src/components/segmented-control/anatomy/root-context.tsx
|
|
2984
|
+
// src/components/segmented-control/anatomy/root-context.tsx
|
|
3237
2985
|
function SegmentedControlRootContext(props) {
|
|
3238
2986
|
const segmentedControl = use(SegmentedControlRootContext$1);
|
|
3239
2987
|
const { children } = props;
|
|
3240
2988
|
return children(segmentedControl);
|
|
3241
2989
|
}
|
|
3242
|
-
|
|
3243
|
-
//#region src/components/segmented-control/anatomy/root-provider.tsx
|
|
2990
|
+
// src/components/segmented-control/anatomy/root-provider.tsx
|
|
3244
2991
|
function RootProvider$6(props) {
|
|
3245
2992
|
const { element, children, value: segmentedControl, ...rest } = props;
|
|
3246
2993
|
const attributes = mergeProps(segmentedControl.getRootProps(), rest);
|
|
@@ -3252,19 +2999,18 @@ function RootProvider$6(props) {
|
|
|
3252
2999
|
})
|
|
3253
3000
|
});
|
|
3254
3001
|
}
|
|
3255
|
-
|
|
3256
|
-
//#region src/components/segmented-control/modules/provider.ts
|
|
3002
|
+
// src/components/segmented-control/modules/provider.ts
|
|
3257
3003
|
function useSegmentedControl(props = {}) {
|
|
3258
3004
|
const locale = use(LocaleProviderRootContext);
|
|
3259
|
-
|
|
3005
|
+
const service = useMachine(machine$17, {
|
|
3260
3006
|
id: useId(),
|
|
3261
3007
|
dir: locale.dir,
|
|
3262
3008
|
orientation: "horizontal",
|
|
3263
3009
|
...props
|
|
3264
|
-
})
|
|
3010
|
+
});
|
|
3011
|
+
return connect$17(service, normalizeProps);
|
|
3265
3012
|
}
|
|
3266
|
-
|
|
3267
|
-
//#region src/components/segmented-control/anatomy/root.tsx
|
|
3013
|
+
// src/components/segmented-control/anatomy/root.tsx
|
|
3268
3014
|
function Root$6(props) {
|
|
3269
3015
|
const [segmentedControlProps, componentProps] = splitProps$17(props);
|
|
3270
3016
|
const { element, children, ...rest } = componentProps;
|
|
@@ -3278,8 +3024,7 @@ function Root$6(props) {
|
|
|
3278
3024
|
})
|
|
3279
3025
|
});
|
|
3280
3026
|
}
|
|
3281
|
-
|
|
3282
|
-
//#region src/components/segmented-control/modules/anatomy.ts
|
|
3027
|
+
// src/components/segmented-control/modules/anatomy.ts
|
|
3283
3028
|
const SegmentedControl = Object.assign(Root$6, {
|
|
3284
3029
|
Provider: RootProvider$6,
|
|
3285
3030
|
Context: SegmentedControlRootContext,
|
|
@@ -3290,11 +3035,9 @@ const SegmentedControl = Object.assign(Root$6, {
|
|
|
3290
3035
|
ItemText: ItemText$1,
|
|
3291
3036
|
ItemHiddenInput
|
|
3292
3037
|
});
|
|
3293
|
-
|
|
3294
|
-
//#region src/components/slider/modules/root-context.ts
|
|
3038
|
+
// src/components/slider/modules/root-context.ts
|
|
3295
3039
|
const SliderRootContext$1 = createContext$1();
|
|
3296
|
-
|
|
3297
|
-
//#region src/components/slider/anatomy/control.tsx
|
|
3040
|
+
// src/components/slider/anatomy/control.tsx
|
|
3298
3041
|
function Control$2(props) {
|
|
3299
3042
|
const slider = use(SliderRootContext$1);
|
|
3300
3043
|
const { element, children, ...rest } = props;
|
|
@@ -3304,11 +3047,9 @@ function Control$2(props) {
|
|
|
3304
3047
|
children
|
|
3305
3048
|
});
|
|
3306
3049
|
}
|
|
3307
|
-
|
|
3308
|
-
//#region src/components/slider/modules/thumb-context.ts
|
|
3050
|
+
// src/components/slider/modules/thumb-context.ts
|
|
3309
3051
|
const SliderThumbContext = createContext$1();
|
|
3310
|
-
|
|
3311
|
-
//#region src/components/slider/anatomy/hidden-input.tsx
|
|
3052
|
+
// src/components/slider/anatomy/hidden-input.tsx
|
|
3312
3053
|
function HiddenInput$2(props) {
|
|
3313
3054
|
const slider = use(SliderRootContext$1);
|
|
3314
3055
|
const thumbProps = use(SliderThumbContext);
|
|
@@ -3316,8 +3057,7 @@ function HiddenInput$2(props) {
|
|
|
3316
3057
|
const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), rest);
|
|
3317
3058
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3318
3059
|
}
|
|
3319
|
-
|
|
3320
|
-
//#region src/components/slider/anatomy/label.tsx
|
|
3060
|
+
// src/components/slider/anatomy/label.tsx
|
|
3321
3061
|
function Label$3(props) {
|
|
3322
3062
|
const slider = use(SliderRootContext$1);
|
|
3323
3063
|
const { element, children, ...rest } = props;
|
|
@@ -3327,8 +3067,7 @@ function Label$3(props) {
|
|
|
3327
3067
|
children
|
|
3328
3068
|
});
|
|
3329
3069
|
}
|
|
3330
|
-
|
|
3331
|
-
//#region src/components/slider/anatomy/marker-group.tsx
|
|
3070
|
+
// src/components/slider/anatomy/marker-group.tsx
|
|
3332
3071
|
function MarkerGroup(props) {
|
|
3333
3072
|
const slider = use(SliderRootContext$1);
|
|
3334
3073
|
const { element, children, ...rest } = props;
|
|
@@ -3338,8 +3077,7 @@ function MarkerGroup(props) {
|
|
|
3338
3077
|
children
|
|
3339
3078
|
});
|
|
3340
3079
|
}
|
|
3341
|
-
|
|
3342
|
-
//#region src/components/slider/anatomy/marker.tsx
|
|
3080
|
+
// src/components/slider/anatomy/marker.tsx
|
|
3343
3081
|
function Marker(props) {
|
|
3344
3082
|
const slider = use(SliderRootContext$1);
|
|
3345
3083
|
const { element, children, value, ...rest } = props;
|
|
@@ -3349,8 +3087,7 @@ function Marker(props) {
|
|
|
3349
3087
|
children: children ?? value
|
|
3350
3088
|
});
|
|
3351
3089
|
}
|
|
3352
|
-
|
|
3353
|
-
//#region src/components/slider/anatomy/range.tsx
|
|
3090
|
+
// src/components/slider/anatomy/range.tsx
|
|
3354
3091
|
function Range(props) {
|
|
3355
3092
|
const slider = use(SliderRootContext$1);
|
|
3356
3093
|
const { element, children, ...rest } = props;
|
|
@@ -3360,15 +3097,13 @@ function Range(props) {
|
|
|
3360
3097
|
children
|
|
3361
3098
|
});
|
|
3362
3099
|
}
|
|
3363
|
-
|
|
3364
|
-
//#region src/components/slider/anatomy/root-context.tsx
|
|
3100
|
+
// src/components/slider/anatomy/root-context.tsx
|
|
3365
3101
|
function SliderRootContext(props) {
|
|
3366
3102
|
const slider = use(SliderRootContext$1);
|
|
3367
3103
|
const { children } = props;
|
|
3368
3104
|
return children(slider);
|
|
3369
3105
|
}
|
|
3370
|
-
|
|
3371
|
-
//#region src/components/slider/anatomy/root-provider.tsx
|
|
3106
|
+
// src/components/slider/anatomy/root-provider.tsx
|
|
3372
3107
|
function SliderRootProvider(props) {
|
|
3373
3108
|
const { element, children, value: slider, ...rest } = props;
|
|
3374
3109
|
const attributes = mergeProps(slider.getRootProps(), rest);
|
|
@@ -3380,18 +3115,17 @@ function SliderRootProvider(props) {
|
|
|
3380
3115
|
})
|
|
3381
3116
|
});
|
|
3382
3117
|
}
|
|
3383
|
-
|
|
3384
|
-
//#region src/components/slider/modules/provider.ts
|
|
3118
|
+
// src/components/slider/modules/provider.ts
|
|
3385
3119
|
function useSlider(props = {}) {
|
|
3386
3120
|
const locale = use(LocaleProviderRootContext);
|
|
3387
|
-
|
|
3121
|
+
const service = useMachine(machine$18, {
|
|
3388
3122
|
id: useId(),
|
|
3389
3123
|
dir: locale.dir,
|
|
3390
3124
|
...props
|
|
3391
|
-
})
|
|
3125
|
+
});
|
|
3126
|
+
return connect$18(service, normalizeProps);
|
|
3392
3127
|
}
|
|
3393
|
-
|
|
3394
|
-
//#region src/components/slider/anatomy/root.tsx
|
|
3128
|
+
// src/components/slider/anatomy/root.tsx
|
|
3395
3129
|
function SliderRoot$1(props) {
|
|
3396
3130
|
const [sliderProps, componentProps] = splitProps$18(props);
|
|
3397
3131
|
const { element, children, ...rest } = componentProps;
|
|
@@ -3405,8 +3139,7 @@ function SliderRoot$1(props) {
|
|
|
3405
3139
|
})
|
|
3406
3140
|
});
|
|
3407
3141
|
}
|
|
3408
|
-
|
|
3409
|
-
//#region src/components/slider/anatomy/thumb.tsx
|
|
3142
|
+
// src/components/slider/anatomy/thumb.tsx
|
|
3410
3143
|
function Thumb$1(props) {
|
|
3411
3144
|
const slider = use(SliderRootContext$1);
|
|
3412
3145
|
const [thumbProps, componentProps] = splitThumbProps(props);
|
|
@@ -3420,8 +3153,7 @@ function Thumb$1(props) {
|
|
|
3420
3153
|
})
|
|
3421
3154
|
});
|
|
3422
3155
|
}
|
|
3423
|
-
|
|
3424
|
-
//#region src/components/slider/anatomy/track.tsx
|
|
3156
|
+
// src/components/slider/anatomy/track.tsx
|
|
3425
3157
|
function Track(props) {
|
|
3426
3158
|
const slider = use(SliderRootContext$1);
|
|
3427
3159
|
const { element, children, ...rest } = props;
|
|
@@ -3431,8 +3163,7 @@ function Track(props) {
|
|
|
3431
3163
|
children
|
|
3432
3164
|
});
|
|
3433
3165
|
}
|
|
3434
|
-
|
|
3435
|
-
//#region src/components/slider/anatomy/value-text.tsx
|
|
3166
|
+
// src/components/slider/anatomy/value-text.tsx
|
|
3436
3167
|
function ValueText(props) {
|
|
3437
3168
|
const slider = use(SliderRootContext$1);
|
|
3438
3169
|
const { element, children, ...rest } = props;
|
|
@@ -3442,8 +3173,7 @@ function ValueText(props) {
|
|
|
3442
3173
|
children
|
|
3443
3174
|
});
|
|
3444
3175
|
}
|
|
3445
|
-
|
|
3446
|
-
//#region src/components/slider/modules/anatomy.ts
|
|
3176
|
+
// src/components/slider/modules/anatomy.ts
|
|
3447
3177
|
const Slider = Object.assign(SliderRoot$1, {
|
|
3448
3178
|
Provider: SliderRootProvider,
|
|
3449
3179
|
Context: SliderRootContext,
|
|
@@ -3457,11 +3187,9 @@ const Slider = Object.assign(SliderRoot$1, {
|
|
|
3457
3187
|
MarkerGroup,
|
|
3458
3188
|
Marker
|
|
3459
3189
|
});
|
|
3460
|
-
|
|
3461
|
-
//#region src/components/steps/modules/root-context.ts
|
|
3190
|
+
// src/components/steps/modules/root-context.ts
|
|
3462
3191
|
const StepsRootContext$1 = createContext$1();
|
|
3463
|
-
|
|
3464
|
-
//#region src/components/steps/anatomy/content.tsx
|
|
3192
|
+
// src/components/steps/anatomy/content.tsx
|
|
3465
3193
|
function Content$2(props) {
|
|
3466
3194
|
const steps = use(StepsRootContext$1);
|
|
3467
3195
|
const { element, children, index, ...rest } = props;
|
|
@@ -3471,11 +3199,9 @@ function Content$2(props) {
|
|
|
3471
3199
|
children
|
|
3472
3200
|
});
|
|
3473
3201
|
}
|
|
3474
|
-
|
|
3475
|
-
//#region src/components/steps/modules/item-context.ts
|
|
3202
|
+
// src/components/steps/modules/item-context.ts
|
|
3476
3203
|
const StepsItemContext = createContext$1();
|
|
3477
|
-
|
|
3478
|
-
//#region src/components/steps/anatomy/indicator.tsx
|
|
3204
|
+
// src/components/steps/anatomy/indicator.tsx
|
|
3479
3205
|
function Indicator$1(props) {
|
|
3480
3206
|
const steps = use(StepsRootContext$1);
|
|
3481
3207
|
const itemProps = use(StepsItemContext);
|
|
@@ -3486,8 +3212,7 @@ function Indicator$1(props) {
|
|
|
3486
3212
|
children
|
|
3487
3213
|
});
|
|
3488
3214
|
}
|
|
3489
|
-
|
|
3490
|
-
//#region src/components/steps/anatomy/item.tsx
|
|
3215
|
+
// src/components/steps/anatomy/item.tsx
|
|
3491
3216
|
function Item$3(props) {
|
|
3492
3217
|
const steps = use(StepsRootContext$1);
|
|
3493
3218
|
const { element, children, index, ...rest } = props;
|
|
@@ -3501,8 +3226,7 @@ function Item$3(props) {
|
|
|
3501
3226
|
})
|
|
3502
3227
|
});
|
|
3503
3228
|
}
|
|
3504
|
-
|
|
3505
|
-
//#region src/components/steps/anatomy/list.tsx
|
|
3229
|
+
// src/components/steps/anatomy/list.tsx
|
|
3506
3230
|
function List$1(props) {
|
|
3507
3231
|
const steps = use(StepsRootContext$1);
|
|
3508
3232
|
const { element, children, ...rest } = props;
|
|
@@ -3512,8 +3236,7 @@ function List$1(props) {
|
|
|
3512
3236
|
children
|
|
3513
3237
|
});
|
|
3514
3238
|
}
|
|
3515
|
-
|
|
3516
|
-
//#region src/components/steps/anatomy/next-trigger.tsx
|
|
3239
|
+
// src/components/steps/anatomy/next-trigger.tsx
|
|
3517
3240
|
function NextTrigger(props) {
|
|
3518
3241
|
const steps = use(StepsRootContext$1);
|
|
3519
3242
|
const { element, children, ...rest } = props;
|
|
@@ -3523,8 +3246,7 @@ function NextTrigger(props) {
|
|
|
3523
3246
|
children
|
|
3524
3247
|
});
|
|
3525
3248
|
}
|
|
3526
|
-
|
|
3527
|
-
//#region src/components/steps/anatomy/prev-trigger.tsx
|
|
3249
|
+
// src/components/steps/anatomy/prev-trigger.tsx
|
|
3528
3250
|
function PrevTrigger(props) {
|
|
3529
3251
|
const steps = use(StepsRootContext$1);
|
|
3530
3252
|
const { element, children, ...rest } = props;
|
|
@@ -3534,15 +3256,13 @@ function PrevTrigger(props) {
|
|
|
3534
3256
|
children
|
|
3535
3257
|
});
|
|
3536
3258
|
}
|
|
3537
|
-
|
|
3538
|
-
//#region src/components/steps/anatomy/root-context.tsx
|
|
3259
|
+
// src/components/steps/anatomy/root-context.tsx
|
|
3539
3260
|
function StepsRootContext(props) {
|
|
3540
3261
|
const steps = use(StepsRootContext$1);
|
|
3541
3262
|
const { children } = props;
|
|
3542
3263
|
return children(steps);
|
|
3543
3264
|
}
|
|
3544
|
-
|
|
3545
|
-
//#region src/components/steps/anatomy/root-provider.tsx
|
|
3265
|
+
// src/components/steps/anatomy/root-provider.tsx
|
|
3546
3266
|
function RootProvider$5(props) {
|
|
3547
3267
|
const { element, children, value: steps, ...rest } = props;
|
|
3548
3268
|
const attributes = mergeProps(steps.getRootProps(), rest);
|
|
@@ -3554,18 +3274,17 @@ function RootProvider$5(props) {
|
|
|
3554
3274
|
})
|
|
3555
3275
|
});
|
|
3556
3276
|
}
|
|
3557
|
-
|
|
3558
|
-
//#region src/components/steps/modules/provider.ts
|
|
3277
|
+
// src/components/steps/modules/provider.ts
|
|
3559
3278
|
function useSteps(props = {}) {
|
|
3560
3279
|
const locale = use(LocaleProviderRootContext);
|
|
3561
|
-
|
|
3280
|
+
const service = useMachine(machine$19, {
|
|
3562
3281
|
id: useId(),
|
|
3563
3282
|
dir: locale.dir,
|
|
3564
3283
|
...props
|
|
3565
|
-
})
|
|
3284
|
+
});
|
|
3285
|
+
return connect$19(service, normalizeProps);
|
|
3566
3286
|
}
|
|
3567
|
-
|
|
3568
|
-
//#region src/components/steps/anatomy/root.tsx
|
|
3287
|
+
// src/components/steps/anatomy/root.tsx
|
|
3569
3288
|
function SliderRoot(props) {
|
|
3570
3289
|
const [stepsProps, componentProps] = splitProps$19(props);
|
|
3571
3290
|
const { element, children, ...rest } = componentProps;
|
|
@@ -3579,8 +3298,7 @@ function SliderRoot(props) {
|
|
|
3579
3298
|
})
|
|
3580
3299
|
});
|
|
3581
3300
|
}
|
|
3582
|
-
|
|
3583
|
-
//#region src/components/steps/anatomy/separator.tsx
|
|
3301
|
+
// src/components/steps/anatomy/separator.tsx
|
|
3584
3302
|
function Separator(props) {
|
|
3585
3303
|
const steps = use(StepsRootContext$1);
|
|
3586
3304
|
const itemProps = use(StepsItemContext);
|
|
@@ -3591,8 +3309,7 @@ function Separator(props) {
|
|
|
3591
3309
|
children
|
|
3592
3310
|
});
|
|
3593
3311
|
}
|
|
3594
|
-
|
|
3595
|
-
//#region src/components/steps/anatomy/trigger.tsx
|
|
3312
|
+
// src/components/steps/anatomy/trigger.tsx
|
|
3596
3313
|
function Trigger$2(props) {
|
|
3597
3314
|
const steps = use(StepsRootContext$1);
|
|
3598
3315
|
const itemProps = use(StepsItemContext);
|
|
@@ -3603,8 +3320,7 @@ function Trigger$2(props) {
|
|
|
3603
3320
|
children
|
|
3604
3321
|
});
|
|
3605
3322
|
}
|
|
3606
|
-
|
|
3607
|
-
//#region src/components/steps/modules/anatomy.ts
|
|
3323
|
+
// src/components/steps/modules/anatomy.ts
|
|
3608
3324
|
const Steps = Object.assign(SliderRoot, {
|
|
3609
3325
|
Provider: RootProvider$5,
|
|
3610
3326
|
Context: StepsRootContext,
|
|
@@ -3617,11 +3333,9 @@ const Steps = Object.assign(SliderRoot, {
|
|
|
3617
3333
|
PrevTrigger,
|
|
3618
3334
|
NextTrigger
|
|
3619
3335
|
});
|
|
3620
|
-
|
|
3621
|
-
//#region src/components/switch/modules/root-context.ts
|
|
3336
|
+
// src/components/switch/modules/root-context.ts
|
|
3622
3337
|
const SwitchRootContext$1 = createContext$1();
|
|
3623
|
-
|
|
3624
|
-
//#region src/components/switch/anatomy/control.tsx
|
|
3338
|
+
// src/components/switch/anatomy/control.tsx
|
|
3625
3339
|
function Control$1(props) {
|
|
3626
3340
|
const switch_ = use(SwitchRootContext$1);
|
|
3627
3341
|
const { element, children, ...rest } = props;
|
|
@@ -3631,16 +3345,14 @@ function Control$1(props) {
|
|
|
3631
3345
|
children
|
|
3632
3346
|
});
|
|
3633
3347
|
}
|
|
3634
|
-
|
|
3635
|
-
//#region src/components/switch/anatomy/hidden-input.tsx
|
|
3348
|
+
// src/components/switch/anatomy/hidden-input.tsx
|
|
3636
3349
|
function HiddenInput$1(props) {
|
|
3637
3350
|
const switch_ = use(SwitchRootContext$1);
|
|
3638
3351
|
const { element, ...rest } = props;
|
|
3639
3352
|
const attributes = mergeProps(switch_.getHiddenInputProps(), rest);
|
|
3640
3353
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3641
3354
|
}
|
|
3642
|
-
|
|
3643
|
-
//#region src/components/switch/anatomy/label.tsx
|
|
3355
|
+
// src/components/switch/anatomy/label.tsx
|
|
3644
3356
|
function Label$2(props) {
|
|
3645
3357
|
const switch_ = use(SwitchRootContext$1);
|
|
3646
3358
|
const { element, children, ...rest } = props;
|
|
@@ -3650,15 +3362,13 @@ function Label$2(props) {
|
|
|
3650
3362
|
children
|
|
3651
3363
|
});
|
|
3652
3364
|
}
|
|
3653
|
-
|
|
3654
|
-
//#region src/components/switch/anatomy/root-context.tsx
|
|
3365
|
+
// src/components/switch/anatomy/root-context.tsx
|
|
3655
3366
|
function SwitchRootContext(props) {
|
|
3656
3367
|
const switch_ = use(SwitchRootContext$1);
|
|
3657
3368
|
const { children } = props;
|
|
3658
3369
|
return children(switch_);
|
|
3659
3370
|
}
|
|
3660
|
-
|
|
3661
|
-
//#region src/components/switch/anatomy/root-provider.tsx
|
|
3371
|
+
// src/components/switch/anatomy/root-provider.tsx
|
|
3662
3372
|
function RootProvider$4(props) {
|
|
3663
3373
|
const { element, children, value: switch_, ...rest } = props;
|
|
3664
3374
|
const attributes = mergeProps(switch_.getRootProps(), rest);
|
|
@@ -3670,18 +3380,17 @@ function RootProvider$4(props) {
|
|
|
3670
3380
|
})
|
|
3671
3381
|
});
|
|
3672
3382
|
}
|
|
3673
|
-
|
|
3674
|
-
//#region src/components/switch/modules/provider.ts
|
|
3383
|
+
// src/components/switch/modules/provider.ts
|
|
3675
3384
|
function useSwitch(props = {}) {
|
|
3676
3385
|
const locale = use(LocaleProviderRootContext);
|
|
3677
|
-
|
|
3386
|
+
const service = useMachine(machine$20, {
|
|
3678
3387
|
id: useId(),
|
|
3679
3388
|
dir: locale.dir,
|
|
3680
3389
|
...props
|
|
3681
|
-
})
|
|
3390
|
+
});
|
|
3391
|
+
return connect$20(service, normalizeProps);
|
|
3682
3392
|
}
|
|
3683
|
-
|
|
3684
|
-
//#region src/components/switch/anatomy/root.tsx
|
|
3393
|
+
// src/components/switch/anatomy/root.tsx
|
|
3685
3394
|
function Root$5(props) {
|
|
3686
3395
|
const [switchProps, componentProps] = splitProps$20(props);
|
|
3687
3396
|
const { element, children, ...rest } = componentProps;
|
|
@@ -3695,8 +3404,7 @@ function Root$5(props) {
|
|
|
3695
3404
|
})
|
|
3696
3405
|
});
|
|
3697
3406
|
}
|
|
3698
|
-
|
|
3699
|
-
//#region src/components/switch/anatomy/thumb.tsx
|
|
3407
|
+
// src/components/switch/anatomy/thumb.tsx
|
|
3700
3408
|
function Thumb(props) {
|
|
3701
3409
|
const switch_ = use(SwitchRootContext$1);
|
|
3702
3410
|
const { element, children, ...rest } = props;
|
|
@@ -3706,8 +3414,7 @@ function Thumb(props) {
|
|
|
3706
3414
|
children
|
|
3707
3415
|
});
|
|
3708
3416
|
}
|
|
3709
|
-
|
|
3710
|
-
//#region src/components/switch/modules/anatomy.ts
|
|
3417
|
+
// src/components/switch/modules/anatomy.ts
|
|
3711
3418
|
const Switch = Object.assign(Root$5, {
|
|
3712
3419
|
Provider: RootProvider$4,
|
|
3713
3420
|
Context: SwitchRootContext,
|
|
@@ -3716,11 +3423,9 @@ const Switch = Object.assign(Root$5, {
|
|
|
3716
3423
|
Label: Label$2,
|
|
3717
3424
|
HiddenInput: HiddenInput$1
|
|
3718
3425
|
});
|
|
3719
|
-
|
|
3720
|
-
//#region src/components/tabs/modules/root-context.ts
|
|
3426
|
+
// src/components/tabs/modules/root-context.ts
|
|
3721
3427
|
const TabsRootContext$1 = createContext$1();
|
|
3722
|
-
|
|
3723
|
-
//#region src/components/tabs/anatomy/content.tsx
|
|
3428
|
+
// src/components/tabs/anatomy/content.tsx
|
|
3724
3429
|
function Content$1(props) {
|
|
3725
3430
|
const tabs = use(TabsRootContext$1);
|
|
3726
3431
|
const [contentProps, componentProps] = splitContentProps(props);
|
|
@@ -3731,16 +3436,14 @@ function Content$1(props) {
|
|
|
3731
3436
|
children
|
|
3732
3437
|
});
|
|
3733
3438
|
}
|
|
3734
|
-
|
|
3735
|
-
//#region src/components/tabs/anatomy/indicator.tsx
|
|
3439
|
+
// src/components/tabs/anatomy/indicator.tsx
|
|
3736
3440
|
function Indicator(props) {
|
|
3737
3441
|
const tabs = use(TabsRootContext$1);
|
|
3738
3442
|
const { element, ...rest } = props;
|
|
3739
3443
|
const attributes = mergeProps(tabs.getIndicatorProps(), rest);
|
|
3740
3444
|
return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
|
|
3741
3445
|
}
|
|
3742
|
-
|
|
3743
|
-
//#region src/components/tabs/anatomy/list.tsx
|
|
3446
|
+
// src/components/tabs/anatomy/list.tsx
|
|
3744
3447
|
function List(props) {
|
|
3745
3448
|
const tabs = use(TabsRootContext$1);
|
|
3746
3449
|
const { element, children, ...rest } = props;
|
|
@@ -3750,15 +3453,13 @@ function List(props) {
|
|
|
3750
3453
|
children
|
|
3751
3454
|
});
|
|
3752
3455
|
}
|
|
3753
|
-
|
|
3754
|
-
//#region src/components/tabs/anatomy/root-context.tsx
|
|
3456
|
+
// src/components/tabs/anatomy/root-context.tsx
|
|
3755
3457
|
function TabsRootContext(props) {
|
|
3756
3458
|
const tabs = use(TabsRootContext$1);
|
|
3757
3459
|
const { children } = props;
|
|
3758
3460
|
return children(tabs);
|
|
3759
3461
|
}
|
|
3760
|
-
|
|
3761
|
-
//#region src/components/tabs/anatomy/root-provider.tsx
|
|
3462
|
+
// src/components/tabs/anatomy/root-provider.tsx
|
|
3762
3463
|
function RootProvider$3(props) {
|
|
3763
3464
|
const { element, children, value: tabs, ...rest } = props;
|
|
3764
3465
|
const attributes = mergeProps(tabs.getRootProps(), rest);
|
|
@@ -3770,18 +3471,17 @@ function RootProvider$3(props) {
|
|
|
3770
3471
|
})
|
|
3771
3472
|
});
|
|
3772
3473
|
}
|
|
3773
|
-
|
|
3774
|
-
//#region src/components/tabs/modules/provider.ts
|
|
3474
|
+
// src/components/tabs/modules/provider.ts
|
|
3775
3475
|
function useTabs(props = {}) {
|
|
3776
3476
|
const locale = use(LocaleProviderRootContext);
|
|
3777
|
-
|
|
3477
|
+
const service = useMachine(machine$21, {
|
|
3778
3478
|
id: useId(),
|
|
3779
3479
|
dir: locale.dir,
|
|
3780
3480
|
...props
|
|
3781
|
-
})
|
|
3481
|
+
});
|
|
3482
|
+
return connect$21(service, normalizeProps);
|
|
3782
3483
|
}
|
|
3783
|
-
|
|
3784
|
-
//#region src/components/tabs/anatomy/root.tsx
|
|
3484
|
+
// src/components/tabs/anatomy/root.tsx
|
|
3785
3485
|
function Root$4(props) {
|
|
3786
3486
|
const [tabsProps, componentProps] = splitProps$21(props);
|
|
3787
3487
|
const { element, children, ...rest } = componentProps;
|
|
@@ -3795,8 +3495,7 @@ function Root$4(props) {
|
|
|
3795
3495
|
})
|
|
3796
3496
|
});
|
|
3797
3497
|
}
|
|
3798
|
-
|
|
3799
|
-
//#region src/components/tabs/anatomy/trigger.tsx
|
|
3498
|
+
// src/components/tabs/anatomy/trigger.tsx
|
|
3800
3499
|
function Trigger$1(props) {
|
|
3801
3500
|
const tabs = use(TabsRootContext$1);
|
|
3802
3501
|
const [triggerProps, componentProps] = splitTriggerProps(props);
|
|
@@ -3807,8 +3506,7 @@ function Trigger$1(props) {
|
|
|
3807
3506
|
children
|
|
3808
3507
|
});
|
|
3809
3508
|
}
|
|
3810
|
-
|
|
3811
|
-
//#region src/components/tabs/modules/anatomy.ts
|
|
3509
|
+
// src/components/tabs/modules/anatomy.ts
|
|
3812
3510
|
const Tabs = Object.assign(Root$4, {
|
|
3813
3511
|
Provider: RootProvider$3,
|
|
3814
3512
|
Context: TabsRootContext,
|
|
@@ -3817,11 +3515,9 @@ const Tabs = Object.assign(Root$4, {
|
|
|
3817
3515
|
Indicator,
|
|
3818
3516
|
Content: Content$1
|
|
3819
3517
|
});
|
|
3820
|
-
|
|
3821
|
-
//#region src/components/tags-input/modules/root-context.ts
|
|
3518
|
+
// src/components/tags-input/modules/root-context.ts
|
|
3822
3519
|
const TagsInputRootContext$1 = createContext$1();
|
|
3823
|
-
|
|
3824
|
-
//#region src/components/tags-input/anatomy/clear-trigger.tsx
|
|
3520
|
+
// src/components/tags-input/anatomy/clear-trigger.tsx
|
|
3825
3521
|
function ClearTrigger(props) {
|
|
3826
3522
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3827
3523
|
const { element, children, ...rest } = props;
|
|
@@ -3831,8 +3527,7 @@ function ClearTrigger(props) {
|
|
|
3831
3527
|
children
|
|
3832
3528
|
});
|
|
3833
3529
|
}
|
|
3834
|
-
|
|
3835
|
-
//#region src/components/tags-input/anatomy/control.tsx
|
|
3530
|
+
// src/components/tags-input/anatomy/control.tsx
|
|
3836
3531
|
function Control(props) {
|
|
3837
3532
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3838
3533
|
const { element, children, ...rest } = props;
|
|
@@ -3842,27 +3537,23 @@ function Control(props) {
|
|
|
3842
3537
|
children
|
|
3843
3538
|
});
|
|
3844
3539
|
}
|
|
3845
|
-
|
|
3846
|
-
//#region src/components/tags-input/anatomy/hidden-input.tsx
|
|
3540
|
+
// src/components/tags-input/anatomy/hidden-input.tsx
|
|
3847
3541
|
function HiddenInput(props) {
|
|
3848
3542
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3849
3543
|
const { element, ...rest } = props;
|
|
3850
3544
|
const attributes = mergeProps(tagsInput.getHiddenInputProps(), rest);
|
|
3851
3545
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3852
3546
|
}
|
|
3853
|
-
|
|
3854
|
-
//#region src/components/tags-input/anatomy/input.tsx
|
|
3547
|
+
// src/components/tags-input/anatomy/input.tsx
|
|
3855
3548
|
function Input(props) {
|
|
3856
3549
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3857
3550
|
const { element, ...rest } = props;
|
|
3858
3551
|
const attributes = mergeProps(tagsInput.getInputProps(), rest);
|
|
3859
3552
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3860
3553
|
}
|
|
3861
|
-
|
|
3862
|
-
//#region src/components/tags-input/modules/item-context.ts
|
|
3554
|
+
// src/components/tags-input/modules/item-context.ts
|
|
3863
3555
|
const TagsInputItemContext = createContext$1();
|
|
3864
|
-
|
|
3865
|
-
//#region src/components/tags-input/anatomy/item-delete-trigger.tsx
|
|
3556
|
+
// src/components/tags-input/anatomy/item-delete-trigger.tsx
|
|
3866
3557
|
function ItemDeleteTrigger(props) {
|
|
3867
3558
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3868
3559
|
const itemProps = use(TagsInputItemContext);
|
|
@@ -3873,8 +3564,7 @@ function ItemDeleteTrigger(props) {
|
|
|
3873
3564
|
children
|
|
3874
3565
|
});
|
|
3875
3566
|
}
|
|
3876
|
-
|
|
3877
|
-
//#region src/components/tags-input/anatomy/item-input.tsx
|
|
3567
|
+
// src/components/tags-input/anatomy/item-input.tsx
|
|
3878
3568
|
function ItemInput(props) {
|
|
3879
3569
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3880
3570
|
const itemProps = use(TagsInputItemContext);
|
|
@@ -3882,8 +3572,7 @@ function ItemInput(props) {
|
|
|
3882
3572
|
const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), rest);
|
|
3883
3573
|
return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
|
|
3884
3574
|
}
|
|
3885
|
-
|
|
3886
|
-
//#region src/components/tags-input/anatomy/item-preview.tsx
|
|
3575
|
+
// src/components/tags-input/anatomy/item-preview.tsx
|
|
3887
3576
|
function ItemPreview(props) {
|
|
3888
3577
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3889
3578
|
const itemProps = use(TagsInputItemContext);
|
|
@@ -3894,8 +3583,7 @@ function ItemPreview(props) {
|
|
|
3894
3583
|
children
|
|
3895
3584
|
});
|
|
3896
3585
|
}
|
|
3897
|
-
|
|
3898
|
-
//#region src/components/tags-input/anatomy/item-text.tsx
|
|
3586
|
+
// src/components/tags-input/anatomy/item-text.tsx
|
|
3899
3587
|
function ItemText(props) {
|
|
3900
3588
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3901
3589
|
const itemProps = use(TagsInputItemContext);
|
|
@@ -3906,8 +3594,7 @@ function ItemText(props) {
|
|
|
3906
3594
|
children
|
|
3907
3595
|
});
|
|
3908
3596
|
}
|
|
3909
|
-
|
|
3910
|
-
//#region src/components/tags-input/anatomy/item.tsx
|
|
3597
|
+
// src/components/tags-input/anatomy/item.tsx
|
|
3911
3598
|
function Item$2(props) {
|
|
3912
3599
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3913
3600
|
const [itemProps, componentProps] = splitItemProps$9(props);
|
|
@@ -3921,8 +3608,7 @@ function Item$2(props) {
|
|
|
3921
3608
|
})
|
|
3922
3609
|
});
|
|
3923
3610
|
}
|
|
3924
|
-
|
|
3925
|
-
//#region src/components/tags-input/anatomy/label.tsx
|
|
3611
|
+
// src/components/tags-input/anatomy/label.tsx
|
|
3926
3612
|
function Label$1(props) {
|
|
3927
3613
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3928
3614
|
const { element, children, ...rest } = props;
|
|
@@ -3932,15 +3618,13 @@ function Label$1(props) {
|
|
|
3932
3618
|
children
|
|
3933
3619
|
});
|
|
3934
3620
|
}
|
|
3935
|
-
|
|
3936
|
-
//#region src/components/tags-input/anatomy/root-context.tsx
|
|
3621
|
+
// src/components/tags-input/anatomy/root-context.tsx
|
|
3937
3622
|
function TagsInputRootContext(props) {
|
|
3938
3623
|
const tagsInput = use(TagsInputRootContext$1);
|
|
3939
3624
|
const { children } = props;
|
|
3940
3625
|
return children(tagsInput);
|
|
3941
3626
|
}
|
|
3942
|
-
|
|
3943
|
-
//#region src/components/tags-input/anatomy/root-provider.tsx
|
|
3627
|
+
// src/components/tags-input/anatomy/root-provider.tsx
|
|
3944
3628
|
function RootProvider$2(props) {
|
|
3945
3629
|
const { element, children, value: tagsInput, ...rest } = props;
|
|
3946
3630
|
const attributes = mergeProps(tagsInput.getRootProps(), rest);
|
|
@@ -3952,18 +3636,17 @@ function RootProvider$2(props) {
|
|
|
3952
3636
|
})
|
|
3953
3637
|
});
|
|
3954
3638
|
}
|
|
3955
|
-
|
|
3956
|
-
//#region src/components/tags-input/modules/provider.ts
|
|
3639
|
+
// src/components/tags-input/modules/provider.ts
|
|
3957
3640
|
function useTagsInput(props = {}) {
|
|
3958
3641
|
const locale = use(LocaleProviderRootContext);
|
|
3959
|
-
|
|
3642
|
+
const service = useMachine(machine$22, {
|
|
3960
3643
|
id: useId(),
|
|
3961
3644
|
dir: locale.dir,
|
|
3962
3645
|
...props
|
|
3963
|
-
})
|
|
3646
|
+
});
|
|
3647
|
+
return connect$22(service, normalizeProps);
|
|
3964
3648
|
}
|
|
3965
|
-
|
|
3966
|
-
//#region src/components/tags-input/anatomy/root.tsx
|
|
3649
|
+
// src/components/tags-input/anatomy/root.tsx
|
|
3967
3650
|
function Root$3(props) {
|
|
3968
3651
|
const [tagsInputProps, componentProps] = splitProps$22(props);
|
|
3969
3652
|
const { element, children, ...rest } = componentProps;
|
|
@@ -3977,8 +3660,7 @@ function Root$3(props) {
|
|
|
3977
3660
|
})
|
|
3978
3661
|
});
|
|
3979
3662
|
}
|
|
3980
|
-
|
|
3981
|
-
//#region src/components/tags-input/modules/anatomy.ts
|
|
3663
|
+
// src/components/tags-input/modules/anatomy.ts
|
|
3982
3664
|
const TagsInput = Object.assign(Root$3, {
|
|
3983
3665
|
Provider: RootProvider$2,
|
|
3984
3666
|
Context: TagsInputRootContext,
|
|
@@ -3993,11 +3675,9 @@ const TagsInput = Object.assign(Root$3, {
|
|
|
3993
3675
|
ClearTrigger,
|
|
3994
3676
|
HiddenInput
|
|
3995
3677
|
});
|
|
3996
|
-
|
|
3997
|
-
//#region src/components/toast/modules/root-context.ts
|
|
3678
|
+
// src/components/toast/modules/root-context.ts
|
|
3998
3679
|
const ToastRootContext$1 = createContext$1();
|
|
3999
|
-
|
|
4000
|
-
//#region src/components/toast/anatomy/action-trigger.tsx
|
|
3680
|
+
// src/components/toast/anatomy/action-trigger.tsx
|
|
4001
3681
|
function ActionTrigger(props) {
|
|
4002
3682
|
const toast = use(ToastRootContext$1);
|
|
4003
3683
|
const { element, children, ...rest } = props;
|
|
@@ -4007,27 +3687,26 @@ function ActionTrigger(props) {
|
|
|
4007
3687
|
children
|
|
4008
3688
|
});
|
|
4009
3689
|
}
|
|
4010
|
-
|
|
4011
|
-
//#region src/internal/components/x.tsx
|
|
3690
|
+
// src/internal/components/x.tsx
|
|
4012
3691
|
function X(props) {
|
|
4013
3692
|
const { ...rest } = props;
|
|
3693
|
+
const attributes = mergeProps({
|
|
3694
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3695
|
+
width: "24",
|
|
3696
|
+
height: "24",
|
|
3697
|
+
viewBox: "0 0 24 24",
|
|
3698
|
+
fill: "none",
|
|
3699
|
+
stroke: "currentColor",
|
|
3700
|
+
strokeWidth: "2",
|
|
3701
|
+
strokeLinecap: "round",
|
|
3702
|
+
strokeLinejoin: "round"
|
|
3703
|
+
}, rest);
|
|
4014
3704
|
return /* @__PURE__ */ jsxs("svg", {
|
|
4015
|
-
...
|
|
4016
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4017
|
-
width: "24",
|
|
4018
|
-
height: "24",
|
|
4019
|
-
viewBox: "0 0 24 24",
|
|
4020
|
-
fill: "none",
|
|
4021
|
-
stroke: "currentColor",
|
|
4022
|
-
strokeWidth: "2",
|
|
4023
|
-
strokeLinecap: "round",
|
|
4024
|
-
strokeLinejoin: "round"
|
|
4025
|
-
}, rest),
|
|
3705
|
+
...attributes,
|
|
4026
3706
|
children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })]
|
|
4027
3707
|
});
|
|
4028
3708
|
}
|
|
4029
|
-
|
|
4030
|
-
//#region src/components/toast/anatomy/close-trigger.tsx
|
|
3709
|
+
// src/components/toast/anatomy/close-trigger.tsx
|
|
4031
3710
|
function CloseTrigger(props) {
|
|
4032
3711
|
const toast = use(ToastRootContext$1);
|
|
4033
3712
|
const { element, children = /* @__PURE__ */ jsx(X, {}), ...rest } = props;
|
|
@@ -4037,8 +3716,7 @@ function CloseTrigger(props) {
|
|
|
4037
3716
|
children
|
|
4038
3717
|
});
|
|
4039
3718
|
}
|
|
4040
|
-
|
|
4041
|
-
//#region src/components/toast/anatomy/description.tsx
|
|
3719
|
+
// src/components/toast/anatomy/description.tsx
|
|
4042
3720
|
function Description(props) {
|
|
4043
3721
|
const toast = use(ToastRootContext$1);
|
|
4044
3722
|
const { element, children, ...rest } = props;
|
|
@@ -4048,11 +3726,9 @@ function Description(props) {
|
|
|
4048
3726
|
children
|
|
4049
3727
|
});
|
|
4050
3728
|
}
|
|
4051
|
-
|
|
4052
|
-
//#region src/components/toast/modules/group-context.ts
|
|
3729
|
+
// src/components/toast/modules/group-context.ts
|
|
4053
3730
|
const ToastGroupContext = createContext$1();
|
|
4054
|
-
|
|
4055
|
-
//#region src/components/toast/anatomy/group.tsx
|
|
3731
|
+
// src/components/toast/anatomy/group.tsx
|
|
4056
3732
|
function Group(props) {
|
|
4057
3733
|
const { element, children, toaster, ...rest } = props;
|
|
4058
3734
|
const service = useMachine(group.machine, {
|
|
@@ -4072,8 +3748,7 @@ function Group(props) {
|
|
|
4072
3748
|
})
|
|
4073
3749
|
});
|
|
4074
3750
|
}
|
|
4075
|
-
|
|
4076
|
-
//#region src/components/toast/anatomy/message.tsx
|
|
3751
|
+
// src/components/toast/anatomy/message.tsx
|
|
4077
3752
|
function Message(props) {
|
|
4078
3753
|
const { element, children, ...rest } = props;
|
|
4079
3754
|
const attributes = mergeProps({
|
|
@@ -4085,24 +3760,23 @@ function Message(props) {
|
|
|
4085
3760
|
children
|
|
4086
3761
|
});
|
|
4087
3762
|
}
|
|
4088
|
-
|
|
4089
|
-
//#region src/components/toast/anatomy/root-context.tsx
|
|
3763
|
+
// src/components/toast/anatomy/root-context.tsx
|
|
4090
3764
|
function ToastRootContext(props) {
|
|
4091
3765
|
const toast = use(ToastRootContext$1);
|
|
4092
3766
|
const { children } = props;
|
|
4093
3767
|
return children(toast);
|
|
4094
3768
|
}
|
|
4095
|
-
|
|
4096
|
-
//#region src/components/toast/anatomy/root.tsx
|
|
3769
|
+
// src/components/toast/anatomy/root.tsx
|
|
4097
3770
|
function Root$2(props) {
|
|
4098
3771
|
const group = use(ToastGroupContext);
|
|
4099
3772
|
const locale = use(LocaleProviderRootContext);
|
|
4100
3773
|
const { element, children, toast: toastProps, ...rest } = props;
|
|
4101
|
-
const
|
|
3774
|
+
const service = useMachine(machine$23, {
|
|
4102
3775
|
...toastProps,
|
|
4103
3776
|
dir: locale.dir,
|
|
4104
3777
|
parent: group
|
|
4105
|
-
})
|
|
3778
|
+
});
|
|
3779
|
+
const toast = connect$23(service, normalizeProps);
|
|
4106
3780
|
const attributes = mergeProps(toast.getRootProps(), rest);
|
|
4107
3781
|
return /* @__PURE__ */ jsx(ToastRootContext$1.Provider, {
|
|
4108
3782
|
value: toast,
|
|
@@ -4116,8 +3790,7 @@ function Root$2(props) {
|
|
|
4116
3790
|
})
|
|
4117
3791
|
});
|
|
4118
3792
|
}
|
|
4119
|
-
|
|
4120
|
-
//#region src/components/toast/anatomy/title.tsx
|
|
3793
|
+
// src/components/toast/anatomy/title.tsx
|
|
4121
3794
|
function Title(props) {
|
|
4122
3795
|
const toast = use(ToastRootContext$1);
|
|
4123
3796
|
const { element, children, ...rest } = props;
|
|
@@ -4127,8 +3800,7 @@ function Title(props) {
|
|
|
4127
3800
|
children
|
|
4128
3801
|
});
|
|
4129
3802
|
}
|
|
4130
|
-
|
|
4131
|
-
//#region src/components/toast/modules/anatomy.ts
|
|
3803
|
+
// src/components/toast/modules/anatomy.ts
|
|
4132
3804
|
const Toast = Object.assign(Root$2, {
|
|
4133
3805
|
Context: ToastRootContext,
|
|
4134
3806
|
Group,
|
|
@@ -4138,11 +3810,9 @@ const Toast = Object.assign(Root$2, {
|
|
|
4138
3810
|
ActionTrigger,
|
|
4139
3811
|
CloseTrigger
|
|
4140
3812
|
});
|
|
4141
|
-
|
|
4142
|
-
//#region src/components/toggle-group/modules/root-context.ts
|
|
3813
|
+
// src/components/toggle-group/modules/root-context.ts
|
|
4143
3814
|
const ToggleGroupRootContext$1 = createContext$1();
|
|
4144
|
-
|
|
4145
|
-
//#region src/components/toggle-group/anatomy/item.tsx
|
|
3815
|
+
// src/components/toggle-group/anatomy/item.tsx
|
|
4146
3816
|
function Item$1(props) {
|
|
4147
3817
|
const toggleGroup = use(ToggleGroupRootContext$1);
|
|
4148
3818
|
const [itemProps, componentProps] = splitItemProps$10(props);
|
|
@@ -4153,15 +3823,13 @@ function Item$1(props) {
|
|
|
4153
3823
|
children
|
|
4154
3824
|
});
|
|
4155
3825
|
}
|
|
4156
|
-
|
|
4157
|
-
//#region src/components/toggle-group/anatomy/root-context.tsx
|
|
3826
|
+
// src/components/toggle-group/anatomy/root-context.tsx
|
|
4158
3827
|
function ToggleGroupRootContext(props) {
|
|
4159
3828
|
const toggleGroup = use(ToggleGroupRootContext$1);
|
|
4160
3829
|
const { children } = props;
|
|
4161
3830
|
return children(toggleGroup);
|
|
4162
3831
|
}
|
|
4163
|
-
|
|
4164
|
-
//#region src/components/toggle-group/anatomy/root-provider.tsx
|
|
3832
|
+
// src/components/toggle-group/anatomy/root-provider.tsx
|
|
4165
3833
|
function ToggleGroupRootProvider(props) {
|
|
4166
3834
|
const { element, children, value: toggleGroup, ...rest } = props;
|
|
4167
3835
|
const attributes = mergeProps(toggleGroup.getRootProps(), rest);
|
|
@@ -4173,18 +3841,17 @@ function ToggleGroupRootProvider(props) {
|
|
|
4173
3841
|
})
|
|
4174
3842
|
});
|
|
4175
3843
|
}
|
|
4176
|
-
|
|
4177
|
-
//#region src/components/toggle-group/modules/provider.ts
|
|
3844
|
+
// src/components/toggle-group/modules/provider.ts
|
|
4178
3845
|
function useToggleGroup(props = {}) {
|
|
4179
3846
|
const locale = use(LocaleProviderRootContext);
|
|
4180
|
-
|
|
3847
|
+
const service = useMachine(machine$24, {
|
|
4181
3848
|
id: useId(),
|
|
4182
3849
|
dir: locale.dir,
|
|
4183
3850
|
...props
|
|
4184
|
-
})
|
|
3851
|
+
});
|
|
3852
|
+
return connect$24(service, normalizeProps);
|
|
4185
3853
|
}
|
|
4186
|
-
|
|
4187
|
-
//#region src/components/toggle-group/anatomy/root.tsx
|
|
3854
|
+
// src/components/toggle-group/anatomy/root.tsx
|
|
4188
3855
|
function ToggleGroupRoot(props) {
|
|
4189
3856
|
const [toggleGroupProps, componentProps] = splitProps$23(props);
|
|
4190
3857
|
const { element, children, ...rest } = componentProps;
|
|
@@ -4198,18 +3865,15 @@ function ToggleGroupRoot(props) {
|
|
|
4198
3865
|
})
|
|
4199
3866
|
});
|
|
4200
3867
|
}
|
|
4201
|
-
|
|
4202
|
-
//#region src/components/toggle-group/modules/anatomy.ts
|
|
3868
|
+
// src/components/toggle-group/modules/anatomy.ts
|
|
4203
3869
|
const ToggleGroup = Object.assign(ToggleGroupRoot, {
|
|
4204
3870
|
Provider: ToggleGroupRootProvider,
|
|
4205
3871
|
Context: ToggleGroupRootContext,
|
|
4206
3872
|
Item: Item$1
|
|
4207
3873
|
});
|
|
4208
|
-
|
|
4209
|
-
//#region src/components/tooltip/modules/root-context.ts
|
|
3874
|
+
// src/components/tooltip/modules/root-context.ts
|
|
4210
3875
|
const TooltipRootContext$1 = createContext$1();
|
|
4211
|
-
|
|
4212
|
-
//#region src/components/tooltip/anatomy/arrow-tip.tsx
|
|
3876
|
+
// src/components/tooltip/anatomy/arrow-tip.tsx
|
|
4213
3877
|
function ArrowTip(props) {
|
|
4214
3878
|
const tooltip = use(TooltipRootContext$1);
|
|
4215
3879
|
const { element, children, ...rest } = props;
|
|
@@ -4219,8 +3883,7 @@ function ArrowTip(props) {
|
|
|
4219
3883
|
children
|
|
4220
3884
|
});
|
|
4221
3885
|
}
|
|
4222
|
-
|
|
4223
|
-
//#region src/components/tooltip/anatomy/arrow.tsx
|
|
3886
|
+
// src/components/tooltip/anatomy/arrow.tsx
|
|
4224
3887
|
function Arrow(props) {
|
|
4225
3888
|
const tooltip = use(TooltipRootContext$1);
|
|
4226
3889
|
const { element, children, ...rest } = props;
|
|
@@ -4230,8 +3893,7 @@ function Arrow(props) {
|
|
|
4230
3893
|
children
|
|
4231
3894
|
});
|
|
4232
3895
|
}
|
|
4233
|
-
|
|
4234
|
-
//#region src/components/tooltip/anatomy/content.tsx
|
|
3896
|
+
// src/components/tooltip/anatomy/content.tsx
|
|
4235
3897
|
function Content(props) {
|
|
4236
3898
|
const tooltip = use(TooltipRootContext$1);
|
|
4237
3899
|
const { element, children, ...rest } = props;
|
|
@@ -4241,8 +3903,7 @@ function Content(props) {
|
|
|
4241
3903
|
children
|
|
4242
3904
|
});
|
|
4243
3905
|
}
|
|
4244
|
-
|
|
4245
|
-
//#region src/components/tooltip/anatomy/positioner.tsx
|
|
3906
|
+
// src/components/tooltip/anatomy/positioner.tsx
|
|
4246
3907
|
function Positioner(props) {
|
|
4247
3908
|
const tooltip = use(TooltipRootContext$1);
|
|
4248
3909
|
const { element, children, ...rest } = props;
|
|
@@ -4252,15 +3913,13 @@ function Positioner(props) {
|
|
|
4252
3913
|
children
|
|
4253
3914
|
}) });
|
|
4254
3915
|
}
|
|
4255
|
-
|
|
4256
|
-
//#region src/components/tooltip/anatomy/root-context.tsx
|
|
3916
|
+
// src/components/tooltip/anatomy/root-context.tsx
|
|
4257
3917
|
function TooltipRootContext(props) {
|
|
4258
3918
|
const tooltip = use(TooltipRootContext$1);
|
|
4259
3919
|
const { children } = props;
|
|
4260
3920
|
return children(tooltip);
|
|
4261
3921
|
}
|
|
4262
|
-
|
|
4263
|
-
//#region src/components/tooltip/anatomy/root-provider.tsx
|
|
3922
|
+
// src/components/tooltip/anatomy/root-provider.tsx
|
|
4264
3923
|
function RootProvider$1(props) {
|
|
4265
3924
|
const { children, value: tooltip } = props;
|
|
4266
3925
|
return /* @__PURE__ */ jsx(TooltipRootContext$1.Provider, {
|
|
@@ -4268,18 +3927,17 @@ function RootProvider$1(props) {
|
|
|
4268
3927
|
children
|
|
4269
3928
|
});
|
|
4270
3929
|
}
|
|
4271
|
-
|
|
4272
|
-
//#region src/components/tooltip/modules/provider.ts
|
|
3930
|
+
// src/components/tooltip/modules/provider.ts
|
|
4273
3931
|
function useTooltip(props = {}) {
|
|
4274
3932
|
const locale = use(LocaleProviderRootContext);
|
|
4275
|
-
|
|
3933
|
+
const service = useMachine(machine$25, {
|
|
4276
3934
|
id: useId(),
|
|
4277
3935
|
dir: locale.dir,
|
|
4278
3936
|
...props
|
|
4279
|
-
})
|
|
3937
|
+
});
|
|
3938
|
+
return connect$25(service, normalizeProps);
|
|
4280
3939
|
}
|
|
4281
|
-
|
|
4282
|
-
//#region src/components/tooltip/anatomy/root.tsx
|
|
3940
|
+
// src/components/tooltip/anatomy/root.tsx
|
|
4283
3941
|
function Root$1(props) {
|
|
4284
3942
|
const [tooltipProps, componentProps] = splitProps$24(props);
|
|
4285
3943
|
const { children } = componentProps;
|
|
@@ -4289,8 +3947,7 @@ function Root$1(props) {
|
|
|
4289
3947
|
children
|
|
4290
3948
|
});
|
|
4291
3949
|
}
|
|
4292
|
-
|
|
4293
|
-
//#region src/components/tooltip/anatomy/trigger.tsx
|
|
3950
|
+
// src/components/tooltip/anatomy/trigger.tsx
|
|
4294
3951
|
function Trigger(props) {
|
|
4295
3952
|
const tooltip = use(TooltipRootContext$1);
|
|
4296
3953
|
const { element, children, ...rest } = props;
|
|
@@ -4300,8 +3957,7 @@ function Trigger(props) {
|
|
|
4300
3957
|
children
|
|
4301
3958
|
});
|
|
4302
3959
|
}
|
|
4303
|
-
|
|
4304
|
-
//#region src/components/tooltip/modules/anatomy.ts
|
|
3960
|
+
// src/components/tooltip/modules/anatomy.ts
|
|
4305
3961
|
const Tooltip = Object.assign(Root$1, {
|
|
4306
3962
|
Provider: RootProvider$1,
|
|
4307
3963
|
Context: TooltipRootContext,
|
|
@@ -4311,14 +3967,11 @@ const Tooltip = Object.assign(Root$1, {
|
|
|
4311
3967
|
Arrow,
|
|
4312
3968
|
ArrowTip
|
|
4313
3969
|
});
|
|
4314
|
-
|
|
4315
|
-
//#region src/components/tree-view/modules/node-context.ts
|
|
3970
|
+
// src/components/tree-view/modules/node-context.ts
|
|
4316
3971
|
const TreeViewNodeContext$1 = createContext$1();
|
|
4317
|
-
|
|
4318
|
-
//#region src/components/tree-view/modules/root-context.ts
|
|
3972
|
+
// src/components/tree-view/modules/root-context.ts
|
|
4319
3973
|
const TreeViewRootContext$1 = createContext$1();
|
|
4320
|
-
|
|
4321
|
-
//#region src/components/tree-view/anatomy/branch-content.tsx
|
|
3974
|
+
// src/components/tree-view/anatomy/branch-content.tsx
|
|
4322
3975
|
function BranchContent(props) {
|
|
4323
3976
|
const treeView = use(TreeViewRootContext$1);
|
|
4324
3977
|
const nodeProps = use(TreeViewNodeContext$1);
|
|
@@ -4329,8 +3982,7 @@ function BranchContent(props) {
|
|
|
4329
3982
|
children
|
|
4330
3983
|
});
|
|
4331
3984
|
}
|
|
4332
|
-
|
|
4333
|
-
//#region src/components/tree-view/anatomy/branch-control.tsx
|
|
3985
|
+
// src/components/tree-view/anatomy/branch-control.tsx
|
|
4334
3986
|
function BranchControl(props) {
|
|
4335
3987
|
const treeView = use(TreeViewRootContext$1);
|
|
4336
3988
|
const nodeProps = use(TreeViewNodeContext$1);
|
|
@@ -4341,8 +3993,7 @@ function BranchControl(props) {
|
|
|
4341
3993
|
children
|
|
4342
3994
|
});
|
|
4343
3995
|
}
|
|
4344
|
-
|
|
4345
|
-
//#region src/components/tree-view/anatomy/branch-indent-guide.tsx
|
|
3996
|
+
// src/components/tree-view/anatomy/branch-indent-guide.tsx
|
|
4346
3997
|
function BranchIndentGuide(props) {
|
|
4347
3998
|
const treeView = use(TreeViewRootContext$1);
|
|
4348
3999
|
const nodeProps = use(TreeViewNodeContext$1);
|
|
@@ -4353,8 +4004,7 @@ function BranchIndentGuide(props) {
|
|
|
4353
4004
|
children
|
|
4354
4005
|
});
|
|
4355
4006
|
}
|
|
4356
|
-
|
|
4357
|
-
//#region src/components/tree-view/anatomy/branch-indicator.tsx
|
|
4007
|
+
// src/components/tree-view/anatomy/branch-indicator.tsx
|
|
4358
4008
|
function BranchIndicator(props) {
|
|
4359
4009
|
const treeView = use(TreeViewRootContext$1);
|
|
4360
4010
|
const nodeProps = use(TreeViewNodeContext$1);
|
|
@@ -4365,8 +4015,7 @@ function BranchIndicator(props) {
|
|
|
4365
4015
|
children
|
|
4366
4016
|
});
|
|
4367
4017
|
}
|
|
4368
|
-
|
|
4369
|
-
//#region src/components/tree-view/anatomy/branch-text.tsx
|
|
4018
|
+
// src/components/tree-view/anatomy/branch-text.tsx
|
|
4370
4019
|
function BranchText(props) {
|
|
4371
4020
|
const treeView = use(TreeViewRootContext$1);
|
|
4372
4021
|
const nodeProps = use(TreeViewNodeContext$1);
|
|
@@ -4377,8 +4026,7 @@ function BranchText(props) {
|
|
|
4377
4026
|
children
|
|
4378
4027
|
});
|
|
4379
4028
|
}
|
|
4380
|
-
|
|
4381
|
-
//#region src/components/tree-view/anatomy/branch.tsx
|
|
4029
|
+
// src/components/tree-view/anatomy/branch.tsx
|
|
4382
4030
|
function Branch(props) {
|
|
4383
4031
|
const treeView = use(TreeViewRootContext$1);
|
|
4384
4032
|
const nodeProps = use(TreeViewNodeContext$1);
|
|
@@ -4389,8 +4037,7 @@ function Branch(props) {
|
|
|
4389
4037
|
children
|
|
4390
4038
|
});
|
|
4391
4039
|
}
|
|
4392
|
-
|
|
4393
|
-
//#region src/components/tree-view/anatomy/item.tsx
|
|
4040
|
+
// src/components/tree-view/anatomy/item.tsx
|
|
4394
4041
|
function Item(props) {
|
|
4395
4042
|
const treeView = use(TreeViewRootContext$1);
|
|
4396
4043
|
const nodeProps = use(TreeViewNodeContext$1);
|
|
@@ -4401,8 +4048,7 @@ function Item(props) {
|
|
|
4401
4048
|
children
|
|
4402
4049
|
});
|
|
4403
4050
|
}
|
|
4404
|
-
|
|
4405
|
-
//#region src/components/tree-view/anatomy/label.tsx
|
|
4051
|
+
// src/components/tree-view/anatomy/label.tsx
|
|
4406
4052
|
function Label(props) {
|
|
4407
4053
|
const treeView = use(TreeViewRootContext$1);
|
|
4408
4054
|
const { element, children, level = 3, ...rest } = props;
|
|
@@ -4413,15 +4059,13 @@ function Label(props) {
|
|
|
4413
4059
|
children
|
|
4414
4060
|
});
|
|
4415
4061
|
}
|
|
4416
|
-
|
|
4417
|
-
//#region src/components/tree-view/anatomy/node-context.tsx
|
|
4062
|
+
// src/components/tree-view/anatomy/node-context.tsx
|
|
4418
4063
|
function TreeViewNodeContext(props) {
|
|
4419
4064
|
const treeView = use(TreeViewNodeContext$1);
|
|
4420
4065
|
const { children } = props;
|
|
4421
4066
|
return children(treeView);
|
|
4422
4067
|
}
|
|
4423
|
-
|
|
4424
|
-
//#region src/components/tree-view/anatomy/node-provider.tsx
|
|
4068
|
+
// src/components/tree-view/anatomy/node-provider.tsx
|
|
4425
4069
|
function NodeProvider(props) {
|
|
4426
4070
|
const { children, value: nodeProps } = props;
|
|
4427
4071
|
return /* @__PURE__ */ jsx(TreeViewNodeContext$1.Provider, {
|
|
@@ -4429,15 +4073,13 @@ function NodeProvider(props) {
|
|
|
4429
4073
|
children
|
|
4430
4074
|
});
|
|
4431
4075
|
}
|
|
4432
|
-
|
|
4433
|
-
//#region src/components/tree-view/anatomy/root-context.tsx
|
|
4076
|
+
// src/components/tree-view/anatomy/root-context.tsx
|
|
4434
4077
|
function TreeViewRootContext(props) {
|
|
4435
4078
|
const treeView = use(TreeViewRootContext$1);
|
|
4436
4079
|
const { children } = props;
|
|
4437
4080
|
return children(treeView);
|
|
4438
4081
|
}
|
|
4439
|
-
|
|
4440
|
-
//#region src/components/tree-view/anatomy/root-provider.tsx
|
|
4082
|
+
// src/components/tree-view/anatomy/root-provider.tsx
|
|
4441
4083
|
function RootProvider(props) {
|
|
4442
4084
|
const { element, children, value: treeView, ...rest } = props;
|
|
4443
4085
|
const attributes = mergeProps(treeView.getRootProps(), rest);
|
|
@@ -4449,18 +4091,17 @@ function RootProvider(props) {
|
|
|
4449
4091
|
})
|
|
4450
4092
|
});
|
|
4451
4093
|
}
|
|
4452
|
-
|
|
4453
|
-
//#region src/components/tree-view/modules/provider.ts
|
|
4094
|
+
// src/components/tree-view/modules/provider.ts
|
|
4454
4095
|
function useTreeView(props = {}) {
|
|
4455
4096
|
const locale = use(LocaleProviderRootContext);
|
|
4456
|
-
|
|
4097
|
+
const service = useMachine(machine$26, {
|
|
4457
4098
|
id: useId(),
|
|
4458
4099
|
dir: locale.dir,
|
|
4459
4100
|
...props
|
|
4460
|
-
})
|
|
4101
|
+
});
|
|
4102
|
+
return connect$26(service, normalizeProps);
|
|
4461
4103
|
}
|
|
4462
|
-
|
|
4463
|
-
//#region src/components/tree-view/anatomy/root.tsx
|
|
4104
|
+
// src/components/tree-view/anatomy/root.tsx
|
|
4464
4105
|
function Root(props) {
|
|
4465
4106
|
const [treeViewProps, componentProps] = splitProps$25(props);
|
|
4466
4107
|
const { element, children, ...rest } = componentProps;
|
|
@@ -4474,8 +4115,7 @@ function Root(props) {
|
|
|
4474
4115
|
})
|
|
4475
4116
|
});
|
|
4476
4117
|
}
|
|
4477
|
-
|
|
4478
|
-
//#region src/components/tree-view/anatomy/tree.tsx
|
|
4118
|
+
// src/components/tree-view/anatomy/tree.tsx
|
|
4479
4119
|
function Tree(props) {
|
|
4480
4120
|
const treeView = use(TreeViewRootContext$1);
|
|
4481
4121
|
const { element, children, ...rest } = props;
|
|
@@ -4485,8 +4125,7 @@ function Tree(props) {
|
|
|
4485
4125
|
children
|
|
4486
4126
|
});
|
|
4487
4127
|
}
|
|
4488
|
-
|
|
4489
|
-
//#region src/components/tree-view/modules/anatomy.ts
|
|
4128
|
+
// src/components/tree-view/modules/anatomy.ts
|
|
4490
4129
|
const TreeView = Object.assign(Root, {
|
|
4491
4130
|
Provider: RootProvider,
|
|
4492
4131
|
Context: TreeViewRootContext,
|
|
@@ -4502,10 +4141,8 @@ const TreeView = Object.assign(Root, {
|
|
|
4502
4141
|
BranchIndentGuide,
|
|
4503
4142
|
Item
|
|
4504
4143
|
});
|
|
4505
|
-
|
|
4506
|
-
//#region src/hooks/use-list-collection.ts
|
|
4144
|
+
// src/hooks/use-list-collection.ts
|
|
4507
4145
|
function useListCollection(options) {
|
|
4508
4146
|
return new ListCollection(options);
|
|
4509
4147
|
}
|
|
4510
|
-
//#endregion
|
|
4511
4148
|
export { Accordion, AppBar, Avatar, Carousel, Collapsible, Combobox, DatePicker, Dialog, FileUpload, FloatingPanel, Listbox, LocaleProvider, Marquee, Menu, Navigation, Pagination, Popover, Portal, Progress, QrCode, RatingGroup, SegmentedControl, Slider, Steps, Switch, Tabs, TagsInput, Toast, ToggleGroup, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCarousel, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useFloatingPanel, useListCollection, useListbox, useMarquee, useMenu, usePagination, usePopover, useProgress, useQrCode, useRatingGroup, useSegmentedControl, useSlider, useSteps, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
|