@moduix/react 2.6.0 → 2.7.1

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 (72) hide show
  1. package/dist/components/accordion/Accordion.js +13 -13
  2. package/dist/components/alert/Alert.js +12 -12
  3. package/dist/components/angle-slider/AngleSlider.js +16 -16
  4. package/dist/components/avatar/Avatar.js +7 -7
  5. package/dist/components/button/Button_module.css +0 -1
  6. package/dist/components/card/Card.js +30 -30
  7. package/dist/components/card/Card_module.css +1 -1
  8. package/dist/components/carousel/Carousel.d.ts +1 -1
  9. package/dist/components/carousel/Carousel.js +22 -22
  10. package/dist/components/chart/Chart.js +19 -19
  11. package/dist/components/checkbox/Checkbox.js +12 -12
  12. package/dist/components/clipboard/Clipboard.js +19 -18
  13. package/dist/components/collapsible/Collapsible.js +11 -11
  14. package/dist/components/color-picker/ColorPicker.js +47 -47
  15. package/dist/components/combobox/Combobox.js +31 -31
  16. package/dist/components/command-palette/CommandPalette.js +49 -49
  17. package/dist/components/container/Container_module.css +1 -1
  18. package/dist/components/date-input/DateInput.js +14 -14
  19. package/dist/components/date-picker/DatePicker.js +51 -51
  20. package/dist/components/dialog/Dialog.js +20 -20
  21. package/dist/components/drawer/Drawer.js +30 -30
  22. package/dist/components/editable/Editable.js +17 -17
  23. package/dist/components/empty/Empty.js +12 -12
  24. package/dist/components/field/Field.js +19 -19
  25. package/dist/components/fieldset/Fieldset.js +10 -10
  26. package/dist/components/file-upload/FileUpload.js +28 -28
  27. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
  28. package/dist/components/floating-panel/FloatingPanel.js +22 -22
  29. package/dist/components/floating-panel/index.d.ts +1 -0
  30. package/dist/components/hover-card/HoverCard.d.ts +1 -1
  31. package/dist/components/hover-card/HoverCard.js +11 -11
  32. package/dist/components/hover-card/index.d.ts +1 -0
  33. package/dist/components/image-cropper/ImageCropper.js +14 -14
  34. package/dist/components/kbd/Kbd.js +4 -4
  35. package/dist/components/lightbox/Lightbox.js +25 -25
  36. package/dist/components/listbox/Listbox.js +31 -31
  37. package/dist/components/marquee/Marquee.js +12 -12
  38. package/dist/components/menu/Menu.js +41 -41
  39. package/dist/components/navigation-menu/NavigationMenu.js +24 -24
  40. package/dist/components/number-input/NumberInput.js +16 -16
  41. package/dist/components/pagination/Pagination.js +11 -11
  42. package/dist/components/password-input/PasswordInput.js +13 -13
  43. package/dist/components/pin-input/PinInput.js +11 -11
  44. package/dist/components/popover/Popover.js +25 -25
  45. package/dist/components/progress-circular/ProgressCircular.js +16 -16
  46. package/dist/components/progress-linear/ProgressLinear.js +14 -14
  47. package/dist/components/qr-code/QrCode.js +12 -12
  48. package/dist/components/radio-group/RadioGroup.js +14 -14
  49. package/dist/components/rating-group/RatingGroup.js +11 -11
  50. package/dist/components/segment-group/SegmentGroup.js +14 -14
  51. package/dist/components/select/Select.js +33 -33
  52. package/dist/components/sidebar/Sidebar.js +52 -44
  53. package/dist/components/signature-pad/SignaturePad.js +11 -11
  54. package/dist/components/slider/Slider.js +22 -22
  55. package/dist/components/split-button/SplitButton.d.ts +6 -6
  56. package/dist/components/split-button/SplitButton.js +18 -13
  57. package/dist/components/splitter/Splitter.js +9 -9
  58. package/dist/components/steps/Steps.js +23 -23
  59. package/dist/components/swap/Swap.js +6 -6
  60. package/dist/components/switch/Switch.js +9 -9
  61. package/dist/components/table/Table.js +23 -23
  62. package/dist/components/tabs/Tabs.js +12 -12
  63. package/dist/components/tags-input/TagsInput.js +20 -20
  64. package/dist/components/timer/Timer.js +14 -14
  65. package/dist/components/toast/Toast.js +8 -8
  66. package/dist/components/toc/Toc.js +19 -19
  67. package/dist/components/toggle/Toggle.js +4 -4
  68. package/dist/components/tooltip/Tooltip.js +11 -11
  69. package/dist/components/tour/Tour.js +25 -25
  70. package/dist/components/tree-view/TreeView.js +30 -30
  71. package/dist/styles/animations.css +8 -8
  72. package/package.json +14 -15
@@ -23,9 +23,9 @@ const Tour_TourBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...prop
23
23
  return /*#__PURE__*/ jsx(OverlayPortal, {
24
24
  children: /*#__PURE__*/ jsx(Tour.Backdrop, {
25
25
  ref: ref,
26
- "data-slot": "tour-backdrop",
27
26
  className: clsx(Tour_module.backdrop, className),
28
- ...props
27
+ ...props,
28
+ "data-slot": "tour-backdrop"
29
29
  })
30
30
  });
31
31
  });
@@ -33,9 +33,9 @@ const Tour_TourSpotlight = /*#__PURE__*/ forwardRef(function({ className, ...pro
33
33
  return /*#__PURE__*/ jsx(OverlayPortal, {
34
34
  children: /*#__PURE__*/ jsx(Tour.Spotlight, {
35
35
  ref: ref,
36
- "data-slot": "tour-spotlight",
37
36
  className: clsx(Tour_module.spotlight, className),
38
- ...props
37
+ ...props,
38
+ "data-slot": "tour-spotlight"
39
39
  })
40
40
  });
41
41
  });
@@ -43,76 +43,76 @@ const Tour_TourPositioner = /*#__PURE__*/ forwardRef(function({ className, ...pr
43
43
  return /*#__PURE__*/ jsx(OverlayPortal, {
44
44
  children: /*#__PURE__*/ jsx(Tour.Positioner, {
45
45
  ref: ref,
46
- "data-slot": "tour-positioner",
47
46
  className: clsx(Tour_module.positioner, className),
48
- ...props
47
+ ...props,
48
+ "data-slot": "tour-positioner"
49
49
  })
50
50
  });
51
51
  });
52
52
  const Tour_TourContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
53
53
  return /*#__PURE__*/ jsx(Tour.Content, {
54
54
  ref: ref,
55
- "data-slot": "tour-content",
56
55
  className: clsx(Tour_module.content, className),
57
- ...props
56
+ ...props,
57
+ "data-slot": "tour-content"
58
58
  });
59
59
  });
60
60
  const Tour_TourArrow = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
61
61
  return /*#__PURE__*/ jsx(Tour.Arrow, {
62
62
  ref: ref,
63
- "data-slot": "tour-arrow",
64
63
  className: clsx(Tour_module.arrow, className),
65
64
  ...props,
65
+ "data-slot": "tour-arrow",
66
66
  children: children ?? /*#__PURE__*/ jsx(Tour_TourArrowTip, {})
67
67
  });
68
68
  });
69
69
  const Tour_TourArrowTip = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
70
70
  return /*#__PURE__*/ jsx(Tour.ArrowTip, {
71
71
  ref: ref,
72
- "data-slot": "tour-arrow-tip",
73
72
  className: clsx(Tour_module.arrowTip, className),
74
- ...props
73
+ ...props,
74
+ "data-slot": "tour-arrow-tip"
75
75
  });
76
76
  });
77
77
  const Tour_TourTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
78
78
  return /*#__PURE__*/ jsx(Tour.Title, {
79
79
  ref: ref,
80
- "data-slot": "tour-title",
81
80
  className: clsx(Tour_module.title, className),
82
- ...props
81
+ ...props,
82
+ "data-slot": "tour-title"
83
83
  });
84
84
  });
85
85
  const Tour_TourDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
86
86
  return /*#__PURE__*/ jsx(Tour.Description, {
87
87
  ref: ref,
88
- "data-slot": "tour-description",
89
88
  className: clsx(Tour_module.description, className),
90
- ...props
89
+ ...props,
90
+ "data-slot": "tour-description"
91
91
  });
92
92
  });
93
93
  const Tour_TourProgressText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
94
94
  return /*#__PURE__*/ jsx(Tour.ProgressText, {
95
95
  ref: ref,
96
- "data-slot": "tour-progress-text",
97
96
  className: clsx(Tour_module.progressText, className),
98
- ...props
97
+ ...props,
98
+ "data-slot": "tour-progress-text"
99
99
  });
100
100
  });
101
101
  const Tour_TourBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
102
102
  return /*#__PURE__*/ jsx(ark.div, {
103
103
  ref: ref,
104
- "data-slot": "tour-body",
105
104
  className: clsx(Tour_module.body, className),
106
- ...props
105
+ ...props,
106
+ "data-slot": "tour-body"
107
107
  });
108
108
  });
109
109
  const Tour_TourCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
110
110
  return /*#__PURE__*/ jsx(Tour.CloseTrigger, {
111
111
  ref: ref,
112
112
  asChild: asChild,
113
- "data-slot": "tour-close-trigger",
114
113
  className: clsx(!asChild && Tour_module.closeTrigger, className),
115
- ...props
114
+ ...props,
115
+ "data-slot": "tour-close-trigger"
116
116
  });
117
117
  });
118
118
  const Tour_TourCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
@@ -131,18 +131,18 @@ const Tour_TourCloseIcon = /*#__PURE__*/ forwardRef(function({ className, childr
131
131
  const Tour_TourControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
132
132
  return /*#__PURE__*/ jsx(Tour.Control, {
133
133
  ref: ref,
134
- "data-slot": "tour-control",
135
134
  className: clsx(Tour_module.control, className),
136
- ...props
135
+ ...props,
136
+ "data-slot": "tour-control"
137
137
  });
138
138
  });
139
139
  const Tour_TourActionTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
140
140
  return /*#__PURE__*/ jsx(Tour.ActionTrigger, {
141
141
  ref: ref,
142
142
  asChild: asChild,
143
- "data-slot": "tour-action-trigger",
144
143
  className: clsx(!asChild && Tour_module.actionTrigger, className),
145
- ...props
144
+ ...props,
145
+ "data-slot": "tour-action-trigger"
146
146
  });
147
147
  });
148
148
  const TourActions = Tour.Actions;
@@ -8,141 +8,141 @@ import TreeView_module from "./TreeView.module.js";
8
8
  const TreeView_TreeViewRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
9
9
  return /*#__PURE__*/ jsx(TreeView.Root, {
10
10
  ref: ref,
11
- "data-slot": "tree-view-root",
12
11
  className: clsx(TreeView_module.root, className),
13
- ...props
12
+ ...props,
13
+ "data-slot": "tree-view-root"
14
14
  });
15
15
  });
16
16
  const TreeView_TreeViewRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
17
17
  return /*#__PURE__*/ jsx(TreeView.RootProvider, {
18
18
  ref: ref,
19
- "data-slot": "tree-view-root-provider",
20
19
  className: clsx(TreeView_module.root, className),
21
- ...props
20
+ ...props,
21
+ "data-slot": "tree-view-root-provider"
22
22
  });
23
23
  });
24
24
  const TreeView_TreeViewLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
25
25
  return /*#__PURE__*/ jsx(TreeView.Label, {
26
26
  ref: ref,
27
- "data-slot": "tree-view-label",
28
27
  className: clsx(TreeView_module.label, className),
29
- ...props
28
+ ...props,
29
+ "data-slot": "tree-view-label"
30
30
  });
31
31
  });
32
32
  const TreeView_TreeViewTree = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
33
33
  return /*#__PURE__*/ jsx(TreeView.Tree, {
34
34
  ref: ref,
35
- "data-slot": "tree-view-tree",
36
35
  className: clsx(TreeView_module.tree, className),
37
- ...props
36
+ ...props,
37
+ "data-slot": "tree-view-tree"
38
38
  });
39
39
  });
40
40
  const TreeView_TreeViewBranch = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
41
41
  return /*#__PURE__*/ jsx(TreeView.Branch, {
42
42
  ref: ref,
43
- "data-slot": "tree-view-branch",
44
43
  className: clsx(TreeView_module.branch, className),
45
- ...props
44
+ ...props,
45
+ "data-slot": "tree-view-branch"
46
46
  });
47
47
  });
48
48
  const TreeView_TreeViewBranchControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
49
49
  return /*#__PURE__*/ jsx(TreeView.BranchControl, {
50
50
  ref: ref,
51
- "data-slot": "tree-view-branch-control",
52
51
  className: clsx(TreeView_module.branchControl, className),
53
- ...props
52
+ ...props,
53
+ "data-slot": "tree-view-branch-control"
54
54
  });
55
55
  });
56
56
  const TreeView_TreeViewBranchTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
57
57
  return /*#__PURE__*/ jsx(TreeView.BranchTrigger, {
58
58
  ref: ref,
59
- "data-slot": "tree-view-branch-trigger",
60
59
  className: clsx(TreeView_module.branchTrigger, className),
61
60
  ...props,
61
+ "data-slot": "tree-view-branch-trigger",
62
62
  children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
63
63
  });
64
64
  });
65
65
  const TreeView_TreeViewBranchIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
66
66
  return /*#__PURE__*/ jsx(TreeView.BranchIndicator, {
67
67
  ref: ref,
68
- "data-slot": "tree-view-branch-indicator",
69
68
  className: clsx(TreeView_module.branchIndicator, className),
70
69
  ...props,
70
+ "data-slot": "tree-view-branch-indicator",
71
71
  children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
72
72
  });
73
73
  });
74
74
  const TreeView_TreeViewBranchText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
75
75
  return /*#__PURE__*/ jsx(TreeView.BranchText, {
76
76
  ref: ref,
77
- "data-slot": "tree-view-branch-text",
78
77
  className: clsx(TreeView_module.branchText, className),
79
- ...props
78
+ ...props,
79
+ "data-slot": "tree-view-branch-text"
80
80
  });
81
81
  });
82
82
  const TreeView_TreeViewBranchContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
83
83
  return /*#__PURE__*/ jsx(TreeView.BranchContent, {
84
84
  ref: ref,
85
- "data-slot": "tree-view-branch-content",
86
85
  className: clsx(TreeView_module.branchContent, className),
87
- ...props
86
+ ...props,
87
+ "data-slot": "tree-view-branch-content"
88
88
  });
89
89
  });
90
90
  const TreeView_TreeViewBranchIndentGuide = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
91
91
  return /*#__PURE__*/ jsx(TreeView.BranchIndentGuide, {
92
92
  ref: ref,
93
- "data-slot": "tree-view-branch-indent-guide",
94
93
  className: clsx(TreeView_module.branchIndentGuide, className),
95
- ...props
94
+ ...props,
95
+ "data-slot": "tree-view-branch-indent-guide"
96
96
  });
97
97
  });
98
98
  const TreeView_TreeViewItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
99
99
  return /*#__PURE__*/ jsx(TreeView.Item, {
100
100
  ref: ref,
101
- "data-slot": "tree-view-item",
102
101
  className: clsx(TreeView_module.item, className),
103
- ...props
102
+ ...props,
103
+ "data-slot": "tree-view-item"
104
104
  });
105
105
  });
106
106
  const TreeView_TreeViewItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
107
107
  return /*#__PURE__*/ jsx(TreeView.ItemText, {
108
108
  ref: ref,
109
- "data-slot": "tree-view-item-text",
110
109
  className: clsx(TreeView_module.itemText, className),
111
- ...props
110
+ ...props,
111
+ "data-slot": "tree-view-item-text"
112
112
  });
113
113
  });
114
114
  const TreeView_TreeViewItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
115
115
  return /*#__PURE__*/ jsx(TreeView.ItemIndicator, {
116
116
  ref: ref,
117
- "data-slot": "tree-view-item-indicator",
118
117
  className: clsx(TreeView_module.itemIndicator, className),
119
118
  ...props,
119
+ "data-slot": "tree-view-item-indicator",
120
120
  children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
121
121
  });
122
122
  });
123
123
  const TreeView_TreeViewNodeCheckbox = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
124
124
  return /*#__PURE__*/ jsx(TreeView.NodeCheckbox, {
125
125
  ref: ref,
126
- "data-slot": "tree-view-node-checkbox",
127
126
  className: clsx(TreeView_module.nodeCheckbox, className),
128
- ...props
127
+ ...props,
128
+ "data-slot": "tree-view-node-checkbox"
129
129
  });
130
130
  });
131
131
  function TreeViewNodeCheckboxIndicator({ className, children, indeterminate, ...props }) {
132
132
  return /*#__PURE__*/ jsx(TreeView.NodeCheckboxIndicator, {
133
- "data-slot": "tree-view-node-checkbox-indicator",
134
133
  className: clsx(TreeView_module.nodeCheckboxIndicator, className),
135
134
  indeterminate: indeterminate ?? /*#__PURE__*/ jsx(IndeterminateIcon, {}),
136
135
  ...props,
136
+ "data-slot": "tree-view-node-checkbox-indicator",
137
137
  children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
138
138
  });
139
139
  }
140
140
  const TreeView_TreeViewNodeRenameInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
141
141
  return /*#__PURE__*/ jsx(TreeView.NodeRenameInput, {
142
142
  ref: ref,
143
- "data-slot": "tree-view-node-rename-input",
144
143
  className: clsx(TreeView_module.nodeRenameInput, className),
145
- ...props
144
+ ...props,
145
+ "data-slot": "tree-view-node-rename-input"
146
146
  });
147
147
  });
148
148
  const TreeViewNodeProvider = TreeView.NodeProvider;
@@ -124,44 +124,44 @@
124
124
  @keyframes moduix-accordion-item-content-open {
125
125
  from {
126
126
  height: 0;
127
- opacity: var(--moduix-accordion-item-content-closed-opacity, 0.01);
127
+ opacity: 0.01;
128
128
  }
129
129
  to {
130
130
  height: var(--height);
131
- opacity: var(--moduix-accordion-item-content-open-opacity, 1);
131
+ opacity: 1;
132
132
  }
133
133
  }
134
134
 
135
135
  @keyframes moduix-accordion-item-content-closed {
136
136
  from {
137
137
  height: var(--height);
138
- opacity: var(--moduix-accordion-item-content-open-opacity, 1);
138
+ opacity: 1;
139
139
  }
140
140
  to {
141
141
  height: 0;
142
- opacity: var(--moduix-accordion-item-content-closed-opacity, 0.01);
142
+ opacity: 0.01;
143
143
  }
144
144
  }
145
145
 
146
146
  @keyframes moduix-accordion-item-content-open-horizontal {
147
147
  from {
148
148
  width: 0;
149
- opacity: var(--moduix-accordion-item-content-closed-opacity, 0.01);
149
+ opacity: 0.01;
150
150
  }
151
151
  to {
152
152
  width: var(--width);
153
- opacity: var(--moduix-accordion-item-content-open-opacity, 1);
153
+ opacity: 1;
154
154
  }
155
155
  }
156
156
 
157
157
  @keyframes moduix-accordion-item-content-closed-horizontal {
158
158
  from {
159
159
  width: var(--width);
160
- opacity: var(--moduix-accordion-item-content-open-opacity, 1);
160
+ opacity: 1;
161
161
  }
162
162
  to {
163
163
  width: 0;
164
- opacity: var(--moduix-accordion-item-content-closed-opacity, 0.01);
164
+ opacity: 0.01;
165
165
  }
166
166
  }
167
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduix/react",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "React implementation of the moduix component system, built on Ark UI primitives.",
5
5
  "keywords": [
6
6
  "accessible",
@@ -417,30 +417,29 @@
417
417
  "dependencies": {
418
418
  "@unpic/core": "^1.0.3",
419
419
  "@unpic/react": "^1.0.2",
420
- "@zag-js/hotkeys": "1.43.3",
421
420
  "clsx": "^2.1.1",
422
- "lucide-react": "^1.40.0"
421
+ "lucide-react": "^1.46.0"
423
422
  },
424
423
  "devDependencies": {
425
- "@ark-ui/react": "^5.39.1",
426
- "@internationalized/date": "3.12.3",
427
- "@microsoft/api-extractor": "^7.59.0",
428
- "@rsbuild/core": "^2.2.3",
424
+ "@ark-ui/react": "^5.39.2",
425
+ "@internationalized/date": "^3.12.4",
426
+ "@microsoft/api-extractor": "^7.59.1",
427
+ "@rsbuild/core": "^2.2.6",
429
428
  "@rsbuild/plugin-react": "^2.1.0",
430
429
  "@rslib/core": "^1.0.0",
431
430
  "@rstest/adapter-rslib": "^0.11.12",
432
431
  "@rstest/core": "^0.11.12",
433
- "@tanstack/charts": "^0.16.0",
434
- "@testing-library/dom": "^10.4.1",
432
+ "@tanstack/charts": "^0.16.2",
433
+ "@testing-library/dom": "^10.4.2",
435
434
  "@testing-library/jest-dom": "^7.0.1",
436
435
  "@testing-library/react": "^16.3.3",
437
436
  "@testing-library/user-event": "^14.6.7",
438
- "@types/node": "^26.4.1",
439
- "@types/react": "^19.2.18",
440
- "@types/react-dom": "^19.2.7",
441
- "happy-dom": "^20.14.0",
442
- "react": "^19.2.8",
443
- "react-dom": "^19.2.8",
437
+ "@types/node": "^26.5.1",
438
+ "@types/react": "^19.3.0",
439
+ "@types/react-dom": "^19.3.0",
440
+ "happy-dom": "^20.14.5",
441
+ "react": "^19.3.0",
442
+ "react-dom": "^19.3.0",
444
443
  "typescript": "~7.0.2"
445
444
  },
446
445
  "peerDependencies": {