@edu-tosel/design 1.0.277 → 1.0.278
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/asset/SVG.d.ts +2 -0
- package/asset/SVG.js +2 -0
- package/asset/SVG.tsx +2 -0
- package/asset/svg/MiniCheck.d.ts +3 -0
- package/asset/svg/MiniCheck.js +4 -0
- package/asset/svg/MiniCheck.tsx +16 -0
- package/layout/template/home/Float.js +3 -3
- package/layout/template/sign/Layout.js +1 -1
- package/layout/template/sign/WithTitle.d.ts +1 -4
- package/package.json +1 -1
- package/version.txt +1 -1
- package/widget/template/Input/Form.js +2 -2
package/asset/SVG.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import Print from "./svg/Print";
|
|
|
12
12
|
import User from "./svg/User";
|
|
13
13
|
import Search from "./svg/Search";
|
|
14
14
|
import MiniClose from "./svg/MiniClose";
|
|
15
|
+
import MiniCheck from "./svg/MiniCheck";
|
|
15
16
|
declare const SVG: {
|
|
16
17
|
TOSEL: typeof TOSEL;
|
|
17
18
|
Close: typeof Close;
|
|
@@ -71,5 +72,6 @@ declare const SVG: {
|
|
|
71
72
|
User: typeof User;
|
|
72
73
|
Search: typeof Search;
|
|
73
74
|
MiniClose: typeof MiniClose;
|
|
75
|
+
MiniCheck: typeof MiniCheck;
|
|
74
76
|
};
|
|
75
77
|
export default SVG;
|
package/asset/SVG.js
CHANGED
|
@@ -17,6 +17,7 @@ import Print from "./svg/Print";
|
|
|
17
17
|
import User from "./svg/User";
|
|
18
18
|
import Search from "./svg/Search";
|
|
19
19
|
import MiniClose from "./svg/MiniClose";
|
|
20
|
+
import MiniCheck from "./svg/MiniCheck";
|
|
20
21
|
const SVG = {
|
|
21
22
|
TOSEL,
|
|
22
23
|
Close,
|
|
@@ -37,5 +38,6 @@ const SVG = {
|
|
|
37
38
|
User,
|
|
38
39
|
Search,
|
|
39
40
|
MiniClose,
|
|
41
|
+
MiniCheck,
|
|
40
42
|
};
|
|
41
43
|
export default SVG;
|
package/asset/SVG.tsx
CHANGED
|
@@ -17,6 +17,7 @@ import Print from "./svg/Print";
|
|
|
17
17
|
import User from "./svg/User";
|
|
18
18
|
import Search from "./svg/Search";
|
|
19
19
|
import MiniClose from "./svg/MiniClose";
|
|
20
|
+
import MiniCheck from "./svg/MiniCheck";
|
|
20
21
|
|
|
21
22
|
const SVG = {
|
|
22
23
|
TOSEL,
|
|
@@ -38,6 +39,7 @@ const SVG = {
|
|
|
38
39
|
User,
|
|
39
40
|
Search,
|
|
40
41
|
MiniClose,
|
|
42
|
+
MiniCheck,
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
export default SVG;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export default function MiniCheck({ color: _color }) {
|
|
3
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", className: "size-4", children: _jsx("path", { "fill-rule": "evenodd", d: "M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z", "clip-rule": "evenodd" }) }));
|
|
4
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default function MiniCheck({ color: _color }: { color?: string }) {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
viewBox="0 0 16 16"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
className="size-4"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
fill-rule="evenodd"
|
|
11
|
+
d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z"
|
|
12
|
+
clip-rule="evenodd"
|
|
13
|
+
/>
|
|
14
|
+
</svg>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -2,13 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../util";
|
|
3
3
|
export default function Float({ contents }) {
|
|
4
4
|
const container = {
|
|
5
|
-
displays: "fixed flex flex-col bottom-16 right-16 z-40 overflow-visible",
|
|
5
|
+
displays: "fixed flex flex-col bottom-20 md:bottom-16 right-5 md:right-16 z-40 overflow-visible",
|
|
6
6
|
spacings: "gap-5",
|
|
7
7
|
};
|
|
8
8
|
const buttonBox = (background) => ({
|
|
9
9
|
displays: "flex flex-col justify-center items-center",
|
|
10
|
-
spacings: "p-3",
|
|
11
|
-
sizes: "w-16 h-16",
|
|
10
|
+
spacings: "p-1.5 md:p-3",
|
|
11
|
+
sizes: "w-12 h-12 md:w-16 md:h-16",
|
|
12
12
|
styles: "rounded-full bg-black overflow-hidden",
|
|
13
13
|
backgrounds: background ?? "bg-white",
|
|
14
14
|
shadows: "shadow-main",
|
|
@@ -10,7 +10,7 @@ export default function Layout({ children, steps, script, title, }) {
|
|
|
10
10
|
};
|
|
11
11
|
const headerBox = {
|
|
12
12
|
display: "flex flex-row justify-between items-center",
|
|
13
|
-
sizes: "h-15 w-full md:w-112.5",
|
|
13
|
+
sizes: "h-15 shrink-0 w-full md:w-112.5",
|
|
14
14
|
spacings: "px-5 mb-5",
|
|
15
15
|
backgorunds: "bg-gradient-to-r from-green-dark to-crimson-burgundy rounded-lg",
|
|
16
16
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { InputWidget } from "../../../interface";
|
|
2
|
-
|
|
3
|
-
title: string;
|
|
4
|
-
}
|
|
5
|
-
declare function WithTitle(props: InputWithTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function WithTitle(props: InputWidget): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
export default WithTitle;
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.278
|
|
@@ -19,9 +19,9 @@ export default function InputForm({ title, state, placeholder, isValid, type, on
|
|
|
19
19
|
animation: value || onFocus ? "top-2.625 text-xs" : "top-4.375 text-base",
|
|
20
20
|
};
|
|
21
21
|
const styleByFlag = () => {
|
|
22
|
-
const gray = "bg-gray-light border-green-dark";
|
|
22
|
+
const gray = "bg-gray-light/50 border-green-dark";
|
|
23
23
|
const green = "bg-green-dark/10 text-green-dark border-green-dark";
|
|
24
|
-
const red = "bg-
|
|
24
|
+
const red = "bg-red-50 text-red-400 border-red-500";
|
|
25
25
|
if (typeof isValid === "undefined")
|
|
26
26
|
return gray;
|
|
27
27
|
if (typeof isValid === "function")
|