@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
@@ -23,9 +23,10 @@
23
23
  }
24
24
 
25
25
  .positioner-Zk89xT {
26
- --moduix-tour-positioner-z-index: calc(var(--moduix-tour-z-index, var(--moduix-z-modal)) + var(--tour-layer, 0) +
26
+ --tour-z-index: var(--moduix-tour-z-index, var(--moduix-z-modal));
27
+ --_tour-positioner-z-index: calc(var(--moduix-tour-z-index, var(--moduix-z-modal)) + var(--tour-layer, 0) +
27
28
  var(--layer-index, 0));
28
- z-index: var(--z-index, var(--moduix-tour-positioner-z-index));
29
+ z-index: var(--z-index, var(--_tour-positioner-z-index));
29
30
  max-width: var(--available-width);
30
31
  max-height: var(--available-height);
31
32
  outline: 0;
@@ -192,11 +193,11 @@
192
193
  }
193
194
 
194
195
  .progressText-Jm6Fx2 {
195
- margin-top: var(--moduix-tour-progress-text-margin-top, var(--moduix-spacing-2));
196
196
  color: var(--moduix-tour-progress-text-color, var(--moduix-color-muted-foreground));
197
197
  font-size: var(--moduix-tour-progress-text-font-size, var(--moduix-text-xs));
198
198
  line-height: var(--moduix-tour-progress-text-line-height, var(--moduix-line-height-text-xs));
199
199
  order: 1;
200
+ margin-block-start: var(--moduix-tour-progress-text-margin-top, var(--moduix-spacing-2));
200
201
  }
201
202
 
202
203
  .body-w5DEFg {
@@ -263,9 +264,9 @@
263
264
  .control-pLhhBF {
264
265
  justify-content: flex-end;
265
266
  gap: var(--moduix-tour-control-gap, var(--moduix-spacing-2));
266
- margin-top: var(--moduix-tour-control-margin-top, var(--moduix-spacing-3));
267
267
  flex-wrap: wrap;
268
268
  order: 2;
269
+ margin-block-start: var(--moduix-tour-control-margin-top, var(--moduix-spacing-3));
269
270
  display: flex;
270
271
  }
271
272
 
@@ -324,6 +325,17 @@
324
325
  opacity: var(--moduix-tour-disabled-opacity, var(--moduix-opacity-disabled));
325
326
  }
326
327
 
328
+ @media (prefers-reduced-motion: reduce) {
329
+ .backdrop-okc1Ik[data-state], .content-ZY9BS9[data-state] {
330
+ animation-duration: 1ms;
331
+ animation-delay: 0s;
332
+ }
333
+
334
+ .actionTrigger-LsjeVS {
335
+ transition: none;
336
+ }
337
+ }
338
+
327
339
  @keyframes tour-backdrop-in-rR_UM_ {
328
340
  from {
329
341
  opacity: var(--moduix-tour-backdrop-starting-opacity, 0);
@@ -1,4 +1,4 @@
1
- import { TreeView as TreeViewPrimitive, createFileTreeCollection, createTreeCollection, type TreeNode, type TreeViewLoadChildrenDetails, type TreeViewNodeProps as TreeViewPrimitiveNodeProps, type TreeViewNodeProviderProps, type TreeViewNodeState, useTreeView, useTreeViewContext, useTreeViewNodeContext } from '@ark-ui/react/tree-view';
1
+ import { TreeView as TreeViewPrimitive, createFileTreeCollection, createTreeCollection, type TreeNode, type TreeViewLoadChildrenDetails, type TreeViewNodeProviderProps, type TreeViewNodeState, useTreeView, useTreeViewContext, useTreeViewNodeContext } from '@ark-ui/react/tree-view';
2
2
  import type { ComponentProps, ReactNode } from 'react';
3
3
  declare function TreeViewNodeCheckboxIndicator({ className, children, indeterminate, ...props }: ComponentProps<typeof TreeViewPrimitive.NodeCheckboxIndicator>): import("react").JSX.Element;
4
4
  type TreeViewNodeRenderProps<T extends TreeNode> = {
@@ -35,4 +35,4 @@ declare const TreeView: TreeViewPrimitive.RootComponent & {
35
35
  NodeCheckboxIndicator: typeof TreeViewNodeCheckboxIndicator;
36
36
  NodeRenameInput: import("react").ForwardRefExoticComponent<Omit<TreeViewPrimitive.NodeRenameInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
37
37
  };
38
- export { TreeView, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewContext, useTreeViewNodeContext, type TreeViewLoadChildrenDetails, type TreeViewNodeRenderProps, type TreeViewNodeState, type TreeViewPrimitiveNodeProps as TreeViewNodeProps, type TreeViewNodeProviderProps, };
38
+ export { TreeView, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewContext, useTreeViewNodeContext, type TreeViewLoadChildrenDetails, type TreeViewNodeProps, type TreeViewNodeRenderProps, type TreeViewNodeState, type TreeViewNodeProviderProps, };
@@ -74,7 +74,7 @@
74
74
  display: flex;
75
75
  }
76
76
 
77
- :is(.branchControl-ositpp, .item-D7JZg4):hover {
77
+ :is(.branchControl-ositpp, .item-D7JZg4):not([data-disabled]):hover {
78
78
  background-color: var(--moduix-tree-view-item-hover-bg, var(--moduix-color-accent));
79
79
  color: var(--moduix-tree-view-item-hover-color, var(--moduix-color-accent-foreground));
80
80
  }
@@ -1,3 +1,36 @@
1
+ /*!
2
+ * moduix reset.css
3
+ *
4
+ * Portions of this file are derived from:
5
+ * - @unocss/reset tailwind-v4.css
6
+ * Copyright (c) 2021-PRESENT Anthony Fu <https://github.com/antfu>
7
+ * https://github.com/unocss/unocss/blob/main/packages-presets/reset/tailwind-v4.css
8
+ * - Tailwind CSS Preflight
9
+ * Copyright (c) Tailwind Labs, Inc.
10
+ * https://github.com/tailwindlabs/tailwindcss/blob/main/packages/tailwindcss/preflight.css
11
+ *
12
+ * Modifications Copyright (c) 2026 Blinks44
13
+ *
14
+ * MIT License
15
+ *
16
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ * of this software and associated documentation files (the "Software"), to deal
18
+ * in the Software without restriction, including without limitation the rights
19
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ * copies of the Software, and to permit persons to whom the Software is
21
+ * furnished to do so, subject to the following conditions:
22
+ *
23
+ * The above copyright notice and this permission notice shall be included in all
24
+ * copies or substantial portions of the Software.
25
+ *
26
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ * SOFTWARE.
33
+ */
1
34
  @layer moduix.reset {
2
35
  *, :after, :before {
3
36
  box-sizing: border-box;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduix/react",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "React implementation of the moduix component system, built on Ark UI primitives.",
5
5
  "keywords": [
6
6
  "accessible",
@@ -414,10 +414,10 @@
414
414
  "@rsbuild/core": "~2.1.4",
415
415
  "@rsbuild/plugin-react": "^2.1.0",
416
416
  "@rslib/core": "^0.23.2",
417
- "@rstest/adapter-rslib": "^0.10.6",
418
- "@rstest/core": "^0.10.6",
419
- "@storybook/addon-docs": "10.5.3",
420
- "@storybook/react": "10.5.3",
417
+ "@rstest/adapter-rslib": "^0.11.6",
418
+ "@rstest/core": "^0.11.6",
419
+ "@storybook/addon-docs": "^10.5.3",
420
+ "@storybook/react": "^10.5.3",
421
421
  "@testing-library/dom": "^10.4.1",
422
422
  "@testing-library/jest-dom": "^6.9.1",
423
423
  "@testing-library/react": "^16.3.2",
@@ -427,7 +427,7 @@
427
427
  "happy-dom": "^20.10.6",
428
428
  "react": "^19.2.7",
429
429
  "react-dom": "^19.2.7",
430
- "storybook": "10.5.3",
430
+ "storybook": "^10.5.3",
431
431
  "storybook-addon-rslib": "^3.3.4",
432
432
  "storybook-react-rsbuild": "^3.3.4",
433
433
  "typescript": "~6.0.3"