@moduix/react 2.5.1 → 2.7.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 (204) hide show
  1. package/README.md +24 -3
  2. package/THIRD_PARTY_NOTICES.md +49 -0
  3. package/dist/components/accordion/Accordion.js +20 -21
  4. package/dist/components/alert/Alert.js +18 -19
  5. package/dist/components/alert/Alert_module.css +3 -16
  6. package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
  7. package/dist/components/angle-slider/AngleSlider.js +29 -71
  8. package/dist/components/aspect-ratio/AspectRatio.js +1 -2
  9. package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
  10. package/dist/components/avatar/Avatar.d.ts +3 -6
  11. package/dist/components/avatar/Avatar.js +14 -57
  12. package/dist/components/avatar/Avatar.module.js +1 -2
  13. package/dist/components/avatar/Avatar_module.css +0 -6
  14. package/dist/components/badge/Badge.d.ts +2 -2
  15. package/dist/components/badge/Badge.js +5 -10
  16. package/dist/components/badge/Badge_module.css +7 -14
  17. package/dist/components/bleed/Bleed.js +1 -2
  18. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
  19. package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
  20. package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
  21. package/dist/components/button/Button.d.ts +4 -4
  22. package/dist/components/button/Button.js +1 -2
  23. package/dist/components/button/Button_module.css +2 -8
  24. package/dist/components/card/Card.d.ts +15 -15
  25. package/dist/components/card/Card.js +30 -31
  26. package/dist/components/card/Card_module.css +2 -18
  27. package/dist/components/carousel/Carousel.d.ts +1 -1
  28. package/dist/components/carousel/Carousel.js +34 -35
  29. package/dist/components/carousel/Carousel_module.css +7 -0
  30. package/dist/components/chart/Chart.d.ts +9 -8
  31. package/dist/components/chart/Chart.js +21 -22
  32. package/dist/components/chart/Chart_module.css +0 -2
  33. package/dist/components/checkbox/Checkbox.d.ts +3 -2
  34. package/dist/components/checkbox/Checkbox.js +20 -43
  35. package/dist/components/clipboard/Clipboard.js +27 -27
  36. package/dist/components/close-button/CloseButton.js +1 -2
  37. package/dist/components/close-button/CloseButton_module.css +1 -10
  38. package/dist/components/collapsible/Collapsible.js +17 -20
  39. package/dist/components/collapsible/Collapsible_module.css +2 -4
  40. package/dist/components/color-picker/ColorPicker.d.ts +4 -3
  41. package/dist/components/color-picker/ColorPicker.js +79 -92
  42. package/dist/components/color-picker/ColorPicker_module.css +0 -1
  43. package/dist/components/combobox/Combobox.d.ts +5 -5
  44. package/dist/components/combobox/Combobox.js +51 -60
  45. package/dist/components/combobox/Combobox_module.css +0 -1
  46. package/dist/components/command-palette/CommandPalette.d.ts +7 -18
  47. package/dist/components/command-palette/CommandPalette.js +99 -126
  48. package/dist/components/command-palette/CommandPalette_module.css +11 -18
  49. package/dist/components/container/Container.js +1 -2
  50. package/dist/components/container/Container_module.css +1 -1
  51. package/dist/components/date-input/DateInput.d.ts +7 -9
  52. package/dist/components/date-input/DateInput.js +24 -54
  53. package/dist/components/date-input/DateInput_module.css +0 -1
  54. package/dist/components/date-picker/DatePicker.d.ts +1 -1
  55. package/dist/components/date-picker/DatePicker.js +84 -93
  56. package/dist/components/date-picker/DatePicker.module.js +1 -1
  57. package/dist/components/date-picker/DatePicker_module.css +5 -2
  58. package/dist/components/dialog/Dialog.d.ts +1 -1
  59. package/dist/components/dialog/Dialog.js +31 -32
  60. package/dist/components/drawer/Drawer.d.ts +6 -3
  61. package/dist/components/drawer/Drawer.js +63 -54
  62. package/dist/components/editable/Editable.d.ts +1 -1
  63. package/dist/components/editable/Editable.js +27 -28
  64. package/dist/components/empty/Empty.js +18 -19
  65. package/dist/components/field/Field.js +29 -30
  66. package/dist/components/fieldset/Fieldset.js +15 -16
  67. package/dist/components/file-upload/FileUpload.d.ts +3 -2
  68. package/dist/components/file-upload/FileUpload.js +52 -79
  69. package/dist/components/file-upload/FileUpload_module.css +4 -13
  70. package/dist/components/floating-panel/FloatingPanel.d.ts +3 -3
  71. package/dist/components/floating-panel/FloatingPanel.js +36 -37
  72. package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
  73. package/dist/components/floating-panel/index.d.ts +1 -0
  74. package/dist/components/heading/Heading.js +1 -2
  75. package/dist/components/highlight/Highlight.js +1 -2
  76. package/dist/components/hover-card/HoverCard.d.ts +3 -2
  77. package/dist/components/hover-card/HoverCard.js +24 -15
  78. package/dist/components/hover-card/HoverCard.module.js +1 -0
  79. package/dist/components/hover-card/HoverCard_module.css +18 -3
  80. package/dist/components/hover-card/index.d.ts +1 -0
  81. package/dist/components/image/Image.js +1 -2
  82. package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
  83. package/dist/components/image-cropper/ImageCropper.js +21 -22
  84. package/dist/components/input/Input.d.ts +4 -4
  85. package/dist/components/input/Input.js +1 -2
  86. package/dist/components/input-group/InputGroup.d.ts +5 -5
  87. package/dist/components/input-group/InputGroup.js +5 -6
  88. package/dist/components/json-tree-view/JsonTreeView.js +3 -4
  89. package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
  90. package/dist/components/kbd/Kbd.js +6 -7
  91. package/dist/components/lightbox/Lightbox.d.ts +1 -1
  92. package/dist/components/lightbox/Lightbox.js +38 -39
  93. package/dist/components/lightbox/Lightbox_module.css +0 -2
  94. package/dist/components/list/List.js +2 -3
  95. package/dist/components/listbox/Listbox.d.ts +5 -5
  96. package/dist/components/listbox/Listbox.js +50 -56
  97. package/dist/components/listbox/Listbox.module.js +2 -2
  98. package/dist/components/listbox/Listbox_module.css +3 -13
  99. package/dist/components/marquee/Marquee.js +18 -19
  100. package/dist/components/menu/Menu.d.ts +2 -1
  101. package/dist/components/menu/Menu.js +72 -79
  102. package/dist/components/menu/Menu.module.js +1 -1
  103. package/dist/components/menu/Menu_module.css +8 -8
  104. package/dist/components/native-select/NativeSelect.js +2 -3
  105. package/dist/components/native-select/NativeSelect_module.css +0 -1
  106. package/dist/components/navigation-menu/NavigationMenu.js +39 -58
  107. package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
  108. package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
  109. package/dist/components/number-input/NumberInput.js +25 -26
  110. package/dist/components/pagination/Pagination.js +28 -31
  111. package/dist/components/pagination/Pagination_module.css +1 -5
  112. package/dist/components/password-input/PasswordInput.js +20 -21
  113. package/dist/components/pin-input/PinInput.d.ts +3 -2
  114. package/dist/components/pin-input/PinInput.js +20 -61
  115. package/dist/components/popover/Popover.d.ts +5 -3
  116. package/dist/components/popover/Popover.js +41 -42
  117. package/dist/components/progress-circular/ProgressCircular.js +24 -25
  118. package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
  119. package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
  120. package/dist/components/progress-linear/ProgressLinear.js +21 -22
  121. package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
  122. package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
  123. package/dist/components/qr-code/QrCode.js +18 -19
  124. package/dist/components/radio-group/RadioGroup.d.ts +1 -0
  125. package/dist/components/radio-group/RadioGroup.js +25 -39
  126. package/dist/components/radio-group/RadioGroup_module.css +0 -1
  127. package/dist/components/rating-group/RatingGroup.d.ts +1 -0
  128. package/dist/components/rating-group/RatingGroup.js +19 -36
  129. package/dist/components/rating-group/RatingGroup_module.css +1 -1
  130. package/dist/components/scroll-area/ScrollArea.js +7 -8
  131. package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
  132. package/dist/components/segment-group/SegmentGroup.js +28 -42
  133. package/dist/components/segment-group/SegmentGroup_module.css +4 -0
  134. package/dist/components/select/Select.d.ts +4 -7
  135. package/dist/components/select/Select.js +69 -119
  136. package/dist/components/select/Select.module.js +1 -1
  137. package/dist/components/select/Select_module.css +4 -31
  138. package/dist/components/separator/Separator.d.ts +6 -6
  139. package/dist/components/separator/Separator.js +1 -2
  140. package/dist/components/sidebar/Sidebar.d.ts +16 -16
  141. package/dist/components/sidebar/Sidebar.js +81 -86
  142. package/dist/components/sidebar/Sidebar.module.js +2 -3
  143. package/dist/components/sidebar/Sidebar_module.css +62 -158
  144. package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
  145. package/dist/components/signature-pad/SignaturePad.js +28 -57
  146. package/dist/components/signature-pad/SignaturePad_module.css +0 -1
  147. package/dist/components/simple-grid/SimpleGrid.js +13 -8
  148. package/dist/components/skeleton/Skeleton.d.ts +2 -2
  149. package/dist/components/skeleton/Skeleton.js +1 -2
  150. package/dist/components/slider/Slider.d.ts +2 -2
  151. package/dist/components/slider/Slider.js +38 -52
  152. package/dist/components/spinner/Spinner.d.ts +2 -2
  153. package/dist/components/spinner/Spinner.js +1 -2
  154. package/dist/components/split-button/SplitButton.d.ts +7 -7
  155. package/dist/components/split-button/SplitButton.js +25 -17
  156. package/dist/components/splitter/Splitter.js +14 -15
  157. package/dist/components/splitter/Splitter_module.css +2 -10
  158. package/dist/components/stack/Stack.d.ts +6 -6
  159. package/dist/components/stack/Stack.js +4 -5
  160. package/dist/components/stack/Stack_module.css +1 -1
  161. package/dist/components/steps/Steps.js +35 -36
  162. package/dist/components/steps/Steps_module.css +2 -3
  163. package/dist/components/swap/Swap.js +9 -10
  164. package/dist/components/switch/Switch.d.ts +3 -2
  165. package/dist/components/switch/Switch.js +17 -40
  166. package/dist/components/switch/Switch_module.css +0 -1
  167. package/dist/components/table/Table.d.ts +5 -5
  168. package/dist/components/table/Table.js +35 -36
  169. package/dist/components/tabs/Tabs.js +18 -19
  170. package/dist/components/tabs/Tabs_module.css +5 -10
  171. package/dist/components/tag/Tag.js +5 -6
  172. package/dist/components/tag/Tag_module.css +2 -4
  173. package/dist/components/tags-input/TagsInput.d.ts +3 -3
  174. package/dist/components/tags-input/TagsInput.js +37 -91
  175. package/dist/components/tags-input/TagsInput_module.css +0 -1
  176. package/dist/components/text/Text.js +1 -2
  177. package/dist/components/textarea/Textarea.js +1 -2
  178. package/dist/components/timer/Timer.js +21 -22
  179. package/dist/components/toast/Toast.d.ts +1 -1
  180. package/dist/components/toast/Toast.js +15 -16
  181. package/dist/components/toast/Toast_module.css +1 -2
  182. package/dist/components/toc/Toc.js +29 -30
  183. package/dist/components/toc/Toc_module.css +2 -2
  184. package/dist/components/toggle/Toggle.js +6 -7
  185. package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
  186. package/dist/components/toggle-group/ToggleGroup.js +3 -4
  187. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  188. package/dist/components/tooltip/Tooltip.js +17 -18
  189. package/dist/components/tooltip/Tooltip_module.css +1 -1
  190. package/dist/components/tour/Tour.d.ts +1 -1
  191. package/dist/components/tour/Tour.js +39 -40
  192. package/dist/components/tree-view/TreeView.d.ts +4 -4
  193. package/dist/components/tree-view/TreeView.js +47 -48
  194. package/dist/components/tree-view/TreeView_module.css +39 -12
  195. package/dist/components/typeset/Typeset.js +2 -3
  196. package/dist/components/typeset/Typeset_module.css +300 -159
  197. package/dist/internal/icons/ui/Icons.d.ts +9 -30
  198. package/dist/internal/icons/ui/Icons.js +67 -807
  199. package/dist/internal/icons/ui/index.d.ts +1 -1
  200. package/dist/styles/animations.css +310 -0
  201. package/dist/styles/style.css +168 -2
  202. package/package.json +23 -23
  203. package/dist/internal/normalizeClassName.d.ts +0 -1
  204. package/dist/internal/normalizeClassName.js +0 -2
@@ -19,7 +19,6 @@
19
19
  z-index: 0;
20
20
  align-items: stretch;
21
21
  gap: var(--moduix-tabs-list-gap, var(--moduix-spacing-1));
22
- width: -moz-fit-content;
23
22
  width: fit-content;
24
23
  max-width: 100%;
25
24
  padding: var(--moduix-tabs-list-padding-y, var(--moduix-tabs-list-padding, var(--moduix-spacing-1)))
@@ -42,7 +41,7 @@
42
41
  flex-direction: column;
43
42
  }
44
43
 
45
- @media (max-width: 30rem) {
44
+ @media (width <= 30rem) {
46
45
  .list-HWuixw[data-orientation="vertical"] {
47
46
  inline-size: min(var(--moduix-tabs-vertical-list-width, 12rem), 40%);
48
47
  min-inline-size: 0;
@@ -121,6 +120,8 @@
121
120
  }
122
121
 
123
122
  .indicator-Eq3gMQ {
123
+ --transition-duration: var(--moduix-tabs-indicator-transition-duration, var(--moduix-duration-normal));
124
+ --transition-timing-function: var(--moduix-tabs-indicator-transition-timing-function, var(--moduix-ease-in-out));
124
125
  z-index: 0;
125
126
  top: 50%;
126
127
  left: var(--left, 0);
@@ -129,23 +130,17 @@
129
130
  border-radius: var(--moduix-tabs-indicator-radius, var(--moduix-radius-md));
130
131
  background-color: var(--moduix-tabs-indicator-bg, var(--moduix-color-background));
131
132
  box-shadow: var(--moduix-tabs-indicator-shadow, var(--moduix-shadow-sm));
132
- transition: width var(--moduix-tabs-indicator-transition, var(--moduix-transition-default)),
133
- height var(--moduix-tabs-indicator-transition, var(--moduix-transition-default)),
134
- top var(--moduix-tabs-indicator-transition, var(--moduix-transition-default)),
135
- left var(--moduix-tabs-indicator-transition, var(--moduix-transition-default));
136
133
  position: absolute;
137
134
  translate: 0 -50%;
138
135
  }
139
136
 
140
137
  .root-r9cKMR[data-variant="line"]:not([data-orientation="vertical"]) .indicator-Eq3gMQ {
138
+ --transition-duration: var(--moduix-tabs-line-indicator-transition-duration, var(--moduix-duration-normal));
139
+ --transition-timing-function: var(--moduix-tabs-line-indicator-transition-timing-function, var(--moduix-ease-in-out));
141
140
  height: var(--moduix-tabs-line-indicator-size, var(--moduix-spacing-0-5));
142
141
  border-radius: var(--moduix-tabs-line-indicator-radius, var(--moduix-radius-full));
143
142
  background-color: var(--moduix-tabs-line-indicator-bg, var(--moduix-tabs-tab-color-active, var(--moduix-color-foreground)));
144
143
  box-shadow: none;
145
- transition: width var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default)),
146
- height var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default)),
147
- top var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default)),
148
- left var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default));
149
144
  top: auto;
150
145
  bottom: 0;
151
146
  translate: none;
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { ark } from "@ark-ui/react/factory";
3
3
  import { clsx } from "clsx";
4
4
  import { forwardRef } from "react";
5
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
6
5
  import { CloseButton } from "../close-button/index.js";
7
6
  import Tag_module from "./Tag.module.js";
8
7
  const DEFAULT_CLOSE_LABEL = 'Remove tag';
@@ -15,7 +14,7 @@ const Tag_TagRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md',
15
14
  "data-slot": "tag-root",
16
15
  "data-size": size,
17
16
  "data-variant": variant,
18
- className: clsx(Tag_module.root, normalizeClassName(className))
17
+ className: clsx(Tag_module.root, className)
19
18
  });
20
19
  });
21
20
  const Tag_TagLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -25,7 +24,7 @@ const Tag_TagLabel = /*#__PURE__*/ forwardRef(function({ className, ...props },
25
24
  "data-scope": "tag",
26
25
  "data-part": "label",
27
26
  "data-slot": "tag-label",
28
- className: clsx(Tag_module.label, normalizeClassName(className))
27
+ className: clsx(Tag_module.label, className)
29
28
  });
30
29
  });
31
30
  const Tag_TagStartElement = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -35,7 +34,7 @@ const Tag_TagStartElement = /*#__PURE__*/ forwardRef(function({ className, ...pr
35
34
  "data-scope": "tag",
36
35
  "data-part": "start-element",
37
36
  "data-slot": "tag-start-element",
38
- className: clsx(Tag_module.startElement, normalizeClassName(className))
37
+ className: clsx(Tag_module.startElement, className)
39
38
  });
40
39
  });
41
40
  const Tag_TagEndElement = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -45,7 +44,7 @@ const Tag_TagEndElement = /*#__PURE__*/ forwardRef(function({ className, ...prop
45
44
  "data-scope": "tag",
46
45
  "data-part": "end-element",
47
46
  "data-slot": "tag-end-element",
48
- className: clsx(Tag_module.endElement, normalizeClassName(className))
47
+ className: clsx(Tag_module.endElement, className)
49
48
  });
50
49
  });
51
50
  const Tag_TagCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
@@ -58,7 +57,7 @@ const Tag_TagCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classNa
58
57
  "data-slot": "tag-close-trigger",
59
58
  "aria-label": ariaLabel ?? (asChild || null != children || null != ariaLabelledBy ? void 0 : DEFAULT_CLOSE_LABEL),
60
59
  "aria-labelledby": ariaLabelledBy,
61
- className: clsx(Tag_module.closeTrigger, normalizeClassName(className)),
60
+ className: clsx(Tag_module.closeTrigger, className),
62
61
  children: children
63
62
  });
64
63
  });
@@ -7,7 +7,6 @@
7
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
9
  background-color: var(--moduix-tag-bg, var(--moduix-tag-default-bg, var(--moduix-color-primary)));
10
- width: -moz-fit-content;
11
10
  width: fit-content;
12
11
  min-width: 0;
13
12
  max-width: 100%;
@@ -91,13 +90,12 @@
91
90
  --moduix-close-button-icon-size: var(--moduix-tag-close-trigger-icon-size, var(--moduix-spacing-2-5));
92
91
  --moduix-close-button-bg: var(--moduix-tag-close-trigger-bg, transparent);
93
92
  --moduix-close-button-bg-hover: var(--moduix-tag-close-trigger-bg-hover, color-mix(in oklab, currentColor 12%, transparent));
94
- --moduix-close-button-color: inherit;
95
- --moduix-close-button-color-hover: inherit;
93
+ --moduix-close-button-color: currentColor;
94
+ --moduix-close-button-color-hover: currentColor;
96
95
  --moduix-close-button-disabled-opacity: var(--moduix-tag-disabled-opacity, var(--moduix-opacity-disabled));
97
96
  --moduix-close-button-focus-ring-width: var(--moduix-tag-close-trigger-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)));
98
97
  --moduix-close-button-focus-ring-color: var(--moduix-tag-close-trigger-focus-ring-color, var(--moduix-color-ring));
99
98
  --moduix-close-button-focus-ring-offset: var(--moduix-tag-close-trigger-focus-ring-offset, 0);
100
- --moduix-close-button-transition: var(--moduix-tag-transition, var(--moduix-transition-default));
101
99
  }
102
100
  }
103
101
 
@@ -1,20 +1,20 @@
1
1
  import { TagsInput as TagsInputPrimitive, useTagsInput, useTagsInputContext, useTagsInputItemContext } from '@ark-ui/react/tags-input';
2
- import type { ReactNode } from 'react';
3
2
  declare function TagsInputItems(): import("react").JSX.Element;
4
3
  declare const TagsInput: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
5
4
  Root: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
5
  RootProvider: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ HiddenInput: import("react").ForwardRefExoticComponent<TagsInputPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
7
7
  Label: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
8
8
  Control: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
9
9
  Item: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
10
- ItemContext: (props: TagsInputPrimitive.ItemContextProps) => ReactNode;
10
+ ItemContext: (props: TagsInputPrimitive.ItemContextProps) => import("react").ReactNode;
11
11
  ItemPreview: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemPreviewProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
12
  ItemText: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
13
13
  ItemDeleteTrigger: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemDeleteTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
14
14
  ItemInput: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
15
15
  Input: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
16
16
  ClearTrigger: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
17
- Context: (props: TagsInputPrimitive.ContextProps) => ReactNode;
17
+ Context: (props: TagsInputPrimitive.ContextProps) => import("react").ReactNode;
18
18
  Items: typeof TagsInputItems;
19
19
  };
20
20
  export { TagsInput, useTagsInput, useTagsInputContext, useTagsInputItemContext };
@@ -1,117 +1,103 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { useFieldContext } from "@ark-ui/react/field";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { TagsInput, useTagsInput, useTagsInputContext, useTagsInputItemContext } from "@ark-ui/react/tags-input";
4
3
  import { clsx } from "clsx";
5
- import { Children, cloneElement, forwardRef, useEffect, useRef } from "react";
4
+ import { forwardRef } from "react";
6
5
  import { CloseIcon } from "../../internal/icons/ui/index.js";
7
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
8
6
  import { CloseButton } from "../close-button/index.js";
9
7
  import TagsInput_module from "./TagsInput.module.js";
10
- const TagsInput_TagsInputRoot = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
8
+ const TagsInput_TagsInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
11
9
  return /*#__PURE__*/ jsx(TagsInput.Root, {
12
10
  ref: ref,
13
- asChild: asChild,
14
- "data-slot": "tags-input-root",
15
- className: clsx(TagsInput_module.root, normalizeClassName(className)),
11
+ className: clsx(TagsInput_module.root, className),
16
12
  ...props,
17
- children: withHiddenInput(children, asChild)
13
+ "data-slot": "tags-input-root"
18
14
  });
19
15
  });
20
- const TagsInput_TagsInputRootProvider = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
16
+ const TagsInput_TagsInputRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
21
17
  return /*#__PURE__*/ jsx(TagsInput.RootProvider, {
22
18
  ref: ref,
23
- asChild: asChild,
24
- "data-slot": "tags-input-root-provider",
25
- className: clsx(TagsInput_module.root, normalizeClassName(className)),
19
+ className: clsx(TagsInput_module.root, className),
26
20
  ...props,
27
- children: withHiddenInput(children, asChild)
21
+ "data-slot": "tags-input-root-provider"
28
22
  });
29
23
  });
30
24
  const TagsInput_TagsInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
31
25
  return /*#__PURE__*/ jsx(TagsInput.Label, {
32
26
  ref: ref,
33
- "data-slot": "tags-input-label",
34
- className: clsx(TagsInput_module.label, normalizeClassName(className)),
35
- ...props
27
+ className: clsx(TagsInput_module.label, className),
28
+ ...props,
29
+ "data-slot": "tags-input-label"
36
30
  });
37
31
  });
38
32
  const TagsInput_TagsInputControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
39
33
  return /*#__PURE__*/ jsx(TagsInput.Control, {
40
34
  ref: ref,
41
- "data-slot": "tags-input-control",
42
- className: clsx(TagsInput_module.control, normalizeClassName(className)),
43
- ...props
35
+ className: clsx(TagsInput_module.control, className),
36
+ ...props,
37
+ "data-slot": "tags-input-control"
44
38
  });
45
39
  });
46
40
  const TagsInput_TagsInputItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
47
41
  return /*#__PURE__*/ jsx(TagsInput.Item, {
48
42
  ref: ref,
49
- "data-slot": "tags-input-item",
50
- className: clsx(TagsInput_module.item, normalizeClassName(className)),
51
- ...props
43
+ className: clsx(TagsInput_module.item, className),
44
+ ...props,
45
+ "data-slot": "tags-input-item"
52
46
  });
53
47
  });
54
48
  const TagsInput_TagsInputItemPreview = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
55
49
  return /*#__PURE__*/ jsx(TagsInput.ItemPreview, {
56
50
  ref: ref,
57
- "data-slot": "tags-input-item-preview",
58
- className: clsx(TagsInput_module.itemPreview, normalizeClassName(className)),
59
- ...props
51
+ className: clsx(TagsInput_module.itemPreview, className),
52
+ ...props,
53
+ "data-slot": "tags-input-item-preview"
60
54
  });
61
55
  });
62
56
  const TagsInput_TagsInputItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
63
57
  return /*#__PURE__*/ jsx(TagsInput.ItemText, {
64
58
  ref: ref,
65
- "data-slot": "tags-input-item-text",
66
- className: clsx(TagsInput_module.itemText, normalizeClassName(className)),
67
- ...props
59
+ className: clsx(TagsInput_module.itemText, className),
60
+ ...props,
61
+ "data-slot": "tags-input-item-text"
68
62
  });
69
63
  });
70
64
  const TagsInput_TagsInputItemDeleteTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
71
65
  return /*#__PURE__*/ jsx(TagsInput.ItemDeleteTrigger, {
72
66
  ref: ref,
73
- "data-slot": "tags-input-item-delete-trigger",
74
- className: clsx(TagsInput_module.itemDeleteTrigger, normalizeClassName(className)),
67
+ className: clsx(TagsInput_module.itemDeleteTrigger, className),
75
68
  ...props,
69
+ "data-slot": "tags-input-item-delete-trigger",
76
70
  children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
77
71
  });
78
72
  });
79
73
  const TagsInput_TagsInputItemInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
80
74
  return /*#__PURE__*/ jsx(TagsInput.ItemInput, {
81
75
  ref: ref,
82
- "data-slot": "tags-input-item-input",
83
- className: clsx(TagsInput_module.itemInput, normalizeClassName(className)),
84
- ...props
76
+ className: clsx(TagsInput_module.itemInput, className),
77
+ ...props,
78
+ "data-slot": "tags-input-item-input"
85
79
  });
86
80
  });
87
81
  const TagsInput_TagsInputInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
88
82
  return /*#__PURE__*/ jsx(TagsInput.Input, {
89
83
  ref: ref,
90
- "data-slot": "tags-input-input",
91
- className: clsx(TagsInput_module.input, normalizeClassName(className)),
92
- ...props
84
+ className: clsx(TagsInput_module.input, className),
85
+ ...props,
86
+ "data-slot": "tags-input-input"
93
87
  });
94
88
  });
95
89
  const TagsInput_TagsInputClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
96
- const triggerClassName = clsx(TagsInput_module.clearTrigger, normalizeClassName(className));
90
+ const triggerClassName = clsx(TagsInput_module.clearTrigger, className);
97
91
  const clearTriggerLabel = useTagsInputContext().getClearTriggerProps()['aria-label'];
98
- if (asChild) return /*#__PURE__*/ jsx(TagsInput.ClearTrigger, {
99
- ref: ref,
100
- asChild: true,
101
- "data-slot": "tags-input-clear-trigger",
102
- className: triggerClassName,
103
- "aria-label": ariaLabel,
104
- "aria-labelledby": ariaLabelledBy,
105
- ...props,
106
- children: children
107
- });
108
92
  return /*#__PURE__*/ jsx(TagsInput.ClearTrigger, {
109
93
  ref: ref,
110
94
  asChild: true,
111
- "data-slot": "tags-input-clear-trigger",
112
95
  className: triggerClassName,
96
+ "aria-label": asChild ? ariaLabel : void 0,
97
+ "aria-labelledby": asChild ? ariaLabelledBy : void 0,
113
98
  ...props,
114
- children: /*#__PURE__*/ jsx(CloseButton.Root, {
99
+ "data-slot": "tags-input-clear-trigger",
100
+ children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
115
101
  "aria-label": ariaLabel ?? clearTriggerLabel,
116
102
  "aria-labelledby": ariaLabelledBy,
117
103
  "data-part": "clear-trigger",
@@ -121,48 +107,7 @@ const TagsInput_TagsInputClearTrigger = /*#__PURE__*/ forwardRef(function({ asCh
121
107
  })
122
108
  });
123
109
  });
124
- function withHiddenInput(children, asChild) {
125
- const hiddenInput = /*#__PURE__*/ jsx(TagsInputHiddenInput, {});
126
- if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
127
- children: [
128
- children,
129
- hiddenInput
130
- ]
131
- });
132
- const child = Children.only(children);
133
- return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
134
- }
135
110
  const TagsInputContext = TagsInput.Context;
136
- function TagsInputHiddenInput() {
137
- const field = useFieldContext();
138
- const tagsInput = useTagsInputContext();
139
- const inputRef = useRef(null);
140
- const initialValue = useRef(tagsInput.value);
141
- const initialInputValue = useRef(tagsInput.inputValue);
142
- const { defaultValue: _, ...hiddenInputProps } = tagsInput.getHiddenInputProps();
143
- useEffect(()=>{
144
- const form = inputRef.current?.form;
145
- if (!form) return;
146
- const handleReset = ()=>{
147
- queueMicrotask(()=>{
148
- tagsInput.setValue(initialValue.current);
149
- tagsInput.setInputValue(initialInputValue.current);
150
- });
151
- };
152
- form.addEventListener('reset', handleReset);
153
- return ()=>form.removeEventListener('reset', handleReset);
154
- }, [
155
- tagsInput
156
- ]);
157
- return /*#__PURE__*/ jsx("input", {
158
- ...hiddenInputProps,
159
- ref: inputRef,
160
- value: tagsInput.valueAsString,
161
- readOnly: true,
162
- "aria-describedby": field?.ariaDescribedby,
163
- "data-slot": "tags-input-hidden-input"
164
- });
165
- }
166
111
  function TagsInputItems() {
167
112
  return /*#__PURE__*/ jsx(TagsInputContext, {
168
113
  children: (tagsInput)=>tagsInput.value.map((value, index)=>/*#__PURE__*/ jsxs(TagsInput_TagsInputItem, {
@@ -185,6 +130,7 @@ function TagsInputItems() {
185
130
  const TagsInput_TagsInput = Object.assign(TagsInput_TagsInputRoot, {
186
131
  Root: TagsInput_TagsInputRoot,
187
132
  RootProvider: TagsInput_TagsInputRootProvider,
133
+ HiddenInput: TagsInput.HiddenInput,
188
134
  Label: TagsInput_TagsInputLabel,
189
135
  Control: TagsInput_TagsInputControl,
190
136
  Item: TagsInput_TagsInputItem,
@@ -209,7 +209,6 @@
209
209
  --moduix-close-button-focus-ring-color: var(--moduix-tags-input-trigger-focus-ring-color, var(--moduix-color-ring));
210
210
  --moduix-close-button-focus-ring-width: var(--moduix-tags-input-trigger-focus-ring-width, var(--moduix-border-width-sm));
211
211
  --moduix-close-button-focus-ring-offset: var(--moduix-tags-input-trigger-focus-ring-offset, var(--moduix-focus-ring-offset));
212
- --moduix-close-button-transition: var(--moduix-tags-input-transition, var(--moduix-transition-default));
213
212
  --moduix-close-button-disabled-opacity: var(--moduix-tags-input-disabled-opacity, var(--moduix-opacity-disabled));
214
213
  flex: none;
215
214
  align-self: center;
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { ark } from "@ark-ui/react/factory";
3
3
  import { clsx } from "clsx";
4
4
  import { forwardRef } from "react";
5
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
6
5
  import Text_module from "./Text.module.js";
7
6
  const Text_elements = {
8
7
  div: ark.div,
@@ -34,7 +33,7 @@ const Text_TextRoot = /*#__PURE__*/ forwardRef(function({ as, asChild, size, wei
34
33
  "data-align": align,
35
34
  "data-truncate": truncate ? '' : void 0,
36
35
  "data-line-clamp": void 0 === resolvedLineClamp ? void 0 : '',
37
- className: clsx(Text_module.root, normalizeClassName(className)),
36
+ className: clsx(Text_module.root, className),
38
37
  style: lineClampStyle
39
38
  });
40
39
  });
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { Field } from "@ark-ui/react/field";
3
3
  import { clsx } from "clsx";
4
4
  import { forwardRef } from "react";
5
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
6
5
  import Textarea_module from "./Textarea.module.js";
7
6
  const Textarea_Textarea = /*#__PURE__*/ forwardRef(function({ autoresize, className, ...props }, ref) {
8
7
  return /*#__PURE__*/ jsx(Field.Textarea, {
@@ -12,7 +11,7 @@ const Textarea_Textarea = /*#__PURE__*/ forwardRef(function({ autoresize, classN
12
11
  "data-part": "textarea",
13
12
  "data-slot": "textarea-root",
14
13
  "data-autoresize": autoresize ? '' : void 0,
15
- className: clsx(Textarea_module.root, normalizeClassName(className)),
14
+ className: clsx(Textarea_module.root, className),
16
15
  autoresize: autoresize
17
16
  });
18
17
  });
@@ -3,62 +3,61 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Timer, useTimer, useTimerContext } from "@ark-ui/react/timer";
4
4
  import { clsx } from "clsx";
5
5
  import { Fragment, forwardRef } from "react";
6
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
7
6
  import Timer_module from "./Timer.module.js";
8
7
  const Timer_TimerRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
9
8
  return /*#__PURE__*/ jsx(Timer.Root, {
10
9
  ref: ref,
11
- "data-slot": "timer-root",
12
- className: clsx(Timer_module.root, normalizeClassName(className)),
13
- ...props
10
+ className: clsx(Timer_module.root, className),
11
+ ...props,
12
+ "data-slot": "timer-root"
14
13
  });
15
14
  });
16
15
  const Timer_TimerRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
17
16
  return /*#__PURE__*/ jsx(Timer.RootProvider, {
18
17
  ref: ref,
19
- "data-slot": "timer-root-provider",
20
- className: clsx(Timer_module.root, normalizeClassName(className)),
21
- ...props
18
+ className: clsx(Timer_module.root, className),
19
+ ...props,
20
+ "data-slot": "timer-root-provider"
22
21
  });
23
22
  });
24
23
  const Timer_TimerArea = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
25
24
  return /*#__PURE__*/ jsx(Timer.Area, {
26
25
  ref: ref,
27
- "data-slot": "timer-area",
28
- className: clsx(Timer_module.area, normalizeClassName(className)),
29
- ...props
26
+ className: clsx(Timer_module.area, className),
27
+ ...props,
28
+ "data-slot": "timer-area"
30
29
  });
31
30
  });
32
31
  const Timer_TimerItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
33
32
  return /*#__PURE__*/ jsx(Timer.Item, {
34
33
  ref: ref,
35
- "data-slot": "timer-item",
36
- className: clsx(Timer_module.item, normalizeClassName(className)),
37
- ...props
34
+ className: clsx(Timer_module.item, className),
35
+ ...props,
36
+ "data-slot": "timer-item"
38
37
  });
39
38
  });
40
39
  const Timer_TimerSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
41
40
  return /*#__PURE__*/ jsx(Timer.Separator, {
42
41
  ref: ref,
43
- "data-slot": "timer-separator",
44
- className: clsx(Timer_module.separator, normalizeClassName(className)),
45
- ...props
42
+ className: clsx(Timer_module.separator, className),
43
+ ...props,
44
+ "data-slot": "timer-separator"
46
45
  });
47
46
  });
48
47
  const Timer_TimerControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
49
48
  return /*#__PURE__*/ jsx(Timer.Control, {
50
49
  ref: ref,
51
- "data-slot": "timer-control",
52
- className: clsx(Timer_module.control, normalizeClassName(className)),
53
- ...props
50
+ className: clsx(Timer_module.control, className),
51
+ ...props,
52
+ "data-slot": "timer-control"
54
53
  });
55
54
  });
56
55
  const Timer_TimerActionTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
57
56
  return /*#__PURE__*/ jsx(Timer.ActionTrigger, {
58
57
  ref: ref,
59
- "data-slot": "timer-action-trigger",
60
- className: clsx(Timer_module.actionTrigger, normalizeClassName(className)),
61
- ...props
58
+ className: clsx(Timer_module.actionTrigger, className),
59
+ ...props,
60
+ "data-slot": "timer-action-trigger"
62
61
  });
63
62
  });
64
63
  const defaultTimerSegmentTypes = [
@@ -1,6 +1,6 @@
1
1
  import { Toast as ToastPrimitive, Toaster as ToasterPrimitive, createToaster, useToastContext } from '@ark-ui/react/toast';
2
2
  import type { ComponentProps } from 'react';
3
- import type { OverlayPortalProps } from '../../internal/overlayPortal';
3
+ import type { OverlayPortalProps } from '../../internal/overlayPortal.js';
4
4
  type ToasterProps = Omit<ComponentProps<typeof ToasterPrimitive>, 'children'> & OverlayPortalProps & {
5
5
  children?: ComponentProps<typeof ToasterPrimitive>['children'];
6
6
  };
@@ -4,7 +4,6 @@ import { Portal } from "@ark-ui/react/portal";
4
4
  import { Toast, Toaster as toast_Toaster, createToaster, useToastContext } from "@ark-ui/react/toast";
5
5
  import { clsx } from "clsx";
6
6
  import { forwardRef } from "react";
7
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
8
7
  import { CloseButton } from "../close-button/index.js";
9
8
  import Toast_module from "./Toast.module.js";
10
9
  const DEFAULT_CLOSE_TRIGGER_LABEL = 'Close toast';
@@ -14,9 +13,9 @@ const Toast_Toaster = /*#__PURE__*/ forwardRef(function({ className, portalled =
14
13
  container: portalRef,
15
14
  children: /*#__PURE__*/ jsx(toast_Toaster, {
16
15
  ref: ref,
17
- "data-slot": "toast-toaster",
18
- className: clsx(Toast_module.toaster, normalizeClassName(className)),
16
+ className: clsx(Toast_module.toaster, className),
19
17
  ...props,
18
+ "data-slot": "toast-toaster",
20
19
  children: props.children ?? ((toast)=>/*#__PURE__*/ jsx(DefaultToast, {
21
20
  toast: toast
22
21
  }))
@@ -38,18 +37,18 @@ function DefaultToast({ toast }) {
38
37
  const Toast_ToastRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
39
38
  return /*#__PURE__*/ jsx(Toast.Root, {
40
39
  ref: ref,
41
- "data-slot": "toast-root",
42
- className: clsx(Toast_module.root, normalizeClassName(className)),
43
- ...props
40
+ className: clsx(Toast_module.root, className),
41
+ ...props,
42
+ "data-slot": "toast-root"
44
43
  });
45
44
  });
46
45
  const Toast_ToastTitle = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
47
46
  const toast = useToastContext();
48
47
  return /*#__PURE__*/ jsx(Toast.Title, {
49
48
  ref: ref,
50
- "data-slot": "toast-title",
51
- className: clsx(Toast_module.title, normalizeClassName(className)),
49
+ className: clsx(Toast_module.title, className),
52
50
  ...props,
51
+ "data-slot": "toast-title",
53
52
  children: void 0 === children ? toast.title : children
54
53
  });
55
54
  });
@@ -57,9 +56,9 @@ const Toast_ToastDescription = /*#__PURE__*/ forwardRef(function({ className, ch
57
56
  const toast = useToastContext();
58
57
  return /*#__PURE__*/ jsx(Toast.Description, {
59
58
  ref: ref,
60
- "data-slot": "toast-description",
61
- className: clsx(Toast_module.description, normalizeClassName(className)),
59
+ className: clsx(Toast_module.description, className),
62
60
  ...props,
61
+ "data-slot": "toast-description",
63
62
  children: void 0 === children ? toast.description : children
64
63
  });
65
64
  });
@@ -67,9 +66,9 @@ const Toast_ToastActionTrigger = /*#__PURE__*/ forwardRef(function({ asChild, cl
67
66
  return /*#__PURE__*/ jsx(Toast.ActionTrigger, {
68
67
  ref: ref,
69
68
  asChild: asChild,
70
- "data-slot": "toast-action-trigger",
71
- className: clsx(!asChild && Toast_module.actionTrigger, normalizeClassName(className)),
69
+ className: clsx(!asChild && Toast_module.actionTrigger, className),
72
70
  ...props,
71
+ "data-slot": "toast-action-trigger",
73
72
  children: children
74
73
  });
75
74
  });
@@ -77,20 +76,20 @@ const Toast_ToastCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, cla
77
76
  if (asChild) return /*#__PURE__*/ jsx(Toast.CloseTrigger, {
78
77
  ref: ref,
79
78
  asChild: true,
80
- "data-slot": "toast-close-trigger",
81
79
  "aria-label": ariaLabel,
82
- className: normalizeClassName(className),
80
+ className: className,
83
81
  ...props,
82
+ "data-slot": "toast-close-trigger",
84
83
  children: children
85
84
  });
86
85
  return /*#__PURE__*/ jsx(Toast.CloseTrigger, {
87
86
  asChild: true,
88
87
  children: /*#__PURE__*/ jsx(CloseButton.Root, {
89
88
  ref: ref,
90
- "data-slot": "toast-close-trigger",
91
89
  "aria-label": ariaLabel,
92
- className: clsx(Toast_module.closeTrigger, normalizeClassName(className)),
90
+ className: clsx(Toast_module.closeTrigger, className),
93
91
  ...props,
92
+ "data-slot": "toast-close-trigger",
94
93
  children: children
95
94
  })
96
95
  });
@@ -144,13 +144,12 @@
144
144
  --moduix-close-button-focus-ring-color: var(--moduix-toast-focus-ring-color, var(--moduix-color-ring));
145
145
  --moduix-close-button-focus-ring-offset: var(--moduix-toast-close-focus-ring-offset, var(--moduix-focus-ring-offset));
146
146
  --moduix-close-button-focus-ring-width: var(--moduix-toast-close-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)));
147
- --moduix-close-button-transition: var(--moduix-toast-close-transition, var(--moduix-transition-default));
148
147
  position: absolute;
149
148
  inset-block-start: var(--moduix-toast-close-offset-top, var(--moduix-spacing-2));
150
149
  inset-inline-end: var(--moduix-toast-close-offset-right, var(--moduix-spacing-2));
151
150
  }
152
151
 
153
- @media (max-width: 40rem) {
152
+ @media (width <= 40rem) {
154
153
  .toaster-m5bxJd {
155
154
  width: 100%;
156
155
  }