@skeletonlabs/skeleton-react 5.0.0-next.0 → 5.0.0-next.10

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 +467 -354
  2. package/dist/index.mjs +824 -557
  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,7 +1057,7 @@ 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);
1060
+ const datePicker = use(DatePickerRootContext$1);
951
1061
  const rangeText = Array.from(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);
@@ -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,16 +2299,15 @@ 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) {
2162
2306
  const { element, children, ...rest } = props;
2163
- const navigation = use(RootContext$28);
2164
2307
  const attributes = mergeProps({
2165
2308
  "data-scope": "navigation",
2166
2309
  "data-part": "content",
2167
- "data-layout": navigation.layout
2310
+ "data-layout": use(NavigationRootContext).layout
2168
2311
  }, rest);
2169
2312
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2170
2313
  ...attributes,
@@ -2175,11 +2318,10 @@ function NavigationContent(props) {
2175
2318
  //#region src/components/navigation/anatomy/footer.tsx
2176
2319
  function NavigationFooter(props) {
2177
2320
  const { element, children, ...rest } = props;
2178
- const navigation = use(RootContext$28);
2179
2321
  const attributes = mergeProps({
2180
2322
  "data-scope": "navigation",
2181
2323
  "data-part": "footer",
2182
- "data-layout": navigation.layout
2324
+ "data-layout": use(NavigationRootContext).layout
2183
2325
  }, rest);
2184
2326
  return element ? element(attributes) : /* @__PURE__ */ jsx("footer", {
2185
2327
  ...attributes,
@@ -2190,11 +2332,10 @@ function NavigationFooter(props) {
2190
2332
  //#region src/components/navigation/anatomy/group.tsx
2191
2333
  function NavigationGroup(props) {
2192
2334
  const { element, children, ...rest } = props;
2193
- const navigation = use(RootContext$28);
2194
2335
  const attributes = mergeProps({
2195
2336
  "data-scope": "navigation",
2196
2337
  "data-part": "group",
2197
- "data-layout": navigation.layout
2338
+ "data-layout": use(NavigationRootContext).layout
2198
2339
  }, rest);
2199
2340
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2200
2341
  ...attributes,
@@ -2205,11 +2346,10 @@ function NavigationGroup(props) {
2205
2346
  //#region src/components/navigation/anatomy/header.tsx
2206
2347
  function NavigationHeader(props) {
2207
2348
  const { element, children, ...rest } = props;
2208
- const navigation = use(RootContext$28);
2209
2349
  const attributes = mergeProps({
2210
2350
  "data-scope": "navigation",
2211
2351
  "data-part": "header",
2212
- "data-layout": navigation.layout
2352
+ "data-layout": use(NavigationRootContext).layout
2213
2353
  }, rest);
2214
2354
  return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
2215
2355
  ...attributes,
@@ -2220,11 +2360,10 @@ function NavigationHeader(props) {
2220
2360
  //#region src/components/navigation/anatomy/label.tsx
2221
2361
  function NavigationLabel(props) {
2222
2362
  const { element, children, ...rest } = props;
2223
- const navigation = use(RootContext$28);
2224
2363
  const attributes = mergeProps({
2225
2364
  "data-scope": "navigation",
2226
2365
  "data-part": "label",
2227
- "data-layout": navigation.layout
2366
+ "data-layout": use(NavigationRootContext).layout
2228
2367
  }, rest);
2229
2368
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2230
2369
  ...attributes,
@@ -2235,11 +2374,10 @@ function NavigationLabel(props) {
2235
2374
  //#region src/components/navigation/anatomy/menu.tsx
2236
2375
  function NavigationMenu(props) {
2237
2376
  const { element, children, ...rest } = props;
2238
- const navigation = use(RootContext$28);
2239
2377
  const attributes = mergeProps({
2240
2378
  "data-scope": "navigation",
2241
2379
  "data-part": "menu",
2242
- "data-layout": navigation.layout
2380
+ "data-layout": use(NavigationRootContext).layout
2243
2381
  }, rest);
2244
2382
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2245
2383
  ...attributes,
@@ -2250,11 +2388,10 @@ function NavigationMenu(props) {
2250
2388
  //#region src/components/navigation/anatomy/trigger.tsx
2251
2389
  function NavigationTrigger(props) {
2252
2390
  const { element, children, ...rest } = props;
2253
- const navigation = use(RootContext$28);
2254
2391
  const attributes = mergeProps({
2255
2392
  "data-scope": "navigation",
2256
2393
  "data-part": "trigger",
2257
- "data-layout": navigation.layout,
2394
+ "data-layout": use(NavigationRootContext).layout,
2258
2395
  type: "button"
2259
2396
  }, rest);
2260
2397
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2266,11 +2403,10 @@ function NavigationTrigger(props) {
2266
2403
  //#region src/components/navigation/anatomy/trigger-anchor.tsx
2267
2404
  function NavigationTriggerAnchor(props) {
2268
2405
  const { element, children, ...rest } = props;
2269
- const navigation = use(RootContext$28);
2270
2406
  const attributes = mergeProps({
2271
2407
  "data-scope": "navigation",
2272
2408
  "data-part": "trigger-anchor",
2273
- "data-layout": navigation.layout
2409
+ "data-layout": use(NavigationRootContext).layout
2274
2410
  }, rest);
2275
2411
  return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
2276
2412
  ...attributes,
@@ -2281,11 +2417,10 @@ function NavigationTriggerAnchor(props) {
2281
2417
  //#region src/components/navigation/anatomy/trigger-text.tsx
2282
2418
  function NavigationTriggerText(props) {
2283
2419
  const { element, children, ...rest } = props;
2284
- const navigation = use(RootContext$28);
2285
2420
  const attributes = mergeProps({
2286
2421
  "data-scope": "navigation",
2287
2422
  "data-part": "trigger-text",
2288
- "data-layout": navigation.layout
2423
+ "data-layout": use(NavigationRootContext).layout
2289
2424
  }, rest);
2290
2425
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2291
2426
  ...attributes,
@@ -2297,11 +2432,12 @@ function NavigationTriggerText(props) {
2297
2432
  function NavigationRoot(props) {
2298
2433
  const { layout = "bar", element, children, ...rest } = props;
2299
2434
  const attributes = mergeProps({
2435
+ dir: use(LocaleProviderRootContext).dir,
2300
2436
  "data-scope": "navigation",
2301
2437
  "data-part": "root",
2302
2438
  "data-layout": layout
2303
2439
  }, rest);
2304
- return /* @__PURE__ */ jsx(RootContext$28.Provider, {
2440
+ return /* @__PURE__ */ jsx(NavigationRootContext.Provider, {
2305
2441
  value: { layout },
2306
2442
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2307
2443
  ...attributes,
@@ -2324,11 +2460,11 @@ const Navigation = Object.assign(NavigationRoot, {
2324
2460
  });
2325
2461
  //#endregion
2326
2462
  //#region src/components/pagination/modules/root-context.ts
2327
- const RootContext$27 = createContext$1();
2463
+ const PaginationRootContext$1 = createContext$1();
2328
2464
  //#endregion
2329
2465
  //#region src/components/pagination/anatomy/ellipsis.tsx
2330
2466
  function Ellipsis(props) {
2331
- const pagination = use(RootContext$27);
2467
+ const pagination = use(PaginationRootContext$1);
2332
2468
  const [ellipsisProps, componentProps] = splitEllipsisProps(props);
2333
2469
  const { element, children, ...rest } = componentProps;
2334
2470
  const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), rest);
@@ -2340,7 +2476,7 @@ function Ellipsis(props) {
2340
2476
  //#endregion
2341
2477
  //#region src/components/pagination/anatomy/first-trigger.tsx
2342
2478
  function FirstTrigger(props) {
2343
- const pagination = use(RootContext$27);
2479
+ const pagination = use(PaginationRootContext$1);
2344
2480
  const { element, children, ...rest } = props;
2345
2481
  const attributes = mergeProps({ onClick: pagination.goToFirstPage }, rest);
2346
2482
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2351,7 +2487,7 @@ function FirstTrigger(props) {
2351
2487
  //#endregion
2352
2488
  //#region src/components/pagination/anatomy/item.tsx
2353
2489
  function Item$6(props) {
2354
- const pagination = use(RootContext$27);
2490
+ const pagination = use(PaginationRootContext$1);
2355
2491
  const [itemProps, componentProps] = splitItemProps$6(props);
2356
2492
  const { element, children, ...rest } = componentProps;
2357
2493
  const attributes = mergeProps(pagination.getItemProps(itemProps), rest);
@@ -2363,7 +2499,7 @@ function Item$6(props) {
2363
2499
  //#endregion
2364
2500
  //#region src/components/pagination/anatomy/last-trigger.tsx
2365
2501
  function LastTrigger(props) {
2366
- const pagination = use(RootContext$27);
2502
+ const pagination = use(PaginationRootContext$1);
2367
2503
  const { element, children, ...rest } = props;
2368
2504
  const attributes = mergeProps({ onClick: pagination.goToLastPage }, rest);
2369
2505
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2374,7 +2510,7 @@ function LastTrigger(props) {
2374
2510
  //#endregion
2375
2511
  //#region src/components/pagination/anatomy/next-trigger.tsx
2376
2512
  function NextTrigger$1(props) {
2377
- const pagination = use(RootContext$27);
2513
+ const pagination = use(PaginationRootContext$1);
2378
2514
  const { element, children, ...rest } = props;
2379
2515
  const attributes = mergeProps(pagination.getNextTriggerProps(), rest);
2380
2516
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2385,7 +2521,7 @@ function NextTrigger$1(props) {
2385
2521
  //#endregion
2386
2522
  //#region src/components/pagination/anatomy/prev-trigger.tsx
2387
2523
  function PrevTrigger$1(props) {
2388
- const pagination = use(RootContext$27);
2524
+ const pagination = use(PaginationRootContext$1);
2389
2525
  const { element, children, ...rest } = props;
2390
2526
  const attributes = mergeProps(pagination.getPrevTriggerProps(), rest);
2391
2527
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2395,8 +2531,8 @@ function PrevTrigger$1(props) {
2395
2531
  }
2396
2532
  //#endregion
2397
2533
  //#region src/components/pagination/anatomy/root-context.tsx
2398
- function RootContext$26(props) {
2399
- const pagination = use(RootContext$27);
2534
+ function PaginationRootContext(props) {
2535
+ const pagination = use(PaginationRootContext$1);
2400
2536
  const { children } = props;
2401
2537
  return children(pagination);
2402
2538
  }
@@ -2405,7 +2541,7 @@ function RootContext$26(props) {
2405
2541
  function PaginationRootProvider(props) {
2406
2542
  const { element, children, value: pagination, ...rest } = props;
2407
2543
  const attributes = mergeProps(pagination.getRootProps(), rest);
2408
- return /* @__PURE__ */ jsx(RootContext$27.Provider, {
2544
+ return /* @__PURE__ */ jsx(PaginationRootContext$1.Provider, {
2409
2545
  value: pagination,
2410
2546
  children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
2411
2547
  ...attributes,
@@ -2416,19 +2552,21 @@ function PaginationRootProvider(props) {
2416
2552
  //#endregion
2417
2553
  //#region src/components/pagination/modules/provider.ts
2418
2554
  function usePagination(props = {}) {
2419
- return connect$11(useMachine(machine$11, {
2555
+ const locale = use(LocaleProviderRootContext);
2556
+ return connect$12(useMachine(machine$12, {
2420
2557
  id: useId(),
2558
+ dir: locale.dir,
2421
2559
  ...props
2422
2560
  }), normalizeProps);
2423
2561
  }
2424
2562
  //#endregion
2425
2563
  //#region src/components/pagination/anatomy/root.tsx
2426
2564
  function PaginationRoot(props) {
2427
- const [paginationProps, componentProps] = splitProps$11(props);
2565
+ const [paginationProps, componentProps] = splitProps$12(props);
2428
2566
  const { element, children, ...rest } = componentProps;
2429
2567
  const pagination = usePagination(paginationProps);
2430
2568
  const attributes = mergeProps(pagination.getRootProps(), rest);
2431
- return /* @__PURE__ */ jsx(RootContext$27.Provider, {
2569
+ return /* @__PURE__ */ jsx(PaginationRootContext$1.Provider, {
2432
2570
  value: pagination,
2433
2571
  children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
2434
2572
  ...attributes,
@@ -2440,7 +2578,7 @@ function PaginationRoot(props) {
2440
2578
  //#region src/components/pagination/modules/anatomy.ts
2441
2579
  const Pagination = Object.assign(PaginationRoot, {
2442
2580
  Provider: PaginationRootProvider,
2443
- Context: RootContext$26,
2581
+ Context: PaginationRootContext,
2444
2582
  FirstTrigger,
2445
2583
  PrevTrigger: PrevTrigger$1,
2446
2584
  Item: Item$6,
@@ -2450,11 +2588,11 @@ const Pagination = Object.assign(PaginationRoot, {
2450
2588
  });
2451
2589
  //#endregion
2452
2590
  //#region src/components/popover/modules/root-context.ts
2453
- const RootContext$25 = createContext$1();
2591
+ const PopoverRootContext$1 = createContext$1();
2454
2592
  //#endregion
2455
2593
  //#region src/components/popover/anatomy/anchor.tsx
2456
2594
  function Anchor(props) {
2457
- const popover = use(RootContext$25);
2595
+ const popover = use(PopoverRootContext$1);
2458
2596
  const { element, children, ...rest } = props;
2459
2597
  const attributes = mergeProps(popover.getAnchorProps(), rest);
2460
2598
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2465,7 +2603,7 @@ function Anchor(props) {
2465
2603
  //#endregion
2466
2604
  //#region src/components/popover/anatomy/arrow-tip.tsx
2467
2605
  function ArrowTip$1(props) {
2468
- const popover = use(RootContext$25);
2606
+ const popover = use(PopoverRootContext$1);
2469
2607
  const { element, children, ...rest } = props;
2470
2608
  const attributes = mergeProps(popover.getArrowTipProps(), rest);
2471
2609
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2476,7 +2614,7 @@ function ArrowTip$1(props) {
2476
2614
  //#endregion
2477
2615
  //#region src/components/popover/anatomy/arrow.tsx
2478
2616
  function Arrow$1(props) {
2479
- const popover = use(RootContext$25);
2617
+ const popover = use(PopoverRootContext$1);
2480
2618
  const { element, children, ...rest } = props;
2481
2619
  const attributes = mergeProps(popover.getArrowProps(), rest);
2482
2620
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2487,7 +2625,7 @@ function Arrow$1(props) {
2487
2625
  //#endregion
2488
2626
  //#region src/components/popover/anatomy/close-trigger.tsx
2489
2627
  function CloseTrigger$1(props) {
2490
- const popover = use(RootContext$25);
2628
+ const popover = use(PopoverRootContext$1);
2491
2629
  const { element, children, ...rest } = props;
2492
2630
  const attributes = mergeProps(popover.getCloseTriggerProps(), rest);
2493
2631
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2498,7 +2636,7 @@ function CloseTrigger$1(props) {
2498
2636
  //#endregion
2499
2637
  //#region src/components/popover/anatomy/content.tsx
2500
2638
  function Content$3(props) {
2501
- const popover = use(RootContext$25);
2639
+ const popover = use(PopoverRootContext$1);
2502
2640
  const { element, children, ...rest } = props;
2503
2641
  const attributes = mergeProps(popover.getContentProps(), rest);
2504
2642
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2509,7 +2647,7 @@ function Content$3(props) {
2509
2647
  //#endregion
2510
2648
  //#region src/components/popover/anatomy/description.tsx
2511
2649
  function Description$1(props) {
2512
- const popover = use(RootContext$25);
2650
+ const popover = use(PopoverRootContext$1);
2513
2651
  const { element, children, ...rest } = props;
2514
2652
  const attributes = mergeProps(popover.getDescriptionProps(), rest);
2515
2653
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2520,7 +2658,7 @@ function Description$1(props) {
2520
2658
  //#endregion
2521
2659
  //#region src/components/popover/anatomy/positioner.tsx
2522
2660
  function Positioner$1(props) {
2523
- const popover = use(RootContext$25);
2661
+ const popover = use(PopoverRootContext$1);
2524
2662
  const { element, children, ...rest } = props;
2525
2663
  const attributes = mergeProps(popover.getPositionerProps(), rest);
2526
2664
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2530,16 +2668,16 @@ function Positioner$1(props) {
2530
2668
  }
2531
2669
  //#endregion
2532
2670
  //#region src/components/popover/anatomy/root-context.tsx
2533
- function RootContext$24(props) {
2534
- const popover = use(RootContext$25);
2671
+ function PopoverRootContext(props) {
2672
+ const popover = use(PopoverRootContext$1);
2535
2673
  const { children } = props;
2536
2674
  return children(popover);
2537
2675
  }
2538
2676
  //#endregion
2539
2677
  //#region src/components/popover/anatomy/root-provider.tsx
2540
- function RootProvider$9(props) {
2678
+ function RootProvider$10(props) {
2541
2679
  const { children, value: popover } = props;
2542
- return /* @__PURE__ */ jsx(RootContext$25.Provider, {
2680
+ return /* @__PURE__ */ jsx(PopoverRootContext$1.Provider, {
2543
2681
  value: popover,
2544
2682
  children
2545
2683
  });
@@ -2547,18 +2685,20 @@ function RootProvider$9(props) {
2547
2685
  //#endregion
2548
2686
  //#region src/components/popover/modules/provider.ts
2549
2687
  function usePopover(props = {}) {
2550
- return connect$12(useMachine(machine$12, {
2688
+ const locale = use(LocaleProviderRootContext);
2689
+ return connect$13(useMachine(machine$13, {
2551
2690
  id: useId(),
2691
+ dir: locale.dir,
2552
2692
  ...props
2553
2693
  }), normalizeProps);
2554
2694
  }
2555
2695
  //#endregion
2556
2696
  //#region src/components/popover/anatomy/root.tsx
2557
- function Root$10(props) {
2558
- const [popoverProps, componentProps] = splitProps$12(props);
2697
+ function Root$11(props) {
2698
+ const [popoverProps, componentProps] = splitProps$13(props);
2559
2699
  const { children } = componentProps;
2560
2700
  const popover = usePopover(popoverProps);
2561
- return /* @__PURE__ */ jsx(RootContext$25.Provider, {
2701
+ return /* @__PURE__ */ jsx(PopoverRootContext$1.Provider, {
2562
2702
  value: popover,
2563
2703
  children
2564
2704
  });
@@ -2566,7 +2706,7 @@ function Root$10(props) {
2566
2706
  //#endregion
2567
2707
  //#region src/components/popover/anatomy/title.tsx
2568
2708
  function Title$1(props) {
2569
- const popover = use(RootContext$25);
2709
+ const popover = use(PopoverRootContext$1);
2570
2710
  const { element, children, ...rest } = props;
2571
2711
  const attributes = mergeProps(popover.getTitleProps(), rest);
2572
2712
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2577,7 +2717,7 @@ function Title$1(props) {
2577
2717
  //#endregion
2578
2718
  //#region src/components/popover/anatomy/trigger.tsx
2579
2719
  function Trigger$3(props) {
2580
- const popover = use(RootContext$25);
2720
+ const popover = use(PopoverRootContext$1);
2581
2721
  const { element, children, ...rest } = props;
2582
2722
  const attributes = mergeProps(popover.getTriggerProps(), rest);
2583
2723
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -2587,9 +2727,9 @@ function Trigger$3(props) {
2587
2727
  }
2588
2728
  //#endregion
2589
2729
  //#region src/components/popover/modules/anatomy.ts
2590
- const Popover = Object.assign(Root$10, {
2591
- Provider: RootProvider$9,
2592
- Context: RootContext$24,
2730
+ const Popover = Object.assign(Root$11, {
2731
+ Provider: RootProvider$10,
2732
+ Context: PopoverRootContext,
2593
2733
  Anchor,
2594
2734
  Trigger: Trigger$3,
2595
2735
  Positioner: Positioner$1,
@@ -2602,21 +2742,21 @@ const Popover = Object.assign(Root$10, {
2602
2742
  });
2603
2743
  //#endregion
2604
2744
  //#region src/components/portal/anatomy/root.tsx
2605
- function Root$9(props) {
2745
+ function Root$10(props) {
2606
2746
  const { children, disabled = false, target = typeof window === "undefined" ? void 0 : document.body } = props;
2607
2747
  if (disabled || !target) return /* @__PURE__ */ jsx(Fragment, { children });
2608
2748
  return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (child) => createPortal(child, target)) });
2609
2749
  }
2610
2750
  //#endregion
2611
2751
  //#region src/components/portal/modules/anatomy.ts
2612
- const Portal = Root$9;
2752
+ const Portal = Root$10;
2613
2753
  //#endregion
2614
2754
  //#region src/components/progress/modules/root-context.ts
2615
- const RootContext$23 = createContext$1();
2755
+ const ProgressRootContext$1 = createContext$1();
2616
2756
  //#endregion
2617
2757
  //#region src/components/progress/anatomy/circle-range.tsx
2618
2758
  function CircleRange(props) {
2619
- const progress = use(RootContext$23);
2759
+ const progress = use(ProgressRootContext$1);
2620
2760
  const { element, ...rest } = props;
2621
2761
  const attributes = mergeProps(progress.getCircleRangeProps(), { strokeLinecap: "round" }, rest);
2622
2762
  return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
@@ -2624,7 +2764,7 @@ function CircleRange(props) {
2624
2764
  //#endregion
2625
2765
  //#region src/components/progress/anatomy/circle-track.tsx
2626
2766
  function CircleTrack(props) {
2627
- const progress = use(RootContext$23);
2767
+ const progress = use(ProgressRootContext$1);
2628
2768
  const { element, ...rest } = props;
2629
2769
  const attributes = mergeProps(progress.getCircleTrackProps(), rest);
2630
2770
  return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
@@ -2632,7 +2772,7 @@ function CircleTrack(props) {
2632
2772
  //#endregion
2633
2773
  //#region src/components/progress/anatomy/circle.tsx
2634
2774
  function Circle(props) {
2635
- const progress = use(RootContext$23);
2775
+ const progress = use(ProgressRootContext$1);
2636
2776
  const { element, children, ...rest } = props;
2637
2777
  const attributes = mergeProps(progress.getCircleProps(), rest);
2638
2778
  return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
@@ -2643,7 +2783,7 @@ function Circle(props) {
2643
2783
  //#endregion
2644
2784
  //#region src/components/progress/anatomy/label.tsx
2645
2785
  function Label$6(props) {
2646
- const progress = use(RootContext$23);
2786
+ const progress = use(ProgressRootContext$1);
2647
2787
  const { element, children, ...rest } = props;
2648
2788
  const attributes = mergeProps(progress.getLabelProps(), rest);
2649
2789
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2654,24 +2794,24 @@ function Label$6(props) {
2654
2794
  //#endregion
2655
2795
  //#region src/components/progress/anatomy/range.tsx
2656
2796
  function Range$1(props) {
2657
- const progress = use(RootContext$23);
2797
+ const progress = use(ProgressRootContext$1);
2658
2798
  const { element, ...rest } = props;
2659
2799
  const attributes = mergeProps(progress.getRangeProps(), rest);
2660
2800
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
2661
2801
  }
2662
2802
  //#endregion
2663
2803
  //#region src/components/progress/anatomy/root-context.tsx
2664
- function RootContext$22(props) {
2665
- const progress = use(RootContext$23);
2804
+ function ProgressRootContext(props) {
2805
+ const progress = use(ProgressRootContext$1);
2666
2806
  const { children } = props;
2667
2807
  return children(progress);
2668
2808
  }
2669
2809
  //#endregion
2670
2810
  //#region src/components/progress/anatomy/root-provider.tsx
2671
- function RootProvider$8(props) {
2811
+ function RootProvider$9(props) {
2672
2812
  const { element, children, value: progress, ...rest } = props;
2673
2813
  const attributes = mergeProps(progress.getRootProps(), rest);
2674
- return /* @__PURE__ */ jsx(RootContext$23.Provider, {
2814
+ return /* @__PURE__ */ jsx(ProgressRootContext$1.Provider, {
2675
2815
  value: progress,
2676
2816
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2677
2817
  ...attributes,
@@ -2682,19 +2822,21 @@ function RootProvider$8(props) {
2682
2822
  //#endregion
2683
2823
  //#region src/components/progress/modules/provider.ts
2684
2824
  function useProgress(props = {}) {
2685
- return connect$13(useMachine(machine$13, {
2825
+ const locale = use(LocaleProviderRootContext);
2826
+ return connect$14(useMachine(machine$14, {
2686
2827
  id: useId(),
2828
+ dir: locale.dir,
2687
2829
  ...props
2688
2830
  }), normalizeProps);
2689
2831
  }
2690
2832
  //#endregion
2691
2833
  //#region src/components/progress/anatomy/root.tsx
2692
- function Root$8(props) {
2693
- const [progressProps, componentProps] = splitProps$13(props);
2834
+ function Root$9(props) {
2835
+ const [progressProps, componentProps] = splitProps$14(props);
2694
2836
  const { element, children, ...rest } = componentProps;
2695
2837
  const progress = useProgress(progressProps);
2696
2838
  const attributes = mergeProps(progress.getRootProps(), rest);
2697
- return /* @__PURE__ */ jsx(RootContext$23.Provider, {
2839
+ return /* @__PURE__ */ jsx(ProgressRootContext$1.Provider, {
2698
2840
  value: progress,
2699
2841
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2700
2842
  ...attributes,
@@ -2705,7 +2847,7 @@ function Root$8(props) {
2705
2847
  //#endregion
2706
2848
  //#region src/components/progress/anatomy/track.tsx
2707
2849
  function Track$1(props) {
2708
- const progress = use(RootContext$23);
2850
+ const progress = use(ProgressRootContext$1);
2709
2851
  const { element, children, ...rest } = props;
2710
2852
  const attributes = mergeProps(progress.getTrackProps(), rest);
2711
2853
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2716,7 +2858,7 @@ function Track$1(props) {
2716
2858
  //#endregion
2717
2859
  //#region src/components/progress/anatomy/value-text.tsx
2718
2860
  function ValueText$1(props) {
2719
- const progress = use(RootContext$23);
2861
+ const progress = use(ProgressRootContext$1);
2720
2862
  const { element, children, ...rest } = props;
2721
2863
  const attributes = mergeProps(progress.getValueTextProps(), rest);
2722
2864
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -2726,9 +2868,9 @@ function ValueText$1(props) {
2726
2868
  }
2727
2869
  //#endregion
2728
2870
  //#region src/components/progress/modules/anatomy.ts
2729
- const Progress = Object.assign(Root$8, {
2730
- Provider: RootProvider$8,
2731
- Context: RootContext$22,
2871
+ const Progress = Object.assign(Root$9, {
2872
+ Provider: RootProvider$9,
2873
+ Context: ProgressRootContext,
2732
2874
  Label: Label$6,
2733
2875
  ValueText: ValueText$1,
2734
2876
  Track: Track$1,
@@ -2738,12 +2880,115 @@ const Progress = Object.assign(Root$8, {
2738
2880
  CircleRange
2739
2881
  });
2740
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
2741
2986
  //#region src/components/rating-group/modules/root-context.ts
2742
- const RootContext$21 = createContext$1();
2987
+ const RatingGroupRootContext$1 = createContext$1();
2743
2988
  //#endregion
2744
2989
  //#region src/components/rating-group/anatomy/control.tsx
2745
2990
  function Control$4(props) {
2746
- const ratingGroup = use(RootContext$21);
2991
+ const ratingGroup = use(RatingGroupRootContext$1);
2747
2992
  const { element, children, ...rest } = props;
2748
2993
  const attributes = mergeProps(ratingGroup.getControlProps(), rest);
2749
2994
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -2754,7 +2999,7 @@ function Control$4(props) {
2754
2999
  //#endregion
2755
3000
  //#region src/components/rating-group/anatomy/hidden-input.tsx
2756
3001
  function HiddenInput$3(props) {
2757
- const ratingGroup = use(RootContext$21);
3002
+ const ratingGroup = use(RatingGroupRootContext$1);
2758
3003
  const { element, ...rest } = props;
2759
3004
  const attributes = mergeProps(ratingGroup.getHiddenInputProps(), rest);
2760
3005
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -2837,7 +3082,7 @@ function StarHalf(props) {
2837
3082
  //#endregion
2838
3083
  //#region src/components/rating-group/anatomy/item.tsx
2839
3084
  function Item$5(props) {
2840
- const ratingGroup = use(RootContext$21);
3085
+ const ratingGroup = use(RatingGroupRootContext$1);
2841
3086
  const [itemProps, componentProps] = splitItemProps$7(props);
2842
3087
  const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}), ...rest } = componentProps;
2843
3088
  const itemState = ratingGroup.getItemState(itemProps);
@@ -2850,7 +3095,7 @@ function Item$5(props) {
2850
3095
  //#endregion
2851
3096
  //#region src/components/rating-group/anatomy/label.tsx
2852
3097
  function Label$5(props) {
2853
- const ratingGroup = use(RootContext$21);
3098
+ const ratingGroup = use(RatingGroupRootContext$1);
2854
3099
  const { element, children, ...rest } = props;
2855
3100
  const attributes = mergeProps(ratingGroup.getLabelProps(), rest);
2856
3101
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -2860,8 +3105,8 @@ function Label$5(props) {
2860
3105
  }
2861
3106
  //#endregion
2862
3107
  //#region src/components/rating-group/anatomy/root-context.tsx
2863
- function RootContext$20(props) {
2864
- const ratingGroup = use(RootContext$21);
3108
+ function RatingGroupRootContext(props) {
3109
+ const ratingGroup = use(RatingGroupRootContext$1);
2865
3110
  const { children } = props;
2866
3111
  return children(ratingGroup);
2867
3112
  }
@@ -2870,7 +3115,7 @@ function RootContext$20(props) {
2870
3115
  function RootProvider$7(props) {
2871
3116
  const { element, children, value: ratingGroup, ...rest } = props;
2872
3117
  const attributes = mergeProps(ratingGroup.getRootProps(), rest);
2873
- return /* @__PURE__ */ jsx(RootContext$21.Provider, {
3118
+ return /* @__PURE__ */ jsx(RatingGroupRootContext$1.Provider, {
2874
3119
  value: ratingGroup,
2875
3120
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2876
3121
  ...attributes,
@@ -2881,19 +3126,21 @@ function RootProvider$7(props) {
2881
3126
  //#endregion
2882
3127
  //#region src/components/rating-group/modules/provider.ts
2883
3128
  function useRatingGroup(props = {}) {
2884
- return connect$14(useMachine(machine$14, {
3129
+ const locale = use(LocaleProviderRootContext);
3130
+ return connect$16(useMachine(machine$16, {
2885
3131
  id: useId(),
3132
+ dir: locale.dir,
2886
3133
  ...props
2887
3134
  }), normalizeProps);
2888
3135
  }
2889
3136
  //#endregion
2890
3137
  //#region src/components/rating-group/anatomy/root.tsx
2891
3138
  function Root$7(props) {
2892
- const [ratingGroupProps, componentProps] = splitProps$14(props);
3139
+ const [ratingGroupProps, componentProps] = splitProps$16(props);
2893
3140
  const { element, children, ...rest } = componentProps;
2894
3141
  const ratingGroup = useRatingGroup(ratingGroupProps);
2895
3142
  const attributes = mergeProps(ratingGroup.getRootProps(), rest);
2896
- return /* @__PURE__ */ jsx(RootContext$21.Provider, {
3143
+ return /* @__PURE__ */ jsx(RatingGroupRootContext$1.Provider, {
2897
3144
  value: ratingGroup,
2898
3145
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2899
3146
  ...attributes,
@@ -2905,7 +3152,7 @@ function Root$7(props) {
2905
3152
  //#region src/components/rating-group/modules/anatomy.ts
2906
3153
  const RatingGroup = Object.assign(Root$7, {
2907
3154
  Provider: RootProvider$7,
2908
- Context: RootContext$20,
3155
+ Context: RatingGroupRootContext,
2909
3156
  Label: Label$5,
2910
3157
  Control: Control$4,
2911
3158
  Item: Item$5,
@@ -2926,23 +3173,23 @@ function Control$3(props) {
2926
3173
  }
2927
3174
  //#endregion
2928
3175
  //#region src/components/segmented-control/modules/root-context.ts
2929
- const RootContext$19 = createContext$1();
3176
+ const SegmentedControlRootContext$1 = createContext$1();
2930
3177
  //#endregion
2931
3178
  //#region src/components/segmented-control/anatomy/indicator.tsx
2932
3179
  function Indicator$2(props) {
2933
- const segmentedControl = use(RootContext$19);
3180
+ const segmentedControl = use(SegmentedControlRootContext$1);
2934
3181
  const { element, ...rest } = props;
2935
3182
  const attributes = mergeProps(segmentedControl.getIndicatorProps(), rest);
2936
3183
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
2937
3184
  }
2938
3185
  //#endregion
2939
3186
  //#region src/components/segmented-control/modules/item-context.ts
2940
- const ItemContext$2 = createContext$1();
3187
+ const SegmentedControlItemContext = createContext$1();
2941
3188
  //#endregion
2942
3189
  //#region src/components/segmented-control/anatomy/item-hidden-input.tsx
2943
3190
  function ItemHiddenInput(props) {
2944
- const segmentedControl = use(RootContext$19);
2945
- const itemProps = use(ItemContext$2);
3191
+ const segmentedControl = use(SegmentedControlRootContext$1);
3192
+ const itemProps = use(SegmentedControlItemContext);
2946
3193
  const { element, ...rest } = props;
2947
3194
  const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), rest);
2948
3195
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -2950,8 +3197,8 @@ function ItemHiddenInput(props) {
2950
3197
  //#endregion
2951
3198
  //#region src/components/segmented-control/anatomy/item-text.tsx
2952
3199
  function ItemText$1(props) {
2953
- const segmentedControl = use(RootContext$19);
2954
- const itemProps = use(ItemContext$2);
3200
+ const segmentedControl = use(SegmentedControlRootContext$1);
3201
+ const itemProps = use(SegmentedControlItemContext);
2955
3202
  const { element, children, ...rest } = props;
2956
3203
  const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), rest);
2957
3204
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -2962,11 +3209,11 @@ function ItemText$1(props) {
2962
3209
  //#endregion
2963
3210
  //#region src/components/segmented-control/anatomy/item.tsx
2964
3211
  function Item$4(props) {
2965
- const segmentedControl = use(RootContext$19);
3212
+ const segmentedControl = use(SegmentedControlRootContext$1);
2966
3213
  const [itemProps, componentProps] = splitItemProps$8(props);
2967
3214
  const { element, children, ...rest } = componentProps;
2968
3215
  const attributes = mergeProps(segmentedControl.getItemProps(itemProps), rest);
2969
- return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
3216
+ return /* @__PURE__ */ jsx(SegmentedControlItemContext.Provider, {
2970
3217
  value: itemProps,
2971
3218
  children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
2972
3219
  ...attributes,
@@ -2977,7 +3224,7 @@ function Item$4(props) {
2977
3224
  //#endregion
2978
3225
  //#region src/components/segmented-control/anatomy/label.tsx
2979
3226
  function Label$4(props) {
2980
- const segmentedControl = use(RootContext$19);
3227
+ const segmentedControl = use(SegmentedControlRootContext$1);
2981
3228
  const { element, children, ...rest } = props;
2982
3229
  const attributes = mergeProps(segmentedControl.getLabelProps(), rest);
2983
3230
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -2987,8 +3234,8 @@ function Label$4(props) {
2987
3234
  }
2988
3235
  //#endregion
2989
3236
  //#region src/components/segmented-control/anatomy/root-context.tsx
2990
- function RootContext$18(props) {
2991
- const segmentedControl = use(RootContext$19);
3237
+ function SegmentedControlRootContext(props) {
3238
+ const segmentedControl = use(SegmentedControlRootContext$1);
2992
3239
  const { children } = props;
2993
3240
  return children(segmentedControl);
2994
3241
  }
@@ -2997,7 +3244,7 @@ function RootContext$18(props) {
2997
3244
  function RootProvider$6(props) {
2998
3245
  const { element, children, value: segmentedControl, ...rest } = props;
2999
3246
  const attributes = mergeProps(segmentedControl.getRootProps(), rest);
3000
- return /* @__PURE__ */ jsx(RootContext$19.Provider, {
3247
+ return /* @__PURE__ */ jsx(SegmentedControlRootContext$1.Provider, {
3001
3248
  value: segmentedControl,
3002
3249
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3003
3250
  ...attributes,
@@ -3008,8 +3255,10 @@ function RootProvider$6(props) {
3008
3255
  //#endregion
3009
3256
  //#region src/components/segmented-control/modules/provider.ts
3010
3257
  function useSegmentedControl(props = {}) {
3011
- return connect$15(useMachine(machine$15, {
3258
+ const locale = use(LocaleProviderRootContext);
3259
+ return connect$17(useMachine(machine$17, {
3012
3260
  id: useId(),
3261
+ dir: locale.dir,
3013
3262
  orientation: "horizontal",
3014
3263
  ...props
3015
3264
  }), normalizeProps);
@@ -3017,11 +3266,11 @@ function useSegmentedControl(props = {}) {
3017
3266
  //#endregion
3018
3267
  //#region src/components/segmented-control/anatomy/root.tsx
3019
3268
  function Root$6(props) {
3020
- const [segmentedControlProps, componentProps] = splitProps$15(props);
3269
+ const [segmentedControlProps, componentProps] = splitProps$17(props);
3021
3270
  const { element, children, ...rest } = componentProps;
3022
3271
  const segmentedControl = useSegmentedControl(segmentedControlProps);
3023
3272
  const attributes = mergeProps(segmentedControl.getRootProps(), rest);
3024
- return /* @__PURE__ */ jsx(RootContext$19.Provider, {
3273
+ return /* @__PURE__ */ jsx(SegmentedControlRootContext$1.Provider, {
3025
3274
  value: segmentedControl,
3026
3275
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3027
3276
  ...attributes,
@@ -3033,7 +3282,7 @@ function Root$6(props) {
3033
3282
  //#region src/components/segmented-control/modules/anatomy.ts
3034
3283
  const SegmentedControl = Object.assign(Root$6, {
3035
3284
  Provider: RootProvider$6,
3036
- Context: RootContext$18,
3285
+ Context: SegmentedControlRootContext,
3037
3286
  Label: Label$4,
3038
3287
  Control: Control$3,
3039
3288
  Indicator: Indicator$2,
@@ -3043,11 +3292,11 @@ const SegmentedControl = Object.assign(Root$6, {
3043
3292
  });
3044
3293
  //#endregion
3045
3294
  //#region src/components/slider/modules/root-context.ts
3046
- const RootContext$17 = createContext$1();
3295
+ const SliderRootContext$1 = createContext$1();
3047
3296
  //#endregion
3048
3297
  //#region src/components/slider/anatomy/control.tsx
3049
3298
  function Control$2(props) {
3050
- const slider = use(RootContext$17);
3299
+ const slider = use(SliderRootContext$1);
3051
3300
  const { element, children, ...rest } = props;
3052
3301
  const attributes = mergeProps(slider.getControlProps(), rest);
3053
3302
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3057,12 +3306,12 @@ function Control$2(props) {
3057
3306
  }
3058
3307
  //#endregion
3059
3308
  //#region src/components/slider/modules/thumb-context.ts
3060
- const ThumbContext = createContext$1();
3309
+ const SliderThumbContext = createContext$1();
3061
3310
  //#endregion
3062
3311
  //#region src/components/slider/anatomy/hidden-input.tsx
3063
3312
  function HiddenInput$2(props) {
3064
- const slider = use(RootContext$17);
3065
- const thumbProps = use(ThumbContext);
3313
+ const slider = use(SliderRootContext$1);
3314
+ const thumbProps = use(SliderThumbContext);
3066
3315
  const { element, ...rest } = props;
3067
3316
  const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), rest);
3068
3317
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3070,7 +3319,7 @@ function HiddenInput$2(props) {
3070
3319
  //#endregion
3071
3320
  //#region src/components/slider/anatomy/label.tsx
3072
3321
  function Label$3(props) {
3073
- const slider = use(RootContext$17);
3322
+ const slider = use(SliderRootContext$1);
3074
3323
  const { element, children, ...rest } = props;
3075
3324
  const attributes = mergeProps(slider.getLabelProps(), rest);
3076
3325
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -3081,7 +3330,7 @@ function Label$3(props) {
3081
3330
  //#endregion
3082
3331
  //#region src/components/slider/anatomy/marker-group.tsx
3083
3332
  function MarkerGroup(props) {
3084
- const slider = use(RootContext$17);
3333
+ const slider = use(SliderRootContext$1);
3085
3334
  const { element, children, ...rest } = props;
3086
3335
  const attributes = mergeProps(slider.getMarkerGroupProps(), rest);
3087
3336
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3092,7 +3341,7 @@ function MarkerGroup(props) {
3092
3341
  //#endregion
3093
3342
  //#region src/components/slider/anatomy/marker.tsx
3094
3343
  function Marker(props) {
3095
- const slider = use(RootContext$17);
3344
+ const slider = use(SliderRootContext$1);
3096
3345
  const { element, children, value, ...rest } = props;
3097
3346
  const attributes = mergeProps(slider.getMarkerProps({ value }), rest);
3098
3347
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3103,7 +3352,7 @@ function Marker(props) {
3103
3352
  //#endregion
3104
3353
  //#region src/components/slider/anatomy/range.tsx
3105
3354
  function Range(props) {
3106
- const slider = use(RootContext$17);
3355
+ const slider = use(SliderRootContext$1);
3107
3356
  const { element, children, ...rest } = props;
3108
3357
  const attributes = mergeProps(slider.getRangeProps(), rest);
3109
3358
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3113,8 +3362,8 @@ function Range(props) {
3113
3362
  }
3114
3363
  //#endregion
3115
3364
  //#region src/components/slider/anatomy/root-context.tsx
3116
- function RootContext$16(props) {
3117
- const slider = use(RootContext$17);
3365
+ function SliderRootContext(props) {
3366
+ const slider = use(SliderRootContext$1);
3118
3367
  const { children } = props;
3119
3368
  return children(slider);
3120
3369
  }
@@ -3123,7 +3372,7 @@ function RootContext$16(props) {
3123
3372
  function SliderRootProvider(props) {
3124
3373
  const { element, children, value: slider, ...rest } = props;
3125
3374
  const attributes = mergeProps(slider.getRootProps(), rest);
3126
- return /* @__PURE__ */ jsx(RootContext$17.Provider, {
3375
+ return /* @__PURE__ */ jsx(SliderRootContext$1.Provider, {
3127
3376
  value: slider,
3128
3377
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3129
3378
  ...attributes,
@@ -3134,19 +3383,21 @@ function SliderRootProvider(props) {
3134
3383
  //#endregion
3135
3384
  //#region src/components/slider/modules/provider.ts
3136
3385
  function useSlider(props = {}) {
3137
- return connect$16(useMachine(machine$16, {
3386
+ const locale = use(LocaleProviderRootContext);
3387
+ return connect$18(useMachine(machine$18, {
3138
3388
  id: useId(),
3389
+ dir: locale.dir,
3139
3390
  ...props
3140
3391
  }), normalizeProps);
3141
3392
  }
3142
3393
  //#endregion
3143
3394
  //#region src/components/slider/anatomy/root.tsx
3144
3395
  function SliderRoot$1(props) {
3145
- const [sliderProps, componentProps] = splitProps$16(props);
3396
+ const [sliderProps, componentProps] = splitProps$18(props);
3146
3397
  const { element, children, ...rest } = componentProps;
3147
3398
  const slider = useSlider(sliderProps);
3148
3399
  const attributes = mergeProps(slider.getRootProps(), rest);
3149
- return /* @__PURE__ */ jsx(RootContext$17.Provider, {
3400
+ return /* @__PURE__ */ jsx(SliderRootContext$1.Provider, {
3150
3401
  value: slider,
3151
3402
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3152
3403
  ...attributes,
@@ -3157,11 +3408,11 @@ function SliderRoot$1(props) {
3157
3408
  //#endregion
3158
3409
  //#region src/components/slider/anatomy/thumb.tsx
3159
3410
  function Thumb$1(props) {
3160
- const slider = use(RootContext$17);
3411
+ const slider = use(SliderRootContext$1);
3161
3412
  const [thumbProps, componentProps] = splitThumbProps(props);
3162
3413
  const { element, children, ...rest } = componentProps;
3163
3414
  const attributes = mergeProps(slider.getThumbProps(thumbProps), rest);
3164
- return /* @__PURE__ */ jsx(ThumbContext.Provider, {
3415
+ return /* @__PURE__ */ jsx(SliderThumbContext.Provider, {
3165
3416
  value: thumbProps,
3166
3417
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3167
3418
  ...attributes,
@@ -3172,7 +3423,7 @@ function Thumb$1(props) {
3172
3423
  //#endregion
3173
3424
  //#region src/components/slider/anatomy/track.tsx
3174
3425
  function Track(props) {
3175
- const slider = use(RootContext$17);
3426
+ const slider = use(SliderRootContext$1);
3176
3427
  const { element, children, ...rest } = props;
3177
3428
  const attributes = mergeProps(slider.getTrackProps(), rest);
3178
3429
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3183,7 +3434,7 @@ function Track(props) {
3183
3434
  //#endregion
3184
3435
  //#region src/components/slider/anatomy/value-text.tsx
3185
3436
  function ValueText(props) {
3186
- const slider = use(RootContext$17);
3437
+ const slider = use(SliderRootContext$1);
3187
3438
  const { element, children, ...rest } = props;
3188
3439
  const attributes = mergeProps(slider.getValueTextProps(), rest);
3189
3440
  return element ? element(attributes) : /* @__PURE__ */ jsx("output", {
@@ -3195,7 +3446,7 @@ function ValueText(props) {
3195
3446
  //#region src/components/slider/modules/anatomy.ts
3196
3447
  const Slider = Object.assign(SliderRoot$1, {
3197
3448
  Provider: SliderRootProvider,
3198
- Context: RootContext$16,
3449
+ Context: SliderRootContext,
3199
3450
  Label: Label$3,
3200
3451
  ValueText,
3201
3452
  Control: Control$2,
@@ -3208,11 +3459,11 @@ const Slider = Object.assign(SliderRoot$1, {
3208
3459
  });
3209
3460
  //#endregion
3210
3461
  //#region src/components/steps/modules/root-context.ts
3211
- const RootContext$15 = createContext$1();
3462
+ const StepsRootContext$1 = createContext$1();
3212
3463
  //#endregion
3213
3464
  //#region src/components/steps/anatomy/content.tsx
3214
3465
  function Content$2(props) {
3215
- const steps = use(RootContext$15);
3466
+ const steps = use(StepsRootContext$1);
3216
3467
  const { element, children, index, ...rest } = props;
3217
3468
  const attributes = mergeProps(steps.getContentProps({ index }), rest);
3218
3469
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3222,12 +3473,12 @@ function Content$2(props) {
3222
3473
  }
3223
3474
  //#endregion
3224
3475
  //#region src/components/steps/modules/item-context.ts
3225
- const ItemContext$1 = createContext$1();
3476
+ const StepsItemContext = createContext$1();
3226
3477
  //#endregion
3227
3478
  //#region src/components/steps/anatomy/indicator.tsx
3228
3479
  function Indicator$1(props) {
3229
- const steps = use(RootContext$15);
3230
- const itemProps = use(ItemContext$1);
3480
+ const steps = use(StepsRootContext$1);
3481
+ const itemProps = use(StepsItemContext);
3231
3482
  const { element, children, ...rest } = props;
3232
3483
  const attributes = mergeProps(steps.getIndicatorProps(itemProps), rest);
3233
3484
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3238,11 +3489,11 @@ function Indicator$1(props) {
3238
3489
  //#endregion
3239
3490
  //#region src/components/steps/anatomy/item.tsx
3240
3491
  function Item$3(props) {
3241
- const steps = use(RootContext$15);
3492
+ const steps = use(StepsRootContext$1);
3242
3493
  const { element, children, index, ...rest } = props;
3243
3494
  const itemProps = { index };
3244
3495
  const attributes = mergeProps(steps.getItemProps(itemProps), rest);
3245
- return /* @__PURE__ */ jsx(ItemContext$1.Provider, {
3496
+ return /* @__PURE__ */ jsx(StepsItemContext.Provider, {
3246
3497
  value: itemProps,
3247
3498
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3248
3499
  ...attributes,
@@ -3253,7 +3504,7 @@ function Item$3(props) {
3253
3504
  //#endregion
3254
3505
  //#region src/components/steps/anatomy/list.tsx
3255
3506
  function List$1(props) {
3256
- const steps = use(RootContext$15);
3507
+ const steps = use(StepsRootContext$1);
3257
3508
  const { element, children, ...rest } = props;
3258
3509
  const attributes = mergeProps(steps.getListProps(), rest);
3259
3510
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3264,7 +3515,7 @@ function List$1(props) {
3264
3515
  //#endregion
3265
3516
  //#region src/components/steps/anatomy/next-trigger.tsx
3266
3517
  function NextTrigger(props) {
3267
- const steps = use(RootContext$15);
3518
+ const steps = use(StepsRootContext$1);
3268
3519
  const { element, children, ...rest } = props;
3269
3520
  const attributes = mergeProps(steps.getNextTriggerProps(), rest);
3270
3521
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3275,7 +3526,7 @@ function NextTrigger(props) {
3275
3526
  //#endregion
3276
3527
  //#region src/components/steps/anatomy/prev-trigger.tsx
3277
3528
  function PrevTrigger(props) {
3278
- const steps = use(RootContext$15);
3529
+ const steps = use(StepsRootContext$1);
3279
3530
  const { element, children, ...rest } = props;
3280
3531
  const attributes = mergeProps(steps.getPrevTriggerProps(), rest);
3281
3532
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3285,8 +3536,8 @@ function PrevTrigger(props) {
3285
3536
  }
3286
3537
  //#endregion
3287
3538
  //#region src/components/steps/anatomy/root-context.tsx
3288
- function RootContext$14(props) {
3289
- const steps = use(RootContext$15);
3539
+ function StepsRootContext(props) {
3540
+ const steps = use(StepsRootContext$1);
3290
3541
  const { children } = props;
3291
3542
  return children(steps);
3292
3543
  }
@@ -3295,7 +3546,7 @@ function RootContext$14(props) {
3295
3546
  function RootProvider$5(props) {
3296
3547
  const { element, children, value: steps, ...rest } = props;
3297
3548
  const attributes = mergeProps(steps.getRootProps(), rest);
3298
- return /* @__PURE__ */ jsx(RootContext$15.Provider, {
3549
+ return /* @__PURE__ */ jsx(StepsRootContext$1.Provider, {
3299
3550
  value: steps,
3300
3551
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3301
3552
  ...attributes,
@@ -3306,19 +3557,21 @@ function RootProvider$5(props) {
3306
3557
  //#endregion
3307
3558
  //#region src/components/steps/modules/provider.ts
3308
3559
  function useSteps(props = {}) {
3309
- return connect$17(useMachine(machine$17, {
3560
+ const locale = use(LocaleProviderRootContext);
3561
+ return connect$19(useMachine(machine$19, {
3310
3562
  id: useId(),
3563
+ dir: locale.dir,
3311
3564
  ...props
3312
3565
  }), normalizeProps);
3313
3566
  }
3314
3567
  //#endregion
3315
3568
  //#region src/components/steps/anatomy/root.tsx
3316
3569
  function SliderRoot(props) {
3317
- const [stepsProps, componentProps] = splitProps$17(props);
3570
+ const [stepsProps, componentProps] = splitProps$19(props);
3318
3571
  const { element, children, ...rest } = componentProps;
3319
3572
  const steps = useSteps(stepsProps);
3320
3573
  const attributes = mergeProps(steps.getRootProps(), rest);
3321
- return /* @__PURE__ */ jsx(RootContext$15.Provider, {
3574
+ return /* @__PURE__ */ jsx(StepsRootContext$1.Provider, {
3322
3575
  value: steps,
3323
3576
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3324
3577
  ...attributes,
@@ -3329,8 +3582,8 @@ function SliderRoot(props) {
3329
3582
  //#endregion
3330
3583
  //#region src/components/steps/anatomy/separator.tsx
3331
3584
  function Separator(props) {
3332
- const steps = use(RootContext$15);
3333
- const itemProps = use(ItemContext$1);
3585
+ const steps = use(StepsRootContext$1);
3586
+ const itemProps = use(StepsItemContext);
3334
3587
  const { element, children, ...rest } = props;
3335
3588
  const attributes = mergeProps(steps.getSeparatorProps(itemProps), rest);
3336
3589
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3341,8 +3594,8 @@ function Separator(props) {
3341
3594
  //#endregion
3342
3595
  //#region src/components/steps/anatomy/trigger.tsx
3343
3596
  function Trigger$2(props) {
3344
- const steps = use(RootContext$15);
3345
- const itemProps = use(ItemContext$1);
3597
+ const steps = use(StepsRootContext$1);
3598
+ const itemProps = use(StepsItemContext);
3346
3599
  const { element, children, ...rest } = props;
3347
3600
  const attributes = mergeProps(steps.getTriggerProps(itemProps), rest);
3348
3601
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3354,7 +3607,7 @@ function Trigger$2(props) {
3354
3607
  //#region src/components/steps/modules/anatomy.ts
3355
3608
  const Steps = Object.assign(SliderRoot, {
3356
3609
  Provider: RootProvider$5,
3357
- Context: RootContext$14,
3610
+ Context: StepsRootContext,
3358
3611
  List: List$1,
3359
3612
  Item: Item$3,
3360
3613
  Trigger: Trigger$2,
@@ -3366,11 +3619,11 @@ const Steps = Object.assign(SliderRoot, {
3366
3619
  });
3367
3620
  //#endregion
3368
3621
  //#region src/components/switch/modules/root-context.ts
3369
- const RootContext$13 = createContext$1();
3622
+ const SwitchRootContext$1 = createContext$1();
3370
3623
  //#endregion
3371
3624
  //#region src/components/switch/anatomy/control.tsx
3372
3625
  function Control$1(props) {
3373
- const switch_ = use(RootContext$13);
3626
+ const switch_ = use(SwitchRootContext$1);
3374
3627
  const { element, children, ...rest } = props;
3375
3628
  const attributes = mergeProps(switch_.getControlProps(), rest);
3376
3629
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3381,7 +3634,7 @@ function Control$1(props) {
3381
3634
  //#endregion
3382
3635
  //#region src/components/switch/anatomy/hidden-input.tsx
3383
3636
  function HiddenInput$1(props) {
3384
- const switch_ = use(RootContext$13);
3637
+ const switch_ = use(SwitchRootContext$1);
3385
3638
  const { element, ...rest } = props;
3386
3639
  const attributes = mergeProps(switch_.getHiddenInputProps(), rest);
3387
3640
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3389,7 +3642,7 @@ function HiddenInput$1(props) {
3389
3642
  //#endregion
3390
3643
  //#region src/components/switch/anatomy/label.tsx
3391
3644
  function Label$2(props) {
3392
- const switch_ = use(RootContext$13);
3645
+ const switch_ = use(SwitchRootContext$1);
3393
3646
  const { element, children, ...rest } = props;
3394
3647
  const attributes = mergeProps(switch_.getLabelProps(), rest);
3395
3648
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3399,8 +3652,8 @@ function Label$2(props) {
3399
3652
  }
3400
3653
  //#endregion
3401
3654
  //#region src/components/switch/anatomy/root-context.tsx
3402
- function RootContext$12(props) {
3403
- const switch_ = use(RootContext$13);
3655
+ function SwitchRootContext(props) {
3656
+ const switch_ = use(SwitchRootContext$1);
3404
3657
  const { children } = props;
3405
3658
  return children(switch_);
3406
3659
  }
@@ -3409,7 +3662,7 @@ function RootContext$12(props) {
3409
3662
  function RootProvider$4(props) {
3410
3663
  const { element, children, value: switch_, ...rest } = props;
3411
3664
  const attributes = mergeProps(switch_.getRootProps(), rest);
3412
- return /* @__PURE__ */ jsx(RootContext$13.Provider, {
3665
+ return /* @__PURE__ */ jsx(SwitchRootContext$1.Provider, {
3413
3666
  value: switch_,
3414
3667
  children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
3415
3668
  ...attributes,
@@ -3420,19 +3673,21 @@ function RootProvider$4(props) {
3420
3673
  //#endregion
3421
3674
  //#region src/components/switch/modules/provider.ts
3422
3675
  function useSwitch(props = {}) {
3423
- return connect$18(useMachine(machine$18, {
3676
+ const locale = use(LocaleProviderRootContext);
3677
+ return connect$20(useMachine(machine$20, {
3424
3678
  id: useId(),
3679
+ dir: locale.dir,
3425
3680
  ...props
3426
3681
  }), normalizeProps);
3427
3682
  }
3428
3683
  //#endregion
3429
3684
  //#region src/components/switch/anatomy/root.tsx
3430
3685
  function Root$5(props) {
3431
- const [switchProps, componentProps] = splitProps$18(props);
3686
+ const [switchProps, componentProps] = splitProps$20(props);
3432
3687
  const { element, children, ...rest } = componentProps;
3433
3688
  const switch_ = useSwitch(switchProps);
3434
3689
  const attributes = mergeProps(switch_.getRootProps(), rest);
3435
- return /* @__PURE__ */ jsx(RootContext$13.Provider, {
3690
+ return /* @__PURE__ */ jsx(SwitchRootContext$1.Provider, {
3436
3691
  value: switch_,
3437
3692
  children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
3438
3693
  ...attributes,
@@ -3443,7 +3698,7 @@ function Root$5(props) {
3443
3698
  //#endregion
3444
3699
  //#region src/components/switch/anatomy/thumb.tsx
3445
3700
  function Thumb(props) {
3446
- const switch_ = use(RootContext$13);
3701
+ const switch_ = use(SwitchRootContext$1);
3447
3702
  const { element, children, ...rest } = props;
3448
3703
  const attributes = mergeProps(switch_.getThumbProps(), rest);
3449
3704
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3455,7 +3710,7 @@ function Thumb(props) {
3455
3710
  //#region src/components/switch/modules/anatomy.ts
3456
3711
  const Switch = Object.assign(Root$5, {
3457
3712
  Provider: RootProvider$4,
3458
- Context: RootContext$12,
3713
+ Context: SwitchRootContext,
3459
3714
  Control: Control$1,
3460
3715
  Thumb,
3461
3716
  Label: Label$2,
@@ -3463,11 +3718,11 @@ const Switch = Object.assign(Root$5, {
3463
3718
  });
3464
3719
  //#endregion
3465
3720
  //#region src/components/tabs/modules/root-context.ts
3466
- const RootContext$11 = createContext$1();
3721
+ const TabsRootContext$1 = createContext$1();
3467
3722
  //#endregion
3468
3723
  //#region src/components/tabs/anatomy/content.tsx
3469
3724
  function Content$1(props) {
3470
- const tabs = use(RootContext$11);
3725
+ const tabs = use(TabsRootContext$1);
3471
3726
  const [contentProps, componentProps] = splitContentProps(props);
3472
3727
  const { element, children, ...rest } = componentProps;
3473
3728
  const attributes = mergeProps(tabs.getContentProps(contentProps), rest);
@@ -3479,7 +3734,7 @@ function Content$1(props) {
3479
3734
  //#endregion
3480
3735
  //#region src/components/tabs/anatomy/indicator.tsx
3481
3736
  function Indicator(props) {
3482
- const tabs = use(RootContext$11);
3737
+ const tabs = use(TabsRootContext$1);
3483
3738
  const { element, ...rest } = props;
3484
3739
  const attributes = mergeProps(tabs.getIndicatorProps(), rest);
3485
3740
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
@@ -3487,7 +3742,7 @@ function Indicator(props) {
3487
3742
  //#endregion
3488
3743
  //#region src/components/tabs/anatomy/list.tsx
3489
3744
  function List(props) {
3490
- const tabs = use(RootContext$11);
3745
+ const tabs = use(TabsRootContext$1);
3491
3746
  const { element, children, ...rest } = props;
3492
3747
  const attributes = mergeProps(tabs.getListProps(), rest);
3493
3748
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3497,8 +3752,8 @@ function List(props) {
3497
3752
  }
3498
3753
  //#endregion
3499
3754
  //#region src/components/tabs/anatomy/root-context.tsx
3500
- function RootContext$10(props) {
3501
- const tabs = use(RootContext$11);
3755
+ function TabsRootContext(props) {
3756
+ const tabs = use(TabsRootContext$1);
3502
3757
  const { children } = props;
3503
3758
  return children(tabs);
3504
3759
  }
@@ -3507,7 +3762,7 @@ function RootContext$10(props) {
3507
3762
  function RootProvider$3(props) {
3508
3763
  const { element, children, value: tabs, ...rest } = props;
3509
3764
  const attributes = mergeProps(tabs.getRootProps(), rest);
3510
- return /* @__PURE__ */ jsx(RootContext$11.Provider, {
3765
+ return /* @__PURE__ */ jsx(TabsRootContext$1.Provider, {
3511
3766
  value: tabs,
3512
3767
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3513
3768
  ...attributes,
@@ -3518,19 +3773,21 @@ function RootProvider$3(props) {
3518
3773
  //#endregion
3519
3774
  //#region src/components/tabs/modules/provider.ts
3520
3775
  function useTabs(props = {}) {
3521
- return connect$19(useMachine(machine$19, {
3776
+ const locale = use(LocaleProviderRootContext);
3777
+ return connect$21(useMachine(machine$21, {
3522
3778
  id: useId(),
3779
+ dir: locale.dir,
3523
3780
  ...props
3524
3781
  }), normalizeProps);
3525
3782
  }
3526
3783
  //#endregion
3527
3784
  //#region src/components/tabs/anatomy/root.tsx
3528
3785
  function Root$4(props) {
3529
- const [tabsProps, componentProps] = splitProps$19(props);
3786
+ const [tabsProps, componentProps] = splitProps$21(props);
3530
3787
  const { element, children, ...rest } = componentProps;
3531
3788
  const tabs = useTabs(tabsProps);
3532
3789
  const attributes = mergeProps(tabs.getRootProps(), rest);
3533
- return /* @__PURE__ */ jsx(RootContext$11.Provider, {
3790
+ return /* @__PURE__ */ jsx(TabsRootContext$1.Provider, {
3534
3791
  value: tabs,
3535
3792
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3536
3793
  ...attributes,
@@ -3541,7 +3798,7 @@ function Root$4(props) {
3541
3798
  //#endregion
3542
3799
  //#region src/components/tabs/anatomy/trigger.tsx
3543
3800
  function Trigger$1(props) {
3544
- const tabs = use(RootContext$11);
3801
+ const tabs = use(TabsRootContext$1);
3545
3802
  const [triggerProps, componentProps] = splitTriggerProps(props);
3546
3803
  const { element, children, ...rest } = componentProps;
3547
3804
  const attributes = mergeProps(tabs.getTriggerProps(triggerProps), rest);
@@ -3554,7 +3811,7 @@ function Trigger$1(props) {
3554
3811
  //#region src/components/tabs/modules/anatomy.ts
3555
3812
  const Tabs = Object.assign(Root$4, {
3556
3813
  Provider: RootProvider$3,
3557
- Context: RootContext$10,
3814
+ Context: TabsRootContext,
3558
3815
  List,
3559
3816
  Trigger: Trigger$1,
3560
3817
  Indicator,
@@ -3562,11 +3819,11 @@ const Tabs = Object.assign(Root$4, {
3562
3819
  });
3563
3820
  //#endregion
3564
3821
  //#region src/components/tags-input/modules/root-context.ts
3565
- const RootContext$9 = createContext$1();
3822
+ const TagsInputRootContext$1 = createContext$1();
3566
3823
  //#endregion
3567
3824
  //#region src/components/tags-input/anatomy/clear-trigger.tsx
3568
3825
  function ClearTrigger(props) {
3569
- const tagsInput = use(RootContext$9);
3826
+ const tagsInput = use(TagsInputRootContext$1);
3570
3827
  const { element, children, ...rest } = props;
3571
3828
  const attributes = mergeProps(tagsInput.getClearTriggerProps(), rest);
3572
3829
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3577,7 +3834,7 @@ function ClearTrigger(props) {
3577
3834
  //#endregion
3578
3835
  //#region src/components/tags-input/anatomy/control.tsx
3579
3836
  function Control(props) {
3580
- const tagsInput = use(RootContext$9);
3837
+ const tagsInput = use(TagsInputRootContext$1);
3581
3838
  const { element, children, ...rest } = props;
3582
3839
  const attributes = mergeProps(tagsInput.getControlProps(), rest);
3583
3840
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3588,7 +3845,7 @@ function Control(props) {
3588
3845
  //#endregion
3589
3846
  //#region src/components/tags-input/anatomy/hidden-input.tsx
3590
3847
  function HiddenInput(props) {
3591
- const tagsInput = use(RootContext$9);
3848
+ const tagsInput = use(TagsInputRootContext$1);
3592
3849
  const { element, ...rest } = props;
3593
3850
  const attributes = mergeProps(tagsInput.getHiddenInputProps(), rest);
3594
3851
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3596,19 +3853,19 @@ function HiddenInput(props) {
3596
3853
  //#endregion
3597
3854
  //#region src/components/tags-input/anatomy/input.tsx
3598
3855
  function Input(props) {
3599
- const tagsInput = use(RootContext$9);
3856
+ const tagsInput = use(TagsInputRootContext$1);
3600
3857
  const { element, ...rest } = props;
3601
3858
  const attributes = mergeProps(tagsInput.getInputProps(), rest);
3602
3859
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
3603
3860
  }
3604
3861
  //#endregion
3605
3862
  //#region src/components/tags-input/modules/item-context.ts
3606
- const ItemContext = createContext$1();
3863
+ const TagsInputItemContext = createContext$1();
3607
3864
  //#endregion
3608
3865
  //#region src/components/tags-input/anatomy/item-delete-trigger.tsx
3609
3866
  function ItemDeleteTrigger(props) {
3610
- const tagsInput = use(RootContext$9);
3611
- const itemProps = use(ItemContext);
3867
+ const tagsInput = use(TagsInputRootContext$1);
3868
+ const itemProps = use(TagsInputItemContext);
3612
3869
  const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }), ...rest } = props;
3613
3870
  const attributes = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), rest);
3614
3871
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3619,8 +3876,8 @@ function ItemDeleteTrigger(props) {
3619
3876
  //#endregion
3620
3877
  //#region src/components/tags-input/anatomy/item-input.tsx
3621
3878
  function ItemInput(props) {
3622
- const tagsInput = use(RootContext$9);
3623
- const itemProps = use(ItemContext);
3879
+ const tagsInput = use(TagsInputRootContext$1);
3880
+ const itemProps = use(TagsInputItemContext);
3624
3881
  const { element, ...rest } = props;
3625
3882
  const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), rest);
3626
3883
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
@@ -3628,8 +3885,8 @@ function ItemInput(props) {
3628
3885
  //#endregion
3629
3886
  //#region src/components/tags-input/anatomy/item-preview.tsx
3630
3887
  function ItemPreview(props) {
3631
- const tagsInput = use(RootContext$9);
3632
- const itemProps = use(ItemContext);
3888
+ const tagsInput = use(TagsInputRootContext$1);
3889
+ const itemProps = use(TagsInputItemContext);
3633
3890
  const { element, children, ...rest } = props;
3634
3891
  const attributes = mergeProps(tagsInput.getItemPreviewProps(itemProps), rest);
3635
3892
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3640,8 +3897,8 @@ function ItemPreview(props) {
3640
3897
  //#endregion
3641
3898
  //#region src/components/tags-input/anatomy/item-text.tsx
3642
3899
  function ItemText(props) {
3643
- const tagsInput = use(RootContext$9);
3644
- const itemProps = use(ItemContext);
3900
+ const tagsInput = use(TagsInputRootContext$1);
3901
+ const itemProps = use(TagsInputItemContext);
3645
3902
  const { element, children, ...rest } = props;
3646
3903
  const attributes = mergeProps(tagsInput.getItemTextProps(itemProps), rest);
3647
3904
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -3652,11 +3909,11 @@ function ItemText(props) {
3652
3909
  //#endregion
3653
3910
  //#region src/components/tags-input/anatomy/item.tsx
3654
3911
  function Item$2(props) {
3655
- const tagsInput = use(RootContext$9);
3912
+ const tagsInput = use(TagsInputRootContext$1);
3656
3913
  const [itemProps, componentProps] = splitItemProps$9(props);
3657
3914
  const { element, children, ...rest } = componentProps;
3658
3915
  const attributes = mergeProps(tagsInput.getItemProps(itemProps), rest);
3659
- return /* @__PURE__ */ jsx(ItemContext.Provider, {
3916
+ return /* @__PURE__ */ jsx(TagsInputItemContext.Provider, {
3660
3917
  value: itemProps,
3661
3918
  children: element ? element(attributes) : /* @__PURE__ */ jsx("span", {
3662
3919
  ...attributes,
@@ -3667,7 +3924,7 @@ function Item$2(props) {
3667
3924
  //#endregion
3668
3925
  //#region src/components/tags-input/anatomy/label.tsx
3669
3926
  function Label$1(props) {
3670
- const tagsInput = use(RootContext$9);
3927
+ const tagsInput = use(TagsInputRootContext$1);
3671
3928
  const { element, children, ...rest } = props;
3672
3929
  const attributes = mergeProps(tagsInput.getLabelProps(), rest);
3673
3930
  return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
@@ -3677,8 +3934,8 @@ function Label$1(props) {
3677
3934
  }
3678
3935
  //#endregion
3679
3936
  //#region src/components/tags-input/anatomy/root-context.tsx
3680
- function RootContext$8(props) {
3681
- const tagsInput = use(RootContext$9);
3937
+ function TagsInputRootContext(props) {
3938
+ const tagsInput = use(TagsInputRootContext$1);
3682
3939
  const { children } = props;
3683
3940
  return children(tagsInput);
3684
3941
  }
@@ -3687,7 +3944,7 @@ function RootContext$8(props) {
3687
3944
  function RootProvider$2(props) {
3688
3945
  const { element, children, value: tagsInput, ...rest } = props;
3689
3946
  const attributes = mergeProps(tagsInput.getRootProps(), rest);
3690
- return /* @__PURE__ */ jsx(RootContext$9.Provider, {
3947
+ return /* @__PURE__ */ jsx(TagsInputRootContext$1.Provider, {
3691
3948
  value: tagsInput,
3692
3949
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3693
3950
  ...attributes,
@@ -3698,19 +3955,21 @@ function RootProvider$2(props) {
3698
3955
  //#endregion
3699
3956
  //#region src/components/tags-input/modules/provider.ts
3700
3957
  function useTagsInput(props = {}) {
3701
- return connect$20(useMachine(machine$20, {
3958
+ const locale = use(LocaleProviderRootContext);
3959
+ return connect$22(useMachine(machine$22, {
3702
3960
  id: useId(),
3961
+ dir: locale.dir,
3703
3962
  ...props
3704
3963
  }), normalizeProps);
3705
3964
  }
3706
3965
  //#endregion
3707
3966
  //#region src/components/tags-input/anatomy/root.tsx
3708
3967
  function Root$3(props) {
3709
- const [tagsInputProps, componentProps] = splitProps$20(props);
3968
+ const [tagsInputProps, componentProps] = splitProps$22(props);
3710
3969
  const { element, children, ...rest } = componentProps;
3711
3970
  const tagsInput = useTagsInput(tagsInputProps);
3712
3971
  const attributes = mergeProps(tagsInput.getRootProps(), rest);
3713
- return /* @__PURE__ */ jsx(RootContext$9.Provider, {
3972
+ return /* @__PURE__ */ jsx(TagsInputRootContext$1.Provider, {
3714
3973
  value: tagsInput,
3715
3974
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3716
3975
  ...attributes,
@@ -3722,7 +3981,7 @@ function Root$3(props) {
3722
3981
  //#region src/components/tags-input/modules/anatomy.ts
3723
3982
  const TagsInput = Object.assign(Root$3, {
3724
3983
  Provider: RootProvider$2,
3725
- Context: RootContext$8,
3984
+ Context: TagsInputRootContext,
3726
3985
  Label: Label$1,
3727
3986
  Control,
3728
3987
  Item: Item$2,
@@ -3736,11 +3995,11 @@ const TagsInput = Object.assign(Root$3, {
3736
3995
  });
3737
3996
  //#endregion
3738
3997
  //#region src/components/toast/modules/root-context.ts
3739
- const RootContext$7 = createContext$1();
3998
+ const ToastRootContext$1 = createContext$1();
3740
3999
  //#endregion
3741
4000
  //#region src/components/toast/anatomy/action-trigger.tsx
3742
4001
  function ActionTrigger(props) {
3743
- const toast = use(RootContext$7);
4002
+ const toast = use(ToastRootContext$1);
3744
4003
  const { element, children, ...rest } = props;
3745
4004
  const attributes = mergeProps(toast.getActionTriggerProps(), rest);
3746
4005
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3770,7 +4029,7 @@ function X(props) {
3770
4029
  //#endregion
3771
4030
  //#region src/components/toast/anatomy/close-trigger.tsx
3772
4031
  function CloseTrigger(props) {
3773
- const toast = use(RootContext$7);
4032
+ const toast = use(ToastRootContext$1);
3774
4033
  const { element, children = /* @__PURE__ */ jsx(X, {}), ...rest } = props;
3775
4034
  const attributes = mergeProps(toast.getCloseTriggerProps(), rest);
3776
4035
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -3781,7 +4040,7 @@ function CloseTrigger(props) {
3781
4040
  //#endregion
3782
4041
  //#region src/components/toast/anatomy/description.tsx
3783
4042
  function Description(props) {
3784
- const toast = use(RootContext$7);
4043
+ const toast = use(ToastRootContext$1);
3785
4044
  const { element, children, ...rest } = props;
3786
4045
  const attributes = mergeProps(toast.getDescriptionProps(), rest);
3787
4046
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3791,7 +4050,7 @@ function Description(props) {
3791
4050
  }
3792
4051
  //#endregion
3793
4052
  //#region src/components/toast/modules/group-context.ts
3794
- const GroupContext = createContext$1();
4053
+ const ToastGroupContext = createContext$1();
3795
4054
  //#endregion
3796
4055
  //#region src/components/toast/anatomy/group.tsx
3797
4056
  function Group(props) {
@@ -3802,7 +4061,7 @@ function Group(props) {
3802
4061
  });
3803
4062
  const api = group.connect(service, normalizeProps);
3804
4063
  const attributes = mergeProps(api.getGroupProps(), rest);
3805
- return /* @__PURE__ */ jsx(GroupContext.Provider, {
4064
+ return /* @__PURE__ */ jsx(ToastGroupContext.Provider, {
3806
4065
  value: service,
3807
4066
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3808
4067
  ...attributes,
@@ -3828,22 +4087,24 @@ function Message(props) {
3828
4087
  }
3829
4088
  //#endregion
3830
4089
  //#region src/components/toast/anatomy/root-context.tsx
3831
- function RootContext$6(props) {
3832
- const toast = use(RootContext$7);
4090
+ function ToastRootContext(props) {
4091
+ const toast = use(ToastRootContext$1);
3833
4092
  const { children } = props;
3834
4093
  return children(toast);
3835
4094
  }
3836
4095
  //#endregion
3837
4096
  //#region src/components/toast/anatomy/root.tsx
3838
4097
  function Root$2(props) {
3839
- const group = use(GroupContext);
4098
+ const group = use(ToastGroupContext);
4099
+ const locale = use(LocaleProviderRootContext);
3840
4100
  const { element, children, toast: toastProps, ...rest } = props;
3841
- const toast = connect$21(useMachine(machine$21, {
4101
+ const toast = connect$23(useMachine(machine$23, {
3842
4102
  ...toastProps,
4103
+ dir: locale.dir,
3843
4104
  parent: group
3844
4105
  }), normalizeProps);
3845
4106
  const attributes = mergeProps(toast.getRootProps(), rest);
3846
- return /* @__PURE__ */ jsx(RootContext$7.Provider, {
4107
+ return /* @__PURE__ */ jsx(ToastRootContext$1.Provider, {
3847
4108
  value: toast,
3848
4109
  children: element ? element(attributes) : /* @__PURE__ */ jsxs("div", {
3849
4110
  ...attributes,
@@ -3858,7 +4119,7 @@ function Root$2(props) {
3858
4119
  //#endregion
3859
4120
  //#region src/components/toast/anatomy/title.tsx
3860
4121
  function Title(props) {
3861
- const toast = use(RootContext$7);
4122
+ const toast = use(ToastRootContext$1);
3862
4123
  const { element, children, ...rest } = props;
3863
4124
  const attributes = mergeProps(toast.getTitleProps(), rest);
3864
4125
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3869,7 +4130,7 @@ function Title(props) {
3869
4130
  //#endregion
3870
4131
  //#region src/components/toast/modules/anatomy.ts
3871
4132
  const Toast = Object.assign(Root$2, {
3872
- Context: RootContext$6,
4133
+ Context: ToastRootContext,
3873
4134
  Group,
3874
4135
  Message,
3875
4136
  Title,
@@ -3879,11 +4140,11 @@ const Toast = Object.assign(Root$2, {
3879
4140
  });
3880
4141
  //#endregion
3881
4142
  //#region src/components/toggle-group/modules/root-context.ts
3882
- const RootContext$5 = createContext$1();
4143
+ const ToggleGroupRootContext$1 = createContext$1();
3883
4144
  //#endregion
3884
4145
  //#region src/components/toggle-group/anatomy/item.tsx
3885
4146
  function Item$1(props) {
3886
- const toggleGroup = use(RootContext$5);
4147
+ const toggleGroup = use(ToggleGroupRootContext$1);
3887
4148
  const [itemProps, componentProps] = splitItemProps$10(props);
3888
4149
  const { element, children, ...rest } = componentProps;
3889
4150
  const attributes = mergeProps(toggleGroup.getItemProps(itemProps), rest);
@@ -3894,8 +4155,8 @@ function Item$1(props) {
3894
4155
  }
3895
4156
  //#endregion
3896
4157
  //#region src/components/toggle-group/anatomy/root-context.tsx
3897
- function RootContext$4(props) {
3898
- const toggleGroup = use(RootContext$5);
4158
+ function ToggleGroupRootContext(props) {
4159
+ const toggleGroup = use(ToggleGroupRootContext$1);
3899
4160
  const { children } = props;
3900
4161
  return children(toggleGroup);
3901
4162
  }
@@ -3904,7 +4165,7 @@ function RootContext$4(props) {
3904
4165
  function ToggleGroupRootProvider(props) {
3905
4166
  const { element, children, value: toggleGroup, ...rest } = props;
3906
4167
  const attributes = mergeProps(toggleGroup.getRootProps(), rest);
3907
- return /* @__PURE__ */ jsx(RootContext$5.Provider, {
4168
+ return /* @__PURE__ */ jsx(ToggleGroupRootContext$1.Provider, {
3908
4169
  value: toggleGroup,
3909
4170
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3910
4171
  ...attributes,
@@ -3915,19 +4176,21 @@ function ToggleGroupRootProvider(props) {
3915
4176
  //#endregion
3916
4177
  //#region src/components/toggle-group/modules/provider.ts
3917
4178
  function useToggleGroup(props = {}) {
3918
- return connect$22(useMachine(machine$22, {
4179
+ const locale = use(LocaleProviderRootContext);
4180
+ return connect$24(useMachine(machine$24, {
3919
4181
  id: useId(),
4182
+ dir: locale.dir,
3920
4183
  ...props
3921
4184
  }), normalizeProps);
3922
4185
  }
3923
4186
  //#endregion
3924
4187
  //#region src/components/toggle-group/anatomy/root.tsx
3925
4188
  function ToggleGroupRoot(props) {
3926
- const [toggleGroupProps, componentProps] = splitProps$21(props);
4189
+ const [toggleGroupProps, componentProps] = splitProps$23(props);
3927
4190
  const { element, children, ...rest } = componentProps;
3928
4191
  const toggleGroup = useToggleGroup(toggleGroupProps);
3929
4192
  const attributes = mergeProps(toggleGroup.getRootProps(), rest);
3930
- return /* @__PURE__ */ jsx(RootContext$5.Provider, {
4193
+ return /* @__PURE__ */ jsx(ToggleGroupRootContext$1.Provider, {
3931
4194
  value: toggleGroup,
3932
4195
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3933
4196
  ...attributes,
@@ -3939,16 +4202,16 @@ function ToggleGroupRoot(props) {
3939
4202
  //#region src/components/toggle-group/modules/anatomy.ts
3940
4203
  const ToggleGroup = Object.assign(ToggleGroupRoot, {
3941
4204
  Provider: ToggleGroupRootProvider,
3942
- Context: RootContext$4,
4205
+ Context: ToggleGroupRootContext,
3943
4206
  Item: Item$1
3944
4207
  });
3945
4208
  //#endregion
3946
4209
  //#region src/components/tooltip/modules/root-context.ts
3947
- const RootContext$3 = createContext$1();
4210
+ const TooltipRootContext$1 = createContext$1();
3948
4211
  //#endregion
3949
4212
  //#region src/components/tooltip/anatomy/arrow-tip.tsx
3950
4213
  function ArrowTip(props) {
3951
- const tooltip = use(RootContext$3);
4214
+ const tooltip = use(TooltipRootContext$1);
3952
4215
  const { element, children, ...rest } = props;
3953
4216
  const attributes = mergeProps(tooltip.getArrowTipProps(), rest);
3954
4217
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3959,7 +4222,7 @@ function ArrowTip(props) {
3959
4222
  //#endregion
3960
4223
  //#region src/components/tooltip/anatomy/arrow.tsx
3961
4224
  function Arrow(props) {
3962
- const tooltip = use(RootContext$3);
4225
+ const tooltip = use(TooltipRootContext$1);
3963
4226
  const { element, children, ...rest } = props;
3964
4227
  const attributes = mergeProps(tooltip.getArrowProps(), rest);
3965
4228
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3970,7 +4233,7 @@ function Arrow(props) {
3970
4233
  //#endregion
3971
4234
  //#region src/components/tooltip/anatomy/content.tsx
3972
4235
  function Content(props) {
3973
- const tooltip = use(RootContext$3);
4236
+ const tooltip = use(TooltipRootContext$1);
3974
4237
  const { element, children, ...rest } = props;
3975
4238
  const attributes = mergeProps(tooltip.getContentProps(), rest);
3976
4239
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3981,7 +4244,7 @@ function Content(props) {
3981
4244
  //#endregion
3982
4245
  //#region src/components/tooltip/anatomy/positioner.tsx
3983
4246
  function Positioner(props) {
3984
- const tooltip = use(RootContext$3);
4247
+ const tooltip = use(TooltipRootContext$1);
3985
4248
  const { element, children, ...rest } = props;
3986
4249
  const attributes = mergeProps(tooltip.getPositionerProps(), rest);
3987
4250
  return /* @__PURE__ */ jsx(Portal$1, { children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -3991,8 +4254,8 @@ function Positioner(props) {
3991
4254
  }
3992
4255
  //#endregion
3993
4256
  //#region src/components/tooltip/anatomy/root-context.tsx
3994
- function RootContext$2(props) {
3995
- const tooltip = use(RootContext$3);
4257
+ function TooltipRootContext(props) {
4258
+ const tooltip = use(TooltipRootContext$1);
3996
4259
  const { children } = props;
3997
4260
  return children(tooltip);
3998
4261
  }
@@ -4000,7 +4263,7 @@ function RootContext$2(props) {
4000
4263
  //#region src/components/tooltip/anatomy/root-provider.tsx
4001
4264
  function RootProvider$1(props) {
4002
4265
  const { children, value: tooltip } = props;
4003
- return /* @__PURE__ */ jsx(RootContext$3.Provider, {
4266
+ return /* @__PURE__ */ jsx(TooltipRootContext$1.Provider, {
4004
4267
  value: tooltip,
4005
4268
  children
4006
4269
  });
@@ -4008,18 +4271,20 @@ function RootProvider$1(props) {
4008
4271
  //#endregion
4009
4272
  //#region src/components/tooltip/modules/provider.ts
4010
4273
  function useTooltip(props = {}) {
4011
- return connect$23(useMachine(machine$23, {
4274
+ const locale = use(LocaleProviderRootContext);
4275
+ return connect$25(useMachine(machine$25, {
4012
4276
  id: useId(),
4277
+ dir: locale.dir,
4013
4278
  ...props
4014
4279
  }), normalizeProps);
4015
4280
  }
4016
4281
  //#endregion
4017
4282
  //#region src/components/tooltip/anatomy/root.tsx
4018
4283
  function Root$1(props) {
4019
- const [tooltipProps, componentProps] = splitProps$22(props);
4284
+ const [tooltipProps, componentProps] = splitProps$24(props);
4020
4285
  const { children } = componentProps;
4021
4286
  const tooltip = useTooltip(tooltipProps);
4022
- return /* @__PURE__ */ jsx(RootContext$3.Provider, {
4287
+ return /* @__PURE__ */ jsx(TooltipRootContext$1.Provider, {
4023
4288
  value: tooltip,
4024
4289
  children
4025
4290
  });
@@ -4027,7 +4292,7 @@ function Root$1(props) {
4027
4292
  //#endregion
4028
4293
  //#region src/components/tooltip/anatomy/trigger.tsx
4029
4294
  function Trigger(props) {
4030
- const tooltip = use(RootContext$3);
4295
+ const tooltip = use(TooltipRootContext$1);
4031
4296
  const { element, children, ...rest } = props;
4032
4297
  const attributes = mergeProps(tooltip.getTriggerProps(), rest);
4033
4298
  return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
@@ -4039,7 +4304,7 @@ function Trigger(props) {
4039
4304
  //#region src/components/tooltip/modules/anatomy.ts
4040
4305
  const Tooltip = Object.assign(Root$1, {
4041
4306
  Provider: RootProvider$1,
4042
- Context: RootContext$2,
4307
+ Context: TooltipRootContext,
4043
4308
  Trigger,
4044
4309
  Positioner,
4045
4310
  Content,
@@ -4048,15 +4313,15 @@ const Tooltip = Object.assign(Root$1, {
4048
4313
  });
4049
4314
  //#endregion
4050
4315
  //#region src/components/tree-view/modules/node-context.ts
4051
- const NodeContext$1 = createContext$1();
4316
+ const TreeViewNodeContext$1 = createContext$1();
4052
4317
  //#endregion
4053
4318
  //#region src/components/tree-view/modules/root-context.ts
4054
- const RootContext$1 = createContext$1();
4319
+ const TreeViewRootContext$1 = createContext$1();
4055
4320
  //#endregion
4056
4321
  //#region src/components/tree-view/anatomy/branch-content.tsx
4057
4322
  function BranchContent(props) {
4058
- const treeView = use(RootContext$1);
4059
- const nodeProps = use(NodeContext$1);
4323
+ const treeView = use(TreeViewRootContext$1);
4324
+ const nodeProps = use(TreeViewNodeContext$1);
4060
4325
  const { element, children, ...rest } = props;
4061
4326
  const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), rest);
4062
4327
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4067,8 +4332,8 @@ function BranchContent(props) {
4067
4332
  //#endregion
4068
4333
  //#region src/components/tree-view/anatomy/branch-control.tsx
4069
4334
  function BranchControl(props) {
4070
- const treeView = use(RootContext$1);
4071
- const nodeProps = use(NodeContext$1);
4335
+ const treeView = use(TreeViewRootContext$1);
4336
+ const nodeProps = use(TreeViewNodeContext$1);
4072
4337
  const { element, children, ...rest } = props;
4073
4338
  const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), rest);
4074
4339
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4079,8 +4344,8 @@ function BranchControl(props) {
4079
4344
  //#endregion
4080
4345
  //#region src/components/tree-view/anatomy/branch-indent-guide.tsx
4081
4346
  function BranchIndentGuide(props) {
4082
- const treeView = use(RootContext$1);
4083
- const nodeProps = use(NodeContext$1);
4347
+ const treeView = use(TreeViewRootContext$1);
4348
+ const nodeProps = use(TreeViewNodeContext$1);
4084
4349
  const { element, children, ...rest } = props;
4085
4350
  const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), rest);
4086
4351
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4091,8 +4356,8 @@ function BranchIndentGuide(props) {
4091
4356
  //#endregion
4092
4357
  //#region src/components/tree-view/anatomy/branch-indicator.tsx
4093
4358
  function BranchIndicator(props) {
4094
- const treeView = use(RootContext$1);
4095
- const nodeProps = use(NodeContext$1);
4359
+ const treeView = use(TreeViewRootContext$1);
4360
+ const nodeProps = use(TreeViewNodeContext$1);
4096
4361
  const { element, children = /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" }), ...rest } = props;
4097
4362
  const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), rest);
4098
4363
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -4103,8 +4368,8 @@ function BranchIndicator(props) {
4103
4368
  //#endregion
4104
4369
  //#region src/components/tree-view/anatomy/branch-text.tsx
4105
4370
  function BranchText(props) {
4106
- const treeView = use(RootContext$1);
4107
- const nodeProps = use(NodeContext$1);
4371
+ const treeView = use(TreeViewRootContext$1);
4372
+ const nodeProps = use(TreeViewNodeContext$1);
4108
4373
  const { element, children, ...rest } = props;
4109
4374
  const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), rest);
4110
4375
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -4115,8 +4380,8 @@ function BranchText(props) {
4115
4380
  //#endregion
4116
4381
  //#region src/components/tree-view/anatomy/branch.tsx
4117
4382
  function Branch(props) {
4118
- const treeView = use(RootContext$1);
4119
- const nodeProps = use(NodeContext$1);
4383
+ const treeView = use(TreeViewRootContext$1);
4384
+ const nodeProps = use(TreeViewNodeContext$1);
4120
4385
  const { element, children, ...rest } = props;
4121
4386
  const attributes = mergeProps(treeView.getBranchProps(nodeProps), rest);
4122
4387
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4127,8 +4392,8 @@ function Branch(props) {
4127
4392
  //#endregion
4128
4393
  //#region src/components/tree-view/anatomy/item.tsx
4129
4394
  function Item(props) {
4130
- const treeView = use(RootContext$1);
4131
- const nodeProps = use(NodeContext$1);
4395
+ const treeView = use(TreeViewRootContext$1);
4396
+ const nodeProps = use(TreeViewNodeContext$1);
4132
4397
  const { element, children, ...rest } = props;
4133
4398
  const attributes = mergeProps(treeView.getItemProps(nodeProps), rest);
4134
4399
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4139,7 +4404,7 @@ function Item(props) {
4139
4404
  //#endregion
4140
4405
  //#region src/components/tree-view/anatomy/label.tsx
4141
4406
  function Label(props) {
4142
- const treeView = use(RootContext$1);
4407
+ const treeView = use(TreeViewRootContext$1);
4143
4408
  const { element, children, level = 3, ...rest } = props;
4144
4409
  const attributes = mergeProps(treeView.getLabelProps(), rest);
4145
4410
  const Tag = `h${level}`;
@@ -4150,8 +4415,8 @@ function Label(props) {
4150
4415
  }
4151
4416
  //#endregion
4152
4417
  //#region src/components/tree-view/anatomy/node-context.tsx
4153
- function NodeContext(props) {
4154
- const treeView = use(NodeContext$1);
4418
+ function TreeViewNodeContext(props) {
4419
+ const treeView = use(TreeViewNodeContext$1);
4155
4420
  const { children } = props;
4156
4421
  return children(treeView);
4157
4422
  }
@@ -4159,15 +4424,15 @@ function NodeContext(props) {
4159
4424
  //#region src/components/tree-view/anatomy/node-provider.tsx
4160
4425
  function NodeProvider(props) {
4161
4426
  const { children, value: nodeProps } = props;
4162
- return /* @__PURE__ */ jsx(NodeContext$1.Provider, {
4427
+ return /* @__PURE__ */ jsx(TreeViewNodeContext$1.Provider, {
4163
4428
  value: nodeProps,
4164
4429
  children
4165
4430
  });
4166
4431
  }
4167
4432
  //#endregion
4168
4433
  //#region src/components/tree-view/anatomy/root-context.tsx
4169
- function RootContext(props) {
4170
- const treeView = use(RootContext$1);
4434
+ function TreeViewRootContext(props) {
4435
+ const treeView = use(TreeViewRootContext$1);
4171
4436
  const { children } = props;
4172
4437
  return children(treeView);
4173
4438
  }
@@ -4176,7 +4441,7 @@ function RootContext(props) {
4176
4441
  function RootProvider(props) {
4177
4442
  const { element, children, value: treeView, ...rest } = props;
4178
4443
  const attributes = mergeProps(treeView.getRootProps(), rest);
4179
- return /* @__PURE__ */ jsx(RootContext$1.Provider, {
4444
+ return /* @__PURE__ */ jsx(TreeViewRootContext$1.Provider, {
4180
4445
  value: treeView,
4181
4446
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
4182
4447
  ...attributes,
@@ -4187,19 +4452,21 @@ function RootProvider(props) {
4187
4452
  //#endregion
4188
4453
  //#region src/components/tree-view/modules/provider.ts
4189
4454
  function useTreeView(props = {}) {
4190
- return connect$24(useMachine(machine$24, {
4455
+ const locale = use(LocaleProviderRootContext);
4456
+ return connect$26(useMachine(machine$26, {
4191
4457
  id: useId(),
4458
+ dir: locale.dir,
4192
4459
  ...props
4193
4460
  }), normalizeProps);
4194
4461
  }
4195
4462
  //#endregion
4196
4463
  //#region src/components/tree-view/anatomy/root.tsx
4197
4464
  function Root(props) {
4198
- const [treeViewProps, componentProps] = splitProps$23(props);
4465
+ const [treeViewProps, componentProps] = splitProps$25(props);
4199
4466
  const { element, children, ...rest } = componentProps;
4200
4467
  const treeView = useTreeView(treeViewProps);
4201
4468
  const attributes = mergeProps(treeView.getRootProps(), rest);
4202
- return /* @__PURE__ */ jsx(RootContext$1.Provider, {
4469
+ return /* @__PURE__ */ jsx(TreeViewRootContext$1.Provider, {
4203
4470
  value: treeView,
4204
4471
  children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
4205
4472
  ...attributes,
@@ -4210,7 +4477,7 @@ function Root(props) {
4210
4477
  //#endregion
4211
4478
  //#region src/components/tree-view/anatomy/tree.tsx
4212
4479
  function Tree(props) {
4213
- const treeView = use(RootContext$1);
4480
+ const treeView = use(TreeViewRootContext$1);
4214
4481
  const { element, children, ...rest } = props;
4215
4482
  const attributes = mergeProps(treeView.getTreeProps(), rest);
4216
4483
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -4222,11 +4489,11 @@ function Tree(props) {
4222
4489
  //#region src/components/tree-view/modules/anatomy.ts
4223
4490
  const TreeView = Object.assign(Root, {
4224
4491
  Provider: RootProvider,
4225
- Context: RootContext,
4492
+ Context: TreeViewRootContext,
4226
4493
  Tree,
4227
4494
  Label,
4228
4495
  NodeProvider,
4229
- NodeContext,
4496
+ NodeContext: TreeViewNodeContext,
4230
4497
  Branch,
4231
4498
  BranchControl,
4232
4499
  BranchText,
@@ -4241,4 +4508,4 @@ function useListCollection(options) {
4241
4508
  return new ListCollection(options);
4242
4509
  }
4243
4510
  //#endregion
4244
- 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 };