@moduix/react 2.2.4 → 2.3.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 (131) hide show
  1. package/README.md +1 -1
  2. package/dist/components/accordion/Accordion_module.css +12 -1
  3. package/dist/components/alert/Alert.d.ts +1 -1
  4. package/dist/components/alert/Alert.js +1 -1
  5. package/dist/components/alert/Alert_module.css +22 -48
  6. package/dist/components/angle-slider/AngleSlider.d.ts +9 -3
  7. package/dist/components/angle-slider/AngleSlider.js +34 -10
  8. package/dist/components/angle-slider/AngleSlider_module.css +24 -5
  9. package/dist/components/aspect-ratio/AspectRatio.js +3 -3
  10. package/dist/components/aspect-ratio/AspectRatio_module.css +9 -2
  11. package/dist/components/avatar/Avatar.d.ts +2 -2
  12. package/dist/components/avatar/Avatar.js +39 -3
  13. package/dist/components/avatar/Avatar.module.js +2 -1
  14. package/dist/components/avatar/Avatar_module.css +8 -1
  15. package/dist/components/badge/Badge.d.ts +1 -0
  16. package/dist/components/badge/Badge.js +15 -5
  17. package/dist/components/badge/Badge_module.css +45 -30
  18. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +4 -6
  19. package/dist/components/breadcrumbs/Breadcrumbs.js +4 -3
  20. package/dist/components/breadcrumbs/Breadcrumbs_module.css +1 -1
  21. package/dist/components/button/Button.js +9 -1
  22. package/dist/components/button/Button_module.css +0 -7
  23. package/dist/components/card/Card.d.ts +1 -0
  24. package/dist/components/card/Card.js +11 -0
  25. package/dist/components/card/Card.module.js +1 -0
  26. package/dist/components/card/Card_module.css +79 -29
  27. package/dist/components/carousel/Carousel_module.css +27 -5
  28. package/dist/components/chart/Chart.d.ts +17 -0
  29. package/dist/components/chart/Chart.js +156 -0
  30. package/dist/components/chart/Chart.module.js +18 -0
  31. package/dist/components/chart/Chart_module.css +138 -0
  32. package/dist/components/chart/index.d.ts +1 -0
  33. package/dist/components/chart/index.js +1 -0
  34. package/dist/components/checkbox/Checkbox.js +9 -3
  35. package/dist/components/checkbox/Checkbox_module.css +11 -3
  36. package/dist/components/clipboard/Clipboard_module.css +13 -1
  37. package/dist/components/close-button/CloseButton.js +14 -3
  38. package/dist/components/collapsible/Collapsible_module.css +11 -0
  39. package/dist/components/color-picker/ColorPicker.js +16 -6
  40. package/dist/components/color-picker/ColorPicker.module.js +2 -0
  41. package/dist/components/color-picker/ColorPicker_module.css +84 -9
  42. package/dist/components/combobox/Combobox.d.ts +1 -1
  43. package/dist/components/combobox/Combobox.js +2 -1
  44. package/dist/components/combobox/Combobox_module.css +1 -1
  45. package/dist/components/command-palette/CommandPalette.js +10 -18
  46. package/dist/components/command-palette/CommandPalette.module.js +0 -1
  47. package/dist/components/command-palette/CommandPalette_module.css +5 -15
  48. package/dist/components/container/Container_module.css +11 -11
  49. package/dist/components/date-picker/DatePicker.js +15 -6
  50. package/dist/components/dialog/Dialog.d.ts +3 -6
  51. package/dist/components/dialog/Dialog.js +19 -15
  52. package/dist/components/dialog/Dialog_module.css +12 -1
  53. package/dist/components/drawer/Drawer.d.ts +3 -6
  54. package/dist/components/drawer/Drawer.js +19 -15
  55. package/dist/components/drawer/Drawer_module.css +17 -6
  56. package/dist/components/empty/Empty_module.css +2 -2
  57. package/dist/components/field/Field_module.css +4 -0
  58. package/dist/components/fieldset/Fieldset_module.css +3 -0
  59. package/dist/components/file-upload/FileUpload.js +1 -1
  60. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -2
  61. package/dist/components/floating-panel/FloatingPanel.js +7 -5
  62. package/dist/components/heading/Heading.js +2 -2
  63. package/dist/components/highlight/Highlight.js +2 -2
  64. package/dist/components/hover-card/HoverCard.js +0 -2
  65. package/dist/components/hover-card/HoverCard_module.css +19 -8
  66. package/dist/components/image/Image.d.ts +6 -2
  67. package/dist/components/image/Image.js +2 -1
  68. package/dist/components/image-cropper/ImageCropper_module.css +0 -1
  69. package/dist/components/input/Input_module.css +2 -2
  70. package/dist/components/input-group/InputGroup.js +7 -7
  71. package/dist/components/kbd/Kbd.js +1 -0
  72. package/dist/components/lightbox/Lightbox.d.ts +5 -8
  73. package/dist/components/lightbox/Lightbox.js +20 -16
  74. package/dist/components/lightbox/Lightbox_module.css +7 -0
  75. package/dist/components/list/List_module.css +3 -4
  76. package/dist/components/listbox/Listbox.d.ts +3 -6
  77. package/dist/components/listbox/Listbox.js +15 -12
  78. package/dist/components/listbox/Listbox_module.css +2 -2
  79. package/dist/components/menu/Menu.d.ts +4 -8
  80. package/dist/components/menu/Menu.js +25 -20
  81. package/dist/components/menu/Menu_module.css +10 -0
  82. package/dist/components/native-select/NativeSelect_module.css +1 -1
  83. package/dist/components/pagination/Pagination.js +2 -2
  84. package/dist/components/pagination/Pagination_module.css +1 -1
  85. package/dist/components/password-input/PasswordInput_module.css +4 -4
  86. package/dist/components/popover/Popover.d.ts +4 -7
  87. package/dist/components/popover/Popover.js +24 -18
  88. package/dist/components/popover/Popover_module.css +18 -8
  89. package/dist/components/progress-circular/ProgressCircular_module.css +8 -1
  90. package/dist/components/progress-linear/ProgressLinear_module.css +1 -0
  91. package/dist/components/qr-code/QrCode_module.css +2 -3
  92. package/dist/components/radio-group/RadioGroup_module.css +1 -1
  93. package/dist/components/scroll-area/ScrollArea_module.css +15 -0
  94. package/dist/components/segment-group/SegmentGroup.module.js +1 -1
  95. package/dist/components/segment-group/SegmentGroup_module.css +4 -4
  96. package/dist/components/select/Select.d.ts +3 -6
  97. package/dist/components/select/Select.js +16 -12
  98. package/dist/components/select/Select_module.css +15 -1
  99. package/dist/components/separator/Separator.js +2 -2
  100. package/dist/components/separator/Separator_module.css +3 -3
  101. package/dist/components/sidebar/Sidebar.js +1 -1
  102. package/dist/components/sidebar/Sidebar_module.css +9 -8
  103. package/dist/components/signature-pad/SignaturePad.d.ts +3 -5
  104. package/dist/components/signature-pad/SignaturePad.js +44 -18
  105. package/dist/components/simple-grid/SimpleGrid.js +1 -0
  106. package/dist/components/slider/Slider_module.css +9 -5
  107. package/dist/components/split-button/SplitButton.d.ts +4 -0
  108. package/dist/components/split-button/SplitButton.js +4 -1
  109. package/dist/components/splitter/Splitter.js +3 -2
  110. package/dist/components/splitter/Splitter_module.css +21 -14
  111. package/dist/components/swap/Swap_module.css +22 -22
  112. package/dist/components/switch/Switch.js +9 -3
  113. package/dist/components/switch/Switch_module.css +30 -23
  114. package/dist/components/table/Table_module.css +15 -11
  115. package/dist/components/tabs/Tabs.js +5 -2
  116. package/dist/components/tag/Tag_module.css +17 -14
  117. package/dist/components/text/Text.js +1 -1
  118. package/dist/components/text/Text_module.css +2 -1
  119. package/dist/components/timer/Timer.d.ts +2 -4
  120. package/dist/components/timer/Timer.js +5 -4
  121. package/dist/components/toast/Toast_module.css +37 -43
  122. package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
  123. package/dist/components/toggle-group/ToggleGroup_module.css +10 -7
  124. package/dist/components/tooltip/Tooltip_module.css +11 -1
  125. package/dist/components/tour/Tour.d.ts +1 -1
  126. package/dist/components/tour/Tour.js +2 -1
  127. package/dist/components/tour/Tour_module.css +16 -4
  128. package/dist/components/tree-view/TreeView.d.ts +2 -2
  129. package/dist/components/tree-view/TreeView_module.css +1 -1
  130. package/dist/styles/reset.css +33 -0
  131. package/package.json +27 -15
@@ -17,13 +17,13 @@ const Heading_HeadingRoot = /*#__PURE__*/ forwardRef(function({ as, asChild, siz
17
17
  return /*#__PURE__*/ jsx(Element, {
18
18
  ref: ref,
19
19
  asChild: asChild,
20
+ ...props,
20
21
  "data-scope": "heading",
21
22
  "data-part": "root",
22
23
  "data-slot": "heading-root",
23
24
  "data-size": size,
24
25
  "data-weight": weight,
25
- className: clsx(Heading_module.root, normalizeClassName(className)),
26
- ...props
26
+ className: clsx(Heading_module.root, normalizeClassName(className))
27
27
  });
28
28
  });
29
29
  const Heading = Object.assign(Heading_HeadingRoot, {
@@ -6,10 +6,10 @@ import Highlight_module from "./Highlight.module.js";
6
6
  function HighlightRoot({ className, ...props }) {
7
7
  return /*#__PURE__*/ jsx(Highlight, {
8
8
  className: clsx(Highlight_module.root, normalizeClassName(className)),
9
+ ...props,
9
10
  "data-scope": "highlight",
10
11
  "data-part": "root",
11
- "data-slot": "highlight-root",
12
- ...props
12
+ "data-slot": "highlight-root"
13
13
  });
14
14
  }
15
15
  const Highlight_Highlight = Object.assign(HighlightRoot, {
@@ -11,7 +11,6 @@ function HoverCardRoot({ lazyMount = true, portalled, portalRef, unmountOnExit =
11
11
  portalled: portalled,
12
12
  portalRef: portalRef,
13
13
  children: /*#__PURE__*/ jsx(HoverCard.Root, {
14
- "data-slot": "hover-card-root",
15
14
  lazyMount: lazyMount,
16
15
  unmountOnExit: unmountOnExit,
17
16
  ...props
@@ -23,7 +22,6 @@ function HoverCardRootProvider({ lazyMount = true, portalled, portalRef, unmount
23
22
  portalled: portalled,
24
23
  portalRef: portalRef,
25
24
  children: /*#__PURE__*/ jsx(HoverCard.RootProvider, {
26
- "data-slot": "hover-card-root-provider",
27
25
  lazyMount: lazyMount,
28
26
  unmountOnExit: unmountOnExit,
29
27
  ...props
@@ -1,14 +1,14 @@
1
1
  @layer moduix.components {
2
2
  .trigger-lDTCiV {
3
- --moduix-hover-card-trigger-current-color: var(--moduix-hover-card-trigger-color, var(--moduix-color-primary));
3
+ --_hover-card-trigger-current-color: var(--moduix-hover-card-trigger-color, var(--moduix-color-primary));
4
4
  align-items: center;
5
5
  gap: var(--moduix-hover-card-trigger-gap, var(--moduix-spacing-1));
6
- color: var(--moduix-hover-card-trigger-current-color);
6
+ color: var(--_hover-card-trigger-current-color);
7
7
  font: inherit;
8
8
  text-decoration-line: underline;
9
9
  text-decoration-thickness: var(--moduix-hover-card-trigger-decoration-thickness, 1px);
10
- -webkit-text-decoration-color: var(--moduix-hover-card-trigger-decoration-color, color-mix(in oklab, var(--moduix-hover-card-trigger-current-color), transparent 40%));
11
- text-decoration-color: var(--moduix-hover-card-trigger-decoration-color, color-mix(in oklab, var(--moduix-hover-card-trigger-current-color), transparent 40%));
10
+ -webkit-text-decoration-color: var(--moduix-hover-card-trigger-decoration-color, color-mix(in oklab, var(--_hover-card-trigger-current-color), transparent 40%));
11
+ text-decoration-color: var(--moduix-hover-card-trigger-decoration-color, color-mix(in oklab, var(--_hover-card-trigger-current-color), transparent 40%));
12
12
  text-underline-offset: var(--moduix-hover-card-trigger-underline-offset, 2px);
13
13
  cursor: pointer;
14
14
  transition: color var(--moduix-hover-card-transition, var(--moduix-duration-fast)),
@@ -19,14 +19,14 @@
19
19
 
20
20
  @media (hover: hover) {
21
21
  .trigger-lDTCiV:hover {
22
- -webkit-text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-hover, var(--moduix-hover-card-trigger-current-color));
23
- text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-hover, var(--moduix-hover-card-trigger-current-color));
22
+ -webkit-text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-hover, var(--_hover-card-trigger-current-color));
23
+ text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-hover, var(--_hover-card-trigger-current-color));
24
24
  }
25
25
  }
26
26
 
27
27
  .trigger-lDTCiV[data-state="open"] {
28
- -webkit-text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-open, var(--moduix-hover-card-trigger-current-color));
29
- text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-open, var(--moduix-hover-card-trigger-current-color));
28
+ -webkit-text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-open, var(--_hover-card-trigger-current-color));
29
+ text-decoration-color: var(--moduix-hover-card-trigger-decoration-color-open, var(--_hover-card-trigger-current-color));
30
30
  }
31
31
 
32
32
  .trigger-lDTCiV:focus-visible {
@@ -56,6 +56,7 @@
56
56
  min-width: min(var(--moduix-hover-card-min-width, 14rem), var(--available-width));
57
57
  max-width: min(var(--moduix-hover-card-max-width, 24rem), var(--available-width));
58
58
  max-height: min(var(--moduix-hover-card-max-height, 24rem), var(--available-height, 100dvh));
59
+ overflow-wrap: anywhere;
59
60
  padding: var(--moduix-hover-card-padding-y, var(--moduix-spacing-2))
60
61
  var(--moduix-hover-card-padding-x, var(--moduix-spacing-2));
61
62
  border-radius: var(--moduix-hover-card-radius, var(--moduix-radius-lg));
@@ -96,6 +97,16 @@
96
97
  var(--moduix-hover-card-arrow-stroke-color, var(--moduix-hover-card-border-color, var(--moduix-color-border)));
97
98
  }
98
99
 
100
+ @media (prefers-reduced-motion: reduce) {
101
+ .trigger-lDTCiV {
102
+ transition: none;
103
+ }
104
+
105
+ .content-Su6EOr {
106
+ animation: none;
107
+ }
108
+ }
109
+
99
110
  @keyframes hover-card-enter-Yx8tti {
100
111
  from {
101
112
  opacity: var(--moduix-hover-card-content-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
@@ -1,6 +1,10 @@
1
1
  import type { ImageProps as UnpicImageProps } from '@unpic/react';
2
- declare const Image: import("react").ForwardRefExoticComponent<UnpicImageProps & import("react").RefAttributes<HTMLImageElement>> & {
3
- Root: import("react").ForwardRefExoticComponent<UnpicImageProps & import("react").RefAttributes<HTMLImageElement>>;
2
+ import { type CSSProperties } from 'react';
3
+ type ImageProps = UnpicImageProps & {
4
+ style?: CSSProperties;
5
+ };
6
+ declare const Image: import("react").ForwardRefExoticComponent<ImageProps & import("react").RefAttributes<HTMLImageElement>> & {
7
+ Root: import("react").ForwardRefExoticComponent<ImageProps & import("react").RefAttributes<HTMLImageElement>>;
4
8
  Source: import("react").ForwardRefExoticComponent<import("@unpic/core").UnpicSourceProps & import("react").RefAttributes<HTMLSourceElement>>;
5
9
  };
6
10
  export { Image };
@@ -4,10 +4,11 @@ import { clsx } from "clsx";
4
4
  import { forwardRef } from "react";
5
5
  import { normalizeClassName } from "../../internal/normalizeClassName.js";
6
6
  import Image_module from "./Image.module.js";
7
- const Image_ImageRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
7
+ const Image_ImageRoot = /*#__PURE__*/ forwardRef(function({ className, fetchPriority, fetchpriority, ...props }, ref) {
8
8
  return /*#__PURE__*/ jsx(Image, {
9
9
  ref: ref,
10
10
  ...props,
11
+ fetchpriority: fetchPriority ?? fetchpriority,
11
12
  "data-slot": "image-root",
12
13
  className: clsx(Image_module.root, normalizeClassName(className))
13
14
  });
@@ -153,7 +153,6 @@
153
153
 
154
154
  .handle-qbAAS1[data-position="nw"], .handle-qbAAS1[data-position="ne"], .handle-qbAAS1[data-position="se"], .handle-qbAAS1[data-position="sw"] {
155
155
  z-index: 2;
156
- background-color: #fff;
157
156
  }
158
157
 
159
158
  .handle-qbAAS1[data-disabled] {
@@ -1,7 +1,7 @@
1
1
  @layer moduix.components {
2
2
  .root-cSSoZX {
3
3
  box-sizing: border-box;
4
- width: var(--moduix-input-width, var(--moduix-input-default-width, 100%));
4
+ width: var(--moduix-input-width, var(--_input-default-width, 100%));
5
5
  max-width: var(--moduix-input-max-width, none);
6
6
  min-height: var(--moduix-input-height, var(--moduix-input-height-md, var(--moduix-size-md)));
7
7
  border: var(--moduix-input-border-width, var(--moduix-border-width-sm))
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  .root-cSSoZX[data-html-size] {
53
- --moduix-input-default-width: auto;
53
+ --_input-default-width: auto;
54
54
  }
55
55
 
56
56
  .root-cSSoZX:focus-visible {
@@ -13,12 +13,12 @@ const InputGroup_InputGroupRoot = /*#__PURE__*/ forwardRef(function({ children,
13
13
  value: size,
14
14
  children: /*#__PURE__*/ jsx(ark.div, {
15
15
  ref: ref,
16
+ ...props,
16
17
  "data-scope": "input-group",
17
18
  "data-part": "root",
18
19
  "data-slot": "input-group-root",
19
20
  "data-size": size,
20
21
  className: clsx(InputGroup_module.root, normalizeClassName(className)),
21
- ...props,
22
22
  children: children
23
23
  })
24
24
  });
@@ -35,33 +35,33 @@ const InputGroup_InputGroupInput = /*#__PURE__*/ forwardRef(function({ className
35
35
  const InputGroup_InputGroupAddon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
36
36
  return /*#__PURE__*/ jsx(ark.span, {
37
37
  ref: ref,
38
+ ...props,
38
39
  "data-scope": "input-group",
39
40
  "data-part": "addon",
40
41
  "data-slot": "input-group-addon",
41
- className: clsx(InputGroup_module.addon, normalizeClassName(className)),
42
- ...props
42
+ className: clsx(InputGroup_module.addon, normalizeClassName(className))
43
43
  });
44
44
  });
45
45
  const InputGroup_InputGroupText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
46
46
  return /*#__PURE__*/ jsx(ark.span, {
47
47
  ref: ref,
48
+ ...props,
48
49
  "data-scope": "input-group",
49
50
  "data-part": "text",
50
51
  "data-slot": "input-group-text",
51
- className: clsx(InputGroup_module.text, normalizeClassName(className)),
52
- ...props
52
+ className: clsx(InputGroup_module.text, normalizeClassName(className))
53
53
  });
54
54
  });
55
55
  const InputGroup_InputGroupButton = /*#__PURE__*/ forwardRef(function({ className, variant = 'ghost', size, type = 'button', ...props }, ref) {
56
56
  const groupSize = useContext(InputGroupSizeContext);
57
57
  return /*#__PURE__*/ jsx(Button, {
58
58
  ref: ref,
59
+ ...props,
59
60
  "data-slot": "input-group-button",
60
61
  className: clsx(InputGroup_module.button, normalizeClassName(className)),
61
62
  variant: variant,
62
63
  size: size ?? groupSize,
63
- type: type,
64
- ...props
64
+ type: type
65
65
  });
66
66
  });
67
67
  const InputGroup = Object.assign(InputGroup_InputGroupRoot, {
@@ -17,6 +17,7 @@ const Kbd_KbdRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, r
17
17
  const Kbd_KbdGroupPart = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
18
18
  return /*#__PURE__*/ jsx(ark.span, {
19
19
  ref: ref,
20
+ role: "group",
20
21
  "data-scope": "kbd",
21
22
  "data-part": "group",
22
23
  "data-slot": "kbd-group",
@@ -20,10 +20,7 @@ type LightboxBindProps = {
20
20
  declare function LightboxRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: LightboxRootProps): import("react").JSX.Element;
21
21
  declare function LightboxRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: LightboxRootProviderProps): import("react").JSX.Element;
22
22
  declare const LightboxImage: import("react").ForwardRefExoticComponent<Omit<LightboxImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
23
- declare const LightboxGallery: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
24
- declare function LightboxHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
25
- declare function LightboxBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
26
- declare function LightboxFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
23
+ declare const LightboxGallery: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
27
24
  declare function LightboxBind({ onImageSelect, selector, rootRef, rootSelector }: LightboxBindProps): null;
28
25
  declare const Lightbox: typeof LightboxRoot & {
29
26
  Root: typeof LightboxRoot;
@@ -36,11 +33,11 @@ declare const Lightbox: typeof LightboxRoot & {
36
33
  Description: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
37
34
  CloseTrigger: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
38
35
  CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
39
- Header: typeof LightboxHeader;
40
- Body: typeof LightboxBody;
41
- Footer: typeof LightboxFooter;
36
+ Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
37
+ Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
38
+ Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
42
39
  Image: import("react").ForwardRefExoticComponent<Omit<LightboxImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
43
- Gallery: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
40
+ Gallery: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
44
41
  Bind: typeof LightboxBind;
45
42
  useLightbox: (props?: import("@ark-ui/react/dialog").UseDialogProps) => import("@ark-ui/react/dialog").UseDialogReturn;
46
43
  useLightboxContext: () => import("@ark-ui/react/dialog").UseDialogContext;
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { Dialog, useDialog, useDialogContext } from "@ark-ui/react/dialog";
4
+ import { ark } from "@ark-ui/react/factory";
4
5
  import { clsx } from "clsx";
5
6
  import { forwardRef, useEffect } from "react";
6
7
  import { normalizeClassName } from "../../internal/normalizeClassName.js";
@@ -140,34 +141,37 @@ const Lightbox_LightboxImage = /*#__PURE__*/ forwardRef(function({ className, cl
140
141
  });
141
142
  });
142
143
  const Lightbox_LightboxGallery = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
143
- return /*#__PURE__*/ jsx("div", {
144
+ return /*#__PURE__*/ jsx(ark.div, {
144
145
  ref: ref,
145
146
  "data-slot": "lightbox-gallery",
146
147
  className: clsx(Lightbox_module.gallery, normalizeClassName(className)),
147
148
  ...props
148
149
  });
149
150
  });
150
- function LightboxHeader({ className, ...props }) {
151
- return /*#__PURE__*/ jsx("div", {
151
+ const Lightbox_LightboxHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
152
+ return /*#__PURE__*/ jsx(ark.div, {
153
+ ref: ref,
152
154
  "data-slot": "lightbox-header",
153
- className: clsx(Lightbox_module.header, className),
155
+ className: clsx(Lightbox_module.header, normalizeClassName(className)),
154
156
  ...props
155
157
  });
156
- }
157
- function LightboxBody({ className, ...props }) {
158
- return /*#__PURE__*/ jsx("div", {
158
+ });
159
+ const Lightbox_LightboxBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
160
+ return /*#__PURE__*/ jsx(ark.div, {
161
+ ref: ref,
159
162
  "data-slot": "lightbox-body",
160
- className: clsx(Lightbox_module.body, className),
163
+ className: clsx(Lightbox_module.body, normalizeClassName(className)),
161
164
  ...props
162
165
  });
163
- }
164
- function LightboxFooter({ className, ...props }) {
165
- return /*#__PURE__*/ jsx("div", {
166
+ });
167
+ const Lightbox_LightboxFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
168
+ return /*#__PURE__*/ jsx(ark.div, {
169
+ ref: ref,
166
170
  "data-slot": "lightbox-footer",
167
- className: clsx(Lightbox_module.footer, className),
171
+ className: clsx(Lightbox_module.footer, normalizeClassName(className)),
168
172
  ...props
169
173
  });
170
- }
174
+ });
171
175
  function LightboxBind({ onImageSelect, selector, rootRef, rootSelector }) {
172
176
  const { setOpen } = useDialogContext();
173
177
  useEffect(()=>{
@@ -218,9 +222,9 @@ const Lightbox = Object.assign(LightboxRoot, {
218
222
  Description: Lightbox_LightboxDescription,
219
223
  CloseTrigger: Lightbox_LightboxCloseTrigger,
220
224
  CloseIcon: Lightbox_LightboxCloseIcon,
221
- Header: LightboxHeader,
222
- Body: LightboxBody,
223
- Footer: LightboxFooter,
225
+ Header: Lightbox_LightboxHeader,
226
+ Body: Lightbox_LightboxBody,
227
+ Footer: Lightbox_LightboxFooter,
224
228
  Image: Lightbox_LightboxImage,
225
229
  Gallery: Lightbox_LightboxGallery,
226
230
  Bind: LightboxBind,
@@ -251,5 +251,12 @@
251
251
  scale: var(--moduix-lightbox-content-ending-scale, var(--moduix-popup-motion-ending-scale, .82));
252
252
  }
253
253
  }
254
+
255
+ @media (prefers-reduced-motion: reduce) {
256
+ .backdrop-nZRWDl[data-state], .content-N4c6Zm[data-state] {
257
+ animation-duration: 1ms;
258
+ animation-delay: 0s;
259
+ }
260
+ }
254
261
  }
255
262
 
@@ -5,6 +5,7 @@
5
5
  --_list-gap: var(--moduix-list-gap, var(--moduix-list-gap-sm, var(--moduix-spacing-2)));
6
6
  --_list-line-height: var(--moduix-list-line-height, var(--moduix-list-line-height-md, var(--moduix-line-height-text-md)));
7
7
  box-sizing: border-box;
8
+ gap: var(--_list-gap);
8
9
  color: var(--_list-color);
9
10
  font-family: var(--moduix-list-font-family, inherit);
10
11
  font-size: var(--_list-font-size);
@@ -12,9 +13,11 @@
12
13
  line-height: var(--_list-line-height);
13
14
  letter-spacing: var(--moduix-list-letter-spacing, 0);
14
15
  overflow-wrap: break-word;
16
+ flex-direction: column;
15
17
  margin: 0;
16
18
  padding: 0;
17
19
  list-style-position: outside;
20
+ display: flex;
18
21
  }
19
22
 
20
23
  .root-PNnfB8[data-scope="list"][data-part="root"][data-gap="xs"] {
@@ -41,10 +44,6 @@
41
44
  --_list-gap: var(--moduix-list-gap, var(--moduix-list-gap-2xl, var(--moduix-spacing-6)));
42
45
  }
43
46
 
44
- .root-PNnfB8[data-scope="list"][data-part="root"] > li + li {
45
- margin-block-start: var(--_list-gap);
46
- }
47
-
48
47
  .root-PNnfB8[data-scope="list"][data-part="root"] > li::marker {
49
48
  color: var(--moduix-list-marker-color, currentColor);
50
49
  font-weight: var(--moduix-list-marker-font-weight, inherit);
@@ -1,9 +1,6 @@
1
1
  import { Listbox as ListboxPrimitive, useListbox, useListboxContext, useListboxItemContext } from '@ark-ui/react/listbox';
2
2
  import type { ComponentProps } from 'react';
3
3
  declare function ListboxFilter({ className, children, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
4
- declare function ListboxItemTextContent({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
5
- declare function ListboxItemTextIcon({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
6
- declare function ListboxItemTextLabel({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
7
4
  declare const Listbox: ListboxPrimitive.RootComponent & {
8
5
  Root: ListboxPrimitive.RootComponent;
9
6
  RootProvider: ListboxPrimitive.RootProviderComponent;
@@ -21,9 +18,9 @@ declare const Listbox: ListboxPrimitive.RootComponent & {
21
18
  ValueText: import("react").ForwardRefExoticComponent<Omit<ListboxPrimitive.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
22
19
  Context: <T extends unknown>(props: ListboxPrimitive.ContextProps<T>) => import("react").ReactNode;
23
20
  ItemContext: (props: ListboxPrimitive.ItemContextProps) => import("react").ReactNode;
24
- ItemTextContent: typeof ListboxItemTextContent;
25
- ItemTextIcon: typeof ListboxItemTextIcon;
26
- ItemTextLabel: typeof ListboxItemTextLabel;
21
+ ItemTextContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
22
+ ItemTextIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
23
+ ItemTextLabel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
27
24
  useListbox: <T extends unknown>(props: import("@ark-ui/react/listbox").UseListboxProps<T>) => import("@ark-ui/react/listbox").UseListboxReturn<T>;
28
25
  useListboxContext: () => import("@ark-ui/react/listbox").UseListboxContext<any>;
29
26
  useListboxItemContext: () => import("@ark-ui/react/listbox").UseListboxItemContext;
@@ -135,27 +135,30 @@ const Listbox_ListboxValueText = /*#__PURE__*/ forwardRef(function({ className,
135
135
  ...props
136
136
  });
137
137
  });
138
- function ListboxItemTextContent({ className, ...props }) {
139
- return /*#__PURE__*/ jsx("span", {
138
+ const Listbox_ListboxItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
139
+ return /*#__PURE__*/ jsx(ark.span, {
140
+ ref: ref,
140
141
  "data-slot": "listbox-item-text-content",
141
142
  className: clsx(Listbox_module.itemTextContent, normalizeClassName(className)),
142
143
  ...props
143
144
  });
144
- }
145
- function ListboxItemTextIcon({ className, ...props }) {
146
- return /*#__PURE__*/ jsx("span", {
145
+ });
146
+ const Listbox_ListboxItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
147
+ return /*#__PURE__*/ jsx(ark.span, {
148
+ ref: ref,
147
149
  "data-slot": "listbox-item-text-icon",
148
150
  className: clsx(Listbox_module.itemTextIcon, normalizeClassName(className)),
149
151
  ...props
150
152
  });
151
- }
152
- function ListboxItemTextLabel({ className, ...props }) {
153
- return /*#__PURE__*/ jsx("span", {
153
+ });
154
+ const Listbox_ListboxItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
155
+ return /*#__PURE__*/ jsx(ark.span, {
156
+ ref: ref,
154
157
  "data-slot": "listbox-item-text-label",
155
158
  className: clsx(Listbox_module.itemTextLabel, normalizeClassName(className)),
156
159
  ...props
157
160
  });
158
- }
161
+ });
159
162
  const Listbox_Listbox = Object.assign(Listbox_ListboxRoot, {
160
163
  Root: Listbox_ListboxRoot,
161
164
  RootProvider: Listbox_ListboxRootProvider,
@@ -173,9 +176,9 @@ const Listbox_Listbox = Object.assign(Listbox_ListboxRoot, {
173
176
  ValueText: Listbox_ListboxValueText,
174
177
  Context: Listbox.Context,
175
178
  ItemContext: Listbox.ItemContext,
176
- ItemTextContent: ListboxItemTextContent,
177
- ItemTextIcon: ListboxItemTextIcon,
178
- ItemTextLabel: ListboxItemTextLabel,
179
+ ItemTextContent: Listbox_ListboxItemTextContent,
180
+ ItemTextIcon: Listbox_ListboxItemTextIcon,
181
+ ItemTextLabel: Listbox_ListboxItemTextLabel,
179
182
  useListbox: useListbox,
180
183
  useListboxContext: useListboxContext,
181
184
  useListboxItemContext: useListboxItemContext
@@ -74,9 +74,9 @@
74
74
  }
75
75
 
76
76
  .filter-GcwWjv + .content-bWizSr {
77
- margin-top: calc(-1 * var(--moduix-listbox-root-gap, var(--moduix-spacing-3)));
78
77
  border-top-left-radius: 0;
79
78
  border-top-right-radius: 0;
79
+ margin-block-start: calc(-1 * var(--moduix-listbox-root-gap, var(--moduix-spacing-3)));
80
80
  }
81
81
 
82
82
  .filterIcon-sysxT1 {
@@ -176,7 +176,7 @@
176
176
  }
177
177
 
178
178
  .itemGroup-R3S9Z9 + .itemGroup-R3S9Z9 {
179
- margin-top: var(--moduix-listbox-item-group-gap, var(--moduix-spacing-2));
179
+ margin-block-start: var(--moduix-listbox-item-group-gap, var(--moduix-spacing-2));
180
180
  }
181
181
 
182
182
  .itemGroupLabel-t4Kb1i {
@@ -18,10 +18,6 @@ declare function MenuRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...p
18
18
  declare function MenuRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: MenuRootProviderProps): import("react").JSX.Element;
19
19
  declare function MenuTriggerIcon({ className, children, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
20
20
  declare function MenuTriggerItemIcon({ className, children, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
21
- declare function MenuItemTextContent({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
22
- declare function MenuItemTextIcon({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
23
- declare function MenuItemTextLabel({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
24
- declare function MenuItemShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
25
21
  declare const Menu: typeof MenuRoot & {
26
22
  Root: typeof MenuRoot;
27
23
  RootProvider: typeof MenuRootProvider;
@@ -45,10 +41,10 @@ declare const Menu: typeof MenuRoot & {
45
41
  CheckboxItem: import("react").ForwardRefExoticComponent<Omit<MenuCheckboxItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
46
42
  ItemIndicator: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
47
43
  ItemText: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
48
- ItemTextContent: typeof MenuItemTextContent;
49
- ItemTextIcon: typeof MenuItemTextIcon;
50
- ItemTextLabel: typeof MenuItemTextLabel;
51
- ItemShortcut: typeof MenuItemShortcut;
44
+ ItemTextContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
45
+ ItemTextIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
46
+ ItemTextLabel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
47
+ ItemShortcut: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
52
48
  ItemContext: (props: MenuPrimitive.ItemContextProps) => import("react").ReactNode;
53
49
  };
54
50
  export { Menu, useMenu, useMenuContext, useMenuItemContext };
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { ark } from "@ark-ui/react/factory";
3
4
  import { Menu, useMenu, useMenuContext, useMenuItemContext } from "@ark-ui/react/menu";
4
5
  import { clsx } from "clsx";
5
6
  import { Children, forwardRef, isValidElement } from "react";
@@ -219,34 +220,38 @@ const Menu_MenuItemText = /*#__PURE__*/ forwardRef(function({ className, ...prop
219
220
  ...props
220
221
  });
221
222
  });
222
- function MenuItemTextContent({ className, ...props }) {
223
- return /*#__PURE__*/ jsx("span", {
223
+ const Menu_MenuItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
224
+ return /*#__PURE__*/ jsx(ark.span, {
225
+ ref: ref,
224
226
  "data-slot": "menu-item-text-content",
225
- className: clsx(Menu_module.itemTextContent, className),
227
+ className: clsx(Menu_module.itemTextContent, normalizeClassName(className)),
226
228
  ...props
227
229
  });
228
- }
229
- function MenuItemTextIcon({ className, ...props }) {
230
- return /*#__PURE__*/ jsx("span", {
230
+ });
231
+ const Menu_MenuItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
232
+ return /*#__PURE__*/ jsx(ark.span, {
233
+ ref: ref,
231
234
  "data-slot": "menu-item-text-icon",
232
- className: clsx(Menu_module.itemTextIcon, className),
235
+ className: clsx(Menu_module.itemTextIcon, normalizeClassName(className)),
233
236
  ...props
234
237
  });
235
- }
236
- function MenuItemTextLabel({ className, ...props }) {
237
- return /*#__PURE__*/ jsx("span", {
238
+ });
239
+ const Menu_MenuItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
240
+ return /*#__PURE__*/ jsx(ark.span, {
241
+ ref: ref,
238
242
  "data-slot": "menu-item-text-label",
239
- className: clsx(Menu_module.itemTextLabel, className),
243
+ className: clsx(Menu_module.itemTextLabel, normalizeClassName(className)),
240
244
  ...props
241
245
  });
242
- }
243
- function MenuItemShortcut({ className, ...props }) {
244
- return /*#__PURE__*/ jsx("span", {
246
+ });
247
+ const Menu_MenuItemShortcut = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
248
+ return /*#__PURE__*/ jsx(ark.span, {
249
+ ref: ref,
245
250
  "data-slot": "menu-item-shortcut",
246
- className: clsx(Menu_module.itemShortcut, className),
251
+ className: clsx(Menu_module.itemShortcut, normalizeClassName(className)),
247
252
  ...props
248
253
  });
249
- }
254
+ });
250
255
  const Menu_Menu = Object.assign(MenuRoot, {
251
256
  Root: MenuRoot,
252
257
  RootProvider: MenuRootProvider,
@@ -270,10 +275,10 @@ const Menu_Menu = Object.assign(MenuRoot, {
270
275
  CheckboxItem: Menu_MenuCheckboxItem,
271
276
  ItemIndicator: Menu_MenuItemIndicator,
272
277
  ItemText: Menu_MenuItemText,
273
- ItemTextContent: MenuItemTextContent,
274
- ItemTextIcon: MenuItemTextIcon,
275
- ItemTextLabel: MenuItemTextLabel,
276
- ItemShortcut: MenuItemShortcut,
278
+ ItemTextContent: Menu_MenuItemTextContent,
279
+ ItemTextIcon: Menu_MenuItemTextIcon,
280
+ ItemTextLabel: Menu_MenuItemTextLabel,
281
+ ItemShortcut: Menu_MenuItemShortcut,
277
282
  ItemContext: Menu.ItemContext
278
283
  });
279
284
  export { Menu_Menu as Menu, useMenu, useMenuContext, useMenuItemContext };
@@ -355,6 +355,16 @@
355
355
  border: 0;
356
356
  }
357
357
 
358
+ @media (prefers-reduced-motion: reduce) {
359
+ .trigger-GnJcCa, .contextTrigger-jyrQRV {
360
+ transition: none;
361
+ }
362
+
363
+ .content-yFF7GN[data-state] {
364
+ animation: none;
365
+ }
366
+ }
367
+
358
368
  @keyframes menuContentIn-XDpUnW {
359
369
  from {
360
370
  opacity: var(--moduix-menu-popup-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
@@ -32,7 +32,7 @@
32
32
  opacity var(--moduix-select-transition, var(--moduix-transition-default));
33
33
  margin: 0;
34
34
  padding-inline-start: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
35
- padding-inline-end: calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-1)) +
35
+ padding-inline-end: calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-2)) +
36
36
  var(--moduix-select-action-size, var(--moduix-spacing-6)) +
37
37
  var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3)));
38
38
  }
@@ -97,9 +97,9 @@ function PaginationItems() {
97
97
  children: (pagination)=>pagination.pages.map((page, index)=>'page' === page.type ? /*#__PURE__*/ jsx(Pagination_PaginationItem, {
98
98
  ...page,
99
99
  children: page.value
100
- }, index) : /*#__PURE__*/ jsx(Pagination_PaginationEllipsis, {
100
+ }, page.value) : /*#__PURE__*/ jsx(Pagination_PaginationEllipsis, {
101
101
  index: index
102
- }, index))
102
+ }, `ellipsis-${index}`))
103
103
  });
104
104
  }
105
105
  const Pagination_Pagination = Object.assign(Pagination_PaginationRoot, {