mainbase-ui 3.36.0 → 3.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/README.md +12 -23
  2. package/dist/cjs/components/accordion/accordion.cjs +2 -1
  3. package/dist/cjs/components/alert/alert.cjs +7 -6
  4. package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs +8 -8
  5. package/dist/cjs/components/avatar/avatar.cjs +16 -16
  6. package/dist/cjs/components/bleed/bleed.cjs +5 -4
  7. package/dist/cjs/components/breadcrumb/breadcrumb.cjs +3 -2
  8. package/dist/cjs/components/button/button-group.cjs +5 -4
  9. package/dist/cjs/components/button/button.cjs +16 -16
  10. package/dist/cjs/components/button/close-button.cjs +2 -1
  11. package/dist/cjs/components/button/icon-button.cjs +4 -3
  12. package/dist/cjs/components/carousel/carousel.cjs +13 -8
  13. package/dist/cjs/components/checkbox/checkbox.cjs +13 -12
  14. package/dist/cjs/components/checkbox-card/checkbox-card.cjs +6 -5
  15. package/dist/cjs/components/checkmark/checkmark.cjs +7 -7
  16. package/dist/cjs/components/circle/index.cjs +4 -3
  17. package/dist/cjs/components/client-only/client-only.cjs +5 -4
  18. package/dist/cjs/components/clipboard/clipboard.cjs +6 -5
  19. package/dist/cjs/components/code-block/code-block-adapter-provider.cjs +2 -1
  20. package/dist/cjs/components/code-block/code-block.cjs +43 -45
  21. package/dist/cjs/components/color-picker/color-picker.cjs +24 -13
  22. package/dist/cjs/components/color-swatch/index.cjs +9 -9
  23. package/dist/cjs/components/combobox/combobox.cjs +4 -3
  24. package/dist/cjs/components/date-picker/date-picker.cjs +39 -25
  25. package/dist/cjs/components/dialog/dialog.cjs +4 -3
  26. package/dist/cjs/components/drawer/drawer.cjs +4 -3
  27. package/dist/cjs/components/editable/editable.cjs +4 -3
  28. package/dist/cjs/components/field/field.cjs +7 -7
  29. package/dist/cjs/components/file-upload/file-upload.cjs +21 -13
  30. package/dist/cjs/components/flex/flex.cjs +4 -3
  31. package/dist/cjs/components/float/float.cjs +5 -5
  32. package/dist/cjs/components/floating-panel/floating-panel.cjs +2 -1
  33. package/dist/cjs/components/grid/grid-item.cjs +5 -5
  34. package/dist/cjs/components/grid/grid.cjs +4 -3
  35. package/dist/cjs/components/group/group.cjs +11 -11
  36. package/dist/cjs/components/highlight/highlight.cjs +5 -4
  37. package/dist/cjs/components/hover-card/hover-card.cjs +2 -1
  38. package/dist/cjs/components/icon/create-icon.cjs +7 -6
  39. package/dist/cjs/components/icon/icon.cjs +2 -2
  40. package/dist/cjs/components/icons.cjs +90 -75
  41. package/dist/cjs/components/image/image.cjs +4 -4
  42. package/dist/cjs/components/input-addon/input-addon.cjs +4 -3
  43. package/dist/cjs/components/input-group/input-group.cjs +20 -17
  44. package/dist/cjs/components/link/link-box.cjs +6 -6
  45. package/dist/cjs/components/listbox/listbox.cjs +2 -1
  46. package/dist/cjs/components/loader/loader.cjs +12 -4
  47. package/dist/cjs/components/menu/menu.cjs +3 -2
  48. package/dist/cjs/components/native-select/native-select.cjs +15 -13
  49. package/dist/cjs/components/number-input/number-input.cjs +7 -3
  50. package/dist/cjs/components/pagination/pagination.cjs +12 -11
  51. package/dist/cjs/components/popover/popover.cjs +2 -1
  52. package/dist/cjs/components/qr-code/qr-code.cjs +2 -1
  53. package/dist/cjs/components/radio-card/radio-card.cjs +10 -10
  54. package/dist/cjs/components/radio-group/radio-group.cjs +5 -4
  55. package/dist/cjs/components/radiomark/radiomark.cjs +4 -4
  56. package/dist/cjs/components/rating-group/rating-group.cjs +15 -12
  57. package/dist/cjs/components/scroll-area/scroll-area.cjs +2 -1
  58. package/dist/cjs/components/segment-group/segment-group.cjs +11 -8
  59. package/dist/cjs/components/select/select.cjs +4 -3
  60. package/dist/cjs/components/separator/separator.cjs +4 -4
  61. package/dist/cjs/components/show/show.cjs +3 -2
  62. package/dist/cjs/components/simple-grid/simple-grid.cjs +4 -4
  63. package/dist/cjs/components/skeleton/skeleton.cjs +6 -5
  64. package/dist/cjs/components/skip-nav/skip-nav-content.cjs +4 -3
  65. package/dist/cjs/components/skip-nav/skip-nav-link.cjs +4 -3
  66. package/dist/cjs/components/slider/slider.cjs +10 -6
  67. package/dist/cjs/components/splitter/splitter.cjs +5 -1
  68. package/dist/cjs/components/square/index.cjs +4 -3
  69. package/dist/cjs/components/stack/get-separator-style.cjs +0 -2
  70. package/dist/cjs/components/stack/h-stack.cjs +4 -3
  71. package/dist/cjs/components/stack/stack.cjs +17 -14
  72. package/dist/cjs/components/stack/v-stack.cjs +4 -3
  73. package/dist/cjs/components/stat/stat.cjs +8 -7
  74. package/dist/cjs/components/steps/steps.cjs +10 -9
  75. package/dist/cjs/components/switch/switch.cjs +10 -10
  76. package/dist/cjs/components/table/table.cjs +6 -6
  77. package/dist/cjs/components/tag/tag.cjs +2 -1
  78. package/dist/cjs/components/tags-input/tags-input.cjs +10 -3
  79. package/dist/cjs/components/theme.cjs +4 -4
  80. package/dist/cjs/components/toast/toast.cjs +5 -4
  81. package/dist/cjs/components/tooltip/tooltip.cjs +2 -1
  82. package/dist/cjs/components/tree-view/tree-view.cjs +20 -13
  83. package/dist/cjs/components/wrap/wrap.cjs +6 -6
  84. package/dist/cjs/hooks/index.cjs +5 -5
  85. package/dist/cjs/hooks/use-overlay.cjs +3 -3
  86. package/dist/cjs/index.cjs +21 -21
  87. package/dist/cjs/merge-props.cjs +0 -2
  88. package/dist/cjs/styled-system/breakpoints.cjs +0 -2
  89. package/dist/cjs/styled-system/calc.cjs +0 -2
  90. package/dist/cjs/styled-system/conditions.cjs +0 -2
  91. package/dist/cjs/styled-system/create-recipe-context.cjs +6 -6
  92. package/dist/cjs/styled-system/create-slot-recipe-context.cjs +12 -12
  93. package/dist/cjs/styled-system/css.cjs +1 -3
  94. package/dist/cjs/styled-system/cva.cjs +0 -2
  95. package/dist/cjs/styled-system/factory.cjs +19 -13
  96. package/dist/cjs/styled-system/merge-config.cjs +1 -3
  97. package/dist/cjs/styled-system/normalize.cjs +0 -2
  98. package/dist/cjs/styled-system/preflight.cjs +0 -2
  99. package/dist/cjs/styled-system/provider.cjs +6 -1
  100. package/dist/cjs/styled-system/recipe-props.cjs +2 -1
  101. package/dist/cjs/styled-system/references.cjs +0 -2
  102. package/dist/cjs/styled-system/serialize.cjs +1 -3
  103. package/dist/cjs/styled-system/sort-at-rules.cjs +0 -2
  104. package/dist/cjs/styled-system/sva.cjs +0 -2
  105. package/dist/cjs/styled-system/system.cjs +1 -3
  106. package/dist/cjs/styled-system/token-dictionary.cjs +2 -4
  107. package/dist/cjs/styled-system/token-middleware.cjs +0 -2
  108. package/dist/cjs/styled-system/use-resolved-props.cjs +0 -1
  109. package/dist/cjs/styled-system/utility.cjs +1 -3
  110. package/dist/cjs/theme/recipes/number-input.cjs +0 -2
  111. package/dist/cjs/theme/recipes/pin-input.cjs +0 -2
  112. package/dist/esm/components/accordion/accordion.js +2 -1
  113. package/dist/esm/components/alert/alert.js +4 -3
  114. package/dist/esm/components/aspect-ratio/aspect-ratio.js +5 -5
  115. package/dist/esm/components/avatar/avatar.js +11 -11
  116. package/dist/esm/components/bleed/bleed.js +3 -2
  117. package/dist/esm/components/breadcrumb/breadcrumb.js +3 -2
  118. package/dist/esm/components/button/button-group.js +2 -1
  119. package/dist/esm/components/button/button.js +13 -13
  120. package/dist/esm/components/button/close-button.js +2 -1
  121. package/dist/esm/components/button/icon-button.js +2 -1
  122. package/dist/esm/components/carousel/carousel.js +10 -5
  123. package/dist/esm/components/checkbox/checkbox.js +11 -10
  124. package/dist/esm/components/checkbox-card/checkbox-card.js +3 -2
  125. package/dist/esm/components/checkmark/checkmark.js +5 -5
  126. package/dist/esm/components/circle/index.js +2 -1
  127. package/dist/esm/components/client-only/client-only.js +2 -1
  128. package/dist/esm/components/clipboard/clipboard.js +4 -3
  129. package/dist/esm/components/code-block/code-block-adapter-provider.js +2 -1
  130. package/dist/esm/components/code-block/code-block.js +29 -31
  131. package/dist/esm/components/color-picker/color-picker.js +19 -8
  132. package/dist/esm/components/color-swatch/index.js +7 -7
  133. package/dist/esm/components/combobox/combobox.js +4 -3
  134. package/dist/esm/components/date-picker/date-picker.js +37 -23
  135. package/dist/esm/components/dialog/dialog.js +2 -1
  136. package/dist/esm/components/drawer/drawer.js +2 -1
  137. package/dist/esm/components/editable/editable.js +2 -1
  138. package/dist/esm/components/field/field.js +5 -5
  139. package/dist/esm/components/file-upload/file-upload.js +17 -9
  140. package/dist/esm/components/flex/flex.js +2 -1
  141. package/dist/esm/components/float/float.js +2 -2
  142. package/dist/esm/components/floating-panel/floating-panel.js +2 -1
  143. package/dist/esm/components/grid/grid-item.js +2 -2
  144. package/dist/esm/components/grid/grid.js +2 -1
  145. package/dist/esm/components/group/group.js +5 -5
  146. package/dist/esm/components/highlight/highlight.js +4 -3
  147. package/dist/esm/components/hover-card/hover-card.js +2 -1
  148. package/dist/esm/components/icon/create-icon.js +5 -4
  149. package/dist/esm/components/icon/icon.js +2 -2
  150. package/dist/esm/components/icons.js +90 -75
  151. package/dist/esm/components/image/image.js +2 -2
  152. package/dist/esm/components/input-addon/input-addon.js +2 -1
  153. package/dist/esm/components/input-group/input-group.js +17 -14
  154. package/dist/esm/components/link/link-box.js +3 -3
  155. package/dist/esm/components/listbox/listbox.js +2 -1
  156. package/dist/esm/components/loader/loader.js +12 -4
  157. package/dist/esm/components/menu/menu.js +3 -2
  158. package/dist/esm/components/native-select/native-select.js +13 -11
  159. package/dist/esm/components/number-input/number-input.js +7 -3
  160. package/dist/esm/components/pagination/pagination.js +9 -8
  161. package/dist/esm/components/popover/popover.js +2 -1
  162. package/dist/esm/components/qr-code/qr-code.js +2 -1
  163. package/dist/esm/components/radio-card/radio-card.js +7 -7
  164. package/dist/esm/components/radio-group/radio-group.js +3 -2
  165. package/dist/esm/components/radiomark/radiomark.js +2 -2
  166. package/dist/esm/components/rating-group/rating-group.js +11 -8
  167. package/dist/esm/components/scroll-area/scroll-area.js +2 -1
  168. package/dist/esm/components/segment-group/segment-group.js +9 -6
  169. package/dist/esm/components/select/select.js +4 -3
  170. package/dist/esm/components/separator/separator.js +2 -2
  171. package/dist/esm/components/show/show.js +2 -1
  172. package/dist/esm/components/simple-grid/simple-grid.js +2 -2
  173. package/dist/esm/components/skeleton/skeleton.js +6 -5
  174. package/dist/esm/components/skip-nav/skip-nav-content.js +2 -1
  175. package/dist/esm/components/skip-nav/skip-nav-link.js +2 -1
  176. package/dist/esm/components/slider/slider.js +8 -4
  177. package/dist/esm/components/splitter/splitter.js +5 -1
  178. package/dist/esm/components/square/index.js +2 -1
  179. package/dist/esm/components/stack/get-separator-style.js +0 -2
  180. package/dist/esm/components/stack/h-stack.js +2 -1
  181. package/dist/esm/components/stack/stack.js +9 -6
  182. package/dist/esm/components/stack/v-stack.js +2 -1
  183. package/dist/esm/components/stat/stat.js +5 -4
  184. package/dist/esm/components/steps/steps.js +8 -7
  185. package/dist/esm/components/switch/switch.js +7 -7
  186. package/dist/esm/components/table/table.js +3 -3
  187. package/dist/esm/components/tag/tag.js +2 -1
  188. package/dist/esm/components/tags-input/tags-input.js +10 -3
  189. package/dist/esm/components/theme.js +2 -2
  190. package/dist/esm/components/toast/toast.js +3 -2
  191. package/dist/esm/components/tooltip/tooltip.js +2 -1
  192. package/dist/esm/components/tree-view/tree-view.js +20 -13
  193. package/dist/esm/components/wrap/wrap.js +3 -3
  194. package/dist/esm/hooks/index.js +1 -1
  195. package/dist/esm/hooks/use-overlay.js +3 -3
  196. package/dist/esm/index.js +1 -1
  197. package/dist/esm/merge-props.js +0 -2
  198. package/dist/esm/styled-system/breakpoints.js +0 -2
  199. package/dist/esm/styled-system/calc.js +0 -2
  200. package/dist/esm/styled-system/conditions.js +0 -2
  201. package/dist/esm/styled-system/create-recipe-context.js +2 -2
  202. package/dist/esm/styled-system/create-slot-recipe-context.js +5 -5
  203. package/dist/esm/styled-system/css.js +1 -3
  204. package/dist/esm/styled-system/cva.js +0 -2
  205. package/dist/esm/styled-system/factory.js +19 -13
  206. package/dist/esm/styled-system/merge-config.js +1 -3
  207. package/dist/esm/styled-system/normalize.js +0 -2
  208. package/dist/esm/styled-system/preflight.js +0 -2
  209. package/dist/esm/styled-system/provider.js +6 -1
  210. package/dist/esm/styled-system/recipe-props.js +2 -1
  211. package/dist/esm/styled-system/references.js +0 -2
  212. package/dist/esm/styled-system/serialize.js +1 -3
  213. package/dist/esm/styled-system/sort-at-rules.js +0 -2
  214. package/dist/esm/styled-system/sva.js +0 -2
  215. package/dist/esm/styled-system/system.js +1 -3
  216. package/dist/esm/styled-system/token-dictionary.js +2 -4
  217. package/dist/esm/styled-system/token-middleware.js +0 -2
  218. package/dist/esm/styled-system/use-resolved-props.js +0 -1
  219. package/dist/esm/styled-system/utility.js +1 -3
  220. package/dist/esm/theme/recipes/number-input.js +0 -2
  221. package/dist/esm/theme/recipes/pin-input.js +0 -2
  222. package/package.json +3 -3
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { QrCode } from '@ark-ui/react/qr-code';
3
4
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
4
5
 
@@ -25,7 +26,7 @@ const QrCodeFrame = withContext(
25
26
  "frame",
26
27
  {
27
28
  forwardAsChild: true,
28
- defaultProps: { children: /* @__PURE__ */ React.createElement(QrCodePattern, null) }
29
+ defaultProps: { children: /* @__PURE__ */ jsx(QrCodePattern, {}) }
29
30
  }
30
31
  );
31
32
  const QrCodeOverlay = withContext(
@@ -1,10 +1,10 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { RadioGroup, useRadioGroupItemContext } from '@ark-ui/react/radio-group';
3
4
  import { forwardRef } from 'react';
4
5
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
5
6
  import { mainbase } from '../../styled-system/factory.js';
6
7
  import { dataAttr } from '../../utils/attr.js';
7
- import '../../utils/unit.js';
8
8
  import { Radiomark } from '../radiomark/radiomark.js';
9
9
 
10
10
  const {
@@ -35,7 +35,7 @@ const RadioCardItemDescription = withContext("div", "itemDescription", { forward
35
35
  const RadioCardItemControl = forwardRef(function RadioCardItemControl2(props, ref) {
36
36
  const api = useRadioGroupItemContext();
37
37
  const styles = useRadioCardStyles();
38
- return /* @__PURE__ */ React.createElement(
38
+ return /* @__PURE__ */ jsx(
39
39
  mainbase.div,
40
40
  {
41
41
  ref,
@@ -57,19 +57,19 @@ const RadioCardItemIndicator = forwardRef(function RadioGroupItemIndicator(props
57
57
  const styles = useRadioCardStyles();
58
58
  const itemContext = useRadioGroupItemContext();
59
59
  if (checked && itemContext.checked) {
60
- return /* @__PURE__ */ React.createElement(
60
+ return /* @__PURE__ */ jsx(
61
61
  mainbase.span,
62
62
  {
63
63
  ref,
64
64
  asChild: true,
65
65
  ...rest,
66
66
  "aria-hidden": "true",
67
- css: [styles["itemIndicator"], props.css]
68
- },
69
- checked
67
+ css: [styles["itemIndicator"], props.css],
68
+ children: checked
69
+ }
70
70
  );
71
71
  }
72
- return /* @__PURE__ */ React.createElement(
72
+ return /* @__PURE__ */ jsx(
73
73
  Radiomark,
74
74
  {
75
75
  ref,
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { RadioGroup } from '@ark-ui/react/radio-group';
3
4
  import { forwardRef } from 'react';
4
5
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
@@ -27,7 +28,7 @@ const RadioGroupItemText = withContext(RadioGroup.ItemText, "itemText", { forwar
27
28
  const RadioGroupItemControl = withContext(RadioGroup.ItemControl, "itemControl", { forwardAsChild: true });
28
29
  const RadioGroupItemIndicator = forwardRef(function RadioGroupItemIndicator2(props, ref) {
29
30
  const styles = useRadioGroupStyles();
30
- return /* @__PURE__ */ React.createElement(RadioGroup.ItemContext, null, (itemState) => /* @__PURE__ */ React.createElement(RadioGroup.ItemControl, { asChild: true }, /* @__PURE__ */ React.createElement(
31
+ return /* @__PURE__ */ jsx(RadioGroup.ItemContext, { children: (itemState) => /* @__PURE__ */ jsx(RadioGroup.ItemControl, { asChild: true, children: /* @__PURE__ */ jsx(
31
32
  Radiomark,
32
33
  {
33
34
  ref,
@@ -37,7 +38,7 @@ const RadioGroupItemIndicator = forwardRef(function RadioGroupItemIndicator2(pro
37
38
  disabled: itemState.disabled,
38
39
  css: [styles["itemControl"], props.css]
39
40
  }
40
- )));
41
+ ) }) });
41
42
  });
42
43
  const RadioGroupContext = RadioGroup.Context;
43
44
  const RadioGroupItemContext = RadioGroup.ItemContext;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { EMPTY_STYLES } from '../../styled-system/empty.js';
4
5
  import { mainbase } from '../../styled-system/factory.js';
5
6
  import { useRecipe } from '../../styled-system/use-recipe.js';
6
7
  import { dataAttr } from '../../utils/attr.js';
7
- import '../../utils/unit.js';
8
8
 
9
9
  const Radiomark = forwardRef(
10
10
  function Radiomark2(props, ref) {
@@ -19,7 +19,7 @@ const Radiomark = forwardRef(
19
19
  ...rest,
20
20
  css: [styles, props.css]
21
21
  };
22
- return /* @__PURE__ */ React.createElement(mainbase.span, { ...sharedProps }, checked && /* @__PURE__ */ React.createElement("span", { className: "dot" }));
22
+ return /* @__PURE__ */ jsx(mainbase.span, { ...sharedProps, children: checked && /* @__PURE__ */ jsx("span", { className: "dot" }) });
23
23
  }
24
24
  );
25
25
  Radiomark.displayName = "Radiomark";
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
3
  import { RatingGroup, useRatingGroupItemContext, useRatingGroupContext } from '@ark-ui/react/rating-group';
3
4
  import { forwardRef, isValidElement, cloneElement } from 'react';
4
5
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
@@ -23,10 +24,10 @@ function cloneIcon(icon, type) {
23
24
  return cloneElement(icon, props);
24
25
  }
25
26
  const RatingGroupItemIndicator = forwardRef(function RatingGroupItemIndicator2(props, ref) {
26
- const { icon = /* @__PURE__ */ React.createElement(StarIcon, null), ...rest } = props;
27
+ const { icon = /* @__PURE__ */ jsx(StarIcon, {}), ...rest } = props;
27
28
  const styles = useRatingGroupStyles();
28
29
  const itemState = useRatingGroupItemContext();
29
- return /* @__PURE__ */ React.createElement(
30
+ return /* @__PURE__ */ jsxs(
30
31
  mainbase.span,
31
32
  {
32
33
  ...rest,
@@ -34,19 +35,21 @@ const RatingGroupItemIndicator = forwardRef(function RatingGroupItemIndicator2(p
34
35
  "data-checked": itemState.checked ? "" : void 0,
35
36
  "data-half": itemState.half ? "" : void 0,
36
37
  css: [styles.itemIndicator, props.css],
37
- ref
38
- },
39
- cloneIcon(icon, "bg"),
40
- cloneIcon(icon, "fg")
38
+ ref,
39
+ children: [
40
+ cloneIcon(icon, "bg"),
41
+ cloneIcon(icon, "fg")
42
+ ]
43
+ }
41
44
  );
42
45
  });
43
46
  const RatingGroupItems = (props) => {
44
47
  const api = useRatingGroupContext();
45
- return /* @__PURE__ */ React.createElement(For, { each: api.items }, (index) => /* @__PURE__ */ React.createElement(RatingGroupItem, { key: index, index, ...props }, /* @__PURE__ */ React.createElement(RatingGroupItemIndicator, null)));
48
+ return /* @__PURE__ */ jsx(For, { each: api.items, children: (index) => /* @__PURE__ */ jsx(RatingGroupItem, { index, ...props, children: /* @__PURE__ */ jsx(RatingGroupItemIndicator, {}) }, index) });
46
49
  };
47
50
  const RatingGroupControl = withContext(RatingGroup.Control, "control", {
48
51
  forwardAsChild: true,
49
- defaultProps: { children: /* @__PURE__ */ React.createElement(RatingGroupItems, null) }
52
+ defaultProps: { children: /* @__PURE__ */ jsx(RatingGroupItems, {}) }
50
53
  });
51
54
  const RatingGroupContext = RatingGroup.Context;
52
55
  const RatingGroupItemContext = RatingGroup.ItemContext;
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { ScrollArea } from '@ark-ui/react/scroll-area';
3
4
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
4
5
 
@@ -21,7 +22,7 @@ const ScrollAreaThumb = withContext(ScrollArea.Thumb, "thumb", { forwardAsChild:
21
22
  const ScrollAreaScrollbar = withContext(ScrollArea.Scrollbar, "scrollbar", {
22
23
  forwardAsChild: true,
23
24
  defaultProps: {
24
- children: /* @__PURE__ */ React.createElement(ScrollAreaThumb, null)
25
+ children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
25
26
  }
26
27
  });
27
28
  const ScrollAreaCorner = withContext(ScrollArea.Corner, "corner", { forwardAsChild: true });
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
3
  import { SegmentGroup } from '@ark-ui/react/segment-group';
3
4
  import { useMemo } from 'react';
4
5
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
@@ -31,17 +32,19 @@ function normalize(items) {
31
32
  const SegmentGroupItems = (props) => {
32
33
  const { items, ...rest } = props;
33
34
  const data = useMemo(() => normalize(items), [items]);
34
- return /* @__PURE__ */ React.createElement(For, { each: data }, (item) => /* @__PURE__ */ React.createElement(
35
+ return /* @__PURE__ */ jsx(For, { each: data, children: (item) => /* @__PURE__ */ jsxs(
35
36
  SegmentGroupItem,
36
37
  {
37
- key: item.value,
38
38
  value: item.value,
39
39
  disabled: item.disabled,
40
- ...rest
40
+ ...rest,
41
+ children: [
42
+ /* @__PURE__ */ jsx(SegmentGroupItemText, { children: item.label }),
43
+ /* @__PURE__ */ jsx(SegmentGroupItemHiddenInput, {})
44
+ ]
41
45
  },
42
- /* @__PURE__ */ React.createElement(SegmentGroupItemText, null, item.label),
43
- /* @__PURE__ */ React.createElement(SegmentGroupItemHiddenInput, null)
44
- ));
46
+ item.value
47
+ ) });
45
48
  };
46
49
  const SegmentGroupItemHiddenInput = SegmentGroup.ItemHiddenInput;
47
50
  const SegmentGroupContext = SegmentGroup.Context;
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { Select } from '@ark-ui/react/select';
3
4
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
4
5
  import { CloseIcon, CheckIcon, ChevronDownIcon } from '../icons.js';
@@ -40,7 +41,7 @@ const SelectList = withContext(
40
41
  const SelectValueText = withContext(Select.ValueText, "valueText", { forwardAsChild: true });
41
42
  const SelectClearTrigger = withContext(Select.ClearTrigger, "clearTrigger", {
42
43
  forwardAsChild: true,
43
- defaultProps: { children: /* @__PURE__ */ React.createElement(CloseIcon, { boxSize: "1em" }) }
44
+ defaultProps: { children: /* @__PURE__ */ jsx(CloseIcon, { boxSize: "1em" }) }
44
45
  });
45
46
  const SelectItemGroup = withContext(Select.ItemGroup, "itemGroup", { forwardAsChild: true });
46
47
  const SelectItemGroupLabel = withContext(Select.ItemGroupLabel, "itemGroupLabel", { forwardAsChild: true });
@@ -57,14 +58,14 @@ const SelectItemText = withContext(
57
58
  const SelectItemIndicator = withContext(Select.ItemIndicator, "itemIndicator", {
58
59
  forwardAsChild: true,
59
60
  defaultProps: {
60
- children: /* @__PURE__ */ React.createElement(CheckIcon, null)
61
+ children: /* @__PURE__ */ jsx(CheckIcon, {})
61
62
  }
62
63
  });
63
64
  const SelectIndicatorGroup = withContext("div", "indicatorGroup");
64
65
  const SelectIndicator = withContext(Select.Indicator, "indicator", {
65
66
  forwardAsChild: true,
66
67
  defaultProps: {
67
- children: /* @__PURE__ */ React.createElement(ChevronDownIcon, null)
68
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
68
69
  }
69
70
  });
70
71
  const SelectControl = withContext(
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { createRecipeContext } from '../../styled-system/create-recipe-context.js';
4
5
  import { mainbase } from '../../styled-system/factory.js';
5
6
  import { cx } from '../../utils/cx.js';
6
7
  import { isString } from '../../utils/is.js';
7
8
  import { omit } from '../../utils/omit.js';
8
- import '../../utils/unit.js';
9
9
 
10
10
  const { useRecipeResult, PropsProvider } = createRecipeContext({
11
11
  key: "separator"
@@ -14,7 +14,7 @@ const Separator = forwardRef(
14
14
  function Separator2(props, ref) {
15
15
  const { styles, className, props: otherProps } = useRecipeResult(props);
16
16
  const orientation = props.orientation || "horizontal";
17
- return /* @__PURE__ */ React.createElement(
17
+ return /* @__PURE__ */ jsx(
18
18
  mainbase.span,
19
19
  {
20
20
  ref,
@@ -1,3 +1,4 @@
1
+ import { jsx, Fragment } from 'react/jsx-runtime';
1
2
  import { isValidElement } from 'react';
2
3
 
3
4
  function Show(props) {
@@ -8,7 +9,7 @@ function Show(props) {
8
9
  } else {
9
10
  result = typeof children === "function" ? children(when) : children;
10
11
  }
11
- return isValidElement(result) ? result : /* @__PURE__ */ React.createElement(React.Fragment, null, result);
12
+ return isValidElement(result) ? result : /* @__PURE__ */ jsx(Fragment, { children: result });
12
13
  }
13
14
 
14
15
  export { Show };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { useMainbaseContext } from '../../styled-system/provider.js';
4
5
  import { mapObject } from '../../utils/walk-object.js';
5
- import '../../utils/unit.js';
6
6
  import { Grid } from '../grid/grid.js';
7
7
  import '../grid/grid-item.js';
8
8
 
@@ -11,7 +11,7 @@ const SimpleGrid = forwardRef(
11
11
  const { columns, minChildWidth, ...rest } = props;
12
12
  const sys = useMainbaseContext();
13
13
  const templateColumns = minChildWidth ? widthToColumns(minChildWidth, sys) : countToColumns(columns);
14
- return /* @__PURE__ */ React.createElement(Grid, { ref, templateColumns, ...rest });
14
+ return /* @__PURE__ */ jsx(Grid, { ref, templateColumns, ...rest });
15
15
  }
16
16
  );
17
17
  SimpleGrid.displayName = "SimpleGrid";
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import * as React from 'react';
3
4
  import { createRecipeContext } from '../../styled-system/create-recipe-context.js';
4
5
  import { Circle } from '../circle/index.js';
@@ -14,22 +15,22 @@ const Skeleton = withContext("div");
14
15
  const SkeletonPropsProvider = PropsProvider;
15
16
  const SkeletonCircle = React.forwardRef(function SkeletonCircle2(props, ref) {
16
17
  const { size, ...rest } = props;
17
- return /* @__PURE__ */ React.createElement(Circle, { size, asChild: true, ref }, /* @__PURE__ */ React.createElement(Skeleton, { ...rest }));
18
+ return /* @__PURE__ */ jsx(Circle, { size, asChild: true, ref, children: /* @__PURE__ */ jsx(Skeleton, { ...rest }) });
18
19
  });
19
20
  SkeletonCircle.displayName = "SkeletonCircle";
20
21
  const SkeletonText = React.forwardRef(
21
22
  function SkeletonText2(props, ref) {
22
23
  const { loading = true, noOfLines = 3, gap, rootProps, ...rest } = props;
23
- return /* @__PURE__ */ React.createElement(Stack, { gap, width: "full", ref, ...rootProps }, Array.from({ length: loading ? noOfLines : 1 }).map((_, index) => /* @__PURE__ */ React.createElement(
24
+ return /* @__PURE__ */ jsx(Stack, { gap, width: "full", ref, ...rootProps, children: Array.from({ length: loading ? noOfLines : 1 }).map((_, index) => /* @__PURE__ */ jsx(
24
25
  Skeleton,
25
26
  {
26
- key: index,
27
27
  loading,
28
28
  height: loading ? "4" : void 0,
29
29
  maxW: loading ? index === noOfLines - 1 && noOfLines > 1 ? "80%" : "100%" : void 0,
30
30
  ...rest
31
- }
32
- )));
31
+ },
32
+ index
33
+ )) });
33
34
  }
34
35
  );
35
36
  SkeletonText.displayName = "SkeletonText";
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { mainbase } from '../../styled-system/factory.js';
4
5
  import { fallbackId } from './skip-nav-link.js';
@@ -6,7 +7,7 @@ import { fallbackId } from './skip-nav-link.js';
6
7
  const SkipNavContent = forwardRef(
7
8
  function SkipNavContent2(props, ref) {
8
9
  const { id = fallbackId, ...rest } = props;
9
- return /* @__PURE__ */ React.createElement(
10
+ return /* @__PURE__ */ jsx(
10
11
  mainbase.div,
11
12
  {
12
13
  ref,
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { mainbase } from '../../styled-system/factory.js';
4
5
  import { useRecipe } from '../../styled-system/use-recipe.js';
@@ -10,7 +11,7 @@ const SkipNavLink = forwardRef(
10
11
  const [variantProps, { id, ...localProps }] = recipe.splitVariantProps(props);
11
12
  const styles = recipe(variantProps);
12
13
  const targetId = id ?? fallbackId;
13
- return /* @__PURE__ */ React.createElement(
14
+ return /* @__PURE__ */ jsx(
14
15
  mainbase.a,
15
16
  {
16
17
  ...localProps,
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
3
  import { Slider, useSliderContext } from '@ark-ui/react/slider';
3
4
  import { forwardRef } from 'react';
4
5
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
@@ -49,17 +50,20 @@ const SliderMarkerLabel = withContext("span", "markerLabel");
49
50
  const SliderDraggingIndicator = withContext(Slider.DraggingIndicator, "draggingIndicator", { forwardAsChild: true });
50
51
  const SliderThumbs = (props) => {
51
52
  const api = useSliderContext();
52
- return /* @__PURE__ */ React.createElement(For, { each: api.value }, (_, index) => /* @__PURE__ */ React.createElement(SliderThumb, { key: index, index, ...props }, /* @__PURE__ */ React.createElement(SliderHiddenInput, null)));
53
+ return /* @__PURE__ */ jsx(For, { each: api.value, children: (_, index) => /* @__PURE__ */ jsx(SliderThumb, { index, ...props, children: /* @__PURE__ */ jsx(SliderHiddenInput, {}) }, index) });
53
54
  };
54
55
  const SliderMarks = forwardRef(
55
56
  function SliderMarks2(props, ref) {
56
57
  const { marks, ...rest } = props;
57
58
  if (!marks?.length) return null;
58
- return /* @__PURE__ */ React.createElement(SliderMarkerGroup, { ref, ...rest }, marks.map((mark, index) => {
59
+ return /* @__PURE__ */ jsx(SliderMarkerGroup, { ref, ...rest, children: marks.map((mark, index) => {
59
60
  const value = typeof mark === "number" ? mark : mark.value;
60
61
  const label = typeof mark === "number" ? void 0 : mark.label;
61
- return /* @__PURE__ */ React.createElement(SliderMarker, { key: index, value }, /* @__PURE__ */ React.createElement(SliderMarkerIndicator, null), label != null && /* @__PURE__ */ React.createElement(SliderMarkerLabel, null, label));
62
- }));
62
+ return /* @__PURE__ */ jsxs(SliderMarker, { value, children: [
63
+ /* @__PURE__ */ jsx(SliderMarkerIndicator, {}),
64
+ label != null && /* @__PURE__ */ jsx(SliderMarkerLabel, { children: label })
65
+ ] }, index);
66
+ }) });
63
67
  }
64
68
  );
65
69
  const SliderControl = withContext(
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
3
  import { Splitter } from '@ark-ui/react/splitter';
3
4
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
4
5
 
@@ -28,7 +29,10 @@ const SplitterResizeTrigger = withContext(Splitter.ResizeTrigger, "resizeTrigger
28
29
  forwardAsChild: true,
29
30
  defaultProps: {
30
31
  "aria-label": "Resize",
31
- children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SplitterResizeTriggerSeparator, null), /* @__PURE__ */ React.createElement(SplitterResizeTriggerIndicator, null))
32
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
33
+ /* @__PURE__ */ jsx(SplitterResizeTriggerSeparator, {}),
34
+ /* @__PURE__ */ jsx(SplitterResizeTriggerIndicator, {})
35
+ ] })
32
36
  }
33
37
  });
34
38
  const SplitterContext = Splitter.Context;
@@ -1,11 +1,12 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { Box } from '../box/index.js';
4
5
 
5
6
  const Square = forwardRef(
6
7
  function Square2(props, ref) {
7
8
  const { size, ...rest } = props;
8
- return /* @__PURE__ */ React.createElement(
9
+ return /* @__PURE__ */ jsx(
9
10
  Box,
10
11
  {
11
12
  ...rest,
@@ -1,6 +1,4 @@
1
1
  import { mapObject } from '../../utils/walk-object.js';
2
- import 'react';
3
- import '../../utils/unit.js';
4
2
 
5
3
  function getSeparatorStyles(options) {
6
4
  const { gap, direction } = options;
@@ -1,10 +1,11 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { Stack } from './stack.js';
4
5
 
5
6
  const HStack = forwardRef(
6
7
  function HStack2(props, ref) {
7
- return /* @__PURE__ */ React.createElement(Stack, { align: "center", ...props, direction: "row", ref });
8
+ return /* @__PURE__ */ jsx(Stack, { align: "center", ...props, direction: "row", ref });
8
9
  }
9
10
  );
10
11
  HStack.displayName = "HStack";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef, useMemo, isValidElement, cloneElement, Fragment, Children } from 'react';
3
4
  import { mainbase } from '../../styled-system/factory.js';
4
5
  import { cx } from '../../utils/cx.js';
5
- import '../../utils/unit.js';
6
6
  import { getSeparatorStyles } from './get-separator-style.js';
7
7
 
8
8
  function getValidChildren(children) {
@@ -35,10 +35,13 @@ const Stack = forwardRef(
35
35
  const sep = cloneElement(typedSep, {
36
36
  css: [separatorStyle, typedSep.props.css]
37
37
  });
38
- return /* @__PURE__ */ React.createElement(Fragment, { key }, child, index === arr.length - 1 ? null : sep);
38
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
39
+ child,
40
+ index === arr.length - 1 ? null : sep
41
+ ] }, key);
39
42
  });
40
43
  }, [children, separator, separatorStyle]);
41
- return /* @__PURE__ */ React.createElement(
44
+ return /* @__PURE__ */ jsx(
42
45
  mainbase.div,
43
46
  {
44
47
  ref,
@@ -49,9 +52,9 @@ const Stack = forwardRef(
49
52
  flexWrap: wrap,
50
53
  gap: separator ? void 0 : gap,
51
54
  className: cx("mainbase-stack", className),
52
- ...rest
53
- },
54
- clones
55
+ ...rest,
56
+ children: clones
57
+ }
55
58
  );
56
59
  }
57
60
  );
@@ -1,10 +1,11 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef } from 'react';
3
4
  import { Stack } from './stack.js';
4
5
 
5
6
  const VStack = forwardRef(
6
7
  function VStack2(props, ref) {
7
- return /* @__PURE__ */ React.createElement(Stack, { align: "center", ...props, direction: "column", ref });
8
+ return /* @__PURE__ */ jsx(Stack, { align: "center", ...props, direction: "column", ref });
8
9
  }
9
10
  );
10
11
  VStack.displayName = "VStack";
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { forwardRef, useMemo } from 'react';
3
4
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
4
5
  import { mainbase } from '../../styled-system/factory.js';
@@ -35,14 +36,14 @@ const StatUpIndicator = withContext(
35
36
  {
36
37
  defaultProps: {
37
38
  "data-type": "up",
38
- children: /* @__PURE__ */ React.createElement(ArrowUpIcon, null)
39
+ children: /* @__PURE__ */ jsx(ArrowUpIcon, {})
39
40
  }
40
41
  }
41
42
  );
42
43
  const StatDownIndicator = withContext("span", "indicator", {
43
44
  defaultProps: {
44
45
  "data-type": "down",
45
- children: /* @__PURE__ */ React.createElement(ArrowDownIcon, null)
46
+ children: /* @__PURE__ */ jsx(ArrowDownIcon, {})
46
47
  }
47
48
  });
48
49
  const StatGroup = forwardRef(
@@ -52,7 +53,7 @@ const StatGroup = forwardRef(
52
53
  () => recipe.splitVariantProps(props),
53
54
  [props, recipe]
54
55
  );
55
- return /* @__PURE__ */ React.createElement(PropsProvider, { value: variantProps }, /* @__PURE__ */ React.createElement(
56
+ return /* @__PURE__ */ jsx(PropsProvider, { value: variantProps, children: /* @__PURE__ */ jsx(
56
57
  mainbase.div,
57
58
  {
58
59
  ref,
@@ -63,7 +64,7 @@ const StatGroup = forwardRef(
63
64
  alignItems: "flex-start",
64
65
  ...localProps
65
66
  }
66
- ));
67
+ ) });
67
68
  }
68
69
  );
69
70
 
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx, Fragment } from 'react/jsx-runtime';
2
3
  import { Steps } from '@ark-ui/react/steps';
3
4
  import { forwardRef } from 'react';
4
5
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
@@ -41,7 +42,7 @@ const StepsContent = withContext(
41
42
  const StepsCompletedContent = withContext(Steps.CompletedContent, "content");
42
43
  const StepsNumber = forwardRef(
43
44
  function StepsNumber2(props, ref) {
44
- return /* @__PURE__ */ React.createElement(Steps.ItemContext, null, (api) => /* @__PURE__ */ React.createElement(mainbase.div, { ref, ...props }, api.index + 1));
45
+ return /* @__PURE__ */ jsx(Steps.ItemContext, { children: (api) => /* @__PURE__ */ jsx(mainbase.div, { ref, ...props, children: api.index + 1 }) });
45
46
  }
46
47
  );
47
48
  const StepsTitle = withContext(
@@ -55,11 +56,11 @@ const StepsSeparator = withContext(
55
56
  { forwardAsChild: true }
56
57
  );
57
58
  const StepsStatus = (props) => {
58
- return /* @__PURE__ */ React.createElement(Steps.ItemContext, null, (api) => {
59
- if (api.current) return /* @__PURE__ */ React.createElement(React.Fragment, null, props.current ?? props.incomplete);
60
- if (api.completed) return /* @__PURE__ */ React.createElement(React.Fragment, null, props.complete);
61
- return /* @__PURE__ */ React.createElement(React.Fragment, null, props.incomplete ?? props.current);
62
- });
59
+ return /* @__PURE__ */ jsx(Steps.ItemContext, { children: (api) => {
60
+ if (api.current) return /* @__PURE__ */ jsx(Fragment, { children: props.current ?? props.incomplete });
61
+ if (api.completed) return /* @__PURE__ */ jsx(Fragment, { children: props.complete });
62
+ return /* @__PURE__ */ jsx(Fragment, { children: props.incomplete ?? props.current });
63
+ } });
63
64
  };
64
65
  const StepsIndicator = withContext(
65
66
  Steps.Indicator,
@@ -67,7 +68,7 @@ const StepsIndicator = withContext(
67
68
  {
68
69
  forwardAsChild: true,
69
70
  defaultProps: {
70
- children: /* @__PURE__ */ React.createElement(StepsStatus, { complete: /* @__PURE__ */ React.createElement(CheckIcon, null), incomplete: /* @__PURE__ */ React.createElement(StepsNumber, null) })
71
+ children: /* @__PURE__ */ jsx(StepsStatus, { complete: /* @__PURE__ */ jsx(CheckIcon, {}), incomplete: /* @__PURE__ */ jsx(StepsNumber, {}) })
71
72
  }
72
73
  }
73
74
  );
@@ -1,10 +1,10 @@
1
1
  "use client";
2
+ import { jsx } from 'react/jsx-runtime';
2
3
  import { Switch, useSwitchContext } from '@ark-ui/react/switch';
3
4
  import { forwardRef } from 'react';
4
5
  import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
5
6
  import { mainbase } from '../../styled-system/factory.js';
6
7
  import { dataAttr } from '../../utils/attr.js';
7
- import '../../utils/unit.js';
8
8
 
9
9
  const {
10
10
  withProvider,
@@ -34,28 +34,28 @@ const SwitchControl = withContext(
34
34
  "control",
35
35
  {
36
36
  forwardAsChild: true,
37
- defaultProps: { children: /* @__PURE__ */ React.createElement(SwitchThumb, null) }
37
+ defaultProps: { children: /* @__PURE__ */ jsx(SwitchThumb, {}) }
38
38
  }
39
39
  );
40
40
  const SwitchIndicator = forwardRef(function SwitchIndicator2(props, ref) {
41
41
  const api = useSwitchContext();
42
42
  const styles = useSwitchStyles();
43
43
  const { fallback, children, unstyled, ...rest } = props;
44
- return /* @__PURE__ */ React.createElement(
44
+ return /* @__PURE__ */ jsx(
45
45
  mainbase.span,
46
46
  {
47
47
  ref,
48
48
  "data-checked": dataAttr(api.checked),
49
49
  ...rest,
50
- css: [!unstyled ? styles.indicator : void 0, props.css]
51
- },
52
- api.checked ? children : fallback
50
+ css: [!unstyled ? styles.indicator : void 0, props.css],
51
+ children: api.checked ? children : fallback
52
+ }
53
53
  );
54
54
  });
55
55
  const SwitchThumbIndicator = forwardRef(function SwitchThumbIndicator2(props, ref) {
56
56
  const api = useSwitchContext();
57
57
  const { fallback, children, ...rest } = props;
58
- return /* @__PURE__ */ React.createElement(mainbase.span, { ref, "data-checked": dataAttr(api.checked), ...rest }, api.checked ? children : fallback);
58
+ return /* @__PURE__ */ jsx(mainbase.span, { ref, "data-checked": dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });
59
59
  });
60
60
  const SwitchContext = Switch.Context;
61
61
  const SwitchHiddenInput = Switch.HiddenInput;