zabi-components 5.0.15 → 5.0.18

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 (66) hide show
  1. package/README.md +175 -23
  2. package/dist/SSRSafe.svelte +0 -3
  3. package/dist/atoms/Badge.svelte +32 -47
  4. package/dist/atoms/Badge.svelte.d.ts +6 -5
  5. package/dist/atoms/Button.svelte +18 -17
  6. package/dist/atoms/Button.svelte.d.ts +3 -2
  7. package/dist/atoms/Card.svelte +74 -23
  8. package/dist/atoms/Card.svelte.d.ts +3 -1
  9. package/dist/atoms/CardContent.svelte +24 -0
  10. package/dist/atoms/CardContent.svelte.d.ts +8 -0
  11. package/dist/atoms/CardDescription.svelte +24 -0
  12. package/dist/atoms/CardDescription.svelte.d.ts +8 -0
  13. package/dist/atoms/CardFooter.svelte +24 -0
  14. package/dist/atoms/CardFooter.svelte.d.ts +8 -0
  15. package/dist/atoms/CardHeader.svelte +24 -0
  16. package/dist/atoms/CardHeader.svelte.d.ts +8 -0
  17. package/dist/atoms/CardTitle.svelte +33 -0
  18. package/dist/atoms/CardTitle.svelte.d.ts +9 -0
  19. package/dist/atoms/Checkbox.svelte +19 -20
  20. package/dist/atoms/CodeBlock.svelte +4 -7
  21. package/dist/atoms/ColorPicker.svelte +33 -65
  22. package/dist/atoms/FeatureCard.svelte +2 -12
  23. package/dist/atoms/FeatureCard.svelte.d.ts +0 -8
  24. package/dist/atoms/Heading.svelte +0 -2
  25. package/dist/atoms/Input.svelte +8 -17
  26. package/dist/atoms/Input.svelte.d.ts +3 -2
  27. package/dist/atoms/Progress.svelte +1 -4
  28. package/dist/atoms/Select.svelte +37 -28
  29. package/dist/atoms/Skeleton.svelte +1 -1
  30. package/dist/atoms/Textarea.svelte +5 -11
  31. package/dist/atoms/Textarea.svelte.d.ts +3 -1
  32. package/dist/atoms/ThemeToggle.svelte +5 -12
  33. package/dist/atoms/Toast.svelte +1 -2
  34. package/dist/atoms/Toggle.svelte +2 -10
  35. package/dist/atoms/Tooltip.svelte +123 -26
  36. package/dist/atoms/index.d.ts +5 -0
  37. package/dist/atoms/index.js +5 -1
  38. package/dist/components/atoms/index.d.ts +5 -0
  39. package/dist/components/atoms/index.d.ts.map +1 -1
  40. package/dist/components/index.d.ts.map +1 -1
  41. package/dist/components/molecules/index.d.ts.map +1 -1
  42. package/dist/components/organisms/index.d.ts.map +1 -1
  43. package/dist/index.js +0 -23
  44. package/dist/molecules/Alert.svelte +9 -13
  45. package/dist/molecules/Alert.svelte.d.ts +2 -1
  46. package/dist/molecules/ComponentDemo.svelte +55 -64
  47. package/dist/molecules/ContactForm.svelte +21 -12
  48. package/dist/molecules/Dropdown.svelte +104 -8
  49. package/dist/molecules/Dropdown.svelte.d.ts +1 -0
  50. package/dist/molecules/Form.svelte +0 -1
  51. package/dist/molecules/ImageUpload.svelte +2 -6
  52. package/dist/molecules/Modal.svelte +30 -6
  53. package/dist/molecules/SlideUp.svelte +2 -4
  54. package/dist/molecules/Tabs.svelte +2 -4
  55. package/dist/molecules/index.js +0 -1
  56. package/dist/organisms/Navbar.svelte +1 -8
  57. package/dist/organisms/Navigation.svelte +0 -6
  58. package/dist/organisms/index.js +0 -1
  59. package/dist/routes/lib/variant-utils.ts +7 -5
  60. package/dist/zabi-components-colors.css +287 -211
  61. package/dist/zabi-components-theme-dark-only.css +158 -0
  62. package/dist/zabi-components-theme-dark.css +160 -0
  63. package/dist/zabi-components-theme-only.css +235 -0
  64. package/dist/zabi-components-theme.css +237 -0
  65. package/dist/zabi-components.css +575 -360
  66. package/package.json +15 -5
@@ -0,0 +1,237 @@
1
+ @import "tailwindcss";
2
+
3
+ @theme {
4
+ /* Typography - Nunito Sans font family */
5
+ --font-family-sans: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
6
+
7
+ /* Brand Color Scale */
8
+ --color-brand-50: #f7faff;
9
+ --color-brand-100: #edf2fb;
10
+ --color-brand-200: #dfe7fb;
11
+ --color-brand-300: #ccdbfd;
12
+ --color-brand-400: #abc4ff;
13
+ --color-brand-500: #8fa8ff;
14
+ --color-brand-600: #6e84fa;
15
+ --color-brand-700: #5366e2;
16
+ --color-brand-800: #3f4fc0;
17
+ --color-brand-900: #2f3c99;
18
+ --color-brand-950: #1f2866;
19
+
20
+ /* Citron Color Scale */
21
+ --color-citron-50: #f9faeb;
22
+ --color-citron-100: #f1f5cf;
23
+ --color-citron-200: #e4ecaa;
24
+ --color-citron-300: #d5e184;
25
+ --color-citron-400: #c7d460;
26
+ --color-citron-500: #bbbe64;
27
+ --color-citron-600: #a3a852;
28
+ --color-citron-700: #848a43;
29
+ --color-citron-800: #666c35;
30
+ --color-citron-900: #4d5229;
31
+ --color-citron-950: #323518;
32
+
33
+ /* Pine Color Scale */
34
+ --color-pine-50: #e9f6f2;
35
+ --color-pine-100: #d2ece4;
36
+ --color-pine-200: #a7d9c9;
37
+ --color-pine-300: #78c4ad;
38
+ --color-pine-400: #49ad91;
39
+ --color-pine-500: #0C5D43;
40
+ --color-pine-600: #0a513a;
41
+ --color-pine-700: #084532;
42
+ --color-pine-800: #063a2a;
43
+ --color-pine-900: #04231a;
44
+ --color-pine-950: #02160f;
45
+
46
+ /* Iris Color Scale */
47
+ --color-iris-50: #f4f4fa;
48
+ --color-iris-100: #e9e9f7;
49
+ --color-iris-200: #d6d6f0;
50
+ --color-iris-300: #bdbde6;
51
+ --color-iris-400: #a3a3d8;
52
+ --color-iris-500: #6969B3;
53
+ --color-iris-600: #58589e;
54
+ --color-iris-700: #474788;
55
+ --color-iris-800: #38386f;
56
+ --color-iris-900: #2a2a56;
57
+ --color-iris-950: #1b1b37;
58
+
59
+ /* Base Color Scale - Maps to neutral palette */
60
+ --color-base-50: theme(colors.neutral.50);
61
+ --color-base-100: theme(colors.neutral.100);
62
+ --color-base-200: theme(colors.neutral.200);
63
+ --color-base-300: theme(colors.neutral.300);
64
+ --color-base-400: theme(colors.neutral.400);
65
+ --color-base-500: theme(colors.neutral.500);
66
+ --color-base-600: theme(colors.neutral.600);
67
+ --color-base-700: theme(colors.neutral.700);
68
+ --color-base-800: theme(colors.neutral.800);
69
+ --color-base-900: theme(colors.neutral.900);
70
+ --color-base-950: theme(colors.neutral.950);
71
+
72
+
73
+ /* Background Colors */
74
+ --color-background: var(--color-base-100);
75
+ --color-background-secondary: var(--color-base-50);
76
+ --color-background-tertiary: var(--color-base-100);
77
+
78
+ /* Page Colors */
79
+ --color-page: var(--color-base-100);
80
+ --color-page-secondary: var(--color-base-200);
81
+
82
+ /* Card Colors */
83
+ --color-card: theme(colors.white);
84
+ --color-card-hover: var(--color-base-100);
85
+ --color-card-active: var(--color-base-100);
86
+ --color-card-elevated: theme(colors.white);
87
+
88
+ /* Overlay Colors */
89
+ --color-overlay: rgba(0, 0, 0, 0.5);
90
+
91
+ /* Input Colors */
92
+ --color-input: var(--color-base-200);
93
+ --color-input-hover: var(--color-base-100);
94
+ --color-input-focus: var(--color-base-100);
95
+ --color-input-disabled: var(--color-base-100);
96
+
97
+ /* Text Colors */
98
+ --color-headline: var(--color-base-900);
99
+ --color-body: var(--color-base-800);
100
+ --color-description: var(--color-base-600);
101
+ --color-caption: var(--color-base-500);
102
+ --color-input-placeholder: var(--color-base-400);
103
+ --color-label: var(--color-base-700);
104
+ --color-link: theme(colors.brand.600);
105
+ --color-link-hover: theme(colors.brand.700);
106
+ --color-success-text: var(--color-success);
107
+ --color-warning-text: theme(colors.amber.700);
108
+ --color-neutral-text: var(--color-base-700);
109
+ --color-energetic-text: theme(colors.citron.700);
110
+ --color-error-text: theme(colors.red.700);
111
+ --color-inverse: theme(colors.white);
112
+ --color-disabled: var(--color-base-400);
113
+
114
+ /* Border Colors */
115
+ --color-border: var(--color-base-200);
116
+ --color-border-weak: var(--color-base-300);
117
+ --color-border-medium: var(--color-base-400);
118
+ --color-border-strong: var(--color-base-500);
119
+
120
+ /* Focus Colors */
121
+ --color-focus: theme(colors.brand.500);
122
+ --color-focus-weak: theme(colors.brand.600);
123
+ --color-focus-medium: theme(colors.brand.700);
124
+ --color-focus-strong: theme(colors.brand.800);
125
+
126
+ /* Primary Colors */
127
+ --color-primary: theme(colors.brand.600);
128
+ --color-primary-weak: theme(colors.brand.700);
129
+ --color-primary-medium: theme(colors.brand.800);
130
+ --color-primary-strong: theme(colors.brand.900);
131
+
132
+ /* Secondary Colors */
133
+ --color-secondary: var(--color-base-600);
134
+ --color-secondary-weak: var(--color-base-700);
135
+ --color-secondary-medium: var(--color-base-800);
136
+ --color-secondary-strong: var(--color-base-900);
137
+
138
+ /* Success Colors */
139
+ --color-success: theme(colors.pine.600);
140
+ --color-success-weak: theme(colors.pine.700);
141
+ --color-success-medium: theme(colors.pine.800);
142
+ --color-success-strong: theme(colors.pine.900);
143
+
144
+ /* Warning Colors */
145
+ --color-warning: theme(colors.amber.500);
146
+ --color-warning-weak: theme(colors.amber.600);
147
+ --color-warning-medium: theme(colors.amber.400);
148
+ --color-warning-strong: theme(colors.amber.300);
149
+
150
+ /* Error Colors */
151
+ --color-error: theme(colors.red.500);
152
+ --color-error-weak: theme(colors.red.600);
153
+ --color-error-medium: theme(colors.red.400);
154
+ --color-error-strong: theme(colors.red.300);
155
+
156
+ /* Energetic Colors (Citron) */
157
+ --color-energetic: theme(colors.citron.500);
158
+ --color-energetic-weak: theme(colors.citron.600);
159
+ --color-energetic-medium: theme(colors.citron.400);
160
+ --color-energetic-strong: theme(colors.citron.300);
161
+
162
+ /* Neutral Colors */
163
+ --color-neutral: var(--color-base-600);
164
+ --color-neutral-weak: var(--color-base-700);
165
+ --color-neutral-medium: var(--color-base-800);
166
+ --color-neutral-strong: var(--color-base-900);
167
+
168
+ /* Info Colors */
169
+ --color-info: theme(colors.iris.600);
170
+ --color-info-weak: theme(colors.iris.700);
171
+ --color-info-medium: theme(colors.iris.800);
172
+ --color-info-strong: theme(colors.iris.900);
173
+ /* Text alias */
174
+ --color-info-text: var(--color-info);
175
+
176
+ /* ========================================
177
+ ACTION COLORS - For interactive elements (buttons, links, etc.)
178
+ ======================================== */
179
+
180
+ /* Primary Actions - Used by bg-action-primary utility class */
181
+ /* 🎯 TO CHANGE bg-action-primary COLOR: Edit the values below */
182
+ --color-action-primary: var(--color-brand-950);
183
+ --color-action-primary-hover: var(--color-brand-900);
184
+ --color-action-primary-active: var(--color-brand-400);
185
+ --color-action-primary-disabled: var(--color-brand-500);
186
+ --color-action-primary-subtle: var(--color-brand-100);
187
+ --color-action-primary-subtle-hover: var(--color-brand-200);
188
+ --color-action-primary-text: var(--color-brand-50);
189
+
190
+ /* Secondary Actions - Used by bg-action-secondary utility class */
191
+ --color-action-secondary: var(--color-brand-200);
192
+ --color-action-secondary-hover: var(--color-brand-100);
193
+ --color-action-secondary-active: var(--color-brand-400);
194
+ --color-action-secondary-disabled: var(--color-brand-500);
195
+ --color-action-secondary-subtle: var(--color-brand-600);
196
+ --color-action-secondary-subtle-hover: var(--color-brand-700);
197
+
198
+ /* Danger Actions - Used by bg-action-danger utility class */
199
+ --color-action-danger: theme(colors.red.600);
200
+ --color-action-danger-hover: theme(colors.red.700);
201
+ --color-action-danger-active: theme(colors.red.800);
202
+ --color-action-danger-disabled: theme(colors.red.300);
203
+ --color-action-danger-subtle: theme(colors.red.50);
204
+ --color-action-danger-subtle-hover: theme(colors.red.100);
205
+
206
+ /* Shadow Colors */
207
+ --shadow-color: 0 0 0;
208
+ --shadow-opacity: 0.1;
209
+ --shadow-sm: 0 1px 3px 0 rgb(var(--shadow-color) / var(--shadow-opacity)), 0 1px 2px -1px rgb(var(--shadow-color) / var(--shadow-opacity));
210
+ --shadow-md: 0 4px 6px -1px rgb(var(--shadow-color) / var(--shadow-opacity)), 0 2px 4px -2px rgb(var(--shadow-color) / var(--shadow-opacity));
211
+ --shadow-lg: 0 10px 15px -3px rgb(var(--shadow-color) / var(--shadow-opacity)), 0 4px 6px -4px rgb(var(--shadow-color) / var(--shadow-opacity));
212
+ --shadow-xl: 0 20px 25px -5px rgb(var(--shadow-color) / var(--shadow-opacity)), 0 8px 10px -6px rgb(var(--shadow-color) / var(--shadow-opacity));
213
+
214
+ /* Spacing */
215
+ --spacing-xs: 0.25rem;
216
+ --spacing-sm: 0.5rem;
217
+ --spacing-md: 1rem;
218
+ --spacing-lg: 1.5rem;
219
+ --spacing-xl: 2rem;
220
+ --spacing-2xl: 3rem;
221
+
222
+ /* Border Radius */
223
+ --radius-sm: 0.25rem;
224
+ --radius-md: 0.375rem;
225
+ --radius-lg: 0.5rem;
226
+ --radius-xl: 0.75rem;
227
+
228
+ /* Z-index */
229
+ --z-dropdown: 1000;
230
+ --z-sticky: 1020;
231
+ --z-fixed: 1030;
232
+ --z-modal-backdrop: 1040;
233
+ --z-modal: 1050;
234
+ --z-popover: 1060;
235
+ --z-tooltip: 1070;
236
+ --z-toast: 1080;
237
+ }