@moduix/react-tailwind 1.0.0 → 1.1.0

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 (69) hide show
  1. package/dist/components/accordion/Accordion.js +13 -13
  2. package/dist/components/alert/Alert.js +12 -12
  3. package/dist/components/angle-slider/AngleSlider.js +16 -16
  4. package/dist/components/avatar/Avatar.js +7 -7
  5. package/dist/components/bleed/Bleed.js +1 -1
  6. package/dist/components/card/Card.js +33 -33
  7. package/dist/components/carousel/Carousel.d.ts +1 -1
  8. package/dist/components/carousel/Carousel.js +22 -22
  9. package/dist/components/chart/Chart.js +18 -18
  10. package/dist/components/checkbox/Checkbox.js +12 -12
  11. package/dist/components/clipboard/Clipboard.js +19 -18
  12. package/dist/components/collapsible/Collapsible.js +11 -11
  13. package/dist/components/color-picker/ColorPicker.js +47 -47
  14. package/dist/components/combobox/Combobox.js +31 -31
  15. package/dist/components/command-palette/CommandPalette.js +48 -48
  16. package/dist/components/container/Container.js +5 -5
  17. package/dist/components/date-input/DateInput.js +14 -14
  18. package/dist/components/date-picker/DatePicker.js +51 -51
  19. package/dist/components/dialog/Dialog.js +20 -20
  20. package/dist/components/drawer/Drawer.js +30 -30
  21. package/dist/components/editable/Editable.js +17 -17
  22. package/dist/components/empty/Empty.js +13 -13
  23. package/dist/components/field/Field.js +19 -19
  24. package/dist/components/file-upload/FileUpload.js +28 -28
  25. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
  26. package/dist/components/floating-panel/FloatingPanel.js +22 -22
  27. package/dist/components/floating-panel/index.d.ts +1 -0
  28. package/dist/components/hover-card/HoverCard.d.ts +1 -1
  29. package/dist/components/hover-card/HoverCard.js +11 -11
  30. package/dist/components/image-cropper/ImageCropper.js +14 -14
  31. package/dist/components/input-group/InputGroup.js +1 -1
  32. package/dist/components/lightbox/Lightbox.js +25 -25
  33. package/dist/components/listbox/Listbox.js +31 -31
  34. package/dist/components/marquee/Marquee.js +12 -12
  35. package/dist/components/menu/Menu.js +42 -42
  36. package/dist/components/navigation-menu/NavigationMenu.js +24 -24
  37. package/dist/components/number-input/NumberInput.js +16 -16
  38. package/dist/components/pagination/Pagination.js +11 -11
  39. package/dist/components/password-input/PasswordInput.js +13 -13
  40. package/dist/components/pin-input/PinInput.js +11 -11
  41. package/dist/components/popover/Popover.js +25 -25
  42. package/dist/components/progress-circular/ProgressCircular.js +16 -16
  43. package/dist/components/progress-linear/ProgressLinear.js +14 -14
  44. package/dist/components/qr-code/QrCode.js +12 -12
  45. package/dist/components/radio-group/RadioGroup.js +14 -14
  46. package/dist/components/rating-group/RatingGroup.js +11 -11
  47. package/dist/components/segment-group/SegmentGroup.js +14 -14
  48. package/dist/components/select/Select.js +33 -33
  49. package/dist/components/sidebar/Sidebar.js +51 -44
  50. package/dist/components/signature-pad/SignaturePad.js +11 -11
  51. package/dist/components/slider/Slider.js +22 -22
  52. package/dist/components/split-button/SplitButton.d.ts +6 -6
  53. package/dist/components/split-button/SplitButton.js +17 -13
  54. package/dist/components/splitter/Splitter.js +9 -9
  55. package/dist/components/steps/Steps.js +23 -23
  56. package/dist/components/swap/Swap.js +6 -6
  57. package/dist/components/switch/Switch.js +9 -9
  58. package/dist/components/table/Table.js +23 -23
  59. package/dist/components/tabs/Tabs.js +12 -12
  60. package/dist/components/tags-input/TagsInput.js +20 -20
  61. package/dist/components/timer/Timer.js +14 -14
  62. package/dist/components/toast/Toast.js +8 -8
  63. package/dist/components/toc/Toc.js +19 -19
  64. package/dist/components/toggle/Toggle.js +4 -4
  65. package/dist/components/tooltip/Tooltip.js +11 -11
  66. package/dist/components/tour/Tour.js +26 -26
  67. package/dist/components/tree-view/TreeView.js +30 -30
  68. package/dist/styles/animations.css +8 -8
  69. package/package.json +1 -1
@@ -6,67 +6,67 @@ import { cn } from "../../internal/cn.js";
6
6
  const Slider_SliderRoot = /*#__PURE__*/ forwardRef(function({ className, readOnly, ...props }, ref) {
7
7
  return /*#__PURE__*/ jsx(Slider.Root, {
8
8
  ref: ref,
9
- "data-slot": "slider-root",
10
9
  "data-readonly": readOnly ? '' : void 0,
11
10
  className: cn("group flex w-48 max-w-full flex-col gap-2 text-foreground data-disabled:opacity-50 data-[orientation=vertical]:grid data-[orientation=vertical]:h-48 data-[orientation=vertical]:w-max data-[orientation=vertical]:grid-cols-[auto_max-content] data-[orientation=vertical]:grid-rows-[auto_minmax(0,1fr)] data-[orientation=vertical]:items-center data-[orientation=vertical]:gap-x-2 data-[orientation=vertical]:[grid-template-areas:'label_value'_'control_markers']", className),
12
11
  readOnly: readOnly,
13
- ...props
12
+ ...props,
13
+ "data-slot": "slider-root"
14
14
  });
15
15
  });
16
16
  const Slider_SliderRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
17
17
  return /*#__PURE__*/ jsx(Slider.RootProvider, {
18
18
  ref: ref,
19
- "data-slot": "slider-root-provider",
20
19
  className: cn("group flex w-48 max-w-full flex-col gap-2 text-foreground data-disabled:opacity-50 data-[orientation=vertical]:grid data-[orientation=vertical]:h-48 data-[orientation=vertical]:w-max data-[orientation=vertical]:grid-cols-[auto_max-content] data-[orientation=vertical]:grid-rows-[auto_minmax(0,1fr)] data-[orientation=vertical]:items-center data-[orientation=vertical]:gap-x-2 data-[orientation=vertical]:[grid-template-areas:'label_value'_'control_markers']", className),
21
- ...props
20
+ ...props,
21
+ "data-slot": "slider-root-provider"
22
22
  });
23
23
  });
24
24
  const Slider_SliderLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
25
25
  return /*#__PURE__*/ jsx(Slider.Label, {
26
26
  ref: ref,
27
- "data-slot": "slider-label",
28
27
  className: cn('text-sm leading-5 font-normal text-foreground select-none group-data-[orientation=vertical]:[grid-area:label]', className),
29
- ...props
28
+ ...props,
29
+ "data-slot": "slider-label"
30
30
  });
31
31
  });
32
32
  const Slider_SliderValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
33
33
  return /*#__PURE__*/ jsx(Slider.ValueText, {
34
34
  ref: ref,
35
- "data-slot": "slider-value-text",
36
35
  className: cn('text-right text-sm leading-5 font-normal text-foreground group-data-[orientation=vertical]:justify-self-end group-data-[orientation=vertical]:[grid-area:value]', className),
37
- ...props
36
+ ...props,
37
+ "data-slot": "slider-value-text"
38
38
  });
39
39
  });
40
40
  const Slider_SliderControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
41
41
  return /*#__PURE__*/ jsx(Slider.Control, {
42
42
  ref: ref,
43
- "data-slot": "slider-control",
44
43
  className: cn('relative flex min-h-5 w-full cursor-pointer touch-none items-center select-none group-data-readonly:cursor-default group-data-[orientation=vertical]:[grid-area:control] data-disabled:cursor-default data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-0 data-[orientation=vertical]:w-5 data-[orientation=vertical]:flex-col', className),
45
- ...props
44
+ ...props,
45
+ "data-slot": "slider-control"
46
46
  });
47
47
  });
48
48
  const Slider_SliderTrack = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
49
49
  return /*#__PURE__*/ jsx(Slider.Track, {
50
50
  ref: ref,
51
- "data-slot": "slider-track",
52
51
  className: cn('h-1.5 w-full flex-1 overflow-hidden rounded-full bg-muted ring-1 ring-border select-none ring-inset data-invalid:ring-destructive data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5', className),
53
- ...props
52
+ ...props,
53
+ "data-slot": "slider-track"
54
54
  });
55
55
  });
56
56
  const Slider_SliderRange = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
57
57
  return /*#__PURE__*/ jsx(Slider.Range, {
58
58
  ref: ref,
59
- "data-slot": "slider-range",
60
59
  className: cn('h-full rounded-[inherit] bg-primary data-invalid:bg-destructive data-[orientation=vertical]:w-full', className),
61
- ...props
60
+ ...props,
61
+ "data-slot": "slider-range"
62
62
  });
63
63
  });
64
64
  const Slider_SliderThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
65
65
  return /*#__PURE__*/ jsx(Slider.Thumb, {
66
66
  ref: ref,
67
- "data-slot": "slider-thumb",
68
67
  className: cn('box-border flex size-4 shrink-0 items-center justify-center rounded-full border border-border bg-background shadow-sm outline-0 transition-[border-color,background-color,box-shadow] duration-200 ease-in-out select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-dragging:border-ring data-dragging:shadow-md data-dragging:ring-1 data-dragging:ring-ring data-invalid:border-destructive data-invalid:focus-visible:ring-destructive motion-reduce:transition-none', className),
69
- ...props
68
+ ...props,
69
+ "data-slot": "slider-thumb"
70
70
  });
71
71
  });
72
72
  function SliderThumbs({ className }) {
@@ -80,25 +80,25 @@ function SliderThumbs({ className }) {
80
80
  const Slider_SliderMarkerGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
81
81
  return /*#__PURE__*/ jsx(Slider.MarkerGroup, {
82
82
  ref: ref,
83
- "data-slot": "slider-marker-group",
84
83
  className: cn('mt-2 flex justify-between group-data-[orientation=vertical]:m-0 group-data-[orientation=vertical]:h-full group-data-[orientation=vertical]:flex-col group-data-[orientation=vertical]:[grid-area:markers]', className),
85
- ...props
84
+ ...props,
85
+ "data-slot": "slider-marker-group"
86
86
  });
87
87
  });
88
88
  const Slider_SliderMarker = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
89
89
  return /*#__PURE__*/ jsx(Slider.Marker, {
90
90
  ref: ref,
91
- "data-slot": "slider-marker",
92
91
  className: cn("relative text-xs leading-4 text-muted-foreground before:absolute before:start-1/2 before:-top-2 before:size-1 before:-translate-x-1/2 before:rounded-full before:bg-border before:content-[''] data-[orientation=vertical]:before:-start-2 data-[orientation=vertical]:before:top-1/2 data-[orientation=vertical]:before:-translate-y-1/2 data-[state=at-value]:before:bg-primary group-data-invalid:data-[state=at-value]:before:bg-destructive data-[state=under-value]:before:bg-primary group-data-invalid:data-[state=under-value]:before:bg-destructive", className),
93
- ...props
92
+ ...props,
93
+ "data-slot": "slider-marker"
94
94
  });
95
95
  });
96
96
  const Slider_SliderDraggingIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
97
97
  return /*#__PURE__*/ jsx(Slider.DraggingIndicator, {
98
98
  ref: ref,
99
- "data-slot": "slider-dragging-indicator",
100
99
  className: cn('pointer-events-none -top-8 rounded-sm bg-foreground px-2 py-1 text-xs leading-none font-medium whitespace-nowrap text-background', className),
101
- ...props
100
+ ...props,
101
+ "data-slot": "slider-dragging-indicator"
102
102
  });
103
103
  });
104
104
  const Slider_Slider = Object.assign(Slider_SliderRoot, {
@@ -1,6 +1,6 @@
1
+ import { Menu as MenuPrimitive } from '@ark-ui/react/menu';
1
2
  import type { ComponentProps, ReactNode } from 'react';
2
3
  import { Button } from '../button/index.js';
3
- import { Menu } from '../menu/index.js';
4
4
  type ButtonProps = ComponentProps<typeof Button>;
5
5
  type SplitButtonVariant = Exclude<NonNullable<ButtonProps['variant']>, 'link'>;
6
6
  type SplitButtonSize = Exclude<NonNullable<ButtonProps['size']>, 'icon-sm' | 'icon-md' | 'icon-lg'>;
@@ -8,11 +8,11 @@ type SplitButtonActionProps = Omit<ButtonProps, 'size' | 'variant'> & {
8
8
  size?: SplitButtonSize;
9
9
  variant?: SplitButtonVariant;
10
10
  };
11
- type SplitButtonTriggerProps = Omit<ComponentProps<typeof Menu.Trigger>, 'asChild'> & {
11
+ type SplitButtonTriggerProps = Omit<ComponentProps<typeof MenuPrimitive.Trigger>, 'asChild'> & {
12
12
  size?: SplitButtonSize;
13
13
  variant?: SplitButtonVariant;
14
14
  };
15
- declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<import("@ark-ui/react/menu").MenuRootProps & import("../../internal/overlayPortal.js").OverlayPortalProps, "children"> & {
15
+ declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.RootProps & import("../../internal/overlayPortal.js").OverlayPortalProps, "children"> & {
16
16
  'aria-label'?: string;
17
17
  'aria-labelledby'?: string;
18
18
  children?: ReactNode;
@@ -20,7 +20,7 @@ declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<import
20
20
  size?: SplitButtonSize;
21
21
  variant?: SplitButtonVariant;
22
22
  } & import("react").RefAttributes<HTMLDivElement>> & {
23
- Root: import("react").ForwardRefExoticComponent<Omit<import("@ark-ui/react/menu").MenuRootProps & import("../../internal/overlayPortal.js").OverlayPortalProps, "children"> & {
23
+ Root: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.RootProps & import("../../internal/overlayPortal.js").OverlayPortalProps, "children"> & {
24
24
  'aria-label'?: string;
25
25
  'aria-labelledby'?: string;
26
26
  children?: ReactNode;
@@ -30,7 +30,7 @@ declare const SplitButton: import("react").ForwardRefExoticComponent<Omit<import
30
30
  } & import("react").RefAttributes<HTMLDivElement>>;
31
31
  Action: import("react").ForwardRefExoticComponent<Omit<SplitButtonActionProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
32
32
  Trigger: import("react").ForwardRefExoticComponent<Omit<SplitButtonTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
33
- Positioner: import("react").ForwardRefExoticComponent<Omit<Omit<import("@ark-ui/react/menu").MenuPositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
34
- Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("@ark-ui/react/menu").MenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
33
+ Positioner: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
34
+ Content: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
35
35
  };
36
36
  export { SplitButton };
@@ -1,11 +1,13 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { Menu } from "@ark-ui/react/menu";
3
4
  import { cva } from "class-variance-authority";
4
5
  import { createContext, forwardRef, useContext } from "react";
5
6
  import { cn } from "../../internal/cn.js";
6
7
  import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
8
+ import { OverlayPortal } from "../../internal/overlayPortal.js";
7
9
  import { Button } from "../button/index.js";
8
- import { Menu } from "../menu/index.js";
10
+ import { Menu as index_js_Menu } from "../menu/index.js";
9
11
  const splitButtonTriggerVariants = cva("relative min-w-0 -ms-px rounded-s-none before:pointer-events-none before:absolute before:inset-y-1.5 before:start-0 before:w-px before:bg-current before:opacity-[0.16] before:content-['']", {
10
12
  variants: {
11
13
  size: {
@@ -41,7 +43,7 @@ const SplitButton_SplitButtonRoot = /*#__PURE__*/ forwardRef(function({ children
41
43
  size,
42
44
  variant
43
45
  },
44
- children: /*#__PURE__*/ jsx(Menu.Root, {
46
+ children: /*#__PURE__*/ jsx(index_js_Menu.Root, {
45
47
  positioning: {
46
48
  placement: 'bottom-end',
47
49
  gutter: 4,
@@ -66,11 +68,11 @@ const SplitButton_SplitButtonAction = /*#__PURE__*/ forwardRef(function({ classN
66
68
  const context = useSplitButtonContext('SplitButton.Action');
67
69
  return /*#__PURE__*/ jsx(Button, {
68
70
  ref: ref,
69
- "data-slot": "split-button-action",
70
71
  size: size ?? context.size,
71
72
  variant: variant ?? context.variant,
72
73
  className: cn('rounded-e-none', className),
73
- ...props
74
+ ...props,
75
+ "data-slot": "split-button-action"
74
76
  });
75
77
  });
76
78
  const SplitButton_SplitButtonTrigger = /*#__PURE__*/ forwardRef(function({ children, className, size, variant, 'aria-label': ariaLabel, ...props }, ref) {
@@ -81,13 +83,13 @@ const SplitButton_SplitButtonTrigger = /*#__PURE__*/ forwardRef(function({ child
81
83
  return /*#__PURE__*/ jsx(Menu.Trigger, {
82
84
  ref: ref,
83
85
  asChild: true,
84
- "data-slot": "split-button-trigger",
85
86
  "aria-label": isIconOnly ? ariaLabel ?? 'More actions' : ariaLabel,
86
87
  className: cn(splitButtonTriggerVariants({
87
88
  size: resolvedSize,
88
89
  variant: resolvedVariant
89
90
  }), className),
90
91
  ...props,
92
+ "data-slot": "split-button-trigger",
91
93
  children: /*#__PURE__*/ jsx(Button, {
92
94
  size: resolvedSize,
93
95
  variant: resolvedVariant,
@@ -96,21 +98,23 @@ const SplitButton_SplitButtonTrigger = /*#__PURE__*/ forwardRef(function({ child
96
98
  });
97
99
  });
98
100
  const SplitButton_SplitButtonPositioner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
99
- return /*#__PURE__*/ jsx(Menu.Positioner, {
100
- ref: ref,
101
- "data-slot": "split-button-positioner",
102
- className: className,
103
- ...props
101
+ return /*#__PURE__*/ jsx(OverlayPortal, {
102
+ children: /*#__PURE__*/ jsx(Menu.Positioner, {
103
+ ref: ref,
104
+ className: cn('z-[var(--z-index)] w-[var(--positioner-width,auto)] max-w-[var(--available-width)] outline-0', className),
105
+ ...props,
106
+ "data-slot": "split-button-positioner"
107
+ })
104
108
  });
105
109
  });
106
110
  const SplitButton_SplitButtonContent = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
107
111
  return /*#__PURE__*/ jsx(Menu.Content, {
108
112
  ref: ref,
109
113
  asChild: asChild,
110
- "data-slot": "split-button-content",
111
- className: className,
114
+ className: cn('relative z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] flex max-w-[min(20rem,var(--available-width,100vw))] min-w-[min(max(var(--reference-width,0px),12rem),var(--available-width,100vw))] origin-[var(--transform-origin)] flex-col overflow-visible rounded-md bg-popover py-1 text-popover-foreground shadow-lg outline-1 outline-border [--arrow-background:var(--color-popover)] [--arrow-size:0.625rem] data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
112
115
  ...props,
113
- children: asChild ? children : /*#__PURE__*/ jsx(Menu.Viewport, {
116
+ "data-slot": "split-button-content",
117
+ children: asChild ? children : /*#__PURE__*/ jsx(index_js_Menu.Viewport, {
114
118
  children: children
115
119
  })
116
120
  });
@@ -6,52 +6,52 @@ import { cn } from "../../internal/cn.js";
6
6
  const Splitter_SplitterRoot = /*#__PURE__*/ forwardRef(function({ className, style, ...props }, ref) {
7
7
  return /*#__PURE__*/ jsx(Splitter.Root, {
8
8
  ref: ref,
9
- "data-slot": "splitter-root",
10
9
  className: cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', className),
11
10
  style: {
12
11
  width: void 0,
13
12
  height: void 0,
14
13
  ...style
15
14
  },
16
- ...props
15
+ ...props,
16
+ "data-slot": "splitter-root"
17
17
  });
18
18
  });
19
19
  const Splitter_SplitterRootProvider = /*#__PURE__*/ forwardRef(function({ className, style, ...props }, ref) {
20
20
  return /*#__PURE__*/ jsx(Splitter.RootProvider, {
21
21
  ref: ref,
22
- "data-slot": "splitter-root-provider",
23
22
  className: cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', className),
24
23
  style: {
25
24
  width: void 0,
26
25
  height: void 0,
27
26
  ...style
28
27
  },
29
- ...props
28
+ ...props,
29
+ "data-slot": "splitter-root-provider"
30
30
  });
31
31
  });
32
32
  const Splitter_SplitterPanel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
33
33
  return /*#__PURE__*/ jsx(Splitter.Panel, {
34
34
  ref: ref,
35
- "data-slot": "splitter-panel",
36
35
  className: cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none group-data-[orientation=vertical]/splitter:min-h-0 data-dragging:select-none', className),
37
- ...props
36
+ ...props,
37
+ "data-slot": "splitter-panel"
38
38
  });
39
39
  });
40
40
  const Splitter_SplitterResizeTriggerIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
41
41
  return /*#__PURE__*/ jsx(Splitter.ResizeTriggerIndicator, {
42
42
  ref: ref,
43
- "data-slot": "splitter-resize-trigger-indicator",
44
43
  className: cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs', className),
45
- ...props
44
+ ...props,
45
+ "data-slot": "splitter-resize-trigger-indicator"
46
46
  });
47
47
  });
48
48
  const Splitter_SplitterResizeTrigger = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
49
49
  return /*#__PURE__*/ jsx(Splitter.ResizeTrigger, {
50
50
  ref: ref,
51
51
  asChild: asChild,
52
- "data-slot": "splitter-resize-trigger",
53
52
  className: cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", className),
54
53
  ...props,
54
+ "data-slot": "splitter-resize-trigger",
55
55
  children: void 0 !== children || asChild ? children : /*#__PURE__*/ jsx(Splitter_SplitterResizeTriggerIndicator, {})
56
56
  });
57
57
  });
@@ -7,99 +7,99 @@ import { CheckIcon } from "../../internal/icons/ui/index.js";
7
7
  const Steps_StepsRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
8
8
  return /*#__PURE__*/ jsx(Steps.Root, {
9
9
  ref: ref,
10
- "data-slot": "steps-root",
11
10
  className: cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', className),
12
- ...props
11
+ ...props,
12
+ "data-slot": "steps-root"
13
13
  });
14
14
  });
15
15
  const Steps_StepsRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
16
16
  return /*#__PURE__*/ jsx(Steps.RootProvider, {
17
17
  ref: ref,
18
- "data-slot": "steps-root-provider",
19
18
  className: cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', className),
20
- ...props
19
+ ...props,
20
+ "data-slot": "steps-root-provider"
21
21
  });
22
22
  });
23
23
  const Steps_StepsList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
24
24
  return /*#__PURE__*/ jsx(Steps.List, {
25
25
  ref: ref,
26
- "data-slot": "steps-list",
27
26
  className: cn('flex w-full min-w-0 data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:items-center data-[orientation=vertical]:w-fit data-[orientation=vertical]:flex-none data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-start data-[orientation=vertical]:gap-4 max-[40rem]:data-[orientation=horizontal]:[scrollbar-width:thin] max-[40rem]:data-[orientation=horizontal]:overflow-x-auto', className),
28
- ...props
27
+ ...props,
28
+ "data-slot": "steps-list"
29
29
  });
30
30
  });
31
31
  const Steps_StepsItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
32
32
  return /*#__PURE__*/ jsx(Steps.Item, {
33
33
  ref: ref,
34
- "data-slot": "steps-item",
35
34
  className: cn('group/steps-item relative flex min-w-0 flex-1 items-center gap-3 last:flex-none data-[orientation=vertical]:min-h-16 data-[orientation=vertical]:flex-none data-[orientation=vertical]:items-start max-[40rem]:data-[orientation=horizontal]:flex-none', className),
36
- ...props
35
+ ...props,
36
+ "data-slot": "steps-item"
37
37
  });
38
38
  });
39
39
  const Steps_StepsTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
40
40
  return /*#__PURE__*/ jsx(Steps.Trigger, {
41
41
  ref: ref,
42
- "data-slot": "steps-trigger",
43
42
  className: cn('group/steps-trigger relative z-1 inline-flex min-w-0 cursor-pointer items-center gap-3 rounded-md border-0 bg-transparent p-0 text-left text-inherit no-underline outline-none select-none [font:inherit] focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:items-start', className),
44
- ...props
43
+ ...props,
44
+ "data-slot": "steps-trigger"
45
45
  });
46
46
  });
47
47
  const Steps_StepsIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
48
48
  const item = useStepsItemContext();
49
49
  return /*#__PURE__*/ jsx(Steps.Indicator, {
50
50
  ref: ref,
51
- "data-slot": "steps-indicator",
52
51
  className: cn('box-border inline-flex size-8 flex-none items-center justify-center rounded-full border border-border bg-background text-sm leading-none font-semibold text-muted-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out data-complete:border-foreground data-complete:bg-foreground data-complete:text-background data-current:border-foreground data-current:bg-background data-current:text-foreground motion-reduce:transition-none [&_svg]:size-3.5 [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:border-foreground [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:text-foreground', className),
53
52
  ...props,
53
+ "data-slot": "steps-indicator",
54
54
  children: children ?? (item.completed ? /*#__PURE__*/ jsx(CheckIcon, {}) : item.index + 1)
55
55
  });
56
56
  });
57
57
  const Steps_StepsSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
58
58
  return /*#__PURE__*/ jsx(Steps.Separator, {
59
59
  ref: ref,
60
- "data-slot": "steps-separator",
61
60
  className: cn('pointer-events-none mx-2 h-px min-w-8 flex-auto bg-border group-last/steps-item:hidden data-complete:bg-foreground data-[orientation=vertical]:absolute data-[orientation=vertical]:start-[15.5px] data-[orientation=vertical]:top-10 data-[orientation=vertical]:-bottom-4 data-[orientation=vertical]:m-0 data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px data-[orientation=vertical]:min-w-0', className),
62
- ...props
61
+ ...props,
62
+ "data-slot": "steps-separator"
63
63
  });
64
64
  });
65
65
  const Steps_StepsContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
66
66
  return /*#__PURE__*/ jsx(Steps.Content, {
67
67
  ref: ref,
68
- "data-slot": "steps-content",
69
68
  className: cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-sm leading-5 text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", className),
70
- ...props
69
+ ...props,
70
+ "data-slot": "steps-content"
71
71
  });
72
72
  });
73
73
  const Steps_StepsCompletedContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
74
74
  return /*#__PURE__*/ jsx(Steps.CompletedContent, {
75
75
  ref: ref,
76
- "data-slot": "steps-completed-content",
77
76
  className: cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-center text-sm leading-5 font-medium text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", className),
78
- ...props
77
+ ...props,
78
+ "data-slot": "steps-completed-content"
79
79
  });
80
80
  });
81
81
  const Steps_StepsPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
82
82
  return /*#__PURE__*/ jsx(Steps.PrevTrigger, {
83
83
  ref: ref,
84
- "data-slot": "steps-prev-trigger",
85
84
  className: cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 text-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-accent', className),
86
- ...props
85
+ ...props,
86
+ "data-slot": "steps-prev-trigger"
87
87
  });
88
88
  });
89
89
  const Steps_StepsNextTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
90
90
  return /*#__PURE__*/ jsx(Steps.NextTrigger, {
91
91
  ref: ref,
92
- "data-slot": "steps-next-trigger",
93
92
  className: cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-foreground bg-foreground px-3 py-1.5 text-sm leading-5 text-background transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none', className),
94
- ...props
93
+ ...props,
94
+ "data-slot": "steps-next-trigger"
95
95
  });
96
96
  });
97
97
  const Steps_StepsProgress = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
98
98
  return /*#__PURE__*/ jsx(Steps.Progress, {
99
99
  ref: ref,
100
- "data-slot": "steps-progress",
101
100
  className: cn("relative block h-0.5 w-full overflow-hidden rounded-full bg-border before:absolute before:inset-y-0 before:start-0 before:w-[var(--percent,0%)] before:rounded-[inherit] before:bg-foreground before:transition-[width] before:duration-200 before:ease-in-out before:content-[''] motion-reduce:before:transition-none", className),
102
- ...props
101
+ ...props,
102
+ "data-slot": "steps-progress"
103
103
  });
104
104
  });
105
105
  const Steps_Steps = Object.assign(Steps_StepsRoot, {
@@ -6,27 +6,27 @@ import { cn } from "../../internal/cn.js";
6
6
  const Swap_SwapRoot = /*#__PURE__*/ forwardRef(function({ animation = 'scale', className, ...props }, ref) {
7
7
  return /*#__PURE__*/ jsx(Swap.Root, {
8
8
  ref: ref,
9
- "data-slot": "swap-root",
10
9
  "data-animation": animation,
11
10
  className: cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", className),
12
- ...props
11
+ ...props,
12
+ "data-slot": "swap-root"
13
13
  });
14
14
  });
15
15
  const Swap_SwapRootProvider = /*#__PURE__*/ forwardRef(function({ animation = 'scale', className, ...props }, ref) {
16
16
  return /*#__PURE__*/ jsx(Swap.RootProvider, {
17
17
  ref: ref,
18
- "data-slot": "swap-root-provider",
19
18
  "data-animation": animation,
20
19
  className: cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", className),
21
- ...props
20
+ ...props,
21
+ "data-slot": "swap-root-provider"
22
22
  });
23
23
  });
24
24
  const Swap_SwapIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
25
25
  return /*#__PURE__*/ jsx(Swap.Indicator, {
26
26
  ref: ref,
27
- "data-slot": "swap-indicator",
28
27
  className: cn('inline-flex items-center justify-center text-inherit [grid-area:swap] group-data-[animation=flip]/swap:[backface-visibility:hidden] group-data-[animation=fade]/swap:data-[state=closed]:animate-moduix-swap-fade-exit group-data-[animation=flip]/swap:data-[state=closed]:animate-moduix-swap-flip-exit group-data-[animation=rotate]/swap:data-[state=closed]:animate-moduix-swap-rotate-exit group-data-[animation=scale]/swap:data-[state=closed]:animate-moduix-swap-scale-exit group-data-[animation=fade]/swap:data-[state=open]:animate-moduix-swap-fade-enter group-data-[animation=flip]/swap:data-[state=open]:animate-moduix-swap-flip-enter group-data-[animation=rotate]/swap:data-[state=open]:animate-moduix-swap-rotate-enter group-data-[animation=scale]/swap:data-[state=open]:animate-moduix-swap-scale-enter motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
29
- ...props
28
+ ...props,
29
+ "data-slot": "swap-indicator"
30
30
  });
31
31
  });
32
32
  const Swap_Swap = Object.assign(Swap_SwapRoot, {
@@ -6,44 +6,44 @@ import { cn } from "../../internal/cn.js";
6
6
  const Switch_SwitchRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
7
7
  return /*#__PURE__*/ jsx(Switch.Root, {
8
8
  ref: ref,
9
- "data-slot": "switch-root",
10
9
  "data-size": size,
11
10
  className: cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
12
- ...props
11
+ ...props,
12
+ "data-slot": "switch-root"
13
13
  });
14
14
  });
15
15
  const Switch_SwitchRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
16
16
  return /*#__PURE__*/ jsx(Switch.RootProvider, {
17
17
  ref: ref,
18
- "data-slot": "switch-root-provider",
19
18
  "data-size": size,
20
19
  className: cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
21
- ...props
20
+ ...props,
21
+ "data-slot": "switch-root-provider"
22
22
  });
23
23
  });
24
24
  const Switch_SwitchControl = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
25
25
  return /*#__PURE__*/ jsx(Switch.Control, {
26
26
  ref: ref,
27
- "data-slot": "switch-control",
28
27
  className: cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent relative inline-flex h-control-xs w-11 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 leading-none outline-0 transition-[background-color,border-color,opacity] duration-200 ease-in-out select-none group-data-[size=lg]/switch:h-7 group-data-[size=lg]/switch:w-13 group-data-[size=sm]/switch:h-5 group-data-[size=sm]/switch:w-9 group-data-[size=xl]/switch:h-control-sm group-data-[size=xl]/switch:w-15 group-data-[size=xs]/switch:h-4 group-data-[size=xs]/switch:w-7 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary motion-reduce:transition-none", className),
29
28
  ...props,
29
+ "data-slot": "switch-control",
30
30
  children: children ?? /*#__PURE__*/ jsx(Switch_SwitchThumb, {})
31
31
  });
32
32
  });
33
33
  const Switch_SwitchThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
34
34
  return /*#__PURE__*/ jsx(Switch.Thumb, {
35
35
  ref: ref,
36
- "data-slot": "switch-thumb",
37
36
  className: cn('inline-flex size-5 translate-x-0 items-center justify-center rounded-full border-transparent bg-background text-muted shadow-sm transition-[translate,background-color,color] duration-200 ease-in-out group-data-[size=lg]/switch:size-control-xs group-data-[size=sm]/switch:size-4 group-data-[size=xl]/switch:size-7 group-data-[size=xs]/switch:size-3 data-[state=checked]:translate-x-[18px] data-[state=checked]:bg-primary-foreground data-[state=checked]:text-primary group-data-[size=lg]/switch:data-[state=checked]:translate-x-[22px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=xl]/switch:data-[state=checked]:translate-x-[26px] group-data-[size=xs]/switch:data-[state=checked]:translate-x-[10px] motion-reduce:transition-none rtl:data-[state=checked]:-translate-x-[18px] group-data-[size=lg]/switch:rtl:data-[state=checked]:-translate-x-[22px] group-data-[size=sm]/switch:rtl:data-[state=checked]:-translate-x-[14px] group-data-[size=xl]/switch:rtl:data-[state=checked]:-translate-x-[26px] group-data-[size=xs]/switch:rtl:data-[state=checked]:-translate-x-[10px] [&>svg]:block [&>svg]:size-[65%] [&>svg]:shrink-0', className),
38
- ...props
37
+ ...props,
38
+ "data-slot": "switch-thumb"
39
39
  });
40
40
  });
41
41
  const Switch_SwitchLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
42
42
  return /*#__PURE__*/ jsx(Switch.Label, {
43
43
  ref: ref,
44
- "data-slot": "switch-label",
45
44
  className: cn('text-sm leading-5 font-medium text-foreground select-none', className),
46
- ...props
45
+ ...props,
46
+ "data-slot": "switch-label"
47
47
  });
48
48
  });
49
49
  const Switch_Switch = Object.assign(Switch_SwitchRoot, {