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.
- package/README.md +12 -23
- package/dist/cjs/components/accordion/accordion.cjs +2 -1
- package/dist/cjs/components/alert/alert.cjs +7 -6
- package/dist/cjs/components/aspect-ratio/aspect-ratio.cjs +8 -8
- package/dist/cjs/components/avatar/avatar.cjs +16 -16
- package/dist/cjs/components/bleed/bleed.cjs +5 -4
- package/dist/cjs/components/breadcrumb/breadcrumb.cjs +3 -2
- package/dist/cjs/components/button/button-group.cjs +5 -4
- package/dist/cjs/components/button/button.cjs +16 -16
- package/dist/cjs/components/button/close-button.cjs +2 -1
- package/dist/cjs/components/button/icon-button.cjs +4 -3
- package/dist/cjs/components/carousel/carousel.cjs +13 -8
- package/dist/cjs/components/checkbox/checkbox.cjs +13 -12
- package/dist/cjs/components/checkbox-card/checkbox-card.cjs +6 -5
- package/dist/cjs/components/checkmark/checkmark.cjs +7 -7
- package/dist/cjs/components/circle/index.cjs +4 -3
- package/dist/cjs/components/client-only/client-only.cjs +5 -4
- package/dist/cjs/components/clipboard/clipboard.cjs +6 -5
- package/dist/cjs/components/code-block/code-block-adapter-provider.cjs +2 -1
- package/dist/cjs/components/code-block/code-block.cjs +43 -45
- package/dist/cjs/components/color-picker/color-picker.cjs +24 -13
- package/dist/cjs/components/color-swatch/index.cjs +9 -9
- package/dist/cjs/components/combobox/combobox.cjs +4 -3
- package/dist/cjs/components/date-picker/date-picker.cjs +39 -25
- package/dist/cjs/components/dialog/dialog.cjs +4 -3
- package/dist/cjs/components/drawer/drawer.cjs +4 -3
- package/dist/cjs/components/editable/editable.cjs +4 -3
- package/dist/cjs/components/field/field.cjs +7 -7
- package/dist/cjs/components/file-upload/file-upload.cjs +21 -13
- package/dist/cjs/components/flex/flex.cjs +4 -3
- package/dist/cjs/components/float/float.cjs +5 -5
- package/dist/cjs/components/floating-panel/floating-panel.cjs +2 -1
- package/dist/cjs/components/grid/grid-item.cjs +5 -5
- package/dist/cjs/components/grid/grid.cjs +4 -3
- package/dist/cjs/components/group/group.cjs +11 -11
- package/dist/cjs/components/highlight/highlight.cjs +5 -4
- package/dist/cjs/components/hover-card/hover-card.cjs +2 -1
- package/dist/cjs/components/icon/create-icon.cjs +7 -6
- package/dist/cjs/components/icon/icon.cjs +2 -2
- package/dist/cjs/components/icons.cjs +90 -75
- package/dist/cjs/components/image/image.cjs +4 -4
- package/dist/cjs/components/input-addon/input-addon.cjs +4 -3
- package/dist/cjs/components/input-group/input-group.cjs +20 -17
- package/dist/cjs/components/link/link-box.cjs +6 -6
- package/dist/cjs/components/listbox/listbox.cjs +2 -1
- package/dist/cjs/components/loader/loader.cjs +12 -4
- package/dist/cjs/components/menu/menu.cjs +3 -2
- package/dist/cjs/components/native-select/native-select.cjs +15 -13
- package/dist/cjs/components/number-input/number-input.cjs +7 -3
- package/dist/cjs/components/pagination/pagination.cjs +12 -11
- package/dist/cjs/components/popover/popover.cjs +2 -1
- package/dist/cjs/components/qr-code/qr-code.cjs +2 -1
- package/dist/cjs/components/radio-card/radio-card.cjs +10 -10
- package/dist/cjs/components/radio-group/radio-group.cjs +5 -4
- package/dist/cjs/components/radiomark/radiomark.cjs +4 -4
- package/dist/cjs/components/rating-group/rating-group.cjs +15 -12
- package/dist/cjs/components/scroll-area/scroll-area.cjs +2 -1
- package/dist/cjs/components/segment-group/segment-group.cjs +11 -8
- package/dist/cjs/components/select/select.cjs +4 -3
- package/dist/cjs/components/separator/separator.cjs +4 -4
- package/dist/cjs/components/show/show.cjs +3 -2
- package/dist/cjs/components/simple-grid/simple-grid.cjs +4 -4
- package/dist/cjs/components/skeleton/skeleton.cjs +6 -5
- package/dist/cjs/components/skip-nav/skip-nav-content.cjs +4 -3
- package/dist/cjs/components/skip-nav/skip-nav-link.cjs +4 -3
- package/dist/cjs/components/slider/slider.cjs +10 -6
- package/dist/cjs/components/splitter/splitter.cjs +5 -1
- package/dist/cjs/components/square/index.cjs +4 -3
- package/dist/cjs/components/stack/get-separator-style.cjs +0 -2
- package/dist/cjs/components/stack/h-stack.cjs +4 -3
- package/dist/cjs/components/stack/stack.cjs +17 -14
- package/dist/cjs/components/stack/v-stack.cjs +4 -3
- package/dist/cjs/components/stat/stat.cjs +8 -7
- package/dist/cjs/components/steps/steps.cjs +10 -9
- package/dist/cjs/components/switch/switch.cjs +10 -10
- package/dist/cjs/components/table/table.cjs +6 -6
- package/dist/cjs/components/tag/tag.cjs +2 -1
- package/dist/cjs/components/tags-input/tags-input.cjs +10 -3
- package/dist/cjs/components/theme.cjs +4 -4
- package/dist/cjs/components/toast/toast.cjs +5 -4
- package/dist/cjs/components/tooltip/tooltip.cjs +2 -1
- package/dist/cjs/components/tree-view/tree-view.cjs +20 -13
- package/dist/cjs/components/wrap/wrap.cjs +6 -6
- package/dist/cjs/hooks/index.cjs +5 -5
- package/dist/cjs/hooks/use-overlay.cjs +3 -3
- package/dist/cjs/index.cjs +21 -21
- package/dist/cjs/merge-props.cjs +0 -2
- package/dist/cjs/styled-system/breakpoints.cjs +0 -2
- package/dist/cjs/styled-system/calc.cjs +0 -2
- package/dist/cjs/styled-system/conditions.cjs +0 -2
- package/dist/cjs/styled-system/create-recipe-context.cjs +6 -6
- package/dist/cjs/styled-system/create-slot-recipe-context.cjs +12 -12
- package/dist/cjs/styled-system/css.cjs +1 -3
- package/dist/cjs/styled-system/cva.cjs +0 -2
- package/dist/cjs/styled-system/factory.cjs +19 -13
- package/dist/cjs/styled-system/merge-config.cjs +1 -3
- package/dist/cjs/styled-system/normalize.cjs +0 -2
- package/dist/cjs/styled-system/preflight.cjs +0 -2
- package/dist/cjs/styled-system/provider.cjs +6 -1
- package/dist/cjs/styled-system/recipe-props.cjs +2 -1
- package/dist/cjs/styled-system/references.cjs +0 -2
- package/dist/cjs/styled-system/serialize.cjs +1 -3
- package/dist/cjs/styled-system/sort-at-rules.cjs +0 -2
- package/dist/cjs/styled-system/sva.cjs +0 -2
- package/dist/cjs/styled-system/system.cjs +1 -3
- package/dist/cjs/styled-system/token-dictionary.cjs +2 -4
- package/dist/cjs/styled-system/token-middleware.cjs +0 -2
- package/dist/cjs/styled-system/use-resolved-props.cjs +0 -1
- package/dist/cjs/styled-system/utility.cjs +1 -3
- package/dist/cjs/theme/recipes/number-input.cjs +0 -2
- package/dist/cjs/theme/recipes/pin-input.cjs +0 -2
- package/dist/esm/components/accordion/accordion.js +2 -1
- package/dist/esm/components/alert/alert.js +4 -3
- package/dist/esm/components/aspect-ratio/aspect-ratio.js +5 -5
- package/dist/esm/components/avatar/avatar.js +11 -11
- package/dist/esm/components/bleed/bleed.js +3 -2
- package/dist/esm/components/breadcrumb/breadcrumb.js +3 -2
- package/dist/esm/components/button/button-group.js +2 -1
- package/dist/esm/components/button/button.js +13 -13
- package/dist/esm/components/button/close-button.js +2 -1
- package/dist/esm/components/button/icon-button.js +2 -1
- package/dist/esm/components/carousel/carousel.js +10 -5
- package/dist/esm/components/checkbox/checkbox.js +11 -10
- package/dist/esm/components/checkbox-card/checkbox-card.js +3 -2
- package/dist/esm/components/checkmark/checkmark.js +5 -5
- package/dist/esm/components/circle/index.js +2 -1
- package/dist/esm/components/client-only/client-only.js +2 -1
- package/dist/esm/components/clipboard/clipboard.js +4 -3
- package/dist/esm/components/code-block/code-block-adapter-provider.js +2 -1
- package/dist/esm/components/code-block/code-block.js +29 -31
- package/dist/esm/components/color-picker/color-picker.js +19 -8
- package/dist/esm/components/color-swatch/index.js +7 -7
- package/dist/esm/components/combobox/combobox.js +4 -3
- package/dist/esm/components/date-picker/date-picker.js +37 -23
- package/dist/esm/components/dialog/dialog.js +2 -1
- package/dist/esm/components/drawer/drawer.js +2 -1
- package/dist/esm/components/editable/editable.js +2 -1
- package/dist/esm/components/field/field.js +5 -5
- package/dist/esm/components/file-upload/file-upload.js +17 -9
- package/dist/esm/components/flex/flex.js +2 -1
- package/dist/esm/components/float/float.js +2 -2
- package/dist/esm/components/floating-panel/floating-panel.js +2 -1
- package/dist/esm/components/grid/grid-item.js +2 -2
- package/dist/esm/components/grid/grid.js +2 -1
- package/dist/esm/components/group/group.js +5 -5
- package/dist/esm/components/highlight/highlight.js +4 -3
- package/dist/esm/components/hover-card/hover-card.js +2 -1
- package/dist/esm/components/icon/create-icon.js +5 -4
- package/dist/esm/components/icon/icon.js +2 -2
- package/dist/esm/components/icons.js +90 -75
- package/dist/esm/components/image/image.js +2 -2
- package/dist/esm/components/input-addon/input-addon.js +2 -1
- package/dist/esm/components/input-group/input-group.js +17 -14
- package/dist/esm/components/link/link-box.js +3 -3
- package/dist/esm/components/listbox/listbox.js +2 -1
- package/dist/esm/components/loader/loader.js +12 -4
- package/dist/esm/components/menu/menu.js +3 -2
- package/dist/esm/components/native-select/native-select.js +13 -11
- package/dist/esm/components/number-input/number-input.js +7 -3
- package/dist/esm/components/pagination/pagination.js +9 -8
- package/dist/esm/components/popover/popover.js +2 -1
- package/dist/esm/components/qr-code/qr-code.js +2 -1
- package/dist/esm/components/radio-card/radio-card.js +7 -7
- package/dist/esm/components/radio-group/radio-group.js +3 -2
- package/dist/esm/components/radiomark/radiomark.js +2 -2
- package/dist/esm/components/rating-group/rating-group.js +11 -8
- package/dist/esm/components/scroll-area/scroll-area.js +2 -1
- package/dist/esm/components/segment-group/segment-group.js +9 -6
- package/dist/esm/components/select/select.js +4 -3
- package/dist/esm/components/separator/separator.js +2 -2
- package/dist/esm/components/show/show.js +2 -1
- package/dist/esm/components/simple-grid/simple-grid.js +2 -2
- package/dist/esm/components/skeleton/skeleton.js +6 -5
- package/dist/esm/components/skip-nav/skip-nav-content.js +2 -1
- package/dist/esm/components/skip-nav/skip-nav-link.js +2 -1
- package/dist/esm/components/slider/slider.js +8 -4
- package/dist/esm/components/splitter/splitter.js +5 -1
- package/dist/esm/components/square/index.js +2 -1
- package/dist/esm/components/stack/get-separator-style.js +0 -2
- package/dist/esm/components/stack/h-stack.js +2 -1
- package/dist/esm/components/stack/stack.js +9 -6
- package/dist/esm/components/stack/v-stack.js +2 -1
- package/dist/esm/components/stat/stat.js +5 -4
- package/dist/esm/components/steps/steps.js +8 -7
- package/dist/esm/components/switch/switch.js +7 -7
- package/dist/esm/components/table/table.js +3 -3
- package/dist/esm/components/tag/tag.js +2 -1
- package/dist/esm/components/tags-input/tags-input.js +10 -3
- package/dist/esm/components/theme.js +2 -2
- package/dist/esm/components/toast/toast.js +3 -2
- package/dist/esm/components/tooltip/tooltip.js +2 -1
- package/dist/esm/components/tree-view/tree-view.js +20 -13
- package/dist/esm/components/wrap/wrap.js +3 -3
- package/dist/esm/hooks/index.js +1 -1
- package/dist/esm/hooks/use-overlay.js +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/merge-props.js +0 -2
- package/dist/esm/styled-system/breakpoints.js +0 -2
- package/dist/esm/styled-system/calc.js +0 -2
- package/dist/esm/styled-system/conditions.js +0 -2
- package/dist/esm/styled-system/create-recipe-context.js +2 -2
- package/dist/esm/styled-system/create-slot-recipe-context.js +5 -5
- package/dist/esm/styled-system/css.js +1 -3
- package/dist/esm/styled-system/cva.js +0 -2
- package/dist/esm/styled-system/factory.js +19 -13
- package/dist/esm/styled-system/merge-config.js +1 -3
- package/dist/esm/styled-system/normalize.js +0 -2
- package/dist/esm/styled-system/preflight.js +0 -2
- package/dist/esm/styled-system/provider.js +6 -1
- package/dist/esm/styled-system/recipe-props.js +2 -1
- package/dist/esm/styled-system/references.js +0 -2
- package/dist/esm/styled-system/serialize.js +1 -3
- package/dist/esm/styled-system/sort-at-rules.js +0 -2
- package/dist/esm/styled-system/sva.js +0 -2
- package/dist/esm/styled-system/system.js +1 -3
- package/dist/esm/styled-system/token-dictionary.js +2 -4
- package/dist/esm/styled-system/token-middleware.js +0 -2
- package/dist/esm/styled-system/use-resolved-props.js +0 -1
- package/dist/esm/styled-system/utility.js +1 -3
- package/dist/esm/theme/recipes/number-input.js +0 -2
- package/dist/esm/theme/recipes/pin-input.js +0 -2
- package/package.json +3 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
var factory = require('../../styled-system/factory.cjs');
|
|
6
7
|
var cx = require('../../utils/cx.cjs');
|
|
7
|
-
require('../../utils/unit.cjs');
|
|
8
8
|
var getSeparatorStyle = require('./get-separator-style.cjs');
|
|
9
9
|
|
|
10
10
|
function getValidChildren(children) {
|
|
11
|
-
return React
|
|
12
|
-
(child) => React
|
|
11
|
+
return React.Children.toArray(children).filter(
|
|
12
|
+
(child) => React.isValidElement(child)
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
|
-
const Stack = React
|
|
15
|
+
const Stack = React.forwardRef(
|
|
16
16
|
function Stack2(props, ref) {
|
|
17
17
|
const {
|
|
18
18
|
direction = "column",
|
|
@@ -25,22 +25,25 @@ const Stack = React$1.forwardRef(
|
|
|
25
25
|
className,
|
|
26
26
|
...rest
|
|
27
27
|
} = props;
|
|
28
|
-
const separatorStyle = React
|
|
28
|
+
const separatorStyle = React.useMemo(
|
|
29
29
|
() => getSeparatorStyle.getSeparatorStyles({ gap, direction }),
|
|
30
30
|
[gap, direction]
|
|
31
31
|
);
|
|
32
|
-
const clones = React
|
|
33
|
-
if (!React
|
|
32
|
+
const clones = React.useMemo(() => {
|
|
33
|
+
if (!React.isValidElement(separator)) return children;
|
|
34
34
|
return getValidChildren(children).map((child, index, arr) => {
|
|
35
35
|
const key = typeof child.key !== "undefined" ? child.key : index;
|
|
36
36
|
const typedSep = separator;
|
|
37
|
-
const sep = React
|
|
37
|
+
const sep = React.cloneElement(typedSep, {
|
|
38
38
|
css: [separatorStyle, typedSep.props.css]
|
|
39
39
|
});
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
41
|
+
child,
|
|
42
|
+
index === arr.length - 1 ? null : sep
|
|
43
|
+
] }, key);
|
|
41
44
|
});
|
|
42
45
|
}, [children, separator, separatorStyle]);
|
|
43
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
47
|
factory.mainbase.div,
|
|
45
48
|
{
|
|
46
49
|
ref,
|
|
@@ -51,9 +54,9 @@ const Stack = React$1.forwardRef(
|
|
|
51
54
|
flexWrap: wrap,
|
|
52
55
|
gap: separator ? void 0 : gap,
|
|
53
56
|
className: cx.cx("mainbase-stack", className),
|
|
54
|
-
...rest
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
...rest,
|
|
58
|
+
children: clones
|
|
59
|
+
}
|
|
57
60
|
);
|
|
58
61
|
}
|
|
59
62
|
);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
var stack = require('./stack.cjs');
|
|
6
7
|
|
|
7
|
-
const VStack = React
|
|
8
|
+
const VStack = React.forwardRef(
|
|
8
9
|
function VStack2(props, ref) {
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx(stack.Stack, { align: "center", ...props, direction: "column", ref });
|
|
10
11
|
}
|
|
11
12
|
);
|
|
12
13
|
VStack.displayName = "VStack";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
var factory = require('../../styled-system/factory.cjs');
|
|
7
8
|
var useSlotRecipe = require('../../styled-system/use-slot-recipe.cjs');
|
|
@@ -37,24 +38,24 @@ const StatUpIndicator = withContext(
|
|
|
37
38
|
{
|
|
38
39
|
defaultProps: {
|
|
39
40
|
"data-type": "up",
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons.ArrowUpIcon, {})
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
);
|
|
44
45
|
const StatDownIndicator = withContext("span", "indicator", {
|
|
45
46
|
defaultProps: {
|
|
46
47
|
"data-type": "down",
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons.ArrowDownIcon, {})
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
|
-
const StatGroup = React
|
|
51
|
+
const StatGroup = React.forwardRef(
|
|
51
52
|
function StatGroup2(props, ref) {
|
|
52
53
|
const recipe = useSlotRecipe.useSlotRecipe({ key: "stat" });
|
|
53
|
-
const [variantProps, localProps] = React
|
|
54
|
+
const [variantProps, localProps] = React.useMemo(
|
|
54
55
|
() => recipe.splitVariantProps(props),
|
|
55
56
|
[props, recipe]
|
|
56
57
|
);
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PropsProvider, { value: variantProps, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
58
59
|
factory.mainbase.div,
|
|
59
60
|
{
|
|
60
61
|
ref,
|
|
@@ -65,7 +66,7 @@ const StatGroup = React$1.forwardRef(
|
|
|
65
66
|
alignItems: "flex-start",
|
|
66
67
|
...localProps
|
|
67
68
|
}
|
|
68
|
-
));
|
|
69
|
+
) });
|
|
69
70
|
}
|
|
70
71
|
);
|
|
71
72
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var steps = require('@ark-ui/react/steps');
|
|
5
|
-
var React
|
|
6
|
+
var React = require('react');
|
|
6
7
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
7
8
|
var factory = require('../../styled-system/factory.cjs');
|
|
8
9
|
var icons = require('../icons.cjs');
|
|
@@ -41,9 +42,9 @@ const StepsContent = withContext(
|
|
|
41
42
|
{ forwardAsChild: true }
|
|
42
43
|
);
|
|
43
44
|
const StepsCompletedContent = withContext(steps.Steps.CompletedContent, "content");
|
|
44
|
-
const StepsNumber = React
|
|
45
|
+
const StepsNumber = React.forwardRef(
|
|
45
46
|
function StepsNumber2(props, ref) {
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsx(steps.Steps.ItemContext, { children: (api) => /* @__PURE__ */ jsxRuntime.jsx(factory.mainbase.div, { ref, ...props, children: api.index + 1 }) });
|
|
47
48
|
}
|
|
48
49
|
);
|
|
49
50
|
const StepsTitle = withContext(
|
|
@@ -57,11 +58,11 @@ const StepsSeparator = withContext(
|
|
|
57
58
|
{ forwardAsChild: true }
|
|
58
59
|
);
|
|
59
60
|
const StepsStatus = (props) => {
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
if (api.current) return /* @__PURE__ */
|
|
62
|
-
if (api.completed) return /* @__PURE__ */
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
});
|
|
61
|
+
return /* @__PURE__ */ jsxRuntime.jsx(steps.Steps.ItemContext, { children: (api) => {
|
|
62
|
+
if (api.current) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.current ?? props.incomplete });
|
|
63
|
+
if (api.completed) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.complete });
|
|
64
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.incomplete ?? props.current });
|
|
65
|
+
} });
|
|
65
66
|
};
|
|
66
67
|
const StepsIndicator = withContext(
|
|
67
68
|
steps.Steps.Indicator,
|
|
@@ -69,7 +70,7 @@ const StepsIndicator = withContext(
|
|
|
69
70
|
{
|
|
70
71
|
forwardAsChild: true,
|
|
71
72
|
defaultProps: {
|
|
72
|
-
children: /* @__PURE__ */
|
|
73
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(StepsStatus, { complete: /* @__PURE__ */ jsxRuntime.jsx(icons.CheckIcon, {}), incomplete: /* @__PURE__ */ jsxRuntime.jsx(StepsNumber, {}) })
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var _switch = require('@ark-ui/react/switch');
|
|
5
|
-
var React
|
|
6
|
+
var React = require('react');
|
|
6
7
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
7
8
|
var factory = require('../../styled-system/factory.cjs');
|
|
8
9
|
var attr = require('../../utils/attr.cjs');
|
|
9
|
-
require('../../utils/unit.cjs');
|
|
10
10
|
|
|
11
11
|
const {
|
|
12
12
|
withProvider,
|
|
@@ -36,28 +36,28 @@ const SwitchControl = withContext(
|
|
|
36
36
|
"control",
|
|
37
37
|
{
|
|
38
38
|
forwardAsChild: true,
|
|
39
|
-
defaultProps: { children: /* @__PURE__ */
|
|
39
|
+
defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(SwitchThumb, {}) }
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
|
-
const SwitchIndicator = React
|
|
42
|
+
const SwitchIndicator = React.forwardRef(function SwitchIndicator2(props, ref) {
|
|
43
43
|
const api = _switch.useSwitchContext();
|
|
44
44
|
const styles = useSwitchStyles();
|
|
45
45
|
const { fallback, children, unstyled, ...rest } = props;
|
|
46
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47
47
|
factory.mainbase.span,
|
|
48
48
|
{
|
|
49
49
|
ref,
|
|
50
50
|
"data-checked": attr.dataAttr(api.checked),
|
|
51
51
|
...rest,
|
|
52
|
-
css: [!unstyled ? styles.indicator : void 0, props.css]
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
css: [!unstyled ? styles.indicator : void 0, props.css],
|
|
53
|
+
children: api.checked ? children : fallback
|
|
54
|
+
}
|
|
55
55
|
);
|
|
56
56
|
});
|
|
57
|
-
const SwitchThumbIndicator = React
|
|
57
|
+
const SwitchThumbIndicator = React.forwardRef(function SwitchThumbIndicator2(props, ref) {
|
|
58
58
|
const api = _switch.useSwitchContext();
|
|
59
59
|
const { fallback, children, ...rest } = props;
|
|
60
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.mainbase.span, { ref, "data-checked": attr.dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });
|
|
61
61
|
});
|
|
62
62
|
const SwitchContext = _switch.Switch.Context;
|
|
63
63
|
const SwitchHiddenInput = _switch.Switch.HiddenInput;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
var factory = require('../../styled-system/factory.cjs');
|
|
7
8
|
var cx = require('../../utils/cx.cjs');
|
|
8
|
-
require('../../utils/unit.cjs');
|
|
9
9
|
|
|
10
10
|
const {
|
|
11
11
|
StylesProvider,
|
|
@@ -15,10 +15,10 @@ const {
|
|
|
15
15
|
useStyles: useTableStyles,
|
|
16
16
|
PropsProvider
|
|
17
17
|
} = createSlotRecipeContext.createSlotRecipeContext({ key: "table" });
|
|
18
|
-
const TableRoot = React
|
|
18
|
+
const TableRoot = React.forwardRef(
|
|
19
19
|
function TableRoot2({ native, ...props }, ref) {
|
|
20
20
|
const { styles, props: rootProps, classNames } = useRecipeResult(props);
|
|
21
|
-
const rootCss = React
|
|
21
|
+
const rootCss = React.useMemo(() => {
|
|
22
22
|
if (!native) return styles.root;
|
|
23
23
|
return {
|
|
24
24
|
...styles.root,
|
|
@@ -31,7 +31,7 @@ const TableRoot = React$1.forwardRef(
|
|
|
31
31
|
"& caption": styles.caption
|
|
32
32
|
};
|
|
33
33
|
}, [styles, native]);
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsxRuntime.jsx(StylesProvider, { value: styles, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35
35
|
factory.mainbase.table,
|
|
36
36
|
{
|
|
37
37
|
ref,
|
|
@@ -39,7 +39,7 @@ const TableRoot = React$1.forwardRef(
|
|
|
39
39
|
css: [rootCss, props.css],
|
|
40
40
|
className: cx.cx(classNames?.["root"], props.className)
|
|
41
41
|
}
|
|
42
|
-
)));
|
|
42
|
+
) }) });
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
45
|
const TableRootPropsProvider = PropsProvider;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
5
6
|
var icons = require('../icons.cjs');
|
|
6
7
|
|
|
@@ -19,7 +20,7 @@ const TagLabel = withContext(
|
|
|
19
20
|
"span",
|
|
20
21
|
"label"
|
|
21
22
|
);
|
|
22
|
-
const TagCloseTrigger = withContext("button", "closeTrigger", { defaultProps: { children: /* @__PURE__ */
|
|
23
|
+
const TagCloseTrigger = withContext("button", "closeTrigger", { defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(icons.CloseIcon, {}) } });
|
|
23
24
|
const TagStartElement = withContext("span", "startElement");
|
|
24
25
|
const TagEndElement = withContext(
|
|
25
26
|
"span",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var tagsInput = require('@ark-ui/react/tags-input');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
var _for = require('../for/for.cjs');
|
|
@@ -30,17 +31,23 @@ const TagsInputItem = withContext(
|
|
|
30
31
|
const TagsInputItemText = withContext(tagsInput.TagsInput.ItemText, "itemText", { forwardAsChild: true });
|
|
31
32
|
const TagsInputItemDeleteTrigger = withContext(tagsInput.TagsInput.ItemDeleteTrigger, "itemDeleteTrigger", {
|
|
32
33
|
forwardAsChild: true,
|
|
33
|
-
defaultProps: { children: /* @__PURE__ */
|
|
34
|
+
defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(icons.CloseIcon, {}) }
|
|
34
35
|
});
|
|
35
36
|
const TagsInputItemPreview = withContext(tagsInput.TagsInput.ItemPreview, "itemPreview", { forwardAsChild: true });
|
|
36
37
|
const TagsInputItemInput = withContext(tagsInput.TagsInput.ItemInput, "itemInput", { forwardAsChild: true });
|
|
37
38
|
const TagsInputClearTrigger = withContext(tagsInput.TagsInput.ClearTrigger, "clearTrigger", {
|
|
38
39
|
forwardAsChild: true,
|
|
39
|
-
defaultProps: { children: /* @__PURE__ */
|
|
40
|
+
defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(icons.CloseIcon, {}) }
|
|
40
41
|
});
|
|
41
42
|
const TagsInputItems = (props) => {
|
|
42
43
|
const api = tagsInput.useTagsInputContext();
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx(_for.For, { each: api.value, children: (item, index) => /* @__PURE__ */ jsxRuntime.jsxs(TagsInputItem, { index, value: item, ...props, children: [
|
|
45
|
+
/* @__PURE__ */ jsxRuntime.jsxs(TagsInputItemPreview, { children: [
|
|
46
|
+
/* @__PURE__ */ jsxRuntime.jsx(TagsInputItemText, { children: item }),
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx(TagsInputItemDeleteTrigger, {})
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ jsxRuntime.jsx(TagsInputItemInput, {})
|
|
50
|
+
] }, index) });
|
|
44
51
|
};
|
|
45
52
|
const TagsInputContext = tagsInput.TagsInput.Context;
|
|
46
53
|
const TagsInputHiddenInput = tagsInput.TagsInput.HiddenInput;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
var factory = require('../styled-system/factory.cjs');
|
|
6
7
|
var cx = require('../utils/cx.cjs');
|
|
7
|
-
require('../utils/unit.cjs');
|
|
8
8
|
|
|
9
|
-
const Theme = React
|
|
9
|
+
const Theme = React.forwardRef(
|
|
10
10
|
function Theme2(props, ref) {
|
|
11
11
|
const {
|
|
12
12
|
appearance,
|
|
@@ -15,7 +15,7 @@ const Theme = React$1.forwardRef(
|
|
|
15
15
|
hasBackground = true,
|
|
16
16
|
...rest
|
|
17
17
|
} = props;
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
19
|
factory.mainbase.div,
|
|
20
20
|
{
|
|
21
21
|
color: "fg",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var toast = require('@ark-ui/react/toast');
|
|
5
|
-
var React
|
|
6
|
+
var React = require('react');
|
|
6
7
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
7
8
|
var factory = require('../../styled-system/factory.cjs');
|
|
8
9
|
var icons = require('../icons.cjs');
|
|
@@ -25,7 +26,7 @@ const ToastRoot = withProvider(
|
|
|
25
26
|
const ToastCloseTrigger = withContext(toast.Toast.CloseTrigger, "closeTrigger", {
|
|
26
27
|
forwardAsChild: true,
|
|
27
28
|
defaultProps: {
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons.CloseIcon, {})
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
const ToastTitle = withContext(
|
|
@@ -40,14 +41,14 @@ const iconMap = {
|
|
|
40
41
|
success: icons.CheckCircleIcon,
|
|
41
42
|
error: icons.WarningIcon
|
|
42
43
|
};
|
|
43
|
-
const ToastIndicator = React
|
|
44
|
+
const ToastIndicator = React.forwardRef(
|
|
44
45
|
function ToastIndicator2(props, ref) {
|
|
45
46
|
const { unstyled, ...restProps } = props;
|
|
46
47
|
const api = toast.useToastContext();
|
|
47
48
|
const styles = useToastStyles();
|
|
48
49
|
const Component = iconMap[api.type];
|
|
49
50
|
if (!Component) return null;
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
51
52
|
Component,
|
|
52
53
|
{
|
|
53
54
|
ref,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var tooltip = require('@ark-ui/react/tooltip');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
|
|
@@ -28,7 +29,7 @@ const TooltipArrowTip = withContext(tooltip.Tooltip.ArrowTip, "arrowTip", { forw
|
|
|
28
29
|
const TooltipArrow = withContext(
|
|
29
30
|
tooltip.Tooltip.Arrow,
|
|
30
31
|
"arrow",
|
|
31
|
-
{ forwardAsChild: true, defaultProps: { children: /* @__PURE__ */
|
|
32
|
+
{ forwardAsChild: true, defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipArrowTip, {}) } }
|
|
32
33
|
);
|
|
33
34
|
const TooltipContext = tooltip.Tooltip.Context;
|
|
34
35
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var react = require('@ark-ui/react');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
|
|
@@ -49,24 +50,30 @@ const TreeViewNodeCheckbox = withContext(react.TreeView.NodeCheckbox, "nodeCheck
|
|
|
49
50
|
function TreeViewNode(props) {
|
|
50
51
|
const { render, indentGuide, branchProps, branchContentProps } = props;
|
|
51
52
|
const tree = react.useTreeViewContext();
|
|
52
|
-
const renderNode = (node, indexPath) => /* @__PURE__ */
|
|
53
|
+
const renderNode = (node, indexPath) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
54
|
react.TreeView.NodeProvider,
|
|
54
55
|
{
|
|
55
|
-
key: indexPath.join("."),
|
|
56
56
|
node,
|
|
57
|
-
indexPath
|
|
57
|
+
indexPath,
|
|
58
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.TreeView.NodeContext, { children: (nodeState) => {
|
|
59
|
+
if (nodeState.isBranch) {
|
|
60
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TreeViewBranch, { ...branchProps, children: [
|
|
61
|
+
render({ node, indexPath, nodeState }),
|
|
62
|
+
/* @__PURE__ */ jsxRuntime.jsxs(TreeViewBranchContent, { ...branchContentProps, children: [
|
|
63
|
+
indentGuide,
|
|
64
|
+
tree.collection.getNodeChildren(node).map(
|
|
65
|
+
(child, index) => renderNode(child, [...indexPath, index])
|
|
66
|
+
)
|
|
67
|
+
] })
|
|
68
|
+
] });
|
|
69
|
+
} else {
|
|
70
|
+
return render({ node, indexPath, nodeState });
|
|
71
|
+
}
|
|
72
|
+
} })
|
|
58
73
|
},
|
|
59
|
-
|
|
60
|
-
if (nodeState.isBranch) {
|
|
61
|
-
return /* @__PURE__ */ React.createElement(TreeViewBranch, { ...branchProps }, render({ node, indexPath, nodeState }), /* @__PURE__ */ React.createElement(TreeViewBranchContent, { ...branchContentProps }, indentGuide, tree.collection.getNodeChildren(node).map(
|
|
62
|
-
(child, index) => renderNode(child, [...indexPath, index])
|
|
63
|
-
)));
|
|
64
|
-
} else {
|
|
65
|
-
return render({ node, indexPath, nodeState });
|
|
66
|
-
}
|
|
67
|
-
})
|
|
74
|
+
indexPath.join(".")
|
|
68
75
|
);
|
|
69
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: tree.collection.getNodeChildren(tree.collection.rootNode).map((node, index) => renderNode(node, [index])) });
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
exports.TreeViewBranch = TreeViewBranch;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
var config = require('../../styled-system/config.cjs');
|
|
6
7
|
var factory = require('../../styled-system/factory.cjs');
|
|
7
8
|
var cx = require('../../utils/cx.cjs');
|
|
8
|
-
require('../../utils/unit.cjs');
|
|
9
9
|
|
|
10
|
-
const Wrap = React
|
|
10
|
+
const Wrap = React.forwardRef(
|
|
11
11
|
function Wrap2(props, ref) {
|
|
12
12
|
const { gap = "0.5rem", justify, direction, align, ...rest } = props;
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14
14
|
factory.mainbase.div,
|
|
15
15
|
{
|
|
16
16
|
ref,
|
|
@@ -31,10 +31,10 @@ const itemStyle = config.defineStyle({
|
|
|
31
31
|
display: "flex",
|
|
32
32
|
alignItems: "flex-start"
|
|
33
33
|
});
|
|
34
|
-
const WrapItem = React
|
|
34
|
+
const WrapItem = React.forwardRef(
|
|
35
35
|
function WrapItem2(props, ref) {
|
|
36
36
|
const { css, ...rest } = props;
|
|
37
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
38
|
factory.mainbase.div,
|
|
39
39
|
{
|
|
40
40
|
ref,
|
package/dist/cjs/hooks/index.cjs
CHANGED
|
@@ -7,13 +7,13 @@ var useControllableState = require('./use-controllable-state.cjs');
|
|
|
7
7
|
var useDisclosure = require('./use-disclosure.cjs');
|
|
8
8
|
var useElementRect = require('./use-element-rect.cjs');
|
|
9
9
|
var useForceUpdate = require('./use-force-update.cjs');
|
|
10
|
-
var collection = require('@ark-ui/react/collection');
|
|
11
10
|
var useLiveRef = require('./use-live-ref.cjs');
|
|
12
11
|
var useMediaQuery = require('./use-media-query.cjs');
|
|
13
12
|
var useOverlay = require('./use-overlay.cjs');
|
|
14
13
|
var usePrevious = require('./use-previous.cjs');
|
|
15
14
|
var useSafeLayoutEffect = require('./use-safe-layout-effect.cjs');
|
|
16
15
|
var useUpdateEffect = require('./use-update-effect.cjs');
|
|
16
|
+
var collection = require('@ark-ui/react/collection');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -26,13 +26,13 @@ exports.useControllableState = useControllableState.useControllableState;
|
|
|
26
26
|
exports.useDisclosure = useDisclosure.useDisclosure;
|
|
27
27
|
exports.useElementRect = useElementRect.useElementRect;
|
|
28
28
|
exports.useForceUpdate = useForceUpdate.useForceUpdate;
|
|
29
|
-
Object.defineProperty(exports, "useListCollection", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return collection.useListCollection; }
|
|
32
|
-
});
|
|
33
29
|
exports.useLiveRef = useLiveRef.useLiveRef;
|
|
34
30
|
exports.useMediaQuery = useMediaQuery.useMediaQuery;
|
|
35
31
|
exports.createOverlay = useOverlay.createOverlay;
|
|
36
32
|
exports.usePrevious = usePrevious.usePrevious;
|
|
37
33
|
exports.useSafeLayoutEffect = useSafeLayoutEffect.useSafeLayoutEffect;
|
|
38
34
|
exports.useUpdateEffect = useUpdateEffect.useUpdateEffect;
|
|
35
|
+
Object.defineProperty(exports, "useListCollection", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return collection.useListCollection; }
|
|
38
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
var omit = require('../utils/omit.cjs');
|
|
5
|
-
require('../utils/unit.cjs');
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -150,7 +150,7 @@ function createOverlay(Component, options) {
|
|
|
150
150
|
setMounted(true);
|
|
151
151
|
}, []);
|
|
152
152
|
const open2 = mounted ? props.open ?? false : false;
|
|
153
|
-
return /* @__PURE__ */
|
|
153
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props, open: open2 });
|
|
154
154
|
}
|
|
155
155
|
function Viewport() {
|
|
156
156
|
const overlays = React__namespace.useSyncExternalStore(
|
|
@@ -158,7 +158,7 @@ function createOverlay(Component, options) {
|
|
|
158
158
|
getSnapshotForStore,
|
|
159
159
|
getSnapshotForStore
|
|
160
160
|
);
|
|
161
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: overlays.map(({ id, props }) => /* @__PURE__ */ jsxRuntime.jsx(OverlayViewportItem, { ...props }, id)) });
|
|
162
162
|
}
|
|
163
163
|
return {
|
|
164
164
|
Viewport,
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -236,7 +236,6 @@ var useControllableState = require('./hooks/use-controllable-state.cjs');
|
|
|
236
236
|
var useDisclosure = require('./hooks/use-disclosure.cjs');
|
|
237
237
|
var useElementRect = require('./hooks/use-element-rect.cjs');
|
|
238
238
|
var useForceUpdate = require('./hooks/use-force-update.cjs');
|
|
239
|
-
var collection = require('@ark-ui/react/collection');
|
|
240
239
|
var useLiveRef = require('./hooks/use-live-ref.cjs');
|
|
241
240
|
var useMediaQuery = require('./hooks/use-media-query.cjs');
|
|
242
241
|
var useOverlay = require('./hooks/use-overlay.cjs');
|
|
@@ -258,6 +257,7 @@ var system = require('./styled-system/system.cjs');
|
|
|
258
257
|
var useRecipe = require('./styled-system/use-recipe.cjs');
|
|
259
258
|
var useSlotRecipe = require('./styled-system/use-slot-recipe.cjs');
|
|
260
259
|
var useToken = require('./styled-system/use-token.cjs');
|
|
260
|
+
var collection = require('@ark-ui/react/collection');
|
|
261
261
|
var toast$1 = require('@ark-ui/react/toast');
|
|
262
262
|
var mergeConfig = require('./styled-system/merge-config.cjs');
|
|
263
263
|
var downloadTrigger = require('@ark-ui/react/download-trigger');
|
|
@@ -1619,26 +1619,6 @@ exports.useControllableState = useControllableState.useControllableState;
|
|
|
1619
1619
|
exports.useDisclosure = useDisclosure.useDisclosure;
|
|
1620
1620
|
exports.useElementRect = useElementRect.useElementRect;
|
|
1621
1621
|
exports.useForceUpdate = useForceUpdate.useForceUpdate;
|
|
1622
|
-
Object.defineProperty(exports, "createFileTreeCollection", {
|
|
1623
|
-
enumerable: true,
|
|
1624
|
-
get: function () { return collection.createFileTreeCollection; }
|
|
1625
|
-
});
|
|
1626
|
-
Object.defineProperty(exports, "createGridCollection", {
|
|
1627
|
-
enumerable: true,
|
|
1628
|
-
get: function () { return collection.createGridCollection; }
|
|
1629
|
-
});
|
|
1630
|
-
Object.defineProperty(exports, "createListCollection", {
|
|
1631
|
-
enumerable: true,
|
|
1632
|
-
get: function () { return collection.createListCollection; }
|
|
1633
|
-
});
|
|
1634
|
-
Object.defineProperty(exports, "createTreeCollection", {
|
|
1635
|
-
enumerable: true,
|
|
1636
|
-
get: function () { return collection.createTreeCollection; }
|
|
1637
|
-
});
|
|
1638
|
-
Object.defineProperty(exports, "useListCollection", {
|
|
1639
|
-
enumerable: true,
|
|
1640
|
-
get: function () { return collection.useListCollection; }
|
|
1641
|
-
});
|
|
1642
1622
|
exports.useLiveRef = useLiveRef.useLiveRef;
|
|
1643
1623
|
exports.useMediaQuery = useMediaQuery.useMediaQuery;
|
|
1644
1624
|
exports.createOverlay = useOverlay.createOverlay;
|
|
@@ -1676,6 +1656,26 @@ exports.isValidSystem = system.isValidSystem;
|
|
|
1676
1656
|
exports.useRecipe = useRecipe.useRecipe;
|
|
1677
1657
|
exports.useSlotRecipe = useSlotRecipe.useSlotRecipe;
|
|
1678
1658
|
exports.useToken = useToken.useToken;
|
|
1659
|
+
Object.defineProperty(exports, "createFileTreeCollection", {
|
|
1660
|
+
enumerable: true,
|
|
1661
|
+
get: function () { return collection.createFileTreeCollection; }
|
|
1662
|
+
});
|
|
1663
|
+
Object.defineProperty(exports, "createGridCollection", {
|
|
1664
|
+
enumerable: true,
|
|
1665
|
+
get: function () { return collection.createGridCollection; }
|
|
1666
|
+
});
|
|
1667
|
+
Object.defineProperty(exports, "createListCollection", {
|
|
1668
|
+
enumerable: true,
|
|
1669
|
+
get: function () { return collection.createListCollection; }
|
|
1670
|
+
});
|
|
1671
|
+
Object.defineProperty(exports, "createTreeCollection", {
|
|
1672
|
+
enumerable: true,
|
|
1673
|
+
get: function () { return collection.createTreeCollection; }
|
|
1674
|
+
});
|
|
1675
|
+
Object.defineProperty(exports, "useListCollection", {
|
|
1676
|
+
enumerable: true,
|
|
1677
|
+
get: function () { return collection.useListCollection; }
|
|
1678
|
+
});
|
|
1679
1679
|
Object.defineProperty(exports, "createToaster", {
|
|
1680
1680
|
enumerable: true,
|
|
1681
1681
|
get: function () { return toast$1.createToaster; }
|
package/dist/cjs/merge-props.cjs
CHANGED