@shiflo/ui 0.2.1 → 0.2.4
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/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/components/BottomSheet/BottomSheet.mjs +25 -23
- package/dist/components/BottomSheet/BottomSheet.typing.d.ts +1 -0
- package/dist/components/Button/Button.mjs +72 -69
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.mjs +16 -14
- package/dist/components/Dialog/Dialog.typing.d.ts +1 -0
- package/dist/components/Overlay/Overlay.d.ts +1 -1
- package/dist/components/Overlay/Overlay.mjs +69 -55
- package/dist/components/Overlay/Overlay.typing.d.ts +1 -0
- package/dist/components/Snackbar/Snackbar.mjs +23 -18
- package/dist/components/TextField/TextField.mjs +20 -20
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.mjs +10 -12
- package/dist/theme/GlobalStyle.mjs +1 -0
- package/dist/theme/dark.mjs +5 -5
- package/dist/theme/light.mjs +3 -3
- package/dist/theme/typography.mjs +6 -6
- package/package.json +4 -2
- package/dist/assets/icons/index.d.ts +0 -2
- package/dist/assets/icons/index.mjs +0 -48
- package/dist/assets/icons/index.ts-BhlTWUs_.js +0 -52
- package/dist/assets/icons/line/calendar-line.svg-DHsuXoUL.js +0 -5
- package/dist/assets/icons/line/index.d.ts +0 -1
- package/dist/assets/icons/line/index.mjs +0 -4
- package/dist/assets/icons/solid/arrow-left-solid.svg-C16XJbK9.js +0 -5
- package/dist/assets/icons/solid/briefcase-blank-solid.svg-6ppQL_Z4.js +0 -5
- package/dist/assets/icons/solid/calendar-days-solid.svg-CIj8vf6t.js +0 -5
- package/dist/assets/icons/solid/calendar-lines-solid.svg-D2qG_E7t.js +0 -5
- package/dist/assets/icons/solid/calendar-week-solid.svg-CVmrJtif.js +0 -5
- package/dist/assets/icons/solid/calendars-solid.svg-rClh_xBu.js +0 -5
- package/dist/assets/icons/solid/chart-simple-horizontal-solid.svg-znTJSeQj.js +0 -5
- package/dist/assets/icons/solid/check-solid.svg-C41sTTzR.js +0 -5
- package/dist/assets/icons/solid/chevron-left-solid.svg-CrKzZ71H.js +0 -5
- package/dist/assets/icons/solid/circle-check-solid.svg-D2Pv_oiO.js +0 -5
- package/dist/assets/icons/solid/circle-exclamation-solid.svg-CuZt_q4T.js +0 -5
- package/dist/assets/icons/solid/circle-info-solid.svg-eMJtJJRm.js +0 -5
- package/dist/assets/icons/solid/circle-plus-solid.svg-wYCF_uVS.js +0 -5
- package/dist/assets/icons/solid/clock-desk-solid.svg-Dvm3Xip1.js +0 -5
- package/dist/assets/icons/solid/gear-solid.svg-C6vEx0Wx.js +0 -5
- package/dist/assets/icons/solid/grid-2-solid.svg-BRtzwK6Y.js +0 -5
- package/dist/assets/icons/solid/index.d.ts +0 -22
- package/dist/assets/icons/solid/index.mjs +0 -46
- package/dist/assets/icons/solid/minus-solid.svg-BBiGvc-2.js +0 -5
- package/dist/assets/icons/solid/pen-to-square-solid.svg-DUdNcuTM.js +0 -5
- package/dist/assets/icons/solid/plus-solid.svg-piiaS3kO.js +0 -5
- package/dist/assets/icons/solid/rotate-right-solid.svg-CYW200XH.js +0 -5
- package/dist/assets/icons/solid/trash-solid.svg-iJSf_6Y3.js +0 -5
- package/dist/assets/icons/solid/xmark-solid.svg-Ce8xHlZn.js +0 -5
- package/dist/components/Icon/Icon.d.ts +0 -3
- package/dist/components/Icon/Icon.mjs +0 -18
- package/dist/components/Icon/Icon.typing.d.ts +0 -11
- package/dist/components/Icon/index.d.ts +0 -4
- package/dist/components/Icon/index.mjs +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as p, jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as y, useRef as C, useImperativeHandle as I, useLayoutEffect as w, useEffect as L } from "react";
|
|
3
|
+
import { createPortal as A } from "react-dom";
|
|
4
|
+
import o from "@emotion/styled";
|
|
5
|
+
const g = o.div`
|
|
6
6
|
position: fixed;
|
|
7
7
|
top: 0;
|
|
8
8
|
left: 0;
|
|
9
9
|
z-index: 1;
|
|
10
|
-
`,
|
|
10
|
+
`, h = o.div`
|
|
11
11
|
position: fixed;
|
|
12
12
|
top: 0;
|
|
13
13
|
left: 0;
|
|
@@ -15,135 +15,149 @@ const w = s.div`
|
|
|
15
15
|
height: 100%;
|
|
16
16
|
background-color: ${({
|
|
17
17
|
theme: {
|
|
18
|
-
palette: { common:
|
|
18
|
+
palette: { common: t }
|
|
19
19
|
}
|
|
20
|
-
}) =>
|
|
20
|
+
}) => t.overlay};
|
|
21
21
|
transition:
|
|
22
|
-
opacity ${({ transitionDuration:
|
|
23
|
-
${({ ease:
|
|
22
|
+
opacity ${({ transitionDuration: t }) => `${t}ms`}
|
|
23
|
+
${({ ease: t }) => t === "in" ? "ease-in" : "ease-out"},
|
|
24
24
|
background-color 0.2s;
|
|
25
|
-
`,
|
|
25
|
+
`, O = o.div`
|
|
26
26
|
position: fixed;
|
|
27
27
|
width: 100%;
|
|
28
28
|
display: flex;
|
|
29
29
|
justify-content: center;
|
|
30
30
|
align-items: center;
|
|
31
31
|
|
|
32
|
-
${({ placement:
|
|
33
|
-
const
|
|
34
|
-
switch (
|
|
32
|
+
${({ placement: t }) => {
|
|
33
|
+
const e = {};
|
|
34
|
+
switch (t) {
|
|
35
35
|
case "top-left":
|
|
36
|
-
Object.assign(
|
|
36
|
+
Object.assign(e, {
|
|
37
37
|
top: 0,
|
|
38
38
|
left: 0
|
|
39
39
|
});
|
|
40
40
|
break;
|
|
41
41
|
case "top-right":
|
|
42
|
-
Object.assign(
|
|
42
|
+
Object.assign(e, {
|
|
43
43
|
top: 0,
|
|
44
44
|
right: 0
|
|
45
45
|
});
|
|
46
46
|
break;
|
|
47
47
|
case "bottom-left":
|
|
48
|
-
Object.assign(
|
|
48
|
+
Object.assign(e, {
|
|
49
49
|
bottom: 0,
|
|
50
50
|
left: 0
|
|
51
51
|
});
|
|
52
52
|
break;
|
|
53
53
|
case "bottom-right":
|
|
54
|
-
Object.assign(
|
|
54
|
+
Object.assign(e, {
|
|
55
55
|
bottom: 0,
|
|
56
56
|
right: 0
|
|
57
57
|
});
|
|
58
58
|
break;
|
|
59
59
|
case "center-top":
|
|
60
|
-
Object.assign(
|
|
60
|
+
Object.assign(e, {
|
|
61
61
|
top: 0,
|
|
62
62
|
left: "50%",
|
|
63
63
|
transform: "translate3d(-50%, 0, 0)"
|
|
64
64
|
});
|
|
65
65
|
break;
|
|
66
66
|
case "center-bottom":
|
|
67
|
-
Object.assign(
|
|
67
|
+
Object.assign(e, {
|
|
68
68
|
bottom: 0,
|
|
69
69
|
left: "50%",
|
|
70
70
|
transform: "translate3d(-50%, 0, 0)"
|
|
71
71
|
});
|
|
72
72
|
break;
|
|
73
73
|
case "center-middle":
|
|
74
|
-
Object.assign(
|
|
74
|
+
Object.assign(e, {
|
|
75
75
|
top: "50%",
|
|
76
76
|
left: "50%",
|
|
77
77
|
transform: "translate3d(-50%, -50%, 0)"
|
|
78
78
|
});
|
|
79
79
|
break;
|
|
80
80
|
case "center-left":
|
|
81
|
-
Object.assign(
|
|
81
|
+
Object.assign(e, {
|
|
82
82
|
top: "50%",
|
|
83
83
|
left: 0,
|
|
84
84
|
transform: "translate3d(0, -50%, 0)"
|
|
85
85
|
});
|
|
86
86
|
break;
|
|
87
87
|
case "center-right":
|
|
88
|
-
Object.assign(
|
|
88
|
+
Object.assign(e, {
|
|
89
89
|
top: "50%",
|
|
90
90
|
right: 0,
|
|
91
91
|
transform: "translate3d(0, -50%, 0)"
|
|
92
92
|
});
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
|
-
return
|
|
95
|
+
return e;
|
|
96
96
|
}}
|
|
97
97
|
`;
|
|
98
|
-
function
|
|
99
|
-
children:
|
|
100
|
-
open:
|
|
101
|
-
onClose:
|
|
98
|
+
function q({
|
|
99
|
+
children: t,
|
|
100
|
+
open: e,
|
|
101
|
+
onClose: k,
|
|
102
102
|
transitionDuration: a = 200,
|
|
103
|
-
placement:
|
|
104
|
-
style:
|
|
105
|
-
ref:
|
|
106
|
-
onClick:
|
|
107
|
-
|
|
103
|
+
placement: i,
|
|
104
|
+
style: c,
|
|
105
|
+
ref: v,
|
|
106
|
+
onClick: j,
|
|
107
|
+
disablePortal: x = !0,
|
|
108
|
+
...l
|
|
108
109
|
}) {
|
|
109
|
-
const [
|
|
110
|
-
|
|
110
|
+
const [E, f] = y(!0), [d, m] = y(!1), n = C(null), u = (r) => {
|
|
111
|
+
k?.(), j?.(r);
|
|
111
112
|
};
|
|
112
|
-
return
|
|
113
|
+
return I(v, () => n.current), w(() => {
|
|
113
114
|
let r;
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
})) :
|
|
115
|
+
return e ? (f(!1), r = requestAnimationFrame(() => {
|
|
116
|
+
m(!0);
|
|
117
|
+
})) : m(!1), () => {
|
|
117
118
|
r && cancelAnimationFrame(r);
|
|
118
119
|
};
|
|
119
|
-
}, [
|
|
120
|
-
const r = n.current,
|
|
121
|
-
|
|
120
|
+
}, [e, a]), L(() => {
|
|
121
|
+
const r = n.current, b = ($) => {
|
|
122
|
+
e || $.propertyName === "opacity" && f(!0);
|
|
122
123
|
};
|
|
123
|
-
return r?.addEventListener("transitionend",
|
|
124
|
-
r?.removeEventListener("transitionend",
|
|
124
|
+
return r?.addEventListener("transitionend", b), () => {
|
|
125
|
+
r?.removeEventListener("transitionend", b);
|
|
125
126
|
};
|
|
126
|
-
}, [
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
}, [e]), E ? null : x ? /* @__PURE__ */ p(g, { children: [
|
|
128
|
+
/* @__PURE__ */ s(
|
|
129
|
+
h,
|
|
130
|
+
{
|
|
131
|
+
ref: n,
|
|
132
|
+
transitionDuration: a,
|
|
133
|
+
ease: e ? "in" : "out",
|
|
134
|
+
onClick: u,
|
|
135
|
+
style: { opacity: d ? 1 : 0, ...c },
|
|
136
|
+
...l
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ s(O, { placement: i, children: t })
|
|
140
|
+
] }) : A(
|
|
141
|
+
/* @__PURE__ */ p(g, { children: [
|
|
142
|
+
/* @__PURE__ */ s(
|
|
143
|
+
h,
|
|
130
144
|
{
|
|
131
145
|
ref: n,
|
|
132
146
|
transitionDuration: a,
|
|
133
|
-
ease:
|
|
134
|
-
onClick:
|
|
147
|
+
ease: e ? "in" : "out",
|
|
148
|
+
onClick: u,
|
|
135
149
|
style: {
|
|
136
|
-
opacity:
|
|
137
|
-
...
|
|
150
|
+
opacity: d ? 1 : 0,
|
|
151
|
+
...c
|
|
138
152
|
},
|
|
139
|
-
...
|
|
153
|
+
...l
|
|
140
154
|
}
|
|
141
155
|
),
|
|
142
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ s(O, { placement: i, children: t })
|
|
143
157
|
] }),
|
|
144
158
|
document.body
|
|
145
159
|
);
|
|
146
160
|
}
|
|
147
161
|
export {
|
|
148
|
-
|
|
162
|
+
q as default
|
|
149
163
|
};
|
|
@@ -6,4 +6,5 @@ export interface OverlayProps extends ComponentPropsWithRef<"div">, Pick<Utility
|
|
|
6
6
|
transitionDuration?: number;
|
|
7
7
|
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center-top" | "center-bottom" | "center-middle" | "center-left" | "center-right";
|
|
8
8
|
hideOverlay?: boolean;
|
|
9
|
+
disablePortal?: boolean;
|
|
9
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as z, jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as z, jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as x, useRef as b, useImperativeHandle as A, useLayoutEffect as I, useEffect as y } from "react";
|
|
3
3
|
import { createPortal as L } from "react-dom";
|
|
4
|
-
import
|
|
5
|
-
const R =
|
|
4
|
+
import a from "@emotion/styled";
|
|
5
|
+
const R = a.div`
|
|
6
6
|
position: fixed;
|
|
7
7
|
bottom: ${({ theme: { spacing: e }, bottom: t }) => `calc(${t || e[800]} + var(--safe-area-inset-bottom, 0px))`};
|
|
8
8
|
left: 50%;
|
|
@@ -26,9 +26,14 @@ const R = i.div`
|
|
|
26
26
|
${({ ease: e }) => e === "in" ? "ease-in" : "ease-out"},
|
|
27
27
|
transform ${({ transitionDuration: e }) => `${e}ms`},
|
|
28
28
|
background-color 0.2s;
|
|
29
|
-
`, T =
|
|
29
|
+
`, T = a.div`
|
|
30
30
|
white-space: nowrap;
|
|
31
|
-
|
|
31
|
+
color: ${({
|
|
32
|
+
theme: {
|
|
33
|
+
palette: { common: e }
|
|
34
|
+
}
|
|
35
|
+
}) => e.surface};
|
|
36
|
+
`, j = a.div`
|
|
32
37
|
flex-grow: 1;
|
|
33
38
|
display: -webkit-box;
|
|
34
39
|
overflow: hidden;
|
|
@@ -45,7 +50,7 @@ const R = i.div`
|
|
|
45
50
|
lineHeight: t.lineHeight,
|
|
46
51
|
color: e.surface
|
|
47
52
|
})}
|
|
48
|
-
`, F =
|
|
53
|
+
`, F = a.div`
|
|
49
54
|
white-space: nowrap;
|
|
50
55
|
`;
|
|
51
56
|
function N({
|
|
@@ -62,8 +67,8 @@ function N({
|
|
|
62
67
|
disableAutoHide: u,
|
|
63
68
|
...k
|
|
64
69
|
}) {
|
|
65
|
-
const [S, p] =
|
|
66
|
-
return A(w, () =>
|
|
70
|
+
const [S, p] = x(!0), [n, h] = x(!1), i = b(null), o = b(null);
|
|
71
|
+
return A(w, () => i.current), I(() => {
|
|
67
72
|
let r;
|
|
68
73
|
return t ? (p(!1), r = requestAnimationFrame(() => {
|
|
69
74
|
h(!0);
|
|
@@ -71,24 +76,24 @@ function N({
|
|
|
71
76
|
r && cancelAnimationFrame(r);
|
|
72
77
|
};
|
|
73
78
|
}, [t, l]), y(() => {
|
|
74
|
-
const r =
|
|
79
|
+
const r = i.current, $ = (E) => {
|
|
75
80
|
t || E.propertyName === "opacity" && p(!0);
|
|
76
81
|
};
|
|
77
|
-
return r?.addEventListener("transitionend",
|
|
78
|
-
r?.removeEventListener("transitionend",
|
|
82
|
+
return r?.addEventListener("transitionend", $), () => {
|
|
83
|
+
r?.removeEventListener("transitionend", $);
|
|
79
84
|
};
|
|
80
85
|
}, [t]), y(() => {
|
|
81
86
|
if (!(u || !n))
|
|
82
|
-
return
|
|
87
|
+
return o.current = setTimeout(() => {
|
|
83
88
|
c?.();
|
|
84
89
|
}, d), () => {
|
|
85
|
-
|
|
90
|
+
o.current && clearTimeout(o.current);
|
|
86
91
|
};
|
|
87
92
|
}, [u, d, n, c]), S ? null : L(
|
|
88
93
|
/* @__PURE__ */ z(
|
|
89
94
|
R,
|
|
90
95
|
{
|
|
91
|
-
ref:
|
|
96
|
+
ref: i,
|
|
92
97
|
transitionDuration: l,
|
|
93
98
|
ease: t ? "in" : "out",
|
|
94
99
|
maxWidth: g,
|
|
@@ -99,9 +104,9 @@ function N({
|
|
|
99
104
|
},
|
|
100
105
|
...k,
|
|
101
106
|
children: [
|
|
102
|
-
m && /* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
f && /* @__PURE__ */
|
|
107
|
+
m && /* @__PURE__ */ s(T, { children: m }),
|
|
108
|
+
/* @__PURE__ */ s(j, { children: e }),
|
|
109
|
+
f && /* @__PURE__ */ s(F, { children: f })
|
|
105
110
|
]
|
|
106
111
|
}
|
|
107
112
|
),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
1
|
+
import { jsxs as p, jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
3
|
import l from "@emotion/styled";
|
|
4
|
-
const
|
|
4
|
+
const $ = l.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
gap: ${({ theme: { spacing: e } }) => e[200]};
|
|
@@ -53,8 +53,8 @@ const b = l.div`
|
|
|
53
53
|
fontSize: n.fontSize,
|
|
54
54
|
lineHeight: n.lineHeight,
|
|
55
55
|
"& svg": {
|
|
56
|
-
width: n.fontSize
|
|
57
|
-
height: n.fontSize
|
|
56
|
+
width: `calc(${n.fontSize} + 4px)`,
|
|
57
|
+
height: `calc(${n.fontSize} + 4px)`
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
break;
|
|
@@ -64,8 +64,8 @@ const b = l.div`
|
|
|
64
64
|
fontSize: t.fontSize,
|
|
65
65
|
lineHeight: t.lineHeight,
|
|
66
66
|
"& svg": {
|
|
67
|
-
width: t.fontSize
|
|
68
|
-
height: t.fontSize
|
|
67
|
+
width: `calc(${t.fontSize} + 4px)`,
|
|
68
|
+
height: `calc(${t.fontSize} + 4px)`
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
break;
|
|
@@ -75,8 +75,8 @@ const b = l.div`
|
|
|
75
75
|
fontSize: o.fontSize,
|
|
76
76
|
lineHeight: o.lineHeight,
|
|
77
77
|
"& svg": {
|
|
78
|
-
width: o.fontSize
|
|
79
|
-
height: o.fontSize
|
|
78
|
+
width: `calc(${o.fontSize} + 4px)`,
|
|
79
|
+
height: `calc(${o.fontSize} + 4px)`
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
break;
|
|
@@ -118,7 +118,7 @@ const b = l.div`
|
|
|
118
118
|
color: e[500],
|
|
119
119
|
cursor: "not-allowed"
|
|
120
120
|
} : {}};
|
|
121
|
-
`,
|
|
121
|
+
`, x = l.input`
|
|
122
122
|
flex-grow: 1;
|
|
123
123
|
border: none;
|
|
124
124
|
outline: none;
|
|
@@ -135,12 +135,12 @@ const b = l.div`
|
|
|
135
135
|
&:disabled {
|
|
136
136
|
cursor: not-allowed;
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`, b = l.div`
|
|
139
139
|
display: flex;
|
|
140
140
|
align-items: center;
|
|
141
141
|
justify-content: center;
|
|
142
142
|
white-space: nowrap;
|
|
143
|
-
`,
|
|
143
|
+
`, w = l.div`
|
|
144
144
|
display: flex;
|
|
145
145
|
align-items: center;
|
|
146
146
|
justify-content: center;
|
|
@@ -153,14 +153,14 @@ function F({
|
|
|
153
153
|
disabled: t,
|
|
154
154
|
startIcon: r,
|
|
155
155
|
endIcon: i,
|
|
156
|
-
onFocus:
|
|
156
|
+
onFocus: d,
|
|
157
157
|
onBlur: h,
|
|
158
158
|
css: u,
|
|
159
159
|
...f
|
|
160
160
|
}) {
|
|
161
|
-
const [g,
|
|
161
|
+
const [g, c] = m(!1);
|
|
162
162
|
return /* @__PURE__ */ p(
|
|
163
|
-
|
|
163
|
+
$,
|
|
164
164
|
{
|
|
165
165
|
variant: e,
|
|
166
166
|
size: n,
|
|
@@ -169,13 +169,13 @@ function F({
|
|
|
169
169
|
disabled: t,
|
|
170
170
|
css: u,
|
|
171
171
|
children: [
|
|
172
|
-
r && /* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
|
|
175
|
-
}, onBlur: (
|
|
176
|
-
|
|
172
|
+
r && /* @__PURE__ */ s(b, { children: r }),
|
|
173
|
+
/* @__PURE__ */ s(x, { ...f, onFocus: (a) => {
|
|
174
|
+
c(!0), d?.(a);
|
|
175
|
+
}, onBlur: (a) => {
|
|
176
|
+
c(!1), h?.(a);
|
|
177
177
|
}, disabled: t }),
|
|
178
|
-
i && /* @__PURE__ */
|
|
178
|
+
i && /* @__PURE__ */ s(w, { children: i })
|
|
179
179
|
]
|
|
180
180
|
}
|
|
181
181
|
);
|
|
@@ -2,7 +2,6 @@ import { default as BottomSheet } from './BottomSheet';
|
|
|
2
2
|
import { default as Box } from './Box';
|
|
3
3
|
import { default as Button } from './Button';
|
|
4
4
|
import { default as Dialog } from './Dialog';
|
|
5
|
-
import { default as Icon } from './Icon';
|
|
6
5
|
import { default as Overlay } from './Overlay';
|
|
7
6
|
import { default as Snackbar } from './Snackbar';
|
|
8
7
|
import { default as Switch } from './Switch';
|
|
@@ -13,11 +12,10 @@ export * from './BottomSheet';
|
|
|
13
12
|
export * from './Box';
|
|
14
13
|
export * from './Button';
|
|
15
14
|
export * from './Dialog';
|
|
16
|
-
export * from './Icon';
|
|
17
15
|
export * from './Overlay';
|
|
18
16
|
export * from './Snackbar';
|
|
19
17
|
export * from './Switch';
|
|
20
18
|
export * from './Tag';
|
|
21
19
|
export * from './TextField';
|
|
22
20
|
export * from './Typography';
|
|
23
|
-
export { Button, Box, Typography, TextField, Overlay, BottomSheet, Dialog,
|
|
21
|
+
export { Button, Box, Typography, TextField, Overlay, BottomSheet, Dialog, Snackbar, Switch, Tag };
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as o } from "./BottomSheet/BottomSheet.mjs";
|
|
2
2
|
import { default as r } from "./Box/Box.mjs";
|
|
3
3
|
import { default as l } from "./Button/Button.mjs";
|
|
4
4
|
import { default as x } from "./Dialog/Dialog.mjs";
|
|
5
|
-
import { default as m } from "./
|
|
6
|
-
import { default as s } from "./
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as i } from "./Switch/Switch.mjs";
|
|
5
|
+
import { default as m } from "./Overlay/Overlay.mjs";
|
|
6
|
+
import { default as s } from "./Snackbar/Snackbar.mjs";
|
|
7
|
+
import { default as h } from "./Switch/Switch.mjs";
|
|
9
8
|
import { default as y } from "./Tag/Tag.mjs";
|
|
10
9
|
import { default as S } from "./TextField/TextField.mjs";
|
|
11
|
-
import { default as
|
|
10
|
+
import { default as c } from "./Typography/Typography.mjs";
|
|
12
11
|
export {
|
|
13
|
-
|
|
12
|
+
o as BottomSheet,
|
|
14
13
|
r as Box,
|
|
15
14
|
l as Button,
|
|
16
15
|
x as Dialog,
|
|
17
|
-
m as
|
|
18
|
-
s as
|
|
19
|
-
|
|
20
|
-
i as Switch,
|
|
16
|
+
m as Overlay,
|
|
17
|
+
s as Snackbar,
|
|
18
|
+
h as Switch,
|
|
21
19
|
y as Tag,
|
|
22
20
|
S as TextField,
|
|
23
|
-
|
|
21
|
+
c as Typography
|
|
24
22
|
};
|
|
@@ -34,6 +34,7 @@ function l() {
|
|
|
34
34
|
color: e.primary,
|
|
35
35
|
backgroundColor: o.background,
|
|
36
36
|
transition: "background-color 0.3s, color 0.3s",
|
|
37
|
+
fontSmooth: "antialiased",
|
|
37
38
|
fontFamily: `Spoqa Han Sans Neo, -apple-system, BlinkMacSystemFont, Helvetica Neue,
|
|
38
39
|
Apple SD Gothic Neo, Malgun Gothic, 맑은 고딕, 나눔고딕, Nanum Gothic,
|
|
39
40
|
Noto Sans KR, Noto Sans CJK KR, arial, 돋움, Dotum, Tahoma, Geneva, sans-serif`
|
package/dist/theme/dark.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "./radius.mjs";
|
|
2
2
|
import r from "./spacing.mjs";
|
|
3
3
|
import i from "./typography.mjs";
|
|
4
|
-
const
|
|
4
|
+
const t = {
|
|
5
5
|
mode: "dark",
|
|
6
6
|
palette: {
|
|
7
7
|
primary: {
|
|
@@ -65,9 +65,9 @@ const e = {
|
|
|
65
65
|
dark: "#CCB77A"
|
|
66
66
|
},
|
|
67
67
|
error: {
|
|
68
|
-
light: "#
|
|
69
|
-
main: "#
|
|
70
|
-
dark: "#
|
|
68
|
+
light: "#7F1D1D",
|
|
69
|
+
main: "#EF4444",
|
|
70
|
+
dark: "#C53030"
|
|
71
71
|
},
|
|
72
72
|
info: {
|
|
73
73
|
light: "#446E9E",
|
|
@@ -99,5 +99,5 @@ const e = {
|
|
|
99
99
|
radius: a
|
|
100
100
|
};
|
|
101
101
|
export {
|
|
102
|
-
|
|
102
|
+
t as default
|
|
103
103
|
};
|
package/dist/theme/light.mjs
CHANGED
|
@@ -11,18 +11,18 @@ const e = {
|
|
|
11
11
|
},
|
|
12
12
|
heading3: {
|
|
13
13
|
tag: "h3",
|
|
14
|
-
fontSize: "
|
|
15
|
-
lineHeight: "
|
|
14
|
+
fontSize: "20px",
|
|
15
|
+
lineHeight: "28px"
|
|
16
16
|
},
|
|
17
17
|
body1: {
|
|
18
18
|
tag: "div",
|
|
19
19
|
fontSize: "16px",
|
|
20
|
-
lineHeight: "
|
|
20
|
+
lineHeight: "24px"
|
|
21
21
|
},
|
|
22
22
|
body2: {
|
|
23
23
|
tag: "div",
|
|
24
24
|
fontSize: "14px",
|
|
25
|
-
lineHeight: "
|
|
25
|
+
lineHeight: "20px"
|
|
26
26
|
},
|
|
27
27
|
small1: {
|
|
28
28
|
tag: "p",
|
|
@@ -31,8 +31,8 @@ const e = {
|
|
|
31
31
|
},
|
|
32
32
|
small2: {
|
|
33
33
|
tag: "p",
|
|
34
|
-
fontSize: "
|
|
35
|
-
lineHeight: "
|
|
34
|
+
fontSize: "10px",
|
|
35
|
+
lineHeight: "16px"
|
|
36
36
|
},
|
|
37
37
|
small3: {
|
|
38
38
|
tag: "p",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shiflo/ui",
|
|
3
3
|
"description": "Shiflo React UI Components",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"globals": "^16.0.0",
|
|
77
77
|
"husky": "^9.1.7",
|
|
78
78
|
"lint-staged": "^15.4.3",
|
|
79
|
+
"lucide-react": "^0.563.0",
|
|
79
80
|
"prettier": "^3.5.3",
|
|
80
81
|
"storybook": "^10.0.2",
|
|
81
82
|
"typescript": "^5.7.3",
|
|
@@ -88,7 +89,8 @@
|
|
|
88
89
|
"@emotion/react": "^11.0.0",
|
|
89
90
|
"@emotion/styled": "^11.0.0",
|
|
90
91
|
"react": "^19.0.0",
|
|
91
|
-
"react-dom": "^19.0.0"
|
|
92
|
+
"react-dom": "^19.0.0",
|
|
93
|
+
"lucide-react": "^0.563.0"
|
|
92
94
|
},
|
|
93
95
|
"lint-staged": {
|
|
94
96
|
"*.{js,mjs,ts,jsx,tsx,mts,json,html}": "prettier --write",
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { S as e } from "./line/calendar-line.svg-DHsuXoUL.js";
|
|
2
|
-
import { S as a } from "./solid/calendar-days-solid.svg-CIj8vf6t.js";
|
|
3
|
-
import { S as i } from "./solid/calendar-lines-solid.svg-D2qG_E7t.js";
|
|
4
|
-
import { S as t } from "./solid/calendar-week-solid.svg-CVmrJtif.js";
|
|
5
|
-
import { S as f } from "./solid/calendars-solid.svg-rClh_xBu.js";
|
|
6
|
-
import { S as p } from "./solid/gear-solid.svg-C6vEx0Wx.js";
|
|
7
|
-
import { S as n } from "./solid/grid-2-solid.svg-BRtzwK6Y.js";
|
|
8
|
-
import { S as c } from "./solid/pen-to-square-solid.svg-DUdNcuTM.js";
|
|
9
|
-
import { S as h } from "./solid/plus-solid.svg-piiaS3kO.js";
|
|
10
|
-
import { S as L } from "./solid/rotate-right-solid.svg-CYW200XH.js";
|
|
11
|
-
import { S as B } from "./solid/xmark-solid.svg-Ce8xHlZn.js";
|
|
12
|
-
import { S as G } from "./solid/check-solid.svg-C41sTTzR.js";
|
|
13
|
-
import { S as T } from "./solid/trash-solid.svg-iJSf_6Y3.js";
|
|
14
|
-
import { S as q } from "./solid/minus-solid.svg-BBiGvc-2.js";
|
|
15
|
-
import { S as w } from "./solid/briefcase-blank-solid.svg-6ppQL_Z4.js";
|
|
16
|
-
import { S as z } from "./solid/chart-simple-horizontal-solid.svg-znTJSeQj.js";
|
|
17
|
-
import { S as E } from "./solid/clock-desk-solid.svg-Dvm3Xip1.js";
|
|
18
|
-
import { S as I } from "./solid/circle-check-solid.svg-D2Pv_oiO.js";
|
|
19
|
-
import { S as W } from "./solid/arrow-left-solid.svg-C16XJbK9.js";
|
|
20
|
-
import { S as b } from "./solid/circle-info-solid.svg-eMJtJJRm.js";
|
|
21
|
-
import { S as F } from "./solid/circle-exclamation-solid.svg-CuZt_q4T.js";
|
|
22
|
-
import { S as K } from "./solid/circle-plus-solid.svg-wYCF_uVS.js";
|
|
23
|
-
import { S as O } from "./solid/chevron-left-solid.svg-CrKzZ71H.js";
|
|
24
|
-
export {
|
|
25
|
-
W as ArrowLeftSolid,
|
|
26
|
-
w as BriefcaseBlankSolid,
|
|
27
|
-
a as CalendarDaysSolid,
|
|
28
|
-
e as CalendarLine,
|
|
29
|
-
i as CalendarLinesSolid,
|
|
30
|
-
t as CalendarWeekSolid,
|
|
31
|
-
f as CalendarsSolid,
|
|
32
|
-
z as ChartSimpleHorizontalSolid,
|
|
33
|
-
G as CheckSolid,
|
|
34
|
-
O as ChevronLeftSolid,
|
|
35
|
-
I as CircleCheckSolid,
|
|
36
|
-
F as CircleExclamationSolid,
|
|
37
|
-
b as CircleInfoSolid,
|
|
38
|
-
K as CirclePlusSolid,
|
|
39
|
-
E as ClockDeskSolid,
|
|
40
|
-
p as GearSolid,
|
|
41
|
-
n as Grid2Solid,
|
|
42
|
-
q as MinusSolid,
|
|
43
|
-
c as PenToSquareSolid,
|
|
44
|
-
h as PlusSolid,
|
|
45
|
-
L as RotateRightSolid,
|
|
46
|
-
T as TrashSolid,
|
|
47
|
-
B as XmarkSolid
|
|
48
|
-
};
|