shirkasoft-ui-components 1.3.15 → 1.4.0
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/README.md +447 -71
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +7 -7
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +11 -11
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +6 -6
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +914 -0
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +8 -8
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +901 -753
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +5 -5
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +16 -9
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +646 -0
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-knob.mjs +44 -17
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +16 -16
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +42 -31
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +8 -8
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +79 -29
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +7 -7
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +50 -23
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +6 -6
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +4 -4
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +163 -102
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +21 -23
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +9 -9
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +63 -30
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +280 -0
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs +180 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +10 -22
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +60 -53
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +29 -11
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +22 -11
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +9 -10
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/package.json +33 -3
- package/src/baseline.css +2472 -0
- package/src/theme.css +15 -543
- package/src/themes/ocean.css +56 -0
- package/src/themes/sunset.css +55 -0
- package/src/themes/violet.css +25 -0
- package/src/tokens.css +612 -0
- package/types/shirkasoft-ui-components-button.d.ts +1 -1
- package/types/shirkasoft-ui-components-config.d.ts +368 -0
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +2 -1
- package/types/shirkasoft-ui-components-date-picker.d.ts +276 -224
- package/types/shirkasoft-ui-components-fieldset.d.ts +2 -1
- package/types/shirkasoft-ui-components-file-upload.d.ts +11 -5
- package/types/shirkasoft-ui-components-icons.d.ts +1422 -0
- package/types/shirkasoft-ui-components-knob.d.ts +28 -7
- package/types/shirkasoft-ui-components-modal.d.ts +11 -7
- package/types/shirkasoft-ui-components-notification.d.ts +2 -1
- package/types/shirkasoft-ui-components-price-input.d.ts +37 -9
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +3 -3
- package/types/shirkasoft-ui-components-select.d.ts +24 -8
- package/types/shirkasoft-ui-components-sidebar.d.ts +2 -1
- package/types/shirkasoft-ui-components-table.d.ts +91 -80
- package/types/shirkasoft-ui-components-tag.d.ts +1 -1
- package/types/shirkasoft-ui-components-text-field.d.ts +29 -13
- package/types/shirkasoft-ui-components-theme-picker.d.ts +83 -0
- package/types/shirkasoft-ui-components-theme.d.ts +88 -0
- package/types/shirkasoft-ui-components-timeline.d.ts +5 -4
- package/types/shirkasoft-ui-components-toggle.d.ts +20 -13
- package/types/shirkasoft-ui-components-tooltip.d.ts +6 -0
- package/types/shirkasoft-ui-components-utils.d.ts +16 -6
- package/types/shirkasoft-ui-components-wizard.d.ts +4 -3
package/src/tokens.css
ADDED
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
Shirkasoft UI Components — Design Tokens & Utility Classes
|
|
3
|
+
============================================================
|
|
4
|
+
Framework-agnostic part of the theme: CSS custom properties,
|
|
5
|
+
dark-mode overrides and the hand-written `_shk-*` utility
|
|
6
|
+
classes. It does NOT include the generated Tailwind baseline.
|
|
7
|
+
|
|
8
|
+
Use this entry when your application already compiles those
|
|
9
|
+
utilities itself (for example a Tailwind 4 showcase that scans
|
|
10
|
+
the library templates). Otherwise import `theme.css`.
|
|
11
|
+
|
|
12
|
+
Import in your global styles.css:
|
|
13
|
+
@import 'shirkasoft-ui-components/tokens.css';
|
|
14
|
+
|
|
15
|
+
With Tailwind 4, declare the layer order first so the `_shk-*`
|
|
16
|
+
utilities (layer `shk-tokens`) sort before Tailwind's:
|
|
17
|
+
@layer theme, base, components, shk-tokens, utilities;
|
|
18
|
+
@import 'tailwindcss';
|
|
19
|
+
@import 'shirkasoft-ui-components/tokens.css';
|
|
20
|
+
|
|
21
|
+
Override any variable at :root or .dark to customize.
|
|
22
|
+
Default palette is Emerald (green).
|
|
23
|
+
============================================================ */
|
|
24
|
+
|
|
25
|
+
:root {
|
|
26
|
+
--shk-primary-50: #ecfdf5;
|
|
27
|
+
--shk-primary-100: #d1fae5;
|
|
28
|
+
--shk-primary-200: #a7f3d0;
|
|
29
|
+
--shk-primary-300: #6ee7b7;
|
|
30
|
+
--shk-primary-400: #34d399;
|
|
31
|
+
--shk-primary-500: #10b981;
|
|
32
|
+
--shk-primary-600: #059669;
|
|
33
|
+
--shk-primary-700: #047857;
|
|
34
|
+
--shk-primary-800: #065f46;
|
|
35
|
+
--shk-primary-900: #064e3b;
|
|
36
|
+
--shk-primary-950: #022c22;
|
|
37
|
+
|
|
38
|
+
--shk-surface-50: #fafafa;
|
|
39
|
+
--shk-surface-100: #f4f4f5;
|
|
40
|
+
--shk-surface-200: #e4e4e7;
|
|
41
|
+
--shk-surface-300: #d4d4d8;
|
|
42
|
+
--shk-surface-400: #a1a1aa;
|
|
43
|
+
--shk-surface-500: #71717a;
|
|
44
|
+
--shk-surface-600: #52525b;
|
|
45
|
+
--shk-surface-700: #3f3f46;
|
|
46
|
+
--shk-surface-800: #27272a;
|
|
47
|
+
--shk-surface-900: #18181b;
|
|
48
|
+
|
|
49
|
+
--shk-success-50: #f0fdf4;
|
|
50
|
+
--shk-success-400: #4ade80;
|
|
51
|
+
--shk-success-600: #16a34a;
|
|
52
|
+
--shk-success-800: #166534;
|
|
53
|
+
|
|
54
|
+
--shk-error-50: #fef2f2;
|
|
55
|
+
--shk-error-400: #fca5a5;
|
|
56
|
+
--shk-error-500: #ef4444;
|
|
57
|
+
--shk-error-600: #dc2626;
|
|
58
|
+
--shk-error-700: #b91c1c;
|
|
59
|
+
--shk-error-800: #991b1b;
|
|
60
|
+
|
|
61
|
+
--shk-warning-50: #fffbeb;
|
|
62
|
+
--shk-warning-400: #facc15;
|
|
63
|
+
--shk-warning-600: #ca8a04;
|
|
64
|
+
--shk-warning-800: #854d0e;
|
|
65
|
+
|
|
66
|
+
--shk-info-50: #eff6ff;
|
|
67
|
+
--shk-info-400: #60a5fa;
|
|
68
|
+
--shk-info-600: #2563eb;
|
|
69
|
+
--shk-info-800: #1e40af;
|
|
70
|
+
|
|
71
|
+
--shk-amber-50: #fffbeb;
|
|
72
|
+
--shk-amber-400: #fbbf24;
|
|
73
|
+
--shk-amber-600: #d97706;
|
|
74
|
+
--shk-amber-700: #b45309;
|
|
75
|
+
--shk-amber-900: #78350f;
|
|
76
|
+
|
|
77
|
+
--shk-emerald-400: #34d399;
|
|
78
|
+
--shk-emerald-600: #059669;
|
|
79
|
+
--shk-emerald-700: #047857;
|
|
80
|
+
|
|
81
|
+
--shk-bg-overlay: rgba(0, 0, 0, 0.4);
|
|
82
|
+
--shk-bg-overlay-light: rgba(0, 0, 0, 0.3);
|
|
83
|
+
--shk-tooltip-bg: #27272a;
|
|
84
|
+
--shk-tooltip-text: #fff;
|
|
85
|
+
--shk-scrollbar-thumb: #cbd5e1;
|
|
86
|
+
--shk-scrollbar-thumb-hover: #94a3b8;
|
|
87
|
+
|
|
88
|
+
--shk-skeleton-bg: var(--shk-surface-200);
|
|
89
|
+
--shk-skeleton-highlight: rgba(255, 255, 255, 0.6);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dark {
|
|
93
|
+
--shk-surface-50: #18181b;
|
|
94
|
+
--shk-surface-100: #27272a;
|
|
95
|
+
--shk-surface-200: #3f3f46;
|
|
96
|
+
--shk-surface-300: #52525b;
|
|
97
|
+
--shk-surface-400: #71717a;
|
|
98
|
+
--shk-surface-500: #a1a1aa;
|
|
99
|
+
--shk-surface-600: #d4d4d8;
|
|
100
|
+
--shk-surface-700: #e4e4e7;
|
|
101
|
+
--shk-surface-800: #f4f4f5;
|
|
102
|
+
--shk-surface-900: #fafafa;
|
|
103
|
+
|
|
104
|
+
--shk-primary-50: #ecfdf5;
|
|
105
|
+
--shk-primary-100: #d1fae5;
|
|
106
|
+
--shk-primary-200: #a7f3d0;
|
|
107
|
+
--shk-primary-300: #6ee7b7;
|
|
108
|
+
--shk-primary-400: #34d399;
|
|
109
|
+
--shk-primary-500: #10b981;
|
|
110
|
+
--shk-primary-600: #059669;
|
|
111
|
+
--shk-primary-700: #047857;
|
|
112
|
+
--shk-primary-800: #065f46;
|
|
113
|
+
--shk-primary-900: #064e3b;
|
|
114
|
+
--shk-primary-950: #022c22;
|
|
115
|
+
|
|
116
|
+
--shk-success-50: #052e16;
|
|
117
|
+
--shk-success-400: #22c55e;
|
|
118
|
+
--shk-success-600: #22c55e;
|
|
119
|
+
--shk-success-800: #bbf7d0;
|
|
120
|
+
|
|
121
|
+
--shk-error-50: #450a0a;
|
|
122
|
+
--shk-error-400: #fca5a5;
|
|
123
|
+
--shk-error-500: #f87171;
|
|
124
|
+
--shk-error-600: #dc2626;
|
|
125
|
+
--shk-error-700: #b91c1c;
|
|
126
|
+
--shk-error-800: #fecaca;
|
|
127
|
+
|
|
128
|
+
--shk-warning-50: #422006;
|
|
129
|
+
--shk-warning-400: #facc15;
|
|
130
|
+
--shk-warning-600: #facc15;
|
|
131
|
+
--shk-warning-800: #fde68a;
|
|
132
|
+
|
|
133
|
+
--shk-info-50: #172554;
|
|
134
|
+
--shk-info-400: #60a5fa;
|
|
135
|
+
--shk-info-600: #60a5fa;
|
|
136
|
+
--shk-info-800: #bfdbfe;
|
|
137
|
+
|
|
138
|
+
--shk-amber-50: #451a03;
|
|
139
|
+
--shk-amber-400: #fbbf24;
|
|
140
|
+
--shk-amber-600: #f59e0b;
|
|
141
|
+
--shk-amber-700: #d97706;
|
|
142
|
+
--shk-amber-900: #78350f;
|
|
143
|
+
|
|
144
|
+
--shk-scrollbar-thumb: #475569;
|
|
145
|
+
--shk-scrollbar-thumb-hover: #64748b;
|
|
146
|
+
|
|
147
|
+
--shk-skeleton-bg: var(--shk-surface-100);
|
|
148
|
+
--shk-skeleton-highlight: rgba(255, 255, 255, 0.08);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* The hand-written `_shk-*` utilities live in the `shk-tokens` layer, which is
|
|
152
|
+
declared BEFORE the utility layers (`shk-utilities` in baseline.css, Tailwind's
|
|
153
|
+
`utilities`). Unlayered rules always beat layered ones, so without this layer a
|
|
154
|
+
template such as `_shk-bg-white dark:[background-color:...]` silently ignored its
|
|
155
|
+
`dark:`/`hover:` override. Inside the layers, specificity decides as expected. */
|
|
156
|
+
@layer shk-tokens {
|
|
157
|
+
/* ============================================================
|
|
158
|
+
Background
|
|
159
|
+
============================================================ */
|
|
160
|
+
._shk-bg-white {
|
|
161
|
+
background-color: #fff;
|
|
162
|
+
}
|
|
163
|
+
/* Panel surfaces (sidebar, rail): white in light mode, dark surface in dark
|
|
164
|
+
mode, as one self-contained class. */
|
|
165
|
+
._shk-bg-panel {
|
|
166
|
+
background-color: #fff;
|
|
167
|
+
}
|
|
168
|
+
.dark ._shk-bg-panel {
|
|
169
|
+
background-color: var(--shk-surface-50);
|
|
170
|
+
}
|
|
171
|
+
._shk-bg-panel-raised {
|
|
172
|
+
background-color: #fff;
|
|
173
|
+
}
|
|
174
|
+
.dark ._shk-bg-panel-raised {
|
|
175
|
+
background-color: var(--shk-surface-100);
|
|
176
|
+
}
|
|
177
|
+
._shk-bg-overlay {
|
|
178
|
+
background-color: var(--shk-bg-overlay);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
._shk-bg-primary {
|
|
182
|
+
background-color: var(--shk-primary-600);
|
|
183
|
+
}
|
|
184
|
+
._shk-bg-primary-soft {
|
|
185
|
+
background-color: var(--shk-primary-50);
|
|
186
|
+
}
|
|
187
|
+
._shk-bg-primary-border {
|
|
188
|
+
background-color: var(--shk-primary-200);
|
|
189
|
+
}
|
|
190
|
+
.dark ._shk-bg-primary-soft {
|
|
191
|
+
background-color: color-mix(in srgb, var(--shk-primary-900) 30%, transparent);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Active nav child in dark mode (30% primary-900 over transparent).
|
|
195
|
+
Must be a single token (no spaces) so it works with [class.X] bindings. */
|
|
196
|
+
.dark ._shk-bg-primary-soft-dark {
|
|
197
|
+
background-color: color-mix(in srgb, var(--shk-primary-900) 30%, transparent);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
._shk-bg-surface-50 {
|
|
201
|
+
background-color: var(--shk-surface-50);
|
|
202
|
+
}
|
|
203
|
+
._shk-bg-surface-100 {
|
|
204
|
+
background-color: var(--shk-surface-100);
|
|
205
|
+
}
|
|
206
|
+
._shk-bg-surface-200 {
|
|
207
|
+
background-color: var(--shk-surface-200);
|
|
208
|
+
}
|
|
209
|
+
._shk-bg-surface-300 {
|
|
210
|
+
background-color: var(--shk-surface-300);
|
|
211
|
+
}
|
|
212
|
+
._shk-bg-surface-700 {
|
|
213
|
+
background-color: var(--shk-surface-700);
|
|
214
|
+
}
|
|
215
|
+
._shk-bg-surface-800 {
|
|
216
|
+
background-color: var(--shk-surface-800);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
._shk-bg-red-soft {
|
|
220
|
+
background-color: var(--shk-error-50);
|
|
221
|
+
}
|
|
222
|
+
._shk-bg-green-soft {
|
|
223
|
+
background-color: var(--shk-success-50);
|
|
224
|
+
}
|
|
225
|
+
._shk-bg-blue-soft {
|
|
226
|
+
background-color: var(--shk-info-50);
|
|
227
|
+
}
|
|
228
|
+
._shk-bg-yellow-soft {
|
|
229
|
+
background-color: var(--shk-warning-50);
|
|
230
|
+
}
|
|
231
|
+
._shk-bg-amber-soft {
|
|
232
|
+
background-color: var(--shk-amber-50);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
._shk-bg-red-600 {
|
|
236
|
+
background-color: var(--shk-error-600);
|
|
237
|
+
}
|
|
238
|
+
._shk-bg-amber-600 {
|
|
239
|
+
background-color: var(--shk-amber-600);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
._shk-bg-tooltip {
|
|
243
|
+
background-color: var(--shk-tooltip-bg);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
._shk-bg-emerald {
|
|
247
|
+
background-color: var(--shk-emerald-600);
|
|
248
|
+
}
|
|
249
|
+
._shk-bg-emerald-hover {
|
|
250
|
+
background-color: var(--shk-emerald-700);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* ============================================================
|
|
254
|
+
Tags (PrimeNG look)
|
|
255
|
+
============================================================ */
|
|
256
|
+
._shk-tag-secondary {
|
|
257
|
+
background-color: var(--shk-surface-100);
|
|
258
|
+
color: var(--shk-surface-600);
|
|
259
|
+
border: 1px solid color-mix(in srgb, var(--shk-surface-400) 25%, transparent);
|
|
260
|
+
}
|
|
261
|
+
._shk-tag-success {
|
|
262
|
+
background-color: var(--shk-success-50);
|
|
263
|
+
color: var(--shk-success-600);
|
|
264
|
+
border: 1px solid color-mix(in srgb, var(--shk-success-600) 15%, #fff);
|
|
265
|
+
}
|
|
266
|
+
._shk-tag-warn,
|
|
267
|
+
._shk-tag-warning {
|
|
268
|
+
background-color: var(--shk-warning-50);
|
|
269
|
+
color: var(--shk-warning-600);
|
|
270
|
+
border: 1px solid color-mix(in srgb, var(--shk-warning-600) 25%, #fff);
|
|
271
|
+
}
|
|
272
|
+
._shk-tag-info {
|
|
273
|
+
background-color: var(--shk-info-50);
|
|
274
|
+
color: var(--shk-info-600);
|
|
275
|
+
border: 1px solid color-mix(in srgb, var(--shk-info-600) 20%, #fff);
|
|
276
|
+
}
|
|
277
|
+
._shk-tag-danger {
|
|
278
|
+
background-color: var(--shk-error-50);
|
|
279
|
+
color: var(--shk-error-600);
|
|
280
|
+
border: 1px solid color-mix(in srgb, var(--shk-error-600) 20%, #fff);
|
|
281
|
+
}
|
|
282
|
+
._shk-tag-contrast {
|
|
283
|
+
background-color: var(--shk-surface-900);
|
|
284
|
+
color: var(--shk-surface-50);
|
|
285
|
+
}
|
|
286
|
+
._shk-tag-default {
|
|
287
|
+
background-color: var(--shk-surface-100);
|
|
288
|
+
color: var(--shk-surface-700);
|
|
289
|
+
}
|
|
290
|
+
.dark ._shk-tag-secondary {
|
|
291
|
+
background-color: var(--shk-surface-700);
|
|
292
|
+
color: var(--shk-surface-300);
|
|
293
|
+
border-color: color-mix(in srgb, var(--shk-surface-400) 20%, transparent);
|
|
294
|
+
}
|
|
295
|
+
.dark ._shk-tag-success {
|
|
296
|
+
background-color: var(--shk-success-50);
|
|
297
|
+
color: var(--shk-success-400);
|
|
298
|
+
border-color: color-mix(in srgb, var(--shk-success-400) 25%, transparent);
|
|
299
|
+
}
|
|
300
|
+
.dark ._shk-tag-warn,
|
|
301
|
+
.dark ._shk-tag-warning {
|
|
302
|
+
background-color: var(--shk-warning-50);
|
|
303
|
+
color: var(--shk-warning-400);
|
|
304
|
+
border-color: color-mix(in srgb, var(--shk-warning-400) 25%, transparent);
|
|
305
|
+
}
|
|
306
|
+
.dark ._shk-tag-info {
|
|
307
|
+
background-color: var(--shk-info-50);
|
|
308
|
+
color: var(--shk-info-400);
|
|
309
|
+
border-color: color-mix(in srgb, var(--shk-info-400) 25%, transparent);
|
|
310
|
+
}
|
|
311
|
+
.dark ._shk-tag-danger {
|
|
312
|
+
background-color: var(--shk-error-50);
|
|
313
|
+
color: var(--shk-error-400);
|
|
314
|
+
border-color: color-mix(in srgb, var(--shk-error-400) 25%, transparent);
|
|
315
|
+
}
|
|
316
|
+
.dark ._shk-tag-contrast {
|
|
317
|
+
background-color: var(--shk-surface-100);
|
|
318
|
+
color: var(--shk-surface-900);
|
|
319
|
+
}
|
|
320
|
+
.dark ._shk-tag-default {
|
|
321
|
+
background-color: var(--shk-surface-700);
|
|
322
|
+
color: var(--shk-surface-300);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* ============================================================
|
|
326
|
+
Text
|
|
327
|
+
============================================================ */
|
|
328
|
+
._shk-text-white {
|
|
329
|
+
color: #fff;
|
|
330
|
+
}
|
|
331
|
+
._shk-text-tooltip {
|
|
332
|
+
color: var(--shk-tooltip-text);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
._shk-text-surface-200 {
|
|
336
|
+
color: var(--shk-surface-200);
|
|
337
|
+
}
|
|
338
|
+
._shk-text-surface-300 {
|
|
339
|
+
color: var(--shk-surface-300);
|
|
340
|
+
}
|
|
341
|
+
._shk-text-surface-400 {
|
|
342
|
+
color: var(--shk-surface-400);
|
|
343
|
+
}
|
|
344
|
+
._shk-text-surface-500 {
|
|
345
|
+
color: var(--shk-surface-500);
|
|
346
|
+
}
|
|
347
|
+
._shk-text-surface-600 {
|
|
348
|
+
color: var(--shk-surface-600);
|
|
349
|
+
}
|
|
350
|
+
._shk-text-surface-700 {
|
|
351
|
+
color: var(--shk-surface-700);
|
|
352
|
+
}
|
|
353
|
+
._shk-text-surface-800 {
|
|
354
|
+
color: var(--shk-surface-800);
|
|
355
|
+
}
|
|
356
|
+
._shk-text-surface-900 {
|
|
357
|
+
color: var(--shk-surface-900);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
._shk-text-primary {
|
|
361
|
+
color: var(--shk-primary-600);
|
|
362
|
+
}
|
|
363
|
+
._shk-text-primary-700 {
|
|
364
|
+
color: var(--shk-primary-700);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
._shk-text-red-500 {
|
|
368
|
+
color: var(--shk-error-500);
|
|
369
|
+
}
|
|
370
|
+
._shk-text-red-600 {
|
|
371
|
+
color: var(--shk-error-600);
|
|
372
|
+
}
|
|
373
|
+
._shk-text-red-800 {
|
|
374
|
+
color: var(--shk-error-800);
|
|
375
|
+
}
|
|
376
|
+
._shk-text-green-600 {
|
|
377
|
+
color: var(--shk-success-600);
|
|
378
|
+
}
|
|
379
|
+
._shk-text-green-800 {
|
|
380
|
+
color: var(--shk-success-800);
|
|
381
|
+
}
|
|
382
|
+
._shk-text-blue-600 {
|
|
383
|
+
color: var(--shk-info-600);
|
|
384
|
+
}
|
|
385
|
+
._shk-text-blue-800 {
|
|
386
|
+
color: var(--shk-info-800);
|
|
387
|
+
}
|
|
388
|
+
._shk-text-yellow-600 {
|
|
389
|
+
color: var(--shk-warning-600);
|
|
390
|
+
}
|
|
391
|
+
._shk-text-yellow-800 {
|
|
392
|
+
color: var(--shk-warning-800);
|
|
393
|
+
}
|
|
394
|
+
._shk-text-amber-600 {
|
|
395
|
+
color: var(--shk-amber-600);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* ============================================================
|
|
399
|
+
Border
|
|
400
|
+
============================================================ */
|
|
401
|
+
._shk-border {
|
|
402
|
+
border-color: var(--shk-surface-200);
|
|
403
|
+
}
|
|
404
|
+
._shk-border-surface-300 {
|
|
405
|
+
border-color: var(--shk-surface-300);
|
|
406
|
+
}
|
|
407
|
+
._shk-border-surface-700 {
|
|
408
|
+
border-color: var(--shk-surface-700);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
._shk-border-primary {
|
|
412
|
+
border-color: var(--shk-primary-600);
|
|
413
|
+
}
|
|
414
|
+
._shk-border-primary-200 {
|
|
415
|
+
border-color: var(--shk-primary-200);
|
|
416
|
+
}
|
|
417
|
+
._shk-border-primary-500 {
|
|
418
|
+
border-color: var(--shk-primary-500);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
._shk-border-red {
|
|
422
|
+
border-color: var(--shk-error-500);
|
|
423
|
+
}
|
|
424
|
+
._shk-border-red-400 {
|
|
425
|
+
border-color: var(--shk-error-400);
|
|
426
|
+
}
|
|
427
|
+
._shk-border-green-400 {
|
|
428
|
+
border-color: var(--shk-success-400);
|
|
429
|
+
}
|
|
430
|
+
._shk-border-blue-400 {
|
|
431
|
+
border-color: var(--shk-info-400);
|
|
432
|
+
}
|
|
433
|
+
._shk-border-yellow-400 {
|
|
434
|
+
border-color: var(--shk-warning-400);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* ============================================================
|
|
438
|
+
Icon colors
|
|
439
|
+
============================================================ */
|
|
440
|
+
._shk-icon-muted {
|
|
441
|
+
color: var(--shk-surface-400);
|
|
442
|
+
}
|
|
443
|
+
._shk-icon-subtle {
|
|
444
|
+
color: var(--shk-surface-300);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/* ============================================================
|
|
448
|
+
Gradients (top accent bar)
|
|
449
|
+
============================================================ */
|
|
450
|
+
._shk-gradient-emerald {
|
|
451
|
+
background-image: linear-gradient(to right, var(--shk-emerald-400), var(--shk-emerald-600));
|
|
452
|
+
}
|
|
453
|
+
._shk-gradient-red {
|
|
454
|
+
background-image: linear-gradient(to right, var(--shk-error-400), var(--shk-error-600));
|
|
455
|
+
}
|
|
456
|
+
._shk-gradient-blue {
|
|
457
|
+
background-image: linear-gradient(to right, var(--shk-info-400), var(--shk-info-600));
|
|
458
|
+
}
|
|
459
|
+
._shk-gradient-amber {
|
|
460
|
+
background-image: linear-gradient(to right, var(--shk-amber-400), var(--shk-amber-600));
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/* ============================================================
|
|
464
|
+
Scrollbar (table, sidebar, dropdowns, …)
|
|
465
|
+
============================================================ */
|
|
466
|
+
._shk-scrollbar {
|
|
467
|
+
scrollbar-width: thin;
|
|
468
|
+
scrollbar-color: var(--shk-scrollbar-thumb) transparent;
|
|
469
|
+
}
|
|
470
|
+
._shk-scrollbar::-webkit-scrollbar {
|
|
471
|
+
width: 8px;
|
|
472
|
+
height: 8px;
|
|
473
|
+
}
|
|
474
|
+
._shk-scrollbar::-webkit-scrollbar-track {
|
|
475
|
+
background: transparent;
|
|
476
|
+
}
|
|
477
|
+
._shk-scrollbar::-webkit-scrollbar-thumb {
|
|
478
|
+
background: var(--shk-scrollbar-thumb);
|
|
479
|
+
border-radius: 9999px;
|
|
480
|
+
border: 2px solid transparent;
|
|
481
|
+
background-clip: content-box;
|
|
482
|
+
}
|
|
483
|
+
._shk-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
484
|
+
background: var(--shk-scrollbar-thumb-hover);
|
|
485
|
+
border: 2px solid transparent;
|
|
486
|
+
background-clip: content-box;
|
|
487
|
+
}
|
|
488
|
+
._shk-scrollbar::-webkit-scrollbar-corner {
|
|
489
|
+
background: transparent;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/* ============================================================
|
|
494
|
+
Form controls (text-field, price-input, select trigger…)
|
|
495
|
+
Soft focus ring + clearly distinguishable disabled state.
|
|
496
|
+
Deliberately UNLAYERED (unlike the `_shk-*` utilities above) so
|
|
497
|
+
they always win over the utilities used in the templates, e.g.
|
|
498
|
+
the error border over a `dark:[border-color:…]`.
|
|
499
|
+
============================================================ */
|
|
500
|
+
:root {
|
|
501
|
+
--shk-ring: color-mix(in srgb, var(--shk-primary-500) 22%, transparent);
|
|
502
|
+
--shk-ring-error: color-mix(in srgb, var(--shk-error-500) 22%, transparent);
|
|
503
|
+
}
|
|
504
|
+
input.shk-control,
|
|
505
|
+
textarea.shk-control,
|
|
506
|
+
div.shk-control {
|
|
507
|
+
transition:
|
|
508
|
+
border-color 0.15s ease,
|
|
509
|
+
box-shadow 0.15s ease,
|
|
510
|
+
background-color 0.15s ease;
|
|
511
|
+
}
|
|
512
|
+
input.shk-control:focus,
|
|
513
|
+
textarea.shk-control:focus,
|
|
514
|
+
div.shk-control:focus,
|
|
515
|
+
div.shk-control:focus-within,
|
|
516
|
+
div.shk-control.open {
|
|
517
|
+
outline: none;
|
|
518
|
+
border-color: var(--shk-primary-500);
|
|
519
|
+
box-shadow: 0 0 0 3px var(--shk-ring);
|
|
520
|
+
}
|
|
521
|
+
/* Lift the focused field over an attached button (search, currency…) so
|
|
522
|
+
the ring isn't hidden on that side. */
|
|
523
|
+
input.shk-control.shk-control-addon:focus {
|
|
524
|
+
position: relative;
|
|
525
|
+
z-index: 1;
|
|
526
|
+
}
|
|
527
|
+
/* Field whose error was just fixed keeps its green state while focused. */
|
|
528
|
+
input.shk-control.shk-control-valid:focus,
|
|
529
|
+
textarea.shk-control.shk-control-valid:focus {
|
|
530
|
+
border-color: var(--shk-success-600);
|
|
531
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--shk-success-600) 22%, transparent);
|
|
532
|
+
}
|
|
533
|
+
/* Invalid field (validation error): red border in every state and theme.
|
|
534
|
+
Specificity (0,2,1) beats Tailwind `dark:[border-color:…]` utilities. */
|
|
535
|
+
input.shk-control[aria-invalid='true'],
|
|
536
|
+
textarea.shk-control[aria-invalid='true'],
|
|
537
|
+
div.shk-control[aria-invalid='true'],
|
|
538
|
+
div.shk-dropzone[aria-invalid='true'],
|
|
539
|
+
div.shk-dropzone[aria-invalid='true']:hover {
|
|
540
|
+
border-color: var(--shk-error-500);
|
|
541
|
+
}
|
|
542
|
+
input.shk-control[aria-invalid='true']:focus,
|
|
543
|
+
textarea.shk-control[aria-invalid='true']:focus,
|
|
544
|
+
div.shk-control[aria-invalid='true']:focus-within,
|
|
545
|
+
div.shk-control[aria-invalid='true'].open {
|
|
546
|
+
border-color: var(--shk-error-500);
|
|
547
|
+
box-shadow: 0 0 0 3px var(--shk-ring-error);
|
|
548
|
+
}
|
|
549
|
+
input.shk-control:disabled,
|
|
550
|
+
textarea.shk-control:disabled,
|
|
551
|
+
div.shk-control.shk-control-disabled {
|
|
552
|
+
background-color: var(--shk-surface-100);
|
|
553
|
+
border-color: var(--shk-surface-200);
|
|
554
|
+
color: var(--shk-surface-500);
|
|
555
|
+
cursor: not-allowed;
|
|
556
|
+
box-shadow: none;
|
|
557
|
+
}
|
|
558
|
+
.dark input.shk-control:disabled,
|
|
559
|
+
.dark textarea.shk-control:disabled,
|
|
560
|
+
.dark div.shk-control.shk-control-disabled {
|
|
561
|
+
background-color: var(--shk-surface-50);
|
|
562
|
+
color: var(--shk-surface-400);
|
|
563
|
+
}
|
|
564
|
+
div.shk-control.shk-control-disabled * {
|
|
565
|
+
cursor: not-allowed;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/* ============================================================
|
|
569
|
+
Composite surfaces used by table/timeline shells.
|
|
570
|
+
============================================================ */
|
|
571
|
+
.card {
|
|
572
|
+
background-color: var(--shk-surface-50);
|
|
573
|
+
border: 1px solid var(--shk-surface-200);
|
|
574
|
+
border-radius: 0.75rem;
|
|
575
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.dark .card {
|
|
579
|
+
background-color: var(--shk-surface-100);
|
|
580
|
+
border-color: var(--shk-surface-200);
|
|
581
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@keyframes shk-fade-in {
|
|
585
|
+
from {
|
|
586
|
+
opacity: 0;
|
|
587
|
+
transform: translateY(0.25rem);
|
|
588
|
+
}
|
|
589
|
+
to {
|
|
590
|
+
opacity: 1;
|
|
591
|
+
transform: none;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.animate-fade-in {
|
|
596
|
+
animation: shk-fade-in 0.25s ease-out;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/* ============================================================
|
|
600
|
+
Reduced motion: honour the OS setting in every component.
|
|
601
|
+
Loading indicators (spinners, dots, bars) are essential feedback
|
|
602
|
+
and keep animating, otherwise the UI looks frozen.
|
|
603
|
+
============================================================ */
|
|
604
|
+
@media (prefers-reduced-motion: reduce) {
|
|
605
|
+
[class*='shk-']:not([class*='spin']):not([class*='shk-loading']),
|
|
606
|
+
[class*='shk-']:not([class*='spin']):not([class*='shk-loading'])::before,
|
|
607
|
+
[class*='shk-']:not([class*='spin']):not([class*='shk-loading'])::after {
|
|
608
|
+
animation-duration: 0.01ms !important;
|
|
609
|
+
animation-iteration-count: 1 !important;
|
|
610
|
+
transition-duration: 0.01ms !important;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
@@ -13,7 +13,7 @@ type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
|
13
13
|
declare class ButtonComponent {
|
|
14
14
|
/** Text shown inside the button. */
|
|
15
15
|
label: _angular_core.InputSignal<string>;
|
|
16
|
-
/** Optional leading
|
|
16
|
+
/** Optional leading icon: registered name (e.g. `'plus'`) or `IconNode` data. */
|
|
17
17
|
icon: _angular_core.InputSignal<any>;
|
|
18
18
|
/** Position of the icon relative to the label. */
|
|
19
19
|
iconPos: _angular_core.InputSignal<ButtonIconPosition>;
|