@serendie/ui 2.3.0 → 2.4.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.
@@ -1,16 +1,17 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import { Button as i } from "../Button/Button.js";
3
- import { Portal as c } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
4
- import { sva as g } from "../../styled-system/css/sva.js";
5
- import { DialogRoot as y } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js";
6
- import { DialogBackdrop as x } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js";
7
- import { DialogPositioner as f } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js";
8
- import { DialogContent as h } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js";
9
- import { cx as u } from "../../styled-system/css/cx.js";
10
- import { DialogTitle as b } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js";
11
- import { DialogDescription as D } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js";
12
- import { DialogCloseTrigger as v } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js";
13
- const I = g({
3
+ import { useTranslations as y } from "../../i18n/index.js";
4
+ import { Portal as x } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
5
+ import { sva as f } from "../../styled-system/css/sva.js";
6
+ import { DialogRoot as h } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js";
7
+ import { DialogBackdrop as u } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js";
8
+ import { DialogPositioner as b } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js";
9
+ import { DialogContent as D } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js";
10
+ import { cx as v } from "../../styled-system/css/cx.js";
11
+ import { DialogTitle as I } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js";
12
+ import { DialogDescription as k } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js";
13
+ import { DialogCloseTrigger as C } from "../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js";
14
+ const N = f({
14
15
  slots: [
15
16
  "backdrop",
16
17
  "content",
@@ -74,31 +75,32 @@ const I = g({
74
75
  }
75
76
  }
76
77
  }
77
- }), R = ({
78
+ }), q = ({
78
79
  isOpen: n,
79
- title: d,
80
- cancelButtonLabel: a,
80
+ title: a,
81
+ cancelButtonLabel: d,
81
82
  submitButtonLabel: r,
82
83
  onButtonClick: m,
84
+ submitButtonProps: l,
83
85
  children: p,
84
- className: l,
85
- ...o
86
+ className: c,
87
+ ...t
86
88
  }) => {
87
- const s = I(o);
88
- return /* @__PURE__ */ e(y, { open: n, ...o, children: /* @__PURE__ */ t(c, { children: [
89
- /* @__PURE__ */ e(x, { className: s.backdrop }),
90
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ t(h, { className: u(s.content, l), children: [
91
- /* @__PURE__ */ t("div", { className: s.contentInner, children: [
92
- /* @__PURE__ */ e(b, { className: s.title, children: d }),
93
- /* @__PURE__ */ e(D, { className: s.description, children: p })
89
+ const g = y(), s = N(t);
90
+ return /* @__PURE__ */ e(h, { open: n, ...t, children: /* @__PURE__ */ o(x, { children: [
91
+ /* @__PURE__ */ e(u, { className: s.backdrop }),
92
+ /* @__PURE__ */ e(b, { children: /* @__PURE__ */ o(D, { className: v(s.content, c), children: [
93
+ /* @__PURE__ */ o("div", { className: s.contentInner, children: [
94
+ /* @__PURE__ */ e(I, { className: s.title, children: a }),
95
+ /* @__PURE__ */ e(k, { className: s.description, children: p })
94
96
  ] }),
95
- /* @__PURE__ */ t("div", { className: s.buttonWrapper, children: [
96
- /* @__PURE__ */ e(i, { onClick: m, children: r }),
97
- /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(i, { styleType: "ghost", children: a || "閉じる" }) })
97
+ /* @__PURE__ */ o("div", { className: s.buttonWrapper, children: [
98
+ /* @__PURE__ */ e(i, { ...l, onClick: m, children: r }),
99
+ /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ e(i, { styleType: "ghost", children: d || g("modalDialog.close") }) })
98
100
  ] })
99
101
  ] }) })
100
102
  ] }) });
101
103
  };
102
104
  export {
103
- R as ModalDialog
105
+ q as ModalDialog
104
106
  };
@@ -1,16 +1,17 @@
1
- import { jsx as e, jsxs as T, Fragment as g } from "react/jsx-runtime";
2
- import { SerendieSymbolChevronLeft as S, SerendieSymbolChevronRight as C } from "@serendie/symbols";
3
- import _, { useState as I } from "react";
1
+ import { jsx as e, jsxs as C, Fragment as c } from "react/jsx-runtime";
2
+ import { SerendieSymbolChevronLeft as _, SerendieSymbolChevronRight as I } from "@serendie/symbols";
3
+ import N, { useState as j } from "react";
4
4
  import { IconButton as m } from "../IconButton/IconButton.js";
5
- import { sva as N } from "../../styled-system/css/sva.js";
6
- import { PaginationRoot as j } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js";
7
- import { cx as z } from "../../styled-system/css/cx.js";
8
- import { PaginationContext as R } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-context.js";
9
- import { PaginationPrevTrigger as w } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js";
10
- import { PaginationItem as O } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-item.js";
11
- import { PaginationEllipsis as W } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js";
12
- import { PaginationNextTrigger as F } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js";
13
- const L = N({
5
+ import { useTranslations as z } from "../../i18n/index.js";
6
+ import { sva as R } from "../../styled-system/css/sva.js";
7
+ import { PaginationRoot as w } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js";
8
+ import { cx as O } from "../../styled-system/css/cx.js";
9
+ import { PaginationContext as W } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-context.js";
10
+ import { PaginationPrevTrigger as F } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js";
11
+ import { PaginationItem as L } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-item.js";
12
+ import { PaginationEllipsis as B } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js";
13
+ import { PaginationNextTrigger as E } from "../../node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js";
14
+ const M = R({
14
15
  slots: ["root", "item", "ellipsis", "prevTrigger", "nextTrigger"],
15
16
  base: {
16
17
  root: {
@@ -80,102 +81,104 @@ const L = N({
80
81
  defaultVariants: {
81
82
  size: "medium"
82
83
  }
83
- }), Q = _.forwardRef(
84
+ }), Z = N.forwardRef(
84
85
  ({
85
86
  count: d,
86
- pageSize: c = 1,
87
- page: o,
88
- onPageChange: n,
89
- siblingCount: p = 2,
90
- className: h,
91
- size: y = "medium",
92
- ...f
93
- }, u) => {
94
- const [b, P] = I(1), i = L({ size: y }), v = {
87
+ pageSize: p = 1,
88
+ page: r,
89
+ onPageChange: l,
90
+ siblingCount: h = 2,
91
+ className: y,
92
+ size: f = "medium",
93
+ ...u
94
+ }, P) => {
95
+ const [b, v] = j(1), a = M({ size: f }), x = (t) => {
96
+ r || v(t.page), l == null || l(t);
97
+ }, i = z(), T = {
95
98
  count: d,
96
- pageSize: c,
97
- siblingCount: p,
98
- ...o ? { page: o } : { page: b },
99
- onPageChange: (t) => {
100
- o || P(t.page), n == null || n(t);
101
- }
99
+ pageSize: p,
100
+ siblingCount: h,
101
+ ...r ? { page: r } : { page: b },
102
+ onPageChange: x
102
103
  };
103
104
  return /* @__PURE__ */ e(
104
- j,
105
+ w,
105
106
  {
106
- ref: u,
107
- className: z(i.root, h),
108
- ...v,
109
- ...f,
110
- children: /* @__PURE__ */ e(R, { children: (t) => {
111
- const r = t.page <= 1, x = Math.ceil(d / c), a = t.page >= x;
112
- return /* @__PURE__ */ T(g, { children: [
107
+ ref: P,
108
+ className: O(a.root, y),
109
+ ...T,
110
+ ...u,
111
+ children: /* @__PURE__ */ e(W, { children: (t) => {
112
+ const n = t.page <= 1, S = Math.ceil(d / p), o = t.page >= S;
113
+ return /* @__PURE__ */ C(c, { children: [
113
114
  /* @__PURE__ */ e(
114
- w,
115
+ F,
115
116
  {
116
- className: i.prevTrigger,
117
- disabled: r,
117
+ className: a.prevTrigger,
118
+ disabled: n,
118
119
  asChild: !0,
119
120
  children: /* @__PURE__ */ e(
120
121
  m,
121
122
  {
122
- icon: /* @__PURE__ */ e(S, {}),
123
+ icon: /* @__PURE__ */ e(_, {}),
123
124
  shape: "rectangle",
124
125
  styleType: "ghost",
125
126
  size: "small",
126
- "aria-label": r ? "最初のページです" : "前のページへ",
127
- disabled: r,
128
- title: r ? "最初のページです" : "前のページへ"
127
+ "aria-label": i(n ? "pagination.firstPage" : "pagination.previousPage"),
128
+ disabled: n,
129
+ title: i(n ? "pagination.firstPage" : "pagination.previousPage")
129
130
  }
130
131
  )
131
132
  }
132
133
  ),
133
134
  t.pages.map(
134
- (s, l) => s.type === "page" ? /* @__PURE__ */ e(
135
- O,
135
+ (s, g) => s.type === "page" ? /* @__PURE__ */ e(
136
+ L,
136
137
  {
137
138
  ...s,
138
- className: i.item,
139
+ className: a.item,
139
140
  asChild: !0,
140
141
  children: /* @__PURE__ */ e(
141
142
  m,
142
143
  {
143
- icon: /* @__PURE__ */ e(g, { children: s.value }),
144
+ icon: /* @__PURE__ */ e(c, { children: s.value }),
144
145
  shape: "rectangle",
145
146
  styleType: "ghost",
146
147
  size: "small",
147
- "aria-label": `ページ${s.value}へ移動`,
148
- title: `ページ${s.value}へ移動`
148
+ "aria-label": i("pagination.goToPage", {
149
+ page: s.value
150
+ }),
151
+ title: i("pagination.goToPage", { page: s.value })
149
152
  }
150
153
  )
151
154
  },
152
- l
155
+ g
153
156
  ) : /* @__PURE__ */ e(
154
- W,
157
+ B,
155
158
  {
156
- index: l,
157
- className: i.ellipsis,
159
+ index: g,
160
+ className: a.ellipsis,
158
161
  children: "…"
159
162
  },
160
- l
163
+ g
161
164
  )
162
165
  ),
163
166
  /* @__PURE__ */ e(
164
- F,
167
+ E,
165
168
  {
166
- className: i.nextTrigger,
167
- disabled: a,
169
+ className: a.nextTrigger,
170
+ disabled: o,
168
171
  asChild: !0,
169
172
  children: /* @__PURE__ */ e(
170
173
  m,
171
174
  {
172
- icon: /* @__PURE__ */ e(C, {}),
175
+ icon: /* @__PURE__ */ e(I, {}),
173
176
  shape: "rectangle",
174
177
  styleType: "ghost",
175
178
  size: "small",
176
- "aria-label": a ? "最後のページです" : "次のページへ",
177
- disabled: a,
178
- title: a ? "最後のページです" : "次のページへ"
179
+ "aria-label": i(o ? "pagination.lastPage" : "pagination.nextPage"),
180
+ disabled: o,
181
+ title: i(o ? "pagination.lastPage" : "pagination.nextPage")
179
182
  }
180
183
  )
181
184
  }
@@ -187,6 +190,6 @@ const L = N({
187
190
  }
188
191
  );
189
192
  export {
190
- Q as Pagination,
191
- L as PaginationStyle
193
+ Z as Pagination,
194
+ M as PaginationStyle
192
195
  };
@@ -1,38 +1,39 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as n, useState as d } from "react";
3
- import { TextField as m } from "../TextField/TextField.js";
4
- import { SerendieSymbolEyeHidden as p, SerendieSymbolEye as y } from "@serendie/symbols";
5
- import { IconButton as g } from "../IconButton/IconButton.js";
6
- const w = n(
7
- ({ disableToggle: s = !1, disabled: e, ...r }, i) => {
8
- const [t, l] = d(!1);
2
+ import { forwardRef as m, useState as p } from "react";
3
+ import { TextField as w } from "../TextField/TextField.js";
4
+ import { SerendieSymbolEyeHidden as y, SerendieSymbolEye as c } from "@serendie/symbols";
5
+ import { IconButton as f } from "../IconButton/IconButton.js";
6
+ import { useTranslations as g } from "../../i18n/index.js";
7
+ const P = m(
8
+ ({ disableToggle: r = !1, disabled: t, ...i }, a) => {
9
+ const e = g(), [s, d] = p(!1), l = r ? void 0 : /* @__PURE__ */ o(
10
+ f,
11
+ {
12
+ type: "button",
13
+ onClick: () => {
14
+ d((n) => !n);
15
+ },
16
+ styleType: "ghost",
17
+ size: "small",
18
+ shape: "circle",
19
+ "aria-label": e(s ? "passwordField.hidePassword" : "passwordField.showPassword"),
20
+ disabled: t,
21
+ icon: s ? /* @__PURE__ */ o(y, {}) : /* @__PURE__ */ o(c, {})
22
+ }
23
+ );
9
24
  return /* @__PURE__ */ o(
10
- m,
25
+ w,
11
26
  {
12
- type: t ? "text" : "password",
13
- rightContent: s ? void 0 : /* @__PURE__ */ o(
14
- g,
15
- {
16
- type: "button",
17
- onClick: () => {
18
- l((a) => !a);
19
- },
20
- styleType: "ghost",
21
- size: "small",
22
- shape: "circle",
23
- "aria-label": t ? "パスワードを隠す" : "パスワードを表示",
24
- disabled: e,
25
- icon: t ? /* @__PURE__ */ o(p, {}) : /* @__PURE__ */ o(y, {})
26
- }
27
- ),
28
- disabled: e,
29
- ...r,
30
- ref: i
27
+ type: s ? "text" : "password",
28
+ rightContent: l,
29
+ disabled: t,
30
+ ...i,
31
+ ref: a
31
32
  }
32
33
  );
33
34
  }
34
35
  );
35
- w.displayName = "PasswordField";
36
+ P.displayName = "PasswordField";
36
37
  export {
37
- w as PasswordField
38
+ P as PasswordField
38
39
  };
@@ -48,6 +48,13 @@ export declare const SearchStyle: import('../../../styled-system/types').SlotRec
48
48
  }>;
49
49
  type SearchStyleProps = ComboboxRootProps<string> & RecipeVariantProps<typeof SearchStyle> & {
50
50
  items?: string[];
51
+ /**
52
+ * Portalを使用するかどうか
53
+ * - `true` (デフォルト): body直下にポータルする。ModalDialog/Drawer内にある場合は自動的にそのコンテンツ内にポータルされる
54
+ * - `false`: ポータルを使用せず、その場にレンダリングする
55
+ * @default true
56
+ */
57
+ portalled?: boolean;
51
58
  };
52
59
  export declare const Search: React.FC<SearchStyleProps>;
53
60
  export {};
@@ -1,20 +1,21 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { SerendieSymbolMagnifyingGlass as p, SerendieSymbolClose as g } from "@serendie/symbols";
3
- import { createListCollection as y } from "../../node_modules/@ark-ui/react/dist/components/collection/list-collection.js";
4
- import { Portal as x } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
5
- import { Box as b } from "../../styled-system/jsx/box.js";
6
- import { sva as u } from "../../styled-system/css/sva.js";
7
- import { ComboboxRoot as h } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js";
8
- import { ComboboxControl as f } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js";
9
- import { cx as S } from "../../styled-system/css/cx.js";
10
- import { ComboboxInput as C } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js";
11
- import { ComboboxTrigger as w } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js";
12
- import { ComboboxPositioner as I } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js";
13
- import { ComboboxContent as v } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js";
14
- import { ComboboxItemGroup as B } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js";
15
- import { ComboboxItem as N } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js";
16
- import { ComboboxItemText as _ } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js";
17
- const d = u({
2
+ import { SerendieSymbolMagnifyingGlass as x, SerendieSymbolClose as b } from "@serendie/symbols";
3
+ import { useAutoPortalContainer as u } from "../../hooks/useAutoPortalContainer.js";
4
+ import { createListCollection as f } from "../../node_modules/@ark-ui/react/dist/components/collection/list-collection.js";
5
+ import { Portal as h } from "../../node_modules/@ark-ui/react/dist/components/portal/portal.js";
6
+ import { Box as S } from "../../styled-system/jsx/box.js";
7
+ import { sva as C } from "../../styled-system/css/sva.js";
8
+ import { ComboboxRoot as w } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js";
9
+ import { ComboboxControl as I } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js";
10
+ import { cx as v } from "../../styled-system/css/cx.js";
11
+ import { ComboboxInput as B } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js";
12
+ import { ComboboxTrigger as N } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js";
13
+ import { ComboboxPositioner as R } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js";
14
+ import { ComboboxContent as _ } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js";
15
+ import { ComboboxItemGroup as P } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js";
16
+ import { ComboboxItem as E } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js";
17
+ import { ComboboxItemText as T } from "../../node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js";
18
+ const d = C({
18
19
  slots: [
19
20
  "input",
20
21
  "control",
@@ -143,16 +144,17 @@ const d = u({
143
144
  defaultVariants: {
144
145
  size: "medium"
145
146
  }
146
- }), F = ({
147
+ }), X = ({
147
148
  items: i = [],
148
- ...a
149
+ portalled: t = !0,
150
+ ...r
149
151
  }) => {
150
- const [r, l] = d.splitVariantProps(a), s = d(r), { collection: E, ...t } = l, n = y({ items: i });
152
+ const [l, c] = d.splitVariantProps(r), s = d(l), { collection: L, ...n } = c, { triggerRef: p, portalContainerRef: g } = u(t), m = f({ items: i });
151
153
  return /* @__PURE__ */ e(
152
- h,
154
+ w,
153
155
  {
154
- ...t,
155
- collection: n,
156
+ ...n,
157
+ collection: m,
156
158
  lazyMount: !0,
157
159
  unmountOnExit: !0,
158
160
  positioning: {
@@ -162,34 +164,41 @@ const d = u({
162
164
  }
163
165
  },
164
166
  children: [
165
- /* @__PURE__ */ e(f, { className: S(s.control, t.className), children: [
166
- /* @__PURE__ */ o("div", { className: s.iconBox, children: /* @__PURE__ */ o(p, { className: s.icon }) }),
167
- /* @__PURE__ */ o(C, { className: s.input }),
168
- i.length > 0 && /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o("div", { className: s.closeIcon, children: /* @__PURE__ */ o(g, { className: s.icon }) }) })
169
- ] }),
170
- /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(I, { children: /* @__PURE__ */ o(v, { className: s.combobox, children: /* @__PURE__ */ o(B, { id: "framework", children: n.items.map((m, c) => /* @__PURE__ */ e(
171
- N,
167
+ /* @__PURE__ */ e(
168
+ I,
172
169
  {
173
- item: m,
170
+ className: v(s.control, n.className),
171
+ ref: p,
172
+ children: [
173
+ /* @__PURE__ */ o("div", { className: s.iconBox, children: /* @__PURE__ */ o(x, { className: s.icon }) }),
174
+ /* @__PURE__ */ o(B, { className: s.input }),
175
+ i.length > 0 && /* @__PURE__ */ o(N, { children: /* @__PURE__ */ o("div", { className: s.closeIcon, children: /* @__PURE__ */ o(b, { className: s.icon }) }) })
176
+ ]
177
+ }
178
+ ),
179
+ /* @__PURE__ */ o(h, { disabled: !t, container: g, children: /* @__PURE__ */ o(R, { children: /* @__PURE__ */ o(_, { className: s.combobox, children: /* @__PURE__ */ o(P, { id: "framework", children: m.items.map((a, y) => /* @__PURE__ */ e(
180
+ E,
181
+ {
182
+ item: a,
174
183
  className: s.comboboxItem,
175
184
  children: [
176
185
  /* @__PURE__ */ o(
177
- b,
186
+ S,
178
187
  {
179
188
  w: "sd.system.dimension.spacing.large",
180
189
  h: "sd.system.dimension.spacing.large"
181
190
  }
182
191
  ),
183
- /* @__PURE__ */ o(_, { children: m })
192
+ /* @__PURE__ */ o(T, { children: a })
184
193
  ]
185
194
  },
186
- c
195
+ y
187
196
  )) }) }) }) })
188
197
  ]
189
198
  }
190
199
  );
191
200
  };
192
201
  export {
193
- F as Search,
202
+ X as Search,
194
203
  d as SearchStyle
195
204
  };
@@ -58,6 +58,13 @@ type Props = {
58
58
  invalidMessage?: string;
59
59
  items?: selectItem[];
60
60
  collection?: SelectRootProps<selectItem>["collection"];
61
+ /**
62
+ * Portalを使用するかどうか
63
+ * - `true` (デフォルト): body直下にポータルする。ModalDialog/Drawer内にある場合は自動的にそのコンテンツ内にポータルされる
64
+ * - `false`: ポータルを使用せず、その場にレンダリングする
65
+ * @default true
66
+ */
67
+ portalled?: boolean;
61
68
  };
62
69
  type selectItem = {
63
70
  label: string;