@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
package/README.md CHANGED
@@ -51,6 +51,32 @@ import { Button } from "@serendie/ui";
51
51
  <Button size="medium">Login</Button>;
52
52
  ```
53
53
 
54
+ #### Next.js App Routerでの使用
55
+
56
+ Next.js App RouterのServer Componentから使用する場合は、`@serendie/ui/client`からインポートすることで、`use client`ディレクティブを記述する必要がなくなります。
57
+
58
+ ```js
59
+ // app/page.tsx - Server Component
60
+ import { Button } from "@serendie/ui/client";
61
+
62
+ export default function Page() {
63
+ return <Button size="medium">Login</Button>;
64
+ }
65
+ ```
66
+
67
+ Client Componentでも同様に使用できます:
68
+
69
+ ```js
70
+ // app/client-component.tsx - Client Component
71
+ "use client";
72
+ import { Tabs, TabItem, ModalDialog } from "@serendie/ui/client";
73
+
74
+ export default function ClientComponent() {
75
+ // インタラクティブなコンポーネントも問題なく動作します
76
+ return <Tabs defaultValue="tab1">...</Tabs>;
77
+ }
78
+ ```
79
+
54
80
  ### テーマ切り替え
55
81
 
56
82
  Serendie Design Systemには5つのカラーテーマがあり、デザイントークンもそれに対応します。htmlタグなどに、`data-panda-theme`属性 (`konjo`, `asagi`, `sumire`, `tsutusji`, `kurikawa`)を付与することでカラーテーマを切り替えることができます。
@@ -0,0 +1 @@
1
+ export * from './index';
package/dist/client.js ADDED
@@ -0,0 +1,117 @@
1
+ "use client";
2
+ import { SerendiePreset as e } from "./preset.js";
3
+ import { Accordion as a } from "./components/Accordion/Accordion.js";
4
+ import { AccordionGroup as m } from "./components/Accordion/AccordionGroup.js";
5
+ import { Avatar as x, AvatarStyle as n } from "./components/Avatar/Avatar.js";
6
+ import { Badge as f, BadgeCloseButton as s, BadgeStyle as l } from "./components/Badge/Badge.js";
7
+ import { Banner as h } from "./components/Banner/Banner.js";
8
+ import { BottomNavigation as S } from "./components/BottomNavigation/BottomNavigation.js";
9
+ import { BottomNavigationItem as g, BottomNavigationItemStyle as y } from "./components/BottomNavigation/BottomNavigationItem.js";
10
+ import { Button as I, ButtonStyle as T } from "./components/Button/Button.js";
11
+ import { SerendieChartTheme as b } from "./components/Chart/SerendieChartTheme.js";
12
+ import { compactChartMargin as D, defaultChartMargin as v, getChartColor as M, getChartColors as w, legendChartMargin as A, spaciousChartMargin as L, useBarChartProps as N, useChartProps as R, useLineChartProps as F, usePieChartProps as G } from "./components/Chart/SerendieChartProps.js";
13
+ import { CheckBox as W, CheckBoxStyle as j, checkboxCheckedIconCss as q, checkboxIconCss as z, checkboxUncheckedIconCss as E } from "./components/CheckBox/CheckBox.js";
14
+ import { ChoiceBox as J, ChoiceBoxStyle as K } from "./components/ChoiceBox/ChoiceBox.js";
15
+ import { DashboardWidget as Q } from "./components/DashboardWidget/DashboardWidget.js";
16
+ import { DataTable as X } from "./components/DataTable/index.js";
17
+ import { Divider as Z, DividerStyle as _ } from "./components/Divider/Divider.js";
18
+ import { Drawer as oo } from "./components/Drawer/Drawer.js";
19
+ import { DropdownMenu as eo, DropdownMenuStyle as to } from "./components/DropdownMenu/DropdownMenu.js";
20
+ import { IconButton as po, IconButtonStyle as mo } from "./components/IconButton/IconButton.js";
21
+ import { List as xo } from "./components/List/List.js";
22
+ import { ListItem as co, ListItemStyle as fo } from "./components/List/ListItem.js";
23
+ import { ModalDialog as lo } from "./components/ModalDialog/ModalDialog.js";
24
+ import { NotificationBadge as Co } from "./components/NotificationBadge/NotificationBadge.js";
25
+ import { Pagination as Bo, PaginationStyle as go } from "./components/Pagination/Pagination.js";
26
+ import { PasswordField as uo } from "./components/PasswordField/PasswordField.js";
27
+ import { ProgressIndicator as To, ProgressIndicatorStyle as Po } from "./components/ProgressIndicator/ProgressIndicator.js";
28
+ import { RadioButton as ko, RadioButtonStyle as Do, radioCheckedIconCss as vo, radioIconCss as Mo, radioUncheckedIconCss as wo } from "./components/RadioButton/RadioButton.js";
29
+ import { RadioGroup as Lo } from "./components/RadioButton/RadioGroup.js";
30
+ import { Search as Ro, SearchStyle as Fo } from "./components/Search/Search.js";
31
+ import { Select as Uo, SelectStyle as Wo } from "./components/Select/Select.js";
32
+ import { Switch as qo, SwitchStyle as zo } from "./components/Switch/Switch.js";
33
+ import { Tabs as Ho, TabsStyle as Jo } from "./components/Tabs/Tabs.js";
34
+ import { TabItem as Oo, TabItemStyle as Qo } from "./components/Tabs/TabItem.js";
35
+ import { TextArea as Xo } from "./components/TextArea/TextArea.js";
36
+ import { TextField as Zo } from "./components/TextField/TextField.js";
37
+ import { Toast as $o, ToastStyle as or, toaster as rr } from "./components/Toast/Toast.js";
38
+ import { Tooltip as tr } from "./components/Tooltip/Tooltip.js";
39
+ import { TopAppBar as pr } from "./components/TopAppBar/TopAppBar.js";
40
+ import { DataTableComponent as ir } from "./components/DataTable/DataTableComponent.js";
41
+ export {
42
+ a as Accordion,
43
+ m as AccordionGroup,
44
+ x as Avatar,
45
+ n as AvatarStyle,
46
+ f as Badge,
47
+ s as BadgeCloseButton,
48
+ l as BadgeStyle,
49
+ h as Banner,
50
+ S as BottomNavigation,
51
+ g as BottomNavigationItem,
52
+ y as BottomNavigationItemStyle,
53
+ I as Button,
54
+ T as ButtonStyle,
55
+ W as CheckBox,
56
+ j as CheckBoxStyle,
57
+ J as ChoiceBox,
58
+ K as ChoiceBoxStyle,
59
+ Q as DashboardWidget,
60
+ X as DataTable,
61
+ ir as DataTableComponent,
62
+ Z as Divider,
63
+ _ as DividerStyle,
64
+ oo as Drawer,
65
+ eo as DropdownMenu,
66
+ to as DropdownMenuStyle,
67
+ po as IconButton,
68
+ mo as IconButtonStyle,
69
+ xo as List,
70
+ co as ListItem,
71
+ fo as ListItemStyle,
72
+ lo as ModalDialog,
73
+ Co as NotificationBadge,
74
+ Bo as Pagination,
75
+ go as PaginationStyle,
76
+ uo as PasswordField,
77
+ To as ProgressIndicator,
78
+ Po as ProgressIndicatorStyle,
79
+ ko as RadioButton,
80
+ Do as RadioButtonStyle,
81
+ Lo as RadioGroup,
82
+ Ro as Search,
83
+ Fo as SearchStyle,
84
+ Uo as Select,
85
+ Wo as SelectStyle,
86
+ b as SerendieChartTheme,
87
+ e as SerendiePreset,
88
+ qo as Switch,
89
+ zo as SwitchStyle,
90
+ Oo as TabItem,
91
+ Qo as TabItemStyle,
92
+ Ho as Tabs,
93
+ Jo as TabsStyle,
94
+ Xo as TextArea,
95
+ Zo as TextField,
96
+ $o as Toast,
97
+ or as ToastStyle,
98
+ tr as Tooltip,
99
+ pr as TopAppBar,
100
+ q as checkboxCheckedIconCss,
101
+ z as checkboxIconCss,
102
+ E as checkboxUncheckedIconCss,
103
+ D as compactChartMargin,
104
+ v as defaultChartMargin,
105
+ M as getChartColor,
106
+ w as getChartColors,
107
+ A as legendChartMargin,
108
+ vo as radioCheckedIconCss,
109
+ Mo as radioIconCss,
110
+ wo as radioUncheckedIconCss,
111
+ L as spaciousChartMargin,
112
+ rr as toaster,
113
+ N as useBarChartProps,
114
+ R as useChartProps,
115
+ F as useLineChartProps,
116
+ G as usePieChartProps
117
+ };
@@ -1,6 +1,6 @@
1
1
  import { AccordionItemProps } from '@ark-ui/react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/types';
3
- declare const AccordionStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"title" | "description" | "item" | "icon" | "itemIndicator", {
3
+ declare const AccordionStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"item" | "title" | "itemIndicator" | "icon" | "description", {
4
4
  isLeftIcon: {
5
5
  true: {
6
6
  item: {
@@ -1,7 +1,5 @@
1
1
  import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
2
  import { SerendieSymbolChevronDown as c } from "@serendie/symbols";
3
- import "../../styled-system/css/css.js";
4
- import "../../styled-system/helpers.js";
5
3
  import { sva as p } from "../../styled-system/css/sva.js";
6
4
  import { AccordionItem as l } from "../../node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js";
7
5
  import { AccordionItemTrigger as y } from "../../node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js";
@@ -65,21 +63,21 @@ const i = p({
65
63
  }
66
64
  }
67
65
  }
68
- }), N = ({
66
+ }), v = ({
69
67
  title: t,
70
- value: r,
71
- description: n,
68
+ value: n,
69
+ description: r,
72
70
  ...m
73
71
  }) => {
74
72
  const [d, a] = i.splitVariantProps(m), e = i(d);
75
- return /* @__PURE__ */ s(l, { value: t || r, ...a, children: [
73
+ return /* @__PURE__ */ s(l, { value: t || n, ...a, children: [
76
74
  /* @__PURE__ */ s(y, { className: e.item, children: [
77
75
  /* @__PURE__ */ o("span", { className: e.title, children: t }),
78
76
  /* @__PURE__ */ o(g, { className: e.itemIndicator, children: /* @__PURE__ */ o(c, { className: e.icon }) })
79
77
  ] }),
80
- /* @__PURE__ */ o(f, { className: e.description, children: n })
78
+ /* @__PURE__ */ o(f, { className: e.description, children: r })
81
79
  ] }, t);
82
80
  };
83
81
  export {
84
- N as Accordion
82
+ v as Accordion
85
83
  };
@@ -1,15 +1,11 @@
1
1
  import { styled as o } from "../../styled-system/jsx/factory.js";
2
- import "../../styled-system/jsx/is-valid-prop.js";
3
- import "react";
4
- import "../../styled-system/helpers.js";
5
- import "../../styled-system/css/css.js";
6
2
  import { AccordionRoot as r } from "../../node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js";
7
- const l = o(r, {
3
+ const t = o(r, {
8
4
  base: {
9
5
  display: "flex",
10
6
  flexDirection: "column"
11
7
  }
12
8
  });
13
9
  export {
14
- l as AccordionGroup
10
+ t as AccordionGroup
15
11
  };
@@ -1,13 +1,11 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { SerendieSymbolUserCircle as f } from "@serendie/symbols";
3
- import "../../styled-system/css/css.js";
4
- import { cx as g } from "../../styled-system/css/cx.js";
5
- import "../../styled-system/helpers.js";
6
- import { sva as C } from "../../styled-system/css/sva.js";
7
- import { AvatarRoot as u } from "../../node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js";
2
+ import { SerendieSymbolUserCircle as p } from "@serendie/symbols";
3
+ import { sva as g } from "../../styled-system/css/sva.js";
4
+ import { AvatarRoot as C } from "../../node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js";
5
+ import { cx as u } from "../../styled-system/css/cx.js";
8
6
  import { AvatarImage as b } from "../../node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js";
9
7
  import { AvatarFallback as y } from "../../node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js";
10
- const c = C({
8
+ const c = g({
11
9
  slots: ["root", "fallback", "image"],
12
10
  base: {
13
11
  root: {
@@ -64,16 +62,16 @@ const c = C({
64
62
  defaultVariants: {
65
63
  size: "medium"
66
64
  }
67
- }), _ = ({
65
+ }), L = ({
68
66
  src: i,
69
67
  alt: d,
70
68
  text: r,
71
69
  placeholder: n = "filled",
72
- className: m,
73
- ...h
70
+ className: h,
71
+ ...m
74
72
  }) => {
75
- const [o, p] = c.splitVariantProps(h), { size: l } = o, t = c({ size: l, ...o }), a = l === "small" ? 24 : l === "large" ? 80 : 40;
76
- return /* @__PURE__ */ e(u, { className: g(t.root, m), ...p, children: i ? /* @__PURE__ */ e(b, { className: t.image, src: i, alt: d }) : r ? /* @__PURE__ */ e(y, { className: t.fallback, children: r.slice(0, 2) }) : n === "outlined" ? /* @__PURE__ */ e(f, { width: a, height: a }) : /* @__PURE__ */ e(w, {}) });
73
+ const [o, f] = c.splitVariantProps(m), { size: l } = o, t = c({ size: l, ...o }), a = l === "small" ? 24 : l === "large" ? 80 : 40;
74
+ return /* @__PURE__ */ e(C, { className: u(t.root, h), ...f, children: i ? /* @__PURE__ */ e(b, { className: t.image, src: i, alt: d }) : r ? /* @__PURE__ */ e(y, { className: t.fallback, children: r.slice(0, 2) }) : n === "outlined" ? /* @__PURE__ */ e(p, { width: a, height: a }) : /* @__PURE__ */ e(w, {}) });
77
75
  }, w = () => /* @__PURE__ */ s("svg", { viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
78
76
  /* @__PURE__ */ s("g", { "clip-path": "url(#clip0_3661_24550)", children: [
79
77
  /* @__PURE__ */ e("rect", { width: "80", height: "80", rx: "40", fill: "#EFF2FC" }),
@@ -128,6 +126,6 @@ const c = C({
128
126
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_3661_24550", children: /* @__PURE__ */ e("rect", { width: "80", height: "80", fill: "white" }) }) })
129
127
  ] });
130
128
  export {
131
- _ as Avatar,
129
+ L as Avatar,
132
130
  c as AvatarStyle
133
131
  };
@@ -1,9 +1,7 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { SerendieSymbolClose as i } from "@serendie/symbols";
3
- import "../../styled-system/css/css.js";
4
- import { cx as p } from "../../styled-system/css/cx.js";
5
3
  import { cva as l } from "../../styled-system/css/cva.js";
6
- import "../../styled-system/helpers.js";
4
+ import { cx as y } from "../../styled-system/css/cx.js";
7
5
  const o = l({
8
6
  base: {
9
7
  display: "inline-flex",
@@ -97,26 +95,26 @@ const o = l({
97
95
  size: "medium",
98
96
  styleColor: "gray"
99
97
  }
100
- }), S = ({
98
+ }), x = ({
101
99
  children: e,
102
100
  closeButton: s,
103
101
  ...t
104
102
  }) => {
105
103
  const [c, { className: n, ...a }] = o.splitVariantProps(t), d = o(c);
106
- return /* @__PURE__ */ m("span", { className: p(d, n), ...a, children: [
104
+ return /* @__PURE__ */ m("span", { className: y(d, n), ...a, children: [
107
105
  e,
108
106
  s
109
107
  ] });
110
- }, y = l({
108
+ }, p = l({
111
109
  base: {
112
110
  cursor: "pointer"
113
111
  }
114
- }), v = (e) => {
115
- const s = y();
112
+ }), h = (e) => {
113
+ const s = p();
116
114
  return /* @__PURE__ */ r("button", { ...e, className: s, children: /* @__PURE__ */ r(i, { width: 12, height: 12 }) });
117
115
  };
118
116
  export {
119
- S as Badge,
120
- v as BadgeCloseButton,
117
+ x as Badge,
118
+ h as BadgeCloseButton,
121
119
  o as BadgeStyle
122
120
  };
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- declare const BannerStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "title" | "description" | "icon", {
3
+ declare const BannerStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"container" | "title" | "icon" | "description", {
4
4
  type: {
5
5
  information: {
6
6
  container: {
@@ -1,10 +1,8 @@
1
1
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
2
  import { SerendieSymbolAlertCircleFilled as p, SerendieSymbolAlertCircle as y } from "@serendie/symbols";
3
- import "../../styled-system/css/css.js";
4
- import { cx as b } from "../../styled-system/css/cx.js";
5
- import "../../styled-system/helpers.js";
6
- import { sva as g } from "../../styled-system/css/sva.js";
7
- const t = g({
3
+ import { sva as b } from "../../styled-system/css/sva.js";
4
+ import { cx as g } from "../../styled-system/css/cx.js";
5
+ const t = b({
8
6
  slots: ["container", "icon", "title", "description"],
9
7
  base: {
10
8
  container: {
@@ -66,14 +64,14 @@ const t = g({
66
64
  defaultVariants: {
67
65
  type: "information"
68
66
  }
69
- }), v = (n) => {
67
+ }), C = (n) => {
70
68
  const [s, { title: d, icon: r, description: m, className: a, ...l }] = t.splitVariantProps(n), o = t(s), i = s.type || "alert-circle";
71
- return /* @__PURE__ */ c("div", { className: b(o.container, a), ...l, children: [
69
+ return /* @__PURE__ */ c("div", { className: g(o.container, a), ...l, children: [
72
70
  /* @__PURE__ */ e("div", { className: o.icon, children: r || (i === "error" || i === "warning" ? /* @__PURE__ */ e(p, {}) : /* @__PURE__ */ e(y, {})) }),
73
71
  /* @__PURE__ */ e("h2", { className: o.title, children: d }),
74
72
  /* @__PURE__ */ e("p", { className: o.description, children: m })
75
73
  ] });
76
74
  };
77
75
  export {
78
- v as Banner
76
+ C as Banner
79
77
  };
@@ -1,16 +1,15 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { css as r } from "../../styled-system/css/css.js";
3
- import { cx as i } from "../../styled-system/css/cx.js";
4
- import "../../styled-system/helpers.js";
5
- const d = ({
2
+ import { cx as r } from "../../styled-system/css/cx.js";
3
+ import { css as i } from "../../styled-system/css/css.js";
4
+ const a = ({
6
5
  children: o,
7
- className: t,
8
- ...s
6
+ className: s,
7
+ ...t
9
8
  }) => /* @__PURE__ */ e(
10
9
  "nav",
11
10
  {
12
- className: i(
13
- r({
11
+ className: r(
12
+ i({
14
13
  display: "flex",
15
14
  alignItems: "center",
16
15
  justifyContent: "space-around",
@@ -19,12 +18,12 @@ const d = ({
19
18
  borderTop: "1px solid",
20
19
  borderTopColor: "sd.system.color.component.outline"
21
20
  }),
22
- t
21
+ s
23
22
  ),
24
- ...s,
23
+ ...t,
25
24
  children: o
26
25
  }
27
26
  );
28
27
  export {
29
- d as BottomNavigation
28
+ a as BottomNavigation
30
29
  };
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { RecipeVariantProps } from '../../../styled-system/css';
3
- export declare const BottomNavigationItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"label" | "root" | "icon" | "iconGroup" | "badge", {
3
+ export declare const BottomNavigationItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "label" | "root" | "iconGroup" | "badge", {
4
4
  isActive: {
5
5
  true: {
6
6
  label: {
@@ -1,9 +1,7 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import "../../styled-system/css/css.js";
3
- import { cx as p } from "../../styled-system/css/cx.js";
4
- import "../../styled-system/helpers.js";
2
+ import { NotificationBadge as p } from "../NotificationBadge/NotificationBadge.js";
5
3
  import { sva as d } from "../../styled-system/css/sva.js";
6
- import { NotificationBadge as y } from "../NotificationBadge/NotificationBadge.js";
4
+ import { cx as y } from "../../styled-system/css/cx.js";
7
5
  const i = d({
8
6
  slots: ["root", "iconGroup", "icon", "label", "badge"],
9
7
  base: {
@@ -63,7 +61,7 @@ const i = d({
63
61
  defaultVariants: {
64
62
  isActive: !1
65
63
  }
66
- }), v = ({
64
+ }), b = ({
67
65
  icon: r,
68
66
  label: a,
69
67
  count: l,
@@ -71,10 +69,10 @@ const i = d({
71
69
  ...c
72
70
  }) => {
73
71
  const [t, m] = i.splitVariantProps(c), o = i(t);
74
- return /* @__PURE__ */ s("button", { className: p(o.root, n), ...m, children: [
72
+ return /* @__PURE__ */ s("button", { className: y(o.root, n), ...m, children: [
75
73
  /* @__PURE__ */ s("div", { className: o.iconGroup, children: [
76
74
  /* @__PURE__ */ e("div", { className: o.badge, children: /* @__PURE__ */ e(
77
- y,
75
+ p,
78
76
  {
79
77
  count: l || 0,
80
78
  noNumber: t.dot,
@@ -87,6 +85,6 @@ const i = d({
87
85
  ] });
88
86
  };
89
87
  export {
90
- v as BottomNavigationItem,
88
+ b as BottomNavigationItem,
91
89
  i as BottomNavigationItemStyle
92
90
  };
@@ -117,14 +117,14 @@ type ButtonLoadingProps = {
117
117
  };
118
118
  export declare const Button: React.ForwardRefExoticComponent<(Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
119
119
  styleType?: "filled" | "outlined" | "ghost" | "rectangle" | undefined;
120
- size?: "medium" | "small" | undefined;
120
+ size?: "small" | "medium" | undefined;
121
121
  } & {
122
122
  leftIcon?: React.ReactElement;
123
123
  } & {
124
124
  rightIcon?: never;
125
125
  } & ButtonLoadingProps, "ref"> | Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
126
126
  styleType?: "filled" | "outlined" | "ghost" | "rectangle" | undefined;
127
- size?: "medium" | "small" | undefined;
127
+ size?: "small" | "medium" | undefined;
128
128
  } & {
129
129
  leftIcon?: never;
130
130
  } & {
@@ -1,13 +1,11 @@
1
1
  import { jsxs as g, jsx as i } from "react/jsx-runtime";
2
2
  import b from "react";
3
3
  import { ProgressIndicator as f } from "../ProgressIndicator/ProgressIndicator.js";
4
- import { css as h } from "../../styled-system/css/css.js";
5
- import { cx as x } from "../../styled-system/css/cx.js";
6
- import { cva as _ } from "../../styled-system/css/cva.js";
7
- import "../../styled-system/helpers.js";
4
+ import { cva as h } from "../../styled-system/css/cva.js";
5
+ import { css as x } from "../../styled-system/css/css.js";
6
+ import { cx as _ } from "../../styled-system/css/cx.js";
8
7
  import { styled as v } from "../../styled-system/jsx/factory.js";
9
- import "../../styled-system/jsx/is-valid-prop.js";
10
- const d = {
8
+ const r = {
11
9
  color: "sd.system.color.component.onSurface",
12
10
  outlineWidth: "sd.system.dimension.border.medium",
13
11
  outlineStyle: "solid",
@@ -27,7 +25,7 @@ const d = {
27
25
  color: "sd.system.color.interaction.disabledOnSurface",
28
26
  outline: "none"
29
27
  }
30
- }, l = _({
28
+ }, l = h({
31
29
  base: {
32
30
  borderRadius: "sd.system.dimension.radius.full",
33
31
  position: "relative",
@@ -89,9 +87,9 @@ const d = {
89
87
  color: "sd.system.color.interaction.disabledOnSurface"
90
88
  }
91
89
  },
92
- outlined: d,
90
+ outlined: r,
93
91
  rectangle: {
94
- ...d,
92
+ ...r,
95
93
  borderRadius: "sd.system.dimension.radius.medium"
96
94
  }
97
95
  },
@@ -125,12 +123,12 @@ const d = {
125
123
  position: "relative",
126
124
  zIndex: "sd.system.elevation.zIndex.base"
127
125
  }
128
- }), T = b.forwardRef(
126
+ }), P = b.forwardRef(
129
127
  (o, a) => {
130
128
  const [
131
- r,
129
+ d,
132
130
  { children: m, leftIcon: e, rightIcon: s, isLoading: t, className: c, ...y }
133
- ] = l.splitVariantProps(o), p = l(r), u = h(
131
+ ] = l.splitVariantProps(o), p = l(d), u = x(
134
132
  e || s ? o.size === "medium" ? {
135
133
  //アイコンがある側 `spacing.medium`、無い側は`spacing.extraLarge`
136
134
  paddingLeft: e ? "sd.system.dimension.spacing.medium" : "sd.system.dimension.spacing.extraLarge",
@@ -145,13 +143,13 @@ const d = {
145
143
  "button",
146
144
  {
147
145
  ref: a,
148
- className: x(p, u, c),
146
+ className: _(p, u, c),
149
147
  ...y,
150
148
  children: [
151
149
  t && /* @__PURE__ */ i(
152
150
  f,
153
151
  {
154
- size: r.size,
152
+ size: d.size,
155
153
  color: o.styleType === void 0 || o.styleType === "filled" ? "white" : "gray"
156
154
  }
157
155
  ),
@@ -164,6 +162,6 @@ const d = {
164
162
  }
165
163
  );
166
164
  export {
167
- T as Button,
165
+ P as Button,
168
166
  l as ButtonStyle
169
167
  };
@@ -1,11 +1,10 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { css as x } from "../../styled-system/css/css.js";
2
+ import x from "../../assets/checkboxChecked.svg.js";
3
+ import u from "../../assets/checkboxUnchecked.svg.js";
4
+ import k from "../../assets/checkboxIndeterminate.svg.js";
5
+ import { sva as b } from "../../styled-system/css/sva.js";
3
6
  import { cx as c } from "../../styled-system/css/cx.js";
4
- import "../../styled-system/helpers.js";
5
- import { sva as u } from "../../styled-system/css/sva.js";
6
- import k from "../../assets/checkboxChecked.svg.js";
7
- import b from "../../assets/checkboxUnchecked.svg.js";
8
- import g from "../../assets/checkboxIndeterminate.svg.js";
7
+ import { css as g } from "../../styled-system/css/css.js";
9
8
  import { CheckboxRoot as f } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js";
10
9
  import { CheckboxContext as C } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-context.js";
11
10
  import { CheckboxControl as S } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js";
@@ -45,7 +44,7 @@ const _ = {
45
44
  _disabled: {
46
45
  color: "color-mix(in srgb, {colors.sd.system.color.component.outline}, {colors.sd.system.color.interaction.hoveredOnPrimary});"
47
46
  }
48
- }, n = u({
47
+ }, n = b({
49
48
  slots: [
50
49
  "root",
51
50
  "itemControl",
@@ -93,7 +92,7 @@ const _ = {
93
92
  }
94
93
  }
95
94
  }
96
- }), L = ({
95
+ }), H = ({
97
96
  value: m,
98
97
  label: l,
99
98
  helperText: s,
@@ -102,7 +101,7 @@ const _ = {
102
101
  }) => {
103
102
  const [p, y] = n.splitVariantProps(a), o = n(p), h = c(
104
103
  o.root,
105
- s && x({ alignItems: "flex-start" })
104
+ s && g({ alignItems: "flex-start" })
106
105
  );
107
106
  return /* @__PURE__ */ t(
108
107
  f,
@@ -111,7 +110,7 @@ const _ = {
111
110
  className: c("group", h, d),
112
111
  ...y,
113
112
  children: [
114
- /* @__PURE__ */ e(C, { children: (r) => /* @__PURE__ */ e(S, { className: o.itemControl, children: r.checked === !0 ? /* @__PURE__ */ e(k, { className: o.checkedIcon }) : r.indeterminate === !0 ? /* @__PURE__ */ e(g, { className: o.checkedIcon }) : /* @__PURE__ */ e(b, { className: o.uncheckedIcon }) }) }),
113
+ /* @__PURE__ */ e(C, { children: (r) => /* @__PURE__ */ e(S, { className: o.itemControl, children: r.checked === !0 ? /* @__PURE__ */ e(x, { className: o.checkedIcon }) : r.indeterminate === !0 ? /* @__PURE__ */ e(k, { className: o.checkedIcon }) : /* @__PURE__ */ e(u, { className: o.uncheckedIcon }) }) }),
115
114
  /* @__PURE__ */ t("div", { className: o.itemTextGroup, children: [
116
115
  /* @__PURE__ */ e(i, { className: o.itemText, children: l }),
117
116
  s && /* @__PURE__ */ e(i, { className: o.helperText, children: s })
@@ -122,7 +121,7 @@ const _ = {
122
121
  );
123
122
  };
124
123
  export {
125
- L as CheckBox,
124
+ H as CheckBox,
126
125
  n as CheckBoxStyle,
127
126
  v as checkboxCheckedIconCss,
128
127
  _ as checkboxIconCss,