@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.
Files changed (75) hide show
  1. package/README.md +26 -0
  2. package/dist/client.d.ts +1 -0
  3. package/dist/client.js +117 -0
  4. package/dist/components/Accordion/Accordion.d.ts +1 -1
  5. package/dist/components/Accordion/Accordion.js +6 -8
  6. package/dist/components/Accordion/AccordionGroup.js +2 -6
  7. package/dist/components/Avatar/Avatar.js +11 -13
  8. package/dist/components/Badge/Badge.js +8 -10
  9. package/dist/components/Banner/Banner.d.ts +1 -1
  10. package/dist/components/Banner/Banner.js +6 -8
  11. package/dist/components/BottomNavigation/BottomNavigation.js +10 -11
  12. package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
  13. package/dist/components/BottomNavigation/BottomNavigationItem.js +6 -8
  14. package/dist/components/Button/Button.d.ts +2 -2
  15. package/dist/components/Button/Button.js +13 -15
  16. package/dist/components/CheckBox/CheckBox.js +10 -11
  17. package/dist/components/ChoiceBox/ChoiceBox.js +20 -22
  18. package/dist/components/DashboardWidget/DashboardWidget.js +11 -13
  19. package/dist/components/DataTable/table/BodyCell.js +2 -4
  20. package/dist/components/DataTable/table/HeaderCell.js +6 -7
  21. package/dist/components/DataTable/table/HeaderCheckbox.js +8 -9
  22. package/dist/components/DataTable/table/HeaderRow.js +2 -3
  23. package/dist/components/DataTable/table/Root.js +4 -6
  24. package/dist/components/DataTable/table/Row.js +2 -4
  25. package/dist/components/DataTable/table/Tr.js +6 -7
  26. package/dist/components/Divider/Divider.js +6 -8
  27. package/dist/components/Drawer/Drawer.js +11 -13
  28. package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
  29. package/dist/components/DropdownMenu/DropdownMenu.js +13 -15
  30. package/dist/components/IconButton/IconButton.d.ts +3 -3
  31. package/dist/components/IconButton/IconButton.js +6 -8
  32. package/dist/components/List/ListItem.js +7 -8
  33. package/dist/components/ModalDialog/ModalDialog.js +12 -14
  34. package/dist/components/NotificationBadge/NotificationBadge.js +6 -8
  35. package/dist/components/Pagination/Pagination.d.ts +1 -1
  36. package/dist/components/Pagination/Pagination.js +8 -10
  37. package/dist/components/ProgressIndicator/ProgressIndicator.js +9 -11
  38. package/dist/components/RadioButton/RadioButton.d.ts +1 -1
  39. package/dist/components/RadioButton/RadioButton.js +14 -15
  40. package/dist/components/Search/Search.d.ts +1 -1
  41. package/dist/components/Search/Search.js +17 -21
  42. package/dist/components/Select/Select.d.ts +1 -1
  43. package/dist/components/Select/Select.js +16 -17
  44. package/dist/components/Switch/Switch.js +13 -14
  45. package/dist/components/Tabs/TabItem.d.ts +1 -1
  46. package/dist/components/Tabs/TabItem.js +8 -10
  47. package/dist/components/Tabs/Tabs.js +8 -10
  48. package/dist/components/TextArea/TextArea.js +8 -10
  49. package/dist/components/TextField/TextField.js +6 -7
  50. package/dist/components/Toast/Toast.d.ts +1 -1
  51. package/dist/components/Toast/Toast.js +8 -10
  52. package/dist/components/Tooltip/Tooltip.js +17 -19
  53. package/dist/components/TopAppBar/TopAppBar.js +14 -16
  54. package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +3 -3
  55. package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +3 -3
  56. package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +3 -3
  57. package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +3 -3
  58. package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +3 -3
  59. package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +2 -2
  60. package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +3 -3
  61. package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +3 -3
  62. package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +3 -3
  63. package/dist/node_modules/@zag-js/checkbox/dist/index.js +10 -10
  64. package/dist/node_modules/@zag-js/combobox/dist/index.js +4 -4
  65. package/dist/node_modules/@zag-js/menu/dist/index.js +31 -31
  66. package/dist/node_modules/@zag-js/radio-group/dist/index.js +10 -10
  67. package/dist/node_modules/@zag-js/select/dist/index.js +11 -11
  68. package/dist/node_modules/@zag-js/switch/dist/index.js +10 -10
  69. package/dist/node_modules/@zag-js/tabs/dist/index.js +12 -12
  70. package/dist/node_modules/@zag-js/toast/dist/index.js +5 -5
  71. package/dist/node_modules/@zag-js/tooltip/dist/index.js +4 -4
  72. package/dist/styled-system/css/css.js +3 -3
  73. package/dist/styled-system/jsx/factory.js +12 -12
  74. package/dist/styled-system/patterns/box.js +3 -4
  75. 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 "../../styled-system/css/css.js";
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 x from "../../assets/checkboxIndeterminate.svg.js";
9
- import l from "../../assets/radioChecked.svg.js";
10
- import b from "../../assets/radioUnchecked.svg.js";
11
- import { checkboxUncheckedIconCss as f, checkboxCheckedIconCss as u, checkboxIconCss as U } from "../CheckBox/CheckBox.js";
12
- import { radioUncheckedIconCss as g, radioCheckedIconCss as N, radioIconCss as R } from "../RadioButton/RadioButton.js";
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 = I({
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: R,
36
- radioCheckedIcon: N,
37
- radioUncheckedIcon: g,
38
- checkboxItem: U,
39
- checkboxCheckedIcon: u,
40
- checkboxUncheckedIcon: f
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(l, { className: e.radioCheckedIcon }) : /* @__PURE__ */ o(b, { className: e.radioUncheckedIcon }) }) }),
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(p, { className: e.checkboxCheckedIcon }) : c.indeterminate === !0 ? /* @__PURE__ */ o(
71
- x,
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
- $ as ChoiceBox,
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/css.js";
4
- import { cx as y } from "../../styled-system/css/cx.js";
5
- import "../../styled-system/helpers.js";
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
- }), N = ({
124
- values: t,
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: t === void 0 ? "noValue" : t.length === 1 ? "singleValue" : "doubleValue"
132
- }), m = ({ label: s, value: r, unit: p }) => /* @__PURE__ */ l("div", { className: e.areaValue, children: [
133
- /* @__PURE__ */ a("h3", { className: e.areaValueLabel, children: s }),
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: y(e.root, o), ...d, children: [
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
- t == null ? void 0 : t.map((s, r) => /* @__PURE__ */ a(m, { ...s }, r)),
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
- N as DashboardWidget
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", g = ({
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
- g as BodyCell
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 { css as p } from "../../../styled-system/css/css.js";
4
- import { cx as f } from "../../../styled-system/css/cx.js";
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
- }), C = ({
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: f(u({ size: d, state: m }), r),
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: p({
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
- C as HeaderCell
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 { css as r } from "../../../styled-system/css/css.js";
5
- import { cx as o } from "../../../styled-system/css/cx.js";
6
- import "../../../styled-system/helpers.js";
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: o(
14
- r({
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: o(
24
- r({
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
- x as HeaderCheckbox
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
- import "../../../styled-system/helpers.js";
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
- p as HeaderRow
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/css.js";
3
- import { cx as s } from "../../../styled-system/css/cx.js";
4
- import "../../../styled-system/helpers.js";
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: s(o.container, t), children: /* @__PURE__ */ e("table", { role: "table", className: o.table, children: r }) });
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 v({
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
- v as Row
87
+ g as Row
90
88
  };
@@ -1,8 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { css as m } from "../../../styled-system/css/css.js";
3
- import { cx as e } from "../../../styled-system/css/cx.js";
4
- import "../../../styled-system/helpers.js";
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: e(
15
- m({
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
- n as Tr
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/css.js";
3
- import { cx as n } from "../../styled-system/css/cx.js";
4
- import { cva as a } from "../../styled-system/css/cva.js";
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
- }), b = (e) => {
40
+ }), h = (e) => {
43
41
  const [o, t] = r.splitVariantProps(e), { className: s, ...i } = t;
44
- return /* @__PURE__ */ d("hr", { className: n(r(o), s), ...i });
42
+ return /* @__PURE__ */ d("hr", { className: a(r(o), s), ...i });
45
43
  };
46
44
  export {
47
- b as Divider,
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 "../../styled-system/css/css.js";
4
- import { cx as s } from "../../styled-system/css/cx.js";
5
- import "../../styled-system/helpers.js";
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 r = g({
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
- }), E = ({
74
- isOpen: n,
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] = r.splitVariantProps(m), t = r(d);
81
- return /* @__PURE__ */ e(x, { open: n, ...c, children: /* @__PURE__ */ o(h, { children: [
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
- f,
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
- E as Drawer
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" | "button" | "item" | "itemGroup" | "itemIcon" | "buttonIcon", import('../../../styled-system/types').SlotRecipeVariantRecord<"content" | "button" | "item" | "itemGroup" | "itemIcon" | "buttonIcon">>;
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 "../../styled-system/css/css.js";
4
- import "../../styled-system/helpers.js";
5
- import { sva as p } from "../../styled-system/css/sva.js";
6
- import { Button as y } from "../Button/Button.js";
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 = p({
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
- }), Y = ({
84
+ }), A = ({
87
85
  styleType: m = "default",
88
86
  title: s,
89
- items: r,
87
+ items: d,
90
88
  disabled: n,
91
- icon: d,
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
- u,
105
+ y,
108
106
  {
109
- icon: d || /* @__PURE__ */ e(l, { className: o.buttonIcon }),
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
- y,
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(g, { children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(b, { className: o.content, children: /* @__PURE__ */ e(S, { className: o.itemGroup, children: r.map((t) => /* @__PURE__ */ i(
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
- Y as DropdownMenu,
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?: "medium" | "small" | "large" | undefined;
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?: "medium" | "small" | "large" | undefined;
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?: "medium" | "small" | "large" | undefined;
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/css.js";
4
- import { cx as c } from "../../styled-system/css/cx.js";
5
- import { cva as m } from "../../styled-system/css/cva.js";
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
- }), b = a.forwardRef(
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: c(l, s), ...t, children: o });
109
+ return /* @__PURE__ */ d("button", { ref: n, className: m(l, s), ...t, children: o });
112
110
  }
113
111
  );
114
112
  export {
115
- b as IconButton,
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 { css as c } from "../../styled-system/css/css.js";
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/helpers.js";
5
- import { sva as b } from "../../styled-system/css/sva.js";
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
- }), k = ({
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(v, { count: l, variant: "secondary" }) })
184
+ l && /* @__PURE__ */ t("div", { className: e.badge, children: /* @__PURE__ */ t(b, { count: l, variant: "secondary" }) })
186
185
  ] });
187
186
  };
188
187
  export {
189
- k as ListItem,
188
+ L as ListItem,
190
189
  p as ListItemStyle
191
190
  };