@moduix/react 2.7.0 → 2.8.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 (72) hide show
  1. package/dist/components/accordion/Accordion.js +2 -2
  2. package/dist/components/alert/Alert.js +12 -12
  3. package/dist/components/angle-slider/AngleSlider.js +12 -1
  4. package/dist/components/angle-slider/AngleSlider_module.css +65 -90
  5. package/dist/components/avatar/Avatar.js +1 -1
  6. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +5 -5
  7. package/dist/components/breadcrumbs/Breadcrumbs.js +21 -19
  8. package/dist/components/carousel/Carousel_module.css +2 -2
  9. package/dist/components/command-palette/CommandPalette.js +1 -1
  10. package/dist/components/drawer/Drawer.js +1 -1
  11. package/dist/components/highlight/Highlight_module.css +0 -1
  12. package/dist/components/json-tree-view/JsonTreeView_module.css +9 -1
  13. package/dist/components/marquee/Marquee_module.css +12 -14
  14. package/dist/components/menu/Menu.js +5 -5
  15. package/dist/components/native-select/NativeSelect.js +2 -0
  16. package/dist/components/native-select/NativeSelect_module.css +7 -7
  17. package/dist/components/navigation-menu/NavigationMenu_module.css +2 -2
  18. package/dist/components/number-input/NumberInput_module.css +4 -4
  19. package/dist/components/pagination/Pagination.js +4 -4
  20. package/dist/components/pagination/Pagination_module.css +1 -1
  21. package/dist/components/password-input/PasswordInput_module.css +11 -3
  22. package/dist/components/password-input/index.d.ts +1 -1
  23. package/dist/components/password-input/index.js +1 -1
  24. package/dist/components/popover/Popover.d.ts +2 -2
  25. package/dist/components/popover/index.d.ts +1 -0
  26. package/dist/components/progress-linear/ProgressLinear_module.css +0 -1
  27. package/dist/components/radio-group/RadioGroup.js +1 -1
  28. package/dist/components/radio-group/RadioGroup_module.css +1 -4
  29. package/dist/components/rating-group/RatingGroup.js +4 -4
  30. package/dist/components/rating-group/RatingGroup_module.css +2 -14
  31. package/dist/components/segment-group/SegmentGroup.js +1 -0
  32. package/dist/components/select/Select.module.js +1 -1
  33. package/dist/components/select/Select_module.css +4 -4
  34. package/dist/components/separator/Separator_module.css +6 -6
  35. package/dist/components/sidebar/Sidebar.js +39 -41
  36. package/dist/components/sidebar/Sidebar_module.css +1 -1
  37. package/dist/components/signature-pad/SignaturePad.d.ts +1 -1
  38. package/dist/components/simple-grid/SimpleGrid.js +1 -2
  39. package/dist/components/slider/Slider.js +1 -1
  40. package/dist/components/slider/Slider_module.css +6 -4
  41. package/dist/components/split-button/SplitButton_module.css +4 -1
  42. package/dist/components/steps/Steps_module.css +1 -1
  43. package/dist/components/swap/Swap.js +2 -2
  44. package/dist/components/swap/Swap_module.css +0 -3
  45. package/dist/components/switch/Switch.js +2 -2
  46. package/dist/components/switch/Switch_module.css +2 -2
  47. package/dist/components/table/Table.js +24 -24
  48. package/dist/components/table/Table_module.css +4 -2
  49. package/dist/components/tabs/Tabs.js +2 -2
  50. package/dist/components/tabs/Tabs_module.css +2 -2
  51. package/dist/components/tags-input/TagsInput_module.css +5 -4
  52. package/dist/components/timer/index.d.ts +1 -0
  53. package/dist/components/toast/Toast.module.js +2 -2
  54. package/dist/components/toast/Toast_module.css +4 -6
  55. package/dist/components/toc/Toc.js +3 -1
  56. package/dist/components/toc/Toc_module.css +2 -1
  57. package/dist/components/toggle/Toggle.js +2 -2
  58. package/dist/components/toggle/Toggle_module.css +3 -0
  59. package/dist/components/toggle-group/index.d.ts +1 -0
  60. package/dist/components/tooltip/Tooltip.d.ts +1 -0
  61. package/dist/components/tooltip/Tooltip_module.css +1 -3
  62. package/dist/components/tooltip/index.d.ts +1 -0
  63. package/dist/components/tour/Tour.d.ts +3 -1
  64. package/dist/components/tour/Tour_module.css +2 -3
  65. package/dist/components/tour/index.d.ts +1 -0
  66. package/dist/components/tree-view/TreeView.d.ts +1 -1
  67. package/dist/components/tree-view/TreeView.js +7 -4
  68. package/dist/components/tree-view/TreeView_module.css +7 -5
  69. package/dist/components/typeset/Typeset_module.css +6 -4
  70. package/dist/styles/animations.css +10 -0
  71. package/dist/styles/style.css +2 -0
  72. package/package.json +14 -15
@@ -58,10 +58,10 @@ const Accordion_AccordionItemContent = /*#__PURE__*/ forwardRef(function({ class
58
58
  const Accordion_AccordionItemBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
59
59
  return /*#__PURE__*/ jsx(ark.div, {
60
60
  ref: ref,
61
- "data-scope": "accordion",
62
- "data-part": "item-body",
63
61
  className: clsx(Accordion_module.itemBody, className),
64
62
  ...props,
63
+ "data-scope": "accordion",
64
+ "data-part": "item-body",
65
65
  "data-slot": "accordion-item-body"
66
66
  });
67
67
  });
@@ -7,11 +7,11 @@ const Alert_AlertRoot = /*#__PURE__*/ forwardRef(function({ children, className,
7
7
  return /*#__PURE__*/ jsx(ark.div, {
8
8
  ref: ref,
9
9
  role: role,
10
+ className: clsx(Alert_module.root, className),
11
+ ...props,
10
12
  "data-scope": "alert",
11
13
  "data-part": "root",
12
14
  "data-status": status,
13
- className: clsx(Alert_module.root, className),
14
- ...props,
15
15
  "data-slot": "alert-root",
16
16
  children: children
17
17
  });
@@ -19,51 +19,51 @@ const Alert_AlertRoot = /*#__PURE__*/ forwardRef(function({ children, className,
19
19
  const Alert_AlertIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
20
20
  return /*#__PURE__*/ jsx(ark.span, {
21
21
  ref: ref,
22
- "data-scope": "alert",
23
- "data-part": "indicator",
24
22
  "aria-hidden": "true",
25
23
  className: clsx(Alert_module.indicator, className),
26
24
  ...props,
25
+ "data-scope": "alert",
26
+ "data-part": "indicator",
27
27
  "data-slot": "alert-indicator"
28
28
  });
29
29
  });
30
30
  const Alert_AlertContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
31
31
  return /*#__PURE__*/ jsx(ark.div, {
32
32
  ref: ref,
33
- "data-scope": "alert",
34
- "data-part": "content",
35
33
  className: clsx(Alert_module.content, className),
36
34
  ...props,
35
+ "data-scope": "alert",
36
+ "data-part": "content",
37
37
  "data-slot": "alert-content"
38
38
  });
39
39
  });
40
40
  const Alert_AlertTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
41
41
  return /*#__PURE__*/ jsx(ark.p, {
42
42
  ref: ref,
43
- "data-scope": "alert",
44
- "data-part": "title",
45
43
  className: clsx(Alert_module.title, className),
46
44
  ...props,
45
+ "data-scope": "alert",
46
+ "data-part": "title",
47
47
  "data-slot": "alert-title"
48
48
  });
49
49
  });
50
50
  const Alert_AlertDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
51
51
  return /*#__PURE__*/ jsx(ark.div, {
52
52
  ref: ref,
53
- "data-scope": "alert",
54
- "data-part": "description",
55
53
  className: clsx(Alert_module.description, className),
56
54
  ...props,
55
+ "data-scope": "alert",
56
+ "data-part": "description",
57
57
  "data-slot": "alert-description"
58
58
  });
59
59
  });
60
60
  const Alert_AlertActions = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
61
61
  return /*#__PURE__*/ jsx(ark.div, {
62
62
  ref: ref,
63
- "data-scope": "alert",
64
- "data-part": "actions",
65
63
  className: clsx(Alert_module.actions, className),
66
64
  ...props,
65
+ "data-scope": "alert",
66
+ "data-part": "actions",
67
67
  "data-slot": "alert-actions"
68
68
  });
69
69
  });
@@ -29,11 +29,21 @@ const AngleSlider_AngleSliderRootProvider = /*#__PURE__*/ forwardRef(function({
29
29
  "data-slot": "angle-slider-root-provider"
30
30
  });
31
31
  });
32
- const AngleSlider_AngleSliderControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
32
+ const AngleSlider_AngleSliderControl = /*#__PURE__*/ forwardRef(function({ className, onPointerDown, ...props }, ref) {
33
33
  return /*#__PURE__*/ jsx(AngleSlider.Control, {
34
34
  ref: ref,
35
35
  className: clsx(AngleSlider_module.control, className),
36
36
  ...props,
37
+ onPointerDown: (event)=>{
38
+ onPointerDown?.(event);
39
+ if (event.defaultPrevented || 0 !== event.button) return;
40
+ if (event.currentTarget.matches('[data-disabled], [data-readonly]')) return;
41
+ event.preventDefault();
42
+ event.currentTarget.querySelector('[data-scope="angle-slider"][data-part="thumb"]')?.focus({
43
+ preventScroll: true,
44
+ focusVisible: false
45
+ });
46
+ },
37
47
  "data-slot": "angle-slider-control"
38
48
  });
39
49
  });
@@ -74,6 +84,7 @@ function AngleSliderDial({ children, ...props }) {
74
84
  ...props,
75
85
  children: [
76
86
  children,
87
+ /*#__PURE__*/ jsx(AngleSlider_AngleSliderValueText, {}),
77
88
  /*#__PURE__*/ jsx(AngleSlider_AngleSliderThumb, {})
78
89
  ]
79
90
  });
@@ -22,72 +22,70 @@
22
22
  }
23
23
 
24
24
  .control-TKuxcQ {
25
- --_angle-slider-control-border-color: var(--moduix-angle-slider-control-border-color, var(--moduix-color-border));
26
- --_angle-slider-track-border-color: var(--moduix-angle-slider-track-border-color, var(--moduix-color-border));
25
+ --_angle-slider-fill-color: var(--moduix-angle-slider-indicator-bg, var(--moduix-color-primary));
26
+ --_angle-slider-track-color: var(--moduix-angle-slider-track-bg, var(--moduix-color-muted));
27
+ --_angle-slider-thumb-border-color: var(--moduix-angle-slider-thumb-border-color, var(--moduix-color-border));
27
28
  box-sizing: border-box;
28
29
  width: var(--moduix-angle-slider-size, 8rem);
29
30
  aspect-ratio: 1;
30
- border-radius: var(--moduix-angle-slider-radius, var(--moduix-radius-full));
31
- background-color: var(--moduix-angle-slider-track-bg, var(--moduix-color-muted));
32
- min-width: 0;
33
- box-shadow: inset 0 0 0 var(--moduix-angle-slider-track-border-width, var(--moduix-border-width-sm))
34
- var(--_angle-slider-track-border-color),
35
- var(--moduix-angle-slider-shadow, none);
31
+ border-radius: var(--moduix-radius-full);
36
32
  cursor: pointer;
37
33
  -webkit-user-select: none;
38
34
  user-select: none;
39
- transition: background-color
40
- var(--moduix-angle-slider-transition, var(--moduix-transition-default));
41
35
  outline: 0;
42
- justify-content: center;
43
- align-items: center;
44
- display: flex;
36
+ min-width: 0;
45
37
  position: relative;
46
38
  }
47
39
 
48
- @media (hover: hover) {
49
- .control-TKuxcQ:not([data-disabled], [data-readonly]):hover {
50
- background-color: var(--moduix-angle-slider-track-bg-hover, var(--moduix-angle-slider-track-bg, var(--moduix-color-muted)));
51
- }
52
- }
53
-
54
- .control-TKuxcQ:not([data-disabled], [data-readonly]):active {
55
- background-color: var(--moduix-angle-slider-track-bg-active, var(--moduix-angle-slider-track-bg, var(--moduix-color-muted)));
56
- }
57
-
58
- .control-TKuxcQ:after {
59
- z-index: 1;
60
- inset: var(--moduix-angle-slider-ring-thickness, .875rem);
40
+ .control-TKuxcQ:before {
61
41
  border-radius: inherit;
62
- background: var(--moduix-angle-slider-control-bg, var(--moduix-color-background));
63
- box-shadow: inset 0 0 0
64
- var(--moduix-angle-slider-control-border-width, var(--moduix-border-width-sm))
65
- var(--_angle-slider-control-border-color);
42
+ background: conic-gradient(from 0deg,
43
+ var(--_angle-slider-fill-color) var(--angle, 0deg),
44
+ var(--_angle-slider-track-color) var(--angle, 0deg));
45
+ -webkit-mask: radial-gradient(closest-side,
46
+ transparent calc(100% - var(--moduix-angle-slider-ring-thickness, .5rem) - 1px),
47
+ #000 calc(100% - var(--moduix-angle-slider-ring-thickness, .5rem)));
48
+ mask: radial-gradient(closest-side,
49
+ transparent calc(100% - var(--moduix-angle-slider-ring-thickness, .5rem) - 1px),
50
+ #000 calc(100% - var(--moduix-angle-slider-ring-thickness, .5rem)));
66
51
  content: "";
67
52
  position: absolute;
53
+ inset: 0;
68
54
  }
69
55
 
70
- .control-TKuxcQ:before {
56
+ .control-TKuxcQ:after {
57
+ top: calc(var(--moduix-angle-slider-ring-thickness, .5rem) / 2);
71
58
  z-index: 1;
72
- width: var(--moduix-angle-slider-center-dot-size, var(--moduix-spacing-1-5));
73
- height: var(--moduix-angle-slider-center-dot-size, var(--moduix-spacing-1-5));
74
- border-radius: inherit;
75
- background: var(--moduix-angle-slider-center-dot-color, var(--moduix-angle-slider-color, var(--moduix-color-foreground)));
59
+ width: var(--moduix-angle-slider-ring-thickness, .5rem);
60
+ height: var(--moduix-angle-slider-ring-thickness, .5rem);
61
+ border-radius: var(--moduix-radius-full);
62
+ background: var(--_angle-slider-fill-color);
76
63
  content: "";
77
64
  position: absolute;
65
+ left: 50%;
66
+ transform: translate(-50%, -50%);
67
+ }
68
+
69
+ @media (hover: hover) {
70
+ .control-TKuxcQ:not([data-disabled], [data-readonly]):hover:before {
71
+ --_angle-slider-track-color: var(--moduix-angle-slider-track-bg-hover, var(--moduix-angle-slider-track-bg, var(--moduix-color-muted)));
72
+ }
73
+ }
74
+
75
+ .control-TKuxcQ:not([data-disabled], [data-readonly]):active:before {
76
+ --_angle-slider-track-color: var(--moduix-angle-slider-track-bg-active, var(--moduix-angle-slider-track-bg, var(--moduix-color-muted)));
78
77
  }
79
78
 
80
- .control-TKuxcQ:has(.thumb-BSrcel:focus-visible) {
81
- box-shadow: inset 0 0 0 var(--moduix-angle-slider-track-border-width, var(--moduix-border-width-sm))
82
- var(--_angle-slider-track-border-color),
83
- 0 0 0 var(--moduix-angle-slider-focus-ring-width, .1875rem)
79
+ .control-TKuxcQ:active:not([data-disabled], [data-readonly]) .thumb-BSrcel:before {
80
+ border-color: var(--moduix-angle-slider-focus-ring-color, var(--moduix-color-ring));
81
+ box-shadow: 0 0 0 var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))
84
82
  var(--moduix-angle-slider-focus-ring-color, var(--moduix-color-ring)),
85
- var(--moduix-angle-slider-shadow, none);
83
+ var(--moduix-angle-slider-thumb-shadow-dragging, var(--moduix-shadow-md));
86
84
  }
87
85
 
88
86
  .control-TKuxcQ[data-invalid] {
89
- --_angle-slider-control-border-color: var(--moduix-angle-slider-invalid-border-color, var(--moduix-angle-slider-invalid-color, var(--moduix-color-destructive)));
90
- --_angle-slider-track-border-color: var(--moduix-angle-slider-invalid-border-color, var(--moduix-angle-slider-invalid-color, var(--moduix-color-destructive)));
87
+ --_angle-slider-fill-color: var(--moduix-angle-slider-invalid-indicator-bg, var(--moduix-angle-slider-invalid-color, var(--moduix-color-destructive)));
88
+ --_angle-slider-thumb-border-color: var(--moduix-angle-slider-invalid-indicator-bg, var(--moduix-angle-slider-invalid-color, var(--moduix-color-destructive)));
91
89
  }
92
90
 
93
91
  .control-TKuxcQ:is([data-disabled], [data-readonly]) {
@@ -95,72 +93,40 @@
95
93
  }
96
94
 
97
95
  .thumb-BSrcel {
98
- top: 0;
99
- bottom: 0;
100
- left: calc(50% - var(--moduix-angle-slider-thumb-line-width, .1875rem) / 2);
101
96
  z-index: 2;
102
- width: var(--moduix-angle-slider-thumb-line-width, .1875rem);
103
97
  outline: 0;
98
+ width: 0;
104
99
  position: absolute;
100
+ top: 0;
101
+ bottom: 0;
102
+ left: 50%;
105
103
  }
106
104
 
107
105
  .thumb-BSrcel:before {
108
- top: var(--moduix-angle-slider-ring-thickness, .875rem);
106
+ top: calc(var(--moduix-angle-slider-ring-thickness, .5rem) / 2);
109
107
  box-sizing: border-box;
110
108
  width: var(--moduix-angle-slider-thumb-size, var(--moduix-spacing-4));
111
109
  height: var(--moduix-angle-slider-thumb-size, var(--moduix-spacing-4));
112
110
  border: var(--moduix-angle-slider-thumb-border-width, var(--moduix-border-width-sm)) solid
113
- var(--moduix-angle-slider-thumb-border-color, var(--moduix-color-border));
111
+ var(--_angle-slider-thumb-border-color);
114
112
  border-radius: var(--moduix-angle-slider-thumb-radius, var(--moduix-radius-full));
115
- background: var(--moduix-angle-slider-thumb-bg, var(--moduix-angle-slider-indicator-bg, var(--moduix-color-primary)));
113
+ background: var(--moduix-angle-slider-thumb-bg, var(--moduix-color-background));
116
114
  box-shadow: var(--moduix-angle-slider-thumb-shadow, var(--moduix-shadow-sm));
117
115
  transition: border-color var(--moduix-angle-slider-transition, var(--moduix-transition-default)),
118
- box-shadow var(--moduix-angle-slider-transition, var(--moduix-transition-default)),
119
116
  background-color var(--moduix-angle-slider-transition, var(--moduix-transition-default)),
120
- transform var(--moduix-angle-slider-transition, var(--moduix-transition-default));
117
+ box-shadow var(--moduix-angle-slider-transition, var(--moduix-transition-default));
121
118
  content: "";
122
119
  position: absolute;
123
- left: 50%;
124
- transform: translateX(-50%);
125
- }
126
-
127
- .thumb-BSrcel:after {
128
- top: calc(var(--moduix-angle-slider-ring-thickness, .875rem) +
129
- var(--moduix-angle-slider-thumb-size, var(--moduix-spacing-4)) + var(--moduix-spacing-1));
130
- width: var(--moduix-angle-slider-thumb-line-width, .1875rem);
131
- height: calc(50% - var(--moduix-angle-slider-ring-thickness, .875rem) -
132
- var(--moduix-angle-slider-thumb-size, var(--moduix-spacing-4)) - var(--moduix-spacing-1-5));
133
- border-radius: var(--moduix-radius-full);
134
- background: linear-gradient(to bottom,
135
- var(--moduix-angle-slider-indicator-bg, var(--moduix-color-primary)),
136
- transparent);
137
- content: "";
138
- position: absolute;
139
- left: 50%;
140
- transform: translateX(-50%);
120
+ left: 0;
121
+ transform: translate(-50%, -50%);
141
122
  }
142
123
 
143
124
  .thumb-BSrcel:focus-visible:before {
144
125
  border-color: var(--moduix-angle-slider-focus-ring-color, var(--moduix-color-ring));
145
- box-shadow: 0 0 0 var(--moduix-border-width-sm)
126
+ box-shadow: 0 0 0 var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))
146
127
  var(--moduix-angle-slider-focus-ring-color, var(--moduix-color-ring));
147
128
  }
148
129
 
149
- .thumb-BSrcel:active:not([data-disabled], [data-readonly]):before {
150
- transform: translateX(-50%) scale(1.08);
151
- }
152
-
153
- .thumb-BSrcel[data-invalid]:before {
154
- border-color: var(--moduix-angle-slider-invalid-border-color, var(--moduix-angle-slider-invalid-color, var(--moduix-color-destructive)));
155
- background: var(--moduix-angle-slider-invalid-indicator-bg, var(--moduix-angle-slider-invalid-color, var(--moduix-color-destructive)));
156
- }
157
-
158
- .thumb-BSrcel[data-invalid]:after {
159
- background: linear-gradient(to bottom,
160
- var(--moduix-angle-slider-invalid-indicator-bg, var(--moduix-angle-slider-invalid-color, var(--moduix-color-destructive))),
161
- transparent);
162
- }
163
-
164
130
  .thumb-BSrcel[data-disabled] {
165
131
  pointer-events: none;
166
132
  }
@@ -178,9 +144,9 @@
178
144
  }
179
145
 
180
146
  .marker-kWcrOw:before {
181
- top: calc(var(--moduix-angle-slider-ring-thickness, .875rem) + .125rem);
147
+ top: calc(var(--moduix-angle-slider-ring-thickness, .5rem) / 2);
182
148
  width: var(--moduix-angle-slider-marker-width, .125rem);
183
- height: var(--moduix-angle-slider-marker-height, .625rem);
149
+ height: var(--moduix-angle-slider-marker-height, .5rem);
184
150
  border-radius: var(--moduix-radius-full);
185
151
  background: var(--moduix-angle-slider-marker-color, var(--moduix-color-muted-foreground));
186
152
  content: "";
@@ -199,14 +165,23 @@
199
165
 
200
166
  .valueText-QUG00u {
201
167
  color: var(--moduix-angle-slider-value-text-color, var(--moduix-angle-slider-color, var(--moduix-color-foreground)));
202
- font-size: var(--moduix-angle-slider-value-text-font-size, var(--moduix-text-sm));
168
+ font-size: var(--moduix-angle-slider-value-text-font-size, var(--moduix-text-lg));
203
169
  font-weight: var(--moduix-angle-slider-value-text-font-weight, var(--moduix-weight-medium));
204
- line-height: var(--moduix-angle-slider-value-text-line-height, var(--moduix-line-height-text-sm));
170
+ font-variant-numeric: tabular-nums;
171
+ line-height: var(--moduix-angle-slider-value-text-line-height, var(--moduix-line-height-text-lg));
205
172
  text-align: center;
206
173
  }
207
174
 
175
+ .control-TKuxcQ .valueText-QUG00u {
176
+ z-index: 1;
177
+ place-items: center;
178
+ display: grid;
179
+ position: absolute;
180
+ inset: 0;
181
+ }
182
+
208
183
  @media (prefers-reduced-motion: reduce) {
209
- .control-TKuxcQ, .thumb-BSrcel:before {
184
+ .thumb-BSrcel:before {
210
185
  transition: none;
211
186
  }
212
187
  }
@@ -15,9 +15,9 @@ const Avatar_AvatarRoot = /*#__PURE__*/ forwardRef(function({ className, size, .
15
15
  const Avatar_AvatarRootProvider = /*#__PURE__*/ forwardRef(function({ className, size, ...props }, ref) {
16
16
  return /*#__PURE__*/ jsx(Avatar.RootProvider, {
17
17
  ref: ref,
18
- "data-size": size,
19
18
  className: clsx(Avatar_module.root, className),
20
19
  ...props,
20
+ "data-size": size,
21
21
  "data-slot": "avatar-root-provider"
22
22
  });
23
23
  });
@@ -1,8 +1,7 @@
1
1
  import type { HTMLArkProps } from '@ark-ui/react/factory';
2
- import { type Key, type ReactNode } from 'react';
3
- type BreadcrumbsPathItem = {
4
- href?: string;
5
- key?: Key;
2
+ import { type ReactNode } from 'react';
3
+ type BreadcrumbsPathLink = {
4
+ href: string;
6
5
  label: ReactNode;
7
6
  };
8
7
  declare const Breadcrumbs: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>> & {
@@ -11,7 +10,8 @@ declare const Breadcrumbs: import("react").ForwardRefExoticComponent<Omit<import
11
10
  Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLLIElement>>;
12
11
  Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLAnchorElement>>;
13
12
  Path: import("react").ForwardRefExoticComponent<Omit<HTMLArkProps<"ol">, "asChild" | "children"> & {
14
- items: readonly BreadcrumbsPathItem[];
13
+ links: readonly BreadcrumbsPathLink[];
14
+ page: ReactNode;
15
15
  separator?: ReactNode;
16
16
  } & import("react").RefAttributes<HTMLOListElement>>;
17
17
  Page: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -46,28 +46,30 @@ const Breadcrumbs_BreadcrumbsPage = /*#__PURE__*/ forwardRef(function({ classNam
46
46
  className: clsx(Breadcrumbs_module.page, className)
47
47
  });
48
48
  });
49
- const Breadcrumbs_BreadcrumbsPath = /*#__PURE__*/ forwardRef(function({ items, separator, ...props }, ref) {
50
- return /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsList, {
49
+ const Breadcrumbs_BreadcrumbsPath = /*#__PURE__*/ forwardRef(function({ links, page, separator, ...props }, ref) {
50
+ return /*#__PURE__*/ jsxs(Breadcrumbs_BreadcrumbsList, {
51
51
  ref: ref,
52
52
  ...props,
53
- children: items.map((item, index)=>{
54
- const isLastItem = index === items.length - 1;
55
- return /*#__PURE__*/ jsxs(Fragment, {
56
- children: [
57
- /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsItem, {
58
- children: isLastItem ? /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsPage, {
59
- children: item.label
60
- }) : /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsLink, {
61
- href: item.href,
62
- children: item.label
53
+ children: [
54
+ links.map((link, index)=>/*#__PURE__*/ jsxs(Fragment, {
55
+ children: [
56
+ /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsItem, {
57
+ children: /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsLink, {
58
+ href: link.href,
59
+ children: link.label
60
+ })
61
+ }),
62
+ /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsSeparator, {
63
+ children: separator
63
64
  })
64
- }),
65
- isLastItem ? null : /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsSeparator, {
66
- children: separator
67
- })
68
- ]
69
- }, item.key ?? index);
70
- })
65
+ ]
66
+ }, index)),
67
+ /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsItem, {
68
+ children: /*#__PURE__*/ jsx(Breadcrumbs_BreadcrumbsPage, {
69
+ children: page
70
+ })
71
+ })
72
+ ]
71
73
  });
72
74
  });
73
75
  const Breadcrumbs_BreadcrumbsSeparator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  :is(.prevTrigger-TQv4Ak, .nextTrigger-PkJ3_8, .autoplayTrigger-h1Iihy):not(:disabled, [data-disabled]):hover {
96
- border-color: var(--moduix-carousel-control-border-color-hover, color-mix(in oklab, var(--moduix-color-border) 50%, var(--moduix-color-foreground) 50%));
96
+ border-color: var(--moduix-carousel-control-border-color-hover, var(--moduix-color-ring));
97
97
  background-color: var(--moduix-carousel-control-bg-hover, var(--moduix-color-accent));
98
98
  box-shadow: var(--moduix-carousel-control-shadow-hover, var(--moduix-shadow-md));
99
99
  color: var(--moduix-carousel-control-color-hover, var(--moduix-color-accent-foreground));
@@ -111,7 +111,7 @@
111
111
  }
112
112
 
113
113
  :is(.prevTrigger-TQv4Ak, .nextTrigger-PkJ3_8, .autoplayTrigger-h1Iihy)[data-pressed] {
114
- border-color: var(--moduix-carousel-control-border-color-hover, color-mix(in oklab, var(--moduix-color-border) 50%, var(--moduix-color-foreground) 50%));
114
+ border-color: var(--moduix-carousel-control-border-color-hover, var(--moduix-color-ring));
115
115
  background-color: var(--moduix-carousel-control-bg-hover, var(--moduix-color-accent));
116
116
  color: var(--moduix-carousel-control-color-hover, var(--moduix-color-accent-foreground));
117
117
  }
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Combobox } from "@ark-ui/react/combobox";
4
4
  import { Dialog, useDialog, useDialogContext } from "@ark-ui/react/dialog";
5
5
  import { ark } from "@ark-ui/react/factory";
6
- import { isHotKey } from "@zag-js/hotkeys";
6
+ import { isHotKey } from "@ark-ui/react/hotkeys";
7
7
  import { clsx } from "clsx";
8
8
  import { forwardRef, useEffect } from "react";
9
9
  import { CheckIcon, CloseIcon } from "../../internal/icons/ui/index.js";
@@ -73,9 +73,9 @@ const Drawer_DrawerContent = /*#__PURE__*/ forwardRef(function({ className, vari
73
73
  const rootVariant = useContext(DrawerVariantContext);
74
74
  return /*#__PURE__*/ jsx(Drawer.Content, {
75
75
  ref: ref,
76
- "data-variant": variant ?? rootVariant,
77
76
  className: clsx(Drawer_module.content, className),
78
77
  ...props,
78
+ "data-variant": variant ?? rootVariant,
79
79
  "data-slot": "drawer-content"
80
80
  });
81
81
  });
@@ -6,7 +6,6 @@
6
6
  background-color: var(--moduix-highlight-bg, color-mix(in oklab, var(--moduix-color-warning) 40%, var(--moduix-color-accent)));
7
7
  color: var(--moduix-highlight-color, var(--moduix-color-foreground));
8
8
  box-shadow: var(--moduix-highlight-shadow, none);
9
- font: inherit;
10
9
  font-weight: var(--moduix-highlight-font-weight, var(--moduix-weight-medium));
11
10
  -webkit-box-decoration-break: clone;
12
11
  box-decoration-break: clone;
@@ -64,7 +64,15 @@
64
64
  inset-inline-end: 0;
65
65
  }
66
66
 
67
- :is(.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):not([data-disabled]):hover, .root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-selected]):before {
67
+ @media (hover: hover) {
68
+ .root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):not([data-disabled]):hover:before {
69
+ background-color: color-mix(in oklab,
70
+ var(--moduix-color-accent) 72%,
71
+ var(--moduix-color-background));
72
+ }
73
+ }
74
+
75
+ .root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-selected]:before {
68
76
  background-color: color-mix(in oklab,
69
77
  var(--moduix-color-accent) 72%,
70
78
  var(--moduix-color-background));
@@ -1,9 +1,5 @@
1
1
  @layer moduix.components {
2
2
  .root-liPuNO {
3
- --marquee-edge-color: var(--moduix-color-background);
4
- --marquee-edge-size: 20%;
5
- --moduix-marquee-edge-color: var(--marquee-edge-color);
6
- --moduix-marquee-edge-size: var(--marquee-edge-size);
7
3
  box-sizing: border-box;
8
4
  width: var(--moduix-marquee-width, 100%);
9
5
  height: var(--moduix-marquee-height, auto);
@@ -54,36 +50,38 @@
54
50
  }
55
51
 
56
52
  .edge-LzcjhJ {
53
+ --_edge-color: var(--moduix-marquee-edge-color, var(--marquee-edge-color, var(--moduix-color-background)));
54
+ --_edge-size: var(--moduix-marquee-edge-size, var(--marquee-edge-size, 20%));
57
55
  z-index: var(--moduix-marquee-edge-z-index, 1);
58
56
  pointer-events: none;
59
57
  }
60
58
 
61
59
  .edge-LzcjhJ[data-side="start"] {
62
- width: var(--moduix-marquee-edge-size);
63
- background: linear-gradient(to right, var(--moduix-marquee-edge-color), transparent);
60
+ width: var(--_edge-size);
61
+ background: linear-gradient(to right, var(--_edge-color), transparent);
64
62
  }
65
63
 
66
64
  .edge-LzcjhJ[data-side="start"][dir="rtl"] {
67
- background: linear-gradient(to left, var(--moduix-marquee-edge-color), transparent);
65
+ background: linear-gradient(to left, var(--_edge-color), transparent);
68
66
  }
69
67
 
70
68
  .edge-LzcjhJ[data-side="end"] {
71
- width: var(--moduix-marquee-edge-size);
72
- background: linear-gradient(to left, var(--moduix-marquee-edge-color), transparent);
69
+ width: var(--_edge-size);
70
+ background: linear-gradient(to left, var(--_edge-color), transparent);
73
71
  }
74
72
 
75
73
  .edge-LzcjhJ[data-side="end"][dir="rtl"] {
76
- background: linear-gradient(to right, var(--moduix-marquee-edge-color), transparent);
74
+ background: linear-gradient(to right, var(--_edge-color), transparent);
77
75
  }
78
76
 
79
77
  .edge-LzcjhJ[data-side="top"] {
80
- height: var(--moduix-marquee-edge-size);
81
- background: linear-gradient(to bottom, var(--moduix-marquee-edge-color), transparent);
78
+ height: var(--_edge-size);
79
+ background: linear-gradient(to bottom, var(--_edge-color), transparent);
82
80
  }
83
81
 
84
82
  .edge-LzcjhJ[data-side="bottom"] {
85
- height: var(--moduix-marquee-edge-size);
86
- background: linear-gradient(to top, var(--moduix-marquee-edge-color), transparent);
83
+ height: var(--_edge-size);
84
+ background: linear-gradient(to top, var(--_edge-color), transparent);
87
85
  }
88
86
 
89
87
  @keyframes marquee-x-Su5_G3 {
@@ -91,10 +91,10 @@ const Menu_MenuContent = /*#__PURE__*/ forwardRef(function({ asChild, className,
91
91
  const Menu_MenuViewport = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
92
92
  return /*#__PURE__*/ jsx(ark.div, {
93
93
  ref: ref,
94
- "data-scope": "menu",
95
- "data-part": "viewport",
96
94
  className: clsx(Menu_module.viewport, className),
97
95
  ...props,
96
+ "data-scope": "menu",
97
+ "data-part": "viewport",
98
98
  "data-slot": "menu-viewport"
99
99
  });
100
100
  });
@@ -118,9 +118,9 @@ const Menu_MenuArrowTip = /*#__PURE__*/ forwardRef(function({ className, ...prop
118
118
  const Menu_MenuItem = /*#__PURE__*/ forwardRef(function({ className, tone = 'default', ...props }, ref) {
119
119
  return /*#__PURE__*/ jsx(Menu.Item, {
120
120
  ref: ref,
121
- "data-tone": tone,
122
121
  className: clsx(Menu_module.item, className),
123
122
  ...props,
123
+ "data-tone": tone,
124
124
  "data-slot": "menu-item"
125
125
  });
126
126
  });
@@ -178,18 +178,18 @@ const Menu_MenuRadioItemGroup = /*#__PURE__*/ forwardRef(function({ className, .
178
178
  const Menu_MenuRadioItem = /*#__PURE__*/ forwardRef(function({ className, indicator = 'start', ...props }, ref) {
179
179
  return /*#__PURE__*/ jsx(Menu.RadioItem, {
180
180
  ref: ref,
181
- "data-indicator-position": indicator,
182
181
  className: clsx(Menu_module.radioItem, className),
183
182
  ...props,
183
+ "data-indicator-position": indicator,
184
184
  "data-slot": "menu-radio-item"
185
185
  });
186
186
  });
187
187
  const Menu_MenuCheckboxItem = /*#__PURE__*/ forwardRef(function({ className, indicator = 'start', ...props }, ref) {
188
188
  return /*#__PURE__*/ jsx(Menu.CheckboxItem, {
189
189
  ref: ref,
190
- "data-indicator-position": indicator,
191
190
  className: clsx(Menu_module.checkboxItem, className),
192
191
  ...props,
192
+ "data-indicator-position": indicator,
193
193
  "data-slot": "menu-checkbox-item"
194
194
  });
195
195
  });
@@ -15,6 +15,8 @@ const NativeSelect_NativeSelectRoot = /*#__PURE__*/ forwardRef(function({ classN
15
15
  /*#__PURE__*/ jsx(Field.Select, {
16
16
  ...props,
17
17
  ref: ref,
18
+ "data-scope": "field",
19
+ "data-part": "select",
18
20
  "data-slot": "native-select-root",
19
21
  className: clsx(NativeSelect_module.root, className)
20
22
  }),