mainbase-ui 3.36.0 → 3.37.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.
- package/README.md +9 -16
- 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,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var factory = require('../styled-system/factory.cjs');
|
|
5
6
|
|
|
6
7
|
const CheckIcon = (props) => {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
9
|
factory.mainbase.svg,
|
|
9
10
|
{
|
|
10
11
|
viewBox: "0 0 24 24",
|
|
@@ -13,12 +14,12 @@ const CheckIcon = (props) => {
|
|
|
13
14
|
strokeWidth: "2",
|
|
14
15
|
strokeLinecap: "round",
|
|
15
16
|
strokeLinejoin: "round",
|
|
16
|
-
...props
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
...props,
|
|
18
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
19
|
+
}
|
|
19
20
|
);
|
|
20
21
|
};
|
|
21
|
-
const ChevronLeftIcon = (props) => /* @__PURE__ */
|
|
22
|
+
const ChevronLeftIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
23
|
factory.mainbase.svg,
|
|
23
24
|
{
|
|
24
25
|
viewBox: "0 0 24 24",
|
|
@@ -27,11 +28,11 @@ const ChevronLeftIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
27
28
|
strokeWidth: "2",
|
|
28
29
|
strokeLinecap: "round",
|
|
29
30
|
strokeLinejoin: "round",
|
|
30
|
-
...props
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
...props,
|
|
32
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m15 18-6-6 6-6" })
|
|
33
|
+
}
|
|
33
34
|
);
|
|
34
|
-
const ChevronUpIcon = (props) => /* @__PURE__ */
|
|
35
|
+
const ChevronUpIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
35
36
|
factory.mainbase.svg,
|
|
36
37
|
{
|
|
37
38
|
viewBox: "0 0 24 24",
|
|
@@ -40,12 +41,12 @@ const ChevronUpIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
40
41
|
strokeWidth: "2",
|
|
41
42
|
strokeLinecap: "round",
|
|
42
43
|
strokeLinejoin: "round",
|
|
43
|
-
...props
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
...props,
|
|
45
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m18 15-6-6-6 6" })
|
|
46
|
+
}
|
|
46
47
|
);
|
|
47
48
|
const ChevronDownIcon = (props) => {
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
49
50
|
factory.mainbase.svg,
|
|
50
51
|
{
|
|
51
52
|
viewBox: "0 0 24 24",
|
|
@@ -54,12 +55,12 @@ const ChevronDownIcon = (props) => {
|
|
|
54
55
|
strokeWidth: "2",
|
|
55
56
|
strokeLinecap: "round",
|
|
56
57
|
strokeLinejoin: "round",
|
|
57
|
-
...props
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
...props,
|
|
59
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m6 9 6 6 6-6" })
|
|
60
|
+
}
|
|
60
61
|
);
|
|
61
62
|
};
|
|
62
|
-
const ChevronRightIcon = (props) => /* @__PURE__ */
|
|
63
|
+
const ChevronRightIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
63
64
|
factory.mainbase.svg,
|
|
64
65
|
{
|
|
65
66
|
viewBox: "0 0 24 24",
|
|
@@ -68,11 +69,11 @@ const ChevronRightIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
68
69
|
strokeWidth: "2",
|
|
69
70
|
strokeLinecap: "round",
|
|
70
71
|
strokeLinejoin: "round",
|
|
71
|
-
...props
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
...props,
|
|
73
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 18 6-6-6-6" })
|
|
74
|
+
}
|
|
74
75
|
);
|
|
75
|
-
const EllpsisIcon = (props) => /* @__PURE__ */
|
|
76
|
+
const EllpsisIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
76
77
|
factory.mainbase.svg,
|
|
77
78
|
{
|
|
78
79
|
viewBox: "0 0 24 24",
|
|
@@ -81,13 +82,15 @@ const EllpsisIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
81
82
|
strokeWidth: "2",
|
|
82
83
|
strokeLinecap: "round",
|
|
83
84
|
strokeLinejoin: "round",
|
|
84
|
-
...props
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
...props,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "1" }),
|
|
88
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "19", cy: "12", r: "1" }),
|
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "5", cy: "12", r: "1" })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
89
92
|
);
|
|
90
|
-
const ArrowUpIcon = (props) => /* @__PURE__ */
|
|
93
|
+
const ArrowUpIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
91
94
|
factory.mainbase.svg,
|
|
92
95
|
{
|
|
93
96
|
viewBox: "0 0 24 24",
|
|
@@ -96,12 +99,14 @@ const ArrowUpIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
96
99
|
strokeWidth: "3",
|
|
97
100
|
strokeLinecap: "round",
|
|
98
101
|
strokeLinejoin: "round",
|
|
99
|
-
...props
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
...props,
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m5 12 7-7 7 7" }),
|
|
105
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 19V5" })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
103
108
|
);
|
|
104
|
-
const ArrowDownIcon = (props) => /* @__PURE__ */
|
|
109
|
+
const ArrowDownIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
105
110
|
factory.mainbase.svg,
|
|
106
111
|
{
|
|
107
112
|
viewBox: "0 0 24 24",
|
|
@@ -110,56 +115,58 @@ const ArrowDownIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
110
115
|
strokeWidth: "3",
|
|
111
116
|
strokeLinecap: "round",
|
|
112
117
|
strokeLinejoin: "round",
|
|
113
|
-
...props
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
...props,
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 5v14" }),
|
|
121
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m19 12-7 7-7-7" })
|
|
122
|
+
]
|
|
123
|
+
}
|
|
117
124
|
);
|
|
118
|
-
const CheckCircleIcon = (props) => /* @__PURE__ */
|
|
125
|
+
const CheckCircleIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
126
|
factory.mainbase.svg,
|
|
120
127
|
{
|
|
121
128
|
stroke: "currentColor",
|
|
122
129
|
fill: "currentColor",
|
|
123
130
|
strokeWidth: "0",
|
|
124
131
|
viewBox: "0 0 24 24",
|
|
125
|
-
...props
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
...props,
|
|
133
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" })
|
|
134
|
+
}
|
|
128
135
|
);
|
|
129
|
-
const WarningIcon = (props) => /* @__PURE__ */
|
|
136
|
+
const WarningIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
130
137
|
factory.mainbase.svg,
|
|
131
138
|
{
|
|
132
139
|
stroke: "currentColor",
|
|
133
140
|
fill: "currentColor",
|
|
134
141
|
strokeWidth: "0",
|
|
135
142
|
viewBox: "0 0 24 24",
|
|
136
|
-
...props
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
...props,
|
|
144
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })
|
|
145
|
+
}
|
|
139
146
|
);
|
|
140
|
-
const InfoIcon = (props) => /* @__PURE__ */
|
|
147
|
+
const InfoIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
141
148
|
factory.mainbase.svg,
|
|
142
149
|
{
|
|
143
150
|
viewBox: "0 0 24 24",
|
|
144
151
|
fill: "currentColor",
|
|
145
152
|
stroke: "currentColor",
|
|
146
153
|
strokeWidth: "0",
|
|
147
|
-
...props
|
|
148
|
-
|
|
149
|
-
|
|
154
|
+
...props,
|
|
155
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })
|
|
156
|
+
}
|
|
150
157
|
);
|
|
151
|
-
const QuoteIcon = (props) => /* @__PURE__ */
|
|
152
|
-
const StarIcon = (props) => /* @__PURE__ */
|
|
153
|
-
const ErrorIcon = (props) => /* @__PURE__ */
|
|
154
|
-
const CloseIcon = (props) => /* @__PURE__ */
|
|
158
|
+
const QuoteIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(factory.mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.5 10c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.318.142-.686.238-1.028.466-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.945-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 6.5 10zm11 0c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.317.143-.686.238-1.028.467-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.944-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 17.5 10z" }) });
|
|
159
|
+
const StarIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(factory.mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" }) });
|
|
160
|
+
const ErrorIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(factory.mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z" }) });
|
|
161
|
+
const CloseIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(factory.mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
155
162
|
"path",
|
|
156
163
|
{
|
|
157
164
|
fillRule: "evenodd",
|
|
158
165
|
clipRule: "evenodd",
|
|
159
166
|
d: "M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"
|
|
160
167
|
}
|
|
161
|
-
));
|
|
162
|
-
const FileIcon = (props) => /* @__PURE__ */
|
|
168
|
+
) });
|
|
169
|
+
const FileIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
163
170
|
factory.mainbase.svg,
|
|
164
171
|
{
|
|
165
172
|
stroke: "currentColor",
|
|
@@ -168,12 +175,14 @@ const FileIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
168
175
|
viewBox: "0 0 24 24",
|
|
169
176
|
strokeLinecap: "round",
|
|
170
177
|
strokeLinejoin: "round",
|
|
171
|
-
...props
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
...props,
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
181
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
175
184
|
);
|
|
176
|
-
const CopyIcon = (props) => /* @__PURE__ */
|
|
185
|
+
const CopyIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
177
186
|
factory.mainbase.svg,
|
|
178
187
|
{
|
|
179
188
|
stroke: "currentColor",
|
|
@@ -182,12 +191,14 @@ const CopyIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
182
191
|
viewBox: "0 0 24 24",
|
|
183
192
|
strokeLinecap: "round",
|
|
184
193
|
strokeLinejoin: "round",
|
|
185
|
-
...props
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
194
|
+
...props,
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
197
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
198
|
+
]
|
|
199
|
+
}
|
|
189
200
|
);
|
|
190
|
-
const PipetteIcon = (props) => /* @__PURE__ */
|
|
201
|
+
const PipetteIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
191
202
|
factory.mainbase.svg,
|
|
192
203
|
{
|
|
193
204
|
stroke: "currentColor",
|
|
@@ -196,13 +207,15 @@ const PipetteIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
196
207
|
viewBox: "0 0 24 24",
|
|
197
208
|
strokeLinecap: "round",
|
|
198
209
|
strokeLinejoin: "round",
|
|
199
|
-
...props
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
210
|
+
...props,
|
|
211
|
+
children: [
|
|
212
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m2 22 1-1h3l9-9" }),
|
|
213
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 21v-3l9-9" }),
|
|
214
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" })
|
|
215
|
+
]
|
|
216
|
+
}
|
|
204
217
|
);
|
|
205
|
-
const EllipsisIcon = (props) => /* @__PURE__ */
|
|
218
|
+
const EllipsisIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
206
219
|
factory.mainbase.svg,
|
|
207
220
|
{
|
|
208
221
|
stroke: "currentColor",
|
|
@@ -211,11 +224,13 @@ const EllipsisIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
211
224
|
viewBox: "0 0 24 24",
|
|
212
225
|
strokeLinecap: "round",
|
|
213
226
|
strokeLinejoin: "round",
|
|
214
|
-
...props
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
227
|
+
...props,
|
|
228
|
+
children: [
|
|
229
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "1" }),
|
|
230
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "19", cy: "12", r: "1" }),
|
|
231
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "5", cy: "12", r: "1" })
|
|
232
|
+
]
|
|
233
|
+
}
|
|
219
234
|
);
|
|
220
235
|
|
|
221
236
|
exports.ArrowDownIcon = ArrowDownIcon;
|
|
@@ -1,15 +1,15 @@
|
|
|
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 Image = React
|
|
9
|
+
const Image = React.forwardRef(
|
|
10
10
|
function Image2(props, ref) {
|
|
11
11
|
const { align, fit = "cover", ...rest } = props;
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
13
|
factory.mainbase.img,
|
|
14
14
|
{
|
|
15
15
|
ref,
|
|
@@ -1,17 +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 empty = require('../../styled-system/empty.cjs');
|
|
6
7
|
var factory = require('../../styled-system/factory.cjs');
|
|
7
8
|
var useRecipe = require('../../styled-system/use-recipe.cjs');
|
|
8
9
|
|
|
9
|
-
const InputAddon = React
|
|
10
|
+
const InputAddon = React.forwardRef(
|
|
10
11
|
function InputAddon2({ unstyled, ...props }, ref) {
|
|
11
12
|
const recipe = useRecipe.useRecipe({ key: "inputAddon", recipe: props.recipe });
|
|
12
13
|
const [variantProps, localProps] = recipe.splitVariantProps(props);
|
|
13
14
|
const styles = unstyled ? empty.EMPTY_SLOT_STYLES : recipe(variantProps);
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.mainbase.div, { ref, ...localProps, css: [styles, props.css] });
|
|
15
16
|
}
|
|
16
17
|
);
|
|
17
18
|
|
|
@@ -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 group = require('../group/group.cjs');
|
|
6
7
|
var inputAddon = require('../input-addon/input-addon.cjs');
|
|
7
8
|
var inputElement = require('../input-element/input-element.cjs');
|
|
8
9
|
|
|
9
|
-
const InputGroup = React
|
|
10
|
+
const InputGroup = React.forwardRef(
|
|
10
11
|
function InputGroup2(props, ref) {
|
|
11
12
|
const {
|
|
12
13
|
startElement,
|
|
@@ -22,28 +23,30 @@ const InputGroup = React$1.forwardRef(
|
|
|
22
23
|
endOffset = "0px",
|
|
23
24
|
...rest
|
|
24
25
|
} = props;
|
|
25
|
-
const child = React
|
|
26
|
+
const child = React.Children.only(children);
|
|
26
27
|
const attached = Boolean(startAddon || endAddon);
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
28
29
|
group.Group,
|
|
29
30
|
{
|
|
30
31
|
width: "full",
|
|
31
32
|
ref,
|
|
32
33
|
attached,
|
|
33
34
|
skip: (el) => el.type === inputElement.InputElement,
|
|
34
|
-
...rest
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
...rest,
|
|
36
|
+
children: [
|
|
37
|
+
startAddon && /* @__PURE__ */ jsxRuntime.jsx(inputAddon.InputAddon, { ...startAddonProps, children: startAddon }),
|
|
38
|
+
startElement && /* @__PURE__ */ jsxRuntime.jsx(inputElement.InputElement, { pointerEvents: "none", ...startElementProps, children: startElement }),
|
|
39
|
+
React.cloneElement(child, {
|
|
40
|
+
...startElement && {
|
|
41
|
+
ps: `calc(var(--input-height) - ${startOffset})`
|
|
42
|
+
},
|
|
43
|
+
...endElement && { pe: `calc(var(--input-height) - ${endOffset})` },
|
|
44
|
+
...children.props
|
|
45
|
+
}),
|
|
46
|
+
endElement && /* @__PURE__ */ jsxRuntime.jsx(inputElement.InputElement, { placement: "end", ...endElementProps, children: endElement }),
|
|
47
|
+
endAddon && /* @__PURE__ */ jsxRuntime.jsx(inputAddon.InputAddon, { ...endAddonProps, children: endAddon })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
47
50
|
);
|
|
48
51
|
}
|
|
49
52
|
);
|
|
@@ -1,15 +1,15 @@
|
|
|
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 LinkOverlay = React
|
|
9
|
+
const LinkOverlay = React.forwardRef(
|
|
10
10
|
function LinkOverlay2(props, ref) {
|
|
11
11
|
const { className, ...rest } = props;
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
13
|
factory.mainbase.a,
|
|
14
14
|
{
|
|
15
15
|
...rest,
|
|
@@ -36,10 +36,10 @@ const LinkOverlay = React$1.forwardRef(
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
const LinkBox = React
|
|
39
|
+
const LinkBox = React.forwardRef(
|
|
40
40
|
function LinkBox2(props, ref) {
|
|
41
41
|
const { className, ...rest } = props;
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
43
|
factory.mainbase.div,
|
|
44
44
|
{
|
|
45
45
|
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 listbox = require('@ark-ui/react/listbox');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
var icons = require('../icons.cjs');
|
|
@@ -44,7 +45,7 @@ const ListboxItemText = withContext(listbox.Listbox.ItemText, "itemText", { forw
|
|
|
44
45
|
const ListboxItemIndicator = withContext(listbox.Listbox.ItemIndicator, "itemIndicator", {
|
|
45
46
|
forwardAsChild: true,
|
|
46
47
|
defaultProps: {
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons.CheckIcon, {})
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
51
|
const ListboxLabel = withContext(
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
var absoluteCenter = require('../absolute-center/absolute-center.cjs');
|
|
5
6
|
var index = require('../span/index.cjs');
|
|
@@ -27,7 +28,7 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
27
28
|
const Loader = React__namespace.forwardRef(
|
|
28
29
|
function Loader2(props, ref) {
|
|
29
30
|
const {
|
|
30
|
-
spinner: spinner$1 = /* @__PURE__ */
|
|
31
|
+
spinner: spinner$1 = /* @__PURE__ */ jsxRuntime.jsx(spinner.Spinner, { size: "inherit", borderWidth: "0.125em", color: "inherit" }),
|
|
31
32
|
spinnerPlacement = "start",
|
|
32
33
|
children,
|
|
33
34
|
text,
|
|
@@ -36,12 +37,19 @@ const Loader = React__namespace.forwardRef(
|
|
|
36
37
|
} = props;
|
|
37
38
|
if (!visible) return children;
|
|
38
39
|
if (text) {
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(index.Span, { ref, display: "contents", ...rest, children: [
|
|
41
|
+
spinnerPlacement === "start" && spinner$1,
|
|
42
|
+
text,
|
|
43
|
+
spinnerPlacement === "end" && spinner$1
|
|
44
|
+
] });
|
|
40
45
|
}
|
|
41
46
|
if (spinner$1) {
|
|
42
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(index.Span, { ref, display: "contents", ...rest, children: [
|
|
48
|
+
/* @__PURE__ */ jsxRuntime.jsx(absoluteCenter.AbsoluteCenter, { display: "inline-flex", children: spinner$1 }),
|
|
49
|
+
/* @__PURE__ */ jsxRuntime.jsx(index.Span, { visibility: "hidden", display: "contents", children })
|
|
50
|
+
] });
|
|
43
51
|
}
|
|
44
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Span, { ref, display: "contents", ...rest, children });
|
|
45
53
|
}
|
|
46
54
|
);
|
|
47
55
|
Loader.displayName = "Loader";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var menu = require('@ark-ui/react/menu');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
var icons = require('../icons.cjs');
|
|
@@ -47,7 +48,7 @@ const MenuArrowTip = withContext(
|
|
|
47
48
|
const MenuArrow = withContext(
|
|
48
49
|
menu.Menu.Arrow,
|
|
49
50
|
"arrow",
|
|
50
|
-
{ forwardAsChild: true, defaultProps: { children: /* @__PURE__ */
|
|
51
|
+
{ forwardAsChild: true, defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(MenuArrowTip, {}) } }
|
|
51
52
|
);
|
|
52
53
|
const MenuIndicator = withContext(
|
|
53
54
|
menu.Menu.Indicator,
|
|
@@ -77,7 +78,7 @@ const MenuItemCommand = withContext(
|
|
|
77
78
|
);
|
|
78
79
|
const MenuItemIndicator = withContext(menu.Menu.ItemIndicator, "itemIndicator", {
|
|
79
80
|
forwardAsChild: true,
|
|
80
|
-
defaultProps: { children: /* @__PURE__ */
|
|
81
|
+
defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(icons.CheckIcon, { boxSize: "4" }) }
|
|
81
82
|
});
|
|
82
83
|
const MenuCheckboxItem = withContext(menu.Menu.CheckboxItem, "item", { forwardAsChild: true });
|
|
83
84
|
const MenuRadioItemGroup = withContext(menu.Menu.RadioItemGroup, "itemGroup", { forwardAsChild: true });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var field = require('@ark-ui/react/field');
|
|
5
|
-
var React
|
|
6
|
+
var React = require('react');
|
|
6
7
|
var createContext = require('../../create-context.cjs');
|
|
7
8
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
8
9
|
var factory = require('../../styled-system/factory.cjs');
|
|
9
10
|
var attr = require('../../utils/attr.cjs');
|
|
10
11
|
var cx = require('../../utils/cx.cjs');
|
|
11
|
-
require('../../utils/unit.cjs');
|
|
12
12
|
var icons = require('../icons.cjs');
|
|
13
13
|
|
|
14
14
|
const [NativeSelectBasePropsProvider, useNativeSelectBaseProps] = createContext.createContext({
|
|
@@ -28,17 +28,17 @@ const NativeSelectRoot = withProvider("div", "root", {
|
|
|
28
28
|
const field$1 = field.useFieldContext();
|
|
29
29
|
const disabled = Boolean(field$1?.disabled ?? props.disabled);
|
|
30
30
|
const invalid = Boolean(field$1?.invalid ?? props.invalid);
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NativeSelectBasePropsProvider, { value: { disabled, invalid }, children: element });
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
const NativeSelectPropsProvider = PropsProvider;
|
|
35
35
|
const StyledSelect = factory.mainbase(field.Field.Select, {}, { forwardAsChild: true });
|
|
36
|
-
const NativeSelectField = React
|
|
36
|
+
const NativeSelectField = React.forwardRef(function NativeSelectField2(props, ref) {
|
|
37
37
|
const { children, placeholder, unstyled, ...restProps } = props;
|
|
38
38
|
const { disabled, invalid } = useNativeSelectBaseProps();
|
|
39
39
|
const styles = useNativeSelectStyles();
|
|
40
40
|
const classNames = useClassNames();
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
42
42
|
StyledSelect,
|
|
43
43
|
{
|
|
44
44
|
disabled,
|
|
@@ -46,10 +46,12 @@ const NativeSelectField = React$1.forwardRef(function NativeSelectField2(props,
|
|
|
46
46
|
...restProps,
|
|
47
47
|
ref,
|
|
48
48
|
className: cx.cx(classNames.field, props.className),
|
|
49
|
-
css: [!unstyled ? styles.field : void 0, props.css]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
css: [!unstyled ? styles.field : void 0, props.css],
|
|
50
|
+
children: [
|
|
51
|
+
placeholder && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: placeholder }),
|
|
52
|
+
children
|
|
53
|
+
]
|
|
54
|
+
}
|
|
53
55
|
);
|
|
54
56
|
});
|
|
55
57
|
function NativeSelectIndicator(props) {
|
|
@@ -57,16 +59,16 @@ function NativeSelectIndicator(props) {
|
|
|
57
59
|
const styles = useNativeSelectStyles();
|
|
58
60
|
const { disabled, invalid } = useNativeSelectBaseProps();
|
|
59
61
|
const classNames = useClassNames();
|
|
60
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
61
63
|
factory.mainbase.div,
|
|
62
64
|
{
|
|
63
65
|
...restProps,
|
|
64
66
|
"data-disabled": attr.dataAttr(disabled),
|
|
65
67
|
"data-invalid": attr.dataAttr(invalid),
|
|
66
68
|
className: cx.cx(classNames.indicator, props.className),
|
|
67
|
-
css: [!unstyled ? styles.indicator : void 0, props.css]
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
css: [!unstyled ? styles.indicator : void 0, props.css],
|
|
70
|
+
children: props.children ?? /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {})
|
|
71
|
+
}
|
|
70
72
|
);
|
|
71
73
|
}
|
|
72
74
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
var numberInput = require('@ark-ui/react/number-input');
|
|
5
6
|
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');
|
|
6
7
|
var icons = require('../icons.cjs');
|
|
@@ -18,16 +19,19 @@ const NumberInputLabel = withContext(numberInput.NumberInput.Label, "label", { f
|
|
|
18
19
|
const NumberInputInput = withContext(numberInput.NumberInput.Input, "input", { forwardAsChild: true });
|
|
19
20
|
const NumberInputIncrementTrigger = withContext(numberInput.NumberInput.IncrementTrigger, "incrementTrigger", {
|
|
20
21
|
forwardAsChild: true,
|
|
21
|
-
defaultProps: { children: /* @__PURE__ */
|
|
22
|
+
defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronUpIcon, {}) }
|
|
22
23
|
});
|
|
23
24
|
const NumberInputDecrementTrigger = withContext(numberInput.NumberInput.DecrementTrigger, "decrementTrigger", {
|
|
24
25
|
forwardAsChild: true,
|
|
25
|
-
defaultProps: { children: /* @__PURE__ */
|
|
26
|
+
defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {}) }
|
|
26
27
|
});
|
|
27
28
|
const NumberInputControl = withContext(numberInput.NumberInput.Control, "control", {
|
|
28
29
|
forwardAsChild: true,
|
|
29
30
|
defaultProps: {
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx(NumberInputIncrementTrigger, {}),
|
|
33
|
+
/* @__PURE__ */ jsxRuntime.jsx(NumberInputDecrementTrigger, {})
|
|
34
|
+
] })
|
|
31
35
|
}
|
|
32
36
|
});
|
|
33
37
|
const NumberInputScrubber = withContext(numberInput.NumberInput.Scrubber, "scrubber", { forwardAsChild: true });
|