@serendie/ui 0.1.15 → 0.1.16
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/dist/components/Button.js +3 -2
- package/dist/components/DropdownMenu.js +3 -2
- package/dist/components/PasswordField.js +44 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +49 -47
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ import "./IconButton.js";
|
|
|
23
23
|
import "./ListItem.js";
|
|
24
24
|
import "./ModalDialog.js";
|
|
25
25
|
import "./NotificationBadge.js";
|
|
26
|
+
import "./PasswordField.js";
|
|
26
27
|
import { ProgressIndicator as v } from "./ProgressIndicator.js";
|
|
27
28
|
import "./RadioButton.js";
|
|
28
29
|
import "./Search.js";
|
|
@@ -152,7 +153,7 @@ const d = {
|
|
|
152
153
|
position: "relative",
|
|
153
154
|
zIndex: "sd.system.elevation.zIndex.base"
|
|
154
155
|
}
|
|
155
|
-
}),
|
|
156
|
+
}), re = b.forwardRef(
|
|
156
157
|
(s, l) => {
|
|
157
158
|
const [
|
|
158
159
|
n,
|
|
@@ -191,6 +192,6 @@ const d = {
|
|
|
191
192
|
}
|
|
192
193
|
);
|
|
193
194
|
export {
|
|
194
|
-
|
|
195
|
+
re as Button,
|
|
195
196
|
m as ButtonStyle
|
|
196
197
|
};
|
|
@@ -19,6 +19,7 @@ import { IconButton as y } from "./IconButton.js";
|
|
|
19
19
|
import "./ListItem.js";
|
|
20
20
|
import "./ModalDialog.js";
|
|
21
21
|
import "./NotificationBadge.js";
|
|
22
|
+
import "./PasswordField.js";
|
|
22
23
|
import "./ProgressIndicator.js";
|
|
23
24
|
import "./RadioButton.js";
|
|
24
25
|
import "./Search.js";
|
|
@@ -109,7 +110,7 @@ const v = c({
|
|
|
109
110
|
transition: "transform 0.2s"
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
}),
|
|
113
|
+
}), ao = ({
|
|
113
114
|
styleType: r = "default",
|
|
114
115
|
title: i,
|
|
115
116
|
items: d,
|
|
@@ -180,6 +181,6 @@ const v = c({
|
|
|
180
181
|
);
|
|
181
182
|
};
|
|
182
183
|
export {
|
|
183
|
-
|
|
184
|
+
ao as DropdownMenu,
|
|
184
185
|
v as DropdownMenuStyle
|
|
185
186
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n, useState as d } from "react";
|
|
3
|
+
import { TextField as m } from "./TextField.js";
|
|
4
|
+
import { SerendieSymbol as p } from "../node_modules/@serendie/symbols/dist/symbols2.js";
|
|
5
|
+
import { IconButton as w } from "./IconButton.js";
|
|
6
|
+
const g = n(
|
|
7
|
+
({ disableToggle: s = !1, disabled: e, ...i }, r) => {
|
|
8
|
+
const [o, a] = d(!1);
|
|
9
|
+
return /* @__PURE__ */ t(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
type: o ? "text" : "password",
|
|
13
|
+
rightContent: s ? void 0 : /* @__PURE__ */ t(
|
|
14
|
+
w,
|
|
15
|
+
{
|
|
16
|
+
type: "button",
|
|
17
|
+
onClick: () => {
|
|
18
|
+
a((l) => !l);
|
|
19
|
+
},
|
|
20
|
+
styleType: "ghost",
|
|
21
|
+
size: "small",
|
|
22
|
+
shape: "circle",
|
|
23
|
+
"aria-label": o ? "パスワードを隠す" : "パスワードを表示",
|
|
24
|
+
disabled: e,
|
|
25
|
+
icon: /* @__PURE__ */ t(
|
|
26
|
+
p,
|
|
27
|
+
{
|
|
28
|
+
name: o ? "eye-hidden" : "eye",
|
|
29
|
+
size: 20
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
disabled: e,
|
|
35
|
+
...i,
|
|
36
|
+
ref: r
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
g.displayName = "PasswordField";
|
|
42
|
+
export {
|
|
43
|
+
g as PasswordField
|
|
44
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './components/List.tsx';
|
|
|
18
18
|
export * from './components/ListItem.tsx';
|
|
19
19
|
export * from './components/ModalDialog.tsx';
|
|
20
20
|
export * from './components/NotificationBadge.tsx';
|
|
21
|
+
export * from './components/PasswordField.tsx';
|
|
21
22
|
export * from './components/ProgressIndicator.tsx';
|
|
22
23
|
export * from './components/RadioButton.tsx';
|
|
23
24
|
export * from './components/RadioGroup.tsx';
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import { Accordion as m } from "./components/Accordion.js";
|
|
|
3
3
|
import { AccordionGroup as a } from "./components/AccordionGroup.js";
|
|
4
4
|
import { Avatar as c, AvatarStyle as i } from "./components/Avatar.js";
|
|
5
5
|
import { Badge as n, BadgeCloseButton as d, BadgeStyle as s } from "./components/Badge.js";
|
|
6
|
-
import { Banner as
|
|
6
|
+
import { Banner as S } from "./components/Banner.js";
|
|
7
7
|
import { BottomNavigation as y } from "./components/BottomNavigation.js";
|
|
8
8
|
import { BottomNavigationItem as I, BottomNavigationItemStyle as C } from "./components/BottomNavigationItem.js";
|
|
9
9
|
import { Button as u, ButtonStyle as k } from "./components/Button.js";
|
|
10
|
-
import { CheckBox as b, CheckBoxStyle as v, checkboxCheckedIconCss as D, checkboxIconCss as
|
|
11
|
-
import { ChoiceBox as
|
|
10
|
+
import { CheckBox as b, CheckBoxStyle as v, checkboxCheckedIconCss as D, checkboxIconCss as w, checkboxUncheckedIconCss as A } from "./components/CheckBox.js";
|
|
11
|
+
import { ChoiceBox as P, ChoiceBoxStyle as L } from "./components/ChoiceBox.js";
|
|
12
12
|
import { DashboardWidget as R } from "./components/DashboardWidget.js";
|
|
13
|
-
import { Divider as
|
|
13
|
+
import { Divider as G, DividerStyle as U } from "./components/Divider.js";
|
|
14
14
|
import { Drawer as j } from "./components/Drawer.js";
|
|
15
15
|
import { DropdownMenu as z, DropdownMenuStyle as E } from "./components/DropdownMenu.js";
|
|
16
16
|
import { IconButton as J, IconButtonStyle as K } from "./components/IconButton.js";
|
|
@@ -18,18 +18,19 @@ import { List as Q } from "./components/List.js";
|
|
|
18
18
|
import { ListItem as X, ListItemStyle as Y } from "./components/ListItem.js";
|
|
19
19
|
import { ModalDialog as _ } from "./components/ModalDialog.js";
|
|
20
20
|
import { NotificationBadge as oo } from "./components/NotificationBadge.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
21
|
+
import { PasswordField as to } from "./components/PasswordField.js";
|
|
22
|
+
import { ProgressIndicator as mo, ProgressIndicatorStyle as xo } from "./components/ProgressIndicator.js";
|
|
23
|
+
import { RadioButton as po, RadioButtonStyle as co, radioCheckedIconCss as io, radioIconCss as fo, radioUncheckedIconCss as no } from "./components/RadioButton.js";
|
|
24
|
+
import { RadioGroup as lo } from "./components/RadioGroup.js";
|
|
25
|
+
import { Search as Bo, SearchStyle as yo } from "./components/Search.js";
|
|
26
|
+
import { Select as Io, SelectStyle as Co } from "./components/Select.js";
|
|
27
|
+
import { Switch as uo, SwitchStyle as ko } from "./components/Switch.js";
|
|
28
|
+
import { TabItem as bo, TabItemStyle as vo } from "./components/TabItem.js";
|
|
29
|
+
import { Tabs as wo, TabsStyle as Ao } from "./components/Tabs.js";
|
|
30
|
+
import { TextArea as Po } from "./components/TextArea.js";
|
|
31
|
+
import { TextField as Mo } from "./components/TextField.js";
|
|
32
|
+
import { Toast as Fo, ToastStyle as Go, toaster as Uo } from "./components/Toast.js";
|
|
33
|
+
import { TopAppBar as jo } from "./components/TopAppBar.js";
|
|
33
34
|
export {
|
|
34
35
|
m as Accordion,
|
|
35
36
|
a as AccordionGroup,
|
|
@@ -38,7 +39,7 @@ export {
|
|
|
38
39
|
n as Badge,
|
|
39
40
|
d as BadgeCloseButton,
|
|
40
41
|
s as BadgeStyle,
|
|
41
|
-
|
|
42
|
+
S as Banner,
|
|
42
43
|
y as BottomNavigation,
|
|
43
44
|
I as BottomNavigationItem,
|
|
44
45
|
C as BottomNavigationItemStyle,
|
|
@@ -46,11 +47,11 @@ export {
|
|
|
46
47
|
k as ButtonStyle,
|
|
47
48
|
b as CheckBox,
|
|
48
49
|
v as CheckBoxStyle,
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
P as ChoiceBox,
|
|
51
|
+
L as ChoiceBoxStyle,
|
|
51
52
|
R as DashboardWidget,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
G as Divider,
|
|
54
|
+
U as DividerStyle,
|
|
54
55
|
j as Drawer,
|
|
55
56
|
z as DropdownMenu,
|
|
56
57
|
E as DropdownMenuStyle,
|
|
@@ -61,32 +62,33 @@ export {
|
|
|
61
62
|
Y as ListItemStyle,
|
|
62
63
|
_ as ModalDialog,
|
|
63
64
|
oo as NotificationBadge,
|
|
64
|
-
to as
|
|
65
|
-
|
|
66
|
-
xo as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
yo as
|
|
72
|
-
|
|
65
|
+
to as PasswordField,
|
|
66
|
+
mo as ProgressIndicator,
|
|
67
|
+
xo as ProgressIndicatorStyle,
|
|
68
|
+
po as RadioButton,
|
|
69
|
+
co as RadioButtonStyle,
|
|
70
|
+
lo as RadioGroup,
|
|
71
|
+
Bo as Search,
|
|
72
|
+
yo as SearchStyle,
|
|
73
|
+
Io as Select,
|
|
74
|
+
Co as SelectStyle,
|
|
73
75
|
t as SerendiePreset,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
uo as Switch,
|
|
77
|
+
ko as SwitchStyle,
|
|
78
|
+
bo as TabItem,
|
|
79
|
+
vo as TabItemStyle,
|
|
80
|
+
wo as Tabs,
|
|
81
|
+
Ao as TabsStyle,
|
|
82
|
+
Po as TextArea,
|
|
83
|
+
Mo as TextField,
|
|
84
|
+
Fo as Toast,
|
|
85
|
+
Go as ToastStyle,
|
|
86
|
+
jo as TopAppBar,
|
|
85
87
|
D as checkboxCheckedIconCss,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
w as checkboxIconCss,
|
|
89
|
+
A as checkboxUncheckedIconCss,
|
|
90
|
+
io as radioCheckedIconCss,
|
|
91
|
+
fo as radioIconCss,
|
|
92
|
+
no as radioUncheckedIconCss,
|
|
93
|
+
Uo as toaster
|
|
92
94
|
};
|
package/package.json
CHANGED