@valerius_petrini/corekit-ui 0.1.49 → 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.
Files changed (54) hide show
  1. package/dist/components/Analytics.svelte.d.ts +1 -1
  2. package/dist/components/Button.svelte +35 -18
  3. package/dist/components/Button.svelte.d.ts +1 -1
  4. package/dist/components/Card.svelte +46 -6
  5. package/dist/components/Card.svelte.d.ts +1 -1
  6. package/dist/components/Checkbox.svelte +2 -1
  7. package/dist/components/Checkbox.svelte.d.ts +1 -1
  8. package/dist/components/FloatingInput.svelte +142 -30
  9. package/dist/components/FloatingInput.svelte.d.ts +3 -2
  10. package/dist/components/FloatingSelect.svelte +3 -2
  11. package/dist/components/FloatingSelect.svelte.d.ts +1 -1
  12. package/dist/components/Navbar.svelte +2 -2
  13. package/dist/components/Navbar.svelte.d.ts +1 -1
  14. package/dist/components/NavbarElement.svelte +1 -1
  15. package/dist/components/NavbarElement.svelte.d.ts +1 -1
  16. package/dist/components/Progress.svelte +69 -0
  17. package/dist/components/Progress.svelte.d.ts +4 -0
  18. package/dist/components/SEO.svelte.d.ts +1 -1
  19. package/dist/components/Text.svelte +6 -6
  20. package/dist/components/Text.svelte.d.ts +1 -1
  21. package/dist/components/Typewriter.svelte +1 -1
  22. package/dist/components/Typewriter.svelte.d.ts +1 -1
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.js +1 -0
  25. package/dist/styles/color.d.ts +2 -2
  26. package/dist/styles/color.js +148 -6
  27. package/dist/styles/layout.css +31 -23
  28. package/dist/styles/size.d.ts +4 -3
  29. package/dist/styles/size.js +72 -18
  30. package/dist/types/Analytics.d.ts +1 -1
  31. package/dist/types/Analytics.js +1 -0
  32. package/dist/types/Button.d.ts +2 -2
  33. package/dist/types/Button.js +1 -0
  34. package/dist/types/Card.d.ts +8 -1
  35. package/dist/types/Card.js +4 -0
  36. package/dist/types/Checkbox.d.ts +2 -1
  37. package/dist/types/Checkbox.js +2 -0
  38. package/dist/types/FloatingInput.d.ts +14 -4
  39. package/dist/types/FloatingInput.js +2 -0
  40. package/dist/types/FloatingSelect.d.ts +7 -3
  41. package/dist/types/FloatingSelect.js +2 -0
  42. package/dist/types/Navbar.d.ts +2 -3
  43. package/dist/types/Navbar.js +2 -0
  44. package/dist/types/Progress.d.ts +20 -0
  45. package/dist/types/Progress.js +2 -0
  46. package/dist/types/SEO.d.ts +1 -1
  47. package/dist/types/SEO.js +1 -0
  48. package/dist/types/Text.d.ts +5 -4
  49. package/dist/types/Text.js +2 -0
  50. package/dist/types/Typewriter.d.ts +24 -9
  51. package/dist/types/Typewriter.js +2 -0
  52. package/dist/utils/link.d.ts +9 -0
  53. package/dist/utils/link.js +9 -0
  54. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import type { TypewriterProps } from "../types/Typewriter.d.ts";
1
+ import type { TypewriterProps } from "../types/Typewriter.ts";
2
2
  declare const Typewriter: import("svelte").Component<TypewriterProps, {}, "">;
3
3
  type Typewriter = ReturnType<typeof Typewriter>;
4
4
  export default Typewriter;
package/dist/index.d.ts CHANGED
@@ -10,5 +10,6 @@ export { default as FloatingSelect } from "./components/FloatingSelect.svelte";
10
10
  export { default as Text } from "./components/Text.svelte";
11
11
  export { default as Card } from "./components/Card.svelte";
12
12
  export { default as Checkbox } from "./components/Checkbox.svelte";
13
+ export { default as Progress } from "./components/Progress.svelte";
13
14
  export { fbmBackground } from "./actions/fbm.ts";
14
- export type { TypewriterAction, DisplaySegment } from "./types/Typewriter.d.ts";
15
+ export type { TypewriterAction, DisplaySegment } from "./types/Typewriter.ts";
package/dist/index.js CHANGED
@@ -10,4 +10,5 @@ export { default as FloatingSelect } from "./components/FloatingSelect.svelte";
10
10
  export { default as Text } from "./components/Text.svelte";
11
11
  export { default as Card } from "./components/Card.svelte";
12
12
  export { default as Checkbox } from "./components/Checkbox.svelte";
13
+ export { default as Progress } from "./components/Progress.svelte";
13
14
  export { fbmBackground } from "./actions/fbm.js";
@@ -1,4 +1,4 @@
1
- export type ColorStyle = "red" | "yellow" | "lightgreen" | "blue" | "pink" | "purple" | "gray" | "sub" | "none";
2
- export type ColorStyleType = "full" | "light" | "outline" | "ghost";
1
+ export type ColorStyle = "rose" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "gray" | "sub" | "none" | "white" | "black" | "primary" | "secondary" | "accent" | "error" | "warning" | "success" | "info";
2
+ export type ColorStyleType = "base" | "full" | "light" | "outline" | "ghost";
3
3
  export declare const colorStyleParts: Record<ColorStyle, Record<ColorStyleType, string>>;
4
4
  export declare function generateColorStyle(color: ColorStyle, variant: ColorStyleType): string;
@@ -1,57 +1,199 @@
1
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
+ },
2
9
  red: {
10
+ base: "bg-red-500",
3
11
  full: "bg-red-500 hover:bg-red-600",
4
12
  light: "bg-red-500/35 hover:bg-red-600/35 text-white/60",
5
13
  outline: "border border-red-500 hover:border-red-600 text-red-500 hover:text-red-600 hover:bg-red-500/10",
6
14
  ghost: "hover:bg-red-500"
7
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
+ },
8
30
  yellow: {
31
+ base: "bg-yellow-500",
9
32
  full: "bg-yellow-500 hover:bg-yellow-600",
10
33
  light: "bg-yellow-500/35 hover:bg-yellow-600/35 text-white/60",
11
34
  outline: "border border-yellow-500 hover:border-yellow-600 text-yellow-500 hover:text-yellow-600 hover:bg-yellow-500/10",
12
35
  ghost: "hover:bg-yellow-500"
13
36
  },
14
- lightgreen: {
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",
15
46
  full: "bg-green-500 hover:bg-green-600",
16
47
  light: "bg-green-500/35 hover:bg-green-600/35 text-white/60",
17
48
  outline: "border border-green-500 hover:border-green-600 text-green-500 hover:text-green-600 hover:bg-green-500/10",
18
49
  ghost: "hover:bg-green-500"
19
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
+ },
20
72
  blue: {
73
+ base: "bg-blue-500",
21
74
  full: "bg-blue-500 hover:bg-blue-600",
22
75
  light: "bg-blue-500/35 hover:bg-blue-600/35 text-white/60",
23
76
  outline: "border border-blue-500 hover:border-blue-600 text-blue-500 hover:text-blue-600 hover:bg-blue-500/10",
24
77
  ghost: "hover:bg-blue-500"
25
78
  },
26
- pink: {
27
- full: "bg-pink-500 hover:bg-pink-600",
28
- light: "bg-pink-500/35 hover:bg-pink-600/35 text-white/60",
29
- outline: "border border-pink-500 hover:border-pink-600 text-pink-500 hover:text-pink-600 hover:bg-pink-500/10",
30
- ghost: "hover:bg-pink-500"
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"
31
92
  },
32
93
  purple: {
94
+ base: "bg-purple-500",
33
95
  full: "bg-purple-500 hover:bg-purple-600",
34
96
  light: "bg-purple-500/35 hover:bg-purple-600/35 text-white/60",
35
97
  outline: "border border-purple-500 hover:border-purple-600 text-purple-500 hover:text-purple-600 hover:bg-purple-500/10",
36
98
  ghost: "hover:bg-purple-500"
37
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
+ },
38
114
  gray: {
115
+ base: "bg-gray-500",
39
116
  full: "bg-gray-500 hover:bg-gray-600",
40
117
  light: "bg-gray-500/35 hover:bg-gray-600/35 text-white/60",
41
118
  outline: "border border-gray-500 hover:border-gray-600 text-gray-500 hover:text-gray-600 hover:bg-gray-500/10",
42
119
  ghost: "hover:bg-gray-500"
43
120
  },
44
121
  sub: {
122
+ base: "bg-sub-background",
45
123
  full: "bg-sub-background hover:bg-sub-background-hover",
46
124
  light: "bg-sub-background hover:bg-sub-background-hover text-white/60",
47
125
  outline: "border border-sub-background hover:border-sub-background-hover text-sub-background hover:text-sub-background-hover hover:bg-sub-background/10",
48
126
  ghost: "hover:bg-sub-background"
49
127
  },
50
128
  none: {
129
+ base: "",
51
130
  full: "",
52
131
  light: "",
53
132
  outline: "",
54
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"
55
197
  }
56
198
  };
57
199
  export function generateColorStyle(color, variant) {
@@ -7,36 +7,44 @@
7
7
  @custom-variant dark (&:where(.dark, .dark *));
8
8
 
9
9
  @theme {
10
- --color-main-background: var(--vpcui-color-main-background);
11
- --color-sub-background: var(--vpcui-color-sub-background);
12
- --color-sub-background-hover: var(--vpcui-color-sub-background-hover);
13
- --color-main-text: var(--vpcui-color-main-text);
14
- --color-sub-text: var(--vpcui-color-sub-text);
15
- --color-form-input-background: var(--vpcui-color-form-input-background);
16
- --color-form-input-hover: var(--vpcui-color-form-input-hover);
17
- --color-navbar-element-hover-background: var(--vpcui-color-navbar-element-hover-background);
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);
18
23
  }
19
24
 
20
25
  :root {
21
- --vpcui-color-main-background: var(--color-mist-50);
22
- --vpcui-color-sub-background: var(--color-mist-300);
23
- --vpcui-color-sub-background-hover: var(--color-mist-400);
24
- --vpcui-color-main-text: #000;
25
- --vpcui-color-sub-text: #555;
26
- --vpcui-color-form-input-background: var(--color-mist-100);
27
- --vpcui-color-form-input-hover: var(--color-mist-200);
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;
28
35
  --vpcui-color-navbar-element-hover-background: var(--color-mist-100);
29
36
  }
30
37
 
31
38
  html.dark {
32
- --vpcui-color-main-background: #121212;
33
- --vpcui-color-sub-background: #1c1c1c;
34
- --vpcui-color-sub-background-hover: #242424;
35
- --vpcui-color-main-text: #fff;
36
- --vpcui-color-sub-text: #aaa;
37
- --vpcui-color-form-input-background: #1c1c1c;
38
- --vpcui-color-form-input-hover: #2c2c2c;
39
- --vpcui-color-navbar-element-hover-background: var(--color-zinc-900);
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);
40
48
  }
41
49
 
42
50
  html {
@@ -1,6 +1,7 @@
1
- export type SizeStyle = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | "none" | number;
2
- export type SizeStyleType = "button" | "buttonIcon" | "radius" | "text";
3
- export declare const sizeStyleParts: Record<SizeStyle, Record<SizeStyleType, string>>;
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>>;
4
5
  export declare const textStyle: {
5
6
  "text-xs": string;
6
7
  "text-sm": string;
@@ -3,79 +3,133 @@ export const sizeStyleParts = {
3
3
  button: "text-xs h-4 px-1 py-0.5",
4
4
  buttonIcon: "text-xs h-4 w-4 p-0.5",
5
5
  radius: "rounded-xs",
6
- text: "text-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"
7
12
  },
8
13
  sm: {
9
14
  button: "text-sm h-6 px-2 py-1",
10
15
  buttonIcon: "text-sm h-6 w-6 p-1",
11
16
  radius: "rounded-sm",
12
- text: "text-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"
13
23
  },
14
24
  md: {
15
25
  button: "text-base h-8 px-3 py-1.5",
16
26
  buttonIcon: "text-base h-8 w-8 p-1.5",
17
27
  radius: "rounded-md",
18
- text: "text-base"
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"
19
34
  },
20
35
  lg: {
21
36
  button: "text-lg h-10 px-4 py-2",
22
37
  buttonIcon: "text-lg h-10 w-10 p-2",
23
38
  radius: "rounded-lg",
24
- text: "text-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"
25
45
  },
26
46
  xl: {
27
47
  button: "text-xl h-12 px-5 py-2.5",
28
48
  buttonIcon: "text-xl h-12 w-12 p-2.5",
29
49
  radius: "rounded-xl",
30
- text: "text-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"
31
56
  },
32
57
  "2xl": {
33
58
  button: "text-2xl h-14 px-6 py-3",
34
59
  buttonIcon: "text-2xl h-14 w-14 p-3",
35
60
  radius: "rounded-2xl",
36
- text: "text-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"
37
67
  },
38
68
  "3xl": {
39
69
  button: "text-3xl h-16 px-7 py-3.5",
40
70
  buttonIcon: "text-3xl h-16 w-16 p-3.5",
41
71
  radius: "rounded-3xl",
42
- text: "text-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"
43
78
  },
44
79
  "4xl": {
45
80
  button: "text-4xl h-18 px-8 py-4",
46
81
  buttonIcon: "text-4xl h-18 w-18 p-4",
47
82
  radius: "rounded-4xl",
48
- text: "text-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"
49
89
  },
50
90
  "5xl": {
51
91
  button: "text-5xl h-20 px-9 py-4.5",
52
92
  buttonIcon: "text-5xl h-20 w-20 p-4.5",
53
93
  radius: "rounded-[2.5rem]",
54
- text: "text-5xl"
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"
55
100
  },
56
101
  "6xl": {
57
102
  button: "text-6xl h-24 px-10 py-5",
58
103
  buttonIcon: "text-6xl h-24 w-24 p-5",
59
104
  radius: "rounded-[3rem]",
60
- text: "text-6xl"
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"
61
111
  },
62
112
  full: {
63
113
  button: "w-full text-base h-8 px-3 py-1",
64
114
  buttonIcon: "w-full aspect-square text-base p-1",
65
115
  radius: "rounded-full",
66
- text: "w-full text-base"
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"
67
122
  },
68
123
  none: {
69
124
  button: "p-0 h-auto text-base",
70
125
  buttonIcon: "p-0 h-auto w-auto text-base",
71
126
  radius: "rounded-none",
72
- text: ""
73
- },
74
- 0: {
75
- button: "",
76
- buttonIcon: "",
77
- radius: "rounded-none",
78
- text: ""
127
+ text: "",
128
+ card: "",
129
+ form: "h-auto px-0 py-0",
130
+ formLabel: "",
131
+ formLabelSelected: "",
132
+ progress: ""
79
133
  }
80
134
  };
81
135
  export const textStyle = {
@@ -1,3 +1,3 @@
1
1
  export interface AnalyticsProps {
2
2
  measurementId: string;
3
- }
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,11 +1,11 @@
1
1
  import type { ColorStyle, ColorStyleType } from "../styles/color.ts";
2
2
  import type { SizeStyle } from "../styles/size.ts";
3
-
4
3
  export interface ButtonProps {
5
4
  children?: any;
6
5
  class?: string;
7
6
  pill?: boolean;
8
7
  icon?: boolean;
8
+ square?: boolean;
9
9
  href?: string;
10
10
  color?: ColorStyle;
11
11
  variant?: ColorStyleType;
@@ -14,4 +14,4 @@ export interface ButtonProps {
14
14
  size?: SizeStyle;
15
15
  radius?: SizeStyle;
16
16
  [key: string]: any;
17
- }
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,13 @@
1
+ import type { SizeStyle } from "../styles/size.ts";
2
+ export type CardVariant = "bordered" | "elevated";
3
+ export declare const cardVariantStyles: Record<CardVariant, string>;
1
4
  export interface CardProps {
2
5
  children?: any;
3
6
  class?: string;
4
7
  href?: string;
8
+ external?: boolean;
9
+ variant?: CardVariant;
10
+ size?: SizeStyle;
11
+ radius?: SizeStyle;
5
12
  [key: string]: any;
6
- }
13
+ }
@@ -0,0 +1,4 @@
1
+ export const cardVariantStyles = {
2
+ bordered: "border-[1px] border-sub-background-hover",
3
+ elevated: "shadow-md",
4
+ };
@@ -1,9 +1,10 @@
1
1
  export interface CheckboxProps {
2
2
  children?: any;
3
3
  class?: string;
4
+ label?: string;
4
5
  labelClass?: string;
5
6
  divClass?: string;
6
7
  checked?: boolean;
7
8
  id?: string;
8
9
  [key: string]: any;
9
- };
10
+ }
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -1,13 +1,23 @@
1
+ import type { Component } from "svelte";
2
+ import type { SizeStyle } from "../styles/size.ts";
3
+ export type InputVariant = "default" | "floating";
1
4
  export interface FloatingInputProps {
2
5
  children?: any;
3
6
  class?: string;
7
+ label?: string;
4
8
  labelClass?: string;
5
9
  divClass?: string;
6
- value?: string;
7
- isTextArea?: boolean;
10
+ icon?: Component;
11
+ value?: any;
12
+ required?: boolean;
13
+ disabled?: boolean;
14
+ variant?: InputVariant;
15
+ placeholder?: string;
8
16
  onfocus?: (e?: FocusEvent) => void;
9
17
  onblur?: (e?: FocusEvent) => void;
10
18
  validInputRegex?: RegExp;
19
+ size?: SizeStyle;
20
+ radius?: SizeStyle;
11
21
  id?: `${string}-${string}-${string}-${string}-${string}`;
12
- [key: string]: any;
13
- };
22
+ [key: string]: any;
23
+ }
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -1,10 +1,14 @@
1
1
  export interface FloatingSelectProps {
2
2
  children?: any;
3
3
  class?: string;
4
+ label?: string;
4
5
  divClass?: string;
5
6
  optionClass?: string;
6
7
  value?: any;
7
- options: { value: any; label: string }[];
8
+ options: {
9
+ value: any;
10
+ label: string;
11
+ }[];
8
12
  id?: `${string}-${string}-${string}-${string}-${string}`;
9
- [key: string]: any;
10
- };
13
+ [key: string]: any;
14
+ }
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -4,8 +4,7 @@ export interface NavbarProps {
4
4
  classTop?: string;
5
5
  threshold?: number;
6
6
  [key: string]: any;
7
- };
8
-
7
+ }
9
8
  export interface NavbarElementProps {
10
9
  children?: any;
11
10
  class?: string;
@@ -14,4 +13,4 @@ export interface NavbarElementProps {
14
13
  href?: string;
15
14
  threshold?: number;
16
15
  [key: string]: any;
17
- }
16
+ }
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -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,2 @@
1
+ ;
2
+ export {};
@@ -3,4 +3,4 @@ export interface SEOProps {
3
3
  title?: string;
4
4
  description?: string;
5
5
  image?: any;
6
- }
6
+ }
@@ -0,0 +1 @@
1
+ export {};