@leodamours/ds-components 0.2.1 → 0.2.3
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/components/DsAvatar.vue.d.ts +35 -0
- package/dist/components/DsBadge.vue.d.ts +46 -0
- package/dist/components/DsButton.vue.d.ts +67 -0
- package/dist/components/DsCheckbox.vue.d.ts +54 -0
- package/dist/components/DsDropdownSelect.vue.d.ts +85 -0
- package/dist/components/DsInput.vue.d.ts +80 -0
- package/dist/components/DsLoadingSpinner.vue.d.ts +37 -0
- package/dist/components/DsModal.vue.d.ts +55 -0
- package/dist/components/DsRadio.vue.d.ts +52 -0
- package/dist/components/DsSelect.vue.d.ts +55 -0
- package/dist/components/DsTable.vue.d.ts +81 -0
- package/dist/components/DsTabs.vue.d.ts +50 -0
- package/dist/components/DsTextarea.vue.d.ts +64 -0
- package/dist/components/DsToast.vue.d.ts +21 -0
- package/dist/components/DsToastContainer.vue.d.ts +2 -0
- package/dist/components/DsTooltip.vue.d.ts +44 -0
- package/dist/components/DsUnderConstruction.vue.d.ts +32 -0
- package/dist/composables/useId.d.ts +2 -0
- package/dist/composables/useToast.d.ts +49 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +38 -0
- package/dist/index.js +593 -579
- package/dist/styles/default.d.ts +24 -0
- package/dist/styles/presets.d.ts +4 -0
- package/dist/styles/tokens.d.ts +262 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const defaultTheme: {
|
|
2
|
+
colors: Record<string, string>;
|
|
3
|
+
fontFamily: {
|
|
4
|
+
sans: string;
|
|
5
|
+
mono: string;
|
|
6
|
+
};
|
|
7
|
+
fontSize: {
|
|
8
|
+
xs: string[];
|
|
9
|
+
sm: string[];
|
|
10
|
+
base: string[];
|
|
11
|
+
lg: string[];
|
|
12
|
+
xl: string[];
|
|
13
|
+
'2xl': string[];
|
|
14
|
+
'3xl': string[];
|
|
15
|
+
};
|
|
16
|
+
breakpoints: {
|
|
17
|
+
sm: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
|
+
xl: string;
|
|
21
|
+
xxl: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default defaultTheme;
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design token definitions — single source of truth for all color tokens.
|
|
3
|
+
* Each token maps to a CSS custom property: `--ds-{token}`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const colorTokens: {
|
|
6
|
+
readonly bg: "#FFFFFF";
|
|
7
|
+
readonly 'bg-secondary': "#F8FAFC";
|
|
8
|
+
readonly 'bg-tertiary': "#F1F5F9";
|
|
9
|
+
readonly 'bg-inverse': "#0F172A";
|
|
10
|
+
readonly 'bg-inverse-secondary': "#1E293B";
|
|
11
|
+
readonly fg: "#0F172A";
|
|
12
|
+
readonly 'fg-secondary': "#64748B";
|
|
13
|
+
readonly 'fg-tertiary': "#94A3B8";
|
|
14
|
+
readonly 'fg-inverse': "#FFFFFF";
|
|
15
|
+
readonly 'fg-disabled': "#94A3B8";
|
|
16
|
+
readonly icon: "#64748B";
|
|
17
|
+
readonly 'icon-hover': "#0F172A";
|
|
18
|
+
readonly 'icon-active': "#0EA5E9";
|
|
19
|
+
readonly 'icon-inverse': "#FFFFFF";
|
|
20
|
+
readonly 'icon-disabled': "#CBD5E1";
|
|
21
|
+
readonly border: "#E2E8F0";
|
|
22
|
+
readonly 'border-light': "#F1F5F9";
|
|
23
|
+
readonly 'border-strong': "#CBD5E1";
|
|
24
|
+
readonly 'border-focus': "#0F172A";
|
|
25
|
+
readonly 'surface-hover': "#E2E8F0";
|
|
26
|
+
readonly 'surface-hover-light': "#F1F5F9";
|
|
27
|
+
readonly 'surface-active': "#B7E6FD";
|
|
28
|
+
readonly 'surface-disabled': "#FAFCFF";
|
|
29
|
+
readonly brand: "#0EA5E9";
|
|
30
|
+
readonly 'brand-hover': "#0284C7";
|
|
31
|
+
readonly 'brand-active': "#0369A1";
|
|
32
|
+
readonly 'brand-disabled': "#BAE6FD";
|
|
33
|
+
readonly 'brand-soft': "#F0F9FF";
|
|
34
|
+
readonly 'brand-soft-hover': "#E0F2FE";
|
|
35
|
+
readonly 'brand-soft-active': "#B7E6FD";
|
|
36
|
+
readonly 'brand-on-solid': "#FFFFFF";
|
|
37
|
+
readonly 'brand-on-soft': "#0EA5E9";
|
|
38
|
+
readonly 'brand-secondary': "#6366F1";
|
|
39
|
+
readonly neutral: "#64748B";
|
|
40
|
+
readonly 'neutral-soft': "#F8FAFC";
|
|
41
|
+
readonly 'neutral-soft-hover': "#F1F5F9";
|
|
42
|
+
readonly 'neutral-soft-active': "#E2E8F0";
|
|
43
|
+
readonly 'neutral-on-solid': "#FFFFFF";
|
|
44
|
+
readonly 'neutral-on-soft': "#0F172A";
|
|
45
|
+
readonly 'neutral-border': "#D1D5DB";
|
|
46
|
+
readonly 'neutral-border-hover': "#B5BCC9";
|
|
47
|
+
readonly 'neutral-border-strong': "#94A3B8";
|
|
48
|
+
readonly error: "#EF4444";
|
|
49
|
+
readonly 'error-hover': "#DC2626";
|
|
50
|
+
readonly 'error-active': "#B91C1C";
|
|
51
|
+
readonly 'error-soft': "#FEF2F2";
|
|
52
|
+
readonly 'error-soft-hover': "#FEE2E2";
|
|
53
|
+
readonly 'error-soft-active': "#FECACA";
|
|
54
|
+
readonly 'error-on-solid': "#FFFFFF";
|
|
55
|
+
readonly 'error-on-soft': "#EF4444";
|
|
56
|
+
readonly 'error-border': "#F8CDD1";
|
|
57
|
+
readonly 'error-border-hover': "#F5A6B3";
|
|
58
|
+
readonly 'error-border-strong': "#B91C1C";
|
|
59
|
+
readonly success: "#10B981";
|
|
60
|
+
readonly 'success-hover': "#0A8D63";
|
|
61
|
+
readonly 'success-active': "#047857";
|
|
62
|
+
readonly 'success-soft': "#ECFDF5";
|
|
63
|
+
readonly 'success-soft-hover': "#D1FAE5";
|
|
64
|
+
readonly 'success-soft-active': "#A7F3D0";
|
|
65
|
+
readonly 'success-on-solid': "#FFFFFF";
|
|
66
|
+
readonly 'success-on-soft': "#10B981";
|
|
67
|
+
readonly 'success-border': "#BEF3D0";
|
|
68
|
+
readonly 'success-border-hover': "#86EFAC";
|
|
69
|
+
readonly 'success-border-strong': "#0EA875";
|
|
70
|
+
readonly warning: "#F59E0B";
|
|
71
|
+
readonly 'warning-hover': "#D97706";
|
|
72
|
+
readonly 'warning-active': "#B45309";
|
|
73
|
+
readonly 'warning-soft': "#FFFBEB";
|
|
74
|
+
readonly 'warning-soft-hover': "#FEF3C7";
|
|
75
|
+
readonly 'warning-soft-active': "#FDE68A";
|
|
76
|
+
readonly 'warning-on-solid': "#FFFFFF";
|
|
77
|
+
readonly 'warning-on-soft': "#92400E";
|
|
78
|
+
readonly 'warning-border': "#F3E6A5";
|
|
79
|
+
readonly 'warning-border-hover': "#E6D378";
|
|
80
|
+
readonly info: "#3B82F6";
|
|
81
|
+
readonly 'info-hover': "#2563EB";
|
|
82
|
+
readonly 'info-active': "#1D4ED8";
|
|
83
|
+
readonly 'info-soft': "#EFF6FF";
|
|
84
|
+
readonly 'info-soft-hover': "#DBEAFE";
|
|
85
|
+
readonly 'info-soft-active': "#BFDBFE";
|
|
86
|
+
readonly 'info-on-solid': "#FFFFFF";
|
|
87
|
+
readonly 'info-on-soft': "#1E40AF";
|
|
88
|
+
readonly 'info-border': "#C5D7F5";
|
|
89
|
+
readonly 'info-border-hover': "#A8CCF2";
|
|
90
|
+
readonly processing: "#06B6D4";
|
|
91
|
+
readonly 'processing-hover': "#0891B2";
|
|
92
|
+
readonly 'processing-active': "#0E7490";
|
|
93
|
+
readonly 'processing-soft': "#ECFEFF";
|
|
94
|
+
readonly 'processing-soft-hover': "#CFFAFE";
|
|
95
|
+
readonly 'processing-soft-active': "#A5F3FC";
|
|
96
|
+
readonly 'processing-on-solid': "#FFFFFF";
|
|
97
|
+
readonly 'processing-on-soft': "#155E75";
|
|
98
|
+
readonly 'processing-border': "#B3F0FC";
|
|
99
|
+
readonly 'processing-border-hover': "#7FE8F5";
|
|
100
|
+
readonly 'transcript-bg': "#FEFCE8";
|
|
101
|
+
readonly 'transcript-highlight': "#FEF3C7";
|
|
102
|
+
readonly 'transcript-speaker': "#EDE9FE";
|
|
103
|
+
readonly 'transcript-timestamp': "#F3F4F6";
|
|
104
|
+
};
|
|
105
|
+
export declare const spacingTokens: {
|
|
106
|
+
readonly 'space-1': "4px";
|
|
107
|
+
readonly 'space-2': "8px";
|
|
108
|
+
readonly 'space-3': "12px";
|
|
109
|
+
readonly 'space-4': "16px";
|
|
110
|
+
readonly 'space-5': "24px";
|
|
111
|
+
readonly 'space-6': "32px";
|
|
112
|
+
readonly 'space-7': "48px";
|
|
113
|
+
readonly 'space-8': "64px";
|
|
114
|
+
};
|
|
115
|
+
export declare const radiusTokens: {
|
|
116
|
+
readonly 'radius-sm': "4px";
|
|
117
|
+
readonly 'radius-md': "6px";
|
|
118
|
+
readonly 'radius-lg': "8px";
|
|
119
|
+
readonly 'radius-xl': "12px";
|
|
120
|
+
readonly 'radius-full': "9999px";
|
|
121
|
+
};
|
|
122
|
+
export declare const shadowTokens: {
|
|
123
|
+
readonly 'shadow-sm': "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
|
|
124
|
+
readonly 'shadow-md': "0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1)";
|
|
125
|
+
readonly 'shadow-lg': "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)";
|
|
126
|
+
};
|
|
127
|
+
export type ColorToken = keyof typeof colorTokens;
|
|
128
|
+
export type SpacingToken = keyof typeof spacingTokens;
|
|
129
|
+
export type RadiusToken = keyof typeof radiusTokens;
|
|
130
|
+
export type ShadowToken = keyof typeof shadowTokens;
|
|
131
|
+
export type ThemeOverride = Partial<Record<ColorToken | SpacingToken | RadiusToken | ShadowToken, string>>;
|
|
132
|
+
/** All tokens combined for iteration. */
|
|
133
|
+
export declare const allTokens: {
|
|
134
|
+
readonly 'shadow-sm': "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
|
|
135
|
+
readonly 'shadow-md': "0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1)";
|
|
136
|
+
readonly 'shadow-lg': "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)";
|
|
137
|
+
readonly 'radius-sm': "4px";
|
|
138
|
+
readonly 'radius-md': "6px";
|
|
139
|
+
readonly 'radius-lg': "8px";
|
|
140
|
+
readonly 'radius-xl': "12px";
|
|
141
|
+
readonly 'radius-full': "9999px";
|
|
142
|
+
readonly 'space-1': "4px";
|
|
143
|
+
readonly 'space-2': "8px";
|
|
144
|
+
readonly 'space-3': "12px";
|
|
145
|
+
readonly 'space-4': "16px";
|
|
146
|
+
readonly 'space-5': "24px";
|
|
147
|
+
readonly 'space-6': "32px";
|
|
148
|
+
readonly 'space-7': "48px";
|
|
149
|
+
readonly 'space-8': "64px";
|
|
150
|
+
readonly bg: "#FFFFFF";
|
|
151
|
+
readonly 'bg-secondary': "#F8FAFC";
|
|
152
|
+
readonly 'bg-tertiary': "#F1F5F9";
|
|
153
|
+
readonly 'bg-inverse': "#0F172A";
|
|
154
|
+
readonly 'bg-inverse-secondary': "#1E293B";
|
|
155
|
+
readonly fg: "#0F172A";
|
|
156
|
+
readonly 'fg-secondary': "#64748B";
|
|
157
|
+
readonly 'fg-tertiary': "#94A3B8";
|
|
158
|
+
readonly 'fg-inverse': "#FFFFFF";
|
|
159
|
+
readonly 'fg-disabled': "#94A3B8";
|
|
160
|
+
readonly icon: "#64748B";
|
|
161
|
+
readonly 'icon-hover': "#0F172A";
|
|
162
|
+
readonly 'icon-active': "#0EA5E9";
|
|
163
|
+
readonly 'icon-inverse': "#FFFFFF";
|
|
164
|
+
readonly 'icon-disabled': "#CBD5E1";
|
|
165
|
+
readonly border: "#E2E8F0";
|
|
166
|
+
readonly 'border-light': "#F1F5F9";
|
|
167
|
+
readonly 'border-strong': "#CBD5E1";
|
|
168
|
+
readonly 'border-focus': "#0F172A";
|
|
169
|
+
readonly 'surface-hover': "#E2E8F0";
|
|
170
|
+
readonly 'surface-hover-light': "#F1F5F9";
|
|
171
|
+
readonly 'surface-active': "#B7E6FD";
|
|
172
|
+
readonly 'surface-disabled': "#FAFCFF";
|
|
173
|
+
readonly brand: "#0EA5E9";
|
|
174
|
+
readonly 'brand-hover': "#0284C7";
|
|
175
|
+
readonly 'brand-active': "#0369A1";
|
|
176
|
+
readonly 'brand-disabled': "#BAE6FD";
|
|
177
|
+
readonly 'brand-soft': "#F0F9FF";
|
|
178
|
+
readonly 'brand-soft-hover': "#E0F2FE";
|
|
179
|
+
readonly 'brand-soft-active': "#B7E6FD";
|
|
180
|
+
readonly 'brand-on-solid': "#FFFFFF";
|
|
181
|
+
readonly 'brand-on-soft': "#0EA5E9";
|
|
182
|
+
readonly 'brand-secondary': "#6366F1";
|
|
183
|
+
readonly neutral: "#64748B";
|
|
184
|
+
readonly 'neutral-soft': "#F8FAFC";
|
|
185
|
+
readonly 'neutral-soft-hover': "#F1F5F9";
|
|
186
|
+
readonly 'neutral-soft-active': "#E2E8F0";
|
|
187
|
+
readonly 'neutral-on-solid': "#FFFFFF";
|
|
188
|
+
readonly 'neutral-on-soft': "#0F172A";
|
|
189
|
+
readonly 'neutral-border': "#D1D5DB";
|
|
190
|
+
readonly 'neutral-border-hover': "#B5BCC9";
|
|
191
|
+
readonly 'neutral-border-strong': "#94A3B8";
|
|
192
|
+
readonly error: "#EF4444";
|
|
193
|
+
readonly 'error-hover': "#DC2626";
|
|
194
|
+
readonly 'error-active': "#B91C1C";
|
|
195
|
+
readonly 'error-soft': "#FEF2F2";
|
|
196
|
+
readonly 'error-soft-hover': "#FEE2E2";
|
|
197
|
+
readonly 'error-soft-active': "#FECACA";
|
|
198
|
+
readonly 'error-on-solid': "#FFFFFF";
|
|
199
|
+
readonly 'error-on-soft': "#EF4444";
|
|
200
|
+
readonly 'error-border': "#F8CDD1";
|
|
201
|
+
readonly 'error-border-hover': "#F5A6B3";
|
|
202
|
+
readonly 'error-border-strong': "#B91C1C";
|
|
203
|
+
readonly success: "#10B981";
|
|
204
|
+
readonly 'success-hover': "#0A8D63";
|
|
205
|
+
readonly 'success-active': "#047857";
|
|
206
|
+
readonly 'success-soft': "#ECFDF5";
|
|
207
|
+
readonly 'success-soft-hover': "#D1FAE5";
|
|
208
|
+
readonly 'success-soft-active': "#A7F3D0";
|
|
209
|
+
readonly 'success-on-solid': "#FFFFFF";
|
|
210
|
+
readonly 'success-on-soft': "#10B981";
|
|
211
|
+
readonly 'success-border': "#BEF3D0";
|
|
212
|
+
readonly 'success-border-hover': "#86EFAC";
|
|
213
|
+
readonly 'success-border-strong': "#0EA875";
|
|
214
|
+
readonly warning: "#F59E0B";
|
|
215
|
+
readonly 'warning-hover': "#D97706";
|
|
216
|
+
readonly 'warning-active': "#B45309";
|
|
217
|
+
readonly 'warning-soft': "#FFFBEB";
|
|
218
|
+
readonly 'warning-soft-hover': "#FEF3C7";
|
|
219
|
+
readonly 'warning-soft-active': "#FDE68A";
|
|
220
|
+
readonly 'warning-on-solid': "#FFFFFF";
|
|
221
|
+
readonly 'warning-on-soft': "#92400E";
|
|
222
|
+
readonly 'warning-border': "#F3E6A5";
|
|
223
|
+
readonly 'warning-border-hover': "#E6D378";
|
|
224
|
+
readonly info: "#3B82F6";
|
|
225
|
+
readonly 'info-hover': "#2563EB";
|
|
226
|
+
readonly 'info-active': "#1D4ED8";
|
|
227
|
+
readonly 'info-soft': "#EFF6FF";
|
|
228
|
+
readonly 'info-soft-hover': "#DBEAFE";
|
|
229
|
+
readonly 'info-soft-active': "#BFDBFE";
|
|
230
|
+
readonly 'info-on-solid': "#FFFFFF";
|
|
231
|
+
readonly 'info-on-soft': "#1E40AF";
|
|
232
|
+
readonly 'info-border': "#C5D7F5";
|
|
233
|
+
readonly 'info-border-hover': "#A8CCF2";
|
|
234
|
+
readonly processing: "#06B6D4";
|
|
235
|
+
readonly 'processing-hover': "#0891B2";
|
|
236
|
+
readonly 'processing-active': "#0E7490";
|
|
237
|
+
readonly 'processing-soft': "#ECFEFF";
|
|
238
|
+
readonly 'processing-soft-hover': "#CFFAFE";
|
|
239
|
+
readonly 'processing-soft-active': "#A5F3FC";
|
|
240
|
+
readonly 'processing-on-solid': "#FFFFFF";
|
|
241
|
+
readonly 'processing-on-soft': "#155E75";
|
|
242
|
+
readonly 'processing-border': "#B3F0FC";
|
|
243
|
+
readonly 'processing-border-hover': "#7FE8F5";
|
|
244
|
+
readonly 'transcript-bg': "#FEFCE8";
|
|
245
|
+
readonly 'transcript-highlight': "#FEF3C7";
|
|
246
|
+
readonly 'transcript-speaker': "#EDE9FE";
|
|
247
|
+
readonly 'transcript-timestamp': "#F3F4F6";
|
|
248
|
+
};
|
|
249
|
+
/** Convert a token name to its CSS custom property name. */
|
|
250
|
+
export declare function tokenToCssVar(token: string): string;
|
|
251
|
+
/**
|
|
252
|
+
* Generate a CSS rule block that sets theme overrides on a given selector.
|
|
253
|
+
* Defaults to `:root` if no selector is provided.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* generateThemeCss({ brand: '#8B5CF6' })
|
|
257
|
+
* // => `:root {\n --ds-brand: #8B5CF6;\n}`
|
|
258
|
+
*
|
|
259
|
+
* generateThemeCss({ brand: '#8B5CF6' }, '[data-theme="purple"]')
|
|
260
|
+
* // => `[data-theme="purple"] {\n --ds-brand: #8B5CF6;\n}`
|
|
261
|
+
*/
|
|
262
|
+
export declare function generateThemeCss(overrides: ThemeOverride, selector?: string): string;
|