@moduix/react 2.2.4 → 2.2.5

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 (125) 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/checkbox/Checkbox.js +9 -3
  29. package/dist/components/checkbox/Checkbox_module.css +11 -3
  30. package/dist/components/clipboard/Clipboard_module.css +13 -1
  31. package/dist/components/close-button/CloseButton.js +14 -3
  32. package/dist/components/collapsible/Collapsible_module.css +11 -0
  33. package/dist/components/color-picker/ColorPicker.js +16 -6
  34. package/dist/components/color-picker/ColorPicker.module.js +2 -0
  35. package/dist/components/color-picker/ColorPicker_module.css +84 -9
  36. package/dist/components/combobox/Combobox.d.ts +1 -1
  37. package/dist/components/combobox/Combobox.js +2 -1
  38. package/dist/components/combobox/Combobox_module.css +1 -1
  39. package/dist/components/command-palette/CommandPalette.js +10 -18
  40. package/dist/components/command-palette/CommandPalette.module.js +0 -1
  41. package/dist/components/command-palette/CommandPalette_module.css +5 -15
  42. package/dist/components/container/Container_module.css +11 -11
  43. package/dist/components/date-picker/DatePicker.js +15 -6
  44. package/dist/components/dialog/Dialog.d.ts +3 -6
  45. package/dist/components/dialog/Dialog.js +19 -15
  46. package/dist/components/dialog/Dialog_module.css +12 -1
  47. package/dist/components/drawer/Drawer.d.ts +3 -6
  48. package/dist/components/drawer/Drawer.js +19 -15
  49. package/dist/components/drawer/Drawer_module.css +17 -6
  50. package/dist/components/empty/Empty_module.css +2 -2
  51. package/dist/components/field/Field_module.css +4 -0
  52. package/dist/components/fieldset/Fieldset_module.css +3 -0
  53. package/dist/components/file-upload/FileUpload.js +1 -1
  54. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -2
  55. package/dist/components/floating-panel/FloatingPanel.js +7 -5
  56. package/dist/components/heading/Heading.js +2 -2
  57. package/dist/components/highlight/Highlight.js +2 -2
  58. package/dist/components/hover-card/HoverCard.js +0 -2
  59. package/dist/components/hover-card/HoverCard_module.css +19 -8
  60. package/dist/components/image/Image.d.ts +6 -2
  61. package/dist/components/image/Image.js +2 -1
  62. package/dist/components/image-cropper/ImageCropper_module.css +0 -1
  63. package/dist/components/input/Input_module.css +2 -2
  64. package/dist/components/input-group/InputGroup.js +7 -7
  65. package/dist/components/kbd/Kbd.js +1 -0
  66. package/dist/components/lightbox/Lightbox.d.ts +5 -8
  67. package/dist/components/lightbox/Lightbox.js +20 -16
  68. package/dist/components/lightbox/Lightbox_module.css +7 -0
  69. package/dist/components/list/List_module.css +3 -4
  70. package/dist/components/listbox/Listbox.d.ts +3 -6
  71. package/dist/components/listbox/Listbox.js +15 -12
  72. package/dist/components/listbox/Listbox_module.css +2 -2
  73. package/dist/components/menu/Menu.d.ts +4 -8
  74. package/dist/components/menu/Menu.js +25 -20
  75. package/dist/components/menu/Menu_module.css +10 -0
  76. package/dist/components/native-select/NativeSelect_module.css +1 -1
  77. package/dist/components/pagination/Pagination.js +2 -2
  78. package/dist/components/pagination/Pagination_module.css +1 -1
  79. package/dist/components/password-input/PasswordInput_module.css +4 -4
  80. package/dist/components/popover/Popover.d.ts +4 -7
  81. package/dist/components/popover/Popover.js +24 -18
  82. package/dist/components/popover/Popover_module.css +18 -8
  83. package/dist/components/progress-circular/ProgressCircular_module.css +8 -1
  84. package/dist/components/progress-linear/ProgressLinear_module.css +1 -0
  85. package/dist/components/qr-code/QrCode_module.css +2 -3
  86. package/dist/components/radio-group/RadioGroup_module.css +1 -1
  87. package/dist/components/scroll-area/ScrollArea_module.css +15 -0
  88. package/dist/components/segment-group/SegmentGroup.module.js +1 -1
  89. package/dist/components/segment-group/SegmentGroup_module.css +4 -4
  90. package/dist/components/select/Select.d.ts +3 -6
  91. package/dist/components/select/Select.js +16 -12
  92. package/dist/components/select/Select_module.css +15 -1
  93. package/dist/components/separator/Separator.js +2 -2
  94. package/dist/components/separator/Separator_module.css +3 -3
  95. package/dist/components/sidebar/Sidebar.js +1 -1
  96. package/dist/components/sidebar/Sidebar_module.css +9 -8
  97. package/dist/components/signature-pad/SignaturePad.d.ts +3 -5
  98. package/dist/components/signature-pad/SignaturePad.js +44 -18
  99. package/dist/components/simple-grid/SimpleGrid.js +1 -0
  100. package/dist/components/slider/Slider_module.css +9 -5
  101. package/dist/components/split-button/SplitButton.d.ts +4 -0
  102. package/dist/components/split-button/SplitButton.js +4 -1
  103. package/dist/components/splitter/Splitter.js +3 -2
  104. package/dist/components/splitter/Splitter_module.css +21 -14
  105. package/dist/components/swap/Swap_module.css +22 -22
  106. package/dist/components/switch/Switch.js +9 -3
  107. package/dist/components/switch/Switch_module.css +30 -23
  108. package/dist/components/table/Table_module.css +15 -11
  109. package/dist/components/tabs/Tabs.js +5 -2
  110. package/dist/components/tag/Tag_module.css +17 -14
  111. package/dist/components/text/Text.js +1 -1
  112. package/dist/components/text/Text_module.css +2 -1
  113. package/dist/components/timer/Timer.d.ts +2 -4
  114. package/dist/components/timer/Timer.js +5 -4
  115. package/dist/components/toast/Toast_module.css +37 -43
  116. package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
  117. package/dist/components/toggle-group/ToggleGroup_module.css +5 -7
  118. package/dist/components/tooltip/Tooltip_module.css +11 -1
  119. package/dist/components/tour/Tour.d.ts +1 -1
  120. package/dist/components/tour/Tour.js +2 -1
  121. package/dist/components/tour/Tour_module.css +16 -4
  122. package/dist/components/tree-view/TreeView.d.ts +2 -2
  123. package/dist/components/tree-view/TreeView_module.css +1 -1
  124. package/dist/styles/reset.css +33 -0
  125. package/package.json +6 -6
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { Drawer, useDrawer, useDrawerContext, useDrawerStackContext } from "@ark-ui/react/drawer";
4
+ import { ark } from "@ark-ui/react/factory";
4
5
  import { clsx } from "clsx";
5
6
  import { forwardRef } from "react";
6
7
  import { normalizeClassName } from "../../internal/normalizeClassName.js";
@@ -147,27 +148,30 @@ const Drawer_DrawerIndentBackground = /*#__PURE__*/ forwardRef(function({ classN
147
148
  ...props
148
149
  });
149
150
  });
150
- function DrawerHeader({ className, ...props }) {
151
- return /*#__PURE__*/ jsx("div", {
151
+ const Drawer_DrawerHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
152
+ return /*#__PURE__*/ jsx(ark.div, {
153
+ ref: ref,
152
154
  "data-slot": "drawer-header",
153
- className: clsx(Drawer_module.header, className),
155
+ className: clsx(Drawer_module.header, normalizeClassName(className)),
154
156
  ...props
155
157
  });
156
- }
157
- function DrawerBody({ className, ...props }) {
158
- return /*#__PURE__*/ jsx("div", {
158
+ });
159
+ const Drawer_DrawerBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
160
+ return /*#__PURE__*/ jsx(ark.div, {
161
+ ref: ref,
159
162
  "data-slot": "drawer-body",
160
- className: clsx(Drawer_module.body, className),
163
+ className: clsx(Drawer_module.body, normalizeClassName(className)),
161
164
  ...props
162
165
  });
163
- }
164
- function DrawerFooter({ className, ...props }) {
165
- return /*#__PURE__*/ jsx("div", {
166
+ });
167
+ const Drawer_DrawerFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
168
+ return /*#__PURE__*/ jsx(ark.div, {
169
+ ref: ref,
166
170
  "data-slot": "drawer-footer",
167
- className: clsx(Drawer_module.footer, className),
171
+ className: clsx(Drawer_module.footer, normalizeClassName(className)),
168
172
  ...props
169
173
  });
170
- }
174
+ });
171
175
  const Drawer_Drawer = Object.assign(DrawerRoot, {
172
176
  Root: DrawerRoot,
173
177
  RootProvider: DrawerRootProvider,
@@ -186,8 +190,8 @@ const Drawer_Drawer = Object.assign(DrawerRoot, {
186
190
  SwipeArea: Drawer_DrawerSwipeArea,
187
191
  Indent: Drawer_DrawerIndent,
188
192
  IndentBackground: Drawer_DrawerIndentBackground,
189
- Header: DrawerHeader,
190
- Body: DrawerBody,
191
- Footer: DrawerFooter
193
+ Header: Drawer_DrawerHeader,
194
+ Body: Drawer_DrawerBody,
195
+ Footer: Drawer_DrawerFooter
192
196
  });
193
197
  export { Drawer_Drawer as Drawer, useDrawer, useDrawerContext, useDrawerStackContext };
@@ -118,7 +118,7 @@
118
118
  }
119
119
 
120
120
  .content-ijyEx0 {
121
- --moduix-drawer-bleed: var(--moduix-drawer-bleed-size, var(--moduix-size-xl));
121
+ --_drawer-bleed: var(--moduix-drawer-bleed-size, var(--moduix-size-xl));
122
122
  --drawer-island-translate-distance: 0px;
123
123
  box-sizing: border-box;
124
124
  width: min(var(--moduix-drawer-width, 100%), 100vw);
@@ -152,7 +152,7 @@
152
152
 
153
153
  .content-ijyEx0:after {
154
154
  inset-inline: 0;
155
- height: var(--moduix-drawer-bleed);
155
+ height: var(--_drawer-bleed);
156
156
  background-color: inherit;
157
157
  content: "";
158
158
  pointer-events: none;
@@ -212,7 +212,7 @@
212
212
  :is(.content-ijyEx0[data-swipe-direction="left"], .content-ijyEx0[data-swipe-direction="right"]):after {
213
213
  inset-block: 0;
214
214
  inset-inline: auto;
215
- width: var(--moduix-drawer-bleed);
215
+ width: var(--_drawer-bleed);
216
216
  height: auto;
217
217
  top: 0;
218
218
  }
@@ -386,14 +386,14 @@
386
386
 
387
387
  .body-isYwKt {
388
388
  min-height: 0;
389
- margin-top: var(--moduix-drawer-body-margin-top, var(--moduix-spacing-4));
389
+ margin-block-start: var(--moduix-drawer-body-margin-top, var(--moduix-spacing-4));
390
390
  overflow-y: auto;
391
391
  }
392
392
 
393
393
  .footer-_cSbP3 {
394
394
  justify-content: flex-end;
395
395
  gap: var(--moduix-drawer-footer-gap, var(--moduix-spacing-2));
396
- margin-top: var(--moduix-drawer-footer-margin-top, var(--moduix-spacing-6));
396
+ margin-block-start: var(--moduix-drawer-footer-margin-top, var(--moduix-spacing-6));
397
397
  display: flex;
398
398
  }
399
399
 
@@ -514,7 +514,7 @@
514
514
  @keyframes drawer-content-out-up-BCRbr_ {
515
515
  to {
516
516
  transform: translate3d(0,
517
- calc(-100% - var(--drawer-island-translate-distance) - var(--moduix-drawer-bleed)),
517
+ calc(-100% - var(--drawer-island-translate-distance) - var(--_drawer-bleed)),
518
518
  0);
519
519
  }
520
520
  }
@@ -542,5 +542,16 @@
542
542
  transform: translate3d(calc(100% + var(--drawer-island-translate-distance)), 0, 0);
543
543
  }
544
544
  }
545
+
546
+ @media (prefers-reduced-motion: reduce) {
547
+ .backdrop-butaHQ[data-state], .content-ijyEx0[data-state] {
548
+ animation-duration: 1ms;
549
+ animation-delay: 0s;
550
+ }
551
+
552
+ .backdrop-butaHQ, .content-ijyEx0, .indent-r1DrXk, .indentBackground-AXVSP_ {
553
+ transition-duration: 1ms;
554
+ }
555
+ }
545
556
  }
546
557
 
@@ -19,7 +19,7 @@
19
19
  .icon-LWbtAW {
20
20
  min-width: 0;
21
21
  padding: var(--moduix-empty-icon-padding, var(--moduix-spacing-3));
22
- border-radius: var(--moduix-radius-full);
22
+ border-radius: var(--moduix-empty-icon-radius, var(--moduix-radius-full));
23
23
  background-color: var(--moduix-empty-icon-bg, var(--moduix-color-muted));
24
24
  color: var(--moduix-empty-icon-color, var(--moduix-color-muted-foreground));
25
25
  justify-content: center;
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  .description-_YR4BR > :first-child {
64
- margin-top: 0;
64
+ margin-block-start: 0;
65
65
  }
66
66
 
67
67
  .description-_YR4BR > :last-child {
@@ -22,6 +22,7 @@
22
22
  .label-b5wNPe {
23
23
  align-items: center;
24
24
  gap: var(--moduix-field-label-gap, var(--moduix-spacing-2));
25
+ overflow-wrap: anywhere;
25
26
  color: var(--moduix-field-label-color, var(--moduix-color-foreground));
26
27
  font-size: var(--moduix-field-label-font-size, var(--moduix-text-sm));
27
28
  font-weight: var(--moduix-field-label-font-weight, var(--moduix-weight-medium));
@@ -30,6 +31,7 @@
30
31
  }
31
32
 
32
33
  .helperText-pAOAcE {
34
+ overflow-wrap: anywhere;
33
35
  color: var(--moduix-field-description-color, var(--moduix-color-muted-foreground));
34
36
  font-size: var(--moduix-field-description-font-size, var(--moduix-text-sm));
35
37
  line-height: var(--moduix-field-description-line-height, var(--moduix-line-height-text-sm));
@@ -85,8 +87,10 @@
85
87
  }
86
88
 
87
89
  .errorText-HCuYXk {
90
+ overflow-wrap: anywhere;
88
91
  color: var(--moduix-field-error-color, var(--moduix-color-destructive));
89
92
  font-size: var(--moduix-field-error-font-size, var(--moduix-text-sm));
93
+ font-weight: var(--moduix-field-error-font-weight, var(--moduix-weight-medium));
90
94
  line-height: var(--moduix-field-error-line-height, var(--moduix-line-height-text-sm));
91
95
  margin: 0;
92
96
  }
@@ -27,6 +27,7 @@
27
27
  }
28
28
 
29
29
  .legend-tBpqK_ {
30
+ overflow-wrap: anywhere;
30
31
  max-inline-size: 100%;
31
32
  margin: var(--moduix-fieldset-legend-margin, 0);
32
33
  padding: var(--moduix-fieldset-legend-padding, 0 0 var(--moduix-spacing-3));
@@ -38,6 +39,7 @@
38
39
  }
39
40
 
40
41
  .helperText-slHAwI, .errorText-OdD9sO {
42
+ overflow-wrap: anywhere;
41
43
  font-size: var(--moduix-fieldset-message-font-size, var(--moduix-text-sm));
42
44
  line-height: var(--moduix-fieldset-message-line-height, var(--moduix-line-height-text-sm));
43
45
  }
@@ -48,6 +50,7 @@
48
50
 
49
51
  .errorText-OdD9sO {
50
52
  color: var(--moduix-fieldset-error-text-color, var(--moduix-color-destructive));
53
+ font-weight: var(--moduix-fieldset-error-text-font-weight, var(--moduix-weight-medium));
51
54
  }
52
55
  }
53
56
 
@@ -118,7 +118,7 @@ function getFileTypeLabel(file) {
118
118
  return extension ? extension.toUpperCase() : file.type || 'FILE';
119
119
  }
120
120
  function isImageFile(file) {
121
- return file.type.startsWith('image/') || /\.(avif|bmp|gif|jpe?g|png|svg|webp)$/i.test(file.name);
121
+ return file.type.startsWith('image/');
122
122
  }
123
123
  const FileUpload_FileUploadItemName = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
124
124
  return /*#__PURE__*/ jsx(FileUpload.ItemName, {
@@ -6,7 +6,6 @@ type FloatingPanelRootProps = ComponentProps<typeof FloatingPanelPrimitive.Root>
6
6
  type FloatingPanelRootProviderProps = ComponentProps<typeof FloatingPanelPrimitive.RootProvider> & OverlayPortalProps;
7
7
  declare function FloatingPanelRoot({ closeOnEscape, lazyMount, persistRect, portalled, portalRef, unmountOnExit, ...props }: FloatingPanelRootProps): import("react").JSX.Element;
8
8
  declare function FloatingPanelRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: FloatingPanelRootProviderProps): import("react").JSX.Element;
9
- declare function FloatingPanelFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
10
9
  declare function FloatingPanelResizeTriggerGroup({ axes, }: {
11
10
  axes?: readonly FloatingPanelResizeTriggerAxis[];
12
11
  }): import("react").JSX.Element;
@@ -25,7 +24,7 @@ declare const FloatingPanel: typeof FloatingPanelRoot & {
25
24
  CloseTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanelPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
26
25
  CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<FloatingPanelPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
27
26
  Body: import("react").ForwardRefExoticComponent<Omit<FloatingPanelPrimitive.BodyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
28
- Footer: typeof FloatingPanelFooter;
27
+ Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
29
28
  ResizeTrigger: import("react").ForwardRefExoticComponent<Omit<FloatingPanelPrimitive.ResizeTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
30
29
  ResizeTriggerGroup: typeof FloatingPanelResizeTriggerGroup;
31
30
  DragIndicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { ark } from "@ark-ui/react/factory";
3
4
  import { FloatingPanel, useFloatingPanel, useFloatingPanelContext } from "@ark-ui/react/floating-panel";
4
5
  import { clsx } from "clsx";
5
6
  import { forwardRef } from "react";
@@ -150,15 +151,16 @@ const FloatingPanel_FloatingPanelBody = /*#__PURE__*/ forwardRef(function({ clas
150
151
  ...props
151
152
  });
152
153
  });
153
- function FloatingPanelFooter({ className, ...props }) {
154
+ const FloatingPanel_FloatingPanelFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
154
155
  const { ['data-minimized']: dataMinimized } = useFloatingPanelContext().getContentProps();
155
- return /*#__PURE__*/ jsx("div", {
156
+ return /*#__PURE__*/ jsx(ark.div, {
157
+ ref: ref,
156
158
  ...props,
157
159
  "data-slot": "floating-panel-footer",
158
160
  "data-minimized": dataMinimized,
159
- className: clsx(FloatingPanel_module.footer, className)
161
+ className: clsx(FloatingPanel_module.footer, normalizeClassName(className))
160
162
  });
161
- }
163
+ });
162
164
  const FloatingPanel_FloatingPanelResizeTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
163
165
  return /*#__PURE__*/ jsx(FloatingPanel.ResizeTrigger, {
164
166
  ref: ref,
@@ -199,7 +201,7 @@ const FloatingPanel_FloatingPanel = Object.assign(FloatingPanelRoot, {
199
201
  CloseTrigger: FloatingPanel_FloatingPanelCloseTrigger,
200
202
  CloseIcon: FloatingPanel_FloatingPanelCloseIcon,
201
203
  Body: FloatingPanel_FloatingPanelBody,
202
- Footer: FloatingPanelFooter,
204
+ Footer: FloatingPanel_FloatingPanelFooter,
203
205
  ResizeTrigger: FloatingPanel_FloatingPanelResizeTrigger,
204
206
  ResizeTriggerGroup: FloatingPanelResizeTriggerGroup,
205
207
  DragIndicator: FloatingPanel_FloatingPanelDragIndicator,
@@ -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