@serendie/ui 2.1.1 → 2.1.2-dev.202508070336
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 +26 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +117 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.js +6 -8
- package/dist/components/Accordion/AccordionGroup.js +2 -6
- package/dist/components/Avatar/Avatar.js +11 -13
- package/dist/components/Badge/Badge.js +8 -10
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +6 -8
- package/dist/components/BottomNavigation/BottomNavigation.js +10 -11
- package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigationItem.js +6 -8
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.js +13 -15
- package/dist/components/CheckBox/CheckBox.js +10 -11
- package/dist/components/ChoiceBox/ChoiceBox.js +20 -22
- package/dist/components/DashboardWidget/DashboardWidget.js +11 -13
- package/dist/components/DataTable/table/BodyCell.js +2 -4
- package/dist/components/DataTable/table/HeaderCell.js +6 -7
- package/dist/components/DataTable/table/HeaderCheckbox.js +8 -9
- package/dist/components/DataTable/table/HeaderRow.js +2 -3
- package/dist/components/DataTable/table/Root.js +4 -6
- package/dist/components/DataTable/table/Row.js +2 -4
- package/dist/components/DataTable/table/Tr.js +6 -7
- package/dist/components/Divider/Divider.js +6 -8
- package/dist/components/Drawer/Drawer.js +11 -13
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +13 -15
- package/dist/components/IconButton/IconButton.d.ts +3 -3
- package/dist/components/IconButton/IconButton.js +6 -8
- package/dist/components/List/ListItem.js +7 -8
- package/dist/components/ModalDialog/ModalDialog.js +12 -14
- package/dist/components/NotificationBadge/NotificationBadge.js +6 -8
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +8 -10
- package/dist/components/ProgressIndicator/ProgressIndicator.js +9 -11
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.js +14 -15
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.js +17 -21
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +16 -17
- package/dist/components/Switch/Switch.js +13 -14
- package/dist/components/Tabs/TabItem.d.ts +1 -1
- package/dist/components/Tabs/TabItem.js +8 -10
- package/dist/components/Tabs/Tabs.js +8 -10
- package/dist/components/TextArea/TextArea.js +8 -10
- package/dist/components/TextField/TextField.js +6 -7
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.js +8 -10
- package/dist/components/Tooltip/Tooltip.js +17 -19
- package/dist/components/TopAppBar/TopAppBar.js +14 -16
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +3 -3
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +10 -10
- package/dist/node_modules/@zag-js/combobox/dist/index.js +4 -4
- package/dist/node_modules/@zag-js/menu/dist/index.js +31 -31
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +10 -10
- package/dist/node_modules/@zag-js/select/dist/index.js +11 -11
- package/dist/node_modules/@zag-js/switch/dist/index.js +10 -10
- package/dist/node_modules/@zag-js/tabs/dist/index.js +12 -12
- package/dist/node_modules/@zag-js/toast/dist/index.js +5 -5
- package/dist/node_modules/@zag-js/tooltip/dist/index.js +4 -4
- package/dist/styled-system/css/css.js +3 -3
- package/dist/styled-system/jsx/factory.js +12 -12
- package/dist/styled-system/patterns/box.js +3 -4
- package/package.json +9 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import "../../
|
|
3
|
-
import { cx as d } from "../../styled-system/css/cx.js";
|
|
4
|
-
import "../../styled-system/helpers.js";
|
|
5
|
-
import { sva as I } from "../../styled-system/css/sva.js";
|
|
6
|
-
import p from "../../assets/checkboxChecked.svg.js";
|
|
2
|
+
import I from "../../assets/checkboxChecked.svg.js";
|
|
7
3
|
import C from "../../assets/checkboxUnchecked.svg.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { checkboxUncheckedIconCss as
|
|
12
|
-
import { radioUncheckedIconCss as
|
|
4
|
+
import p from "../../assets/checkboxIndeterminate.svg.js";
|
|
5
|
+
import x from "../../assets/radioChecked.svg.js";
|
|
6
|
+
import l from "../../assets/radioUnchecked.svg.js";
|
|
7
|
+
import { checkboxUncheckedIconCss as b, checkboxCheckedIconCss as f, checkboxIconCss as u } from "../CheckBox/CheckBox.js";
|
|
8
|
+
import { radioUncheckedIconCss as U, radioCheckedIconCss as g, radioIconCss as N } from "../RadioButton/RadioButton.js";
|
|
9
|
+
import { sva as R } from "../../styled-system/css/sva.js";
|
|
13
10
|
import { RadioGroupItem as v } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js";
|
|
11
|
+
import { cx as d } from "../../styled-system/css/cx.js";
|
|
14
12
|
import { RadioGroupItemContext as S } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js";
|
|
15
13
|
import { RadioGroupItemControl as G } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js";
|
|
16
14
|
import { RadioGroupItemHiddenInput as P } from "../../node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js";
|
|
@@ -18,7 +16,7 @@ import { CheckboxRoot as j } from "../../node_modules/@ark-ui/react/dist/compone
|
|
|
18
16
|
import { CheckboxContext as y } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-context.js";
|
|
19
17
|
import { CheckboxControl as B } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js";
|
|
20
18
|
import { CheckboxHiddenInput as H } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js";
|
|
21
|
-
const h =
|
|
19
|
+
const h = R({
|
|
22
20
|
slots: [
|
|
23
21
|
"root",
|
|
24
22
|
"radioItem",
|
|
@@ -32,14 +30,14 @@ const h = I({
|
|
|
32
30
|
root: {
|
|
33
31
|
display: "flex"
|
|
34
32
|
},
|
|
35
|
-
radioItem:
|
|
36
|
-
radioCheckedIcon:
|
|
37
|
-
radioUncheckedIcon:
|
|
38
|
-
checkboxItem:
|
|
39
|
-
checkboxCheckedIcon:
|
|
40
|
-
checkboxUncheckedIcon:
|
|
33
|
+
radioItem: N,
|
|
34
|
+
radioCheckedIcon: g,
|
|
35
|
+
radioUncheckedIcon: U,
|
|
36
|
+
checkboxItem: u,
|
|
37
|
+
checkboxCheckedIcon: f,
|
|
38
|
+
checkboxUncheckedIcon: b
|
|
41
39
|
}
|
|
42
|
-
}),
|
|
40
|
+
}), Z = ({
|
|
43
41
|
type: r,
|
|
44
42
|
value: t,
|
|
45
43
|
className: i,
|
|
@@ -54,7 +52,7 @@ const h = I({
|
|
|
54
52
|
className: d("group", e.root, i),
|
|
55
53
|
...a,
|
|
56
54
|
children: [
|
|
57
|
-
/* @__PURE__ */ o(S, { children: (c) => /* @__PURE__ */ o(G, { className: e.radioItem, asChild: !0, children: c.checked ? /* @__PURE__ */ o(
|
|
55
|
+
/* @__PURE__ */ o(S, { children: (c) => /* @__PURE__ */ o(G, { className: e.radioItem, asChild: !0, children: c.checked ? /* @__PURE__ */ o(x, { className: e.radioCheckedIcon }) : /* @__PURE__ */ o(l, { className: e.radioUncheckedIcon }) }) }),
|
|
58
56
|
/* @__PURE__ */ o(P, {})
|
|
59
57
|
]
|
|
60
58
|
}
|
|
@@ -67,8 +65,8 @@ const h = I({
|
|
|
67
65
|
className: d("group", e.root, i),
|
|
68
66
|
...m,
|
|
69
67
|
children: /* @__PURE__ */ o(y, { children: (c) => /* @__PURE__ */ n(k, { children: [
|
|
70
|
-
/* @__PURE__ */ o(B, { className: e.checkboxItem, children: c.checked === !0 ? /* @__PURE__ */ o(
|
|
71
|
-
|
|
68
|
+
/* @__PURE__ */ o(B, { className: e.checkboxItem, children: c.checked === !0 ? /* @__PURE__ */ o(I, { className: e.checkboxCheckedIcon }) : c.indeterminate === !0 ? /* @__PURE__ */ o(
|
|
69
|
+
p,
|
|
72
70
|
{
|
|
73
71
|
className: e.checkboxCheckedIcon
|
|
74
72
|
}
|
|
@@ -84,6 +82,6 @@ const h = I({
|
|
|
84
82
|
);
|
|
85
83
|
};
|
|
86
84
|
export {
|
|
87
|
-
|
|
85
|
+
Z as ChoiceBox,
|
|
88
86
|
h as ChoiceBoxStyle
|
|
89
87
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { SerendieSymbolChevronRight as c } from "@serendie/symbols";
|
|
3
|
-
import "../../styled-system/css/
|
|
4
|
-
import { cx as
|
|
5
|
-
|
|
6
|
-
import { sva as u } from "../../styled-system/css/sva.js";
|
|
7
|
-
const g = u({
|
|
3
|
+
import { sva as y } from "../../styled-system/css/sva.js";
|
|
4
|
+
import { cx as u } from "../../styled-system/css/cx.js";
|
|
5
|
+
const g = y({
|
|
8
6
|
slots: [
|
|
9
7
|
"root",
|
|
10
8
|
"labelContainer",
|
|
@@ -120,23 +118,23 @@ const g = u({
|
|
|
120
118
|
defaultVariants: {
|
|
121
119
|
values: "singleValue"
|
|
122
120
|
}
|
|
123
|
-
}),
|
|
124
|
-
values:
|
|
121
|
+
}), f = ({
|
|
122
|
+
values: s,
|
|
125
123
|
children: n,
|
|
126
124
|
linkTo: i,
|
|
127
125
|
className: o,
|
|
128
126
|
...d
|
|
129
127
|
}) => {
|
|
130
128
|
const e = g({
|
|
131
|
-
values:
|
|
132
|
-
}), m = ({ label:
|
|
133
|
-
/* @__PURE__ */ a("h3", { className: e.areaValueLabel, children:
|
|
129
|
+
values: s === void 0 ? "noValue" : s.length === 1 ? "singleValue" : "doubleValue"
|
|
130
|
+
}), m = ({ label: t, value: r, unit: p }) => /* @__PURE__ */ l("div", { className: e.areaValue, children: [
|
|
131
|
+
/* @__PURE__ */ a("h3", { className: e.areaValueLabel, children: t }),
|
|
134
132
|
/* @__PURE__ */ l("div", { className: e.areaValueContainer, children: [
|
|
135
133
|
/* @__PURE__ */ a("p", { className: e.areaValueNumber, children: r }),
|
|
136
134
|
/* @__PURE__ */ a("p", { className: e.areaValueNumberUnit, children: p })
|
|
137
135
|
] })
|
|
138
136
|
] });
|
|
139
|
-
return /* @__PURE__ */ l("div", { className:
|
|
137
|
+
return /* @__PURE__ */ l("div", { className: u(e.root, o), ...d, children: [
|
|
140
138
|
/* @__PURE__ */ l("a", { href: i, className: e.labelContainer, children: [
|
|
141
139
|
/* @__PURE__ */ l("div", { className: e.label, children: [
|
|
142
140
|
/* @__PURE__ */ a("h2", { className: e.labelTitle, children: "title" }),
|
|
@@ -145,11 +143,11 @@ const g = u({
|
|
|
145
143
|
/* @__PURE__ */ a(c, {})
|
|
146
144
|
] }),
|
|
147
145
|
/* @__PURE__ */ l("div", { className: e.area, children: [
|
|
148
|
-
|
|
146
|
+
s == null ? void 0 : s.map((t, r) => /* @__PURE__ */ a(m, { ...t }, r)),
|
|
149
147
|
/* @__PURE__ */ a("div", { className: e.areaContainer, children: n })
|
|
150
148
|
] })
|
|
151
149
|
] });
|
|
152
150
|
};
|
|
153
151
|
export {
|
|
154
|
-
|
|
152
|
+
f as DashboardWidget
|
|
155
153
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import "../../../styled-system/css/css.js";
|
|
3
2
|
import { cva as i } from "../../../styled-system/css/cva.js";
|
|
4
|
-
import "../../../styled-system/helpers.js";
|
|
5
3
|
const a = i({
|
|
6
4
|
base: {
|
|
7
5
|
borderBottom: "1px solid",
|
|
@@ -102,7 +100,7 @@ const a = i({
|
|
|
102
100
|
type: "default",
|
|
103
101
|
state: "enabled"
|
|
104
102
|
}
|
|
105
|
-
}), l = ["default", "success", "notice", "error"], m = (o) => l.includes(o) ? o : "default",
|
|
103
|
+
}), l = ["default", "success", "notice", "error"], m = (o) => l.includes(o) ? o : "default", y = ({
|
|
106
104
|
children: o,
|
|
107
105
|
size: t = "medium",
|
|
108
106
|
type: r = "default",
|
|
@@ -123,5 +121,5 @@ const a = i({
|
|
|
123
121
|
);
|
|
124
122
|
};
|
|
125
123
|
export {
|
|
126
|
-
|
|
124
|
+
y as BodyCell
|
|
127
125
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { SerendieSymbol as a } from "@serendie/symbols";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cx as p } from "../../../styled-system/css/cx.js";
|
|
4
|
+
import { css as f } from "../../../styled-system/css/css.js";
|
|
5
5
|
import { cva as y } from "../../../styled-system/css/cva.js";
|
|
6
|
-
import "../../../styled-system/helpers.js";
|
|
7
6
|
const u = y({
|
|
8
7
|
base: {
|
|
9
8
|
borderBottom: "1px solid",
|
|
@@ -21,7 +20,7 @@ const u = y({
|
|
|
21
20
|
whiteSpace: "nowrap"
|
|
22
21
|
},
|
|
23
22
|
defaultVariants: {}
|
|
24
|
-
}),
|
|
23
|
+
}), k = ({
|
|
25
24
|
children: i,
|
|
26
25
|
size: d = "medium",
|
|
27
26
|
state: m = "enabled",
|
|
@@ -40,7 +39,7 @@ const u = y({
|
|
|
40
39
|
onKeyDown: (s) => {
|
|
41
40
|
e && (s.key === "Enter" || s.key === " ") && (s.preventDefault(), o == null || o());
|
|
42
41
|
},
|
|
43
|
-
className:
|
|
42
|
+
className: p(u({ size: d, state: m }), r),
|
|
44
43
|
style: {
|
|
45
44
|
cursor: e ? "pointer" : "default",
|
|
46
45
|
userSelect: "none"
|
|
@@ -49,7 +48,7 @@ const u = y({
|
|
|
49
48
|
children: /* @__PURE__ */ c(
|
|
50
49
|
"span",
|
|
51
50
|
{
|
|
52
|
-
className:
|
|
51
|
+
className: f({
|
|
53
52
|
display: "inline-flex",
|
|
54
53
|
alignItems: "center",
|
|
55
54
|
verticalAlign: "middle"
|
|
@@ -75,5 +74,5 @@ const u = y({
|
|
|
75
74
|
}
|
|
76
75
|
);
|
|
77
76
|
export {
|
|
78
|
-
|
|
77
|
+
k as HeaderCell
|
|
79
78
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { ChoiceBox as i } from "../../ChoiceBox/ChoiceBox.js";
|
|
3
3
|
import { DataTable as a } from "../index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const x = ({
|
|
4
|
+
import { cx as r } from "../../../styled-system/css/cx.js";
|
|
5
|
+
import { css as o } from "../../../styled-system/css/css.js";
|
|
6
|
+
const p = ({
|
|
8
7
|
className: t,
|
|
9
8
|
...m
|
|
10
9
|
}) => /* @__PURE__ */ e(
|
|
11
10
|
a.HeaderCell,
|
|
12
11
|
{
|
|
13
|
-
className:
|
|
14
|
-
|
|
12
|
+
className: r(
|
|
13
|
+
o({
|
|
15
14
|
width: "sd.system.dimension.spacing.twoExtraLarge"
|
|
16
15
|
})
|
|
17
16
|
),
|
|
@@ -20,8 +19,8 @@ const x = ({
|
|
|
20
19
|
{
|
|
21
20
|
...m,
|
|
22
21
|
type: "checkbox",
|
|
23
|
-
className:
|
|
24
|
-
|
|
22
|
+
className: r(
|
|
23
|
+
o({
|
|
25
24
|
alignItems: "center",
|
|
26
25
|
verticalAlign: "middle"
|
|
27
26
|
}),
|
|
@@ -32,5 +31,5 @@ const x = ({
|
|
|
32
31
|
}
|
|
33
32
|
);
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
p as HeaderCheckbox
|
|
36
35
|
};
|
|
@@ -2,8 +2,7 @@ import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { flexRender as i } from "../../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
3
3
|
import { DataTable as t } from "../index.js";
|
|
4
4
|
import { css as a } from "../../../styled-system/css/css.js";
|
|
5
|
-
|
|
6
|
-
function p({
|
|
5
|
+
function f({
|
|
7
6
|
headerGroup: l,
|
|
8
7
|
enableRowSelection: n,
|
|
9
8
|
table: o
|
|
@@ -36,5 +35,5 @@ function p({
|
|
|
36
35
|
] }, l.id);
|
|
37
36
|
}
|
|
38
37
|
export {
|
|
39
|
-
|
|
38
|
+
f as HeaderRow
|
|
40
39
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../../styled-system/css/
|
|
3
|
-
import { cx as
|
|
4
|
-
|
|
5
|
-
import { sva as a } from "../../../styled-system/css/sva.js";
|
|
6
|
-
const l = a({
|
|
2
|
+
import { sva as s } from "../../../styled-system/css/sva.js";
|
|
3
|
+
import { cx as a } from "../../../styled-system/css/cx.js";
|
|
4
|
+
const l = s({
|
|
7
5
|
slots: ["container", "table"],
|
|
8
6
|
base: {
|
|
9
7
|
container: {
|
|
@@ -27,7 +25,7 @@ function b({
|
|
|
27
25
|
className: t
|
|
28
26
|
}) {
|
|
29
27
|
const o = l();
|
|
30
|
-
return /* @__PURE__ */ e("div", { className:
|
|
28
|
+
return /* @__PURE__ */ e("div", { className: a(o.container, t), children: /* @__PURE__ */ e("table", { role: "table", className: o.table, children: r }) });
|
|
31
29
|
}
|
|
32
30
|
export {
|
|
33
31
|
b as Root
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { flexRender as l } from "../../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
3
3
|
import { DataTable as o } from "../index.js";
|
|
4
|
-
import "../../../styled-system/css/css.js";
|
|
5
4
|
import { cva as m } from "../../../styled-system/css/cva.js";
|
|
6
|
-
import "../../../styled-system/helpers.js";
|
|
7
5
|
const c = m({
|
|
8
6
|
base: {
|
|
9
7
|
_hover: {
|
|
@@ -55,7 +53,7 @@ const c = m({
|
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
55
|
});
|
|
58
|
-
function
|
|
56
|
+
function g({
|
|
59
57
|
row: e,
|
|
60
58
|
enableRowSelection: r
|
|
61
59
|
}) {
|
|
@@ -86,5 +84,5 @@ function a(e) {
|
|
|
86
84
|
return e.column.columnDef.meta && "getType" in e.column.columnDef.meta && typeof e.column.columnDef.meta.getType == "function" ? e.column.columnDef.meta.getType(e.row.original) : "default";
|
|
87
85
|
}
|
|
88
86
|
export {
|
|
89
|
-
|
|
87
|
+
g as Row
|
|
90
88
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function n({
|
|
2
|
+
import { cx as m } from "../../../styled-system/css/cx.js";
|
|
3
|
+
import { css as e } from "../../../styled-system/css/css.js";
|
|
4
|
+
function f({
|
|
6
5
|
children: r,
|
|
7
6
|
className: o,
|
|
8
7
|
...t
|
|
@@ -11,8 +10,8 @@ function n({
|
|
|
11
10
|
"tr",
|
|
12
11
|
{
|
|
13
12
|
role: "row",
|
|
14
|
-
className:
|
|
15
|
-
|
|
13
|
+
className: m(
|
|
14
|
+
e({
|
|
16
15
|
position: "relative"
|
|
17
16
|
}),
|
|
18
17
|
o
|
|
@@ -23,5 +22,5 @@ function n({
|
|
|
23
22
|
);
|
|
24
23
|
}
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
f as Tr
|
|
27
26
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import "../../styled-system/css/
|
|
3
|
-
import { cx as
|
|
4
|
-
|
|
5
|
-
import "../../styled-system/helpers.js";
|
|
6
|
-
const r = a({
|
|
2
|
+
import { cva as n } from "../../styled-system/css/cva.js";
|
|
3
|
+
import { cx as a } from "../../styled-system/css/cx.js";
|
|
4
|
+
const r = n({
|
|
7
5
|
base: {
|
|
8
6
|
border: "none"
|
|
9
7
|
},
|
|
@@ -39,11 +37,11 @@ const r = a({
|
|
|
39
37
|
color: "normal",
|
|
40
38
|
type: "horizontal"
|
|
41
39
|
}
|
|
42
|
-
}),
|
|
40
|
+
}), h = (e) => {
|
|
43
41
|
const [o, t] = r.splitVariantProps(e), { className: s, ...i } = t;
|
|
44
|
-
return /* @__PURE__ */ d("hr", { className:
|
|
42
|
+
return /* @__PURE__ */ d("hr", { className: a(r(o), s), ...i });
|
|
45
43
|
};
|
|
46
44
|
export {
|
|
47
|
-
|
|
45
|
+
h as Divider,
|
|
48
46
|
r as DividerStyle
|
|
49
47
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { SerendieSymbolClose as p } from "@serendie/symbols";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "../../styled-system/
|
|
6
|
-
import { sva as g } from "../../styled-system/css/sva.js";
|
|
7
|
-
import { IconButton as f } from "../IconButton/IconButton.js";
|
|
8
|
-
import { Portal as h } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
|
|
3
|
+
import { IconButton as g } from "../IconButton/IconButton.js";
|
|
4
|
+
import { Portal as f } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
|
|
5
|
+
import { sva as h } from "../../styled-system/css/sva.js";
|
|
9
6
|
import { DialogRoot as x } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js";
|
|
10
7
|
import { DialogBackdrop as y } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js";
|
|
8
|
+
import { cx as s } from "../../styled-system/css/cx.js";
|
|
11
9
|
import { DialogPositioner as u } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js";
|
|
12
10
|
import { DialogContent as b } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js";
|
|
13
11
|
import { DialogCloseTrigger as v } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js";
|
|
14
|
-
const
|
|
12
|
+
const n = h({
|
|
15
13
|
slots: ["backdrop", "content", "contentInner", "closeTrigger"],
|
|
16
14
|
base: {
|
|
17
15
|
backdrop: {
|
|
@@ -70,19 +68,19 @@ const r = g({
|
|
|
70
68
|
defaultVariants: {
|
|
71
69
|
type: "right"
|
|
72
70
|
}
|
|
73
|
-
}),
|
|
74
|
-
isOpen:
|
|
71
|
+
}), W = ({
|
|
72
|
+
isOpen: r,
|
|
75
73
|
children: i,
|
|
76
74
|
contentClassName: a,
|
|
77
75
|
backdropClassName: l,
|
|
78
76
|
...m
|
|
79
77
|
}) => {
|
|
80
|
-
const [d, c] =
|
|
81
|
-
return /* @__PURE__ */ e(x, { open:
|
|
78
|
+
const [d, c] = n.splitVariantProps(m), t = n(d);
|
|
79
|
+
return /* @__PURE__ */ e(x, { open: r, ...c, children: /* @__PURE__ */ o(f, { children: [
|
|
82
80
|
/* @__PURE__ */ e(y, { className: s(t.backdrop, l) }),
|
|
83
81
|
/* @__PURE__ */ e(u, { children: /* @__PURE__ */ o(b, { className: s(t.content, a), children: [
|
|
84
82
|
/* @__PURE__ */ e("header", { className: t.closeTrigger, children: /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
|
|
85
|
-
|
|
83
|
+
g,
|
|
86
84
|
{
|
|
87
85
|
icon: /* @__PURE__ */ e(p, {}),
|
|
88
86
|
shape: "rectangle",
|
|
@@ -94,5 +92,5 @@ const r = g({
|
|
|
94
92
|
] }) });
|
|
95
93
|
};
|
|
96
94
|
export {
|
|
97
|
-
|
|
95
|
+
W as Drawer
|
|
98
96
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuRootProps } from '@ark-ui/react';
|
|
2
|
-
export declare const DropdownMenuStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "
|
|
2
|
+
export declare const DropdownMenuStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "item" | "button" | "itemGroup" | "itemIcon" | "buttonIcon", import('../../../styled-system/types').SlotRecipeVariantRecord<"content" | "item" | "button" | "itemGroup" | "itemIcon" | "buttonIcon">>;
|
|
3
3
|
export type MenuItemProps = {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { SerendieSymbolMenu as l, SerendieSymbolChevronDown as c } from "@serendie/symbols";
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { IconButton as u } from "../IconButton/IconButton.js";
|
|
8
|
-
import { Portal as g } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
|
|
3
|
+
import { Button as p } from "../Button/Button.js";
|
|
4
|
+
import { IconButton as y } from "../IconButton/IconButton.js";
|
|
5
|
+
import { Portal as u } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
|
|
6
|
+
import { sva as g } from "../../styled-system/css/sva.js";
|
|
9
7
|
import { MenuRoot as h } from "../../node_modules/@ark-ui/react/dist/components/menu/menu-root.js";
|
|
10
8
|
import { MenuTrigger as f } from "../../node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js";
|
|
11
9
|
import { MenuPositioner as x } from "../../node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js";
|
|
12
10
|
import { MenuContent as b } from "../../node_modules/@ark-ui/react/dist/components/menu/menu-content.js";
|
|
13
11
|
import { MenuItemGroup as S } from "../../node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js";
|
|
14
12
|
import { MenuItem as v } from "../../node_modules/@ark-ui/react/dist/components/menu/menu-item.js";
|
|
15
|
-
const I =
|
|
13
|
+
const I = g({
|
|
16
14
|
slots: ["content", "itemGroup", "item", "itemIcon", "button", "buttonIcon"],
|
|
17
15
|
base: {
|
|
18
16
|
content: {
|
|
@@ -83,12 +81,12 @@ const I = p({
|
|
|
83
81
|
transition: "transform 0.2s"
|
|
84
82
|
}
|
|
85
83
|
}
|
|
86
|
-
}),
|
|
84
|
+
}), A = ({
|
|
87
85
|
styleType: m = "default",
|
|
88
86
|
title: s,
|
|
89
|
-
items:
|
|
87
|
+
items: d,
|
|
90
88
|
disabled: n,
|
|
91
|
-
icon:
|
|
89
|
+
icon: r,
|
|
92
90
|
...a
|
|
93
91
|
}) => {
|
|
94
92
|
const o = I();
|
|
@@ -104,16 +102,16 @@ const I = p({
|
|
|
104
102
|
...a,
|
|
105
103
|
children: [
|
|
106
104
|
/* @__PURE__ */ e(f, { asChild: !0, children: m === "iconButton" ? /* @__PURE__ */ e(
|
|
107
|
-
|
|
105
|
+
y,
|
|
108
106
|
{
|
|
109
|
-
icon:
|
|
107
|
+
icon: r || /* @__PURE__ */ e(l, { className: o.buttonIcon }),
|
|
110
108
|
shape: "rectangle",
|
|
111
109
|
disabled: n,
|
|
112
110
|
styleType: "outlined",
|
|
113
111
|
title: s
|
|
114
112
|
}
|
|
115
113
|
) : /* @__PURE__ */ e(
|
|
116
|
-
|
|
114
|
+
p,
|
|
117
115
|
{
|
|
118
116
|
styleType: "rectangle",
|
|
119
117
|
size: "medium",
|
|
@@ -123,7 +121,7 @@ const I = p({
|
|
|
123
121
|
children: s
|
|
124
122
|
}
|
|
125
123
|
) }),
|
|
126
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(b, { className: o.content, children: /* @__PURE__ */ e(S, { className: o.itemGroup, children: d.map((t) => /* @__PURE__ */ i(
|
|
127
125
|
v,
|
|
128
126
|
{
|
|
129
127
|
value: t.value,
|
|
@@ -140,6 +138,6 @@ const I = p({
|
|
|
140
138
|
);
|
|
141
139
|
};
|
|
142
140
|
export {
|
|
143
|
-
|
|
141
|
+
A as DropdownMenu,
|
|
144
142
|
I as DropdownMenuStyle
|
|
145
143
|
};
|
|
@@ -92,19 +92,19 @@ type CircleLargeProps = {
|
|
|
92
92
|
export declare const IconButton: React.ForwardRefExoticComponent<(Omit<{
|
|
93
93
|
shape?: "circle" | "rectangle" | undefined;
|
|
94
94
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
95
|
-
size?: "
|
|
95
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
96
96
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
97
97
|
icon: React.ReactElement;
|
|
98
98
|
} & RectangleProps, "ref"> | Omit<{
|
|
99
99
|
shape?: "circle" | "rectangle" | undefined;
|
|
100
100
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
101
|
-
size?: "
|
|
101
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
102
102
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
103
103
|
icon: React.ReactElement;
|
|
104
104
|
} & CircleProps, "ref"> | Omit<{
|
|
105
105
|
shape?: "circle" | "rectangle" | undefined;
|
|
106
106
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
107
|
-
size?: "
|
|
107
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
108
108
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
109
109
|
icon: React.ReactElement;
|
|
110
110
|
} & CircleLargeProps, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import a from "react";
|
|
3
|
-
import "../../styled-system/css/
|
|
4
|
-
import { cx as
|
|
5
|
-
|
|
6
|
-
import "../../styled-system/helpers.js";
|
|
7
|
-
const e = m({
|
|
3
|
+
import { cva as c } from "../../styled-system/css/cva.js";
|
|
4
|
+
import { cx as m } from "../../styled-system/css/cx.js";
|
|
5
|
+
const e = c({
|
|
8
6
|
base: {
|
|
9
7
|
position: "relative",
|
|
10
8
|
display: "inline-flex",
|
|
@@ -105,13 +103,13 @@ const e = m({
|
|
|
105
103
|
styleType: "filled",
|
|
106
104
|
size: "medium"
|
|
107
105
|
}
|
|
108
|
-
}),
|
|
106
|
+
}), g = a.forwardRef(
|
|
109
107
|
({ icon: o, className: s, ...r }, n) => {
|
|
110
108
|
const [i, t] = e.splitVariantProps(r), l = e(i);
|
|
111
|
-
return /* @__PURE__ */ d("button", { ref: n, className:
|
|
109
|
+
return /* @__PURE__ */ d("button", { ref: n, className: m(l, s), ...t, children: o });
|
|
112
110
|
}
|
|
113
111
|
);
|
|
114
112
|
export {
|
|
115
|
-
|
|
113
|
+
g as IconButton,
|
|
116
114
|
e as IconButtonStyle
|
|
117
115
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { NotificationBadge as b } from "../NotificationBadge/NotificationBadge.js";
|
|
3
|
+
import { sva as v } from "../../styled-system/css/sva.js";
|
|
3
4
|
import { cx as o } from "../../styled-system/css/cx.js";
|
|
4
|
-
import "../../styled-system/
|
|
5
|
-
|
|
6
|
-
import { NotificationBadge as v } from "../NotificationBadge/NotificationBadge.js";
|
|
7
|
-
const p = b({
|
|
5
|
+
import { css as c } from "../../styled-system/css/css.js";
|
|
6
|
+
const p = v({
|
|
8
7
|
slots: [
|
|
9
8
|
"root",
|
|
10
9
|
"wrapper",
|
|
@@ -127,7 +126,7 @@ const p = b({
|
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
|
-
}),
|
|
129
|
+
}), L = ({
|
|
131
130
|
leftIcon: a,
|
|
132
131
|
rightIcon: r,
|
|
133
132
|
title: m,
|
|
@@ -182,10 +181,10 @@ const p = b({
|
|
|
182
181
|
]
|
|
183
182
|
}
|
|
184
183
|
),
|
|
185
|
-
l && /* @__PURE__ */ t("div", { className: e.badge, children: /* @__PURE__ */ t(
|
|
184
|
+
l && /* @__PURE__ */ t("div", { className: e.badge, children: /* @__PURE__ */ t(b, { count: l, variant: "secondary" }) })
|
|
186
185
|
] });
|
|
187
186
|
};
|
|
188
187
|
export {
|
|
189
|
-
|
|
188
|
+
L as ListItem,
|
|
190
189
|
p as ListItemStyle
|
|
191
190
|
};
|