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,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
3
|
import { mainbase } from '../styled-system/factory.js';
|
|
3
4
|
|
|
4
5
|
const CheckIcon = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
6
7
|
mainbase.svg,
|
|
7
8
|
{
|
|
8
9
|
viewBox: "0 0 24 24",
|
|
@@ -11,12 +12,12 @@ const CheckIcon = (props) => {
|
|
|
11
12
|
strokeWidth: "2",
|
|
12
13
|
strokeLinecap: "round",
|
|
13
14
|
strokeLinejoin: "round",
|
|
14
|
-
...props
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
...props,
|
|
16
|
+
children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
17
|
+
}
|
|
17
18
|
);
|
|
18
19
|
};
|
|
19
|
-
const ChevronLeftIcon = (props) => /* @__PURE__ */
|
|
20
|
+
const ChevronLeftIcon = (props) => /* @__PURE__ */ jsx(
|
|
20
21
|
mainbase.svg,
|
|
21
22
|
{
|
|
22
23
|
viewBox: "0 0 24 24",
|
|
@@ -25,11 +26,11 @@ const ChevronLeftIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
25
26
|
strokeWidth: "2",
|
|
26
27
|
strokeLinecap: "round",
|
|
27
28
|
strokeLinejoin: "round",
|
|
28
|
-
...props
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
...props,
|
|
30
|
+
children: /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" })
|
|
31
|
+
}
|
|
31
32
|
);
|
|
32
|
-
const ChevronUpIcon = (props) => /* @__PURE__ */
|
|
33
|
+
const ChevronUpIcon = (props) => /* @__PURE__ */ jsx(
|
|
33
34
|
mainbase.svg,
|
|
34
35
|
{
|
|
35
36
|
viewBox: "0 0 24 24",
|
|
@@ -38,12 +39,12 @@ const ChevronUpIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
38
39
|
strokeWidth: "2",
|
|
39
40
|
strokeLinecap: "round",
|
|
40
41
|
strokeLinejoin: "round",
|
|
41
|
-
...props
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
...props,
|
|
43
|
+
children: /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" })
|
|
44
|
+
}
|
|
44
45
|
);
|
|
45
46
|
const ChevronDownIcon = (props) => {
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
47
48
|
mainbase.svg,
|
|
48
49
|
{
|
|
49
50
|
viewBox: "0 0 24 24",
|
|
@@ -52,12 +53,12 @@ const ChevronDownIcon = (props) => {
|
|
|
52
53
|
strokeWidth: "2",
|
|
53
54
|
strokeLinecap: "round",
|
|
54
55
|
strokeLinejoin: "round",
|
|
55
|
-
...props
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
...props,
|
|
57
|
+
children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
|
|
58
|
+
}
|
|
58
59
|
);
|
|
59
60
|
};
|
|
60
|
-
const ChevronRightIcon = (props) => /* @__PURE__ */
|
|
61
|
+
const ChevronRightIcon = (props) => /* @__PURE__ */ jsx(
|
|
61
62
|
mainbase.svg,
|
|
62
63
|
{
|
|
63
64
|
viewBox: "0 0 24 24",
|
|
@@ -66,11 +67,11 @@ const ChevronRightIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
66
67
|
strokeWidth: "2",
|
|
67
68
|
strokeLinecap: "round",
|
|
68
69
|
strokeLinejoin: "round",
|
|
69
|
-
...props
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
...props,
|
|
71
|
+
children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
|
|
72
|
+
}
|
|
72
73
|
);
|
|
73
|
-
const EllpsisIcon = (props) => /* @__PURE__ */
|
|
74
|
+
const EllpsisIcon = (props) => /* @__PURE__ */ jsxs(
|
|
74
75
|
mainbase.svg,
|
|
75
76
|
{
|
|
76
77
|
viewBox: "0 0 24 24",
|
|
@@ -79,13 +80,15 @@ const EllpsisIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
79
80
|
strokeWidth: "2",
|
|
80
81
|
strokeLinecap: "round",
|
|
81
82
|
strokeLinejoin: "round",
|
|
82
|
-
...props
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
...props,
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" }),
|
|
86
|
+
/* @__PURE__ */ jsx("circle", { cx: "19", cy: "12", r: "1" }),
|
|
87
|
+
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "12", r: "1" })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
87
90
|
);
|
|
88
|
-
const ArrowUpIcon = (props) => /* @__PURE__ */
|
|
91
|
+
const ArrowUpIcon = (props) => /* @__PURE__ */ jsxs(
|
|
89
92
|
mainbase.svg,
|
|
90
93
|
{
|
|
91
94
|
viewBox: "0 0 24 24",
|
|
@@ -94,12 +97,14 @@ const ArrowUpIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
94
97
|
strokeWidth: "3",
|
|
95
98
|
strokeLinecap: "round",
|
|
96
99
|
strokeLinejoin: "round",
|
|
97
|
-
...props
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
...props,
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ jsx("path", { d: "m5 12 7-7 7 7" }),
|
|
103
|
+
/* @__PURE__ */ jsx("path", { d: "M12 19V5" })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
101
106
|
);
|
|
102
|
-
const ArrowDownIcon = (props) => /* @__PURE__ */
|
|
107
|
+
const ArrowDownIcon = (props) => /* @__PURE__ */ jsxs(
|
|
103
108
|
mainbase.svg,
|
|
104
109
|
{
|
|
105
110
|
viewBox: "0 0 24 24",
|
|
@@ -108,56 +113,58 @@ const ArrowDownIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
108
113
|
strokeWidth: "3",
|
|
109
114
|
strokeLinecap: "round",
|
|
110
115
|
strokeLinejoin: "round",
|
|
111
|
-
...props
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
...props,
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
119
|
+
/* @__PURE__ */ jsx("path", { d: "m19 12-7 7-7-7" })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
115
122
|
);
|
|
116
|
-
const CheckCircleIcon = (props) => /* @__PURE__ */
|
|
123
|
+
const CheckCircleIcon = (props) => /* @__PURE__ */ jsx(
|
|
117
124
|
mainbase.svg,
|
|
118
125
|
{
|
|
119
126
|
stroke: "currentColor",
|
|
120
127
|
fill: "currentColor",
|
|
121
128
|
strokeWidth: "0",
|
|
122
129
|
viewBox: "0 0 24 24",
|
|
123
|
-
...props
|
|
124
|
-
|
|
125
|
-
|
|
130
|
+
...props,
|
|
131
|
+
children: /* @__PURE__ */ 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" })
|
|
132
|
+
}
|
|
126
133
|
);
|
|
127
|
-
const WarningIcon = (props) => /* @__PURE__ */
|
|
134
|
+
const WarningIcon = (props) => /* @__PURE__ */ jsx(
|
|
128
135
|
mainbase.svg,
|
|
129
136
|
{
|
|
130
137
|
stroke: "currentColor",
|
|
131
138
|
fill: "currentColor",
|
|
132
139
|
strokeWidth: "0",
|
|
133
140
|
viewBox: "0 0 24 24",
|
|
134
|
-
...props
|
|
135
|
-
|
|
136
|
-
|
|
141
|
+
...props,
|
|
142
|
+
children: /* @__PURE__ */ 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" })
|
|
143
|
+
}
|
|
137
144
|
);
|
|
138
|
-
const InfoIcon = (props) => /* @__PURE__ */
|
|
145
|
+
const InfoIcon = (props) => /* @__PURE__ */ jsx(
|
|
139
146
|
mainbase.svg,
|
|
140
147
|
{
|
|
141
148
|
viewBox: "0 0 24 24",
|
|
142
149
|
fill: "currentColor",
|
|
143
150
|
stroke: "currentColor",
|
|
144
151
|
strokeWidth: "0",
|
|
145
|
-
...props
|
|
146
|
-
|
|
147
|
-
|
|
152
|
+
...props,
|
|
153
|
+
children: /* @__PURE__ */ 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" })
|
|
154
|
+
}
|
|
148
155
|
);
|
|
149
|
-
const QuoteIcon = (props) => /* @__PURE__ */
|
|
150
|
-
const StarIcon = (props) => /* @__PURE__ */
|
|
151
|
-
const ErrorIcon = (props) => /* @__PURE__ */
|
|
152
|
-
const CloseIcon = (props) => /* @__PURE__ */
|
|
156
|
+
const QuoteIcon = (props) => /* @__PURE__ */ jsx(mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ 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" }) });
|
|
157
|
+
const StarIcon = (props) => /* @__PURE__ */ jsx(mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ 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" }) });
|
|
158
|
+
const ErrorIcon = (props) => /* @__PURE__ */ jsx(mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ 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" }) });
|
|
159
|
+
const CloseIcon = (props) => /* @__PURE__ */ jsx(mainbase.svg, { viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsx(
|
|
153
160
|
"path",
|
|
154
161
|
{
|
|
155
162
|
fillRule: "evenodd",
|
|
156
163
|
clipRule: "evenodd",
|
|
157
164
|
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"
|
|
158
165
|
}
|
|
159
|
-
));
|
|
160
|
-
const FileIcon = (props) => /* @__PURE__ */
|
|
166
|
+
) });
|
|
167
|
+
const FileIcon = (props) => /* @__PURE__ */ jsxs(
|
|
161
168
|
mainbase.svg,
|
|
162
169
|
{
|
|
163
170
|
stroke: "currentColor",
|
|
@@ -166,12 +173,14 @@ const FileIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
166
173
|
viewBox: "0 0 24 24",
|
|
167
174
|
strokeLinecap: "round",
|
|
168
175
|
strokeLinejoin: "round",
|
|
169
|
-
...props
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
176
|
+
...props,
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ jsx("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
179
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" })
|
|
180
|
+
]
|
|
181
|
+
}
|
|
173
182
|
);
|
|
174
|
-
const CopyIcon = (props) => /* @__PURE__ */
|
|
183
|
+
const CopyIcon = (props) => /* @__PURE__ */ jsxs(
|
|
175
184
|
mainbase.svg,
|
|
176
185
|
{
|
|
177
186
|
stroke: "currentColor",
|
|
@@ -180,12 +189,14 @@ const CopyIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
180
189
|
viewBox: "0 0 24 24",
|
|
181
190
|
strokeLinecap: "round",
|
|
182
191
|
strokeLinejoin: "round",
|
|
183
|
-
...props
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
...props,
|
|
193
|
+
children: [
|
|
194
|
+
/* @__PURE__ */ jsx("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
195
|
+
/* @__PURE__ */ jsx("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
196
|
+
]
|
|
197
|
+
}
|
|
187
198
|
);
|
|
188
|
-
const PipetteIcon = (props) => /* @__PURE__ */
|
|
199
|
+
const PipetteIcon = (props) => /* @__PURE__ */ jsxs(
|
|
189
200
|
mainbase.svg,
|
|
190
201
|
{
|
|
191
202
|
stroke: "currentColor",
|
|
@@ -194,13 +205,15 @@ const PipetteIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
194
205
|
viewBox: "0 0 24 24",
|
|
195
206
|
strokeLinecap: "round",
|
|
196
207
|
strokeLinejoin: "round",
|
|
197
|
-
...props
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
208
|
+
...props,
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ jsx("path", { d: "m2 22 1-1h3l9-9" }),
|
|
211
|
+
/* @__PURE__ */ jsx("path", { d: "M3 21v-3l9-9" }),
|
|
212
|
+
/* @__PURE__ */ 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" })
|
|
213
|
+
]
|
|
214
|
+
}
|
|
202
215
|
);
|
|
203
|
-
const EllipsisIcon = (props) => /* @__PURE__ */
|
|
216
|
+
const EllipsisIcon = (props) => /* @__PURE__ */ jsxs(
|
|
204
217
|
mainbase.svg,
|
|
205
218
|
{
|
|
206
219
|
stroke: "currentColor",
|
|
@@ -209,11 +222,13 @@ const EllipsisIcon = (props) => /* @__PURE__ */ React.createElement(
|
|
|
209
222
|
viewBox: "0 0 24 24",
|
|
210
223
|
strokeLinecap: "round",
|
|
211
224
|
strokeLinejoin: "round",
|
|
212
|
-
...props
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
225
|
+
...props,
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" }),
|
|
228
|
+
/* @__PURE__ */ jsx("circle", { cx: "19", cy: "12", r: "1" }),
|
|
229
|
+
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "12", r: "1" })
|
|
230
|
+
]
|
|
231
|
+
}
|
|
217
232
|
);
|
|
218
233
|
|
|
219
234
|
export { ArrowDownIcon, ArrowUpIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, EllipsisIcon, EllpsisIcon, ErrorIcon, FileIcon, InfoIcon, PipetteIcon, QuoteIcon, StarIcon, WarningIcon };
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { cx } from '../../utils/cx.js';
|
|
5
|
-
import '../../utils/unit.js';
|
|
6
6
|
|
|
7
7
|
const Image = forwardRef(
|
|
8
8
|
function Image2(props, ref) {
|
|
9
9
|
const { align, fit = "cover", ...rest } = props;
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
11
|
mainbase.img,
|
|
12
12
|
{
|
|
13
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 { EMPTY_SLOT_STYLES } from '../../styled-system/empty.js';
|
|
4
5
|
import { mainbase } from '../../styled-system/factory.js';
|
|
@@ -9,7 +10,7 @@ const InputAddon = forwardRef(
|
|
|
9
10
|
const recipe = useRecipe({ key: "inputAddon", recipe: props.recipe });
|
|
10
11
|
const [variantProps, localProps] = recipe.splitVariantProps(props);
|
|
11
12
|
const styles = unstyled ? EMPTY_SLOT_STYLES : recipe(variantProps);
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsx(mainbase.div, { ref, ...localProps, css: [styles, props.css] });
|
|
13
14
|
}
|
|
14
15
|
);
|
|
15
16
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { forwardRef, Children, cloneElement } from 'react';
|
|
3
4
|
import { Group } from '../group/group.js';
|
|
4
5
|
import { InputAddon } from '../input-addon/input-addon.js';
|
|
@@ -22,26 +23,28 @@ const InputGroup = forwardRef(
|
|
|
22
23
|
} = props;
|
|
23
24
|
const child = Children.only(children);
|
|
24
25
|
const attached = Boolean(startAddon || endAddon);
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
26
27
|
Group,
|
|
27
28
|
{
|
|
28
29
|
width: "full",
|
|
29
30
|
ref,
|
|
30
31
|
attached,
|
|
31
32
|
skip: (el) => el.type === InputElement,
|
|
32
|
-
...rest
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
...rest,
|
|
34
|
+
children: [
|
|
35
|
+
startAddon && /* @__PURE__ */ jsx(InputAddon, { ...startAddonProps, children: startAddon }),
|
|
36
|
+
startElement && /* @__PURE__ */ jsx(InputElement, { pointerEvents: "none", ...startElementProps, children: startElement }),
|
|
37
|
+
cloneElement(child, {
|
|
38
|
+
...startElement && {
|
|
39
|
+
ps: `calc(var(--input-height) - ${startOffset})`
|
|
40
|
+
},
|
|
41
|
+
...endElement && { pe: `calc(var(--input-height) - ${endOffset})` },
|
|
42
|
+
...children.props
|
|
43
|
+
}),
|
|
44
|
+
endElement && /* @__PURE__ */ jsx(InputElement, { placement: "end", ...endElementProps, children: endElement }),
|
|
45
|
+
endAddon && /* @__PURE__ */ jsx(InputAddon, { ...endAddonProps, children: endAddon })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
45
48
|
);
|
|
46
49
|
}
|
|
47
50
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { cx } from '../../utils/cx.js';
|
|
5
|
-
import '../../utils/unit.js';
|
|
6
6
|
|
|
7
7
|
const LinkOverlay = forwardRef(
|
|
8
8
|
function LinkOverlay2(props, ref) {
|
|
9
9
|
const { className, ...rest } = props;
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
11
|
mainbase.a,
|
|
12
12
|
{
|
|
13
13
|
...rest,
|
|
@@ -37,7 +37,7 @@ const LinkOverlay = forwardRef(
|
|
|
37
37
|
const LinkBox = forwardRef(
|
|
38
38
|
function LinkBox2(props, ref) {
|
|
39
39
|
const { className, ...rest } = props;
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
41
41
|
mainbase.div,
|
|
42
42
|
{
|
|
43
43
|
ref,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { Listbox } from '@ark-ui/react/listbox';
|
|
3
4
|
import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
|
|
4
5
|
import { CheckIcon } from '../icons.js';
|
|
@@ -42,7 +43,7 @@ const ListboxItemText = withContext(Listbox.ItemText, "itemText", { forwardAsChi
|
|
|
42
43
|
const ListboxItemIndicator = withContext(Listbox.ItemIndicator, "itemIndicator", {
|
|
43
44
|
forwardAsChild: true,
|
|
44
45
|
defaultProps: {
|
|
45
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
49
|
const ListboxLabel = withContext(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { AbsoluteCenter } from '../absolute-center/absolute-center.js';
|
|
3
4
|
import { Span } from '../span/index.js';
|
|
@@ -6,7 +7,7 @@ import { Spinner } from '../spinner/spinner.js';
|
|
|
6
7
|
const Loader = React.forwardRef(
|
|
7
8
|
function Loader2(props, ref) {
|
|
8
9
|
const {
|
|
9
|
-
spinner = /* @__PURE__ */
|
|
10
|
+
spinner = /* @__PURE__ */ jsx(Spinner, { size: "inherit", borderWidth: "0.125em", color: "inherit" }),
|
|
10
11
|
spinnerPlacement = "start",
|
|
11
12
|
children,
|
|
12
13
|
text,
|
|
@@ -15,12 +16,19 @@ const Loader = React.forwardRef(
|
|
|
15
16
|
} = props;
|
|
16
17
|
if (!visible) return children;
|
|
17
18
|
if (text) {
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsxs(Span, { ref, display: "contents", ...rest, children: [
|
|
20
|
+
spinnerPlacement === "start" && spinner,
|
|
21
|
+
text,
|
|
22
|
+
spinnerPlacement === "end" && spinner
|
|
23
|
+
] });
|
|
19
24
|
}
|
|
20
25
|
if (spinner) {
|
|
21
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ jsxs(Span, { ref, display: "contents", ...rest, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(AbsoluteCenter, { display: "inline-flex", children: spinner }),
|
|
28
|
+
/* @__PURE__ */ jsx(Span, { visibility: "hidden", display: "contents", children })
|
|
29
|
+
] });
|
|
22
30
|
}
|
|
23
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ jsx(Span, { ref, display: "contents", ...rest, children });
|
|
24
32
|
}
|
|
25
33
|
);
|
|
26
34
|
Loader.displayName = "Loader";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { Menu } from '@ark-ui/react/menu';
|
|
3
4
|
import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
|
|
4
5
|
import { CheckIcon } from '../icons.js';
|
|
@@ -45,7 +46,7 @@ const MenuArrowTip = withContext(
|
|
|
45
46
|
const MenuArrow = withContext(
|
|
46
47
|
Menu.Arrow,
|
|
47
48
|
"arrow",
|
|
48
|
-
{ forwardAsChild: true, defaultProps: { children: /* @__PURE__ */
|
|
49
|
+
{ forwardAsChild: true, defaultProps: { children: /* @__PURE__ */ jsx(MenuArrowTip, {}) } }
|
|
49
50
|
);
|
|
50
51
|
const MenuIndicator = withContext(
|
|
51
52
|
Menu.Indicator,
|
|
@@ -75,7 +76,7 @@ const MenuItemCommand = withContext(
|
|
|
75
76
|
);
|
|
76
77
|
const MenuItemIndicator = withContext(Menu.ItemIndicator, "itemIndicator", {
|
|
77
78
|
forwardAsChild: true,
|
|
78
|
-
defaultProps: { children: /* @__PURE__ */
|
|
79
|
+
defaultProps: { children: /* @__PURE__ */ jsx(CheckIcon, { boxSize: "4" }) }
|
|
79
80
|
});
|
|
80
81
|
const MenuCheckboxItem = withContext(Menu.CheckboxItem, "item", { forwardAsChild: true });
|
|
81
82
|
const MenuRadioItemGroup = withContext(Menu.RadioItemGroup, "itemGroup", { forwardAsChild: true });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
3
|
import { useFieldContext, Field } from '@ark-ui/react/field';
|
|
3
4
|
import { forwardRef } from 'react';
|
|
4
5
|
import { createContext } from '../../create-context.js';
|
|
@@ -6,7 +7,6 @@ import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-
|
|
|
6
7
|
import { mainbase } from '../../styled-system/factory.js';
|
|
7
8
|
import { dataAttr } from '../../utils/attr.js';
|
|
8
9
|
import { cx } from '../../utils/cx.js';
|
|
9
|
-
import '../../utils/unit.js';
|
|
10
10
|
import { ChevronDownIcon } from '../icons.js';
|
|
11
11
|
|
|
12
12
|
const [NativeSelectBasePropsProvider, useNativeSelectBaseProps] = createContext({
|
|
@@ -26,7 +26,7 @@ const NativeSelectRoot = withProvider("div", "root", {
|
|
|
26
26
|
const field = useFieldContext();
|
|
27
27
|
const disabled = Boolean(field?.disabled ?? props.disabled);
|
|
28
28
|
const invalid = Boolean(field?.invalid ?? props.invalid);
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx(NativeSelectBasePropsProvider, { value: { disabled, invalid }, children: element });
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
const NativeSelectPropsProvider = PropsProvider;
|
|
@@ -36,7 +36,7 @@ const NativeSelectField = forwardRef(function NativeSelectField2(props, ref) {
|
|
|
36
36
|
const { disabled, invalid } = useNativeSelectBaseProps();
|
|
37
37
|
const styles = useNativeSelectStyles();
|
|
38
38
|
const classNames = useClassNames();
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsxs(
|
|
40
40
|
StyledSelect,
|
|
41
41
|
{
|
|
42
42
|
disabled,
|
|
@@ -44,10 +44,12 @@ const NativeSelectField = forwardRef(function NativeSelectField2(props, ref) {
|
|
|
44
44
|
...restProps,
|
|
45
45
|
ref,
|
|
46
46
|
className: cx(classNames.field, props.className),
|
|
47
|
-
css: [!unstyled ? styles.field : void 0, props.css]
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
css: [!unstyled ? styles.field : void 0, props.css],
|
|
48
|
+
children: [
|
|
49
|
+
placeholder && /* @__PURE__ */ jsx("option", { value: "", children: placeholder }),
|
|
50
|
+
children
|
|
51
|
+
]
|
|
52
|
+
}
|
|
51
53
|
);
|
|
52
54
|
});
|
|
53
55
|
function NativeSelectIndicator(props) {
|
|
@@ -55,16 +57,16 @@ function NativeSelectIndicator(props) {
|
|
|
55
57
|
const styles = useNativeSelectStyles();
|
|
56
58
|
const { disabled, invalid } = useNativeSelectBaseProps();
|
|
57
59
|
const classNames = useClassNames();
|
|
58
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ jsx(
|
|
59
61
|
mainbase.div,
|
|
60
62
|
{
|
|
61
63
|
...restProps,
|
|
62
64
|
"data-disabled": dataAttr(disabled),
|
|
63
65
|
"data-invalid": dataAttr(invalid),
|
|
64
66
|
className: cx(classNames.indicator, props.className),
|
|
65
|
-
css: [!unstyled ? styles.indicator : void 0, props.css]
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
css: [!unstyled ? styles.indicator : void 0, props.css],
|
|
68
|
+
children: props.children ?? /* @__PURE__ */ jsx(ChevronDownIcon, {})
|
|
69
|
+
}
|
|
68
70
|
);
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
3
|
import { NumberInput } from '@ark-ui/react/number-input';
|
|
3
4
|
import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
|
|
4
5
|
import { ChevronUpIcon, ChevronDownIcon } from '../icons.js';
|
|
@@ -16,16 +17,19 @@ const NumberInputLabel = withContext(NumberInput.Label, "label", { forwardAsChil
|
|
|
16
17
|
const NumberInputInput = withContext(NumberInput.Input, "input", { forwardAsChild: true });
|
|
17
18
|
const NumberInputIncrementTrigger = withContext(NumberInput.IncrementTrigger, "incrementTrigger", {
|
|
18
19
|
forwardAsChild: true,
|
|
19
|
-
defaultProps: { children: /* @__PURE__ */
|
|
20
|
+
defaultProps: { children: /* @__PURE__ */ jsx(ChevronUpIcon, {}) }
|
|
20
21
|
});
|
|
21
22
|
const NumberInputDecrementTrigger = withContext(NumberInput.DecrementTrigger, "decrementTrigger", {
|
|
22
23
|
forwardAsChild: true,
|
|
23
|
-
defaultProps: { children: /* @__PURE__ */
|
|
24
|
+
defaultProps: { children: /* @__PURE__ */ jsx(ChevronDownIcon, {}) }
|
|
24
25
|
});
|
|
25
26
|
const NumberInputControl = withContext(NumberInput.Control, "control", {
|
|
26
27
|
forwardAsChild: true,
|
|
27
28
|
defaultProps: {
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30
|
+
/* @__PURE__ */ jsx(NumberInputIncrementTrigger, {}),
|
|
31
|
+
/* @__PURE__ */ jsx(NumberInputDecrementTrigger, {})
|
|
32
|
+
] })
|
|
29
33
|
}
|
|
30
34
|
});
|
|
31
35
|
const NumberInputScrubber = withContext(NumberInput.Scrubber, "scrubber", { forwardAsChild: true });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { Pagination, usePaginationContext } from '@ark-ui/react/pagination';
|
|
3
4
|
import { forwardRef, useMemo } from 'react';
|
|
4
5
|
import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
|
|
@@ -42,27 +43,27 @@ const PaginationPageText = forwardRef(function PaginationPageText2(props, ref) {
|
|
|
42
43
|
if (format === "compact") return `${page} of ${totalPages}`;
|
|
43
44
|
return `${pageRange.start + 1} - ${Math.min(pageRange.end, count)} of ${count}`;
|
|
44
45
|
}, [format, page, totalPages, pageRange, count]);
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ jsx(Box, { fontWeight: "medium", ref, ...rest, children: content });
|
|
46
47
|
});
|
|
47
48
|
const PaginationItems = (props) => {
|
|
48
49
|
const { pages } = usePaginationContext();
|
|
49
50
|
const { render, ellipsis, ...rest } = props;
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ jsx(For, { each: pages, children: (page, index) => {
|
|
51
52
|
if (page.type === "ellipsis") {
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ jsx(PaginationEllipsis, { asChild: true, index, ...rest, children: ellipsis || /* @__PURE__ */ jsx(IconButton, { as: "span", children: /* @__PURE__ */ jsx(EllipsisIcon, {}) }) }, index);
|
|
53
54
|
}
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx(
|
|
55
56
|
PaginationItem,
|
|
56
57
|
{
|
|
57
58
|
asChild: true,
|
|
58
|
-
key: index,
|
|
59
59
|
type: "page",
|
|
60
60
|
value: page.value,
|
|
61
|
-
...rest
|
|
61
|
+
...rest,
|
|
62
|
+
children: render(page)
|
|
62
63
|
},
|
|
63
|
-
|
|
64
|
+
index
|
|
64
65
|
);
|
|
65
|
-
});
|
|
66
|
+
} });
|
|
66
67
|
};
|
|
67
68
|
|
|
68
69
|
export { PaginationContext, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPageText, PaginationPrevTrigger, PaginationPropsProvider, PaginationRoot, PaginationRootProvider, usePaginationStyles };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import { Popover } from '@ark-ui/react/popover';
|
|
3
4
|
import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';
|
|
4
5
|
|
|
@@ -26,7 +27,7 @@ const PopoverArrow = withContext(
|
|
|
26
27
|
"arrow",
|
|
27
28
|
{
|
|
28
29
|
forwardAsChild: true,
|
|
29
|
-
defaultProps: { children: /* @__PURE__ */
|
|
30
|
+
defaultProps: { children: /* @__PURE__ */ jsx(PopoverArrowTip, {}) }
|
|
30
31
|
}
|
|
31
32
|
);
|
|
32
33
|
const PopoverCloseTrigger = withContext(Popover.CloseTrigger, "closeTrigger", { forwardAsChild: true });
|