@valerius_petrini/corekit-ui 0.1.51 → 0.1.52
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/actions/fbm.d.ts +10 -0
- package/dist/actions/fbm.js +199 -0
- package/dist/components/Analytics.svelte +28 -0
- package/dist/components/Analytics.svelte.d.ts +4 -0
- package/dist/components/Button.svelte +81 -0
- package/dist/components/Button.svelte.d.ts +4 -0
- package/dist/components/Card.svelte +64 -0
- package/dist/components/Card.svelte.d.ts +4 -0
- package/dist/components/Checkbox.svelte +36 -0
- package/dist/components/Checkbox.svelte.d.ts +4 -0
- package/dist/components/FloatingInput.svelte +190 -0
- package/dist/components/FloatingInput.svelte.d.ts +5 -0
- package/dist/components/FloatingSelect.svelte +40 -0
- package/dist/components/FloatingSelect.svelte.d.ts +4 -0
- package/dist/components/Navbar.svelte +30 -0
- package/dist/components/Navbar.svelte.d.ts +4 -0
- package/dist/components/NavbarElement.svelte +35 -0
- package/dist/components/NavbarElement.svelte.d.ts +4 -0
- package/dist/components/NavbarSeparator.svelte +1 -0
- package/dist/components/NavbarSeparator.svelte.d.ts +26 -0
- package/dist/components/Progress.svelte +69 -0
- package/dist/components/Progress.svelte.d.ts +4 -0
- package/dist/components/SEO.svelte +43 -0
- package/dist/components/SEO.svelte.d.ts +4 -0
- package/dist/components/Text.svelte +65 -0
- package/dist/components/Text.svelte.d.ts +4 -0
- package/dist/components/Typewriter.svelte +86 -0
- package/dist/components/Typewriter.svelte.d.ts +4 -0
- package/dist/index.d.ts +15 -15
- package/dist/index.js +14 -14
- package/dist/styles/color.d.ts +4 -0
- package/dist/styles/color.js +204 -0
- package/dist/styles/layout.css +52 -0
- package/dist/styles/size.d.ts +16 -0
- package/dist/styles/size.js +146 -0
- package/dist/types/Analytics.d.ts +3 -0
- package/dist/types/Analytics.js +1 -0
- package/dist/types/Button.d.ts +17 -0
- package/dist/types/Button.js +1 -0
- package/dist/types/Card.d.ts +13 -0
- package/dist/types/Card.js +4 -0
- package/dist/types/Checkbox.d.ts +10 -0
- package/dist/types/Checkbox.js +2 -0
- package/dist/types/FloatingInput.d.ts +23 -0
- package/dist/types/FloatingInput.js +2 -0
- package/dist/types/FloatingSelect.d.ts +14 -0
- package/dist/types/FloatingSelect.js +2 -0
- package/dist/types/Navbar.d.ts +16 -0
- package/dist/types/Navbar.js +2 -0
- package/dist/types/Progress.d.ts +20 -0
- package/dist/types/Progress.js +2 -0
- package/dist/types/SEO.d.ts +6 -0
- package/dist/types/SEO.js +1 -0
- package/dist/types/Text.d.ts +11 -0
- package/dist/types/Text.js +2 -0
- package/dist/types/Typewriter.d.ts +33 -0
- package/dist/types/Typewriter.js +2 -0
- package/dist/utils/link.d.ts +9 -0
- package/dist/utils/link.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
export const colorStyleParts = {
|
|
2
|
+
rose: {
|
|
3
|
+
base: "bg-rose-500",
|
|
4
|
+
full: "bg-rose-500 hover:bg-rose-600",
|
|
5
|
+
light: "bg-rose-500/35 hover:bg-rose-600/35 text-white/60",
|
|
6
|
+
outline: "border border-rose-500 hover:border-rose-600 text-rose-500 hover:text-rose-600 hover:bg-rose-500/10",
|
|
7
|
+
ghost: "hover:bg-rose-500"
|
|
8
|
+
},
|
|
9
|
+
red: {
|
|
10
|
+
base: "bg-red-500",
|
|
11
|
+
full: "bg-red-500 hover:bg-red-600",
|
|
12
|
+
light: "bg-red-500/35 hover:bg-red-600/35 text-white/60",
|
|
13
|
+
outline: "border border-red-500 hover:border-red-600 text-red-500 hover:text-red-600 hover:bg-red-500/10",
|
|
14
|
+
ghost: "hover:bg-red-500"
|
|
15
|
+
},
|
|
16
|
+
orange: {
|
|
17
|
+
base: "bg-orange-500",
|
|
18
|
+
full: "bg-orange-500 hover:bg-orange-600",
|
|
19
|
+
light: "bg-orange-500/35 hover:bg-orange-600/35 text-white/60",
|
|
20
|
+
outline: "border border-orange-500 hover:border-orange-600 text-orange-500 hover:text-orange-600 hover:bg-orange-500/10",
|
|
21
|
+
ghost: "hover:bg-orange-500"
|
|
22
|
+
},
|
|
23
|
+
amber: {
|
|
24
|
+
base: "bg-amber-500",
|
|
25
|
+
full: "bg-amber-500 hover:bg-amber-600",
|
|
26
|
+
light: "bg-amber-500/35 hover:bg-amber-600/35 text-white/60",
|
|
27
|
+
outline: "border border-amber-500 hover:border-amber-600 text-amber-500 hover:text-amber-600 hover:bg-amber-500/10",
|
|
28
|
+
ghost: "hover:bg-amber-500"
|
|
29
|
+
},
|
|
30
|
+
yellow: {
|
|
31
|
+
base: "bg-yellow-500",
|
|
32
|
+
full: "bg-yellow-500 hover:bg-yellow-600",
|
|
33
|
+
light: "bg-yellow-500/35 hover:bg-yellow-600/35 text-white/60",
|
|
34
|
+
outline: "border border-yellow-500 hover:border-yellow-600 text-yellow-500 hover:text-yellow-600 hover:bg-yellow-500/10",
|
|
35
|
+
ghost: "hover:bg-yellow-500"
|
|
36
|
+
},
|
|
37
|
+
lime: {
|
|
38
|
+
base: "bg-lime-500",
|
|
39
|
+
full: "bg-lime-500 hover:bg-lime-600",
|
|
40
|
+
light: "bg-lime-500/35 hover:bg-lime-600/35 text-white/60",
|
|
41
|
+
outline: "border border-lime-500 hover:border-lime-600 text-lime-500 hover:text-lime-600 hover:bg-lime-500/10",
|
|
42
|
+
ghost: "hover:bg-lime-500"
|
|
43
|
+
},
|
|
44
|
+
green: {
|
|
45
|
+
base: "bg-green-500",
|
|
46
|
+
full: "bg-green-500 hover:bg-green-600",
|
|
47
|
+
light: "bg-green-500/35 hover:bg-green-600/35 text-white/60",
|
|
48
|
+
outline: "border border-green-500 hover:border-green-600 text-green-500 hover:text-green-600 hover:bg-green-500/10",
|
|
49
|
+
ghost: "hover:bg-green-500"
|
|
50
|
+
},
|
|
51
|
+
emerald: {
|
|
52
|
+
base: "bg-emerald-500",
|
|
53
|
+
full: "bg-emerald-500 hover:bg-emerald-600",
|
|
54
|
+
light: "bg-emerald-500/35 hover:bg-emerald-600/35 text-white/60",
|
|
55
|
+
outline: "border border-emerald-500 hover:border-emerald-600 text-emerald-500 hover:text-emerald-600 hover:bg-emerald-500/10",
|
|
56
|
+
ghost: "hover:bg-emerald-500"
|
|
57
|
+
},
|
|
58
|
+
teal: {
|
|
59
|
+
base: "bg-teal-500",
|
|
60
|
+
full: "bg-teal-500 hover:bg-teal-600",
|
|
61
|
+
light: "bg-teal-500/35 hover:bg-teal-600/35 text-white/60",
|
|
62
|
+
outline: "border border-teal-500 hover:border-teal-600 text-teal-500 hover:text-teal-600 hover:bg-teal-500/10",
|
|
63
|
+
ghost: "hover:bg-teal-500"
|
|
64
|
+
},
|
|
65
|
+
cyan: {
|
|
66
|
+
base: "bg-cyan-500",
|
|
67
|
+
full: "bg-cyan-500 hover:bg-cyan-600",
|
|
68
|
+
light: "bg-cyan-500/35 hover:bg-cyan-600/35 text-white/60",
|
|
69
|
+
outline: "border border-cyan-500 hover:border-cyan-600 text-cyan-500 hover:text-cyan-600 hover:bg-cyan-500/10",
|
|
70
|
+
ghost: "hover:bg-cyan-500"
|
|
71
|
+
},
|
|
72
|
+
blue: {
|
|
73
|
+
base: "bg-blue-500",
|
|
74
|
+
full: "bg-blue-500 hover:bg-blue-600",
|
|
75
|
+
light: "bg-blue-500/35 hover:bg-blue-600/35 text-white/60",
|
|
76
|
+
outline: "border border-blue-500 hover:border-blue-600 text-blue-500 hover:text-blue-600 hover:bg-blue-500/10",
|
|
77
|
+
ghost: "hover:bg-blue-500"
|
|
78
|
+
},
|
|
79
|
+
indigo: {
|
|
80
|
+
base: "bg-indigo-500",
|
|
81
|
+
full: "bg-indigo-500 hover:bg-indigo-600",
|
|
82
|
+
light: "bg-indigo-500/35 hover:bg-indigo-600/35 text-white/60",
|
|
83
|
+
outline: "border border-indigo-500 hover:border-indigo-600 text-indigo-500 hover:text-indigo-600 hover:bg-indigo-500/10",
|
|
84
|
+
ghost: "hover:bg-indigo-500"
|
|
85
|
+
},
|
|
86
|
+
violet: {
|
|
87
|
+
base: "bg-violet-500",
|
|
88
|
+
full: "bg-violet-500 hover:bg-violet-600",
|
|
89
|
+
light: "bg-violet-500/35 hover:bg-violet-600/35 text-white/60",
|
|
90
|
+
outline: "border border-violet-500 hover:border-violet-600 text-violet-500 hover:text-violet-600 hover:bg-violet-500/10",
|
|
91
|
+
ghost: "hover:bg-violet-500"
|
|
92
|
+
},
|
|
93
|
+
purple: {
|
|
94
|
+
base: "bg-purple-500",
|
|
95
|
+
full: "bg-purple-500 hover:bg-purple-600",
|
|
96
|
+
light: "bg-purple-500/35 hover:bg-purple-600/35 text-white/60",
|
|
97
|
+
outline: "border border-purple-500 hover:border-purple-600 text-purple-500 hover:text-purple-600 hover:bg-purple-500/10",
|
|
98
|
+
ghost: "hover:bg-purple-500"
|
|
99
|
+
},
|
|
100
|
+
pink: {
|
|
101
|
+
base: "bg-pink-500",
|
|
102
|
+
full: "bg-pink-500 hover:bg-pink-600",
|
|
103
|
+
light: "bg-pink-500/35 hover:bg-pink-600/35 text-white/60",
|
|
104
|
+
outline: "border border-pink-500 hover:border-pink-600 text-pink-500 hover:text-pink-600 hover:bg-pink-500/10",
|
|
105
|
+
ghost: "hover:bg-pink-500"
|
|
106
|
+
},
|
|
107
|
+
fuchsia: {
|
|
108
|
+
base: "bg-fuchsia-500",
|
|
109
|
+
full: "bg-fuchsia-500 hover:bg-fuchsia-600",
|
|
110
|
+
light: "bg-fuchsia-500/35 hover:bg-fuchsia-600/35 text-white/60",
|
|
111
|
+
outline: "border border-fuchsia-500 hover:border-fuchsia-600 text-fuchsia-500 hover:text-fuchsia-600 hover:bg-fuchsia-500/10",
|
|
112
|
+
ghost: "hover:bg-fuchsia-500"
|
|
113
|
+
},
|
|
114
|
+
gray: {
|
|
115
|
+
base: "bg-gray-500",
|
|
116
|
+
full: "bg-gray-500 hover:bg-gray-600",
|
|
117
|
+
light: "bg-gray-500/35 hover:bg-gray-600/35 text-white/60",
|
|
118
|
+
outline: "border border-gray-500 hover:border-gray-600 text-gray-500 hover:text-gray-600 hover:bg-gray-500/10",
|
|
119
|
+
ghost: "hover:bg-gray-500"
|
|
120
|
+
},
|
|
121
|
+
sub: {
|
|
122
|
+
base: "bg-sub-background",
|
|
123
|
+
full: "bg-sub-background hover:bg-sub-background-hover",
|
|
124
|
+
light: "bg-sub-background hover:bg-sub-background-hover text-white/60",
|
|
125
|
+
outline: "border border-sub-background hover:border-sub-background-hover text-sub-background hover:text-sub-background-hover hover:bg-sub-background/10",
|
|
126
|
+
ghost: "hover:bg-sub-background"
|
|
127
|
+
},
|
|
128
|
+
none: {
|
|
129
|
+
base: "",
|
|
130
|
+
full: "",
|
|
131
|
+
light: "",
|
|
132
|
+
outline: "",
|
|
133
|
+
ghost: ""
|
|
134
|
+
},
|
|
135
|
+
white: {
|
|
136
|
+
base: "bg-white text-contrast-text",
|
|
137
|
+
full: "bg-white hover:bg-gray-100 text-contrast-text hover:text-contrast-text",
|
|
138
|
+
light: "bg-white/35 hover:bg-white/35 text-gray-700",
|
|
139
|
+
outline: "border border-white hover:border-gray-300 text-white hover:text-gray-300 hover:bg-white/10",
|
|
140
|
+
ghost: "hover:bg-white hover:text-contrast-text"
|
|
141
|
+
},
|
|
142
|
+
black: {
|
|
143
|
+
base: "bg-black",
|
|
144
|
+
full: "bg-black hover:bg-stone-950",
|
|
145
|
+
light: "bg-black/35 hover:bg-black/35 text-gray-500",
|
|
146
|
+
outline: "border border-black hover:border-gray-700 text-black hover:text-gray-700 hover:bg-black/10",
|
|
147
|
+
ghost: "hover:bg-black"
|
|
148
|
+
},
|
|
149
|
+
primary: {
|
|
150
|
+
base: "bg-primary",
|
|
151
|
+
full: "bg-primary hover:bg-primary/90",
|
|
152
|
+
light: "bg-primary/35 hover:bg-primary/35 text-white/60",
|
|
153
|
+
outline: "border border-primary hover:border-primary/90 text-primary hover:text-primary/90 hover:bg-primary/10",
|
|
154
|
+
ghost: "hover:bg-primary"
|
|
155
|
+
},
|
|
156
|
+
secondary: {
|
|
157
|
+
base: "bg-secondary",
|
|
158
|
+
full: "bg-secondary hover:bg-secondary/90",
|
|
159
|
+
light: "bg-secondary/35 hover:bg-secondary/35 text-white/60",
|
|
160
|
+
outline: "border border-secondary hover:border-secondary/90 text-secondary hover:text-secondary/90 hover:bg-secondary/10",
|
|
161
|
+
ghost: "hover:bg-secondary"
|
|
162
|
+
},
|
|
163
|
+
accent: {
|
|
164
|
+
base: "bg-accent",
|
|
165
|
+
full: "bg-accent hover:bg-accent/90",
|
|
166
|
+
light: "bg-accent/35 hover:bg-accent/35 text-white/60",
|
|
167
|
+
outline: "border border-accent hover:border-accent/90 text-accent hover:text-accent/90 hover:bg-accent/10",
|
|
168
|
+
ghost: "hover:bg-accent"
|
|
169
|
+
},
|
|
170
|
+
error: {
|
|
171
|
+
base: "bg-red-500",
|
|
172
|
+
full: "bg-red-500 hover:bg-red-600",
|
|
173
|
+
light: "bg-red-500/35 hover:bg-red-600/35 text-white/60",
|
|
174
|
+
outline: "border border-red-500 hover:border-red-600 text-red-500 hover:text-red-600 hover:bg-red-500/10",
|
|
175
|
+
ghost: "hover:bg-red-500"
|
|
176
|
+
},
|
|
177
|
+
warning: {
|
|
178
|
+
base: "bg-amber-500",
|
|
179
|
+
full: "bg-amber-500 hover:bg-amber-600",
|
|
180
|
+
light: "bg-amber-500/35 hover:bg-amber-600/35 text-white/60",
|
|
181
|
+
outline: "border border-amber-500 hover:border-amber-600 text-amber-500 hover:text-amber-600 hover:bg-amber-500/10",
|
|
182
|
+
ghost: "hover:bg-amber-500"
|
|
183
|
+
},
|
|
184
|
+
success: {
|
|
185
|
+
base: "bg-emerald-500",
|
|
186
|
+
full: "bg-emerald-500 hover:bg-emerald-600",
|
|
187
|
+
light: "bg-emerald-500/35 hover:bg-emerald-600/35 text-white/60",
|
|
188
|
+
outline: "border border-emerald-500 hover:border-emerald-600 text-emerald-500 hover:text-emerald-600 hover:bg-emerald-500/10",
|
|
189
|
+
ghost: "hover:bg-emerald-500"
|
|
190
|
+
},
|
|
191
|
+
info: {
|
|
192
|
+
base: "bg-sky-500",
|
|
193
|
+
full: "bg-sky-500 hover:bg-sky-600",
|
|
194
|
+
light: "bg-sky-500/35 hover:bg-sky-600/35 text-white/60",
|
|
195
|
+
outline: "border border-sky-500 hover:border-sky-600 text-sky-500 hover:text-sky-600 hover:bg-sky-500/10",
|
|
196
|
+
ghost: "hover:bg-sky-500"
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
export function generateColorStyle(color, variant) {
|
|
200
|
+
const styles = colorStyleParts[color];
|
|
201
|
+
if (!styles)
|
|
202
|
+
return "";
|
|
203
|
+
return styles[variant] || "";
|
|
204
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@utility flex-center {
|
|
4
|
+
@apply flex items-center justify-center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
--color-main-background: var(--vpcui-main-background);
|
|
11
|
+
--color-sub-background: var(--vpcui-sub-background);
|
|
12
|
+
--color-sub-background-hover: var(--vpcui-sub-background-hover);
|
|
13
|
+
--color-main-text: var(--vpcui-main-text);
|
|
14
|
+
--color-sub-text: var(--vpcui-sub-text);
|
|
15
|
+
--color-contrast-text: var(--vpcui-contrast-text);
|
|
16
|
+
--color-form-background: var(--vpcui-form-background);
|
|
17
|
+
--color-form-hover: var(--vpcui-form-hover);
|
|
18
|
+
--color-form-border: var(--vpcui-form-border);
|
|
19
|
+
--color-navbar-element-hover-background: var(--vpcui-navbar-element-hover-background);
|
|
20
|
+
--color-primary: var(--vpcui-primary);
|
|
21
|
+
--color-secondary: var(--vpcui-secondary);
|
|
22
|
+
--color-accent: var(--vpcui-accent);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:root {
|
|
26
|
+
--vpcui-main-background: #FFFFFF;
|
|
27
|
+
--vpcui-sub-background: #F5F5F5;
|
|
28
|
+
--vpcui-sub-background-hover: #EEE;
|
|
29
|
+
--vpcui-main-text: #111;
|
|
30
|
+
--vpcui-sub-text: #6B6B6B ;
|
|
31
|
+
--vpcui-contrast-text: #F5F5F5;
|
|
32
|
+
--vpcui-form-background: #FFFFFF;
|
|
33
|
+
--vpcui-form-hover: #D4D4D4;
|
|
34
|
+
--vpcui-form-border: #C4C4C4;
|
|
35
|
+
--vpcui-color-navbar-element-hover-background: var(--color-mist-100);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
html.dark {
|
|
39
|
+
--vpcui-main-background: #121212;
|
|
40
|
+
--vpcui-sub-background: #1E1E1E;
|
|
41
|
+
--vpcui-sub-background-hover: #2A2A2A;
|
|
42
|
+
--vpcui-main-text: #F5F5F5;
|
|
43
|
+
--vpcui-sub-text: #A0A0A0;
|
|
44
|
+
--vpcui-contrast-text: #111;
|
|
45
|
+
--vpcui-form-background: #2A2A2A;
|
|
46
|
+
--vpcui-form-border: #3A3A3A;
|
|
47
|
+
--vpcui-navbar-element-hover-background: var(--color-zinc-900);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
html {
|
|
51
|
+
background-color: var(--color-main-background);
|
|
52
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type SizeStyleTheme = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | "none";
|
|
2
|
+
export type SizeStyleType = "button" | "buttonIcon" | "radius" | "text" | "card" | "form" | "formLabel" | "formLabelSelected" | "progress";
|
|
3
|
+
export type SizeStyle = SizeStyleTheme | number;
|
|
4
|
+
export declare const sizeStyleParts: Record<SizeStyleTheme, Record<SizeStyleType, string>>;
|
|
5
|
+
export declare const textStyle: {
|
|
6
|
+
"text-xs": string;
|
|
7
|
+
"text-sm": string;
|
|
8
|
+
"text-base": string;
|
|
9
|
+
"text-lg": string;
|
|
10
|
+
"text-xl": string;
|
|
11
|
+
"text-2xl": string;
|
|
12
|
+
"text-3xl": string;
|
|
13
|
+
"text-4xl": string;
|
|
14
|
+
"text-5xl": string;
|
|
15
|
+
"text-6xl": string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export const sizeStyleParts = {
|
|
2
|
+
xs: {
|
|
3
|
+
button: "text-xs h-4 px-1 py-0.5",
|
|
4
|
+
buttonIcon: "text-xs h-4 w-4 p-0.5",
|
|
5
|
+
radius: "rounded-xs",
|
|
6
|
+
text: "text-xs",
|
|
7
|
+
card: "w-xs",
|
|
8
|
+
form: "h-5 pt-1 pb-0.25",
|
|
9
|
+
formLabel: "text-[8px]",
|
|
10
|
+
formLabelSelected: "text-[6px] top-1",
|
|
11
|
+
progress: "h-0.5"
|
|
12
|
+
},
|
|
13
|
+
sm: {
|
|
14
|
+
button: "text-sm h-6 px-2 py-1",
|
|
15
|
+
buttonIcon: "text-sm h-6 w-6 p-1",
|
|
16
|
+
radius: "rounded-sm",
|
|
17
|
+
text: "text-sm",
|
|
18
|
+
card: "w-sm",
|
|
19
|
+
form: "h-7 pt-3 pb-0.5",
|
|
20
|
+
formLabel: "text-[10px]",
|
|
21
|
+
formLabelSelected: "text-[8px] top-1.5",
|
|
22
|
+
progress: "h-1"
|
|
23
|
+
},
|
|
24
|
+
md: {
|
|
25
|
+
button: "text-base h-8 px-3 py-1.5",
|
|
26
|
+
buttonIcon: "text-base h-8 w-8 p-1.5",
|
|
27
|
+
radius: "rounded-md",
|
|
28
|
+
text: "text-base",
|
|
29
|
+
card: "w-md",
|
|
30
|
+
form: "h-9 pt-4 pb-1",
|
|
31
|
+
formLabel: "text-xs",
|
|
32
|
+
formLabelSelected: "text-[10px] top-2",
|
|
33
|
+
progress: "h-2"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
button: "text-lg h-10 px-4 py-2",
|
|
37
|
+
buttonIcon: "text-lg h-10 w-10 p-2",
|
|
38
|
+
radius: "rounded-lg",
|
|
39
|
+
text: "text-lg",
|
|
40
|
+
card: "w-lg",
|
|
41
|
+
form: "h-[44px] pt-5 pb-2",
|
|
42
|
+
formLabel: "text-sm",
|
|
43
|
+
formLabelSelected: "text-xs top-2.5",
|
|
44
|
+
progress: "h-3"
|
|
45
|
+
},
|
|
46
|
+
xl: {
|
|
47
|
+
button: "text-xl h-12 px-5 py-2.5",
|
|
48
|
+
buttonIcon: "text-xl h-12 w-12 p-2.5",
|
|
49
|
+
radius: "rounded-xl",
|
|
50
|
+
text: "text-xl",
|
|
51
|
+
card: "w-xl",
|
|
52
|
+
form: "h-[52px] pt-6 pb-3",
|
|
53
|
+
formLabel: "text-base",
|
|
54
|
+
formLabelSelected: "text-sm top-3",
|
|
55
|
+
progress: "h-4"
|
|
56
|
+
},
|
|
57
|
+
"2xl": {
|
|
58
|
+
button: "text-2xl h-14 px-6 py-3",
|
|
59
|
+
buttonIcon: "text-2xl h-14 w-14 p-3",
|
|
60
|
+
radius: "rounded-2xl",
|
|
61
|
+
text: "text-2xl",
|
|
62
|
+
card: "w-2xl",
|
|
63
|
+
form: "h-[60px] pt-7 pb-4",
|
|
64
|
+
formLabel: "text-lg",
|
|
65
|
+
formLabelSelected: "text-base top-3.5",
|
|
66
|
+
progress: "h-5"
|
|
67
|
+
},
|
|
68
|
+
"3xl": {
|
|
69
|
+
button: "text-3xl h-16 px-7 py-3.5",
|
|
70
|
+
buttonIcon: "text-3xl h-16 w-16 p-3.5",
|
|
71
|
+
radius: "rounded-3xl",
|
|
72
|
+
text: "text-3xl",
|
|
73
|
+
card: "w-3xl",
|
|
74
|
+
form: "h-[68px] pt-8 pb-5",
|
|
75
|
+
formLabel: "text-xl",
|
|
76
|
+
formLabelSelected: "text-lg top-4",
|
|
77
|
+
progress: "h-6"
|
|
78
|
+
},
|
|
79
|
+
"4xl": {
|
|
80
|
+
button: "text-4xl h-18 px-8 py-4",
|
|
81
|
+
buttonIcon: "text-4xl h-18 w-18 p-4",
|
|
82
|
+
radius: "rounded-4xl",
|
|
83
|
+
text: "text-4xl",
|
|
84
|
+
card: "w-4xl",
|
|
85
|
+
form: "h-[76px] pt-9 pb-6",
|
|
86
|
+
formLabel: "text-2xl",
|
|
87
|
+
formLabelSelected: "text-xl top-4.5",
|
|
88
|
+
progress: "h-7"
|
|
89
|
+
},
|
|
90
|
+
"5xl": {
|
|
91
|
+
button: "text-5xl h-20 px-9 py-4.5",
|
|
92
|
+
buttonIcon: "text-5xl h-20 w-20 p-4.5",
|
|
93
|
+
radius: "rounded-[2.5rem]",
|
|
94
|
+
text: "text-5xl",
|
|
95
|
+
card: "w-5xl",
|
|
96
|
+
form: "h-[84px] pt-10 pb-5",
|
|
97
|
+
formLabel: "text-3xl",
|
|
98
|
+
formLabelSelected: "text-2xl top-5",
|
|
99
|
+
progress: "h-8"
|
|
100
|
+
},
|
|
101
|
+
"6xl": {
|
|
102
|
+
button: "text-6xl h-24 px-10 py-5",
|
|
103
|
+
buttonIcon: "text-6xl h-24 w-24 p-5",
|
|
104
|
+
radius: "rounded-[3rem]",
|
|
105
|
+
text: "text-6xl",
|
|
106
|
+
card: "w-6xl",
|
|
107
|
+
form: "h-[92px] pt-12 pb-6",
|
|
108
|
+
formLabel: "text-4xl",
|
|
109
|
+
formLabelSelected: "text-3xl top-[22px]",
|
|
110
|
+
progress: "h-9"
|
|
111
|
+
},
|
|
112
|
+
full: {
|
|
113
|
+
button: "w-full text-base h-8 px-3 py-1",
|
|
114
|
+
buttonIcon: "w-full aspect-square text-base p-1",
|
|
115
|
+
radius: "rounded-full",
|
|
116
|
+
text: "w-full text-base",
|
|
117
|
+
card: "w-full",
|
|
118
|
+
form: "h-9 pt-4 pb-1",
|
|
119
|
+
formLabel: "text-xs",
|
|
120
|
+
formLabelSelected: "text-[10px] top-2",
|
|
121
|
+
progress: "h-2"
|
|
122
|
+
},
|
|
123
|
+
none: {
|
|
124
|
+
button: "p-0 h-auto text-base",
|
|
125
|
+
buttonIcon: "p-0 h-auto w-auto text-base",
|
|
126
|
+
radius: "rounded-none",
|
|
127
|
+
text: "",
|
|
128
|
+
card: "",
|
|
129
|
+
form: "h-auto px-0 py-0",
|
|
130
|
+
formLabel: "",
|
|
131
|
+
formLabelSelected: "",
|
|
132
|
+
progress: ""
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
export const textStyle = {
|
|
136
|
+
"text-xs": "0.75rem",
|
|
137
|
+
"text-sm": "0.875rem",
|
|
138
|
+
"text-base": "1rem",
|
|
139
|
+
"text-lg": "1.125rem",
|
|
140
|
+
"text-xl": "1.25rem",
|
|
141
|
+
"text-2xl": "1.5rem",
|
|
142
|
+
"text-3xl": "1.875rem",
|
|
143
|
+
"text-4xl": "2.25rem",
|
|
144
|
+
"text-5xl": "3rem",
|
|
145
|
+
"text-6xl": "3.75rem"
|
|
146
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ColorStyle, ColorStyleType } from "../styles/color.ts";
|
|
2
|
+
import type { SizeStyle } from "../styles/size.ts";
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
children?: any;
|
|
5
|
+
class?: string;
|
|
6
|
+
pill?: boolean;
|
|
7
|
+
icon?: boolean;
|
|
8
|
+
square?: boolean;
|
|
9
|
+
href?: string;
|
|
10
|
+
color?: ColorStyle;
|
|
11
|
+
variant?: ColorStyleType;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
external?: boolean;
|
|
14
|
+
size?: SizeStyle;
|
|
15
|
+
radius?: SizeStyle;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SizeStyle } from "../styles/size.ts";
|
|
2
|
+
export type CardVariant = "bordered" | "elevated";
|
|
3
|
+
export declare const cardVariantStyles: Record<CardVariant, string>;
|
|
4
|
+
export interface CardProps {
|
|
5
|
+
children?: any;
|
|
6
|
+
class?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
external?: boolean;
|
|
9
|
+
variant?: CardVariant;
|
|
10
|
+
size?: SizeStyle;
|
|
11
|
+
radius?: SizeStyle;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Component } from "svelte";
|
|
2
|
+
import type { SizeStyle } from "../styles/size.ts";
|
|
3
|
+
export type InputVariant = "default" | "floating";
|
|
4
|
+
export interface FloatingInputProps {
|
|
5
|
+
children?: any;
|
|
6
|
+
class?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelClass?: string;
|
|
9
|
+
divClass?: string;
|
|
10
|
+
icon?: Component;
|
|
11
|
+
value?: any;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
variant?: InputVariant;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
onfocus?: (e?: FocusEvent) => void;
|
|
17
|
+
onblur?: (e?: FocusEvent) => void;
|
|
18
|
+
validInputRegex?: RegExp;
|
|
19
|
+
size?: SizeStyle;
|
|
20
|
+
radius?: SizeStyle;
|
|
21
|
+
id?: `${string}-${string}-${string}-${string}-${string}`;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface FloatingSelectProps {
|
|
2
|
+
children?: any;
|
|
3
|
+
class?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
divClass?: string;
|
|
6
|
+
optionClass?: string;
|
|
7
|
+
value?: any;
|
|
8
|
+
options: {
|
|
9
|
+
value: any;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
id?: `${string}-${string}-${string}-${string}-${string}`;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface NavbarProps {
|
|
2
|
+
children?: any;
|
|
3
|
+
class?: string;
|
|
4
|
+
classTop?: string;
|
|
5
|
+
threshold?: number;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export interface NavbarElementProps {
|
|
9
|
+
children?: any;
|
|
10
|
+
class?: string;
|
|
11
|
+
classTop?: string;
|
|
12
|
+
activeClass?: string;
|
|
13
|
+
href?: string;
|
|
14
|
+
threshold?: number;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ColorStyle } from "../styles/color.ts";
|
|
2
|
+
import type { SizeStyle } from "../styles/size.ts";
|
|
3
|
+
interface AnimateProps {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
duration: number;
|
|
7
|
+
onend?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface ProgressProps {
|
|
10
|
+
children?: any;
|
|
11
|
+
class?: string;
|
|
12
|
+
divClass?: string;
|
|
13
|
+
progress?: number;
|
|
14
|
+
animate?: AnimateProps;
|
|
15
|
+
color?: ColorStyle;
|
|
16
|
+
size?: SizeStyle;
|
|
17
|
+
radius?: SizeStyle;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SizeStyle } from "../styles/size.ts";
|
|
2
|
+
type TextTagOptions = "p" | "div" | "span" | "label" | "strong" | "em" | "b" | "i" | "u" | "small" | "blockquote" | "pre" | "code" | "a" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3
|
+
export interface TextProps {
|
|
4
|
+
children?: any;
|
|
5
|
+
class?: string;
|
|
6
|
+
tag?: TextTagOptions;
|
|
7
|
+
shrink?: number;
|
|
8
|
+
size?: SizeStyle;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type TypewriterAction = {
|
|
2
|
+
type: "write";
|
|
3
|
+
value: string | (() => string);
|
|
4
|
+
color?: string | (() => string);
|
|
5
|
+
minspeed?: number;
|
|
6
|
+
maxspeed?: number;
|
|
7
|
+
label?: string;
|
|
8
|
+
} | {
|
|
9
|
+
type: "delete";
|
|
10
|
+
to: string;
|
|
11
|
+
minspeed?: number;
|
|
12
|
+
maxspeed?: number;
|
|
13
|
+
label?: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "pause";
|
|
16
|
+
duration: number;
|
|
17
|
+
label?: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "jump";
|
|
20
|
+
position: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
};
|
|
23
|
+
export interface DisplaySegment {
|
|
24
|
+
text: string;
|
|
25
|
+
color?: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface TypewriterProps {
|
|
29
|
+
actions: TypewriterAction[];
|
|
30
|
+
class?: string;
|
|
31
|
+
textClass?: string;
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|