@skeletonlabs/skeleton-react 5.0.0-next.9 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.mts +513 -404
  2. package/dist/index.mjs +825 -549
  3. package/package.json +33 -30
package/dist/index.mjs CHANGED
@@ -1,32 +1,35 @@
1
1
  import { Children, createContext, use, useEffect, useId } from "react";
2
2
  import { connect, machine, splitItemProps, splitProps } from "@zag-js/accordion";
3
3
  import { Portal as Portal$1, mergeProps, normalizeProps, useMachine } from "@zag-js/react";
4
+ import { isRTL } from "@zag-js/i18n-utils";
4
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
6
  import { connect as connect$1, machine as machine$1, splitProps as splitProps$1 } from "@zag-js/avatar";
6
7
  import { connect as connect$2, machine as machine$2, splitIndicatorProps, splitItemProps as splitItemProps$1, splitProps as splitProps$2 } from "@zag-js/carousel";
7
- import { connect as connect$3, machine as machine$3, splitProps as splitProps$3 } from "@zag-js/collapsible";
8
- import { connect as connect$4, machine as machine$4, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps as splitItemProps$2, splitProps as splitProps$4 } from "@zag-js/combobox";
9
- import { connect as connect$5, machine as machine$5, parse as parseDate, splitInputProps, splitPresetTriggerProps, splitProps as splitProps$5, splitTableCellProps, splitViewProps } from "@zag-js/date-picker";
10
- import { connect as connect$6, machine as machine$6, splitProps as splitProps$6 } from "@zag-js/dialog";
11
- import { connect as connect$7, machine as machine$7, splitItemProps as splitItemProps$3, splitProps as splitProps$7 } from "@zag-js/file-upload";
12
- import { connect as connect$8, machine as machine$8, splitProps as splitProps$8, splitResizeTriggerProps } from "@zag-js/floating-panel";
13
- import { connect as connect$9, machine as machine$9, splitItemGroupLabelProps as splitItemGroupLabelProps$1, splitItemGroupProps as splitItemGroupProps$1, splitItemProps as splitItemProps$4, splitProps as splitProps$9 } from "@zag-js/listbox";
14
- import { connect as connect$10, machine as machine$10, splitItemGroupLabelProps as splitItemGroupLabelProps$2, splitItemGroupProps as splitItemGroupProps$2, splitItemProps as splitItemProps$5, splitOptionItemProps, splitProps as splitProps$10 } from "@zag-js/menu";
15
- import { connect as connect$11, machine as machine$11, splitEllipsisProps, splitItemProps as splitItemProps$6, splitProps as splitProps$11 } from "@zag-js/pagination";
16
- import { connect as connect$12, machine as machine$12, splitProps as splitProps$12 } from "@zag-js/popover";
8
+ import { connect as connect$3, machine as machine$3, splitProps as splitProps$3 } from "@zag-js/marquee";
9
+ import { connect as connect$4, machine as machine$4, splitProps as splitProps$4 } from "@zag-js/collapsible";
10
+ import { connect as connect$5, machine as machine$5, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps as splitItemProps$2, splitProps as splitProps$5 } from "@zag-js/combobox";
11
+ import { connect as connect$6, machine as machine$6, parse as parseDate, splitInputProps, splitPresetTriggerProps, splitProps as splitProps$6, splitTableCellProps, splitViewProps } from "@zag-js/date-picker";
12
+ import { connect as connect$7, machine as machine$7, splitProps as splitProps$7 } from "@zag-js/dialog";
13
+ import { connect as connect$8, machine as machine$8, splitItemProps as splitItemProps$3, splitProps as splitProps$8 } from "@zag-js/file-upload";
14
+ import { connect as connect$9, machine as machine$9, splitProps as splitProps$9, splitResizeTriggerProps } from "@zag-js/floating-panel";
15
+ import { connect as connect$10, machine as machine$10, splitItemGroupLabelProps as splitItemGroupLabelProps$1, splitItemGroupProps as splitItemGroupProps$1, splitItemProps as splitItemProps$4, splitProps as splitProps$10 } from "@zag-js/listbox";
16
+ import { connect as connect$11, machine as machine$11, splitItemGroupLabelProps as splitItemGroupLabelProps$2, splitItemGroupProps as splitItemGroupProps$2, splitItemProps as splitItemProps$5, splitOptionItemProps, splitProps as splitProps$11 } from "@zag-js/menu";
17
+ import { connect as connect$12, machine as machine$12, splitEllipsisProps, splitItemProps as splitItemProps$6, splitProps as splitProps$12 } from "@zag-js/pagination";
18
+ import { connect as connect$13, machine as machine$13, splitProps as splitProps$13 } from "@zag-js/popover";
17
19
  import { createPortal } from "react-dom";
18
- import { connect as connect$13, machine as machine$13, splitProps as splitProps$13 } from "@zag-js/progress";
19
- import { connect as connect$14, machine as machine$14, splitItemProps as splitItemProps$7, splitProps as splitProps$14 } from "@zag-js/rating-group";
20
- import { connect as connect$15, machine as machine$15, splitItemProps as splitItemProps$8, splitProps as splitProps$15 } from "@zag-js/radio-group";
21
- import { connect as connect$16, machine as machine$16, splitProps as splitProps$16, splitThumbProps } from "@zag-js/slider";
22
- import { connect as connect$17, machine as machine$17, splitProps as splitProps$17 } from "@zag-js/steps";
23
- import { connect as connect$18, machine as machine$18, splitProps as splitProps$18 } from "@zag-js/switch";
24
- import { connect as connect$19, machine as machine$19, splitContentProps, splitProps as splitProps$19, splitTriggerProps } from "@zag-js/tabs";
25
- import { connect as connect$20, machine as machine$20, splitItemProps as splitItemProps$9, splitProps as splitProps$20 } from "@zag-js/tags-input";
26
- import { connect as connect$21, createStore as createToaster, group, machine as machine$21 } from "@zag-js/toast";
27
- import { connect as connect$22, machine as machine$22, splitItemProps as splitItemProps$10, splitProps as splitProps$21 } from "@zag-js/toggle-group";
28
- import { connect as connect$23, machine as machine$23, splitProps as splitProps$22 } from "@zag-js/tooltip";
29
- import { collection as createTreeViewCollection, connect as connect$24, machine as machine$24, splitProps as splitProps$23 } from "@zag-js/tree-view";
20
+ import { connect as connect$14, machine as machine$14, splitProps as splitProps$14 } from "@zag-js/progress";
21
+ import { connect as connect$15, machine as machine$15, splitProps as splitProps$15 } from "@zag-js/qr-code";
22
+ import { connect as connect$16, machine as machine$16, splitItemProps as splitItemProps$7, splitProps as splitProps$16 } from "@zag-js/rating-group";
23
+ import { connect as connect$17, machine as machine$17, splitItemProps as splitItemProps$8, splitProps as splitProps$17 } from "@zag-js/radio-group";
24
+ import { connect as connect$18, machine as machine$18, splitProps as splitProps$18, splitThumbProps } from "@zag-js/slider";
25
+ import { connect as connect$19, machine as machine$19, splitProps as splitProps$19 } from "@zag-js/steps";
26
+ import { connect as connect$20, machine as machine$20, splitProps as splitProps$20 } from "@zag-js/switch";
27
+ import { connect as connect$21, machine as machine$21, splitContentProps, splitProps as splitProps$21, splitTriggerProps } from "@zag-js/tabs";
28
+ import { connect as connect$22, machine as machine$22, splitItemProps as splitItemProps$9, splitProps as splitProps$22 } from "@zag-js/tags-input";
29
+ import { connect as connect$23, createStore as createToaster, group, machine as machine$23 } from "@zag-js/toast";
30
+ import { connect as connect$24, machine as machine$24, splitItemProps as splitItemProps$10, splitProps as splitProps$23 } from "@zag-js/toggle-group";
31
+ import { connect as connect$25, machine as machine$25, splitProps as splitProps$24 } from "@zag-js/tooltip";
32
+ import { collection as createTreeViewCollection, connect as connect$26, machine as machine$26, splitProps as splitProps$25 } from "@zag-js/tree-view";
30
33
  import { ListCollection } from "@zag-js/collection";
31
34
  //#region src/internal/create-context.ts
32
35
  function createContext$1(defaultValue) {
@@ -34,23 +37,31 @@ function createContext$1(defaultValue) {
34
37
  }
35
38
  //#endregion
36
39
  //#region src/components/accordion/modules/item-context.ts
37
- const ItemContext$7 = createContext$1();
40
+ const AccordionItemContext = createContext$1();
41
+ //#endregion
42
+ //#region src/components/locale-provider/modules/root-context.ts
43
+ const LocaleProviderRootContext = createContext$1({
44
+ locale: "en-US",
45
+ dir: isRTL("en-US") ? "rtl" : "ltr"
46
+ });
38
47
  //#endregion
39
48
  //#region src/components/accordion/modules/provider.ts
40
49
  function useAccordion(props = {}) {
50
+ const locale = use(LocaleProviderRootContext);
41
51
  return connect(useMachine(machine, {
42
52
  id: useId(),
53
+ dir: locale.dir,
43
54
  ...props
44
55
  }), normalizeProps);
45
56
  }
46
57
  //#endregion
47
58
  //#region src/components/accordion/modules/root-context.ts
48
- const RootContext$50 = createContext$1();
59
+ const AccordionRootContext$1 = createContext$1();
49
60
  //#endregion
50
61
  //#region src/components/accordion/anatomy/item-content.tsx
51
62
  function ItemContent(props) {
52
- const accordion = use(RootContext$50);
53
- const itemProps = use(ItemContext$7);
63
+ const accordion = use(AccordionRootContext$1);
64
+ const itemProps = use(AccordionItemContext);
54
65
  const { element, children, ...rest } = props;
55
66
  const attributes = mergeProps(accordion.getItemContentProps(itemProps), rest);
56
67
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -61,8 +72,8 @@ function ItemContent(props) {
61
72
  //#endregion
62
73
  //#region src/components/accordion/anatomy/item-indicator.tsx
63
74
  function ItemIndicator$3(props) {
64
- const accordion = use(RootContext$50);
65
- const itemProps = use(ItemContext$7);
75
+ const accordion = use(AccordionRootContext$1);
76
+ const itemProps = use(AccordionItemContext);
66
77
  const { element, children, ...rest } = props;
67
78
  const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), rest);
68
79
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -73,8 +84,8 @@ function ItemIndicator$3(props) {
73
84
  //#endregion
74
85
  //#region src/components/accordion/anatomy/item-trigger.tsx
75
86
  function ItemTrigger(props) {
76
- const accordion = use(RootContext$50);
77
- const itemProps = use(ItemContext$7);
87
+ const accordion = use(AccordionRootContext$1);
88
+ const itemProps = use(AccordionItemContext);
78
89
  const { element, children, ...rest } = props;
79
90
  const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), rest);
80
91
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -85,11 +96,11 @@ function ItemTrigger(props) {
85
96
  //#endregion
86
97
  //#region src/components/accordion/anatomy/item.tsx
87
98
  function Item$12(props) {
88
- const accordion = use(RootContext$50);
99
+ const accordion = use(AccordionRootContext$1);
89
100
  const [itemProps, componentProps] = splitItemProps(props);
90
101
  const { element, children, ...rest } = componentProps;
91
102
  const attributes = mergeProps(accordion.getItemProps(itemProps), rest);
92
- return /* @__PURE__ */ jsx(ItemContext$7.Provider, {
103
+ return /* @__PURE__ */ jsx(AccordionItemContext.Provider, {
93
104
  value: itemProps,
94
105
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
95
106
  ...attributes,
@@ -99,17 +110,17 @@ function Item$12(props) {
99
110
  }
100
111
  //#endregion
101
112
  //#region src/components/accordion/anatomy/root-context.tsx
102
- function RootContext$49(props) {
103
- const accordion = use(RootContext$50);
113
+ function AccordionRootContext(props) {
114
+ const accordion = use(AccordionRootContext$1);
104
115
  const { children } = props;
105
116
  return children(accordion);
106
117
  }
107
118
  //#endregion
108
119
  //#region src/components/accordion/anatomy/root-provider.tsx
109
- function RootProvider$18(props) {
120
+ function RootProvider$20(props) {
110
121
  const { element, children, value: accordion, ...rest } = props;
111
122
  const attributes = mergeProps(accordion.getRootProps(), rest);
112
- return /* @__PURE__ */ jsx(RootContext$50.Provider, {
123
+ return /* @__PURE__ */ jsx(AccordionRootContext$1.Provider, {
113
124
  value: accordion,
114
125
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
115
126
  ...attributes,
@@ -119,12 +130,12 @@ function RootProvider$18(props) {
119
130
  }
120
131
  //#endregion
121
132
  //#region src/components/accordion/anatomy/root.tsx
122
- function Root$19(props) {
133
+ function Root$22(props) {
123
134
  const [accordionProps, componentProps] = splitProps(props);
124
135
  const { element, children, ...rest } = componentProps;
125
136
  const accordion = useAccordion(accordionProps);
126
137
  const attributes = mergeProps(accordion.getRootProps(), rest);
127
- return /* @__PURE__ */ jsx(RootContext$50.Provider, {
138
+ return /* @__PURE__ */ jsx(AccordionRootContext$1.Provider, {
128
139
  value: accordion,
129
140
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
130
141
  ...attributes,
@@ -134,9 +145,9 @@ function Root$19(props) {
134
145
  }
135
146
  //#endregion
136
147
  //#region src/components/accordion/modules/anatomy.ts
137
- const Accordion = Object.assign(Root$19, {
138
- Provider: RootProvider$18,
139
- Context: RootContext$49,
148
+ const Accordion = Object.assign(Root$22, {
149
+ Provider: RootProvider$20,
150
+ Context: AccordionRootContext,
140
151
  Item: Item$12,
141
152
  ItemTrigger,
142
153
  ItemIndicator: ItemIndicator$3,
@@ -173,6 +184,7 @@ function AppBarLead(props) {
173
184
  function AppBarRoot(props) {
174
185
  const { element, children, ...rest } = props;
175
186
  const attributes = mergeProps({
187
+ dir: use(LocaleProviderRootContext).dir,
176
188
  "data-scope": "app-bar",
177
189
  "data-part": "root"
178
190
  }, rest);
@@ -217,11 +229,11 @@ const AppBar = Object.assign(AppBarRoot, {
217
229
  });
218
230
  //#endregion
219
231
  //#region src/components/avatar/modules/root-context.ts
220
- const RootContext$48 = createContext$1();
232
+ const AvatarRootContext$1 = createContext$1();
221
233
  //#endregion
222
234
  //#region src/components/avatar/anatomy/fallback.tsx
223
235
  function Fallback(props) {
224
- const avatar = use(RootContext$48);
236
+ const avatar = use(AvatarRootContext$1);
225
237
  const { element, children, ...rest } = props;
226
238
  const attributes = mergeProps(avatar.getFallbackProps(), rest);
227
239
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -232,15 +244,15 @@ function Fallback(props) {
232
244
  //#endregion
233
245
  //#region src/components/avatar/anatomy/image.tsx
234
246
  function Image(props) {
235
- const avatar = use(RootContext$48);
247
+ const avatar = use(AvatarRootContext$1);
236
248
  const { element, ...rest } = props;
237
249
  const attributes = mergeProps(avatar.getImageProps(), rest);
238
250
  return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
239
251
  }
240
252
  //#endregion
241
253
  //#region src/components/avatar/anatomy/root-context.tsx
242
- function RootContext$47(props) {
243
- const avatar = use(RootContext$48);
254
+ function AvatarRootContext(props) {
255
+ const avatar = use(AvatarRootContext$1);
244
256
  const { children } = props;
245
257
  return children(avatar);
246
258
  }
@@ -249,7 +261,7 @@ function RootContext$47(props) {
249
261
  function AvatarRootProvider(props) {
250
262
  const { element, children, value: avatar, ...rest } = props;
251
263
  const attributes = mergeProps(avatar.getRootProps(), rest);
252
- return /* @__PURE__ */ jsx(RootContext$48.Provider, {
264
+ return /* @__PURE__ */ jsx(AvatarRootContext$1.Provider, {
253
265
  value: avatar,
254
266
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
255
267
  ...attributes,
@@ -260,8 +272,10 @@ function AvatarRootProvider(props) {
260
272
  //#endregion
261
273
  //#region src/components/avatar/modules/provider.ts
262
274
  function useAvatar(props = {}) {
275
+ const locale = use(LocaleProviderRootContext);
263
276
  return connect$1(useMachine(machine$1, {
264
277
  id: useId(),
278
+ dir: locale.dir,
265
279
  ...props
266
280
  }), normalizeProps);
267
281
  }
@@ -272,7 +286,7 @@ function AvatarRoot(props) {
272
286
  const { element, children, ...rest } = componentProps;
273
287
  const avatar = useAvatar(avatarProps);
274
288
  const attributes = mergeProps(avatar.getRootProps(), rest);
275
- return /* @__PURE__ */ jsx(RootContext$48.Provider, {
289
+ return /* @__PURE__ */ jsx(AvatarRootContext$1.Provider, {
276
290
  value: avatar,
277
291
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
278
292
  ...attributes,
@@ -284,17 +298,17 @@ function AvatarRoot(props) {
284
298
  //#region src/components/avatar/modules/anatomy.ts
285
299
  const Avatar = Object.assign(AvatarRoot, {
286
300
  Provider: AvatarRootProvider,
287
- Context: RootContext$47,
301
+ Context: AvatarRootContext,
288
302
  Image,
289
303
  Fallback
290
304
  });
291
305
  //#endregion
292
306
  //#region src/components/carousel/modules/root-context.ts
293
- const RootContext$46 = createContext$1();
307
+ const CarouselRootContext$1 = createContext$1();
294
308
  //#endregion
295
309
  //#region src/components/carousel/anatomy/autoplay-trigger.tsx
296
310
  function AutoplayTrigger(props) {
297
- const carousel = use(RootContext$46);
311
+ const carousel = use(CarouselRootContext$1);
298
312
  const { element, children, ...rest } = props;
299
313
  const attributes = mergeProps(carousel.getAutoplayTriggerProps(), rest);
300
314
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -305,7 +319,7 @@ function AutoplayTrigger(props) {
305
319
  //#endregion
306
320
  //#region src/components/carousel/anatomy/control.tsx
307
321
  function Control$8(props) {
308
- const carousel = use(RootContext$46);
322
+ const carousel = use(CarouselRootContext$1);
309
323
  const { element, children, ...rest } = props;
310
324
  const attributes = mergeProps(carousel.getControlProps(), rest);
311
325
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -316,7 +330,7 @@ function Control$8(props) {
316
330
  //#endregion
317
331
  //#region src/components/carousel/anatomy/indicator.tsx
318
332
  function Indicator$5(props) {
319
- const carousel = use(RootContext$46);
333
+ const carousel = use(CarouselRootContext$1);
320
334
  const [indicatorProps, componentProps] = splitIndicatorProps(props);
321
335
  const { element, children, ...rest } = componentProps;
322
336
  const attributes = mergeProps(carousel.getIndicatorProps(indicatorProps), rest);
@@ -328,7 +342,7 @@ function Indicator$5(props) {
328
342
  //#endregion
329
343
  //#region src/components/carousel/anatomy/indicator-group.tsx
330
344
  function IndicatorGroup(props) {
331
- const carousel = use(RootContext$46);
345
+ const carousel = use(CarouselRootContext$1);
332
346
  const { element, children, ...rest } = props;
333
347
  const attributes = mergeProps(carousel.getIndicatorGroupProps(), rest);
334
348
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -339,7 +353,7 @@ function IndicatorGroup(props) {
339
353
  //#endregion
340
354
  //#region src/components/carousel/anatomy/item.tsx
341
355
  function Item$11(props) {
342
- const carousel = use(RootContext$46);
356
+ const carousel = use(CarouselRootContext$1);
343
357
  const [itemProps, componentProps] = splitItemProps$1(props);
344
358
  const { element, children, ...rest } = componentProps;
345
359
  const attributes = mergeProps(carousel.getItemProps(itemProps), rest);
@@ -351,7 +365,7 @@ function Item$11(props) {
351
365
  //#endregion
352
366
  //#region src/components/carousel/anatomy/item-group.tsx
353
367
  function ItemGroup$4(props) {
354
- const carousel = use(RootContext$46);
368
+ const carousel = use(CarouselRootContext$1);
355
369
  const { element, children, ...rest } = props;
356
370
  const attributes = mergeProps(carousel.getItemGroupProps(), rest);
357
371
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -362,7 +376,7 @@ function ItemGroup$4(props) {
362
376
  //#endregion
363
377
  //#region src/components/carousel/anatomy/next-trigger.tsx
364
378
  function NextTrigger$3(props) {
365
- const carousel = use(RootContext$46);
379
+ const carousel = use(CarouselRootContext$1);
366
380
  const { element, children, ...rest } = props;
367
381
  const attributes = mergeProps(carousel.getNextTriggerProps(), rest);
368
382
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -373,7 +387,7 @@ function NextTrigger$3(props) {
373
387
  //#endregion
374
388
  //#region src/components/carousel/anatomy/prev-trigger.tsx
375
389
  function PrevTrigger$3(props) {
376
- const carousel = use(RootContext$46);
390
+ const carousel = use(CarouselRootContext$1);
377
391
  const { element, children, ...rest } = props;
378
392
  const attributes = mergeProps(carousel.getPrevTriggerProps(), rest);
379
393
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -384,7 +398,7 @@ function PrevTrigger$3(props) {
384
398
  //#endregion
385
399
  //#region src/components/carousel/anatomy/progress-text.tsx
386
400
  function ProgressText(props) {
387
- const carousel = use(RootContext$46);
401
+ const carousel = use(CarouselRootContext$1);
388
402
  const { element, children, ...rest } = props;
389
403
  const attributes = mergeProps(carousel.getProgressTextProps(), rest);
390
404
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -394,17 +408,17 @@ function ProgressText(props) {
394
408
  }
395
409
  //#endregion
396
410
  //#region src/components/carousel/anatomy/root-context.tsx
397
- function RootContext$45(props) {
398
- const carousel = use(RootContext$46);
411
+ function CarouselRootContext(props) {
412
+ const carousel = use(CarouselRootContext$1);
399
413
  const { children } = props;
400
414
  return children(carousel);
401
415
  }
402
416
  //#endregion
403
417
  //#region src/components/carousel/anatomy/root-provider.tsx
404
- function RootProvider$17(props) {
418
+ function RootProvider$19(props) {
405
419
  const { element, children, value: carousel, ...rest } = props;
406
420
  const attributes = mergeProps(carousel.getRootProps(), rest);
407
- return /* @__PURE__ */ jsx(RootContext$46.Provider, {
421
+ return /* @__PURE__ */ jsx(CarouselRootContext$1.Provider, {
408
422
  value: carousel,
409
423
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
410
424
  ...attributes,
@@ -416,15 +430,17 @@ function RootProvider$17(props) {
416
430
  //#region src/components/carousel/modules/provider.ts
417
431
  function useCarousel(props) {
418
432
  const { slideCount, ...rest } = props;
433
+ const locale = use(LocaleProviderRootContext);
419
434
  return connect$2(useMachine(machine$2, {
420
435
  id: useId(),
436
+ dir: locale.dir,
421
437
  slideCount: slideCount ?? 0,
422
438
  ...rest
423
439
  }), normalizeProps);
424
440
  }
425
441
  //#endregion
426
442
  //#region src/components/carousel/anatomy/root.tsx
427
- function Root$18(props) {
443
+ function Root$21(props) {
428
444
  const [carouselProps, componentProps] = splitProps$2(props);
429
445
  const { element, children, ...rest } = componentProps;
430
446
  const carousel = useCarousel({
@@ -432,7 +448,7 @@ function Root$18(props) {
432
448
  slideCount: props.slideCount
433
449
  });
434
450
  const attributes = mergeProps(carousel.getRootProps(), rest);
435
- return /* @__PURE__ */ jsx(RootContext$46.Provider, {
451
+ return /* @__PURE__ */ jsx(CarouselRootContext$1.Provider, {
436
452
  value: carousel,
437
453
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
438
454
  ...attributes,
@@ -442,9 +458,9 @@ function Root$18(props) {
442
458
  }
443
459
  //#endregion
444
460
  //#region src/components/carousel/modules/anatomy.ts
445
- const Carousel = Object.assign(Root$18, {
446
- Provider: RootProvider$17,
447
- Context: RootContext$45,
461
+ const Carousel = Object.assign(Root$21, {
462
+ Provider: RootProvider$19,
463
+ Context: CarouselRootContext,
448
464
  Control: Control$8,
449
465
  ItemGroup: ItemGroup$4,
450
466
  Item: Item$11,
@@ -456,12 +472,102 @@ const Carousel = Object.assign(Root$18, {
456
472
  ProgressText
457
473
  });
458
474
  //#endregion
475
+ //#region src/components/marquee/modules/root-context.ts
476
+ const MarqueeRootContext$1 = createContext$1();
477
+ //#endregion
478
+ //#region src/components/marquee/anatomy/content.tsx
479
+ function Content$11(props) {
480
+ const marquee = use(MarqueeRootContext$1);
481
+ const { element, children, index, ...rest } = props;
482
+ const attributes = mergeProps(marquee.getContentProps({ index }), rest);
483
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
484
+ ...attributes,
485
+ children
486
+ });
487
+ }
488
+ //#endregion
489
+ //#region src/components/marquee/anatomy/edge.tsx
490
+ function Edge(props) {
491
+ const marquee = use(MarqueeRootContext$1);
492
+ const { element, children, side, ...rest } = props;
493
+ const attributes = mergeProps(marquee.getEdgeProps({ side }), rest);
494
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
495
+ ...attributes,
496
+ children
497
+ });
498
+ }
499
+ //#endregion
500
+ //#region src/components/marquee/anatomy/root-context.tsx
501
+ function MarqueeRootContext(props) {
502
+ const marquee = use(MarqueeRootContext$1);
503
+ const { children } = props;
504
+ return children(marquee);
505
+ }
506
+ //#endregion
507
+ //#region src/components/marquee/anatomy/root-provider.tsx
508
+ function RootProvider$18(props) {
509
+ const { element, children, value: marquee, ...rest } = props;
510
+ const attributes = mergeProps(marquee.getRootProps(), rest);
511
+ return /* @__PURE__ */ jsx(MarqueeRootContext$1.Provider, {
512
+ value: marquee,
513
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
514
+ ...attributes,
515
+ children
516
+ })
517
+ });
518
+ }
519
+ //#endregion
520
+ //#region src/components/marquee/modules/provider.ts
521
+ function useMarquee(props = {}) {
522
+ const locale = use(LocaleProviderRootContext);
523
+ return connect$3(useMachine(machine$3, {
524
+ id: useId(),
525
+ dir: locale.dir,
526
+ ...props
527
+ }), normalizeProps);
528
+ }
529
+ //#endregion
530
+ //#region src/components/marquee/anatomy/root.tsx
531
+ function Root$20(props) {
532
+ const [marqueeProps, componentProps] = splitProps$3(props);
533
+ const { element, children, ...rest } = componentProps;
534
+ const marquee = useMarquee(marqueeProps);
535
+ const attributes = mergeProps(marquee.getRootProps(), rest);
536
+ return /* @__PURE__ */ jsx(MarqueeRootContext$1.Provider, {
537
+ value: marquee,
538
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
539
+ ...attributes,
540
+ children
541
+ })
542
+ });
543
+ }
544
+ //#endregion
545
+ //#region src/components/marquee/anatomy/viewport.tsx
546
+ function Viewport(props) {
547
+ const marquee = use(MarqueeRootContext$1);
548
+ const { element, children, ...rest } = props;
549
+ const attributes = mergeProps(marquee.getViewportProps(), rest);
550
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
551
+ ...attributes,
552
+ children
553
+ });
554
+ }
555
+ //#endregion
556
+ //#region src/components/marquee/modules/anatomy.ts
557
+ const Marquee = Object.assign(Root$20, {
558
+ Provider: RootProvider$18,
559
+ Context: MarqueeRootContext,
560
+ Viewport,
561
+ Content: Content$11,
562
+ Edge
563
+ });
564
+ //#endregion
459
565
  //#region src/components/collapsible/modules/root-context.ts
460
- const RootContext$44 = createContext$1();
566
+ const CollapsibleRootContext$1 = createContext$1();
461
567
  //#endregion
462
568
  //#region src/components/collapsible/anatomy/content.tsx
463
569
  function Content$10(props) {
464
- const collapsible = use(RootContext$44);
570
+ const collapsible = use(CollapsibleRootContext$1);
465
571
  const { element, children, ...rest } = props;
466
572
  const attributes = mergeProps(collapsible.getContentProps(), rest);
467
573
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -472,7 +578,7 @@ function Content$10(props) {
472
578
  //#endregion
473
579
  //#region src/components/collapsible/anatomy/indicator.tsx
474
580
  function Indicator$4(props) {
475
- const collapsible = use(RootContext$44);
581
+ const collapsible = use(CollapsibleRootContext$1);
476
582
  const { element, children, ...rest } = props;
477
583
  const attributes = mergeProps(collapsible.getIndicatorProps(), rest);
478
584
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -482,8 +588,8 @@ function Indicator$4(props) {
482
588
  }
483
589
  //#endregion
484
590
  //#region src/components/collapsible/anatomy/root-context.tsx
485
- function RootContext$43(props) {
486
- const collapsible = use(RootContext$44);
591
+ function CollapsibleRootContext(props) {
592
+ const collapsible = use(CollapsibleRootContext$1);
487
593
  const { children } = props;
488
594
  return children(collapsible);
489
595
  }
@@ -492,7 +598,7 @@ function RootContext$43(props) {
492
598
  function CollapsibleRootProvider(props) {
493
599
  const { element, children, value: collapsible, ...rest } = props;
494
600
  const attributes = mergeProps(collapsible.getRootProps(), rest);
495
- return /* @__PURE__ */ jsx(RootContext$44.Provider, {
601
+ return /* @__PURE__ */ jsx(CollapsibleRootContext$1.Provider, {
496
602
  value: collapsible,
497
603
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
498
604
  ...attributes,
@@ -503,19 +609,21 @@ function CollapsibleRootProvider(props) {
503
609
  //#endregion
504
610
  //#region src/components/collapsible/modules/provider.ts
505
611
  function useCollapsible(props = {}) {
506
- return connect$3(useMachine(machine$3, {
612
+ const locale = use(LocaleProviderRootContext);
613
+ return connect$4(useMachine(machine$4, {
507
614
  id: useId(),
615
+ dir: locale.dir,
508
616
  ...props
509
617
  }), normalizeProps);
510
618
  }
511
619
  //#endregion
512
620
  //#region src/components/collapsible/anatomy/root.tsx
513
621
  function CollapsibleRoot(props) {
514
- const [collapsibleProps, componentProps] = splitProps$3(props);
622
+ const [collapsibleProps, componentProps] = splitProps$4(props);
515
623
  const { element, children, ...rest } = componentProps;
516
624
  const collapsible = useCollapsible(collapsibleProps);
517
625
  const attributes = mergeProps(collapsible.getRootProps(), rest);
518
- return /* @__PURE__ */ jsx(RootContext$44.Provider, {
626
+ return /* @__PURE__ */ jsx(CollapsibleRootContext$1.Provider, {
519
627
  value: collapsible,
520
628
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
521
629
  ...attributes,
@@ -526,7 +634,7 @@ function CollapsibleRoot(props) {
526
634
  //#endregion
527
635
  //#region src/components/collapsible/anatomy/trigger.tsx
528
636
  function Trigger$10(props) {
529
- const collapsible = use(RootContext$44);
637
+ const collapsible = use(CollapsibleRootContext$1);
530
638
  const { element, children, ...rest } = props;
531
639
  const attributes = mergeProps(collapsible.getTriggerProps(), rest);
532
640
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -538,18 +646,18 @@ function Trigger$10(props) {
538
646
  //#region src/components/collapsible/modules/anatomy.ts
539
647
  const Collapsible = Object.assign(CollapsibleRoot, {
540
648
  Provider: CollapsibleRootProvider,
541
- Context: RootContext$43,
649
+ Context: CollapsibleRootContext,
542
650
  Trigger: Trigger$10,
543
651
  Indicator: Indicator$4,
544
652
  Content: Content$10
545
653
  });
546
654
  //#endregion
547
655
  //#region src/components/combobox/modules/root-context.ts
548
- const RootContext$42 = createContext$1();
656
+ const ComboboxRootContext$1 = createContext$1();
549
657
  //#endregion
550
658
  //#region src/components/combobox/anatomy/clear-trigger.tsx
551
659
  function ClearTrigger$2(props) {
552
- const combobox = use(RootContext$42);
660
+ const combobox = use(ComboboxRootContext$1);
553
661
  const { element, children, ...rest } = props;
554
662
  const attributes = mergeProps(combobox.getClearTriggerProps(), rest);
555
663
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -560,7 +668,7 @@ function ClearTrigger$2(props) {
560
668
  //#endregion
561
669
  //#region src/components/combobox/anatomy/content.tsx
562
670
  function Content$9(props) {
563
- const combobox = use(RootContext$42);
671
+ const combobox = use(ComboboxRootContext$1);
564
672
  const { element, children, ...rest } = props;
565
673
  const attributes = mergeProps(combobox.getContentProps(), rest);
566
674
  return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
@@ -571,7 +679,7 @@ function Content$9(props) {
571
679
  //#endregion
572
680
  //#region src/components/combobox/anatomy/control.tsx
573
681
  function Control$7(props) {
574
- const combobox = use(RootContext$42);
682
+ const combobox = use(ComboboxRootContext$1);
575
683
  const { element, children, ...rest } = props;
576
684
  const attributes = mergeProps(combobox.getControlProps(), rest);
577
685
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -582,20 +690,20 @@ function Control$7(props) {
582
690
  //#endregion
583
691
  //#region src/components/combobox/anatomy/input.tsx
584
692
  function Input$3(props) {
585
- const combobox = use(RootContext$42);
693
+ const combobox = use(ComboboxRootContext$1);
586
694
  const { element, ...rest } = props;
587
695
  const attributes = mergeProps(combobox.getInputProps(), rest);
588
696
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
589
697
  }
590
698
  //#endregion
591
699
  //#region src/components/combobox/modules/item-group-context.ts
592
- const ItemGroupContext$2 = createContext$1();
700
+ const ComboboxItemGroupContext = createContext$1();
593
701
  //#endregion
594
702
  //#region src/components/combobox/anatomy/item-group-label.tsx
595
703
  function ItemGroupLabel$2(props) {
596
- const combobox = use(RootContext$42);
704
+ const combobox = use(ComboboxRootContext$1);
597
705
  const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({
598
- htmlFor: use(ItemGroupContext$2).id,
706
+ htmlFor: use(ComboboxItemGroupContext).id,
599
707
  ...props
600
708
  });
601
709
  const { element, children, ...rest } = componentProps;
@@ -608,14 +716,14 @@ function ItemGroupLabel$2(props) {
608
716
  //#endregion
609
717
  //#region src/components/combobox/anatomy/item-group.tsx
610
718
  function ItemGroup$3(props) {
611
- const combobox = use(RootContext$42);
719
+ const combobox = use(ComboboxRootContext$1);
612
720
  const [itemGroupProps, componentProps] = splitItemGroupProps({
613
721
  id: useId(),
614
722
  ...props
615
723
  });
616
724
  const { element, children, ...rest } = componentProps;
617
725
  const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), rest);
618
- return /* @__PURE__ */ jsx(ItemGroupContext$2.Provider, {
726
+ return /* @__PURE__ */ jsx(ComboboxItemGroupContext.Provider, {
619
727
  value: itemGroupProps,
620
728
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
621
729
  ...attributes,
@@ -644,12 +752,12 @@ function Check(props) {
644
752
  }
645
753
  //#endregion
646
754
  //#region src/components/combobox/modules/item-context.ts
647
- const ItemContext$6 = createContext$1();
755
+ const ComboboxItemContext = createContext$1();
648
756
  //#endregion
649
757
  //#region src/components/combobox/anatomy/item-indicator.tsx
650
758
  function ItemIndicator$2(props) {
651
- const combobox = use(RootContext$42);
652
- const itemProps = use(ItemContext$6);
759
+ const combobox = use(ComboboxRootContext$1);
760
+ const itemProps = use(ComboboxItemContext);
653
761
  const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }), ...rest } = props;
654
762
  const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), rest);
655
763
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -660,8 +768,8 @@ function ItemIndicator$2(props) {
660
768
  //#endregion
661
769
  //#region src/components/combobox/anatomy/item-text.tsx
662
770
  function ItemText$4(props) {
663
- const combobox = use(RootContext$42);
664
- const itemProps = use(ItemContext$6);
771
+ const combobox = use(ComboboxRootContext$1);
772
+ const itemProps = use(ComboboxItemContext);
665
773
  const { element, children, ...rest } = props;
666
774
  const attributes = mergeProps(combobox.getItemTextProps(itemProps), rest);
667
775
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -672,11 +780,11 @@ function ItemText$4(props) {
672
780
  //#endregion
673
781
  //#region src/components/combobox/anatomy/item.tsx
674
782
  function Item$10(props) {
675
- const combobox = use(RootContext$42);
783
+ const combobox = use(ComboboxRootContext$1);
676
784
  const [itemProps, componentProps] = splitItemProps$2(props);
677
785
  const { element, children, ...rest } = componentProps;
678
786
  const attributes = mergeProps(combobox.getItemProps(itemProps), rest);
679
- return /* @__PURE__ */ jsx(ItemContext$6.Provider, {
787
+ return /* @__PURE__ */ jsx(ComboboxItemContext.Provider, {
680
788
  value: itemProps,
681
789
  children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
682
790
  ...attributes,
@@ -687,7 +795,7 @@ function Item$10(props) {
687
795
  //#endregion
688
796
  //#region src/components/combobox/anatomy/label.tsx
689
797
  function Label$10(props) {
690
- const combobox = use(RootContext$42);
798
+ const combobox = use(ComboboxRootContext$1);
691
799
  const { element, children, ...rest } = props;
692
800
  const attributes = mergeProps(combobox.getLabelProps(), rest);
693
801
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -698,7 +806,7 @@ function Label$10(props) {
698
806
  //#endregion
699
807
  //#region src/components/combobox/anatomy/positioner.tsx
700
808
  function Positioner$6(props) {
701
- const combobox = use(RootContext$42);
809
+ const combobox = use(ComboboxRootContext$1);
702
810
  const { element, children, ...rest } = props;
703
811
  const attributes = mergeProps(combobox.getPositionerProps(), rest);
704
812
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -708,25 +816,27 @@ function Positioner$6(props) {
708
816
  }
709
817
  //#endregion
710
818
  //#region src/components/combobox/anatomy/root-context.tsx
711
- function RootContext$41(props) {
712
- const combobox = use(RootContext$42);
819
+ function ComboboxRootContext(props) {
820
+ const combobox = use(ComboboxRootContext$1);
713
821
  const { children } = props;
714
822
  return children(combobox);
715
823
  }
716
824
  //#endregion
717
825
  //#region src/components/combobox/modules/provider.ts
718
826
  function useCombobox(props = {}) {
719
- return connect$4(useMachine(machine$4, {
827
+ const locale = use(LocaleProviderRootContext);
828
+ return connect$5(useMachine(machine$5, {
720
829
  id: useId(),
830
+ dir: locale.dir,
721
831
  ...props
722
832
  }), normalizeProps);
723
833
  }
724
834
  //#endregion
725
835
  //#region src/components/combobox/anatomy/root-provider.tsx
726
- function RootProvider$16(props) {
836
+ function RootProvider$17(props) {
727
837
  const { element, children, value: combobox, ...rest } = props;
728
838
  const attributes = mergeProps(combobox.getRootProps(), rest);
729
- return /* @__PURE__ */ jsx(RootContext$42.Provider, {
839
+ return /* @__PURE__ */ jsx(ComboboxRootContext$1.Provider, {
730
840
  value: combobox,
731
841
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
732
842
  ...attributes,
@@ -736,12 +846,12 @@ function RootProvider$16(props) {
736
846
  }
737
847
  //#endregion
738
848
  //#region src/components/combobox/anatomy/root.tsx
739
- function Root$17(props) {
740
- const [comboboxProps, componentProps] = splitProps$4(props);
849
+ function Root$19(props) {
850
+ const [comboboxProps, componentProps] = splitProps$5(props);
741
851
  const { element, children, ...rest } = componentProps;
742
852
  const combobox = useCombobox(comboboxProps);
743
853
  const attributes = mergeProps(combobox.getRootProps(), rest);
744
- return /* @__PURE__ */ jsx(RootContext$42.Provider, {
854
+ return /* @__PURE__ */ jsx(ComboboxRootContext$1.Provider, {
745
855
  value: combobox,
746
856
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
747
857
  ...attributes,
@@ -771,7 +881,7 @@ function ChevronDown(props) {
771
881
  //#endregion
772
882
  //#region src/components/combobox/anatomy/trigger.tsx
773
883
  function Trigger$9(props) {
774
- const combobox = use(RootContext$42);
884
+ const combobox = use(ComboboxRootContext$1);
775
885
  const { element, children = /* @__PURE__ */ jsx(ChevronDown, {}), ...rest } = props;
776
886
  const attributes = mergeProps(combobox.getTriggerProps(), rest);
777
887
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -781,9 +891,9 @@ function Trigger$9(props) {
781
891
  }
782
892
  //#endregion
783
893
  //#region src/components/combobox/modules/anatomy.ts
784
- const Combobox = Object.assign(Root$17, {
785
- Provider: RootProvider$16,
786
- Context: RootContext$41,
894
+ const Combobox = Object.assign(Root$19, {
895
+ Provider: RootProvider$17,
896
+ Context: ComboboxRootContext,
787
897
  Label: Label$10,
788
898
  Control: Control$7,
789
899
  Input: Input$3,
@@ -799,11 +909,11 @@ const Combobox = Object.assign(Root$17, {
799
909
  });
800
910
  //#endregion
801
911
  //#region src/components/date-picker/modules/root-context.ts
802
- const RootContext$40 = createContext$1();
912
+ const DatePickerRootContext$1 = createContext$1();
803
913
  //#endregion
804
914
  //#region src/components/date-picker/anatomy/content.tsx
805
915
  function Content$8(props) {
806
- const datePicker = use(RootContext$40);
916
+ const datePicker = use(DatePickerRootContext$1);
807
917
  const { element, children, ...rest } = props;
808
918
  const attributes = mergeProps(datePicker.getContentProps(), rest);
809
919
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -814,7 +924,7 @@ function Content$8(props) {
814
924
  //#endregion
815
925
  //#region src/components/date-picker/anatomy/control.tsx
816
926
  function Control$6(props) {
817
- const datePicker = use(RootContext$40);
927
+ const datePicker = use(DatePickerRootContext$1);
818
928
  const { element, children, ...rest } = props;
819
929
  const attributes = mergeProps(datePicker.getControlProps(), rest);
820
930
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -825,7 +935,7 @@ function Control$6(props) {
825
935
  //#endregion
826
936
  //#region src/components/date-picker/anatomy/input.tsx
827
937
  function Input$2(props) {
828
- const datePicker = use(RootContext$40);
938
+ const datePicker = use(DatePickerRootContext$1);
829
939
  const [inputProps, componentProps] = splitInputProps(props);
830
940
  const { element, ...rest } = componentProps;
831
941
  const attributes = mergeProps(datePicker.getInputProps(inputProps), rest);
@@ -834,7 +944,7 @@ function Input$2(props) {
834
944
  //#endregion
835
945
  //#region src/components/date-picker/anatomy/label.tsx
836
946
  function Label$9(props) {
837
- const datePicker = use(RootContext$40);
947
+ const datePicker = use(DatePickerRootContext$1);
838
948
  const { element, children, ...rest } = props;
839
949
  const attributes = mergeProps(datePicker.getLabelProps(), rest);
840
950
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -845,7 +955,7 @@ function Label$9(props) {
845
955
  //#endregion
846
956
  //#region src/components/date-picker/anatomy/month-select.tsx
847
957
  function MonthSelect(props) {
848
- const datePicker = use(RootContext$40);
958
+ const datePicker = use(DatePickerRootContext$1);
849
959
  const { element, ...rest } = props;
850
960
  const attributes = mergeProps(datePicker.getMonthSelectProps(), rest);
851
961
  return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
@@ -877,12 +987,12 @@ function ChevronRight(props) {
877
987
  }
878
988
  //#endregion
879
989
  //#region src/components/date-picker/modules/view-context.ts
880
- const ViewContext = createContext$1({ view: "day" });
990
+ const DatePickerViewContext = createContext$1({ view: "day" });
881
991
  //#endregion
882
992
  //#region src/components/date-picker/anatomy/next-trigger.tsx
883
993
  function NextTrigger$2(props) {
884
- const datePicker = use(RootContext$40);
885
- const viewProps = use(ViewContext);
994
+ const datePicker = use(DatePickerRootContext$1);
995
+ const viewProps = use(DatePickerViewContext);
886
996
  const { element, children = /* @__PURE__ */ jsx(ChevronRight, {}), ...rest } = props;
887
997
  const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), rest);
888
998
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -893,7 +1003,7 @@ function NextTrigger$2(props) {
893
1003
  //#endregion
894
1004
  //#region src/components/date-picker/anatomy/positioner.tsx
895
1005
  function Positioner$5(props) {
896
- const datePicker = use(RootContext$40);
1006
+ const datePicker = use(DatePickerRootContext$1);
897
1007
  const { element, children, ...rest } = props;
898
1008
  const attributes = mergeProps(datePicker.getPositionerProps(), rest);
899
1009
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -904,7 +1014,7 @@ function Positioner$5(props) {
904
1014
  //#endregion
905
1015
  //#region src/components/date-picker/anatomy/preset-trigger.tsx
906
1016
  function PresetTrigger(props) {
907
- const datePicker = use(RootContext$40);
1017
+ const datePicker = use(DatePickerRootContext$1);
908
1018
  const [presetTriggerProps, componentProps] = splitPresetTriggerProps(props);
909
1019
  const { element, children, ...rest } = componentProps;
910
1020
  const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), rest);
@@ -935,8 +1045,8 @@ function ChevronLeft(props) {
935
1045
  //#endregion
936
1046
  //#region src/components/date-picker/anatomy/prev-trigger.tsx
937
1047
  function PrevTrigger$2(props) {
938
- const datePicker = use(RootContext$40);
939
- const viewProps = use(ViewContext);
1048
+ const datePicker = use(DatePickerRootContext$1);
1049
+ const viewProps = use(DatePickerViewContext);
940
1050
  const { element, children = /* @__PURE__ */ jsx(ChevronLeft, {}), ...rest } = props;
941
1051
  const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), rest);
942
1052
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -947,8 +1057,8 @@ function PrevTrigger$2(props) {
947
1057
  //#endregion
948
1058
  //#region src/components/date-picker/anatomy/range-text.tsx
949
1059
  function RangeText(props) {
950
- const datePicker = use(RootContext$40);
951
- const rangeText = Array.from(new Set([datePicker.visibleRangeText.start, datePicker.visibleRangeText.end])).join(" - ");
1060
+ const datePicker = use(DatePickerRootContext$1);
1061
+ const rangeText = Array.from(/* @__PURE__ */ new Set([datePicker.visibleRangeText.start, datePicker.visibleRangeText.end])).join(" - ");
952
1062
  const { element, children = rangeText, ...rest } = props;
953
1063
  const attributes = mergeProps(datePicker.getRangeTextProps(), rest);
954
1064
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -958,25 +1068,27 @@ function RangeText(props) {
958
1068
  }
959
1069
  //#endregion
960
1070
  //#region src/components/date-picker/anatomy/root-context.tsx
961
- function RootContext$39(props) {
962
- const datePicker = use(RootContext$40);
1071
+ function DatePickerRootContext(props) {
1072
+ const datePicker = use(DatePickerRootContext$1);
963
1073
  const { children } = props;
964
1074
  return children(datePicker);
965
1075
  }
966
1076
  //#endregion
967
1077
  //#region src/components/date-picker/modules/provider.ts
968
1078
  function useDatePicker(props = {}) {
969
- return connect$5(useMachine(machine$5, {
1079
+ const locale = use(LocaleProviderRootContext);
1080
+ return connect$6(useMachine(machine$6, {
970
1081
  id: useId(),
1082
+ dir: locale.dir,
971
1083
  ...props
972
1084
  }), normalizeProps);
973
1085
  }
974
1086
  //#endregion
975
1087
  //#region src/components/date-picker/anatomy/root-provider.tsx
976
- function RootProvider$15(props) {
1088
+ function RootProvider$16(props) {
977
1089
  const { element, children, value: datePicker, ...rest } = props;
978
1090
  const attributes = mergeProps(datePicker.getRootProps(), rest);
979
- return /* @__PURE__ */ jsx(RootContext$40.Provider, {
1091
+ return /* @__PURE__ */ jsx(DatePickerRootContext$1.Provider, {
980
1092
  value: datePicker,
981
1093
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
982
1094
  ...attributes,
@@ -986,12 +1098,12 @@ function RootProvider$15(props) {
986
1098
  }
987
1099
  //#endregion
988
1100
  //#region src/components/date-picker/anatomy/root.tsx
989
- function Root$16(props) {
990
- const [datePickerProps, componentProps] = splitProps$5(props);
1101
+ function Root$18(props) {
1102
+ const [datePickerProps, componentProps] = splitProps$6(props);
991
1103
  const { element, children, ...rest } = componentProps;
992
1104
  const datePicker = useDatePicker(datePickerProps);
993
1105
  const attributes = mergeProps(datePicker.getRootProps(), rest);
994
- return /* @__PURE__ */ jsx(RootContext$40.Provider, {
1106
+ return /* @__PURE__ */ jsx(DatePickerRootContext$1.Provider, {
995
1107
  value: datePicker,
996
1108
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
997
1109
  ...attributes,
@@ -1002,8 +1114,8 @@ function Root$16(props) {
1002
1114
  //#endregion
1003
1115
  //#region src/components/date-picker/anatomy/table-body.tsx
1004
1116
  function TableBody(props) {
1005
- const datePicker = use(RootContext$40);
1006
- const viewProps = use(ViewContext);
1117
+ const datePicker = use(DatePickerRootContext$1);
1118
+ const viewProps = use(DatePickerViewContext);
1007
1119
  const { element, children, ...rest } = props;
1008
1120
  const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), rest);
1009
1121
  return element ? element(attributes) : /* @__PURE__ */ jsx("tbody", {
@@ -1013,13 +1125,13 @@ function TableBody(props) {
1013
1125
  }
1014
1126
  //#endregion
1015
1127
  //#region src/components/date-picker/modules/table-cell-context.ts
1016
- const TableCellContext = createContext$1();
1128
+ const DatePickerTableCellContext = createContext$1();
1017
1129
  //#endregion
1018
1130
  //#region src/components/date-picker/anatomy/table-cell-trigger.tsx
1019
1131
  function TableCellTrigger(props) {
1020
- const datePicker = use(RootContext$40);
1021
- const viewProps = use(ViewContext);
1022
- const tableCellProps = use(TableCellContext);
1132
+ const datePicker = use(DatePickerRootContext$1);
1133
+ const viewProps = use(DatePickerViewContext);
1134
+ const tableCellProps = use(DatePickerTableCellContext);
1023
1135
  const { element, children, ...rest } = props;
1024
1136
  function getTableCellTriggerProps(tableCellProps) {
1025
1137
  switch (viewProps.view) {
@@ -1037,8 +1149,8 @@ function TableCellTrigger(props) {
1037
1149
  //#endregion
1038
1150
  //#region src/components/date-picker/anatomy/table-cell.tsx
1039
1151
  function TableCell(props) {
1040
- const datePicker = use(RootContext$40);
1041
- const viewProps = use(ViewContext);
1152
+ const datePicker = use(DatePickerRootContext$1);
1153
+ const viewProps = use(DatePickerViewContext);
1042
1154
  const [tableCellProps, componentProps] = splitTableCellProps(props);
1043
1155
  const { element, children, ...rest } = componentProps;
1044
1156
  function getTableCellProps(tableCellProps) {
@@ -1049,7 +1161,7 @@ function TableCell(props) {
1049
1161
  }
1050
1162
  }
1051
1163
  const attributes = mergeProps(getTableCellProps(tableCellProps), rest);
1052
- return /* @__PURE__ */ jsx(TableCellContext.Provider, {
1164
+ return /* @__PURE__ */ jsx(DatePickerTableCellContext.Provider, {
1053
1165
  value: tableCellProps,
1054
1166
  children: element ? element(attributes) : /* @__PURE__ */ jsx("td", {
1055
1167
  ...attributes,
@@ -1060,8 +1172,8 @@ function TableCell(props) {
1060
1172
  //#endregion
1061
1173
  //#region src/components/date-picker/anatomy/table-head.tsx
1062
1174
  function TableHead(props) {
1063
- const datePicker = use(RootContext$40);
1064
- const viewProps = use(ViewContext);
1175
+ const datePicker = use(DatePickerRootContext$1);
1176
+ const viewProps = use(DatePickerViewContext);
1065
1177
  const { element, children, ...rest } = props;
1066
1178
  const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), rest);
1067
1179
  return element ? element(attributes) : /* @__PURE__ */ jsx("thead", {
@@ -1072,8 +1184,8 @@ function TableHead(props) {
1072
1184
  //#endregion
1073
1185
  //#region src/components/date-picker/anatomy/table-header.tsx
1074
1186
  function TableHeader(props) {
1075
- const datePicker = use(RootContext$40);
1076
- const viewProps = use(ViewContext);
1187
+ const datePicker = use(DatePickerRootContext$1);
1188
+ const viewProps = use(DatePickerViewContext);
1077
1189
  const { element, children, ...rest } = props;
1078
1190
  const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), rest);
1079
1191
  return element ? element(attributes) : /* @__PURE__ */ jsx("th", {
@@ -1084,8 +1196,8 @@ function TableHeader(props) {
1084
1196
  //#endregion
1085
1197
  //#region src/components/date-picker/anatomy/table-row.tsx
1086
1198
  function TableRow(props) {
1087
- const datePicker = use(RootContext$40);
1088
- const viewProps = use(ViewContext);
1199
+ const datePicker = use(DatePickerRootContext$1);
1200
+ const viewProps = use(DatePickerViewContext);
1089
1201
  const { element, children, ...rest } = props;
1090
1202
  const attributes = mergeProps(datePicker.getTableRowProps(viewProps), rest);
1091
1203
  return element ? element(attributes) : /* @__PURE__ */ jsx("tr", {
@@ -1096,8 +1208,8 @@ function TableRow(props) {
1096
1208
  //#endregion
1097
1209
  //#region src/components/date-picker/anatomy/table.tsx
1098
1210
  function Table(props) {
1099
- const datePicker = use(RootContext$40);
1100
- const viewProps = use(ViewContext);
1211
+ const datePicker = use(DatePickerRootContext$1);
1212
+ const viewProps = use(DatePickerViewContext);
1101
1213
  const { element, children, ...rest } = props;
1102
1214
  const attributes = mergeProps(datePicker.getTableProps(viewProps), rest);
1103
1215
  return element ? element(attributes) : /* @__PURE__ */ jsx("table", {
@@ -1138,7 +1250,7 @@ function Calendar(props) {
1138
1250
  //#endregion
1139
1251
  //#region src/components/date-picker/anatomy/trigger.tsx
1140
1252
  function Trigger$8(props) {
1141
- const datePicker = use(RootContext$40);
1253
+ const datePicker = use(DatePickerRootContext$1);
1142
1254
  const { element, children = /* @__PURE__ */ jsx(Calendar, {}), ...rest } = props;
1143
1255
  const attributes = mergeProps(datePicker.getTriggerProps(), rest);
1144
1256
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1149,8 +1261,8 @@ function Trigger$8(props) {
1149
1261
  //#endregion
1150
1262
  //#region src/components/date-picker/anatomy/view-control.tsx
1151
1263
  function ViewControl(props) {
1152
- const datePicker = use(RootContext$40);
1153
- const viewProps = use(ViewContext);
1264
+ const datePicker = use(DatePickerRootContext$1);
1265
+ const viewProps = use(DatePickerViewContext);
1154
1266
  const { element, children, ...rest } = props;
1155
1267
  const attributes = mergeProps(datePicker.getViewControlProps(viewProps), rest);
1156
1268
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1161,8 +1273,8 @@ function ViewControl(props) {
1161
1273
  //#endregion
1162
1274
  //#region src/components/date-picker/anatomy/view-trigger.tsx
1163
1275
  function ViewTrigger(props) {
1164
- const datePicker = use(RootContext$40);
1165
- const viewProps = use(ViewContext);
1276
+ const datePicker = use(DatePickerRootContext$1);
1277
+ const viewProps = use(DatePickerViewContext);
1166
1278
  const { element, children, ...rest } = props;
1167
1279
  const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), rest);
1168
1280
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1173,11 +1285,11 @@ function ViewTrigger(props) {
1173
1285
  //#endregion
1174
1286
  //#region src/components/date-picker/anatomy/view.tsx
1175
1287
  function View(props) {
1176
- const datePicker = use(RootContext$40);
1288
+ const datePicker = use(DatePickerRootContext$1);
1177
1289
  const [viewProps, componentProps] = splitViewProps(props);
1178
1290
  const { element, children, ...rest } = componentProps;
1179
1291
  const attributes = mergeProps(datePicker.getViewProps(viewProps), rest);
1180
- return /* @__PURE__ */ jsx(ViewContext.Provider, {
1292
+ return /* @__PURE__ */ jsx(DatePickerViewContext.Provider, {
1181
1293
  value: viewProps,
1182
1294
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1183
1295
  ...attributes,
@@ -1188,7 +1300,7 @@ function View(props) {
1188
1300
  //#endregion
1189
1301
  //#region src/components/date-picker/anatomy/year-select.tsx
1190
1302
  function YearSelect(props) {
1191
- const datePicker = use(RootContext$40);
1303
+ const datePicker = use(DatePickerRootContext$1);
1192
1304
  const { element, ...rest } = props;
1193
1305
  const attributes = mergeProps(datePicker.getYearSelectProps(), rest);
1194
1306
  return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
@@ -1201,9 +1313,9 @@ function YearSelect(props) {
1201
1313
  }
1202
1314
  //#endregion
1203
1315
  //#region src/components/date-picker/modules/anatomy.ts
1204
- const DatePicker = Object.assign(Root$16, {
1205
- Provider: RootProvider$15,
1206
- Context: RootContext$39,
1316
+ const DatePicker = Object.assign(Root$18, {
1317
+ Provider: RootProvider$16,
1318
+ Context: DatePickerRootContext,
1207
1319
  Label: Label$9,
1208
1320
  Control: Control$6,
1209
1321
  PresetTrigger,
@@ -1229,11 +1341,11 @@ const DatePicker = Object.assign(Root$16, {
1229
1341
  });
1230
1342
  //#endregion
1231
1343
  //#region src/components/dialog/modules/root-context.ts
1232
- const RootContext$38 = createContext$1();
1344
+ const DialogRootContext$1 = createContext$1();
1233
1345
  //#endregion
1234
1346
  //#region src/components/dialog/anatomy/backdrop.tsx
1235
1347
  function Backdrop(props) {
1236
- const dialog = use(RootContext$38);
1348
+ const dialog = use(DialogRootContext$1);
1237
1349
  const { element, ...rest } = props;
1238
1350
  const attributes = mergeProps(dialog.getBackdropProps(), rest);
1239
1351
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
@@ -1241,7 +1353,7 @@ function Backdrop(props) {
1241
1353
  //#endregion
1242
1354
  //#region src/components/dialog/anatomy/close-trigger.tsx
1243
1355
  function CloseTrigger$3(props) {
1244
- const dialog = use(RootContext$38);
1356
+ const dialog = use(DialogRootContext$1);
1245
1357
  const { element, children, ...rest } = props;
1246
1358
  const attributes = mergeProps(dialog.getCloseTriggerProps(), rest);
1247
1359
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1252,7 +1364,7 @@ function CloseTrigger$3(props) {
1252
1364
  //#endregion
1253
1365
  //#region src/components/dialog/anatomy/content.tsx
1254
1366
  function Content$7(props) {
1255
- const dialog = use(RootContext$38);
1367
+ const dialog = use(DialogRootContext$1);
1256
1368
  const { element, children, ...rest } = props;
1257
1369
  const attributes = mergeProps(dialog.getContentProps(), rest);
1258
1370
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1263,7 +1375,7 @@ function Content$7(props) {
1263
1375
  //#endregion
1264
1376
  //#region src/components/dialog/anatomy/description.tsx
1265
1377
  function Description$2(props) {
1266
- const dialog = use(RootContext$38);
1378
+ const dialog = use(DialogRootContext$1);
1267
1379
  const { element, children, ...rest } = props;
1268
1380
  const attributes = mergeProps(dialog.getDescriptionProps(), rest);
1269
1381
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1274,7 +1386,7 @@ function Description$2(props) {
1274
1386
  //#endregion
1275
1387
  //#region src/components/dialog/anatomy/positioner.tsx
1276
1388
  function Positioner$4(props) {
1277
- const dialog = use(RootContext$38);
1389
+ const dialog = use(DialogRootContext$1);
1278
1390
  const { element, children, ...rest } = props;
1279
1391
  const attributes = mergeProps(dialog.getPositionerProps(), rest);
1280
1392
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1284,16 +1396,16 @@ function Positioner$4(props) {
1284
1396
  }
1285
1397
  //#endregion
1286
1398
  //#region src/components/dialog/anatomy/root-context.tsx
1287
- function RootContext$37(props) {
1288
- const dialog = use(RootContext$38);
1399
+ function DialogRootContext(props) {
1400
+ const dialog = use(DialogRootContext$1);
1289
1401
  const { children } = props;
1290
1402
  return children(dialog);
1291
1403
  }
1292
1404
  //#endregion
1293
1405
  //#region src/components/dialog/anatomy/root-provider.tsx
1294
- function RootProvider$14(props) {
1406
+ function RootProvider$15(props) {
1295
1407
  const { children, value: dialog } = props;
1296
- return /* @__PURE__ */ jsx(RootContext$38.Provider, {
1408
+ return /* @__PURE__ */ jsx(DialogRootContext$1.Provider, {
1297
1409
  value: dialog,
1298
1410
  children
1299
1411
  });
@@ -1301,18 +1413,20 @@ function RootProvider$14(props) {
1301
1413
  //#endregion
1302
1414
  //#region src/components/dialog/modules/provider.ts
1303
1415
  function useDialog(props = {}) {
1304
- return connect$6(useMachine(machine$6, {
1416
+ const locale = use(LocaleProviderRootContext);
1417
+ return connect$7(useMachine(machine$7, {
1305
1418
  id: useId(),
1419
+ dir: locale.dir,
1306
1420
  ...props
1307
1421
  }), normalizeProps);
1308
1422
  }
1309
1423
  //#endregion
1310
1424
  //#region src/components/dialog/anatomy/root.tsx
1311
- function Root$15(props) {
1312
- const [dialogProps, componentProps] = splitProps$6(props);
1425
+ function Root$17(props) {
1426
+ const [dialogProps, componentProps] = splitProps$7(props);
1313
1427
  const { children } = componentProps;
1314
1428
  const dialog = useDialog(dialogProps);
1315
- return /* @__PURE__ */ jsx(RootContext$38.Provider, {
1429
+ return /* @__PURE__ */ jsx(DialogRootContext$1.Provider, {
1316
1430
  value: dialog,
1317
1431
  children
1318
1432
  });
@@ -1320,7 +1434,7 @@ function Root$15(props) {
1320
1434
  //#endregion
1321
1435
  //#region src/components/dialog/anatomy/title.tsx
1322
1436
  function Title$3(props) {
1323
- const dialog = use(RootContext$38);
1437
+ const dialog = use(DialogRootContext$1);
1324
1438
  const { element, children, ...rest } = props;
1325
1439
  const attributes = mergeProps(dialog.getTitleProps(), rest);
1326
1440
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1331,7 +1445,7 @@ function Title$3(props) {
1331
1445
  //#endregion
1332
1446
  //#region src/components/dialog/anatomy/trigger.tsx
1333
1447
  function Trigger$7(props) {
1334
- const dialog = use(RootContext$38);
1448
+ const dialog = use(DialogRootContext$1);
1335
1449
  const { element, children, ...rest } = props;
1336
1450
  const attributes = mergeProps(dialog.getTriggerProps(), rest);
1337
1451
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1341,9 +1455,9 @@ function Trigger$7(props) {
1341
1455
  }
1342
1456
  //#endregion
1343
1457
  //#region src/components/dialog/modules/anatomy.ts
1344
- const Dialog = Object.assign(Root$15, {
1345
- Provider: RootProvider$14,
1346
- Context: RootContext$37,
1458
+ const Dialog = Object.assign(Root$17, {
1459
+ Provider: RootProvider$15,
1460
+ Context: DialogRootContext,
1347
1461
  Trigger: Trigger$7,
1348
1462
  Backdrop,
1349
1463
  Positioner: Positioner$4,
@@ -1354,11 +1468,11 @@ const Dialog = Object.assign(Root$15, {
1354
1468
  });
1355
1469
  //#endregion
1356
1470
  //#region src/components/file-upload/modules/root-context.ts
1357
- const RootContext$36 = createContext$1();
1471
+ const FileUploadRootContext$1 = createContext$1();
1358
1472
  //#endregion
1359
1473
  //#region src/components/file-upload/anatomy/clear-trigger.tsx
1360
1474
  function ClearTrigger$1(props) {
1361
- const fileUpload = use(RootContext$36);
1475
+ const fileUpload = use(FileUploadRootContext$1);
1362
1476
  const { element, children, ...rest } = props;
1363
1477
  const attributes = mergeProps(fileUpload.getClearTriggerProps(), rest);
1364
1478
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1369,7 +1483,7 @@ function ClearTrigger$1(props) {
1369
1483
  //#endregion
1370
1484
  //#region src/components/file-upload/anatomy/dropzone.tsx
1371
1485
  function Dropzone(props) {
1372
- const fileUpload = use(RootContext$36);
1486
+ const fileUpload = use(FileUploadRootContext$1);
1373
1487
  const { element, children, ...rest } = props;
1374
1488
  const attributes = mergeProps(fileUpload.getDropzoneProps(), rest);
1375
1489
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1380,19 +1494,19 @@ function Dropzone(props) {
1380
1494
  //#endregion
1381
1495
  //#region src/components/file-upload/anatomy/hidden-input.tsx
1382
1496
  function HiddenInput$4(props) {
1383
- const fileUpload = use(RootContext$36);
1497
+ const fileUpload = use(FileUploadRootContext$1);
1384
1498
  const { element, ...rest } = props;
1385
1499
  const attributes = mergeProps(fileUpload.getHiddenInputProps(), rest);
1386
1500
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
1387
1501
  }
1388
1502
  //#endregion
1389
1503
  //#region src/components/file-upload/modules/item-context.ts
1390
- const ItemContext$5 = createContext$1();
1504
+ const FileUploadItemContext = createContext$1();
1391
1505
  //#endregion
1392
1506
  //#region src/components/file-upload/anatomy/item-delete-trigger.tsx
1393
1507
  function ItemDeleteTrigger$1(props) {
1394
- const fileUpload = use(RootContext$36);
1395
- const itemProps = use(ItemContext$5);
1508
+ const fileUpload = use(FileUploadRootContext$1);
1509
+ const itemProps = use(FileUploadItemContext);
1396
1510
  const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
1397
1511
  const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), rest);
1398
1512
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1403,7 +1517,7 @@ function ItemDeleteTrigger$1(props) {
1403
1517
  //#endregion
1404
1518
  //#region src/components/file-upload/anatomy/item-group.tsx
1405
1519
  function ItemGroup$2(props) {
1406
- const fileUpload = use(RootContext$36);
1520
+ const fileUpload = use(FileUploadRootContext$1);
1407
1521
  const { element, children, ...rest } = props;
1408
1522
  const attributes = mergeProps(fileUpload.getItemGroupProps(), rest);
1409
1523
  return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
@@ -1414,8 +1528,8 @@ function ItemGroup$2(props) {
1414
1528
  //#endregion
1415
1529
  //#region src/components/file-upload/anatomy/item-name.tsx
1416
1530
  function ItemName(props) {
1417
- const fileUpload = use(RootContext$36);
1418
- const itemProps = use(ItemContext$5);
1531
+ const fileUpload = use(FileUploadRootContext$1);
1532
+ const itemProps = use(FileUploadItemContext);
1419
1533
  const { element, children, ...rest } = props;
1420
1534
  const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), rest);
1421
1535
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1426,8 +1540,8 @@ function ItemName(props) {
1426
1540
  //#endregion
1427
1541
  //#region src/components/file-upload/anatomy/item-size-text.tsx
1428
1542
  function ItemSizeText(props) {
1429
- const fileUpload = use(RootContext$36);
1430
- const itemProps = use(ItemContext$5);
1543
+ const fileUpload = use(FileUploadRootContext$1);
1544
+ const itemProps = use(FileUploadItemContext);
1431
1545
  const { element, children, ...rest } = props;
1432
1546
  const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), rest);
1433
1547
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1438,11 +1552,11 @@ function ItemSizeText(props) {
1438
1552
  //#endregion
1439
1553
  //#region src/components/file-upload/anatomy/item.tsx
1440
1554
  function Item$9(props) {
1441
- const fileUpload = use(RootContext$36);
1555
+ const fileUpload = use(FileUploadRootContext$1);
1442
1556
  const [itemProps, componentProps] = splitItemProps$3(props);
1443
1557
  const { element, children, ...rest } = componentProps;
1444
1558
  const attributes = mergeProps(fileUpload.getItemProps(itemProps), rest);
1445
- return /* @__PURE__ */ jsx(ItemContext$5.Provider, {
1559
+ return /* @__PURE__ */ jsx(FileUploadItemContext.Provider, {
1446
1560
  value: itemProps,
1447
1561
  children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
1448
1562
  ...attributes,
@@ -1453,7 +1567,7 @@ function Item$9(props) {
1453
1567
  //#endregion
1454
1568
  //#region src/components/file-upload/anatomy/label.tsx
1455
1569
  function Label$8(props) {
1456
- const fileUpload = use(RootContext$36);
1570
+ const fileUpload = use(FileUploadRootContext$1);
1457
1571
  const { element, children, ...rest } = props;
1458
1572
  const attributes = mergeProps(fileUpload.getLabelProps(), rest);
1459
1573
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -1463,17 +1577,17 @@ function Label$8(props) {
1463
1577
  }
1464
1578
  //#endregion
1465
1579
  //#region src/components/file-upload/anatomy/root-context.tsx
1466
- function RootContext$35(props) {
1467
- const fileUpload = use(RootContext$36);
1580
+ function FileUploadRootContext(props) {
1581
+ const fileUpload = use(FileUploadRootContext$1);
1468
1582
  const { children } = props;
1469
1583
  return children(fileUpload);
1470
1584
  }
1471
1585
  //#endregion
1472
1586
  //#region src/components/file-upload/anatomy/root-provider.tsx
1473
- function RootProvider$13(props) {
1587
+ function RootProvider$14(props) {
1474
1588
  const { element, children, value: fileUpload, ...rest } = props;
1475
1589
  const attributes = mergeProps(fileUpload.getRootProps(), rest);
1476
- return /* @__PURE__ */ jsx(RootContext$36.Provider, {
1590
+ return /* @__PURE__ */ jsx(FileUploadRootContext$1.Provider, {
1477
1591
  value: fileUpload,
1478
1592
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1479
1593
  ...attributes,
@@ -1484,19 +1598,21 @@ function RootProvider$13(props) {
1484
1598
  //#endregion
1485
1599
  //#region src/components/file-upload/modules/provider.ts
1486
1600
  function useFileUpload(props = {}) {
1487
- return connect$7(useMachine(machine$7, {
1601
+ const locale = use(LocaleProviderRootContext);
1602
+ return connect$8(useMachine(machine$8, {
1488
1603
  id: useId(),
1604
+ dir: locale.dir,
1489
1605
  ...props
1490
1606
  }), normalizeProps);
1491
1607
  }
1492
1608
  //#endregion
1493
1609
  //#region src/components/file-upload/anatomy/root.tsx
1494
- function Root$14(props) {
1495
- const [fileUploadProps, componentProps] = splitProps$7(props);
1610
+ function Root$16(props) {
1611
+ const [fileUploadProps, componentProps] = splitProps$8(props);
1496
1612
  const { element, children, ...rest } = componentProps;
1497
1613
  const fileUpload = useFileUpload(fileUploadProps);
1498
1614
  const attributes = mergeProps(fileUpload.getRootProps(), rest);
1499
- return /* @__PURE__ */ jsx(RootContext$36.Provider, {
1615
+ return /* @__PURE__ */ jsx(FileUploadRootContext$1.Provider, {
1500
1616
  value: fileUpload,
1501
1617
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1502
1618
  ...attributes,
@@ -1507,7 +1623,7 @@ function Root$14(props) {
1507
1623
  //#endregion
1508
1624
  //#region src/components/file-upload/anatomy/trigger.tsx
1509
1625
  function Trigger$6(props) {
1510
- const fileUpload = use(RootContext$36);
1626
+ const fileUpload = use(FileUploadRootContext$1);
1511
1627
  const { element, children, ...rest } = props;
1512
1628
  const attributes = mergeProps(fileUpload.getTriggerProps(), rest);
1513
1629
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1517,9 +1633,9 @@ function Trigger$6(props) {
1517
1633
  }
1518
1634
  //#endregion
1519
1635
  //#region src/components/file-upload/modules/anatomy.ts
1520
- const FileUpload = Object.assign(Root$14, {
1521
- Provider: RootProvider$13,
1522
- Context: RootContext$35,
1636
+ const FileUpload = Object.assign(Root$16, {
1637
+ Provider: RootProvider$14,
1638
+ Context: FileUploadRootContext,
1523
1639
  Label: Label$8,
1524
1640
  Dropzone,
1525
1641
  Trigger: Trigger$6,
@@ -1533,11 +1649,11 @@ const FileUpload = Object.assign(Root$14, {
1533
1649
  });
1534
1650
  //#endregion
1535
1651
  //#region src/components/floating-panel/modules/root-context.ts
1536
- const RootContext$34 = createContext$1();
1652
+ const FloatingPanelRootContext$1 = createContext$1();
1537
1653
  //#endregion
1538
1654
  //#region src/components/floating-panel/anatomy/body.tsx
1539
1655
  function Body(props) {
1540
- const floatingPanel = use(RootContext$34);
1656
+ const floatingPanel = use(FloatingPanelRootContext$1);
1541
1657
  const { element, children, ...rest } = props;
1542
1658
  const attributes = mergeProps(floatingPanel.getBodyProps(), rest);
1543
1659
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1548,7 +1664,7 @@ function Body(props) {
1548
1664
  //#endregion
1549
1665
  //#region src/components/floating-panel/anatomy/close-trigger.tsx
1550
1666
  function CloseTrigger$2(props) {
1551
- const floatingPanel = use(RootContext$34);
1667
+ const floatingPanel = use(FloatingPanelRootContext$1);
1552
1668
  const { element, children, ...rest } = props;
1553
1669
  const attributes = mergeProps(floatingPanel.getCloseTriggerProps(), rest);
1554
1670
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1559,7 +1675,7 @@ function CloseTrigger$2(props) {
1559
1675
  //#endregion
1560
1676
  //#region src/components/floating-panel/anatomy/content.tsx
1561
1677
  function Content$6(props) {
1562
- const floatingPanel = use(RootContext$34);
1678
+ const floatingPanel = use(FloatingPanelRootContext$1);
1563
1679
  const { element, children, ...rest } = props;
1564
1680
  const attributes = mergeProps(floatingPanel.getContentProps(), rest);
1565
1681
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1570,7 +1686,7 @@ function Content$6(props) {
1570
1686
  //#endregion
1571
1687
  //#region src/components/floating-panel/anatomy/control.tsx
1572
1688
  function Control$5(props) {
1573
- const floatingPanel = use(RootContext$34);
1689
+ const floatingPanel = use(FloatingPanelRootContext$1);
1574
1690
  const { element, children, ...rest } = props;
1575
1691
  const attributes = mergeProps(floatingPanel.getControlProps(), rest);
1576
1692
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1581,7 +1697,7 @@ function Control$5(props) {
1581
1697
  //#endregion
1582
1698
  //#region src/components/floating-panel/anatomy/drag-trigger.tsx
1583
1699
  function DragTrigger(props) {
1584
- const floatingPanel = use(RootContext$34);
1700
+ const floatingPanel = use(FloatingPanelRootContext$1);
1585
1701
  const { element, children, ...rest } = props;
1586
1702
  const attributes = mergeProps(floatingPanel.getDragTriggerProps(), rest);
1587
1703
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1592,7 +1708,7 @@ function DragTrigger(props) {
1592
1708
  //#endregion
1593
1709
  //#region src/components/floating-panel/anatomy/header.tsx
1594
1710
  function Header(props) {
1595
- const floatingPanel = use(RootContext$34);
1711
+ const floatingPanel = use(FloatingPanelRootContext$1);
1596
1712
  const { element, children, ...rest } = props;
1597
1713
  const attributes = mergeProps(floatingPanel.getHeaderProps(), rest);
1598
1714
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1603,7 +1719,7 @@ function Header(props) {
1603
1719
  //#endregion
1604
1720
  //#region src/components/floating-panel/anatomy/positioner.tsx
1605
1721
  function Positioner$3(props) {
1606
- const floatingPanel = use(RootContext$34);
1722
+ const floatingPanel = use(FloatingPanelRootContext$1);
1607
1723
  const { element, children, ...rest } = props;
1608
1724
  const attributes = mergeProps(floatingPanel.getPositionerProps(), rest);
1609
1725
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1614,7 +1730,7 @@ function Positioner$3(props) {
1614
1730
  //#endregion
1615
1731
  //#region src/components/floating-panel/anatomy/resize-trigger.tsx
1616
1732
  function ResizeTrigger(props) {
1617
- const floatingPanel = use(RootContext$34);
1733
+ const floatingPanel = use(FloatingPanelRootContext$1);
1618
1734
  const [resizeTriggerProps, componentProps] = splitResizeTriggerProps(props);
1619
1735
  const { element, children, ...rest } = componentProps;
1620
1736
  const attributes = mergeProps(floatingPanel.getResizeTriggerProps(resizeTriggerProps), rest);
@@ -1625,16 +1741,16 @@ function ResizeTrigger(props) {
1625
1741
  }
1626
1742
  //#endregion
1627
1743
  //#region src/components/floating-panel/anatomy/root-context.tsx
1628
- function RootContext$33(props) {
1629
- const floatingPanel = use(RootContext$34);
1744
+ function FloatingPanelRootContext(props) {
1745
+ const floatingPanel = use(FloatingPanelRootContext$1);
1630
1746
  const { children } = props;
1631
1747
  return children(floatingPanel);
1632
1748
  }
1633
1749
  //#endregion
1634
1750
  //#region src/components/floating-panel/anatomy/root-provider.tsx
1635
- function RootProvider$12(props) {
1751
+ function RootProvider$13(props) {
1636
1752
  const { children, value: floatingPanel } = props;
1637
- return /* @__PURE__ */ jsx(RootContext$34.Provider, {
1753
+ return /* @__PURE__ */ jsx(FloatingPanelRootContext$1.Provider, {
1638
1754
  value: floatingPanel,
1639
1755
  children
1640
1756
  });
@@ -1642,18 +1758,20 @@ function RootProvider$12(props) {
1642
1758
  //#endregion
1643
1759
  //#region src/components/floating-panel/modules/provider.ts
1644
1760
  function useFloatingPanel(props = {}) {
1645
- return connect$8(useMachine(machine$8, {
1761
+ const locale = use(LocaleProviderRootContext);
1762
+ return connect$9(useMachine(machine$9, {
1646
1763
  id: useId(),
1764
+ dir: locale.dir,
1647
1765
  ...props
1648
1766
  }), normalizeProps);
1649
1767
  }
1650
1768
  //#endregion
1651
1769
  //#region src/components/floating-panel/anatomy/root.tsx
1652
- function Root$13(props) {
1653
- const [floatingPanelProps, componentProps] = splitProps$8(props);
1770
+ function Root$15(props) {
1771
+ const [floatingPanelProps, componentProps] = splitProps$9(props);
1654
1772
  const { children } = componentProps;
1655
1773
  const floatingPanel = useFloatingPanel(floatingPanelProps);
1656
- return /* @__PURE__ */ jsx(RootContext$34.Provider, {
1774
+ return /* @__PURE__ */ jsx(FloatingPanelRootContext$1.Provider, {
1657
1775
  value: floatingPanel,
1658
1776
  children
1659
1777
  });
@@ -1661,7 +1779,7 @@ function Root$13(props) {
1661
1779
  //#endregion
1662
1780
  //#region src/components/floating-panel/anatomy/stage-trigger.tsx
1663
1781
  function StageTrigger(props) {
1664
- const floatingPanel = use(RootContext$34);
1782
+ const floatingPanel = use(FloatingPanelRootContext$1);
1665
1783
  const { element, children, stage, ...rest } = props;
1666
1784
  const attributes = mergeProps(floatingPanel.getStageTriggerProps({ stage }), rest);
1667
1785
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1672,7 +1790,7 @@ function StageTrigger(props) {
1672
1790
  //#endregion
1673
1791
  //#region src/components/floating-panel/anatomy/title.tsx
1674
1792
  function Title$2(props) {
1675
- const floatingPanel = use(RootContext$34);
1793
+ const floatingPanel = use(FloatingPanelRootContext$1);
1676
1794
  const { element, children, ...rest } = props;
1677
1795
  const attributes = mergeProps(floatingPanel.getTitleProps(), rest);
1678
1796
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1683,7 +1801,7 @@ function Title$2(props) {
1683
1801
  //#endregion
1684
1802
  //#region src/components/floating-panel/anatomy/trigger.tsx
1685
1803
  function Trigger$5(props) {
1686
- const floatingPanel = use(RootContext$34);
1804
+ const floatingPanel = use(FloatingPanelRootContext$1);
1687
1805
  const { element, children, ...rest } = props;
1688
1806
  const attributes = mergeProps(floatingPanel.getTriggerProps(), rest);
1689
1807
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1693,9 +1811,9 @@ function Trigger$5(props) {
1693
1811
  }
1694
1812
  //#endregion
1695
1813
  //#region src/components/floating-panel/modules/anatomy.ts
1696
- const FloatingPanel = Object.assign(Root$13, {
1697
- Provider: RootProvider$12,
1698
- Context: RootContext$33,
1814
+ const FloatingPanel = Object.assign(Root$15, {
1815
+ Provider: RootProvider$13,
1816
+ Context: FloatingPanelRootContext,
1699
1817
  Trigger: Trigger$5,
1700
1818
  Positioner: Positioner$3,
1701
1819
  Content: Content$6,
@@ -1710,11 +1828,11 @@ const FloatingPanel = Object.assign(Root$13, {
1710
1828
  });
1711
1829
  //#endregion
1712
1830
  //#region src/components/listbox/modules/root-context.ts
1713
- const RootContext$32 = createContext$1();
1831
+ const ListboxRootContext$1 = createContext$1();
1714
1832
  //#endregion
1715
1833
  //#region src/components/listbox/anatomy/content.tsx
1716
1834
  function Content$5(props) {
1717
- const listbox = use(RootContext$32);
1835
+ const listbox = use(ListboxRootContext$1);
1718
1836
  const { element, children, ...rest } = props;
1719
1837
  const attributes = mergeProps(listbox.getContentProps(), rest);
1720
1838
  return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
@@ -1725,20 +1843,20 @@ function Content$5(props) {
1725
1843
  //#endregion
1726
1844
  //#region src/components/listbox/anatomy/input.tsx
1727
1845
  function Input$1(props) {
1728
- const listbox = use(RootContext$32);
1846
+ const listbox = use(ListboxRootContext$1);
1729
1847
  const { element, ...rest } = props;
1730
1848
  const attributes = mergeProps(listbox.getInputProps(), rest);
1731
1849
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
1732
1850
  }
1733
1851
  //#endregion
1734
1852
  //#region src/components/listbox/modules/item-group-context.ts
1735
- const ItemGroupContext$1 = createContext$1();
1853
+ const ListboxItemGroupContext = createContext$1();
1736
1854
  //#endregion
1737
1855
  //#region src/components/listbox/anatomy/item-group-label.tsx
1738
1856
  function ItemGroupLabel$1(props) {
1739
- const listbox = use(RootContext$32);
1857
+ const listbox = use(ListboxRootContext$1);
1740
1858
  const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps$1({
1741
- htmlFor: use(ItemGroupContext$1).id,
1859
+ htmlFor: use(ListboxItemGroupContext).id,
1742
1860
  ...props
1743
1861
  });
1744
1862
  const { element, children, ...rest } = componentProps;
@@ -1751,14 +1869,14 @@ function ItemGroupLabel$1(props) {
1751
1869
  //#endregion
1752
1870
  //#region src/components/listbox/anatomy/item-group.tsx
1753
1871
  function ItemGroup$1(props) {
1754
- const listbox = use(RootContext$32);
1872
+ const listbox = use(ListboxRootContext$1);
1755
1873
  const [itemGroupProps, componentProps] = splitItemGroupProps$1({
1756
1874
  id: useId(),
1757
1875
  ...props
1758
1876
  });
1759
1877
  const { element, children, ...rest } = componentProps;
1760
1878
  const attributes = mergeProps(listbox.getItemGroupProps(itemGroupProps), rest);
1761
- return /* @__PURE__ */ jsx(ItemGroupContext$1.Provider, {
1879
+ return /* @__PURE__ */ jsx(ListboxItemGroupContext.Provider, {
1762
1880
  value: itemGroupProps,
1763
1881
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1764
1882
  ...attributes,
@@ -1768,12 +1886,12 @@ function ItemGroup$1(props) {
1768
1886
  }
1769
1887
  //#endregion
1770
1888
  //#region src/components/listbox/modules/item-context.ts
1771
- const ItemContext$4 = createContext$1();
1889
+ const ListboxItemContext = createContext$1();
1772
1890
  //#endregion
1773
1891
  //#region src/components/listbox/anatomy/item-indicator.tsx
1774
1892
  function ItemIndicator$1(props) {
1775
- const listbox = use(RootContext$32);
1776
- const itemProps = use(ItemContext$4);
1893
+ const listbox = use(ListboxRootContext$1);
1894
+ const itemProps = use(ListboxItemContext);
1777
1895
  const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }), ...rest } = props;
1778
1896
  const attributes = mergeProps(listbox.getItemIndicatorProps(itemProps), rest);
1779
1897
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -1784,8 +1902,8 @@ function ItemIndicator$1(props) {
1784
1902
  //#endregion
1785
1903
  //#region src/components/listbox/anatomy/item-text.tsx
1786
1904
  function ItemText$3(props) {
1787
- const listbox = use(RootContext$32);
1788
- const itemProps = use(ItemContext$4);
1905
+ const listbox = use(ListboxRootContext$1);
1906
+ const itemProps = use(ListboxItemContext);
1789
1907
  const { element, children, ...rest } = props;
1790
1908
  const attributes = mergeProps(listbox.getItemTextProps(itemProps), rest);
1791
1909
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -1796,11 +1914,11 @@ function ItemText$3(props) {
1796
1914
  //#endregion
1797
1915
  //#region src/components/listbox/anatomy/item.tsx
1798
1916
  function Item$8(props) {
1799
- const listbox = use(RootContext$32);
1917
+ const listbox = use(ListboxRootContext$1);
1800
1918
  const [itemProps, componentProps] = splitItemProps$4(props);
1801
1919
  const { element, children, ...rest } = componentProps;
1802
1920
  const attributes = mergeProps(listbox.getItemProps(itemProps), rest);
1803
- return /* @__PURE__ */ jsx(ItemContext$4.Provider, {
1921
+ return /* @__PURE__ */ jsx(ListboxItemContext.Provider, {
1804
1922
  value: itemProps,
1805
1923
  children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
1806
1924
  ...attributes,
@@ -1811,7 +1929,7 @@ function Item$8(props) {
1811
1929
  //#endregion
1812
1930
  //#region src/components/listbox/anatomy/label.tsx
1813
1931
  function Label$7(props) {
1814
- const listbox = use(RootContext$32);
1932
+ const listbox = use(ListboxRootContext$1);
1815
1933
  const { element, children, ...rest } = props;
1816
1934
  const attributes = mergeProps(listbox.getLabelProps(), rest);
1817
1935
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -1821,25 +1939,27 @@ function Label$7(props) {
1821
1939
  }
1822
1940
  //#endregion
1823
1941
  //#region src/components/listbox/anatomy/root-context.tsx
1824
- function RootContext$31(props) {
1825
- const listbox = use(RootContext$32);
1942
+ function ListboxRootContext(props) {
1943
+ const listbox = use(ListboxRootContext$1);
1826
1944
  const { children } = props;
1827
1945
  return children(listbox);
1828
1946
  }
1829
1947
  //#endregion
1830
1948
  //#region src/components/listbox/modules/provider.ts
1831
1949
  function useListbox(props) {
1832
- return connect$9(useMachine(machine$9, {
1950
+ const locale = use(LocaleProviderRootContext);
1951
+ return connect$10(useMachine(machine$10, {
1833
1952
  id: useId(),
1953
+ dir: locale.dir,
1834
1954
  ...props
1835
1955
  }), normalizeProps);
1836
1956
  }
1837
1957
  //#endregion
1838
1958
  //#region src/components/listbox/anatomy/root-provider.tsx
1839
- function RootProvider$11(props) {
1959
+ function RootProvider$12(props) {
1840
1960
  const { element, children, value: listbox, ...rest } = props;
1841
1961
  const attributes = mergeProps(listbox.getRootProps(), rest);
1842
- return /* @__PURE__ */ jsx(RootContext$32.Provider, {
1962
+ return /* @__PURE__ */ jsx(ListboxRootContext$1.Provider, {
1843
1963
  value: listbox,
1844
1964
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1845
1965
  ...attributes,
@@ -1849,12 +1969,12 @@ function RootProvider$11(props) {
1849
1969
  }
1850
1970
  //#endregion
1851
1971
  //#region src/components/listbox/anatomy/root.tsx
1852
- function Root$12(props) {
1853
- const [listboxProps, componentProps] = splitProps$9(props);
1972
+ function Root$14(props) {
1973
+ const [listboxProps, componentProps] = splitProps$10(props);
1854
1974
  const { element, children, ...rest } = componentProps;
1855
1975
  const listbox = useListbox(listboxProps);
1856
1976
  const attributes = mergeProps(listbox.getRootProps(), rest);
1857
- return /* @__PURE__ */ jsx(RootContext$32.Provider, {
1977
+ return /* @__PURE__ */ jsx(ListboxRootContext$1.Provider, {
1858
1978
  value: listbox,
1859
1979
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1860
1980
  ...attributes,
@@ -1864,9 +1984,9 @@ function Root$12(props) {
1864
1984
  }
1865
1985
  //#endregion
1866
1986
  //#region src/components/listbox/modules/anatomy.ts
1867
- const Listbox = Object.assign(Root$12, {
1868
- Provider: RootProvider$11,
1869
- Context: RootContext$31,
1987
+ const Listbox = Object.assign(Root$14, {
1988
+ Provider: RootProvider$12,
1989
+ Context: ListboxRootContext,
1870
1990
  Label: Label$7,
1871
1991
  Input: Input$1,
1872
1992
  Content: Content$5,
@@ -1877,12 +1997,34 @@ const Listbox = Object.assign(Root$12, {
1877
1997
  ItemIndicator: ItemIndicator$1
1878
1998
  });
1879
1999
  //#endregion
2000
+ //#region src/components/locale-provider/anatomy/root.tsx
2001
+ function Root$13(props) {
2002
+ const { children, locale } = props;
2003
+ return /* @__PURE__ */ jsx(LocaleProviderRootContext.Provider, {
2004
+ value: {
2005
+ locale,
2006
+ dir: isRTL(locale) ? "rtl" : "ltr"
2007
+ },
2008
+ children
2009
+ });
2010
+ }
2011
+ //#endregion
2012
+ //#region src/components/locale-provider/anatomy/root-context.tsx
2013
+ function RootContext(props) {
2014
+ const locale = use(LocaleProviderRootContext);
2015
+ const { children } = props;
2016
+ return children(locale);
2017
+ }
2018
+ //#endregion
2019
+ //#region src/components/locale-provider/modules/anatomy.ts
2020
+ const LocaleProvider = Object.assign(Root$13, { Context: RootContext });
2021
+ //#endregion
1880
2022
  //#region src/components/menu/modules/root-context.ts
1881
- const RootContext$30 = createContext$1();
2023
+ const MenuRootContext$1 = createContext$1();
1882
2024
  //#endregion
1883
2025
  //#region src/components/menu/anatomy/arrow-tip.tsx
1884
2026
  function ArrowTip$2(props) {
1885
- const menu = use(RootContext$30);
2027
+ const menu = use(MenuRootContext$1);
1886
2028
  const { element, children, ...rest } = props;
1887
2029
  const attributes = mergeProps(menu.getArrowTipProps(), rest);
1888
2030
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1893,7 +2035,7 @@ function ArrowTip$2(props) {
1893
2035
  //#endregion
1894
2036
  //#region src/components/menu/anatomy/arrow.tsx
1895
2037
  function Arrow$2(props) {
1896
- const menu = use(RootContext$30);
2038
+ const menu = use(MenuRootContext$1);
1897
2039
  const { element, children, ...rest } = props;
1898
2040
  const attributes = mergeProps(menu.getArrowProps(), rest);
1899
2041
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1904,7 +2046,7 @@ function Arrow$2(props) {
1904
2046
  //#endregion
1905
2047
  //#region src/components/menu/anatomy/content.tsx
1906
2048
  function Content$4(props) {
1907
- const menu = use(RootContext$30);
2049
+ const menu = use(MenuRootContext$1);
1908
2050
  const { element, children, ...rest } = props;
1909
2051
  const attributes = mergeProps(menu.getContentProps(), rest);
1910
2052
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1915,7 +2057,7 @@ function Content$4(props) {
1915
2057
  //#endregion
1916
2058
  //#region src/components/menu/anatomy/context-trigger.tsx
1917
2059
  function ContextTrigger(props) {
1918
- const menu = use(RootContext$30);
2060
+ const menu = use(MenuRootContext$1);
1919
2061
  const { element, children, ...rest } = props;
1920
2062
  const attributes = mergeProps(menu.getContextTriggerProps(), rest);
1921
2063
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -1926,7 +2068,7 @@ function ContextTrigger(props) {
1926
2068
  //#endregion
1927
2069
  //#region src/components/menu/anatomy/indicator.tsx
1928
2070
  function Indicator$3(props) {
1929
- const menu = use(RootContext$30);
2071
+ const menu = use(MenuRootContext$1);
1930
2072
  const { element, children, ...rest } = props;
1931
2073
  const attributes = mergeProps(menu.getIndicatorProps(), rest);
1932
2074
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1936,13 +2078,13 @@ function Indicator$3(props) {
1936
2078
  }
1937
2079
  //#endregion
1938
2080
  //#region src/components/menu/modules/item-group-context.ts
1939
- const ItemGroupContext = createContext$1();
2081
+ const MenuItemGroupContext = createContext$1();
1940
2082
  //#endregion
1941
2083
  //#region src/components/menu/anatomy/item-group-label.tsx
1942
2084
  function ItemGroupLabel(props) {
1943
- const menu = use(RootContext$30);
2085
+ const menu = use(MenuRootContext$1);
1944
2086
  const [labelProps, componentProps] = splitItemGroupLabelProps$2({
1945
- htmlFor: use(ItemGroupContext).id,
2087
+ htmlFor: use(MenuItemGroupContext).id,
1946
2088
  ...props
1947
2089
  });
1948
2090
  const { element, children, ...rest } = componentProps;
@@ -1955,14 +2097,14 @@ function ItemGroupLabel(props) {
1955
2097
  //#endregion
1956
2098
  //#region src/components/menu/anatomy/item-group.tsx
1957
2099
  function ItemGroup(props) {
1958
- const menu = use(RootContext$30);
2100
+ const menu = use(MenuRootContext$1);
1959
2101
  const [itemGroupProps, componentProps] = splitItemGroupProps$2({
1960
2102
  id: useId(),
1961
2103
  ...props
1962
2104
  });
1963
2105
  const { element, children, ...rest } = componentProps;
1964
2106
  const attributes = mergeProps(menu.getItemGroupProps(itemGroupProps), rest);
1965
- return /* @__PURE__ */ jsx(ItemGroupContext.Provider, {
2107
+ return /* @__PURE__ */ jsx(MenuItemGroupContext.Provider, {
1966
2108
  value: itemGroupProps,
1967
2109
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1968
2110
  ...attributes,
@@ -1972,12 +2114,12 @@ function ItemGroup(props) {
1972
2114
  }
1973
2115
  //#endregion
1974
2116
  //#region src/components/menu/modules/item-context.ts
1975
- const ItemContext$3 = createContext$1();
2117
+ const MenuItemContext = createContext$1();
1976
2118
  //#endregion
1977
2119
  //#region src/components/menu/anatomy/item-indicator.tsx
1978
2120
  function ItemIndicator(props) {
1979
- const menu = use(RootContext$30);
1980
- const itemProps = use(ItemContext$3);
2121
+ const menu = use(MenuRootContext$1);
2122
+ const itemProps = use(MenuItemContext);
1981
2123
  const { element, children, ...rest } = props;
1982
2124
  const attributes = mergeProps(menu.getItemIndicatorProps(itemProps), rest);
1983
2125
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -1988,8 +2130,8 @@ function ItemIndicator(props) {
1988
2130
  //#endregion
1989
2131
  //#region src/components/menu/anatomy/item-text.tsx
1990
2132
  function ItemText$2(props) {
1991
- const menu = use(RootContext$30);
1992
- const itemProps = use(ItemContext$3);
2133
+ const menu = use(MenuRootContext$1);
2134
+ const itemProps = use(MenuItemContext);
1993
2135
  const { element, children, ...rest } = props;
1994
2136
  const attributes = mergeProps(menu.getItemTextProps(itemProps), rest);
1995
2137
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2000,11 +2142,11 @@ function ItemText$2(props) {
2000
2142
  //#endregion
2001
2143
  //#region src/components/menu/anatomy/item.tsx
2002
2144
  function Item$7(props) {
2003
- const menu = use(RootContext$30);
2145
+ const menu = use(MenuRootContext$1);
2004
2146
  const [itemProps, componentProps] = splitItemProps$5(props);
2005
2147
  const { element, children, ...rest } = componentProps;
2006
2148
  const attributes = mergeProps(menu.getItemProps(itemProps), rest);
2007
- return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
2149
+ return /* @__PURE__ */ jsx(MenuItemContext.Provider, {
2008
2150
  value: itemProps,
2009
2151
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2010
2152
  ...attributes,
@@ -2015,11 +2157,11 @@ function Item$7(props) {
2015
2157
  //#endregion
2016
2158
  //#region src/components/menu/anatomy/option-item.tsx
2017
2159
  function OptionItem(props) {
2018
- const menu = use(RootContext$30);
2160
+ const menu = use(MenuRootContext$1);
2019
2161
  const [itemProps, componentProps] = splitOptionItemProps(props);
2020
2162
  const { element, children, ...rest } = componentProps;
2021
2163
  const attributes = mergeProps(menu.getOptionItemProps(itemProps), rest);
2022
- return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
2164
+ return /* @__PURE__ */ jsx(MenuItemContext.Provider, {
2023
2165
  value: itemProps,
2024
2166
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2025
2167
  ...attributes,
@@ -2030,7 +2172,7 @@ function OptionItem(props) {
2030
2172
  //#endregion
2031
2173
  //#region src/components/menu/anatomy/positioner.tsx
2032
2174
  function Positioner$2(props) {
2033
- const menu = use(RootContext$30);
2175
+ const menu = use(MenuRootContext$1);
2034
2176
  const { element, children, ...rest } = props;
2035
2177
  const attributes = mergeProps(menu.getPositionerProps(), rest);
2036
2178
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2040,27 +2182,27 @@ function Positioner$2(props) {
2040
2182
  }
2041
2183
  //#endregion
2042
2184
  //#region src/components/menu/anatomy/root-context.tsx
2043
- function RootContext$29(props) {
2044
- const menu = use(RootContext$30);
2185
+ function MenuRootContext(props) {
2186
+ const menu = use(MenuRootContext$1);
2045
2187
  const { children } = props;
2046
2188
  return children(menu);
2047
2189
  }
2048
2190
  //#endregion
2049
2191
  //#region src/components/menu/modules/trigger-item-context.ts
2050
- const TriggerItemContext = createContext$1();
2192
+ const MenuTriggerItemContext = createContext$1();
2051
2193
  //#endregion
2052
2194
  //#region src/components/menu/anatomy/root-provider.tsx
2053
- function RootProvider$10(props) {
2054
- const parentMenu = use(RootContext$30);
2195
+ function RootProvider$11(props) {
2196
+ const parentMenu = use(MenuRootContext$1);
2055
2197
  const { children, value: menu } = props;
2056
2198
  useEffect(() => {
2057
2199
  if (!parentMenu) return;
2058
2200
  parentMenu.setChild(menu.service);
2059
2201
  menu.setParent(parentMenu.service);
2060
2202
  }, []);
2061
- return /* @__PURE__ */ jsx(RootContext$30.Provider, {
2203
+ return /* @__PURE__ */ jsx(MenuRootContext$1.Provider, {
2062
2204
  value: menu,
2063
- children: /* @__PURE__ */ jsx(TriggerItemContext.Provider, {
2205
+ children: /* @__PURE__ */ jsx(MenuTriggerItemContext.Provider, {
2064
2206
  value: parentMenu?.getTriggerItemProps(menu),
2065
2207
  children
2066
2208
  })
@@ -2069,20 +2211,22 @@ function RootProvider$10(props) {
2069
2211
  //#endregion
2070
2212
  //#region src/components/menu/modules/provider.ts
2071
2213
  function useMenu(props = {}) {
2072
- const service = useMachine(machine$10, {
2214
+ const locale = use(LocaleProviderRootContext);
2215
+ const service = useMachine(machine$11, {
2073
2216
  id: useId(),
2217
+ dir: locale.dir,
2074
2218
  ...props
2075
2219
  });
2076
2220
  return {
2077
- ...connect$10(service, normalizeProps),
2221
+ ...connect$11(service, normalizeProps),
2078
2222
  service
2079
2223
  };
2080
2224
  }
2081
2225
  //#endregion
2082
2226
  //#region src/components/menu/anatomy/root.tsx
2083
- function Root$11(props) {
2084
- const parentMenu = use(RootContext$30);
2085
- const [menuProps, componentProps] = splitProps$10(props);
2227
+ function Root$12(props) {
2228
+ const parentMenu = use(MenuRootContext$1);
2229
+ const [menuProps, componentProps] = splitProps$11(props);
2086
2230
  const { children } = componentProps;
2087
2231
  const menu = useMenu(menuProps);
2088
2232
  useEffect(() => {
@@ -2090,9 +2234,9 @@ function Root$11(props) {
2090
2234
  parentMenu.setChild(menu.service);
2091
2235
  menu.setParent(parentMenu.service);
2092
2236
  }, []);
2093
- return /* @__PURE__ */ jsx(RootContext$30.Provider, {
2237
+ return /* @__PURE__ */ jsx(MenuRootContext$1.Provider, {
2094
2238
  value: menu,
2095
- children: /* @__PURE__ */ jsx(TriggerItemContext.Provider, {
2239
+ children: /* @__PURE__ */ jsx(MenuTriggerItemContext.Provider, {
2096
2240
  value: parentMenu?.getTriggerItemProps(menu),
2097
2241
  children
2098
2242
  })
@@ -2101,7 +2245,7 @@ function Root$11(props) {
2101
2245
  //#endregion
2102
2246
  //#region src/components/menu/anatomy/separator.tsx
2103
2247
  function Separator$1(props) {
2104
- const menu = use(RootContext$30);
2248
+ const menu = use(MenuRootContext$1);
2105
2249
  const { element, ...rest } = props;
2106
2250
  const attributes = mergeProps(menu.getSeparatorProps(), rest);
2107
2251
  return element ? element(attributes) : /* @__PURE__ */ jsx("hr", { ...attributes });
@@ -2109,11 +2253,11 @@ function Separator$1(props) {
2109
2253
  //#endregion
2110
2254
  //#region src/components/menu/anatomy/trigger-item.tsx
2111
2255
  function TriggerItem(props) {
2112
- const triggerItemProps = use(TriggerItemContext);
2256
+ const triggerItemProps = use(MenuTriggerItemContext);
2113
2257
  const [itemProps, componentProps] = splitItemProps$5(props);
2114
2258
  const { element, children, ...rest } = componentProps;
2115
2259
  const attributes = mergeProps(triggerItemProps, rest);
2116
- return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
2260
+ return /* @__PURE__ */ jsx(MenuItemContext.Provider, {
2117
2261
  value: itemProps,
2118
2262
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2119
2263
  ...attributes,
@@ -2124,7 +2268,7 @@ function TriggerItem(props) {
2124
2268
  //#endregion
2125
2269
  //#region src/components/menu/anatomy/trigger.tsx
2126
2270
  function Trigger$4(props) {
2127
- const menu = use(RootContext$30);
2271
+ const menu = use(MenuRootContext$1);
2128
2272
  const { element, children, ...rest } = props;
2129
2273
  const attributes = mergeProps(menu.getTriggerProps(), rest);
2130
2274
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2134,9 +2278,9 @@ function Trigger$4(props) {
2134
2278
  }
2135
2279
  //#endregion
2136
2280
  //#region src/components/menu/modules/anatomy.ts
2137
- const Menu = Object.assign(Root$11, {
2138
- Provider: RootProvider$10,
2139
- Context: RootContext$29,
2281
+ const Menu = Object.assign(Root$12, {
2282
+ Provider: RootProvider$11,
2283
+ Context: MenuRootContext,
2140
2284
  Trigger: Trigger$4,
2141
2285
  ContextTrigger,
2142
2286
  Indicator: Indicator$3,
@@ -2155,7 +2299,7 @@ const Menu = Object.assign(Root$11, {
2155
2299
  });
2156
2300
  //#endregion
2157
2301
  //#region src/components/navigation/modules/root-context.ts
2158
- const RootContext$28 = createContext$1();
2302
+ const NavigationRootContext = createContext$1();
2159
2303
  //#endregion
2160
2304
  //#region src/components/navigation/anatomy/content.tsx
2161
2305
  function NavigationContent(props) {
@@ -2163,7 +2307,7 @@ function NavigationContent(props) {
2163
2307
  const attributes = mergeProps({
2164
2308
  "data-scope": "navigation",
2165
2309
  "data-part": "content",
2166
- "data-layout": use(RootContext$28).layout
2310
+ "data-layout": use(NavigationRootContext).layout
2167
2311
  }, rest);
2168
2312
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2169
2313
  ...attributes,
@@ -2177,7 +2321,7 @@ function NavigationFooter(props) {
2177
2321
  const attributes = mergeProps({
2178
2322
  "data-scope": "navigation",
2179
2323
  "data-part": "footer",
2180
- "data-layout": use(RootContext$28).layout
2324
+ "data-layout": use(NavigationRootContext).layout
2181
2325
  }, rest);
2182
2326
  return element ? element(attributes) : /* @__PURE__ */ jsx("footer", {
2183
2327
  ...attributes,
@@ -2191,7 +2335,7 @@ function NavigationGroup(props) {
2191
2335
  const attributes = mergeProps({
2192
2336
  "data-scope": "navigation",
2193
2337
  "data-part": "group",
2194
- "data-layout": use(RootContext$28).layout
2338
+ "data-layout": use(NavigationRootContext).layout
2195
2339
  }, rest);
2196
2340
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2197
2341
  ...attributes,
@@ -2205,7 +2349,7 @@ function NavigationHeader(props) {
2205
2349
  const attributes = mergeProps({
2206
2350
  "data-scope": "navigation",
2207
2351
  "data-part": "header",
2208
- "data-layout": use(RootContext$28).layout
2352
+ "data-layout": use(NavigationRootContext).layout
2209
2353
  }, rest);
2210
2354
  return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
2211
2355
  ...attributes,
@@ -2219,7 +2363,7 @@ function NavigationLabel(props) {
2219
2363
  const attributes = mergeProps({
2220
2364
  "data-scope": "navigation",
2221
2365
  "data-part": "label",
2222
- "data-layout": use(RootContext$28).layout
2366
+ "data-layout": use(NavigationRootContext).layout
2223
2367
  }, rest);
2224
2368
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2225
2369
  ...attributes,
@@ -2233,7 +2377,7 @@ function NavigationMenu(props) {
2233
2377
  const attributes = mergeProps({
2234
2378
  "data-scope": "navigation",
2235
2379
  "data-part": "menu",
2236
- "data-layout": use(RootContext$28).layout
2380
+ "data-layout": use(NavigationRootContext).layout
2237
2381
  }, rest);
2238
2382
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2239
2383
  ...attributes,
@@ -2247,7 +2391,7 @@ function NavigationTrigger(props) {
2247
2391
  const attributes = mergeProps({
2248
2392
  "data-scope": "navigation",
2249
2393
  "data-part": "trigger",
2250
- "data-layout": use(RootContext$28).layout,
2394
+ "data-layout": use(NavigationRootContext).layout,
2251
2395
  type: "button"
2252
2396
  }, rest);
2253
2397
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2262,7 +2406,7 @@ function NavigationTriggerAnchor(props) {
2262
2406
  const attributes = mergeProps({
2263
2407
  "data-scope": "navigation",
2264
2408
  "data-part": "trigger-anchor",
2265
- "data-layout": use(RootContext$28).layout
2409
+ "data-layout": use(NavigationRootContext).layout
2266
2410
  }, rest);
2267
2411
  return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
2268
2412
  ...attributes,
@@ -2276,7 +2420,7 @@ function NavigationTriggerText(props) {
2276
2420
  const attributes = mergeProps({
2277
2421
  "data-scope": "navigation",
2278
2422
  "data-part": "trigger-text",
2279
- "data-layout": use(RootContext$28).layout
2423
+ "data-layout": use(NavigationRootContext).layout
2280
2424
  }, rest);
2281
2425
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2282
2426
  ...attributes,
@@ -2288,11 +2432,12 @@ function NavigationTriggerText(props) {
2288
2432
  function NavigationRoot(props) {
2289
2433
  const { layout = "bar", element, children, ...rest } = props;
2290
2434
  const attributes = mergeProps({
2435
+ dir: use(LocaleProviderRootContext).dir,
2291
2436
  "data-scope": "navigation",
2292
2437
  "data-part": "root",
2293
2438
  "data-layout": layout
2294
2439
  }, rest);
2295
- return /* @__PURE__ */ jsx(RootContext$28.Provider, {
2440
+ return /* @__PURE__ */ jsx(NavigationRootContext.Provider, {
2296
2441
  value: { layout },
2297
2442
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2298
2443
  ...attributes,
@@ -2315,11 +2460,11 @@ const Navigation = Object.assign(NavigationRoot, {
2315
2460
  });
2316
2461
  //#endregion
2317
2462
  //#region src/components/pagination/modules/root-context.ts
2318
- const RootContext$27 = createContext$1();
2463
+ const PaginationRootContext$1 = createContext$1();
2319
2464
  //#endregion
2320
2465
  //#region src/components/pagination/anatomy/ellipsis.tsx
2321
2466
  function Ellipsis(props) {
2322
- const pagination = use(RootContext$27);
2467
+ const pagination = use(PaginationRootContext$1);
2323
2468
  const [ellipsisProps, componentProps] = splitEllipsisProps(props);
2324
2469
  const { element, children, ...rest } = componentProps;
2325
2470
  const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), rest);
@@ -2331,7 +2476,7 @@ function Ellipsis(props) {
2331
2476
  //#endregion
2332
2477
  //#region src/components/pagination/anatomy/first-trigger.tsx
2333
2478
  function FirstTrigger(props) {
2334
- const pagination = use(RootContext$27);
2479
+ const pagination = use(PaginationRootContext$1);
2335
2480
  const { element, children, ...rest } = props;
2336
2481
  const attributes = mergeProps({ onClick: pagination.goToFirstPage }, rest);
2337
2482
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2342,7 +2487,7 @@ function FirstTrigger(props) {
2342
2487
  //#endregion
2343
2488
  //#region src/components/pagination/anatomy/item.tsx
2344
2489
  function Item$6(props) {
2345
- const pagination = use(RootContext$27);
2490
+ const pagination = use(PaginationRootContext$1);
2346
2491
  const [itemProps, componentProps] = splitItemProps$6(props);
2347
2492
  const { element, children, ...rest } = componentProps;
2348
2493
  const attributes = mergeProps(pagination.getItemProps(itemProps), rest);
@@ -2354,7 +2499,7 @@ function Item$6(props) {
2354
2499
  //#endregion
2355
2500
  //#region src/components/pagination/anatomy/last-trigger.tsx
2356
2501
  function LastTrigger(props) {
2357
- const pagination = use(RootContext$27);
2502
+ const pagination = use(PaginationRootContext$1);
2358
2503
  const { element, children, ...rest } = props;
2359
2504
  const attributes = mergeProps({ onClick: pagination.goToLastPage }, rest);
2360
2505
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2365,7 +2510,7 @@ function LastTrigger(props) {
2365
2510
  //#endregion
2366
2511
  //#region src/components/pagination/anatomy/next-trigger.tsx
2367
2512
  function NextTrigger$1(props) {
2368
- const pagination = use(RootContext$27);
2513
+ const pagination = use(PaginationRootContext$1);
2369
2514
  const { element, children, ...rest } = props;
2370
2515
  const attributes = mergeProps(pagination.getNextTriggerProps(), rest);
2371
2516
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2376,7 +2521,7 @@ function NextTrigger$1(props) {
2376
2521
  //#endregion
2377
2522
  //#region src/components/pagination/anatomy/prev-trigger.tsx
2378
2523
  function PrevTrigger$1(props) {
2379
- const pagination = use(RootContext$27);
2524
+ const pagination = use(PaginationRootContext$1);
2380
2525
  const { element, children, ...rest } = props;
2381
2526
  const attributes = mergeProps(pagination.getPrevTriggerProps(), rest);
2382
2527
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2386,8 +2531,8 @@ function PrevTrigger$1(props) {
2386
2531
  }
2387
2532
  //#endregion
2388
2533
  //#region src/components/pagination/anatomy/root-context.tsx
2389
- function RootContext$26(props) {
2390
- const pagination = use(RootContext$27);
2534
+ function PaginationRootContext(props) {
2535
+ const pagination = use(PaginationRootContext$1);
2391
2536
  const { children } = props;
2392
2537
  return children(pagination);
2393
2538
  }
@@ -2396,7 +2541,7 @@ function RootContext$26(props) {
2396
2541
  function PaginationRootProvider(props) {
2397
2542
  const { element, children, value: pagination, ...rest } = props;
2398
2543
  const attributes = mergeProps(pagination.getRootProps(), rest);
2399
- return /* @__PURE__ */ jsx(RootContext$27.Provider, {
2544
+ return /* @__PURE__ */ jsx(PaginationRootContext$1.Provider, {
2400
2545
  value: pagination,
2401
2546
  children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
2402
2547
  ...attributes,
@@ -2407,19 +2552,21 @@ function PaginationRootProvider(props) {
2407
2552
  //#endregion
2408
2553
  //#region src/components/pagination/modules/provider.ts
2409
2554
  function usePagination(props = {}) {
2410
- return connect$11(useMachine(machine$11, {
2555
+ const locale = use(LocaleProviderRootContext);
2556
+ return connect$12(useMachine(machine$12, {
2411
2557
  id: useId(),
2558
+ dir: locale.dir,
2412
2559
  ...props
2413
2560
  }), normalizeProps);
2414
2561
  }
2415
2562
  //#endregion
2416
2563
  //#region src/components/pagination/anatomy/root.tsx
2417
2564
  function PaginationRoot(props) {
2418
- const [paginationProps, componentProps] = splitProps$11(props);
2565
+ const [paginationProps, componentProps] = splitProps$12(props);
2419
2566
  const { element, children, ...rest } = componentProps;
2420
2567
  const pagination = usePagination(paginationProps);
2421
2568
  const attributes = mergeProps(pagination.getRootProps(), rest);
2422
- return /* @__PURE__ */ jsx(RootContext$27.Provider, {
2569
+ return /* @__PURE__ */ jsx(PaginationRootContext$1.Provider, {
2423
2570
  value: pagination,
2424
2571
  children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
2425
2572
  ...attributes,
@@ -2431,7 +2578,7 @@ function PaginationRoot(props) {
2431
2578
  //#region src/components/pagination/modules/anatomy.ts
2432
2579
  const Pagination = Object.assign(PaginationRoot, {
2433
2580
  Provider: PaginationRootProvider,
2434
- Context: RootContext$26,
2581
+ Context: PaginationRootContext,
2435
2582
  FirstTrigger,
2436
2583
  PrevTrigger: PrevTrigger$1,
2437
2584
  Item: Item$6,
@@ -2441,11 +2588,11 @@ const Pagination = Object.assign(PaginationRoot, {
2441
2588
  });
2442
2589
  //#endregion
2443
2590
  //#region src/components/popover/modules/root-context.ts
2444
- const RootContext$25 = createContext$1();
2591
+ const PopoverRootContext$1 = createContext$1();
2445
2592
  //#endregion
2446
2593
  //#region src/components/popover/anatomy/anchor.tsx
2447
2594
  function Anchor(props) {
2448
- const popover = use(RootContext$25);
2595
+ const popover = use(PopoverRootContext$1);
2449
2596
  const { element, children, ...rest } = props;
2450
2597
  const attributes = mergeProps(popover.getAnchorProps(), rest);
2451
2598
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2456,7 +2603,7 @@ function Anchor(props) {
2456
2603
  //#endregion
2457
2604
  //#region src/components/popover/anatomy/arrow-tip.tsx
2458
2605
  function ArrowTip$1(props) {
2459
- const popover = use(RootContext$25);
2606
+ const popover = use(PopoverRootContext$1);
2460
2607
  const { element, children, ...rest } = props;
2461
2608
  const attributes = mergeProps(popover.getArrowTipProps(), rest);
2462
2609
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2467,7 +2614,7 @@ function ArrowTip$1(props) {
2467
2614
  //#endregion
2468
2615
  //#region src/components/popover/anatomy/arrow.tsx
2469
2616
  function Arrow$1(props) {
2470
- const popover = use(RootContext$25);
2617
+ const popover = use(PopoverRootContext$1);
2471
2618
  const { element, children, ...rest } = props;
2472
2619
  const attributes = mergeProps(popover.getArrowProps(), rest);
2473
2620
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2478,7 +2625,7 @@ function Arrow$1(props) {
2478
2625
  //#endregion
2479
2626
  //#region src/components/popover/anatomy/close-trigger.tsx
2480
2627
  function CloseTrigger$1(props) {
2481
- const popover = use(RootContext$25);
2628
+ const popover = use(PopoverRootContext$1);
2482
2629
  const { element, children, ...rest } = props;
2483
2630
  const attributes = mergeProps(popover.getCloseTriggerProps(), rest);
2484
2631
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2489,7 +2636,7 @@ function CloseTrigger$1(props) {
2489
2636
  //#endregion
2490
2637
  //#region src/components/popover/anatomy/content.tsx
2491
2638
  function Content$3(props) {
2492
- const popover = use(RootContext$25);
2639
+ const popover = use(PopoverRootContext$1);
2493
2640
  const { element, children, ...rest } = props;
2494
2641
  const attributes = mergeProps(popover.getContentProps(), rest);
2495
2642
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2500,7 +2647,7 @@ function Content$3(props) {
2500
2647
  //#endregion
2501
2648
  //#region src/components/popover/anatomy/description.tsx
2502
2649
  function Description$1(props) {
2503
- const popover = use(RootContext$25);
2650
+ const popover = use(PopoverRootContext$1);
2504
2651
  const { element, children, ...rest } = props;
2505
2652
  const attributes = mergeProps(popover.getDescriptionProps(), rest);
2506
2653
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2511,7 +2658,7 @@ function Description$1(props) {
2511
2658
  //#endregion
2512
2659
  //#region src/components/popover/anatomy/positioner.tsx
2513
2660
  function Positioner$1(props) {
2514
- const popover = use(RootContext$25);
2661
+ const popover = use(PopoverRootContext$1);
2515
2662
  const { element, children, ...rest } = props;
2516
2663
  const attributes = mergeProps(popover.getPositionerProps(), rest);
2517
2664
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2521,16 +2668,16 @@ function Positioner$1(props) {
2521
2668
  }
2522
2669
  //#endregion
2523
2670
  //#region src/components/popover/anatomy/root-context.tsx
2524
- function RootContext$24(props) {
2525
- const popover = use(RootContext$25);
2671
+ function PopoverRootContext(props) {
2672
+ const popover = use(PopoverRootContext$1);
2526
2673
  const { children } = props;
2527
2674
  return children(popover);
2528
2675
  }
2529
2676
  //#endregion
2530
2677
  //#region src/components/popover/anatomy/root-provider.tsx
2531
- function RootProvider$9(props) {
2678
+ function RootProvider$10(props) {
2532
2679
  const { children, value: popover } = props;
2533
- return /* @__PURE__ */ jsx(RootContext$25.Provider, {
2680
+ return /* @__PURE__ */ jsx(PopoverRootContext$1.Provider, {
2534
2681
  value: popover,
2535
2682
  children
2536
2683
  });
@@ -2538,18 +2685,20 @@ function RootProvider$9(props) {
2538
2685
  //#endregion
2539
2686
  //#region src/components/popover/modules/provider.ts
2540
2687
  function usePopover(props = {}) {
2541
- return connect$12(useMachine(machine$12, {
2688
+ const locale = use(LocaleProviderRootContext);
2689
+ return connect$13(useMachine(machine$13, {
2542
2690
  id: useId(),
2691
+ dir: locale.dir,
2543
2692
  ...props
2544
2693
  }), normalizeProps);
2545
2694
  }
2546
2695
  //#endregion
2547
2696
  //#region src/components/popover/anatomy/root.tsx
2548
- function Root$10(props) {
2549
- const [popoverProps, componentProps] = splitProps$12(props);
2697
+ function Root$11(props) {
2698
+ const [popoverProps, componentProps] = splitProps$13(props);
2550
2699
  const { children } = componentProps;
2551
2700
  const popover = usePopover(popoverProps);
2552
- return /* @__PURE__ */ jsx(RootContext$25.Provider, {
2701
+ return /* @__PURE__ */ jsx(PopoverRootContext$1.Provider, {
2553
2702
  value: popover,
2554
2703
  children
2555
2704
  });
@@ -2557,7 +2706,7 @@ function Root$10(props) {
2557
2706
  //#endregion
2558
2707
  //#region src/components/popover/anatomy/title.tsx
2559
2708
  function Title$1(props) {
2560
- const popover = use(RootContext$25);
2709
+ const popover = use(PopoverRootContext$1);
2561
2710
  const { element, children, ...rest } = props;
2562
2711
  const attributes = mergeProps(popover.getTitleProps(), rest);
2563
2712
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2568,7 +2717,7 @@ function Title$1(props) {
2568
2717
  //#endregion
2569
2718
  //#region src/components/popover/anatomy/trigger.tsx
2570
2719
  function Trigger$3(props) {
2571
- const popover = use(RootContext$25);
2720
+ const popover = use(PopoverRootContext$1);
2572
2721
  const { element, children, ...rest } = props;
2573
2722
  const attributes = mergeProps(popover.getTriggerProps(), rest);
2574
2723
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2578,9 +2727,9 @@ function Trigger$3(props) {
2578
2727
  }
2579
2728
  //#endregion
2580
2729
  //#region src/components/popover/modules/anatomy.ts
2581
- const Popover = Object.assign(Root$10, {
2582
- Provider: RootProvider$9,
2583
- Context: RootContext$24,
2730
+ const Popover = Object.assign(Root$11, {
2731
+ Provider: RootProvider$10,
2732
+ Context: PopoverRootContext,
2584
2733
  Anchor,
2585
2734
  Trigger: Trigger$3,
2586
2735
  Positioner: Positioner$1,
@@ -2593,21 +2742,21 @@ const Popover = Object.assign(Root$10, {
2593
2742
  });
2594
2743
  //#endregion
2595
2744
  //#region src/components/portal/anatomy/root.tsx
2596
- function Root$9(props) {
2745
+ function Root$10(props) {
2597
2746
  const { children, disabled = false, target = typeof window === "undefined" ? void 0 : document.body } = props;
2598
2747
  if (disabled || !target) return /* @__PURE__ */ jsx(Fragment, { children });
2599
2748
  return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (child) => createPortal(child, target)) });
2600
2749
  }
2601
2750
  //#endregion
2602
2751
  //#region src/components/portal/modules/anatomy.ts
2603
- const Portal = Root$9;
2752
+ const Portal = Root$10;
2604
2753
  //#endregion
2605
2754
  //#region src/components/progress/modules/root-context.ts
2606
- const RootContext$23 = createContext$1();
2755
+ const ProgressRootContext$1 = createContext$1();
2607
2756
  //#endregion
2608
2757
  //#region src/components/progress/anatomy/circle-range.tsx
2609
2758
  function CircleRange(props) {
2610
- const progress = use(RootContext$23);
2759
+ const progress = use(ProgressRootContext$1);
2611
2760
  const { element, ...rest } = props;
2612
2761
  const attributes = mergeProps(progress.getCircleRangeProps(), { strokeLinecap: "round" }, rest);
2613
2762
  return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
@@ -2615,7 +2764,7 @@ function CircleRange(props) {
2615
2764
  //#endregion
2616
2765
  //#region src/components/progress/anatomy/circle-track.tsx
2617
2766
  function CircleTrack(props) {
2618
- const progress = use(RootContext$23);
2767
+ const progress = use(ProgressRootContext$1);
2619
2768
  const { element, ...rest } = props;
2620
2769
  const attributes = mergeProps(progress.getCircleTrackProps(), rest);
2621
2770
  return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
@@ -2623,7 +2772,7 @@ function CircleTrack(props) {
2623
2772
  //#endregion
2624
2773
  //#region src/components/progress/anatomy/circle.tsx
2625
2774
  function Circle(props) {
2626
- const progress = use(RootContext$23);
2775
+ const progress = use(ProgressRootContext$1);
2627
2776
  const { element, children, ...rest } = props;
2628
2777
  const attributes = mergeProps(progress.getCircleProps(), rest);
2629
2778
  return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
@@ -2634,7 +2783,7 @@ function Circle(props) {
2634
2783
  //#endregion
2635
2784
  //#region src/components/progress/anatomy/label.tsx
2636
2785
  function Label$6(props) {
2637
- const progress = use(RootContext$23);
2786
+ const progress = use(ProgressRootContext$1);
2638
2787
  const { element, children, ...rest } = props;
2639
2788
  const attributes = mergeProps(progress.getLabelProps(), rest);
2640
2789
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2645,24 +2794,24 @@ function Label$6(props) {
2645
2794
  //#endregion
2646
2795
  //#region src/components/progress/anatomy/range.tsx
2647
2796
  function Range$1(props) {
2648
- const progress = use(RootContext$23);
2797
+ const progress = use(ProgressRootContext$1);
2649
2798
  const { element, ...rest } = props;
2650
2799
  const attributes = mergeProps(progress.getRangeProps(), rest);
2651
2800
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
2652
2801
  }
2653
2802
  //#endregion
2654
2803
  //#region src/components/progress/anatomy/root-context.tsx
2655
- function RootContext$22(props) {
2656
- const progress = use(RootContext$23);
2804
+ function ProgressRootContext(props) {
2805
+ const progress = use(ProgressRootContext$1);
2657
2806
  const { children } = props;
2658
2807
  return children(progress);
2659
2808
  }
2660
2809
  //#endregion
2661
2810
  //#region src/components/progress/anatomy/root-provider.tsx
2662
- function RootProvider$8(props) {
2811
+ function RootProvider$9(props) {
2663
2812
  const { element, children, value: progress, ...rest } = props;
2664
2813
  const attributes = mergeProps(progress.getRootProps(), rest);
2665
- return /* @__PURE__ */ jsx(RootContext$23.Provider, {
2814
+ return /* @__PURE__ */ jsx(ProgressRootContext$1.Provider, {
2666
2815
  value: progress,
2667
2816
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2668
2817
  ...attributes,
@@ -2673,19 +2822,21 @@ function RootProvider$8(props) {
2673
2822
  //#endregion
2674
2823
  //#region src/components/progress/modules/provider.ts
2675
2824
  function useProgress(props = {}) {
2676
- return connect$13(useMachine(machine$13, {
2825
+ const locale = use(LocaleProviderRootContext);
2826
+ return connect$14(useMachine(machine$14, {
2677
2827
  id: useId(),
2828
+ dir: locale.dir,
2678
2829
  ...props
2679
2830
  }), normalizeProps);
2680
2831
  }
2681
2832
  //#endregion
2682
2833
  //#region src/components/progress/anatomy/root.tsx
2683
- function Root$8(props) {
2684
- const [progressProps, componentProps] = splitProps$13(props);
2834
+ function Root$9(props) {
2835
+ const [progressProps, componentProps] = splitProps$14(props);
2685
2836
  const { element, children, ...rest } = componentProps;
2686
2837
  const progress = useProgress(progressProps);
2687
2838
  const attributes = mergeProps(progress.getRootProps(), rest);
2688
- return /* @__PURE__ */ jsx(RootContext$23.Provider, {
2839
+ return /* @__PURE__ */ jsx(ProgressRootContext$1.Provider, {
2689
2840
  value: progress,
2690
2841
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2691
2842
  ...attributes,
@@ -2696,7 +2847,7 @@ function Root$8(props) {
2696
2847
  //#endregion
2697
2848
  //#region src/components/progress/anatomy/track.tsx
2698
2849
  function Track$1(props) {
2699
- const progress = use(RootContext$23);
2850
+ const progress = use(ProgressRootContext$1);
2700
2851
  const { element, children, ...rest } = props;
2701
2852
  const attributes = mergeProps(progress.getTrackProps(), rest);
2702
2853
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2707,7 +2858,7 @@ function Track$1(props) {
2707
2858
  //#endregion
2708
2859
  //#region src/components/progress/anatomy/value-text.tsx
2709
2860
  function ValueText$1(props) {
2710
- const progress = use(RootContext$23);
2861
+ const progress = use(ProgressRootContext$1);
2711
2862
  const { element, children, ...rest } = props;
2712
2863
  const attributes = mergeProps(progress.getValueTextProps(), rest);
2713
2864
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -2717,9 +2868,9 @@ function ValueText$1(props) {
2717
2868
  }
2718
2869
  //#endregion
2719
2870
  //#region src/components/progress/modules/anatomy.ts
2720
- const Progress = Object.assign(Root$8, {
2721
- Provider: RootProvider$8,
2722
- Context: RootContext$22,
2871
+ const Progress = Object.assign(Root$9, {
2872
+ Provider: RootProvider$9,
2873
+ Context: ProgressRootContext,
2723
2874
  Label: Label$6,
2724
2875
  ValueText: ValueText$1,
2725
2876
  Track: Track$1,
@@ -2729,12 +2880,115 @@ const Progress = Object.assign(Root$8, {
2729
2880
  CircleRange
2730
2881
  });
2731
2882
  //#endregion
2883
+ //#region src/components/qr-code/modules/root-context.ts
2884
+ const QrCodeRootContext$1 = createContext$1();
2885
+ //#endregion
2886
+ //#region src/components/qr-code/anatomy/download-trigger.tsx
2887
+ function DownloadTrigger(props) {
2888
+ const qrCode = use(QrCodeRootContext$1);
2889
+ const { mimeType, fileName, quality, element, children, ...rest } = props;
2890
+ const attributes = mergeProps(qrCode.getDownloadTriggerProps({
2891
+ mimeType,
2892
+ fileName,
2893
+ quality
2894
+ }), rest);
2895
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
2896
+ ...attributes,
2897
+ children
2898
+ });
2899
+ }
2900
+ //#endregion
2901
+ //#region src/components/qr-code/anatomy/frame.tsx
2902
+ function Frame(props) {
2903
+ const qrCode = use(QrCodeRootContext$1);
2904
+ const { element, children, ...rest } = props;
2905
+ const attributes = mergeProps(qrCode.getFrameProps(), rest);
2906
+ return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
2907
+ ...attributes,
2908
+ children
2909
+ });
2910
+ }
2911
+ //#endregion
2912
+ //#region src/components/qr-code/anatomy/overlay.tsx
2913
+ function Overlay(props) {
2914
+ const qrCode = use(QrCodeRootContext$1);
2915
+ const { element, children, ...rest } = props;
2916
+ const attributes = mergeProps(qrCode.getOverlayProps(), rest);
2917
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2918
+ ...attributes,
2919
+ children
2920
+ });
2921
+ }
2922
+ //#endregion
2923
+ //#region src/components/qr-code/anatomy/pattern.tsx
2924
+ function Pattern(props) {
2925
+ const qrCode = use(QrCodeRootContext$1);
2926
+ const { element, ...rest } = props;
2927
+ const attributes = mergeProps(qrCode.getPatternProps(), rest);
2928
+ return element ? element(attributes) : /* @__PURE__ */ jsx("path", { ...attributes });
2929
+ }
2930
+ //#endregion
2931
+ //#region src/components/qr-code/anatomy/root-context.tsx
2932
+ function QrCodeRootContext(props) {
2933
+ const qrCode = use(QrCodeRootContext$1);
2934
+ const { children } = props;
2935
+ return children(qrCode);
2936
+ }
2937
+ //#endregion
2938
+ //#region src/components/qr-code/anatomy/root-provider.tsx
2939
+ function RootProvider$8(props) {
2940
+ const { element, children, value: qrCode, ...rest } = props;
2941
+ const attributes = mergeProps(qrCode.getRootProps(), rest);
2942
+ return /* @__PURE__ */ jsx(QrCodeRootContext$1.Provider, {
2943
+ value: qrCode,
2944
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2945
+ ...attributes,
2946
+ children
2947
+ })
2948
+ });
2949
+ }
2950
+ //#endregion
2951
+ //#region src/components/qr-code/modules/provider.ts
2952
+ function useQrCode(props = {}) {
2953
+ const locale = use(LocaleProviderRootContext);
2954
+ return connect$15(useMachine(machine$15, {
2955
+ id: useId(),
2956
+ dir: locale.dir,
2957
+ ...props
2958
+ }), normalizeProps);
2959
+ }
2960
+ //#endregion
2961
+ //#region src/components/qr-code/anatomy/root.tsx
2962
+ function Root$8(props) {
2963
+ const [qrCodeProps, componentProps] = splitProps$15(props);
2964
+ const { element, children, ...rest } = componentProps;
2965
+ const qrCode = useQrCode(qrCodeProps);
2966
+ const attributes = mergeProps(qrCode.getRootProps(), rest);
2967
+ return /* @__PURE__ */ jsx(QrCodeRootContext$1.Provider, {
2968
+ value: qrCode,
2969
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2970
+ ...attributes,
2971
+ children
2972
+ })
2973
+ });
2974
+ }
2975
+ //#endregion
2976
+ //#region src/components/qr-code/modules/anatomy.ts
2977
+ const QrCode = Object.assign(Root$8, {
2978
+ Provider: RootProvider$8,
2979
+ Context: QrCodeRootContext,
2980
+ DownloadTrigger,
2981
+ Frame,
2982
+ Pattern,
2983
+ Overlay
2984
+ });
2985
+ //#endregion
2732
2986
  //#region src/components/rating-group/modules/root-context.ts
2733
- const RootContext$21 = createContext$1();
2987
+ const RatingGroupRootContext$1 = createContext$1();
2734
2988
  //#endregion
2735
2989
  //#region src/components/rating-group/anatomy/control.tsx
2736
2990
  function Control$4(props) {
2737
- const ratingGroup = use(RootContext$21);
2991
+ const ratingGroup = use(RatingGroupRootContext$1);
2738
2992
  const { element, children, ...rest } = props;
2739
2993
  const attributes = mergeProps(ratingGroup.getControlProps(), rest);
2740
2994
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2745,7 +2999,7 @@ function Control$4(props) {
2745
2999
  //#endregion
2746
3000
  //#region src/components/rating-group/anatomy/hidden-input.tsx
2747
3001
  function HiddenInput$3(props) {
2748
- const ratingGroup = use(RootContext$21);
3002
+ const ratingGroup = use(RatingGroupRootContext$1);
2749
3003
  const { element, ...rest } = props;
2750
3004
  const attributes = mergeProps(ratingGroup.getHiddenInputProps(), rest);
2751
3005
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -2828,7 +3082,7 @@ function StarHalf(props) {
2828
3082
  //#endregion
2829
3083
  //#region src/components/rating-group/anatomy/item.tsx
2830
3084
  function Item$5(props) {
2831
- const ratingGroup = use(RootContext$21);
3085
+ const ratingGroup = use(RatingGroupRootContext$1);
2832
3086
  const [itemProps, componentProps] = splitItemProps$7(props);
2833
3087
  const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}), ...rest } = componentProps;
2834
3088
  const itemState = ratingGroup.getItemState(itemProps);
@@ -2841,7 +3095,7 @@ function Item$5(props) {
2841
3095
  //#endregion
2842
3096
  //#region src/components/rating-group/anatomy/label.tsx
2843
3097
  function Label$5(props) {
2844
- const ratingGroup = use(RootContext$21);
3098
+ const ratingGroup = use(RatingGroupRootContext$1);
2845
3099
  const { element, children, ...rest } = props;
2846
3100
  const attributes = mergeProps(ratingGroup.getLabelProps(), rest);
2847
3101
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -2851,8 +3105,8 @@ function Label$5(props) {
2851
3105
  }
2852
3106
  //#endregion
2853
3107
  //#region src/components/rating-group/anatomy/root-context.tsx
2854
- function RootContext$20(props) {
2855
- const ratingGroup = use(RootContext$21);
3108
+ function RatingGroupRootContext(props) {
3109
+ const ratingGroup = use(RatingGroupRootContext$1);
2856
3110
  const { children } = props;
2857
3111
  return children(ratingGroup);
2858
3112
  }
@@ -2861,7 +3115,7 @@ function RootContext$20(props) {
2861
3115
  function RootProvider$7(props) {
2862
3116
  const { element, children, value: ratingGroup, ...rest } = props;
2863
3117
  const attributes = mergeProps(ratingGroup.getRootProps(), rest);
2864
- return /* @__PURE__ */ jsx(RootContext$21.Provider, {
3118
+ return /* @__PURE__ */ jsx(RatingGroupRootContext$1.Provider, {
2865
3119
  value: ratingGroup,
2866
3120
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2867
3121
  ...attributes,
@@ -2872,19 +3126,21 @@ function RootProvider$7(props) {
2872
3126
  //#endregion
2873
3127
  //#region src/components/rating-group/modules/provider.ts
2874
3128
  function useRatingGroup(props = {}) {
2875
- return connect$14(useMachine(machine$14, {
3129
+ const locale = use(LocaleProviderRootContext);
3130
+ return connect$16(useMachine(machine$16, {
2876
3131
  id: useId(),
3132
+ dir: locale.dir,
2877
3133
  ...props
2878
3134
  }), normalizeProps);
2879
3135
  }
2880
3136
  //#endregion
2881
3137
  //#region src/components/rating-group/anatomy/root.tsx
2882
3138
  function Root$7(props) {
2883
- const [ratingGroupProps, componentProps] = splitProps$14(props);
3139
+ const [ratingGroupProps, componentProps] = splitProps$16(props);
2884
3140
  const { element, children, ...rest } = componentProps;
2885
3141
  const ratingGroup = useRatingGroup(ratingGroupProps);
2886
3142
  const attributes = mergeProps(ratingGroup.getRootProps(), rest);
2887
- return /* @__PURE__ */ jsx(RootContext$21.Provider, {
3143
+ return /* @__PURE__ */ jsx(RatingGroupRootContext$1.Provider, {
2888
3144
  value: ratingGroup,
2889
3145
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2890
3146
  ...attributes,
@@ -2896,7 +3152,7 @@ function Root$7(props) {
2896
3152
  //#region src/components/rating-group/modules/anatomy.ts
2897
3153
  const RatingGroup = Object.assign(Root$7, {
2898
3154
  Provider: RootProvider$7,
2899
- Context: RootContext$20,
3155
+ Context: RatingGroupRootContext,
2900
3156
  Label: Label$5,
2901
3157
  Control: Control$4,
2902
3158
  Item: Item$5,
@@ -2917,23 +3173,23 @@ function Control$3(props) {
2917
3173
  }
2918
3174
  //#endregion
2919
3175
  //#region src/components/segmented-control/modules/root-context.ts
2920
- const RootContext$19 = createContext$1();
3176
+ const SegmentedControlRootContext$1 = createContext$1();
2921
3177
  //#endregion
2922
3178
  //#region src/components/segmented-control/anatomy/indicator.tsx
2923
3179
  function Indicator$2(props) {
2924
- const segmentedControl = use(RootContext$19);
3180
+ const segmentedControl = use(SegmentedControlRootContext$1);
2925
3181
  const { element, ...rest } = props;
2926
3182
  const attributes = mergeProps(segmentedControl.getIndicatorProps(), rest);
2927
3183
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
2928
3184
  }
2929
3185
  //#endregion
2930
3186
  //#region src/components/segmented-control/modules/item-context.ts
2931
- const ItemContext$2 = createContext$1();
3187
+ const SegmentedControlItemContext = createContext$1();
2932
3188
  //#endregion
2933
3189
  //#region src/components/segmented-control/anatomy/item-hidden-input.tsx
2934
3190
  function ItemHiddenInput(props) {
2935
- const segmentedControl = use(RootContext$19);
2936
- const itemProps = use(ItemContext$2);
3191
+ const segmentedControl = use(SegmentedControlRootContext$1);
3192
+ const itemProps = use(SegmentedControlItemContext);
2937
3193
  const { element, ...rest } = props;
2938
3194
  const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), rest);
2939
3195
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -2941,8 +3197,8 @@ function ItemHiddenInput(props) {
2941
3197
  //#endregion
2942
3198
  //#region src/components/segmented-control/anatomy/item-text.tsx
2943
3199
  function ItemText$1(props) {
2944
- const segmentedControl = use(RootContext$19);
2945
- const itemProps = use(ItemContext$2);
3200
+ const segmentedControl = use(SegmentedControlRootContext$1);
3201
+ const itemProps = use(SegmentedControlItemContext);
2946
3202
  const { element, children, ...rest } = props;
2947
3203
  const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), rest);
2948
3204
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -2953,11 +3209,11 @@ function ItemText$1(props) {
2953
3209
  //#endregion
2954
3210
  //#region src/components/segmented-control/anatomy/item.tsx
2955
3211
  function Item$4(props) {
2956
- const segmentedControl = use(RootContext$19);
3212
+ const segmentedControl = use(SegmentedControlRootContext$1);
2957
3213
  const [itemProps, componentProps] = splitItemProps$8(props);
2958
3214
  const { element, children, ...rest } = componentProps;
2959
3215
  const attributes = mergeProps(segmentedControl.getItemProps(itemProps), rest);
2960
- return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
3216
+ return /* @__PURE__ */ jsx(SegmentedControlItemContext.Provider, {
2961
3217
  value: itemProps,
2962
3218
  children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
2963
3219
  ...attributes,
@@ -2968,7 +3224,7 @@ function Item$4(props) {
2968
3224
  //#endregion
2969
3225
  //#region src/components/segmented-control/anatomy/label.tsx
2970
3226
  function Label$4(props) {
2971
- const segmentedControl = use(RootContext$19);
3227
+ const segmentedControl = use(SegmentedControlRootContext$1);
2972
3228
  const { element, children, ...rest } = props;
2973
3229
  const attributes = mergeProps(segmentedControl.getLabelProps(), rest);
2974
3230
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -2978,8 +3234,8 @@ function Label$4(props) {
2978
3234
  }
2979
3235
  //#endregion
2980
3236
  //#region src/components/segmented-control/anatomy/root-context.tsx
2981
- function RootContext$18(props) {
2982
- const segmentedControl = use(RootContext$19);
3237
+ function SegmentedControlRootContext(props) {
3238
+ const segmentedControl = use(SegmentedControlRootContext$1);
2983
3239
  const { children } = props;
2984
3240
  return children(segmentedControl);
2985
3241
  }
@@ -2988,7 +3244,7 @@ function RootContext$18(props) {
2988
3244
  function RootProvider$6(props) {
2989
3245
  const { element, children, value: segmentedControl, ...rest } = props;
2990
3246
  const attributes = mergeProps(segmentedControl.getRootProps(), rest);
2991
- return /* @__PURE__ */ jsx(RootContext$19.Provider, {
3247
+ return /* @__PURE__ */ jsx(SegmentedControlRootContext$1.Provider, {
2992
3248
  value: segmentedControl,
2993
3249
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2994
3250
  ...attributes,
@@ -2999,8 +3255,10 @@ function RootProvider$6(props) {
2999
3255
  //#endregion
3000
3256
  //#region src/components/segmented-control/modules/provider.ts
3001
3257
  function useSegmentedControl(props = {}) {
3002
- return connect$15(useMachine(machine$15, {
3258
+ const locale = use(LocaleProviderRootContext);
3259
+ return connect$17(useMachine(machine$17, {
3003
3260
  id: useId(),
3261
+ dir: locale.dir,
3004
3262
  orientation: "horizontal",
3005
3263
  ...props
3006
3264
  }), normalizeProps);
@@ -3008,11 +3266,11 @@ function useSegmentedControl(props = {}) {
3008
3266
  //#endregion
3009
3267
  //#region src/components/segmented-control/anatomy/root.tsx
3010
3268
  function Root$6(props) {
3011
- const [segmentedControlProps, componentProps] = splitProps$15(props);
3269
+ const [segmentedControlProps, componentProps] = splitProps$17(props);
3012
3270
  const { element, children, ...rest } = componentProps;
3013
3271
  const segmentedControl = useSegmentedControl(segmentedControlProps);
3014
3272
  const attributes = mergeProps(segmentedControl.getRootProps(), rest);
3015
- return /* @__PURE__ */ jsx(RootContext$19.Provider, {
3273
+ return /* @__PURE__ */ jsx(SegmentedControlRootContext$1.Provider, {
3016
3274
  value: segmentedControl,
3017
3275
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3018
3276
  ...attributes,
@@ -3024,7 +3282,7 @@ function Root$6(props) {
3024
3282
  //#region src/components/segmented-control/modules/anatomy.ts
3025
3283
  const SegmentedControl = Object.assign(Root$6, {
3026
3284
  Provider: RootProvider$6,
3027
- Context: RootContext$18,
3285
+ Context: SegmentedControlRootContext,
3028
3286
  Label: Label$4,
3029
3287
  Control: Control$3,
3030
3288
  Indicator: Indicator$2,
@@ -3034,11 +3292,11 @@ const SegmentedControl = Object.assign(Root$6, {
3034
3292
  });
3035
3293
  //#endregion
3036
3294
  //#region src/components/slider/modules/root-context.ts
3037
- const RootContext$17 = createContext$1();
3295
+ const SliderRootContext$1 = createContext$1();
3038
3296
  //#endregion
3039
3297
  //#region src/components/slider/anatomy/control.tsx
3040
3298
  function Control$2(props) {
3041
- const slider = use(RootContext$17);
3299
+ const slider = use(SliderRootContext$1);
3042
3300
  const { element, children, ...rest } = props;
3043
3301
  const attributes = mergeProps(slider.getControlProps(), rest);
3044
3302
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3048,12 +3306,12 @@ function Control$2(props) {
3048
3306
  }
3049
3307
  //#endregion
3050
3308
  //#region src/components/slider/modules/thumb-context.ts
3051
- const ThumbContext = createContext$1();
3309
+ const SliderThumbContext = createContext$1();
3052
3310
  //#endregion
3053
3311
  //#region src/components/slider/anatomy/hidden-input.tsx
3054
3312
  function HiddenInput$2(props) {
3055
- const slider = use(RootContext$17);
3056
- const thumbProps = use(ThumbContext);
3313
+ const slider = use(SliderRootContext$1);
3314
+ const thumbProps = use(SliderThumbContext);
3057
3315
  const { element, ...rest } = props;
3058
3316
  const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), rest);
3059
3317
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3061,7 +3319,7 @@ function HiddenInput$2(props) {
3061
3319
  //#endregion
3062
3320
  //#region src/components/slider/anatomy/label.tsx
3063
3321
  function Label$3(props) {
3064
- const slider = use(RootContext$17);
3322
+ const slider = use(SliderRootContext$1);
3065
3323
  const { element, children, ...rest } = props;
3066
3324
  const attributes = mergeProps(slider.getLabelProps(), rest);
3067
3325
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -3072,7 +3330,7 @@ function Label$3(props) {
3072
3330
  //#endregion
3073
3331
  //#region src/components/slider/anatomy/marker-group.tsx
3074
3332
  function MarkerGroup(props) {
3075
- const slider = use(RootContext$17);
3333
+ const slider = use(SliderRootContext$1);
3076
3334
  const { element, children, ...rest } = props;
3077
3335
  const attributes = mergeProps(slider.getMarkerGroupProps(), rest);
3078
3336
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3083,7 +3341,7 @@ function MarkerGroup(props) {
3083
3341
  //#endregion
3084
3342
  //#region src/components/slider/anatomy/marker.tsx
3085
3343
  function Marker(props) {
3086
- const slider = use(RootContext$17);
3344
+ const slider = use(SliderRootContext$1);
3087
3345
  const { element, children, value, ...rest } = props;
3088
3346
  const attributes = mergeProps(slider.getMarkerProps({ value }), rest);
3089
3347
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3094,7 +3352,7 @@ function Marker(props) {
3094
3352
  //#endregion
3095
3353
  //#region src/components/slider/anatomy/range.tsx
3096
3354
  function Range(props) {
3097
- const slider = use(RootContext$17);
3355
+ const slider = use(SliderRootContext$1);
3098
3356
  const { element, children, ...rest } = props;
3099
3357
  const attributes = mergeProps(slider.getRangeProps(), rest);
3100
3358
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3104,8 +3362,8 @@ function Range(props) {
3104
3362
  }
3105
3363
  //#endregion
3106
3364
  //#region src/components/slider/anatomy/root-context.tsx
3107
- function RootContext$16(props) {
3108
- const slider = use(RootContext$17);
3365
+ function SliderRootContext(props) {
3366
+ const slider = use(SliderRootContext$1);
3109
3367
  const { children } = props;
3110
3368
  return children(slider);
3111
3369
  }
@@ -3114,7 +3372,7 @@ function RootContext$16(props) {
3114
3372
  function SliderRootProvider(props) {
3115
3373
  const { element, children, value: slider, ...rest } = props;
3116
3374
  const attributes = mergeProps(slider.getRootProps(), rest);
3117
- return /* @__PURE__ */ jsx(RootContext$17.Provider, {
3375
+ return /* @__PURE__ */ jsx(SliderRootContext$1.Provider, {
3118
3376
  value: slider,
3119
3377
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3120
3378
  ...attributes,
@@ -3125,19 +3383,21 @@ function SliderRootProvider(props) {
3125
3383
  //#endregion
3126
3384
  //#region src/components/slider/modules/provider.ts
3127
3385
  function useSlider(props = {}) {
3128
- return connect$16(useMachine(machine$16, {
3386
+ const locale = use(LocaleProviderRootContext);
3387
+ return connect$18(useMachine(machine$18, {
3129
3388
  id: useId(),
3389
+ dir: locale.dir,
3130
3390
  ...props
3131
3391
  }), normalizeProps);
3132
3392
  }
3133
3393
  //#endregion
3134
3394
  //#region src/components/slider/anatomy/root.tsx
3135
3395
  function SliderRoot$1(props) {
3136
- const [sliderProps, componentProps] = splitProps$16(props);
3396
+ const [sliderProps, componentProps] = splitProps$18(props);
3137
3397
  const { element, children, ...rest } = componentProps;
3138
3398
  const slider = useSlider(sliderProps);
3139
3399
  const attributes = mergeProps(slider.getRootProps(), rest);
3140
- return /* @__PURE__ */ jsx(RootContext$17.Provider, {
3400
+ return /* @__PURE__ */ jsx(SliderRootContext$1.Provider, {
3141
3401
  value: slider,
3142
3402
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3143
3403
  ...attributes,
@@ -3148,11 +3408,11 @@ function SliderRoot$1(props) {
3148
3408
  //#endregion
3149
3409
  //#region src/components/slider/anatomy/thumb.tsx
3150
3410
  function Thumb$1(props) {
3151
- const slider = use(RootContext$17);
3411
+ const slider = use(SliderRootContext$1);
3152
3412
  const [thumbProps, componentProps] = splitThumbProps(props);
3153
3413
  const { element, children, ...rest } = componentProps;
3154
3414
  const attributes = mergeProps(slider.getThumbProps(thumbProps), rest);
3155
- return /* @__PURE__ */ jsx(ThumbContext.Provider, {
3415
+ return /* @__PURE__ */ jsx(SliderThumbContext.Provider, {
3156
3416
  value: thumbProps,
3157
3417
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3158
3418
  ...attributes,
@@ -3163,7 +3423,7 @@ function Thumb$1(props) {
3163
3423
  //#endregion
3164
3424
  //#region src/components/slider/anatomy/track.tsx
3165
3425
  function Track(props) {
3166
- const slider = use(RootContext$17);
3426
+ const slider = use(SliderRootContext$1);
3167
3427
  const { element, children, ...rest } = props;
3168
3428
  const attributes = mergeProps(slider.getTrackProps(), rest);
3169
3429
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3174,7 +3434,7 @@ function Track(props) {
3174
3434
  //#endregion
3175
3435
  //#region src/components/slider/anatomy/value-text.tsx
3176
3436
  function ValueText(props) {
3177
- const slider = use(RootContext$17);
3437
+ const slider = use(SliderRootContext$1);
3178
3438
  const { element, children, ...rest } = props;
3179
3439
  const attributes = mergeProps(slider.getValueTextProps(), rest);
3180
3440
  return element ? element(attributes) : /* @__PURE__ */ jsx("output", {
@@ -3186,7 +3446,7 @@ function ValueText(props) {
3186
3446
  //#region src/components/slider/modules/anatomy.ts
3187
3447
  const Slider = Object.assign(SliderRoot$1, {
3188
3448
  Provider: SliderRootProvider,
3189
- Context: RootContext$16,
3449
+ Context: SliderRootContext,
3190
3450
  Label: Label$3,
3191
3451
  ValueText,
3192
3452
  Control: Control$2,
@@ -3199,11 +3459,11 @@ const Slider = Object.assign(SliderRoot$1, {
3199
3459
  });
3200
3460
  //#endregion
3201
3461
  //#region src/components/steps/modules/root-context.ts
3202
- const RootContext$15 = createContext$1();
3462
+ const StepsRootContext$1 = createContext$1();
3203
3463
  //#endregion
3204
3464
  //#region src/components/steps/anatomy/content.tsx
3205
3465
  function Content$2(props) {
3206
- const steps = use(RootContext$15);
3466
+ const steps = use(StepsRootContext$1);
3207
3467
  const { element, children, index, ...rest } = props;
3208
3468
  const attributes = mergeProps(steps.getContentProps({ index }), rest);
3209
3469
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3213,12 +3473,12 @@ function Content$2(props) {
3213
3473
  }
3214
3474
  //#endregion
3215
3475
  //#region src/components/steps/modules/item-context.ts
3216
- const ItemContext$1 = createContext$1();
3476
+ const StepsItemContext = createContext$1();
3217
3477
  //#endregion
3218
3478
  //#region src/components/steps/anatomy/indicator.tsx
3219
3479
  function Indicator$1(props) {
3220
- const steps = use(RootContext$15);
3221
- const itemProps = use(ItemContext$1);
3480
+ const steps = use(StepsRootContext$1);
3481
+ const itemProps = use(StepsItemContext);
3222
3482
  const { element, children, ...rest } = props;
3223
3483
  const attributes = mergeProps(steps.getIndicatorProps(itemProps), rest);
3224
3484
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3229,11 +3489,11 @@ function Indicator$1(props) {
3229
3489
  //#endregion
3230
3490
  //#region src/components/steps/anatomy/item.tsx
3231
3491
  function Item$3(props) {
3232
- const steps = use(RootContext$15);
3492
+ const steps = use(StepsRootContext$1);
3233
3493
  const { element, children, index, ...rest } = props;
3234
3494
  const itemProps = { index };
3235
3495
  const attributes = mergeProps(steps.getItemProps(itemProps), rest);
3236
- return /* @__PURE__ */ jsx(ItemContext$1.Provider, {
3496
+ return /* @__PURE__ */ jsx(StepsItemContext.Provider, {
3237
3497
  value: itemProps,
3238
3498
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3239
3499
  ...attributes,
@@ -3244,7 +3504,7 @@ function Item$3(props) {
3244
3504
  //#endregion
3245
3505
  //#region src/components/steps/anatomy/list.tsx
3246
3506
  function List$1(props) {
3247
- const steps = use(RootContext$15);
3507
+ const steps = use(StepsRootContext$1);
3248
3508
  const { element, children, ...rest } = props;
3249
3509
  const attributes = mergeProps(steps.getListProps(), rest);
3250
3510
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3255,7 +3515,7 @@ function List$1(props) {
3255
3515
  //#endregion
3256
3516
  //#region src/components/steps/anatomy/next-trigger.tsx
3257
3517
  function NextTrigger(props) {
3258
- const steps = use(RootContext$15);
3518
+ const steps = use(StepsRootContext$1);
3259
3519
  const { element, children, ...rest } = props;
3260
3520
  const attributes = mergeProps(steps.getNextTriggerProps(), rest);
3261
3521
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3266,7 +3526,7 @@ function NextTrigger(props) {
3266
3526
  //#endregion
3267
3527
  //#region src/components/steps/anatomy/prev-trigger.tsx
3268
3528
  function PrevTrigger(props) {
3269
- const steps = use(RootContext$15);
3529
+ const steps = use(StepsRootContext$1);
3270
3530
  const { element, children, ...rest } = props;
3271
3531
  const attributes = mergeProps(steps.getPrevTriggerProps(), rest);
3272
3532
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3276,8 +3536,8 @@ function PrevTrigger(props) {
3276
3536
  }
3277
3537
  //#endregion
3278
3538
  //#region src/components/steps/anatomy/root-context.tsx
3279
- function RootContext$14(props) {
3280
- const steps = use(RootContext$15);
3539
+ function StepsRootContext(props) {
3540
+ const steps = use(StepsRootContext$1);
3281
3541
  const { children } = props;
3282
3542
  return children(steps);
3283
3543
  }
@@ -3286,7 +3546,7 @@ function RootContext$14(props) {
3286
3546
  function RootProvider$5(props) {
3287
3547
  const { element, children, value: steps, ...rest } = props;
3288
3548
  const attributes = mergeProps(steps.getRootProps(), rest);
3289
- return /* @__PURE__ */ jsx(RootContext$15.Provider, {
3549
+ return /* @__PURE__ */ jsx(StepsRootContext$1.Provider, {
3290
3550
  value: steps,
3291
3551
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3292
3552
  ...attributes,
@@ -3297,19 +3557,21 @@ function RootProvider$5(props) {
3297
3557
  //#endregion
3298
3558
  //#region src/components/steps/modules/provider.ts
3299
3559
  function useSteps(props = {}) {
3300
- return connect$17(useMachine(machine$17, {
3560
+ const locale = use(LocaleProviderRootContext);
3561
+ return connect$19(useMachine(machine$19, {
3301
3562
  id: useId(),
3563
+ dir: locale.dir,
3302
3564
  ...props
3303
3565
  }), normalizeProps);
3304
3566
  }
3305
3567
  //#endregion
3306
3568
  //#region src/components/steps/anatomy/root.tsx
3307
3569
  function SliderRoot(props) {
3308
- const [stepsProps, componentProps] = splitProps$17(props);
3570
+ const [stepsProps, componentProps] = splitProps$19(props);
3309
3571
  const { element, children, ...rest } = componentProps;
3310
3572
  const steps = useSteps(stepsProps);
3311
3573
  const attributes = mergeProps(steps.getRootProps(), rest);
3312
- return /* @__PURE__ */ jsx(RootContext$15.Provider, {
3574
+ return /* @__PURE__ */ jsx(StepsRootContext$1.Provider, {
3313
3575
  value: steps,
3314
3576
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3315
3577
  ...attributes,
@@ -3320,8 +3582,8 @@ function SliderRoot(props) {
3320
3582
  //#endregion
3321
3583
  //#region src/components/steps/anatomy/separator.tsx
3322
3584
  function Separator(props) {
3323
- const steps = use(RootContext$15);
3324
- const itemProps = use(ItemContext$1);
3585
+ const steps = use(StepsRootContext$1);
3586
+ const itemProps = use(StepsItemContext);
3325
3587
  const { element, children, ...rest } = props;
3326
3588
  const attributes = mergeProps(steps.getSeparatorProps(itemProps), rest);
3327
3589
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3332,8 +3594,8 @@ function Separator(props) {
3332
3594
  //#endregion
3333
3595
  //#region src/components/steps/anatomy/trigger.tsx
3334
3596
  function Trigger$2(props) {
3335
- const steps = use(RootContext$15);
3336
- const itemProps = use(ItemContext$1);
3597
+ const steps = use(StepsRootContext$1);
3598
+ const itemProps = use(StepsItemContext);
3337
3599
  const { element, children, ...rest } = props;
3338
3600
  const attributes = mergeProps(steps.getTriggerProps(itemProps), rest);
3339
3601
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3345,7 +3607,7 @@ function Trigger$2(props) {
3345
3607
  //#region src/components/steps/modules/anatomy.ts
3346
3608
  const Steps = Object.assign(SliderRoot, {
3347
3609
  Provider: RootProvider$5,
3348
- Context: RootContext$14,
3610
+ Context: StepsRootContext,
3349
3611
  List: List$1,
3350
3612
  Item: Item$3,
3351
3613
  Trigger: Trigger$2,
@@ -3357,11 +3619,11 @@ const Steps = Object.assign(SliderRoot, {
3357
3619
  });
3358
3620
  //#endregion
3359
3621
  //#region src/components/switch/modules/root-context.ts
3360
- const RootContext$13 = createContext$1();
3622
+ const SwitchRootContext$1 = createContext$1();
3361
3623
  //#endregion
3362
3624
  //#region src/components/switch/anatomy/control.tsx
3363
3625
  function Control$1(props) {
3364
- const switch_ = use(RootContext$13);
3626
+ const switch_ = use(SwitchRootContext$1);
3365
3627
  const { element, children, ...rest } = props;
3366
3628
  const attributes = mergeProps(switch_.getControlProps(), rest);
3367
3629
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3372,7 +3634,7 @@ function Control$1(props) {
3372
3634
  //#endregion
3373
3635
  //#region src/components/switch/anatomy/hidden-input.tsx
3374
3636
  function HiddenInput$1(props) {
3375
- const switch_ = use(RootContext$13);
3637
+ const switch_ = use(SwitchRootContext$1);
3376
3638
  const { element, ...rest } = props;
3377
3639
  const attributes = mergeProps(switch_.getHiddenInputProps(), rest);
3378
3640
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3380,7 +3642,7 @@ function HiddenInput$1(props) {
3380
3642
  //#endregion
3381
3643
  //#region src/components/switch/anatomy/label.tsx
3382
3644
  function Label$2(props) {
3383
- const switch_ = use(RootContext$13);
3645
+ const switch_ = use(SwitchRootContext$1);
3384
3646
  const { element, children, ...rest } = props;
3385
3647
  const attributes = mergeProps(switch_.getLabelProps(), rest);
3386
3648
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3390,8 +3652,8 @@ function Label$2(props) {
3390
3652
  }
3391
3653
  //#endregion
3392
3654
  //#region src/components/switch/anatomy/root-context.tsx
3393
- function RootContext$12(props) {
3394
- const switch_ = use(RootContext$13);
3655
+ function SwitchRootContext(props) {
3656
+ const switch_ = use(SwitchRootContext$1);
3395
3657
  const { children } = props;
3396
3658
  return children(switch_);
3397
3659
  }
@@ -3400,7 +3662,7 @@ function RootContext$12(props) {
3400
3662
  function RootProvider$4(props) {
3401
3663
  const { element, children, value: switch_, ...rest } = props;
3402
3664
  const attributes = mergeProps(switch_.getRootProps(), rest);
3403
- return /* @__PURE__ */ jsx(RootContext$13.Provider, {
3665
+ return /* @__PURE__ */ jsx(SwitchRootContext$1.Provider, {
3404
3666
  value: switch_,
3405
3667
  children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
3406
3668
  ...attributes,
@@ -3411,19 +3673,21 @@ function RootProvider$4(props) {
3411
3673
  //#endregion
3412
3674
  //#region src/components/switch/modules/provider.ts
3413
3675
  function useSwitch(props = {}) {
3414
- return connect$18(useMachine(machine$18, {
3676
+ const locale = use(LocaleProviderRootContext);
3677
+ return connect$20(useMachine(machine$20, {
3415
3678
  id: useId(),
3679
+ dir: locale.dir,
3416
3680
  ...props
3417
3681
  }), normalizeProps);
3418
3682
  }
3419
3683
  //#endregion
3420
3684
  //#region src/components/switch/anatomy/root.tsx
3421
3685
  function Root$5(props) {
3422
- const [switchProps, componentProps] = splitProps$18(props);
3686
+ const [switchProps, componentProps] = splitProps$20(props);
3423
3687
  const { element, children, ...rest } = componentProps;
3424
3688
  const switch_ = useSwitch(switchProps);
3425
3689
  const attributes = mergeProps(switch_.getRootProps(), rest);
3426
- return /* @__PURE__ */ jsx(RootContext$13.Provider, {
3690
+ return /* @__PURE__ */ jsx(SwitchRootContext$1.Provider, {
3427
3691
  value: switch_,
3428
3692
  children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
3429
3693
  ...attributes,
@@ -3434,7 +3698,7 @@ function Root$5(props) {
3434
3698
  //#endregion
3435
3699
  //#region src/components/switch/anatomy/thumb.tsx
3436
3700
  function Thumb(props) {
3437
- const switch_ = use(RootContext$13);
3701
+ const switch_ = use(SwitchRootContext$1);
3438
3702
  const { element, children, ...rest } = props;
3439
3703
  const attributes = mergeProps(switch_.getThumbProps(), rest);
3440
3704
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3446,7 +3710,7 @@ function Thumb(props) {
3446
3710
  //#region src/components/switch/modules/anatomy.ts
3447
3711
  const Switch = Object.assign(Root$5, {
3448
3712
  Provider: RootProvider$4,
3449
- Context: RootContext$12,
3713
+ Context: SwitchRootContext,
3450
3714
  Control: Control$1,
3451
3715
  Thumb,
3452
3716
  Label: Label$2,
@@ -3454,11 +3718,11 @@ const Switch = Object.assign(Root$5, {
3454
3718
  });
3455
3719
  //#endregion
3456
3720
  //#region src/components/tabs/modules/root-context.ts
3457
- const RootContext$11 = createContext$1();
3721
+ const TabsRootContext$1 = createContext$1();
3458
3722
  //#endregion
3459
3723
  //#region src/components/tabs/anatomy/content.tsx
3460
3724
  function Content$1(props) {
3461
- const tabs = use(RootContext$11);
3725
+ const tabs = use(TabsRootContext$1);
3462
3726
  const [contentProps, componentProps] = splitContentProps(props);
3463
3727
  const { element, children, ...rest } = componentProps;
3464
3728
  const attributes = mergeProps(tabs.getContentProps(contentProps), rest);
@@ -3470,7 +3734,7 @@ function Content$1(props) {
3470
3734
  //#endregion
3471
3735
  //#region src/components/tabs/anatomy/indicator.tsx
3472
3736
  function Indicator(props) {
3473
- const tabs = use(RootContext$11);
3737
+ const tabs = use(TabsRootContext$1);
3474
3738
  const { element, ...rest } = props;
3475
3739
  const attributes = mergeProps(tabs.getIndicatorProps(), rest);
3476
3740
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
@@ -3478,7 +3742,7 @@ function Indicator(props) {
3478
3742
  //#endregion
3479
3743
  //#region src/components/tabs/anatomy/list.tsx
3480
3744
  function List(props) {
3481
- const tabs = use(RootContext$11);
3745
+ const tabs = use(TabsRootContext$1);
3482
3746
  const { element, children, ...rest } = props;
3483
3747
  const attributes = mergeProps(tabs.getListProps(), rest);
3484
3748
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3488,8 +3752,8 @@ function List(props) {
3488
3752
  }
3489
3753
  //#endregion
3490
3754
  //#region src/components/tabs/anatomy/root-context.tsx
3491
- function RootContext$10(props) {
3492
- const tabs = use(RootContext$11);
3755
+ function TabsRootContext(props) {
3756
+ const tabs = use(TabsRootContext$1);
3493
3757
  const { children } = props;
3494
3758
  return children(tabs);
3495
3759
  }
@@ -3498,7 +3762,7 @@ function RootContext$10(props) {
3498
3762
  function RootProvider$3(props) {
3499
3763
  const { element, children, value: tabs, ...rest } = props;
3500
3764
  const attributes = mergeProps(tabs.getRootProps(), rest);
3501
- return /* @__PURE__ */ jsx(RootContext$11.Provider, {
3765
+ return /* @__PURE__ */ jsx(TabsRootContext$1.Provider, {
3502
3766
  value: tabs,
3503
3767
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3504
3768
  ...attributes,
@@ -3509,19 +3773,21 @@ function RootProvider$3(props) {
3509
3773
  //#endregion
3510
3774
  //#region src/components/tabs/modules/provider.ts
3511
3775
  function useTabs(props = {}) {
3512
- return connect$19(useMachine(machine$19, {
3776
+ const locale = use(LocaleProviderRootContext);
3777
+ return connect$21(useMachine(machine$21, {
3513
3778
  id: useId(),
3779
+ dir: locale.dir,
3514
3780
  ...props
3515
3781
  }), normalizeProps);
3516
3782
  }
3517
3783
  //#endregion
3518
3784
  //#region src/components/tabs/anatomy/root.tsx
3519
3785
  function Root$4(props) {
3520
- const [tabsProps, componentProps] = splitProps$19(props);
3786
+ const [tabsProps, componentProps] = splitProps$21(props);
3521
3787
  const { element, children, ...rest } = componentProps;
3522
3788
  const tabs = useTabs(tabsProps);
3523
3789
  const attributes = mergeProps(tabs.getRootProps(), rest);
3524
- return /* @__PURE__ */ jsx(RootContext$11.Provider, {
3790
+ return /* @__PURE__ */ jsx(TabsRootContext$1.Provider, {
3525
3791
  value: tabs,
3526
3792
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3527
3793
  ...attributes,
@@ -3532,7 +3798,7 @@ function Root$4(props) {
3532
3798
  //#endregion
3533
3799
  //#region src/components/tabs/anatomy/trigger.tsx
3534
3800
  function Trigger$1(props) {
3535
- const tabs = use(RootContext$11);
3801
+ const tabs = use(TabsRootContext$1);
3536
3802
  const [triggerProps, componentProps] = splitTriggerProps(props);
3537
3803
  const { element, children, ...rest } = componentProps;
3538
3804
  const attributes = mergeProps(tabs.getTriggerProps(triggerProps), rest);
@@ -3545,7 +3811,7 @@ function Trigger$1(props) {
3545
3811
  //#region src/components/tabs/modules/anatomy.ts
3546
3812
  const Tabs = Object.assign(Root$4, {
3547
3813
  Provider: RootProvider$3,
3548
- Context: RootContext$10,
3814
+ Context: TabsRootContext,
3549
3815
  List,
3550
3816
  Trigger: Trigger$1,
3551
3817
  Indicator,
@@ -3553,11 +3819,11 @@ const Tabs = Object.assign(Root$4, {
3553
3819
  });
3554
3820
  //#endregion
3555
3821
  //#region src/components/tags-input/modules/root-context.ts
3556
- const RootContext$9 = createContext$1();
3822
+ const TagsInputRootContext$1 = createContext$1();
3557
3823
  //#endregion
3558
3824
  //#region src/components/tags-input/anatomy/clear-trigger.tsx
3559
3825
  function ClearTrigger(props) {
3560
- const tagsInput = use(RootContext$9);
3826
+ const tagsInput = use(TagsInputRootContext$1);
3561
3827
  const { element, children, ...rest } = props;
3562
3828
  const attributes = mergeProps(tagsInput.getClearTriggerProps(), rest);
3563
3829
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3568,7 +3834,7 @@ function ClearTrigger(props) {
3568
3834
  //#endregion
3569
3835
  //#region src/components/tags-input/anatomy/control.tsx
3570
3836
  function Control(props) {
3571
- const tagsInput = use(RootContext$9);
3837
+ const tagsInput = use(TagsInputRootContext$1);
3572
3838
  const { element, children, ...rest } = props;
3573
3839
  const attributes = mergeProps(tagsInput.getControlProps(), rest);
3574
3840
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3579,7 +3845,7 @@ function Control(props) {
3579
3845
  //#endregion
3580
3846
  //#region src/components/tags-input/anatomy/hidden-input.tsx
3581
3847
  function HiddenInput(props) {
3582
- const tagsInput = use(RootContext$9);
3848
+ const tagsInput = use(TagsInputRootContext$1);
3583
3849
  const { element, ...rest } = props;
3584
3850
  const attributes = mergeProps(tagsInput.getHiddenInputProps(), rest);
3585
3851
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3587,19 +3853,19 @@ function HiddenInput(props) {
3587
3853
  //#endregion
3588
3854
  //#region src/components/tags-input/anatomy/input.tsx
3589
3855
  function Input(props) {
3590
- const tagsInput = use(RootContext$9);
3856
+ const tagsInput = use(TagsInputRootContext$1);
3591
3857
  const { element, ...rest } = props;
3592
3858
  const attributes = mergeProps(tagsInput.getInputProps(), rest);
3593
3859
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
3594
3860
  }
3595
3861
  //#endregion
3596
3862
  //#region src/components/tags-input/modules/item-context.ts
3597
- const ItemContext = createContext$1();
3863
+ const TagsInputItemContext = createContext$1();
3598
3864
  //#endregion
3599
3865
  //#region src/components/tags-input/anatomy/item-delete-trigger.tsx
3600
3866
  function ItemDeleteTrigger(props) {
3601
- const tagsInput = use(RootContext$9);
3602
- const itemProps = use(ItemContext);
3867
+ const tagsInput = use(TagsInputRootContext$1);
3868
+ const itemProps = use(TagsInputItemContext);
3603
3869
  const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
3604
3870
  const attributes = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), rest);
3605
3871
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3610,8 +3876,8 @@ function ItemDeleteTrigger(props) {
3610
3876
  //#endregion
3611
3877
  //#region src/components/tags-input/anatomy/item-input.tsx
3612
3878
  function ItemInput(props) {
3613
- const tagsInput = use(RootContext$9);
3614
- const itemProps = use(ItemContext);
3879
+ const tagsInput = use(TagsInputRootContext$1);
3880
+ const itemProps = use(TagsInputItemContext);
3615
3881
  const { element, ...rest } = props;
3616
3882
  const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), rest);
3617
3883
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3619,8 +3885,8 @@ function ItemInput(props) {
3619
3885
  //#endregion
3620
3886
  //#region src/components/tags-input/anatomy/item-preview.tsx
3621
3887
  function ItemPreview(props) {
3622
- const tagsInput = use(RootContext$9);
3623
- const itemProps = use(ItemContext);
3888
+ const tagsInput = use(TagsInputRootContext$1);
3889
+ const itemProps = use(TagsInputItemContext);
3624
3890
  const { element, children, ...rest } = props;
3625
3891
  const attributes = mergeProps(tagsInput.getItemPreviewProps(itemProps), rest);
3626
3892
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3631,8 +3897,8 @@ function ItemPreview(props) {
3631
3897
  //#endregion
3632
3898
  //#region src/components/tags-input/anatomy/item-text.tsx
3633
3899
  function ItemText(props) {
3634
- const tagsInput = use(RootContext$9);
3635
- const itemProps = use(ItemContext);
3900
+ const tagsInput = use(TagsInputRootContext$1);
3901
+ const itemProps = use(TagsInputItemContext);
3636
3902
  const { element, children, ...rest } = props;
3637
3903
  const attributes = mergeProps(tagsInput.getItemTextProps(itemProps), rest);
3638
3904
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3643,11 +3909,11 @@ function ItemText(props) {
3643
3909
  //#endregion
3644
3910
  //#region src/components/tags-input/anatomy/item.tsx
3645
3911
  function Item$2(props) {
3646
- const tagsInput = use(RootContext$9);
3912
+ const tagsInput = use(TagsInputRootContext$1);
3647
3913
  const [itemProps, componentProps] = splitItemProps$9(props);
3648
3914
  const { element, children, ...rest } = componentProps;
3649
3915
  const attributes = mergeProps(tagsInput.getItemProps(itemProps), rest);
3650
- return /* @__PURE__ */ jsx(ItemContext.Provider, {
3916
+ return /* @__PURE__ */ jsx(TagsInputItemContext.Provider, {
3651
3917
  value: itemProps,
3652
3918
  children: element ? element(attributes) : /* @__PURE__ */ jsx("span", {
3653
3919
  ...attributes,
@@ -3658,7 +3924,7 @@ function Item$2(props) {
3658
3924
  //#endregion
3659
3925
  //#region src/components/tags-input/anatomy/label.tsx
3660
3926
  function Label$1(props) {
3661
- const tagsInput = use(RootContext$9);
3927
+ const tagsInput = use(TagsInputRootContext$1);
3662
3928
  const { element, children, ...rest } = props;
3663
3929
  const attributes = mergeProps(tagsInput.getLabelProps(), rest);
3664
3930
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -3668,8 +3934,8 @@ function Label$1(props) {
3668
3934
  }
3669
3935
  //#endregion
3670
3936
  //#region src/components/tags-input/anatomy/root-context.tsx
3671
- function RootContext$8(props) {
3672
- const tagsInput = use(RootContext$9);
3937
+ function TagsInputRootContext(props) {
3938
+ const tagsInput = use(TagsInputRootContext$1);
3673
3939
  const { children } = props;
3674
3940
  return children(tagsInput);
3675
3941
  }
@@ -3678,7 +3944,7 @@ function RootContext$8(props) {
3678
3944
  function RootProvider$2(props) {
3679
3945
  const { element, children, value: tagsInput, ...rest } = props;
3680
3946
  const attributes = mergeProps(tagsInput.getRootProps(), rest);
3681
- return /* @__PURE__ */ jsx(RootContext$9.Provider, {
3947
+ return /* @__PURE__ */ jsx(TagsInputRootContext$1.Provider, {
3682
3948
  value: tagsInput,
3683
3949
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3684
3950
  ...attributes,
@@ -3689,19 +3955,21 @@ function RootProvider$2(props) {
3689
3955
  //#endregion
3690
3956
  //#region src/components/tags-input/modules/provider.ts
3691
3957
  function useTagsInput(props = {}) {
3692
- return connect$20(useMachine(machine$20, {
3958
+ const locale = use(LocaleProviderRootContext);
3959
+ return connect$22(useMachine(machine$22, {
3693
3960
  id: useId(),
3961
+ dir: locale.dir,
3694
3962
  ...props
3695
3963
  }), normalizeProps);
3696
3964
  }
3697
3965
  //#endregion
3698
3966
  //#region src/components/tags-input/anatomy/root.tsx
3699
3967
  function Root$3(props) {
3700
- const [tagsInputProps, componentProps] = splitProps$20(props);
3968
+ const [tagsInputProps, componentProps] = splitProps$22(props);
3701
3969
  const { element, children, ...rest } = componentProps;
3702
3970
  const tagsInput = useTagsInput(tagsInputProps);
3703
3971
  const attributes = mergeProps(tagsInput.getRootProps(), rest);
3704
- return /* @__PURE__ */ jsx(RootContext$9.Provider, {
3972
+ return /* @__PURE__ */ jsx(TagsInputRootContext$1.Provider, {
3705
3973
  value: tagsInput,
3706
3974
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3707
3975
  ...attributes,
@@ -3713,7 +3981,7 @@ function Root$3(props) {
3713
3981
  //#region src/components/tags-input/modules/anatomy.ts
3714
3982
  const TagsInput = Object.assign(Root$3, {
3715
3983
  Provider: RootProvider$2,
3716
- Context: RootContext$8,
3984
+ Context: TagsInputRootContext,
3717
3985
  Label: Label$1,
3718
3986
  Control,
3719
3987
  Item: Item$2,
@@ -3727,11 +3995,11 @@ const TagsInput = Object.assign(Root$3, {
3727
3995
  });
3728
3996
  //#endregion
3729
3997
  //#region src/components/toast/modules/root-context.ts
3730
- const RootContext$7 = createContext$1();
3998
+ const ToastRootContext$1 = createContext$1();
3731
3999
  //#endregion
3732
4000
  //#region src/components/toast/anatomy/action-trigger.tsx
3733
4001
  function ActionTrigger(props) {
3734
- const toast = use(RootContext$7);
4002
+ const toast = use(ToastRootContext$1);
3735
4003
  const { element, children, ...rest } = props;
3736
4004
  const attributes = mergeProps(toast.getActionTriggerProps(), rest);
3737
4005
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3761,7 +4029,7 @@ function X(props) {
3761
4029
  //#endregion
3762
4030
  //#region src/components/toast/anatomy/close-trigger.tsx
3763
4031
  function CloseTrigger(props) {
3764
- const toast = use(RootContext$7);
4032
+ const toast = use(ToastRootContext$1);
3765
4033
  const { element, children = /* @__PURE__ */ jsx(X, {}), ...rest } = props;
3766
4034
  const attributes = mergeProps(toast.getCloseTriggerProps(), rest);
3767
4035
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3772,7 +4040,7 @@ function CloseTrigger(props) {
3772
4040
  //#endregion
3773
4041
  //#region src/components/toast/anatomy/description.tsx
3774
4042
  function Description(props) {
3775
- const toast = use(RootContext$7);
4043
+ const toast = use(ToastRootContext$1);
3776
4044
  const { element, children, ...rest } = props;
3777
4045
  const attributes = mergeProps(toast.getDescriptionProps(), rest);
3778
4046
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3782,7 +4050,7 @@ function Description(props) {
3782
4050
  }
3783
4051
  //#endregion
3784
4052
  //#region src/components/toast/modules/group-context.ts
3785
- const GroupContext = createContext$1();
4053
+ const ToastGroupContext = createContext$1();
3786
4054
  //#endregion
3787
4055
  //#region src/components/toast/anatomy/group.tsx
3788
4056
  function Group(props) {
@@ -3793,7 +4061,7 @@ function Group(props) {
3793
4061
  });
3794
4062
  const api = group.connect(service, normalizeProps);
3795
4063
  const attributes = mergeProps(api.getGroupProps(), rest);
3796
- return /* @__PURE__ */ jsx(GroupContext.Provider, {
4064
+ return /* @__PURE__ */ jsx(ToastGroupContext.Provider, {
3797
4065
  value: service,
3798
4066
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3799
4067
  ...attributes,
@@ -3819,22 +4087,24 @@ function Message(props) {
3819
4087
  }
3820
4088
  //#endregion
3821
4089
  //#region src/components/toast/anatomy/root-context.tsx
3822
- function RootContext$6(props) {
3823
- const toast = use(RootContext$7);
4090
+ function ToastRootContext(props) {
4091
+ const toast = use(ToastRootContext$1);
3824
4092
  const { children } = props;
3825
4093
  return children(toast);
3826
4094
  }
3827
4095
  //#endregion
3828
4096
  //#region src/components/toast/anatomy/root.tsx
3829
4097
  function Root$2(props) {
3830
- const group = use(GroupContext);
4098
+ const group = use(ToastGroupContext);
4099
+ const locale = use(LocaleProviderRootContext);
3831
4100
  const { element, children, toast: toastProps, ...rest } = props;
3832
- const toast = connect$21(useMachine(machine$21, {
4101
+ const toast = connect$23(useMachine(machine$23, {
3833
4102
  ...toastProps,
4103
+ dir: locale.dir,
3834
4104
  parent: group
3835
4105
  }), normalizeProps);
3836
4106
  const attributes = mergeProps(toast.getRootProps(), rest);
3837
- return /* @__PURE__ */ jsx(RootContext$7.Provider, {
4107
+ return /* @__PURE__ */ jsx(ToastRootContext$1.Provider, {
3838
4108
  value: toast,
3839
4109
  children: element ? element(attributes) : /* @__PURE__ */ jsxs("div", {
3840
4110
  ...attributes,
@@ -3849,7 +4119,7 @@ function Root$2(props) {
3849
4119
  //#endregion
3850
4120
  //#region src/components/toast/anatomy/title.tsx
3851
4121
  function Title(props) {
3852
- const toast = use(RootContext$7);
4122
+ const toast = use(ToastRootContext$1);
3853
4123
  const { element, children, ...rest } = props;
3854
4124
  const attributes = mergeProps(toast.getTitleProps(), rest);
3855
4125
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3860,7 +4130,7 @@ function Title(props) {
3860
4130
  //#endregion
3861
4131
  //#region src/components/toast/modules/anatomy.ts
3862
4132
  const Toast = Object.assign(Root$2, {
3863
- Context: RootContext$6,
4133
+ Context: ToastRootContext,
3864
4134
  Group,
3865
4135
  Message,
3866
4136
  Title,
@@ -3870,11 +4140,11 @@ const Toast = Object.assign(Root$2, {
3870
4140
  });
3871
4141
  //#endregion
3872
4142
  //#region src/components/toggle-group/modules/root-context.ts
3873
- const RootContext$5 = createContext$1();
4143
+ const ToggleGroupRootContext$1 = createContext$1();
3874
4144
  //#endregion
3875
4145
  //#region src/components/toggle-group/anatomy/item.tsx
3876
4146
  function Item$1(props) {
3877
- const toggleGroup = use(RootContext$5);
4147
+ const toggleGroup = use(ToggleGroupRootContext$1);
3878
4148
  const [itemProps, componentProps] = splitItemProps$10(props);
3879
4149
  const { element, children, ...rest } = componentProps;
3880
4150
  const attributes = mergeProps(toggleGroup.getItemProps(itemProps), rest);
@@ -3885,8 +4155,8 @@ function Item$1(props) {
3885
4155
  }
3886
4156
  //#endregion
3887
4157
  //#region src/components/toggle-group/anatomy/root-context.tsx
3888
- function RootContext$4(props) {
3889
- const toggleGroup = use(RootContext$5);
4158
+ function ToggleGroupRootContext(props) {
4159
+ const toggleGroup = use(ToggleGroupRootContext$1);
3890
4160
  const { children } = props;
3891
4161
  return children(toggleGroup);
3892
4162
  }
@@ -3895,7 +4165,7 @@ function RootContext$4(props) {
3895
4165
  function ToggleGroupRootProvider(props) {
3896
4166
  const { element, children, value: toggleGroup, ...rest } = props;
3897
4167
  const attributes = mergeProps(toggleGroup.getRootProps(), rest);
3898
- return /* @__PURE__ */ jsx(RootContext$5.Provider, {
4168
+ return /* @__PURE__ */ jsx(ToggleGroupRootContext$1.Provider, {
3899
4169
  value: toggleGroup,
3900
4170
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3901
4171
  ...attributes,
@@ -3906,19 +4176,21 @@ function ToggleGroupRootProvider(props) {
3906
4176
  //#endregion
3907
4177
  //#region src/components/toggle-group/modules/provider.ts
3908
4178
  function useToggleGroup(props = {}) {
3909
- return connect$22(useMachine(machine$22, {
4179
+ const locale = use(LocaleProviderRootContext);
4180
+ return connect$24(useMachine(machine$24, {
3910
4181
  id: useId(),
4182
+ dir: locale.dir,
3911
4183
  ...props
3912
4184
  }), normalizeProps);
3913
4185
  }
3914
4186
  //#endregion
3915
4187
  //#region src/components/toggle-group/anatomy/root.tsx
3916
4188
  function ToggleGroupRoot(props) {
3917
- const [toggleGroupProps, componentProps] = splitProps$21(props);
4189
+ const [toggleGroupProps, componentProps] = splitProps$23(props);
3918
4190
  const { element, children, ...rest } = componentProps;
3919
4191
  const toggleGroup = useToggleGroup(toggleGroupProps);
3920
4192
  const attributes = mergeProps(toggleGroup.getRootProps(), rest);
3921
- return /* @__PURE__ */ jsx(RootContext$5.Provider, {
4193
+ return /* @__PURE__ */ jsx(ToggleGroupRootContext$1.Provider, {
3922
4194
  value: toggleGroup,
3923
4195
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3924
4196
  ...attributes,
@@ -3930,16 +4202,16 @@ function ToggleGroupRoot(props) {
3930
4202
  //#region src/components/toggle-group/modules/anatomy.ts
3931
4203
  const ToggleGroup = Object.assign(ToggleGroupRoot, {
3932
4204
  Provider: ToggleGroupRootProvider,
3933
- Context: RootContext$4,
4205
+ Context: ToggleGroupRootContext,
3934
4206
  Item: Item$1
3935
4207
  });
3936
4208
  //#endregion
3937
4209
  //#region src/components/tooltip/modules/root-context.ts
3938
- const RootContext$3 = createContext$1();
4210
+ const TooltipRootContext$1 = createContext$1();
3939
4211
  //#endregion
3940
4212
  //#region src/components/tooltip/anatomy/arrow-tip.tsx
3941
4213
  function ArrowTip(props) {
3942
- const tooltip = use(RootContext$3);
4214
+ const tooltip = use(TooltipRootContext$1);
3943
4215
  const { element, children, ...rest } = props;
3944
4216
  const attributes = mergeProps(tooltip.getArrowTipProps(), rest);
3945
4217
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3950,7 +4222,7 @@ function ArrowTip(props) {
3950
4222
  //#endregion
3951
4223
  //#region src/components/tooltip/anatomy/arrow.tsx
3952
4224
  function Arrow(props) {
3953
- const tooltip = use(RootContext$3);
4225
+ const tooltip = use(TooltipRootContext$1);
3954
4226
  const { element, children, ...rest } = props;
3955
4227
  const attributes = mergeProps(tooltip.getArrowProps(), rest);
3956
4228
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3961,7 +4233,7 @@ function Arrow(props) {
3961
4233
  //#endregion
3962
4234
  //#region src/components/tooltip/anatomy/content.tsx
3963
4235
  function Content(props) {
3964
- const tooltip = use(RootContext$3);
4236
+ const tooltip = use(TooltipRootContext$1);
3965
4237
  const { element, children, ...rest } = props;
3966
4238
  const attributes = mergeProps(tooltip.getContentProps(), rest);
3967
4239
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3972,7 +4244,7 @@ function Content(props) {
3972
4244
  //#endregion
3973
4245
  //#region src/components/tooltip/anatomy/positioner.tsx
3974
4246
  function Positioner(props) {
3975
- const tooltip = use(RootContext$3);
4247
+ const tooltip = use(TooltipRootContext$1);
3976
4248
  const { element, children, ...rest } = props;
3977
4249
  const attributes = mergeProps(tooltip.getPositionerProps(), rest);
3978
4250
  return /* @__PURE__ */ jsx(Portal$1, { children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3982,8 +4254,8 @@ function Positioner(props) {
3982
4254
  }
3983
4255
  //#endregion
3984
4256
  //#region src/components/tooltip/anatomy/root-context.tsx
3985
- function RootContext$2(props) {
3986
- const tooltip = use(RootContext$3);
4257
+ function TooltipRootContext(props) {
4258
+ const tooltip = use(TooltipRootContext$1);
3987
4259
  const { children } = props;
3988
4260
  return children(tooltip);
3989
4261
  }
@@ -3991,7 +4263,7 @@ function RootContext$2(props) {
3991
4263
  //#region src/components/tooltip/anatomy/root-provider.tsx
3992
4264
  function RootProvider$1(props) {
3993
4265
  const { children, value: tooltip } = props;
3994
- return /* @__PURE__ */ jsx(RootContext$3.Provider, {
4266
+ return /* @__PURE__ */ jsx(TooltipRootContext$1.Provider, {
3995
4267
  value: tooltip,
3996
4268
  children
3997
4269
  });
@@ -3999,18 +4271,20 @@ function RootProvider$1(props) {
3999
4271
  //#endregion
4000
4272
  //#region src/components/tooltip/modules/provider.ts
4001
4273
  function useTooltip(props = {}) {
4002
- return connect$23(useMachine(machine$23, {
4274
+ const locale = use(LocaleProviderRootContext);
4275
+ return connect$25(useMachine(machine$25, {
4003
4276
  id: useId(),
4277
+ dir: locale.dir,
4004
4278
  ...props
4005
4279
  }), normalizeProps);
4006
4280
  }
4007
4281
  //#endregion
4008
4282
  //#region src/components/tooltip/anatomy/root.tsx
4009
4283
  function Root$1(props) {
4010
- const [tooltipProps, componentProps] = splitProps$22(props);
4284
+ const [tooltipProps, componentProps] = splitProps$24(props);
4011
4285
  const { children } = componentProps;
4012
4286
  const tooltip = useTooltip(tooltipProps);
4013
- return /* @__PURE__ */ jsx(RootContext$3.Provider, {
4287
+ return /* @__PURE__ */ jsx(TooltipRootContext$1.Provider, {
4014
4288
  value: tooltip,
4015
4289
  children
4016
4290
  });
@@ -4018,7 +4292,7 @@ function Root$1(props) {
4018
4292
  //#endregion
4019
4293
  //#region src/components/tooltip/anatomy/trigger.tsx
4020
4294
  function Trigger(props) {
4021
- const tooltip = use(RootContext$3);
4295
+ const tooltip = use(TooltipRootContext$1);
4022
4296
  const { element, children, ...rest } = props;
4023
4297
  const attributes = mergeProps(tooltip.getTriggerProps(), rest);
4024
4298
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -4030,7 +4304,7 @@ function Trigger(props) {
4030
4304
  //#region src/components/tooltip/modules/anatomy.ts
4031
4305
  const Tooltip = Object.assign(Root$1, {
4032
4306
  Provider: RootProvider$1,
4033
- Context: RootContext$2,
4307
+ Context: TooltipRootContext,
4034
4308
  Trigger,
4035
4309
  Positioner,
4036
4310
  Content,
@@ -4039,15 +4313,15 @@ const Tooltip = Object.assign(Root$1, {
4039
4313
  });
4040
4314
  //#endregion
4041
4315
  //#region src/components/tree-view/modules/node-context.ts
4042
- const NodeContext$1 = createContext$1();
4316
+ const TreeViewNodeContext$1 = createContext$1();
4043
4317
  //#endregion
4044
4318
  //#region src/components/tree-view/modules/root-context.ts
4045
- const RootContext$1 = createContext$1();
4319
+ const TreeViewRootContext$1 = createContext$1();
4046
4320
  //#endregion
4047
4321
  //#region src/components/tree-view/anatomy/branch-content.tsx
4048
4322
  function BranchContent(props) {
4049
- const treeView = use(RootContext$1);
4050
- const nodeProps = use(NodeContext$1);
4323
+ const treeView = use(TreeViewRootContext$1);
4324
+ const nodeProps = use(TreeViewNodeContext$1);
4051
4325
  const { element, children, ...rest } = props;
4052
4326
  const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), rest);
4053
4327
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4058,8 +4332,8 @@ function BranchContent(props) {
4058
4332
  //#endregion
4059
4333
  //#region src/components/tree-view/anatomy/branch-control.tsx
4060
4334
  function BranchControl(props) {
4061
- const treeView = use(RootContext$1);
4062
- const nodeProps = use(NodeContext$1);
4335
+ const treeView = use(TreeViewRootContext$1);
4336
+ const nodeProps = use(TreeViewNodeContext$1);
4063
4337
  const { element, children, ...rest } = props;
4064
4338
  const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), rest);
4065
4339
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4070,8 +4344,8 @@ function BranchControl(props) {
4070
4344
  //#endregion
4071
4345
  //#region src/components/tree-view/anatomy/branch-indent-guide.tsx
4072
4346
  function BranchIndentGuide(props) {
4073
- const treeView = use(RootContext$1);
4074
- const nodeProps = use(NodeContext$1);
4347
+ const treeView = use(TreeViewRootContext$1);
4348
+ const nodeProps = use(TreeViewNodeContext$1);
4075
4349
  const { element, children, ...rest } = props;
4076
4350
  const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), rest);
4077
4351
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4082,8 +4356,8 @@ function BranchIndentGuide(props) {
4082
4356
  //#endregion
4083
4357
  //#region src/components/tree-view/anatomy/branch-indicator.tsx
4084
4358
  function BranchIndicator(props) {
4085
- const treeView = use(RootContext$1);
4086
- const nodeProps = use(NodeContext$1);
4359
+ const treeView = use(TreeViewRootContext$1);
4360
+ const nodeProps = use(TreeViewNodeContext$1);
4087
4361
  const { element, children = /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" }), ...rest } = props;
4088
4362
  const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), rest);
4089
4363
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -4094,8 +4368,8 @@ function BranchIndicator(props) {
4094
4368
  //#endregion
4095
4369
  //#region src/components/tree-view/anatomy/branch-text.tsx
4096
4370
  function BranchText(props) {
4097
- const treeView = use(RootContext$1);
4098
- const nodeProps = use(NodeContext$1);
4371
+ const treeView = use(TreeViewRootContext$1);
4372
+ const nodeProps = use(TreeViewNodeContext$1);
4099
4373
  const { element, children, ...rest } = props;
4100
4374
  const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), rest);
4101
4375
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -4106,8 +4380,8 @@ function BranchText(props) {
4106
4380
  //#endregion
4107
4381
  //#region src/components/tree-view/anatomy/branch.tsx
4108
4382
  function Branch(props) {
4109
- const treeView = use(RootContext$1);
4110
- const nodeProps = use(NodeContext$1);
4383
+ const treeView = use(TreeViewRootContext$1);
4384
+ const nodeProps = use(TreeViewNodeContext$1);
4111
4385
  const { element, children, ...rest } = props;
4112
4386
  const attributes = mergeProps(treeView.getBranchProps(nodeProps), rest);
4113
4387
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4118,8 +4392,8 @@ function Branch(props) {
4118
4392
  //#endregion
4119
4393
  //#region src/components/tree-view/anatomy/item.tsx
4120
4394
  function Item(props) {
4121
- const treeView = use(RootContext$1);
4122
- const nodeProps = use(NodeContext$1);
4395
+ const treeView = use(TreeViewRootContext$1);
4396
+ const nodeProps = use(TreeViewNodeContext$1);
4123
4397
  const { element, children, ...rest } = props;
4124
4398
  const attributes = mergeProps(treeView.getItemProps(nodeProps), rest);
4125
4399
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4130,7 +4404,7 @@ function Item(props) {
4130
4404
  //#endregion
4131
4405
  //#region src/components/tree-view/anatomy/label.tsx
4132
4406
  function Label(props) {
4133
- const treeView = use(RootContext$1);
4407
+ const treeView = use(TreeViewRootContext$1);
4134
4408
  const { element, children, level = 3, ...rest } = props;
4135
4409
  const attributes = mergeProps(treeView.getLabelProps(), rest);
4136
4410
  const Tag = `h${level}`;
@@ -4141,8 +4415,8 @@ function Label(props) {
4141
4415
  }
4142
4416
  //#endregion
4143
4417
  //#region src/components/tree-view/anatomy/node-context.tsx
4144
- function NodeContext(props) {
4145
- const treeView = use(NodeContext$1);
4418
+ function TreeViewNodeContext(props) {
4419
+ const treeView = use(TreeViewNodeContext$1);
4146
4420
  const { children } = props;
4147
4421
  return children(treeView);
4148
4422
  }
@@ -4150,15 +4424,15 @@ function NodeContext(props) {
4150
4424
  //#region src/components/tree-view/anatomy/node-provider.tsx
4151
4425
  function NodeProvider(props) {
4152
4426
  const { children, value: nodeProps } = props;
4153
- return /* @__PURE__ */ jsx(NodeContext$1.Provider, {
4427
+ return /* @__PURE__ */ jsx(TreeViewNodeContext$1.Provider, {
4154
4428
  value: nodeProps,
4155
4429
  children
4156
4430
  });
4157
4431
  }
4158
4432
  //#endregion
4159
4433
  //#region src/components/tree-view/anatomy/root-context.tsx
4160
- function RootContext(props) {
4161
- const treeView = use(RootContext$1);
4434
+ function TreeViewRootContext(props) {
4435
+ const treeView = use(TreeViewRootContext$1);
4162
4436
  const { children } = props;
4163
4437
  return children(treeView);
4164
4438
  }
@@ -4167,7 +4441,7 @@ function RootContext(props) {
4167
4441
  function RootProvider(props) {
4168
4442
  const { element, children, value: treeView, ...rest } = props;
4169
4443
  const attributes = mergeProps(treeView.getRootProps(), rest);
4170
- return /* @__PURE__ */ jsx(RootContext$1.Provider, {
4444
+ return /* @__PURE__ */ jsx(TreeViewRootContext$1.Provider, {
4171
4445
  value: treeView,
4172
4446
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
4173
4447
  ...attributes,
@@ -4178,19 +4452,21 @@ function RootProvider(props) {
4178
4452
  //#endregion
4179
4453
  //#region src/components/tree-view/modules/provider.ts
4180
4454
  function useTreeView(props = {}) {
4181
- return connect$24(useMachine(machine$24, {
4455
+ const locale = use(LocaleProviderRootContext);
4456
+ return connect$26(useMachine(machine$26, {
4182
4457
  id: useId(),
4458
+ dir: locale.dir,
4183
4459
  ...props
4184
4460
  }), normalizeProps);
4185
4461
  }
4186
4462
  //#endregion
4187
4463
  //#region src/components/tree-view/anatomy/root.tsx
4188
4464
  function Root(props) {
4189
- const [treeViewProps, componentProps] = splitProps$23(props);
4465
+ const [treeViewProps, componentProps] = splitProps$25(props);
4190
4466
  const { element, children, ...rest } = componentProps;
4191
4467
  const treeView = useTreeView(treeViewProps);
4192
4468
  const attributes = mergeProps(treeView.getRootProps(), rest);
4193
- return /* @__PURE__ */ jsx(RootContext$1.Provider, {
4469
+ return /* @__PURE__ */ jsx(TreeViewRootContext$1.Provider, {
4194
4470
  value: treeView,
4195
4471
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
4196
4472
  ...attributes,
@@ -4201,7 +4477,7 @@ function Root(props) {
4201
4477
  //#endregion
4202
4478
  //#region src/components/tree-view/anatomy/tree.tsx
4203
4479
  function Tree(props) {
4204
- const treeView = use(RootContext$1);
4480
+ const treeView = use(TreeViewRootContext$1);
4205
4481
  const { element, children, ...rest } = props;
4206
4482
  const attributes = mergeProps(treeView.getTreeProps(), rest);
4207
4483
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4213,11 +4489,11 @@ function Tree(props) {
4213
4489
  //#region src/components/tree-view/modules/anatomy.ts
4214
4490
  const TreeView = Object.assign(Root, {
4215
4491
  Provider: RootProvider,
4216
- Context: RootContext,
4492
+ Context: TreeViewRootContext,
4217
4493
  Tree,
4218
4494
  Label,
4219
4495
  NodeProvider,
4220
- NodeContext,
4496
+ NodeContext: TreeViewNodeContext,
4221
4497
  Branch,
4222
4498
  BranchControl,
4223
4499
  BranchText,
@@ -4232,4 +4508,4 @@ function useListCollection(options) {
4232
4508
  return new ListCollection(options);
4233
4509
  }
4234
4510
  //#endregion
4235
- export { Accordion, AppBar, Avatar, Carousel, Collapsible, Combobox, DatePicker, Dialog, FileUpload, FloatingPanel, Listbox, Menu, Navigation, Pagination, Popover, Portal, Progress, 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, useMenu, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSteps, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
4511
+ 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 };