@shiflo/ui 0.0.12 → 0.0.14
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/assets/icons/index.mjs +14 -8
- package/dist/assets/icons/index.ts-CS7JEbxh.js +28 -0
- package/dist/assets/icons/solid/index.d.ts +3 -0
- package/dist/assets/icons/solid/index.mjs +9 -3
- package/dist/assets/icons/solid/plus-large-solid.svg-CdPjcQXo.js +5 -0
- package/dist/assets/icons/solid/plus-solid.svg-piiaS3kO.js +5 -0
- package/dist/assets/icons/solid/square-plus-solid.svg-SHmhFLCy.js +5 -0
- package/dist/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/components/BottomSheet/BottomSheet.mjs +30 -26
- package/dist/components/BottomSheet/BottomSheet.typing.d.ts +3 -1
- package/dist/components/Dialog/Dialog.typing.d.ts +2 -1
- package/dist/components/Icon/Icon.mjs +1 -1
- package/dist/components/Overlay/Overlay.typing.d.ts +2 -1
- package/dist/components/Snackbar/Snackbar.typing.d.ts +2 -1
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/TextField.mjs +18 -16
- package/dist/components/TextField/TextField.typing.d.ts +2 -1
- package/package.json +1 -1
- package/dist/assets/icons/index.ts-BL4wFg6B.js +0 -22
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { S as a } from "./line/calendar-line.svg-DHsuXoUL.js";
|
|
2
2
|
import { S } from "./solid/calendar-days-solid.svg-CIj8vf6t.js";
|
|
3
|
-
import { S as
|
|
3
|
+
import { S as s } from "./solid/calendar-lines-solid.svg-D2qG_E7t.js";
|
|
4
4
|
import { S as i } from "./solid/calendar-week-solid.svg-CVmrJtif.js";
|
|
5
5
|
import { S as m } from "./solid/calendars-solid.svg-rClh_xBu.js";
|
|
6
|
-
import { S as
|
|
7
|
-
import { S as
|
|
8
|
-
import { S as
|
|
6
|
+
import { S as t } 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 L } from "./solid/plus-large-solid.svg-CdPjcQXo.js";
|
|
10
|
+
import { S as G } from "./solid/plus-solid.svg-piiaS3kO.js";
|
|
11
|
+
import { S as k } from "./solid/square-plus-solid.svg-SHmhFLCy.js";
|
|
9
12
|
export {
|
|
10
13
|
S as CalendarDaysSolid,
|
|
11
14
|
a as CalendarLine,
|
|
12
|
-
|
|
15
|
+
s as CalendarLinesSolid,
|
|
13
16
|
i as CalendarWeekSolid,
|
|
14
17
|
m as CalendarsSolid,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
t as GearSolid,
|
|
19
|
+
n as Grid2Solid,
|
|
20
|
+
C as PenToSquareSolid,
|
|
21
|
+
L as PlusLargeSolid,
|
|
22
|
+
G as PlusSolid,
|
|
23
|
+
k as SquarePlusSolid
|
|
18
24
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { S as o } from "./line/calendar-line.svg-DHsuXoUL.js";
|
|
2
|
+
import { S } from "./solid/calendar-days-solid.svg-CIj8vf6t.js";
|
|
3
|
+
import { S as r } from "./solid/calendar-lines-solid.svg-D2qG_E7t.js";
|
|
4
|
+
import { S as a } from "./solid/calendar-week-solid.svg-CVmrJtif.js";
|
|
5
|
+
import { S as l } from "./solid/calendars-solid.svg-rClh_xBu.js";
|
|
6
|
+
import { S as e } from "./solid/gear-solid.svg-C6vEx0Wx.js";
|
|
7
|
+
import { S as i } from "./solid/grid-2-solid.svg-BRtzwK6Y.js";
|
|
8
|
+
import { S as d } from "./solid/pen-to-square-solid.svg-DUdNcuTM.js";
|
|
9
|
+
import { S as s } from "./solid/plus-large-solid.svg-CdPjcQXo.js";
|
|
10
|
+
import { S as m } from "./solid/plus-solid.svg-piiaS3kO.js";
|
|
11
|
+
import { S as n } from "./solid/square-plus-solid.svg-SHmhFLCy.js";
|
|
12
|
+
const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
|
+
__proto__: null,
|
|
14
|
+
CalendarDaysSolid: S,
|
|
15
|
+
CalendarLine: o,
|
|
16
|
+
CalendarLinesSolid: r,
|
|
17
|
+
CalendarWeekSolid: a,
|
|
18
|
+
CalendarsSolid: l,
|
|
19
|
+
GearSolid: e,
|
|
20
|
+
Grid2Solid: i,
|
|
21
|
+
PenToSquareSolid: d,
|
|
22
|
+
PlusLargeSolid: s,
|
|
23
|
+
PlusSolid: m,
|
|
24
|
+
SquarePlusSolid: n
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
26
|
+
export {
|
|
27
|
+
G as S
|
|
28
|
+
};
|
|
@@ -5,3 +5,6 @@ export { default as CalendarsSolid } from './calendars-solid.svg';
|
|
|
5
5
|
export { default as GearSolid } from './gear-solid.svg';
|
|
6
6
|
export { default as Grid2Solid } from './grid-2-solid.svg';
|
|
7
7
|
export { default as PenToSquareSolid } from './pen-to-square-solid.svg';
|
|
8
|
+
export { default as PlusLargeSolid } from './plus-large-solid.svg';
|
|
9
|
+
export { default as PlusSolid } from './plus-solid.svg';
|
|
10
|
+
export { default as SquarePlusSolid } from './square-plus-solid.svg';
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { S as a } from "./calendar-days-solid.svg-CIj8vf6t.js";
|
|
2
2
|
import { S } from "./calendar-lines-solid.svg-D2qG_E7t.js";
|
|
3
|
-
import { S as
|
|
3
|
+
import { S as s } from "./calendar-week-solid.svg-CVmrJtif.js";
|
|
4
4
|
import { S as i } from "./calendars-solid.svg-rClh_xBu.js";
|
|
5
5
|
import { S as m } from "./gear-solid.svg-C6vEx0Wx.js";
|
|
6
6
|
import { S as t } from "./grid-2-solid.svg-BRtzwK6Y.js";
|
|
7
7
|
import { S as n } from "./pen-to-square-solid.svg-DUdNcuTM.js";
|
|
8
|
+
import { S as C } from "./plus-large-solid.svg-CdPjcQXo.js";
|
|
9
|
+
import { S as q } from "./plus-solid.svg-piiaS3kO.js";
|
|
10
|
+
import { S as L } from "./square-plus-solid.svg-SHmhFLCy.js";
|
|
8
11
|
export {
|
|
9
12
|
a as CalendarDaysSolid,
|
|
10
13
|
S as CalendarLinesSolid,
|
|
11
|
-
|
|
14
|
+
s as CalendarWeekSolid,
|
|
12
15
|
i as CalendarsSolid,
|
|
13
16
|
m as GearSolid,
|
|
14
17
|
t as Grid2Solid,
|
|
15
|
-
n as PenToSquareSolid
|
|
18
|
+
n as PenToSquareSolid,
|
|
19
|
+
C as PlusLargeSolid,
|
|
20
|
+
q as PlusSolid,
|
|
21
|
+
L as SquarePlusSolid
|
|
16
22
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_271_18)" }, /* @__PURE__ */ e.createElement("path", { d: "M13.5 2C13.5 1.17031 12.8297 0.5 12 0.5C11.1703 0.5 10.5 1.17031 10.5 2V11H1.5C0.670312 11 0 11.6703 0 12.5C0 13.3297 0.670312 14 1.5 14H10.5V23C10.5 23.8297 11.1703 24.5 12 24.5C12.8297 24.5 13.5 23.8297 13.5 23V14H22.5C23.3297 14 24 13.3297 24 12.5C24 11.6703 23.3297 11 22.5 11H13.5V2Z", fill: "currentColor" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_271_18" }, /* @__PURE__ */ e.createElement("rect", { width: 24, height: 24, fill: "currentColor", transform: "translate(0 0.5)" }))));
|
|
3
|
+
export {
|
|
4
|
+
l as S
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 27, viewBox: "0 0 24 27", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M13.7143 4.21875C13.7143 3.28535 12.9482 2.53125 12 2.53125C11.0518 2.53125 10.2857 3.28535 10.2857 4.21875V11.8125H2.57146C1.62325 11.8125 0.857178 12.5666 0.857178 13.5C0.857178 14.4334 1.62325 15.1875 2.57146 15.1875H10.2857V22.7812C10.2857 23.7146 11.0518 24.4688 12 24.4688C12.9482 24.4688 13.7143 23.7146 13.7143 22.7812V15.1875H21.4286C22.3768 15.1875 23.1429 14.4334 23.1429 13.5C23.1429 12.5666 22.3768 11.8125 21.4286 11.8125H13.7143V4.21875Z", fill: "currentColor" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const C = (t) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 27, viewBox: "0 0 24 27", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M3.42857 1.6875C1.5375 1.6875 0 3.20098 0 5.0625V21.9375C0 23.799 1.5375 25.3125 3.42857 25.3125H20.5714C22.4625 25.3125 24 23.799 24 21.9375V5.0625C24 3.20098 22.4625 1.6875 20.5714 1.6875H3.42857ZM10.7143 18.1406V14.7656H7.28571C6.57321 14.7656 6 14.2014 6 13.5C6 12.7986 6.57321 12.2344 7.28571 12.2344H10.7143V8.85938C10.7143 8.15801 11.2875 7.59375 12 7.59375C12.7125 7.59375 13.2857 8.15801 13.2857 8.85938V12.2344H16.7143C17.4268 12.2344 18 12.7986 18 13.5C18 14.2014 17.4268 14.7656 16.7143 14.7656H13.2857V18.1406C13.2857 18.842 12.7125 19.4062 12 19.4062C11.2875 19.4062 10.7143 18.842 10.7143 18.1406Z", fill: "currentColor" }));
|
|
3
|
+
export {
|
|
4
|
+
C as S
|
|
5
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BottomSheetProps } from './BottomSheet.typing';
|
|
2
|
-
declare function BottomSheet({ open, onClose, children, transitionDuration, onClick, ref, hideDragHandleBar, style, ...props }: BottomSheetProps): import("react").JSX.Element;
|
|
2
|
+
declare function BottomSheet({ open, onClose, children, transitionDuration, onClick, ref, hideDragHandleBar, hideOverlay, style, ...props }: BottomSheetProps): import("react").JSX.Element;
|
|
3
3
|
export default BottomSheet;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as y, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as y, jsxs as V } from "react/jsx-runtime";
|
|
2
|
+
import { useState as z, useRef as o, useImperativeHandle as G, useEffect as S } from "react";
|
|
3
3
|
import b from "basic-styled";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import J from "../Overlay/Overlay.mjs";
|
|
5
|
+
const K = b.div`
|
|
6
6
|
width: 100%;
|
|
7
7
|
max-height: calc(100% - ${({ theme: { spacing: t } }) => t[800]});
|
|
8
8
|
overflow-y: auto;
|
|
@@ -18,7 +18,7 @@ const J = b.div`
|
|
|
18
18
|
transform ${({ transitionDuration: t }) => `${t}ms`}
|
|
19
19
|
${({ ease: t }) => t === "in" ? "ease-out" : "ease-in"},
|
|
20
20
|
background-color 0.2s;
|
|
21
|
-
`,
|
|
21
|
+
`, N = b.div`
|
|
22
22
|
position: sticky;
|
|
23
23
|
top: 0;
|
|
24
24
|
left: 0;
|
|
@@ -33,7 +33,7 @@ const J = b.div`
|
|
|
33
33
|
}
|
|
34
34
|
}) => t.background};
|
|
35
35
|
transition: background-color 0.2s;
|
|
36
|
-
`,
|
|
36
|
+
`, Q = b.div`
|
|
37
37
|
width: 24px;
|
|
38
38
|
height: 4px;
|
|
39
39
|
border-radius: ${({ theme: { radius: t } }) => t[100]};
|
|
@@ -44,7 +44,7 @@ const J = b.div`
|
|
|
44
44
|
}) => t.main};
|
|
45
45
|
transition: background-color 0.2s;
|
|
46
46
|
`;
|
|
47
|
-
function
|
|
47
|
+
function C({
|
|
48
48
|
open: t,
|
|
49
49
|
onClose: c,
|
|
50
50
|
children: T,
|
|
@@ -52,12 +52,13 @@ function _({
|
|
|
52
52
|
onClick: $,
|
|
53
53
|
ref: j,
|
|
54
54
|
hideDragHandleBar: I,
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
hideOverlay: O,
|
|
56
|
+
style: A,
|
|
57
|
+
...F
|
|
57
58
|
}) {
|
|
58
|
-
const [L, h] =
|
|
59
|
-
|
|
60
|
-
const
|
|
59
|
+
const [L, h] = z(!1), l = o(null), k = o(null), i = o(null), d = o(!1), v = o(0), f = o(0), m = o(0), g = o(0), p = o(0), W = o(0.25);
|
|
60
|
+
G(j, () => l.current);
|
|
61
|
+
const q = (r) => {
|
|
61
62
|
r.stopPropagation(), typeof $ == "function" && $(r);
|
|
62
63
|
};
|
|
63
64
|
return S(() => {
|
|
@@ -68,7 +69,7 @@ function _({
|
|
|
68
69
|
r && cancelAnimationFrame(r);
|
|
69
70
|
};
|
|
70
71
|
}, [t]), S(() => {
|
|
71
|
-
const r = l.current, n =
|
|
72
|
+
const r = l.current, n = k.current, R = (e) => {
|
|
72
73
|
r && (r.scrollTop > 0 || (d.current = !0, v.current = e, f.current = e, m.current = r.offsetHeight, p.current = Date.now(), r.style.transition = "none", r.style.cursor = "grabbing", n && (n.style.transition = "none"), i.current && (i.current.style.cursor = "grabbing")));
|
|
73
74
|
}, x = (e) => {
|
|
74
75
|
if (!r || !d.current) return;
|
|
@@ -77,41 +78,44 @@ function _({
|
|
|
77
78
|
f.current = e;
|
|
78
79
|
const D = Date.now(), M = D - p.current;
|
|
79
80
|
if (M > 0) {
|
|
80
|
-
const
|
|
81
|
-
g.current = (e -
|
|
81
|
+
const P = f.current;
|
|
82
|
+
g.current = (e - P) / M, p.current = D;
|
|
82
83
|
}
|
|
83
84
|
n && (n.style.opacity = `${Math.max(0, 1 - u / (m.current * 2))}`), r.style.transform = `translate3d(0, ${u}px, 0)`;
|
|
84
85
|
}, a = () => {
|
|
85
86
|
if (!r || !d.current) return;
|
|
86
87
|
d.current = !1, r.style.cursor = "default", i.current && (i.current.style.cursor = "grab");
|
|
87
|
-
const e = f.current - v.current, u = m.current *
|
|
88
|
+
const e = f.current - v.current, u = m.current * W.current;
|
|
88
89
|
r.style.transition = `transform ${s}ms ease-out`, n && (n.style.transition = `opacity ${s}ms ease-out`), e > u || g.current > 0.5 && g.current > 0 ? (r.style.transform = "translate3d(0, 200%, 0)", n && (n.style.opacity = "0"), c == null || c()) : (r.style.transform = "translate3d(0, 0, 0)", n && (n.style.opacity = "1"));
|
|
89
|
-
}, w = (e) =>
|
|
90
|
+
}, w = (e) => R(e.clientY), H = (e) => x(e.clientY), Y = (e) => R(e.touches[0].clientY), B = (e) => x(e.touches[0].clientY);
|
|
90
91
|
return r == null || r.addEventListener("mousedown", w), r == null || r.addEventListener("mousemove", H), r == null || r.addEventListener("mouseup", a), r == null || r.addEventListener("mouseleave", a), r == null || r.addEventListener("touchstart", Y), r == null || r.addEventListener("touchmove", B), r == null || r.addEventListener("touchend", a), r == null || r.addEventListener("touchcancel", a), () => {
|
|
91
92
|
r == null || r.removeEventListener("mousedown", w), r == null || r.removeEventListener("mousemove", H), r == null || r.removeEventListener("mouseup", a), r == null || r.removeEventListener("mouseleave", a), r == null || r.removeEventListener("touchstart", Y), r == null || r.removeEventListener("touchmove", B), r == null || r.removeEventListener("touchend", a), r == null || r.removeEventListener("touchcancel", a);
|
|
92
93
|
};
|
|
93
94
|
}, [L, c, s]), /* @__PURE__ */ y(
|
|
94
|
-
|
|
95
|
+
J,
|
|
95
96
|
{
|
|
96
|
-
ref:
|
|
97
|
+
ref: k,
|
|
97
98
|
open: t,
|
|
98
99
|
onClose: c,
|
|
99
100
|
transitionDuration: s,
|
|
100
101
|
placement: "center-bottom",
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
css: O ? {
|
|
103
|
+
backgroundColor: "transparent !important"
|
|
104
|
+
} : void 0,
|
|
105
|
+
children: /* @__PURE__ */ V(
|
|
106
|
+
K,
|
|
103
107
|
{
|
|
104
108
|
ref: l,
|
|
105
109
|
ease: t ? "in" : "out",
|
|
106
110
|
transitionDuration: s,
|
|
107
|
-
onClick:
|
|
108
|
-
...
|
|
111
|
+
onClick: q,
|
|
112
|
+
...F,
|
|
109
113
|
style: {
|
|
110
114
|
transform: `translate3d(0, ${L ? "0" : "200%"}, 0)`,
|
|
111
|
-
...
|
|
115
|
+
...A
|
|
112
116
|
},
|
|
113
117
|
children: [
|
|
114
|
-
!I && /* @__PURE__ */ y(
|
|
118
|
+
!I && /* @__PURE__ */ y(N, { ref: i, children: /* @__PURE__ */ y(Q, {}) }),
|
|
115
119
|
T
|
|
116
120
|
]
|
|
117
121
|
}
|
|
@@ -120,5 +124,5 @@ function _({
|
|
|
120
124
|
);
|
|
121
125
|
}
|
|
122
126
|
export {
|
|
123
|
-
|
|
127
|
+
C as default
|
|
124
128
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
|
|
2
|
+
import { UtilityProps } from '../../typings/utility';
|
|
3
|
+
export interface BottomSheetProps extends ComponentPropsWithRef<"div">, Pick<UtilityProps, "css"> {
|
|
3
4
|
open?: boolean;
|
|
4
5
|
onClose?: () => void;
|
|
5
6
|
transitionDuration?: number;
|
|
6
7
|
hideDragHandleBar?: boolean;
|
|
8
|
+
hideOverlay?: boolean;
|
|
7
9
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
|
|
2
|
+
import { UtilityProps } from '../../typings/utility';
|
|
3
|
+
export interface DialogProps extends ComponentPropsWithRef<"div">, Pick<UtilityProps, "css"> {
|
|
3
4
|
open?: boolean;
|
|
4
5
|
onClose?: () => void;
|
|
5
6
|
transitionDuration?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { Children as p, isValidElement as l } from "react";
|
|
3
|
-
import { S as a } from "../../assets/icons/index.ts-
|
|
3
|
+
import { S as a } from "../../assets/icons/index.ts-CS7JEbxh.js";
|
|
4
4
|
import c from "basic-styled";
|
|
5
5
|
import d from "../../utils/getValueByPath.mjs";
|
|
6
6
|
const f = c.svg`
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
|
|
2
|
+
import { UtilityProps } from '../../typings/utility';
|
|
3
|
+
export interface OverlayProps extends ComponentPropsWithRef<"div">, Pick<UtilityProps, "css"> {
|
|
3
4
|
open?: boolean;
|
|
4
5
|
onClose?: () => void;
|
|
5
6
|
transitionDuration?: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode, ComponentPropsWithRef } from 'react';
|
|
2
|
-
|
|
2
|
+
import { UtilityProps } from '../../typings/utility';
|
|
3
|
+
export interface SnackbarProps extends ComponentPropsWithRef<"div">, UtilityProps {
|
|
3
4
|
open?: boolean;
|
|
4
5
|
onClose?: () => void;
|
|
5
6
|
transitionDuration?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextFieldProps } from './TextField.typing';
|
|
2
|
-
declare function TextField({ variant, size, fullWidth, disabled, startIcon, endIcon, onFocus, onBlur, ...props }: TextFieldProps): import("react").JSX.Element;
|
|
2
|
+
declare function TextField({ variant, size, fullWidth, disabled, startIcon, endIcon, css, onFocus, onBlur, ...props }: TextFieldProps): import("react").JSX.Element;
|
|
3
3
|
export default TextField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as p, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
3
|
import s from "basic-styled";
|
|
4
|
-
const
|
|
4
|
+
const b = s.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
gap: ${({ theme: { spacing: e } }) => e[200]};
|
|
@@ -124,7 +124,7 @@ const m = s.div`
|
|
|
124
124
|
color: e[500],
|
|
125
125
|
cursor: "not-allowed"
|
|
126
126
|
} : {}};
|
|
127
|
-
`,
|
|
127
|
+
`, w = s.input`
|
|
128
128
|
flex-grow: 1;
|
|
129
129
|
border: none;
|
|
130
130
|
outline: none;
|
|
@@ -141,49 +141,51 @@ const m = s.div`
|
|
|
141
141
|
&:disabled {
|
|
142
142
|
cursor: not-allowed;
|
|
143
143
|
}
|
|
144
|
-
`,
|
|
144
|
+
`, S = s.div`
|
|
145
145
|
display: flex;
|
|
146
146
|
align-items: center;
|
|
147
147
|
justify-content: center;
|
|
148
148
|
white-space: nowrap;
|
|
149
|
-
`,
|
|
149
|
+
`, $ = s.div`
|
|
150
150
|
display: flex;
|
|
151
151
|
align-items: center;
|
|
152
152
|
justify-content: center;
|
|
153
153
|
white-space: nowrap;
|
|
154
154
|
`;
|
|
155
|
-
function
|
|
155
|
+
function H({
|
|
156
156
|
variant: e = "outlined",
|
|
157
157
|
size: n = "medium",
|
|
158
158
|
fullWidth: o,
|
|
159
159
|
disabled: t,
|
|
160
160
|
startIcon: r,
|
|
161
161
|
endIcon: i,
|
|
162
|
+
css: f,
|
|
162
163
|
onFocus: l,
|
|
163
164
|
onBlur: a,
|
|
164
|
-
...
|
|
165
|
+
...g
|
|
165
166
|
}) {
|
|
166
|
-
const [
|
|
167
|
-
return /* @__PURE__ */
|
|
168
|
-
|
|
167
|
+
const [u, h] = m(!1);
|
|
168
|
+
return /* @__PURE__ */ p(
|
|
169
|
+
b,
|
|
169
170
|
{
|
|
170
171
|
variant: e,
|
|
171
172
|
size: n,
|
|
172
|
-
focused:
|
|
173
|
+
focused: u,
|
|
173
174
|
fullWidth: o,
|
|
174
175
|
disabled: t,
|
|
176
|
+
css: f,
|
|
175
177
|
children: [
|
|
176
|
-
r && /* @__PURE__ */ c(
|
|
177
|
-
/* @__PURE__ */ c(
|
|
178
|
+
r && /* @__PURE__ */ c(S, { children: r }),
|
|
179
|
+
/* @__PURE__ */ c(w, { ...g, onFocus: (d) => {
|
|
178
180
|
h(!0), l == null || l(d);
|
|
179
181
|
}, onBlur: (d) => {
|
|
180
182
|
h(!1), a == null || a(d);
|
|
181
183
|
}, disabled: t }),
|
|
182
|
-
i && /* @__PURE__ */ c(
|
|
184
|
+
i && /* @__PURE__ */ c($, { children: i })
|
|
183
185
|
]
|
|
184
186
|
}
|
|
185
187
|
);
|
|
186
188
|
}
|
|
187
189
|
export {
|
|
188
|
-
|
|
190
|
+
H as default
|
|
189
191
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { UtilityProps } from '../../typings/utility';
|
|
3
|
+
export interface TextFieldProps extends Omit<ComponentPropsWithRef<"input">, "children" | "size">, Pick<UtilityProps, "css"> {
|
|
3
4
|
variant?: "contained" | "outlined";
|
|
4
5
|
startIcon?: ReactNode;
|
|
5
6
|
endIcon?: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { S as o } from "./line/calendar-line.svg-DHsuXoUL.js";
|
|
2
|
-
import { S as r } from "./solid/calendar-days-solid.svg-CIj8vf6t.js";
|
|
3
|
-
import { S as a } from "./solid/calendar-lines-solid.svg-D2qG_E7t.js";
|
|
4
|
-
import { S } from "./solid/calendar-week-solid.svg-CVmrJtif.js";
|
|
5
|
-
import { S as e } from "./solid/calendars-solid.svg-rClh_xBu.js";
|
|
6
|
-
import { S as i } from "./solid/gear-solid.svg-C6vEx0Wx.js";
|
|
7
|
-
import { S as l } from "./solid/grid-2-solid.svg-BRtzwK6Y.js";
|
|
8
|
-
import { S as d } from "./solid/pen-to-square-solid.svg-DUdNcuTM.js";
|
|
9
|
-
const C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
-
__proto__: null,
|
|
11
|
-
CalendarDaysSolid: r,
|
|
12
|
-
CalendarLine: o,
|
|
13
|
-
CalendarLinesSolid: a,
|
|
14
|
-
CalendarWeekSolid: S,
|
|
15
|
-
CalendarsSolid: e,
|
|
16
|
-
GearSolid: i,
|
|
17
|
-
Grid2Solid: l,
|
|
18
|
-
PenToSquareSolid: d
|
|
19
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
-
export {
|
|
21
|
-
C as S
|
|
22
|
-
};
|