@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
@@ -53,9 +53,7 @@ const Switch_SwitchLabel = /*#__PURE__*/ forwardRef(function({ className, ...pro
53
53
  });
54
54
  });
55
55
  function withHiddenInput(children, asChild) {
56
- const hiddenInput = /*#__PURE__*/ jsx(Switch.HiddenInput, {
57
- "data-slot": "switch-hidden-input"
58
- });
56
+ const hiddenInput = /*#__PURE__*/ jsx(SwitchHiddenInput, {});
59
57
  if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
60
58
  children: [
61
59
  children,
@@ -65,6 +63,14 @@ function withHiddenInput(children, asChild) {
65
63
  const child = Children.only(children);
66
64
  return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
67
65
  }
66
+ function SwitchHiddenInput() {
67
+ const switchApi = useSwitchContext();
68
+ const readOnly = void 0 !== switchApi.getRootProps()['data-readonly'];
69
+ return /*#__PURE__*/ jsx(Switch.HiddenInput, {
70
+ "aria-readonly": readOnly || void 0,
71
+ "data-slot": "switch-hidden-input"
72
+ });
73
+ }
68
74
  const Switch_Switch = Object.assign(Switch_SwitchRoot, {
69
75
  Root: Switch_SwitchRoot,
70
76
  RootProvider: Switch_SwitchRootProvider,
@@ -19,9 +19,9 @@
19
19
 
20
20
  .control-_x56fO {
21
21
  box-sizing: border-box;
22
- width: var(--moduix-switch-width, 3rem);
23
- height: var(--moduix-switch-height, var(--moduix-size-xs));
24
- --moduix-switch-thumb-translate-default: calc(var(--moduix-switch-width, 3rem) - var(--moduix-switch-thumb-size, var(--moduix-spacing-5)) -
22
+ width: var(--_switch-width, 3rem);
23
+ height: var(--_switch-height, var(--moduix-size-xs));
24
+ --_switch-thumb-translate-default: calc(var(--_switch-width, 3rem) - var(--_switch-thumb-size, var(--moduix-spacing-5)) -
25
25
  (var(--moduix-switch-padding, var(--moduix-spacing-0-5)) * 2) -
26
26
  (var(--moduix-switch-border-width, var(--moduix-border-width-sm)) * 2));
27
27
  border: var(--moduix-switch-border-width, var(--moduix-border-width-sm)) solid
@@ -48,7 +48,7 @@
48
48
  }
49
49
 
50
50
  .control-_x56fO[data-invalid] {
51
- border-color: var(--moduix-color-destructive);
51
+ border-color: var(--moduix-switch-border-color-invalid, var(--moduix-color-destructive));
52
52
  }
53
53
 
54
54
  .control-_x56fO[data-focus-visible] {
@@ -68,38 +68,38 @@
68
68
  }
69
69
 
70
70
  .root-BQV0g7[data-size="xs"] .control-_x56fO {
71
- --moduix-switch-width: var(--moduix-switch-width-xs, 1.75rem);
72
- --moduix-switch-height: var(--moduix-switch-height-xs, 1rem);
73
- --moduix-switch-thumb-size: var(--moduix-switch-thumb-size-xs, var(--moduix-spacing-3));
71
+ --_switch-width: var(--moduix-switch-width-xs, 1.75rem);
72
+ --_switch-height: var(--moduix-switch-height-xs, 1rem);
73
+ --_switch-thumb-size: var(--moduix-switch-thumb-size-xs, var(--moduix-spacing-3));
74
74
  }
75
75
 
76
76
  .root-BQV0g7[data-size="sm"] .control-_x56fO {
77
- --moduix-switch-width: var(--moduix-switch-width-sm, 2.25rem);
78
- --moduix-switch-height: var(--moduix-switch-height-sm, 1.25rem);
79
- --moduix-switch-thumb-size: var(--moduix-switch-thumb-size-sm, var(--moduix-spacing-4));
77
+ --_switch-width: var(--moduix-switch-width-sm, 2.25rem);
78
+ --_switch-height: var(--moduix-switch-height-sm, 1.25rem);
79
+ --_switch-thumb-size: var(--moduix-switch-thumb-size-sm, var(--moduix-spacing-4));
80
80
  }
81
81
 
82
82
  .root-BQV0g7[data-size="md"] .control-_x56fO {
83
- --moduix-switch-width: var(--moduix-switch-width-md, 2.75rem);
84
- --moduix-switch-height: var(--moduix-switch-height-md, var(--moduix-size-xs));
85
- --moduix-switch-thumb-size: var(--moduix-switch-thumb-size-md, var(--moduix-spacing-5));
83
+ --_switch-width: var(--moduix-switch-width-md, 2.75rem);
84
+ --_switch-height: var(--moduix-switch-height-md, var(--moduix-size-xs));
85
+ --_switch-thumb-size: var(--moduix-switch-thumb-size-md, var(--moduix-spacing-5));
86
86
  }
87
87
 
88
88
  .root-BQV0g7[data-size="lg"] .control-_x56fO {
89
- --moduix-switch-width: var(--moduix-switch-width-lg, 3.25rem);
90
- --moduix-switch-height: var(--moduix-switch-height-lg, 1.75rem);
91
- --moduix-switch-thumb-size: var(--moduix-switch-thumb-size-lg, var(--moduix-size-xs));
89
+ --_switch-width: var(--moduix-switch-width-lg, 3.25rem);
90
+ --_switch-height: var(--moduix-switch-height-lg, 1.75rem);
91
+ --_switch-thumb-size: var(--moduix-switch-thumb-size-lg, var(--moduix-size-xs));
92
92
  }
93
93
 
94
94
  .root-BQV0g7[data-size="xl"] .control-_x56fO {
95
- --moduix-switch-width: var(--moduix-switch-width-xl, 3.75rem);
96
- --moduix-switch-height: var(--moduix-switch-height-xl, var(--moduix-size-sm));
97
- --moduix-switch-thumb-size: var(--moduix-switch-thumb-size-xl, var(--moduix-spacing-7));
95
+ --_switch-width: var(--moduix-switch-width-xl, 3.75rem);
96
+ --_switch-height: var(--moduix-switch-height-xl, var(--moduix-size-sm));
97
+ --_switch-thumb-size: var(--moduix-switch-thumb-size-xl, var(--moduix-spacing-7));
98
98
  }
99
99
 
100
100
  .thumb-AkEGnM {
101
- width: var(--moduix-switch-thumb-size, var(--moduix-spacing-5));
102
- height: var(--moduix-switch-thumb-size, var(--moduix-spacing-5));
101
+ width: var(--_switch-thumb-size, var(--moduix-spacing-5));
102
+ height: var(--_switch-thumb-size, var(--moduix-spacing-5));
103
103
  border: var(--moduix-switch-thumb-border-width, 0) solid
104
104
  var(--moduix-switch-thumb-border-color, transparent);
105
105
  border-radius: var(--moduix-switch-thumb-radius, var(--moduix-radius-full));
@@ -119,17 +119,18 @@
119
119
  .thumb-AkEGnM[data-state="checked"] {
120
120
  background-color: var(--moduix-switch-thumb-bg-checked, var(--moduix-switch-thumb-bg, var(--moduix-color-primary-foreground)));
121
121
  color: var(--moduix-switch-thumb-color-checked, var(--moduix-switch-thumb-color, var(--moduix-color-primary)));
122
- transform: translateX(var(--moduix-switch-thumb-translate, var(--moduix-switch-thumb-translate-default)));
122
+ transform: translateX(var(--moduix-switch-thumb-translate, var(--_switch-thumb-translate-default)));
123
123
  }
124
124
 
125
125
  .thumb-AkEGnM > svg {
126
126
  width: var(--moduix-switch-thumb-icon-size, 65%);
127
127
  height: var(--moduix-switch-thumb-icon-size, 65%);
128
128
  flex-shrink: 0;
129
+ display: block;
129
130
  }
130
131
 
131
132
  .root-BQV0g7:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) .thumb-AkEGnM[data-state="checked"] {
132
- transform: translateX(calc(var(--moduix-switch-thumb-translate, var(--moduix-switch-thumb-translate-default)) * -1));
133
+ transform: translateX(calc(var(--moduix-switch-thumb-translate, var(--_switch-thumb-translate-default)) * -1));
133
134
  }
134
135
 
135
136
  .label-OFdult {
@@ -140,5 +141,11 @@
140
141
  -webkit-user-select: none;
141
142
  user-select: none;
142
143
  }
144
+
145
+ @media (prefers-reduced-motion: reduce) {
146
+ .control-_x56fO, .thumb-AkEGnM {
147
+ transition: none;
148
+ }
149
+ }
143
150
  }
144
151
 
@@ -15,9 +15,9 @@
15
15
  }
16
16
 
17
17
  .root-iUez_7 {
18
- --moduix-table-cell-padding-x-default: var(--moduix-table-cell-padding-x, var(--moduix-spacing-4));
19
- --moduix-table-cell-padding-y-default: var(--moduix-table-cell-padding-y, var(--moduix-spacing-3));
20
- --moduix-table-empty-padding-y-default: calc(var(--moduix-table-cell-padding-y-default) * 2);
18
+ --_table-cell-padding-x-default: var(--moduix-table-cell-padding-x, var(--moduix-spacing-4));
19
+ --_table-cell-padding-y-default: var(--moduix-table-cell-padding-y, var(--moduix-spacing-3));
20
+ --_table-empty-padding-y-default: calc(var(--_table-cell-padding-y-default) * 2);
21
21
  box-sizing: border-box;
22
22
  border-collapse: collapse;
23
23
  border-spacing: 0;
@@ -31,15 +31,15 @@
31
31
  }
32
32
 
33
33
  .root-iUez_7[data-size="sm"] {
34
- --moduix-table-cell-padding-x-default: var(--moduix-table-cell-padding-x, var(--moduix-spacing-3));
35
- --moduix-table-cell-padding-y-default: var(--moduix-table-cell-padding-y, var(--moduix-spacing-2));
34
+ --_table-cell-padding-x-default: var(--moduix-table-cell-padding-x, var(--moduix-spacing-3));
35
+ --_table-cell-padding-y-default: var(--moduix-table-cell-padding-y, var(--moduix-spacing-2));
36
36
  font-size: var(--moduix-table-font-size-sm, var(--moduix-text-xs));
37
37
  line-height: var(--moduix-table-line-height-sm, var(--moduix-line-height-text-xs));
38
38
  }
39
39
 
40
40
  .root-iUez_7[data-size="lg"] {
41
- --moduix-table-cell-padding-x-default: var(--moduix-table-cell-padding-x, var(--moduix-spacing-5));
42
- --moduix-table-cell-padding-y-default: var(--moduix-table-cell-padding-y, var(--moduix-spacing-4));
41
+ --_table-cell-padding-x-default: var(--moduix-table-cell-padding-x, var(--moduix-spacing-5));
42
+ --_table-cell-padding-y-default: var(--moduix-table-cell-padding-y, var(--moduix-spacing-4));
43
43
  font-size: var(--moduix-table-font-size-lg, var(--moduix-text-md));
44
44
  line-height: var(--moduix-table-line-height-lg, var(--moduix-line-height-text-md));
45
45
  }
@@ -54,7 +54,7 @@
54
54
  color: var(--moduix-table-caption-color, var(--moduix-color-muted-foreground));
55
55
  font-size: var(--moduix-table-caption-font-size, var(--moduix-text-sm));
56
56
  line-height: var(--moduix-table-caption-line-height, var(--moduix-line-height-text-sm));
57
- padding-inline: var(--moduix-table-caption-padding-x, var(--moduix-table-cell-padding-x-default));
57
+ padding-inline: var(--moduix-table-caption-padding-x, var(--_table-cell-padding-x-default));
58
58
  text-align: left;
59
59
  text-wrap: pretty;
60
60
  }
@@ -88,6 +88,10 @@
88
88
  background-color: var(--moduix-table-row-bg-hover, var(--moduix-color-muted));
89
89
  }
90
90
 
91
+ .root-iUez_7[data-interactive] .body-JqLHru .row-vTGkhP:not([data-empty]):focus-within {
92
+ background-color: var(--moduix-table-row-bg-focus, var(--moduix-table-row-bg-hover, var(--moduix-color-muted)));
93
+ }
94
+
91
95
  .root-iUez_7[data-show-column-border] :is(.columnHeader-MBpfL1, .cell-uGo0rz):not(:last-child) {
92
96
  border-inline-end: var(--moduix-table-column-border-width, var(--moduix-table-border-width, var(--moduix-border-width-sm)))
93
97
  solid
@@ -115,8 +119,8 @@
115
119
 
116
120
  .columnHeader-MBpfL1, .cell-uGo0rz {
117
121
  z-index: 0;
118
- padding-block: var(--moduix-table-cell-padding-y-default);
119
- padding-inline: var(--moduix-table-cell-padding-x-default);
122
+ padding-block: var(--_table-cell-padding-y-default);
123
+ padding-inline: var(--_table-cell-padding-x-default);
120
124
  vertical-align: middle;
121
125
  position: relative;
122
126
  }
@@ -157,7 +161,7 @@
157
161
  }
158
162
 
159
163
  .empty-dLhlhx {
160
- padding-block: var(--moduix-table-empty-padding-y, var(--moduix-table-empty-padding-y-default));
164
+ padding-block: var(--moduix-table-empty-padding-y, var(--_table-empty-padding-y-default));
161
165
  color: var(--moduix-table-empty-color, var(--moduix-color-muted-foreground));
162
166
  text-align: center;
163
167
  }
@@ -16,12 +16,15 @@ const Tabs_TabsRoot = /*#__PURE__*/ forwardRef(function({ className, orientation
16
16
  ...props
17
17
  });
18
18
  });
19
- const Tabs_TabsRootProvider = /*#__PURE__*/ forwardRef(function({ className, variant = 'default', ...props }, ref) {
19
+ const Tabs_TabsRootProvider = /*#__PURE__*/ forwardRef(function({ className, value, variant = 'default', ...props }, ref) {
20
+ const orientation = value.getRootProps()['data-orientation'];
21
+ const resolvedVariant = 'vertical' === orientation ? 'default' : variant;
20
22
  return /*#__PURE__*/ jsx(Tabs.RootProvider, {
21
23
  ref: ref,
22
24
  "data-slot": "tabs-root-provider",
23
- "data-variant": variant,
25
+ "data-variant": resolvedVariant,
24
26
  className: clsx(Tabs_module.root, normalizeClassName(className)),
27
+ value: value,
25
28
  ...props
26
29
  });
27
30
  });
@@ -4,14 +4,14 @@
4
4
  align-items: center;
5
5
  gap: var(--moduix-tag-gap, var(--moduix-spacing-1-5));
6
6
  border: var(--moduix-tag-border-width, var(--moduix-border-width-sm)) solid
7
- var(--moduix-tag-border-color, transparent);
7
+ var(--moduix-tag-border-color, var(--moduix-tag-default-border-color, transparent));
8
8
  border-radius: var(--moduix-tag-radius, var(--moduix-radius-full));
9
- background-color: var(--moduix-tag-bg, var(--moduix-color-primary));
9
+ background-color: var(--moduix-tag-bg, var(--moduix-tag-default-bg, var(--moduix-color-primary)));
10
10
  width: -moz-fit-content;
11
11
  width: fit-content;
12
12
  min-width: 0;
13
13
  max-width: 100%;
14
- color: var(--moduix-tag-color, var(--moduix-color-primary-foreground));
14
+ color: var(--moduix-tag-color, var(--moduix-tag-default-color, var(--moduix-color-primary-foreground)));
15
15
  font-size: var(--moduix-tag-font-size, var(--moduix-text-xs));
16
16
  font-weight: var(--moduix-tag-font-weight, var(--moduix-weight-medium));
17
17
  line-height: var(--moduix-tag-line-height, var(--moduix-line-height-text-xs));
@@ -41,24 +41,27 @@
41
41
  }
42
42
 
43
43
  .root-R1cDd9[data-variant="secondary"] {
44
- background-color: var(--moduix-tag-bg, var(--moduix-color-secondary));
45
- border-color: var(--moduix-tag-border-color, transparent);
46
- color: var(--moduix-tag-color, var(--moduix-color-secondary-foreground));
44
+ background-color: var(--moduix-tag-bg, var(--moduix-tag-secondary-bg, var(--moduix-color-secondary)));
45
+ border-color: var(--moduix-tag-border-color, var(--moduix-tag-secondary-border-color, transparent));
46
+ color: var(--moduix-tag-color, var(--moduix-tag-secondary-color, var(--moduix-color-secondary-foreground)));
47
47
  }
48
48
 
49
- .root-R1cDd9[data-variant="outline"], .root-R1cDd9[data-variant="ghost"] {
50
- background-color: var(--moduix-tag-bg, transparent);
51
- color: var(--moduix-tag-color, var(--moduix-color-foreground));
49
+ .root-R1cDd9[data-variant="outline"] {
50
+ background-color: var(--moduix-tag-bg, var(--moduix-tag-outline-bg, transparent));
51
+ border-color: var(--moduix-tag-border-color, var(--moduix-tag-outline-border-color, var(--moduix-color-border)));
52
+ color: var(--moduix-tag-color, var(--moduix-tag-outline-color, var(--moduix-color-foreground)));
52
53
  }
53
54
 
54
- .root-R1cDd9[data-variant="outline"] {
55
- border-color: var(--moduix-tag-border-color, var(--moduix-color-border));
55
+ .root-R1cDd9[data-variant="ghost"] {
56
+ background-color: var(--moduix-tag-bg, var(--moduix-tag-ghost-bg, transparent));
57
+ border-color: var(--moduix-tag-border-color, var(--moduix-tag-ghost-border-color, transparent));
58
+ color: var(--moduix-tag-color, var(--moduix-tag-ghost-color, var(--moduix-color-foreground)));
56
59
  }
57
60
 
58
61
  .root-R1cDd9[data-variant="destructive"] {
59
- background-color: var(--moduix-tag-bg, var(--moduix-color-destructive));
60
- border-color: var(--moduix-tag-border-color, transparent);
61
- color: var(--moduix-tag-color, var(--moduix-color-destructive-foreground));
62
+ background-color: var(--moduix-tag-bg, var(--moduix-tag-destructive-bg, var(--moduix-color-destructive)));
63
+ border-color: var(--moduix-tag-border-color, var(--moduix-tag-destructive-border-color, transparent));
64
+ color: var(--moduix-tag-color, var(--moduix-tag-destructive-color, var(--moduix-color-destructive-foreground)));
62
65
  }
63
66
 
64
67
  .label-kWF4Re {
@@ -19,7 +19,7 @@ const Text_TextRoot = /*#__PURE__*/ forwardRef(function({ as, asChild, size, wei
19
19
  const resolvedLineClamp = Number.isInteger(lineClamp) && (lineClamp ?? 0) > 0 ? lineClamp : void 0;
20
20
  const lineClampStyle = void 0 === resolvedLineClamp ? style : {
21
21
  ...style,
22
- '--moduix-text-line-clamp': resolvedLineClamp
22
+ '--_text-line-clamp': resolvedLineClamp
23
23
  };
24
24
  return /*#__PURE__*/ jsx(Element, {
25
25
  ref: ref,
@@ -90,8 +90,9 @@
90
90
  }
91
91
 
92
92
  .root-lOp5q5[data-line-clamp] {
93
+ --_text-line-clamp: initial;
93
94
  white-space: normal;
94
- -webkit-line-clamp: var(--moduix-text-line-clamp);
95
+ -webkit-line-clamp: var(--moduix-text-line-clamp, var(--_text-line-clamp));
95
96
  -webkit-box-orient: vertical;
96
97
  display: -webkit-box;
97
98
  overflow: hidden;
@@ -1,11 +1,9 @@
1
1
  import { Timer as TimerPrimitive, useTimer, useTimerContext } from '@ark-ui/react/timer';
2
2
  import type { ComponentProps, ReactNode } from 'react';
3
- type TimerSegmentsProps = {
4
- className?: string;
3
+ type TimerSegmentsProps = Omit<ComponentProps<typeof TimerPrimitive.Area>, 'asChild' | 'children'> & {
5
4
  separator?: ReactNode;
6
5
  types?: ComponentProps<typeof TimerPrimitive.Item>['type'][];
7
6
  };
8
- declare function TimerSegments({ className, separator, types, }: TimerSegmentsProps): import("react").JSX.Element;
9
7
  declare const Timer: import("react").ForwardRefExoticComponent<Omit<TimerPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
10
8
  Root: import("react").ForwardRefExoticComponent<Omit<TimerPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
9
  RootProvider: import("react").ForwardRefExoticComponent<Omit<TimerPrimitive.RootProviderBaseProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -15,6 +13,6 @@ declare const Timer: import("react").ForwardRefExoticComponent<Omit<TimerPrimiti
15
13
  Control: import("react").ForwardRefExoticComponent<Omit<TimerPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
16
14
  ActionTrigger: import("react").ForwardRefExoticComponent<Omit<TimerPrimitive.ActionTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
17
15
  Context: (props: TimerPrimitive.ContextProps) => ReactNode;
18
- Segments: typeof TimerSegments;
16
+ Segments: import("react").ForwardRefExoticComponent<Omit<TimerSegmentsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
19
17
  };
20
18
  export { Timer, type TimerSegmentsProps, useTimer, useTimerContext };
@@ -66,9 +66,10 @@ const defaultTimerSegmentTypes = [
66
66
  'minutes',
67
67
  'seconds'
68
68
  ];
69
- function TimerSegments({ className, separator = ':', types = defaultTimerSegmentTypes }) {
69
+ const Timer_TimerSegments = /*#__PURE__*/ forwardRef(function({ separator = ':', types = defaultTimerSegmentTypes, ...props }, ref) {
70
70
  return /*#__PURE__*/ jsx(Timer_TimerArea, {
71
- className: className,
71
+ ref: ref,
72
+ ...props,
72
73
  children: types.map((type, index)=>/*#__PURE__*/ jsxs(Fragment, {
73
74
  children: [
74
75
  /*#__PURE__*/ jsx(Timer_TimerItem, {
@@ -80,7 +81,7 @@ function TimerSegments({ className, separator = ':', types = defaultTimerSegment
80
81
  ]
81
82
  }, `${type}-${index}`))
82
83
  });
83
- }
84
+ });
84
85
  const Timer_Timer = Object.assign(Timer_TimerRoot, {
85
86
  Root: Timer_TimerRoot,
86
87
  RootProvider: Timer_TimerRootProvider,
@@ -90,6 +91,6 @@ const Timer_Timer = Object.assign(Timer_TimerRoot, {
90
91
  Control: Timer_TimerControl,
91
92
  ActionTrigger: Timer_TimerActionTrigger,
92
93
  Context: Timer.Context,
93
- Segments: TimerSegments
94
+ Segments: Timer_TimerSegments
94
95
  });
95
96
  export { Timer_Timer as Timer, useTimer, useTimerContext };
@@ -4,11 +4,14 @@
4
4
  }
5
5
 
6
6
  .root-p_jC2T {
7
- --moduix-toast-trigger-bg-default: transparent;
8
- --moduix-toast-trigger-bg-hover-default: var(--moduix-color-accent);
9
- --moduix-toast-trigger-border-color-default: var(--moduix-color-border);
10
- --moduix-toast-trigger-color-default: var(--moduix-color-foreground);
11
- --moduix-toast-trigger-focus-ring-color-default: var(--moduix-color-ring);
7
+ --_toast-trigger-bg-default: transparent;
8
+ --_toast-trigger-bg-hover-default: var(--moduix-color-accent);
9
+ --_toast-trigger-border-color-default: var(--moduix-color-border);
10
+ --_toast-trigger-color-default: var(--moduix-color-foreground);
11
+ --_toast-trigger-focus-ring-color-default: var(--moduix-color-ring);
12
+ --_toast-bg-default: var(--moduix-toast-info-bg, var(--moduix-color-card));
13
+ --_toast-border-color-default: var(--moduix-toast-info-border-color, var(--moduix-color-border));
14
+ --_toast-color-default: var(--moduix-toast-info-color, var(--moduix-color-card-foreground));
12
15
  box-sizing: border-box;
13
16
  width: var(--moduix-toast-width, 20rem);
14
17
  max-width: calc(100vw - (var(--moduix-toast-viewport-inset, var(--moduix-spacing-4)) * 2));
@@ -16,10 +19,11 @@
16
19
  align-items: start;
17
20
  gap: var(--moduix-toast-content-gap, var(--moduix-spacing-1));
18
21
  border: var(--moduix-toast-border-width, var(--moduix-border-width-sm)) solid
19
- var(--moduix-toast-border-color, var(--moduix-toast-border-color-default, var(--moduix-color-border)));
22
+ var(--moduix-toast-border-color, var(--_toast-border-color-default, var(--moduix-color-border)));
20
23
  border-radius: var(--moduix-toast-radius, var(--moduix-radius-lg));
21
- background-color: var(--moduix-toast-bg, var(--moduix-toast-bg-default, var(--moduix-color-popover)));
22
- color: var(--moduix-toast-color, var(--moduix-toast-color-default, var(--moduix-color-popover-foreground)));
24
+ background-color: var(--moduix-toast-bg, var(--_toast-bg-default, var(--moduix-color-popover)));
25
+ min-width: 0;
26
+ color: var(--moduix-toast-color, var(--_toast-color-default, var(--moduix-color-popover-foreground)));
23
27
  box-shadow: var(--moduix-toast-shadow, var(--moduix-shadow-lg));
24
28
  padding: var(--moduix-toast-padding, var(--moduix-spacing-4));
25
29
  pointer-events: auto;
@@ -49,53 +53,42 @@
49
53
  }
50
54
 
51
55
  .root-p_jC2T[data-type="success"] {
52
- --moduix-toast-bg-default: color-mix(in oklab,
53
- var(--moduix-color-success) 10%,
54
- var(--moduix-color-background));
55
- --moduix-toast-border-color-default: color-mix(in oklab,
56
- var(--moduix-color-success) 34%,
57
- transparent);
58
- --moduix-toast-color-default: var(--moduix-color-foreground);
59
- --moduix-toast-description-color-default: var(--moduix-color-muted-foreground);
56
+ --_toast-bg-default: var(--moduix-toast-success-bg, color-mix(in oklab, var(--moduix-color-success) 10%, var(--moduix-color-background)));
57
+ --_toast-border-color-default: var(--moduix-toast-success-border-color, color-mix(in oklab, var(--moduix-color-success) 34%, transparent));
58
+ --_toast-color-default: var(--moduix-toast-success-color, var(--moduix-color-foreground));
60
59
  }
61
60
 
62
61
  .root-p_jC2T[data-type="warning"] {
63
- --moduix-toast-bg-default: color-mix(in oklab,
64
- var(--moduix-color-warning) 13%,
65
- var(--moduix-color-background));
66
- --moduix-toast-border-color-default: color-mix(in oklab,
67
- var(--moduix-color-warning) 38%,
68
- transparent);
69
- --moduix-toast-color-default: var(--moduix-color-foreground);
70
- --moduix-toast-description-color-default: var(--moduix-color-muted-foreground);
62
+ --_toast-bg-default: var(--moduix-toast-warning-bg, color-mix(in oklab, var(--moduix-color-warning) 13%, var(--moduix-color-background)));
63
+ --_toast-border-color-default: var(--moduix-toast-warning-border-color, color-mix(in oklab, var(--moduix-color-warning) 38%, transparent));
64
+ --_toast-color-default: var(--moduix-toast-warning-color, var(--moduix-color-foreground));
71
65
  }
72
66
 
73
- .root-p_jC2T[data-type="destructive"], .root-p_jC2T[data-type="error"] {
74
- --moduix-toast-bg-default: color-mix(in oklab,
75
- var(--moduix-color-destructive) 9%,
76
- var(--moduix-color-background));
77
- --moduix-toast-border-color-default: color-mix(in oklab,
78
- var(--moduix-color-destructive) 35%,
79
- transparent);
80
- --moduix-toast-color-default: var(--moduix-color-foreground);
81
- --moduix-toast-description-color-default: var(--moduix-color-muted-foreground);
67
+ .root-p_jC2T[data-type="error"] {
68
+ --_toast-bg-default: var(--moduix-toast-error-bg, color-mix(in oklab, var(--moduix-color-destructive) 9%, var(--moduix-color-background)));
69
+ --_toast-border-color-default: var(--moduix-toast-error-border-color, color-mix(in oklab, var(--moduix-color-destructive) 35%, transparent));
70
+ --_toast-color-default: var(--moduix-toast-error-color, var(--moduix-color-foreground));
82
71
  }
83
72
 
84
73
  .title-MTy3zi {
85
74
  align-items: center;
86
75
  gap: var(--moduix-toast-title-gap, var(--moduix-spacing-2));
76
+ min-width: 0;
87
77
  color: inherit;
88
78
  font-size: var(--moduix-toast-title-font-size, var(--moduix-text-sm));
89
79
  font-weight: var(--moduix-toast-title-font-weight, var(--moduix-weight-semibold));
90
80
  line-height: var(--moduix-toast-title-line-height, var(--moduix-line-height-text-sm));
81
+ overflow-wrap: anywhere;
91
82
  margin: 0;
92
83
  display: flex;
93
84
  }
94
85
 
95
86
  .description-AIx4K_ {
96
- color: var(--moduix-toast-description-color, var(--moduix-toast-description-color-default, var(--moduix-color-muted-foreground)));
87
+ min-width: 0;
88
+ color: var(--moduix-toast-description-color, var(--moduix-color-muted-foreground));
97
89
  font-size: var(--moduix-toast-description-font-size, var(--moduix-text-sm));
98
90
  line-height: var(--moduix-toast-description-line-height, var(--moduix-line-height-text-sm));
91
+ overflow-wrap: anywhere;
99
92
  margin: 0;
100
93
  }
101
94
 
@@ -104,14 +97,14 @@
104
97
  align-items: center;
105
98
  gap: var(--moduix-toast-action-gap, var(--moduix-spacing-2));
106
99
  width: max-content;
100
+ min-width: 0;
101
+ max-width: 100%;
107
102
  min-height: var(--moduix-toast-action-min-height, var(--moduix-size-xs));
108
- margin-top: var(--moduix-toast-action-margin-top, var(--moduix-spacing-2));
109
103
  border: var(--moduix-toast-action-border-width, var(--moduix-toast-border-width, var(--moduix-border-width-sm)))
110
- solid
111
- var(--moduix-toast-action-border-color, var(--moduix-toast-trigger-border-color-default));
104
+ solid var(--moduix-toast-action-border-color, var(--_toast-trigger-border-color-default));
112
105
  border-radius: var(--moduix-toast-action-radius, var(--moduix-radius-sm));
113
- background: var(--moduix-toast-action-bg, var(--moduix-toast-trigger-bg-default));
114
- color: var(--moduix-toast-action-color, var(--moduix-toast-trigger-color-default));
106
+ background: var(--moduix-toast-action-bg, var(--_toast-trigger-bg-default));
107
+ color: var(--moduix-toast-action-color, var(--_toast-trigger-color-default));
115
108
  padding: var(--moduix-toast-action-padding-y, var(--moduix-spacing-1))
116
109
  var(--moduix-toast-action-padding-x, var(--moduix-spacing-2));
117
110
  font: inherit;
@@ -119,23 +112,24 @@
119
112
  font-weight: var(--moduix-toast-action-font-weight, var(--moduix-weight-medium));
120
113
  line-height: var(--moduix-toast-action-line-height, var(--moduix-line-height-text-xs));
121
114
  cursor: pointer;
115
+ text-align: start;
122
116
  -webkit-user-select: none;
123
117
  user-select: none;
124
- white-space: nowrap;
118
+ overflow-wrap: anywhere;
125
119
  transition: background var(--moduix-transition-fast),
126
120
  border-color var(--moduix-transition-fast),
127
121
  color var(--moduix-transition-fast);
122
+ margin-block-start: var(--moduix-toast-action-margin-top, var(--moduix-spacing-2));
128
123
  display: inline-flex;
129
124
  }
130
125
 
131
126
  .actionTrigger-ftU5e1:hover {
132
- background: var(--moduix-toast-action-bg-hover, var(--moduix-toast-trigger-bg-hover-default));
127
+ background: var(--moduix-toast-action-bg-hover, var(--_toast-trigger-bg-hover-default));
133
128
  }
134
129
 
135
130
  .actionTrigger-ftU5e1:focus-visible {
136
131
  outline: var(--moduix-toast-focus-ring-width, var(--moduix-toast-action-border-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))))
137
- solid
138
- var(--moduix-toast-focus-ring-color, var(--moduix-toast-trigger-focus-ring-color-default));
132
+ solid var(--moduix-toast-focus-ring-color, var(--_toast-trigger-focus-ring-color-default));
139
133
  outline-offset: var(--moduix-toast-focus-ring-offset, 0);
140
134
  }
141
135
 
@@ -1,7 +1,6 @@
1
1
  import { ToggleGroup as ToggleGroupPrimitive, useToggleGroup, useToggleGroupContext } from '@ark-ui/react/toggle-group';
2
2
  import type { ComponentProps } from 'react';
3
- type ToggleVariant = 'default' | 'outline' | 'ghost';
4
- type ToggleSize = 'xs' | 'sm' | 'md' | 'lg' | 'icon-sm' | 'icon-md' | 'icon-lg';
3
+ import type { ToggleSize, ToggleVariant } from '../toggle/Toggle';
5
4
  type ToggleGroupRootProps = ComponentProps<typeof ToggleGroupPrimitive.Root> & {
6
5
  variant?: ToggleVariant;
7
6
  size?: ToggleSize;
@@ -2,6 +2,7 @@
2
2
  .root-HI0WAX {
3
3
  box-sizing: border-box;
4
4
  overscroll-behavior-inline: contain;
5
+ --moduix-toggle-color: var(--moduix-toggle-group-color, var(--moduix-color-foreground));
5
6
  align-items: center;
6
7
  gap: var(--moduix-toggle-group-gap, var(--moduix-border-width-sm));
7
8
  max-inline-size: 100%;
@@ -26,20 +27,17 @@
26
27
  }
27
28
 
28
29
  .root-HI0WAX[data-variant="ghost"] {
29
- --moduix-toggle-group-bg: var(--moduix-toggle-group-ghost-bg, transparent);
30
- --moduix-toggle-group-border-color: var(--moduix-toggle-group-ghost-border-color, transparent);
31
- --moduix-toggle-group-padding: var(--moduix-toggle-group-ghost-padding, 0);
30
+ padding: var(--moduix-toggle-group-padding, var(--moduix-toggle-group-ghost-padding, 0));
31
+ border-color: var(--moduix-toggle-group-border-color, var(--moduix-toggle-group-ghost-border-color, transparent));
32
+ background-color: var(--moduix-toggle-group-bg, var(--moduix-toggle-group-ghost-bg, transparent));
32
33
  }
33
34
 
34
35
  .root-HI0WAX[data-variant="outline"] {
35
- --moduix-toggle-group-bg: var(--moduix-toggle-group-outline-bg, var(--moduix-color-background));
36
+ background-color: var(--moduix-toggle-group-bg, var(--moduix-toggle-group-outline-bg, var(--moduix-color-background)));
36
37
  }
37
38
 
38
39
  .item-RRrFoz {
39
40
  border-radius: var(--moduix-toggle-group-item-radius, var(--moduix-radius-md));
40
- --moduix-toggle-default-color: var(--moduix-toggle-group-color, var(--moduix-color-foreground));
41
- --moduix-toggle-ghost-color: var(--moduix-toggle-group-color, var(--moduix-color-foreground));
42
- --moduix-toggle-outline-color: var(--moduix-toggle-group-color, var(--moduix-color-foreground));
43
41
  flex: none;
44
42
  }
45
43
  }
@@ -84,7 +84,7 @@
84
84
  overflow-wrap: anywhere;
85
85
  transform-origin: var(--transform-origin);
86
86
  position: relative;
87
- overflow: auto;
87
+ overflow: visible;
88
88
  }
89
89
 
90
90
  .content-Ca8mTU[data-state="open"] {
@@ -115,6 +115,16 @@
115
115
  var(--moduix-tooltip-arrow-stroke-color, var(--moduix-tooltip-border-color, var(--moduix-color-border)));
116
116
  }
117
117
 
118
+ @media (prefers-reduced-motion: reduce) {
119
+ .trigger-Q4UfW0 {
120
+ transition: none;
121
+ }
122
+
123
+ .content-Ca8mTU[data-state] {
124
+ animation: none;
125
+ }
126
+ }
127
+
118
128
  @keyframes tooltip-content-in-QxxE9U {
119
129
  from {
120
130
  opacity: var(--moduix-tooltip-popup-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
@@ -18,7 +18,7 @@ declare const Tour: typeof TourRoot & {
18
18
  Title: import("react").ForwardRefExoticComponent<Omit<TourPrimitive.TitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
19
19
  Description: import("react").ForwardRefExoticComponent<Omit<TourPrimitive.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
20
20
  ProgressText: import("react").ForwardRefExoticComponent<Omit<TourPrimitive.ProgressTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
21
- Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
21
+ Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
22
22
  CloseTrigger: import("react").ForwardRefExoticComponent<Omit<TourPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
23
23
  CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<TourPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
24
24
  Control: import("react").ForwardRefExoticComponent<Omit<TourPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { ark } from "@ark-ui/react/factory";
3
4
  import { Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "@ark-ui/react/tour";
4
5
  import { clsx } from "clsx";
5
6
  import { forwardRef } from "react";
@@ -99,7 +100,7 @@ const Tour_TourProgressText = /*#__PURE__*/ forwardRef(function({ className, ...
99
100
  });
100
101
  });
101
102
  const Tour_TourBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
102
- return /*#__PURE__*/ jsx("div", {
103
+ return /*#__PURE__*/ jsx(ark.div, {
103
104
  ref: ref,
104
105
  "data-slot": "tour-body",
105
106
  className: clsx(Tour_module.body, normalizeClassName(className)),