@yahoo/uds-v5-wip 1.34.0 → 1.35.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/dist/config/dist/createConfig.d.ts +45 -6
- package/dist/config/dist/createConfig.js +32 -2
- package/dist/config/dist/index.d.ts +1 -1
- package/dist/config.d.ts +69 -15
- package/dist/foundational-presets/dist/boldVibrant.d.ts +69 -15
- package/dist/foundational-presets/dist/brutalist.d.ts +69 -15
- package/dist/foundational-presets/dist/candy.d.ts +69 -15
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +69 -15
- package/dist/foundational-presets/dist/corporate.d.ts +69 -15
- package/dist/foundational-presets/dist/darkMoody.d.ts +69 -15
- package/dist/foundational-presets/dist/defaultPreset.d.ts +69 -15
- package/dist/foundational-presets/dist/defaultPreset.js +10 -41
- package/dist/foundational-presets/dist/forest.d.ts +69 -15
- package/dist/foundational-presets/dist/highContrast.d.ts +69 -15
- package/dist/foundational-presets/dist/lavender.d.ts +69 -15
- package/dist/foundational-presets/dist/luxury.d.ts +69 -15
- package/dist/foundational-presets/dist/monochrome.d.ts +69 -15
- package/dist/foundational-presets/dist/neonCyber.d.ts +69 -15
- package/dist/foundational-presets/dist/newspaper.d.ts +69 -15
- package/dist/foundational-presets/dist/ocean.d.ts +69 -15
- package/dist/foundational-presets/dist/slate.d.ts +69 -15
- package/dist/foundational-presets/dist/sunset.d.ts +69 -15
- package/dist/foundational-presets/dist/terminal.d.ts +69 -15
- package/dist/foundational-presets/dist/warmOrganic.d.ts +69 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -28,6 +28,8 @@ type IsReservedModifier<T> = T extends BaseModifierProp ? true : false;
|
|
|
28
28
|
type HasReservedModifier<T> = T extends any ? IsReservedModifier<T> extends true ? true : never : never;
|
|
29
29
|
interface ModeOption {
|
|
30
30
|
name: string;
|
|
31
|
+
/** Optional human-readable label for Studio. Falls back to `name`. */
|
|
32
|
+
label?: string;
|
|
31
33
|
modifier: ModifierNameShape;
|
|
32
34
|
/** Description for AI prompt generation (e.g. "Apply styles in dark mode") */
|
|
33
35
|
description?: string;
|
|
@@ -37,16 +39,55 @@ interface ModeOption {
|
|
|
37
39
|
}
|
|
38
40
|
interface ModeGroup {
|
|
39
41
|
name: string;
|
|
42
|
+
/** Optional human-readable label for Studio. Falls back to `name`. */
|
|
43
|
+
label?: string;
|
|
40
44
|
options: ModeOption[];
|
|
41
45
|
}
|
|
46
|
+
/** Single option within a mode set, as authored. */
|
|
47
|
+
interface ModeOptionInput {
|
|
48
|
+
/** Optional human-readable label for Studio. Falls back to the option key. */
|
|
49
|
+
label?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Optional explicit modifier string. When omitted, derived as `_${optionKey}`.
|
|
52
|
+
* Use this when the option key and modifier must differ (e.g. `xxl` → `_2xl`).
|
|
53
|
+
*/
|
|
54
|
+
modifier?: ModifierNameShape;
|
|
55
|
+
/** CSS selector applied when this option is active (e.g. `.dark`). */
|
|
56
|
+
css?: string;
|
|
57
|
+
/** Media query applied when this option is active. */
|
|
58
|
+
media?: string;
|
|
59
|
+
}
|
|
60
|
+
/** Single mode set, as authored. */
|
|
61
|
+
interface ModeSetInput {
|
|
62
|
+
/** Optional human-readable label for Studio. Falls back to the set key. */
|
|
63
|
+
label?: string;
|
|
64
|
+
options: Record<string, ModeOptionInput>;
|
|
65
|
+
}
|
|
66
|
+
/** Object-keyed input shape accepted by `defineModes`. */
|
|
67
|
+
type ModesInput = Record<string, ModeSetInput>;
|
|
68
|
+
/**
|
|
69
|
+
* Extract the union of modifier strings produced by an authored `ModesInput`.
|
|
70
|
+
* Uses an explicit `modifier` when present; otherwise derives `_${optionKey}`.
|
|
71
|
+
* Drives both the reserved-modifier guard and the modifier types that flow
|
|
72
|
+
* through subsequent builder calls.
|
|
73
|
+
*/
|
|
74
|
+
type GetModifierFromInput<I extends ModesInput> = { [SetKey in keyof I]: { [OptKey in keyof I[SetKey]['options']]: I[SetKey]['options'][OptKey] extends {
|
|
75
|
+
modifier: infer M;
|
|
76
|
+
} ? M extends ModifierNameShape ? M : never : OptKey extends string ? `_${OptKey}` : never }[keyof I[SetKey]['options']] }[keyof I];
|
|
77
|
+
/** Reject any input whose derived/explicit modifiers collide with reserved names. */
|
|
78
|
+
type CheckForReservedModifiersInput<I extends ModesInput> = true extends HasReservedModifier<GetModifierFromInput<I>> ? 'ERROR: Cannot use reserved modifier names from ModifierProp. Please use a different modifier name.' : I;
|
|
79
|
+
/**
|
|
80
|
+
* Convert the authored object-keyed input into the internal `ModeGroup[]` shape.
|
|
81
|
+
* Derives `_${optionKey}` modifiers when no explicit `modifier` is provided.
|
|
82
|
+
* Never sets `default: true` — the new API has no concept of a default option;
|
|
83
|
+
* downstream consumers treat "no option active" as the implicit default.
|
|
84
|
+
*/
|
|
42
85
|
interface ModifierDef {
|
|
43
86
|
modifier: ModifierNameShape;
|
|
44
87
|
selector: string;
|
|
45
88
|
/** Description for AI prompt generation (e.g. "Apply styles on elevation-1 surfaces") */
|
|
46
89
|
description?: string;
|
|
47
90
|
}
|
|
48
|
-
/** Extract modifier union from all mode groups */
|
|
49
|
-
type GetModifierName<M extends readonly ModeGroup[]> = M[number]['options'][number]['modifier'];
|
|
50
91
|
interface ArbitraryTokenGroup {
|
|
51
92
|
properties: string[];
|
|
52
93
|
pattern: string | string[];
|
|
@@ -133,8 +174,6 @@ type EmptyVars = {};
|
|
|
133
174
|
/** Build a structured token reference object from atomic tokens */
|
|
134
175
|
declare function buildTokenReference(atomic: AtomicToken<ModifierNameShape>[], configPrefix: string): Record<string, Record<string, string>>;
|
|
135
176
|
/** Build a structured composite-styles reference object for use in defineModifiers context */
|
|
136
|
-
/** Extract all modifiers from mode groups and check if any are reserved */
|
|
137
|
-
type CheckForReservedModifiers<T extends readonly ModeGroup[]> = true extends HasReservedModifier<GetModifierName<T>> ? 'ERROR: Cannot use reserved modifier names from ModifierProp. Please use a different modifier name.' : T;
|
|
138
177
|
/** Global styles definition — CSS selector → style props */
|
|
139
178
|
type GlobalStylesDef = Record<string, Record<string, any>>;
|
|
140
179
|
/** CSS properties for the example wrapper element */
|
|
@@ -226,7 +265,7 @@ interface UdsConfig<TModifier extends ModifierNameShape = ModifierProp, TTokens
|
|
|
226
265
|
preflight(enabled?: boolean): ConfigResult<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars>;
|
|
227
266
|
prefix(value: string): ConfigResult<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars>;
|
|
228
267
|
buildOptions(options: BuildOptions): ConfigResult<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars>;
|
|
229
|
-
defineModes<const NewModes extends
|
|
268
|
+
defineModes<const NewModes extends ModesInput>(params: CheckForReservedModifiersInput<NewModes>): ConfigResult<TModifier | GetModifierFromInput<NewModes>, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers | GetModifierFromInput<NewModes>, TVars>;
|
|
230
269
|
defineModifiers<const Defs extends readonly ModifierDef[]>(params: Defs | ((ctx: {
|
|
231
270
|
tokens: TTokens;
|
|
232
271
|
compositeStyles: CompositeStylesReference<TCompositeStyles>;
|
|
@@ -315,4 +354,4 @@ interface InterpolateMarker {
|
|
|
315
354
|
declare function darker(color: string, amount: number): string;
|
|
316
355
|
declare function lighter(color: string, amount: number): string;
|
|
317
356
|
//#endregion
|
|
318
|
-
export { ArbitraryTokenGroup, AtomicToken, BuildOptions, ComponentConfig, DefineComponentInput, DefineComponentMotionInput, ExampleDef, ExampleEntryDef, ExampleLayoutStyles, GlobalStylesDef, InterpolateMarker, ModeGroup, ModifierDef, MotionPresetsDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig };
|
|
357
|
+
export { ArbitraryTokenGroup, AtomicToken, BuildOptions, CheckForReservedModifiersInput, ComponentConfig, DefineComponentInput, DefineComponentMotionInput, ExampleDef, ExampleEntryDef, ExampleLayoutStyles, GetModifierFromInput, GlobalStylesDef, InterpolateMarker, ModeGroup, ModeOption, ModeOptionInput, ModeSetInput, ModesInput, ModifierDef, MotionPresetsDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig };
|
|
@@ -9,6 +9,35 @@ import { resolveTokenType, sniffTokenTypeFromValue } from "./resolveTokenTypes.j
|
|
|
9
9
|
import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
|
|
10
10
|
//#region ../config/dist/createConfig.js
|
|
11
11
|
/** biome-ignore-all lint/suspicious/noExplicitAny: necessary for dynamic builder to work correctly */
|
|
12
|
+
/**
|
|
13
|
+
* Convert the authored object-keyed input into the internal `ModeGroup[]` shape.
|
|
14
|
+
* Derives `_${optionKey}` modifiers when no explicit `modifier` is provided.
|
|
15
|
+
* Never sets `default: true` — the new API has no concept of a default option;
|
|
16
|
+
* downstream consumers treat "no option active" as the implicit default.
|
|
17
|
+
*/
|
|
18
|
+
function convertModesInputToGroups(input) {
|
|
19
|
+
const groups = [];
|
|
20
|
+
for (const [setKey, setValue] of Object.entries(input)) {
|
|
21
|
+
const options = [];
|
|
22
|
+
for (const [optionKey, optionValue] of Object.entries(setValue.options)) {
|
|
23
|
+
const option = {
|
|
24
|
+
name: optionKey,
|
|
25
|
+
modifier: optionValue.modifier ?? `_${optionKey}`
|
|
26
|
+
};
|
|
27
|
+
if (optionValue.label !== void 0) option.label = optionValue.label;
|
|
28
|
+
if (optionValue.css !== void 0) option.css = optionValue.css;
|
|
29
|
+
if (optionValue.media !== void 0) option.media = optionValue.media;
|
|
30
|
+
options.push(option);
|
|
31
|
+
}
|
|
32
|
+
const group = {
|
|
33
|
+
name: setKey,
|
|
34
|
+
options
|
|
35
|
+
};
|
|
36
|
+
if (setValue.label !== void 0) group.label = setValue.label;
|
|
37
|
+
groups.push(group);
|
|
38
|
+
}
|
|
39
|
+
return groups;
|
|
40
|
+
}
|
|
12
41
|
/** Build a structured token reference object from atomic tokens */
|
|
13
42
|
function buildTokenReference(atomic, configPrefix) {
|
|
14
43
|
const result = Object.create(null);
|
|
@@ -391,9 +420,10 @@ function createConfigBuilder(data, extensions) {
|
|
|
391
420
|
return next({ buildOptions: options });
|
|
392
421
|
},
|
|
393
422
|
defineModes(params) {
|
|
423
|
+
const newGroups = convertModesInputToGroups(params);
|
|
394
424
|
return createConfigBuilder({
|
|
395
425
|
...data,
|
|
396
|
-
modes: [...data.modes, ...
|
|
426
|
+
modes: [...data.modes, ...newGroups]
|
|
397
427
|
}, extensions);
|
|
398
428
|
},
|
|
399
429
|
defineModifiers(params) {
|
|
@@ -692,4 +722,4 @@ const uds = createConfigBuilder({
|
|
|
692
722
|
remotion: void 0
|
|
693
723
|
});
|
|
694
724
|
//#endregion
|
|
695
|
-
export { buildCompositeStylesReference, buildTokenReference, createConfigBuilder, darker, interpolate, lighter, rem, resolveConfig, uds };
|
|
725
|
+
export { buildCompositeStylesReference, buildTokenReference, convertModesInputToGroups, createConfigBuilder, darker, interpolate, lighter, rem, resolveConfig, uds };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultColors } from "./consts/defaultColors.js";
|
|
2
2
|
import { PropertyGroupId } from "./propertyGroups.js";
|
|
3
3
|
import { TokenType, VarGroupDef, VarTokenDef, VarsConfig } from "./types.js";
|
|
4
|
-
import { ArbitraryTokenGroup, AtomicToken, BuildOptions, ComponentConfig, DefineComponentInput, DefineComponentMotionInput, ExampleDef, ExampleEntryDef, ExampleLayoutStyles, GlobalStylesDef, InterpolateMarker, ModeGroup, ModifierDef, MotionPresetsDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./createConfig.js";
|
|
4
|
+
import { ArbitraryTokenGroup, AtomicToken, BuildOptions, CheckForReservedModifiersInput, ComponentConfig, DefineComponentInput, DefineComponentMotionInput, ExampleDef, ExampleEntryDef, ExampleLayoutStyles, GetModifierFromInput, GlobalStylesDef, InterpolateMarker, ModeGroup, ModeOption, ModeOptionInput, ModeSetInput, ModesInput, ModifierDef, MotionPresetsDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./createConfig.js";
|
|
5
5
|
import { SerializedConfig, TokenRef, buildReverseMap, deserializeConfig, serializeConfig } from "./serialize.js";
|
|
6
6
|
import { ComponentsConfig as ComponentsConfig$1 } from "@uds/types";
|
|
7
7
|
export { type ComponentsConfig$1 as ComponentsConfig };
|
package/dist/config.d.ts
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
import { defaultColors } from "./config/dist/consts/defaultColors.js";
|
|
2
2
|
import { TokenType, VarGroupDef, VarTokenDef, VarsConfig } from "./config/dist/types.js";
|
|
3
|
-
import { GlobalStylesDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./config/dist/createConfig.js";
|
|
3
|
+
import { GetModifierFromInput, GlobalStylesDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./config/dist/createConfig.js";
|
|
4
4
|
import { SerializedConfig, TokenRef, buildReverseMap, deserializeConfig, serializeConfig } from "./config/dist/serialize.js";
|
|
5
5
|
import { ComponentsConfig } from "./config/dist/index.js";
|
|
6
6
|
import * as _$_uds_types0 from "@uds/types";
|
|
7
7
|
|
|
8
8
|
//#region src/config.d.ts
|
|
9
9
|
declare const uds: UdsConfig<_$_uds_types0.ModifierProp, {}, {}, {}, {}, never, {}>;
|
|
10
|
-
declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp |
|
|
10
|
+
declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierFromInput<{
|
|
11
|
+
readonly colorMode: {
|
|
12
|
+
readonly options: {
|
|
13
|
+
readonly dark: {
|
|
14
|
+
readonly css: ".dark";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly responsive: {
|
|
19
|
+
readonly options: {
|
|
20
|
+
readonly sm: {
|
|
21
|
+
readonly media: "(min-width: 640px)";
|
|
22
|
+
};
|
|
23
|
+
readonly md: {
|
|
24
|
+
readonly media: "(min-width: 768px)";
|
|
25
|
+
};
|
|
26
|
+
readonly lg: {
|
|
27
|
+
readonly media: "(min-width: 1024px)";
|
|
28
|
+
};
|
|
29
|
+
readonly xl: {
|
|
30
|
+
readonly media: "(min-width: 1280px)";
|
|
31
|
+
};
|
|
32
|
+
readonly "2xl": {
|
|
33
|
+
readonly media: "(min-width: 1536px)";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>, {
|
|
11
38
|
opacity: {
|
|
12
39
|
0: string;
|
|
13
40
|
5: string;
|
|
@@ -40,8 +67,8 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
40
67
|
};
|
|
41
68
|
rotate: {
|
|
42
69
|
0: string;
|
|
43
|
-
2: string;
|
|
44
70
|
1: string;
|
|
71
|
+
2: string;
|
|
45
72
|
3: string;
|
|
46
73
|
6: string;
|
|
47
74
|
12: string;
|
|
@@ -195,16 +222,16 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
195
222
|
spacing: {
|
|
196
223
|
0: string;
|
|
197
224
|
4: string;
|
|
198
|
-
2: string;
|
|
199
|
-
5: string;
|
|
200
225
|
1: string;
|
|
201
226
|
px: string;
|
|
227
|
+
2: string;
|
|
202
228
|
8: string;
|
|
203
229
|
0.5: string;
|
|
204
230
|
1.5: string;
|
|
205
231
|
2.5: string;
|
|
206
232
|
3: string;
|
|
207
233
|
3.5: string;
|
|
234
|
+
5: string;
|
|
208
235
|
6: string;
|
|
209
236
|
7: string;
|
|
210
237
|
9: string;
|
|
@@ -238,30 +265,30 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
238
265
|
outlineWidth: {
|
|
239
266
|
0: string;
|
|
240
267
|
4: string;
|
|
241
|
-
2: string;
|
|
242
268
|
1: string;
|
|
269
|
+
2: string;
|
|
243
270
|
8: string;
|
|
244
271
|
};
|
|
245
272
|
outlineOffset: {
|
|
246
273
|
0: string;
|
|
247
274
|
4: string;
|
|
248
|
-
2: string;
|
|
249
275
|
1: string;
|
|
276
|
+
2: string;
|
|
250
277
|
8: string;
|
|
251
278
|
};
|
|
252
279
|
ringWidth: {
|
|
253
280
|
0: string;
|
|
254
281
|
4: string;
|
|
255
282
|
inset: string;
|
|
256
|
-
2: string;
|
|
257
283
|
1: string;
|
|
284
|
+
2: string;
|
|
258
285
|
8: string;
|
|
259
286
|
};
|
|
260
287
|
ringOffsetWidth: {
|
|
261
288
|
0: string;
|
|
262
289
|
4: string;
|
|
263
|
-
2: string;
|
|
264
290
|
1: string;
|
|
291
|
+
2: string;
|
|
265
292
|
8: string;
|
|
266
293
|
};
|
|
267
294
|
shadow: {
|
|
@@ -277,8 +304,8 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
277
304
|
};
|
|
278
305
|
strokeWidth: {
|
|
279
306
|
0: string;
|
|
280
|
-
2: string;
|
|
281
307
|
1: string;
|
|
308
|
+
2: string;
|
|
282
309
|
};
|
|
283
310
|
fontFamily: {
|
|
284
311
|
sans: string;
|
|
@@ -289,9 +316,9 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
289
316
|
normal: string;
|
|
290
317
|
thin: string;
|
|
291
318
|
bold: string;
|
|
292
|
-
light: string;
|
|
293
319
|
medium: string;
|
|
294
320
|
extralight: string;
|
|
321
|
+
light: string;
|
|
295
322
|
semibold: string;
|
|
296
323
|
extrabold: string;
|
|
297
324
|
black: string;
|
|
@@ -331,20 +358,20 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
331
358
|
0: string;
|
|
332
359
|
4: string;
|
|
333
360
|
full: string;
|
|
334
|
-
2: string;
|
|
335
|
-
5: string;
|
|
336
361
|
1: string;
|
|
337
362
|
"1/2": string;
|
|
338
363
|
"1/3": string;
|
|
339
364
|
"2/3": string;
|
|
340
365
|
"1/4": string;
|
|
341
366
|
"3/4": string;
|
|
367
|
+
2: string;
|
|
342
368
|
8: string;
|
|
343
369
|
0.5: string;
|
|
344
370
|
1.5: string;
|
|
345
371
|
2.5: string;
|
|
346
372
|
3: string;
|
|
347
373
|
3.5: string;
|
|
374
|
+
5: string;
|
|
348
375
|
6: string;
|
|
349
376
|
7: string;
|
|
350
377
|
9: string;
|
|
@@ -386,13 +413,40 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
386
413
|
};
|
|
387
414
|
skew: {
|
|
388
415
|
0: string;
|
|
389
|
-
2: string;
|
|
390
416
|
1: string;
|
|
417
|
+
2: string;
|
|
391
418
|
3: string;
|
|
392
419
|
6: string;
|
|
393
420
|
12: string;
|
|
394
421
|
};
|
|
395
|
-
}, {}, {}, {},
|
|
422
|
+
}, {}, {}, {}, GetModifierFromInput<{
|
|
423
|
+
readonly colorMode: {
|
|
424
|
+
readonly options: {
|
|
425
|
+
readonly dark: {
|
|
426
|
+
readonly css: ".dark";
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
readonly responsive: {
|
|
431
|
+
readonly options: {
|
|
432
|
+
readonly sm: {
|
|
433
|
+
readonly media: "(min-width: 640px)";
|
|
434
|
+
};
|
|
435
|
+
readonly md: {
|
|
436
|
+
readonly media: "(min-width: 768px)";
|
|
437
|
+
};
|
|
438
|
+
readonly lg: {
|
|
439
|
+
readonly media: "(min-width: 1024px)";
|
|
440
|
+
};
|
|
441
|
+
readonly xl: {
|
|
442
|
+
readonly media: "(min-width: 1280px)";
|
|
443
|
+
};
|
|
444
|
+
readonly "2xl": {
|
|
445
|
+
readonly media: "(min-width: 1536px)";
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
}>, {
|
|
396
450
|
readonly color: {
|
|
397
451
|
readonly $type: "color";
|
|
398
452
|
readonly inherit: {
|
|
@@ -1,9 +1,36 @@
|
|
|
1
|
-
import { UdsConfig } from "../../config/dist/createConfig.js";
|
|
1
|
+
import { GetModifierFromInput, UdsConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../foundational-presets/dist/boldVibrant.d.ts
|
|
5
5
|
//#region src/boldVibrant.d.ts
|
|
6
|
-
declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp |
|
|
6
|
+
declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierFromInput<{
|
|
7
|
+
readonly colorMode: {
|
|
8
|
+
readonly options: {
|
|
9
|
+
readonly dark: {
|
|
10
|
+
readonly css: ".dark";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
readonly responsive: {
|
|
15
|
+
readonly options: {
|
|
16
|
+
readonly sm: {
|
|
17
|
+
readonly media: "(min-width: 640px)";
|
|
18
|
+
};
|
|
19
|
+
readonly md: {
|
|
20
|
+
readonly media: "(min-width: 768px)";
|
|
21
|
+
};
|
|
22
|
+
readonly lg: {
|
|
23
|
+
readonly media: "(min-width: 1024px)";
|
|
24
|
+
};
|
|
25
|
+
readonly xl: {
|
|
26
|
+
readonly media: "(min-width: 1280px)";
|
|
27
|
+
};
|
|
28
|
+
readonly '2xl': {
|
|
29
|
+
readonly media: "(min-width: 1536px)";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}>, {
|
|
7
34
|
opacity: {
|
|
8
35
|
0: string;
|
|
9
36
|
5: string;
|
|
@@ -36,8 +63,8 @@ declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp
|
|
|
36
63
|
};
|
|
37
64
|
rotate: {
|
|
38
65
|
0: string;
|
|
39
|
-
2: string;
|
|
40
66
|
1: string;
|
|
67
|
+
2: string;
|
|
41
68
|
3: string;
|
|
42
69
|
6: string;
|
|
43
70
|
12: string;
|
|
@@ -191,16 +218,16 @@ declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp
|
|
|
191
218
|
spacing: {
|
|
192
219
|
0: string;
|
|
193
220
|
4: string;
|
|
194
|
-
2: string;
|
|
195
|
-
5: string;
|
|
196
221
|
1: string;
|
|
197
222
|
px: string;
|
|
223
|
+
2: string;
|
|
198
224
|
8: string;
|
|
199
225
|
0.5: string;
|
|
200
226
|
1.5: string;
|
|
201
227
|
2.5: string;
|
|
202
228
|
3: string;
|
|
203
229
|
3.5: string;
|
|
230
|
+
5: string;
|
|
204
231
|
6: string;
|
|
205
232
|
7: string;
|
|
206
233
|
9: string;
|
|
@@ -234,30 +261,30 @@ declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp
|
|
|
234
261
|
outlineWidth: {
|
|
235
262
|
0: string;
|
|
236
263
|
4: string;
|
|
237
|
-
2: string;
|
|
238
264
|
1: string;
|
|
265
|
+
2: string;
|
|
239
266
|
8: string;
|
|
240
267
|
};
|
|
241
268
|
outlineOffset: {
|
|
242
269
|
0: string;
|
|
243
270
|
4: string;
|
|
244
|
-
2: string;
|
|
245
271
|
1: string;
|
|
272
|
+
2: string;
|
|
246
273
|
8: string;
|
|
247
274
|
};
|
|
248
275
|
ringWidth: {
|
|
249
276
|
0: string;
|
|
250
277
|
4: string;
|
|
251
278
|
inset: string;
|
|
252
|
-
2: string;
|
|
253
279
|
1: string;
|
|
280
|
+
2: string;
|
|
254
281
|
8: string;
|
|
255
282
|
};
|
|
256
283
|
ringOffsetWidth: {
|
|
257
284
|
0: string;
|
|
258
285
|
4: string;
|
|
259
|
-
2: string;
|
|
260
286
|
1: string;
|
|
287
|
+
2: string;
|
|
261
288
|
8: string;
|
|
262
289
|
};
|
|
263
290
|
shadow: {
|
|
@@ -273,8 +300,8 @@ declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp
|
|
|
273
300
|
};
|
|
274
301
|
strokeWidth: {
|
|
275
302
|
0: string;
|
|
276
|
-
2: string;
|
|
277
303
|
1: string;
|
|
304
|
+
2: string;
|
|
278
305
|
};
|
|
279
306
|
fontFamily: {
|
|
280
307
|
sans: string;
|
|
@@ -285,9 +312,9 @@ declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp
|
|
|
285
312
|
normal: string;
|
|
286
313
|
thin: string;
|
|
287
314
|
bold: string;
|
|
288
|
-
light: string;
|
|
289
315
|
medium: string;
|
|
290
316
|
extralight: string;
|
|
317
|
+
light: string;
|
|
291
318
|
semibold: string;
|
|
292
319
|
extrabold: string;
|
|
293
320
|
black: string;
|
|
@@ -327,20 +354,20 @@ declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp
|
|
|
327
354
|
0: string;
|
|
328
355
|
4: string;
|
|
329
356
|
full: string;
|
|
330
|
-
2: string;
|
|
331
|
-
5: string;
|
|
332
357
|
1: string;
|
|
333
358
|
"1/2": string;
|
|
334
359
|
"1/3": string;
|
|
335
360
|
"2/3": string;
|
|
336
361
|
"1/4": string;
|
|
337
362
|
"3/4": string;
|
|
363
|
+
2: string;
|
|
338
364
|
8: string;
|
|
339
365
|
0.5: string;
|
|
340
366
|
1.5: string;
|
|
341
367
|
2.5: string;
|
|
342
368
|
3: string;
|
|
343
369
|
3.5: string;
|
|
370
|
+
5: string;
|
|
344
371
|
6: string;
|
|
345
372
|
7: string;
|
|
346
373
|
9: string;
|
|
@@ -382,13 +409,40 @@ declare const boldVibrantFoundationPreset: UdsConfig<_$_uds_types0.ModifierProp
|
|
|
382
409
|
};
|
|
383
410
|
skew: {
|
|
384
411
|
0: string;
|
|
385
|
-
2: string;
|
|
386
412
|
1: string;
|
|
413
|
+
2: string;
|
|
387
414
|
3: string;
|
|
388
415
|
6: string;
|
|
389
416
|
12: string;
|
|
390
417
|
};
|
|
391
|
-
}, {}, {}, {},
|
|
418
|
+
}, {}, {}, {}, GetModifierFromInput<{
|
|
419
|
+
readonly colorMode: {
|
|
420
|
+
readonly options: {
|
|
421
|
+
readonly dark: {
|
|
422
|
+
readonly css: ".dark";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly responsive: {
|
|
427
|
+
readonly options: {
|
|
428
|
+
readonly sm: {
|
|
429
|
+
readonly media: "(min-width: 640px)";
|
|
430
|
+
};
|
|
431
|
+
readonly md: {
|
|
432
|
+
readonly media: "(min-width: 768px)";
|
|
433
|
+
};
|
|
434
|
+
readonly lg: {
|
|
435
|
+
readonly media: "(min-width: 1024px)";
|
|
436
|
+
};
|
|
437
|
+
readonly xl: {
|
|
438
|
+
readonly media: "(min-width: 1280px)";
|
|
439
|
+
};
|
|
440
|
+
readonly '2xl': {
|
|
441
|
+
readonly media: "(min-width: 1536px)";
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
}>, {
|
|
392
446
|
readonly color: {
|
|
393
447
|
readonly $type: "color";
|
|
394
448
|
readonly inherit: {
|