@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.
- package/README.md +2 -2
- package/dist/components/Button/Button.d.ts +12 -1
- package/dist/components/DatePicker/DatePicker.d.ts +7 -0
- package/dist/components/DatePicker/DatePicker.js +126 -116
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +7 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +43 -38
- package/dist/components/ModalDialog/ModalDialog.d.ts +2 -0
- package/dist/components/ModalDialog/ModalDialog.js +30 -28
- package/dist/components/Pagination/Pagination.js +66 -63
- package/dist/components/PasswordField/PasswordField.js +30 -29
- package/dist/components/Search/Search.d.ts +7 -0
- package/dist/components/Search/Search.js +43 -34
- package/dist/components/Select/Select.d.ts +7 -0
- package/dist/components/Select/Select.js +54 -51
- package/dist/components/TextArea/TextArea.js +23 -22
- package/dist/components/TextField/TextField.js +31 -31
- package/dist/hooks/useAutoPortalContainer.d.ts +21 -0
- package/dist/hooks/useAutoPortalContainer.js +16 -0
- package/dist/i18n/dictionary.d.ts +24 -0
- package/dist/i18n/dictionary.js +28 -4
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { Button as i } from "../Button/Button.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
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
|
-
}),
|
|
78
|
+
}), q = ({
|
|
78
79
|
isOpen: n,
|
|
79
|
-
title:
|
|
80
|
-
cancelButtonLabel:
|
|
80
|
+
title: a,
|
|
81
|
+
cancelButtonLabel: d,
|
|
81
82
|
submitButtonLabel: r,
|
|
82
83
|
onButtonClick: m,
|
|
84
|
+
submitButtonProps: l,
|
|
83
85
|
children: p,
|
|
84
|
-
className:
|
|
85
|
-
...
|
|
86
|
+
className: c,
|
|
87
|
+
...t
|
|
86
88
|
}) => {
|
|
87
|
-
const s =
|
|
88
|
-
return /* @__PURE__ */ e(
|
|
89
|
-
/* @__PURE__ */ e(
|
|
90
|
-
/* @__PURE__ */ e(
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */ e(
|
|
93
|
-
/* @__PURE__ */ e(
|
|
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__ */
|
|
96
|
-
/* @__PURE__ */ e(i, { onClick: m, children: r }),
|
|
97
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
105
|
+
q as ModalDialog
|
|
104
106
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { SerendieSymbolChevronLeft as
|
|
3
|
-
import
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
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
|
-
}),
|
|
84
|
+
}), Z = N.forwardRef(
|
|
84
85
|
({
|
|
85
86
|
count: d,
|
|
86
|
-
pageSize:
|
|
87
|
-
page:
|
|
88
|
-
onPageChange:
|
|
89
|
-
siblingCount:
|
|
90
|
-
className:
|
|
91
|
-
size:
|
|
92
|
-
...
|
|
93
|
-
},
|
|
94
|
-
const [b,
|
|
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:
|
|
97
|
-
siblingCount:
|
|
98
|
-
...
|
|
99
|
-
onPageChange:
|
|
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
|
-
|
|
105
|
+
w,
|
|
105
106
|
{
|
|
106
|
-
ref:
|
|
107
|
-
className:
|
|
108
|
-
...
|
|
109
|
-
...
|
|
110
|
-
children: /* @__PURE__ */ e(
|
|
111
|
-
const
|
|
112
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
115
|
+
F,
|
|
115
116
|
{
|
|
116
|
-
className:
|
|
117
|
-
disabled:
|
|
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(
|
|
123
|
+
icon: /* @__PURE__ */ e(_, {}),
|
|
123
124
|
shape: "rectangle",
|
|
124
125
|
styleType: "ghost",
|
|
125
126
|
size: "small",
|
|
126
|
-
"aria-label":
|
|
127
|
-
disabled:
|
|
128
|
-
title:
|
|
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,
|
|
135
|
-
|
|
135
|
+
(s, g) => s.type === "page" ? /* @__PURE__ */ e(
|
|
136
|
+
L,
|
|
136
137
|
{
|
|
137
138
|
...s,
|
|
138
|
-
className:
|
|
139
|
+
className: a.item,
|
|
139
140
|
asChild: !0,
|
|
140
141
|
children: /* @__PURE__ */ e(
|
|
141
142
|
m,
|
|
142
143
|
{
|
|
143
|
-
icon: /* @__PURE__ */ e(
|
|
144
|
+
icon: /* @__PURE__ */ e(c, { children: s.value }),
|
|
144
145
|
shape: "rectangle",
|
|
145
146
|
styleType: "ghost",
|
|
146
147
|
size: "small",
|
|
147
|
-
"aria-label":
|
|
148
|
-
|
|
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
|
-
|
|
155
|
+
g
|
|
153
156
|
) : /* @__PURE__ */ e(
|
|
154
|
-
|
|
157
|
+
B,
|
|
155
158
|
{
|
|
156
|
-
index:
|
|
157
|
-
className:
|
|
159
|
+
index: g,
|
|
160
|
+
className: a.ellipsis,
|
|
158
161
|
children: "…"
|
|
159
162
|
},
|
|
160
|
-
|
|
163
|
+
g
|
|
161
164
|
)
|
|
162
165
|
),
|
|
163
166
|
/* @__PURE__ */ e(
|
|
164
|
-
|
|
167
|
+
E,
|
|
165
168
|
{
|
|
166
|
-
className:
|
|
167
|
-
disabled:
|
|
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(
|
|
175
|
+
icon: /* @__PURE__ */ e(I, {}),
|
|
173
176
|
shape: "rectangle",
|
|
174
177
|
styleType: "ghost",
|
|
175
178
|
size: "small",
|
|
176
|
-
"aria-label":
|
|
177
|
-
disabled:
|
|
178
|
-
title:
|
|
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
|
-
|
|
191
|
-
|
|
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
|
|
3
|
-
import { TextField as
|
|
4
|
-
import { SerendieSymbolEyeHidden as
|
|
5
|
-
import { IconButton as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
25
|
+
w,
|
|
11
26
|
{
|
|
12
|
-
type:
|
|
13
|
-
rightContent:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
36
|
+
P.displayName = "PasswordField";
|
|
36
37
|
export {
|
|
37
|
-
|
|
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
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
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
|
-
}),
|
|
147
|
+
}), X = ({
|
|
147
148
|
items: i = [],
|
|
148
|
-
|
|
149
|
+
portalled: t = !0,
|
|
150
|
+
...r
|
|
149
151
|
}) => {
|
|
150
|
-
const [
|
|
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
|
-
|
|
154
|
+
w,
|
|
153
155
|
{
|
|
154
|
-
...
|
|
155
|
-
collection:
|
|
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(
|
|
166
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
192
|
+
/* @__PURE__ */ o(T, { children: a })
|
|
184
193
|
]
|
|
185
194
|
},
|
|
186
|
-
|
|
195
|
+
y
|
|
187
196
|
)) }) }) }) })
|
|
188
197
|
]
|
|
189
198
|
}
|
|
190
199
|
);
|
|
191
200
|
};
|
|
192
201
|
export {
|
|
193
|
-
|
|
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;
|