@yahoo/uds-v5-wip 1.56.0 → 1.58.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/_virtual/_rolldown/runtime.js +7 -0
- package/dist/config/dist/createConfig.d.ts +1 -22
- package/dist/config/dist/createConfig.js +3 -87
- package/dist/config/dist/preset-merge.js +0 -19
- package/dist/config/dist/serialize.js +0 -1
- package/dist/core/dist/compositeStyles.d.ts +1 -2
- package/dist/core/dist/configurable-prop-helpers.d.ts +1 -2
- package/dist/core/dist/createComponent.d.ts +1 -2
- package/dist/core/dist/createComponentExample.d.ts +1 -2
- package/dist/core/dist/createProvider.d.ts +1 -2
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +1 -2
- package/dist/core/dist/getComponentStyles.d.ts +1 -2
- package/dist/core/dist/getStyles.d.ts +1 -2
- package/dist/core/dist/modifier-mappings.d.ts +1 -2
- package/dist/core/dist/resolveMotionState.d.ts +1 -2
- package/dist/core/dist/style-prop-data.d.ts +1 -2
- package/dist/core/dist/transformPreset.d.ts +1 -2
- package/dist/core/dist/withDefaultStyleProps.d.ts +1 -2
- package/dist/loader/dist/loader/create-component-lowering.js +1 -1
- package/dist/loader/dist/loader/data-attr-transform.js +1 -1
- package/dist/loader/dist/loader/lower-new-api-primitive.js +28 -0
- package/dist/loader/dist/loader/style-transform.js +4 -4
- package/dist/loader/dist/loader.d.ts +1 -2
- package/dist/loader/dist/loader.js +3 -3
- package/dist/loader/dist/next.d.ts +1 -2
- package/dist/loader/dist/next.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/presets/dist/defaultPreset.js +1 -18
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -9
- package/dist/loader/dist/_virtual/_rolldown/runtime.js +0 -6
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -203
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -25
- package/dist/loader/dist/node_modules/react/cjs/react.development.js +0 -762
- package/dist/loader/dist/node_modules/react/cjs/react.production.js +0 -351
- package/dist/loader/dist/node_modules/react/index.js +0 -10
- package/dist/loader/dist/node_modules/react/jsx-runtime.js +0 -10
- package/dist/loader/dist/packages/core/dist/color-opacity-map.js +0 -33
- package/dist/loader/dist/packages/core/dist/compositeStyles.js +0 -43
- package/dist/loader/dist/packages/core/dist/createComponent.js +0 -6
- package/dist/loader/dist/packages/core/dist/createProvider.js +0 -7
- package/dist/loader/dist/packages/core/dist/generated/stylePropsTwMap.js +0 -570
- package/dist/loader/dist/packages/core/dist/getComponentStyles.js +0 -2
- package/dist/loader/dist/packages/core/dist/getStyles.js +0 -60
- package/dist/loader/dist/packages/core/dist/index.js +0 -6
- package/dist/loader/dist/packages/core/dist/modifier-mappings.js +0 -61
- package/dist/loader/dist/packages/core/dist/style-prop-data.js +0 -1257
- package/dist/loader/dist/packages/core/dist/withDefaultStyleProps.js +0 -1
- package/dist/remotion/dist/components/image-slide.config.js +0 -43
- package/dist/remotion/dist/components/image-slide.d.ts +0 -20
- package/dist/remotion/dist/components/image-slide.js +0 -24
- package/dist/remotion/dist/components/index.js +0 -16
- package/dist/remotion/dist/components/lower-third.config.js +0 -54
- package/dist/remotion/dist/components/lower-third.d.ts +0 -21
- package/dist/remotion/dist/components/lower-third.js +0 -26
- package/dist/remotion/dist/components/quote-card.config.js +0 -85
- package/dist/remotion/dist/components/quote-card.d.ts +0 -21
- package/dist/remotion/dist/components/quote-card.js +0 -27
- package/dist/remotion/dist/components/split-screen.config.js +0 -90
- package/dist/remotion/dist/components/split-screen.d.ts +0 -25
- package/dist/remotion/dist/components/split-screen.js +0 -35
- package/dist/remotion/dist/components/stat-card.config.js +0 -55
- package/dist/remotion/dist/components/stat-card.d.ts +0 -19
- package/dist/remotion/dist/components/stat-card.js +0 -23
- package/dist/remotion/dist/components/text-overlay.config.js +0 -46
- package/dist/remotion/dist/components/text-overlay.d.ts +0 -17
- package/dist/remotion/dist/components/text-overlay.js +0 -16
- package/dist/remotion/dist/components/title-card.config.js +0 -56
- package/dist/remotion/dist/components/title-card.d.ts +0 -19
- package/dist/remotion/dist/components/title-card.js +0 -23
- package/dist/remotion/dist/components/typing-text.config.js +0 -57
- package/dist/remotion/dist/components/typing-text.d.ts +0 -21
- package/dist/remotion/dist/components/typing-text.js +0 -23
- package/dist/remotion/dist/index.d.ts +0 -8
- package/dist/remotion/dist/index.js +0 -8
- package/dist/remotion/dist/transitions/fade.js +0 -19
- package/dist/remotion/dist/transitions/index.js +0 -7
- package/dist/remotion/dist/transitions/slide-down.js +0 -21
- package/dist/remotion/dist/transitions/slide-left.js +0 -21
- package/dist/remotion/dist/transitions/slide-right.js +0 -21
- package/dist/remotion/dist/transitions/slide-up.js +0 -21
- package/dist/remotion/dist/transitions/wipe.js +0 -21
- package/dist/remotion/dist/transitions/zoom.js +0 -19
- package/dist/remotion.d.ts +0 -9
- package/dist/remotion.js +0 -10
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
3
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
4
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
5
|
+
});
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __require };
|
|
@@ -3,7 +3,7 @@ import { BoundComponent } from "./defineComponent.js";
|
|
|
3
3
|
import { AnyStyleProp } from "./defineStyleProp.js";
|
|
4
4
|
import { TokenType, VarsConfig } from "./types.js";
|
|
5
5
|
import { ResolvedStyleProp } from "./resolveStyleProp.js";
|
|
6
|
-
import { BaseModifierProp, ComponentsConfig, CompositeStylesConfig, ConfigurableProp, ModifierProp, MotionPreset
|
|
6
|
+
import { BaseModifierProp, ComponentsConfig, CompositeStylesConfig, ConfigurableProp, ModifierProp, MotionPreset } from "@uds/types";
|
|
7
7
|
|
|
8
8
|
//#region ../config/dist/createConfig.d.ts
|
|
9
9
|
//#region src/createConfig.d.ts
|
|
@@ -216,7 +216,6 @@ interface UdsConfigData {
|
|
|
216
216
|
globalStyles: GlobalStylesDef;
|
|
217
217
|
preflight: boolean;
|
|
218
218
|
prefix: string;
|
|
219
|
-
remotion?: RemotionConfig;
|
|
220
219
|
buildOptions?: BuildOptions;
|
|
221
220
|
examples?: Record<string, ExampleDef>;
|
|
222
221
|
designPrinciples?: string[];
|
|
@@ -267,8 +266,6 @@ interface ComponentConfig<TComponents extends ComponentsConfig<string> = Compone
|
|
|
267
266
|
requiredTokens: string[];
|
|
268
267
|
components: TComponents;
|
|
269
268
|
motion?: TMotion;
|
|
270
|
-
/** Remotion metadata — carried through compose() automatically */
|
|
271
|
-
remotion?: RemotionConfig;
|
|
272
269
|
}
|
|
273
270
|
type SingleComponentDef<TMotionAlias extends string = string> = ComponentsConfig<TMotionAlias>[string];
|
|
274
271
|
type EmptyMotionPresetsDef = Record<never, never>;
|
|
@@ -279,12 +276,6 @@ type DefineComponentInput<TTokens, TMotion, TComponent extends SingleComponentDe
|
|
|
279
276
|
components: Record<string, any>;
|
|
280
277
|
}) => TComponent);
|
|
281
278
|
type DefineComponentMotionInput<TTokens, TMotion extends MotionPresetsDef = MotionPresetsDef> = TMotion | ((tokens: TTokens) => TMotion);
|
|
282
|
-
/** Input shape for defineRemotionComponent — component def or factory function */
|
|
283
|
-
type RemotionComponentInput<TTokens, TMotion> = RemotionComponentDef | ((ctx: {
|
|
284
|
-
tokens: TTokens;
|
|
285
|
-
motion: TMotion;
|
|
286
|
-
components: Record<string, any>;
|
|
287
|
-
}) => RemotionComponentDef);
|
|
288
279
|
/** Helper type: builder result includes both the UdsConfig interface and any extensions */
|
|
289
280
|
type ConfigResult<TModifier extends ModifierNameShape, TTokens, TMotion, TExt extends Record<string, any> = {}, TCompositeStyles = EmptyCompositeStyles, TModeModifiers extends ModifierNameShape = never, TVars extends VarsConfig = EmptyVars> = UdsConfig<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars> & TExt;
|
|
290
281
|
interface UdsConfig<TModifier extends ModifierNameShape = ModifierProp, TTokens = EmptyTokens, TMotion = EmptyMotion, TExt extends Record<string, any> = {}, TCompositeStyles = EmptyCompositeStyles, TModeModifiers extends ModifierNameShape = never, TVars extends VarsConfig = EmptyVars> {
|
|
@@ -363,18 +354,6 @@ interface UdsConfig<TModifier extends ModifierNameShape = ModifierProp, TTokens
|
|
|
363
354
|
defineComponent<const TName extends string, const TComponent extends SingleComponentDef<MotionAliasValue<TMotion> | string>, const TPresetMotion extends MotionPresetsDef = EmptyMotionPresetsDef>(name: TName, component: DefineComponentInput<TTokens, TMotion, TComponent>, motion?: DefineComponentMotionInput<TTokens, TPresetMotion>): ComponentConfig<SingleComponentDefinitionRecord<TName, TComponent>, TPresetMotion>;
|
|
364
355
|
from(data: Partial<UdsConfigData>): ConfigResult<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars>;
|
|
365
356
|
extend<const NewExt extends Record<string, any>>(ext: NewExt): ConfigResult<TModifier, TTokens, TMotion, TExt & NewExt, TCompositeStyles, TModeModifiers, TVars>;
|
|
366
|
-
defineRemotionComponents(params: RemotionConfig | ((ctx: {
|
|
367
|
-
tokens: TTokens;
|
|
368
|
-
motion: TMotion;
|
|
369
|
-
components: Record<string, any>;
|
|
370
|
-
}) => RemotionConfig)): ConfigResult<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars>;
|
|
371
|
-
defineRemotionComponent<const TName extends string, const TComponent extends SingleComponentDef<MotionAliasValue<TMotion> | string>, const TPresetMotion extends MotionPresetsDef = EmptyMotionPresetsDef>(name: TName, def: RemotionComponentInput<TTokens, TMotion>, motion?: DefineComponentMotionInput<TTokens, TPresetMotion>): ComponentConfig<SingleComponentDefinitionRecord<TName, TComponent>, TPresetMotion>;
|
|
372
|
-
defineRemotionTransition(name: string, def: RemotionTransitionDef | ((ctx: {
|
|
373
|
-
tokens: TTokens;
|
|
374
|
-
}) => RemotionTransitionDef)): ComponentConfig;
|
|
375
|
-
defineRemotionTransitions(params: Record<string, RemotionTransitionDef> | ((ctx: {
|
|
376
|
-
tokens: TTokens;
|
|
377
|
-
}) => Record<string, RemotionTransitionDef>)): ConfigResult<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars>;
|
|
378
357
|
defineVars<const TVarsNew extends VarsConfig<[TModeModifiers] extends [never] ? `_${string}` : TModeModifiers>>(vars: TVarsNew): ConfigResult<TModifier, MergeTokens<TTokens, VarsToTokens<TVars & TVarsNew>>, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars & TVarsNew>;
|
|
379
358
|
}
|
|
380
359
|
type AnyUdsConfig = UdsConfig<ModifierNameShape, any, any, any, any, any, any>;
|
|
@@ -4,9 +4,9 @@ import "../../utils/dist/index.js";
|
|
|
4
4
|
import { getConfigurablePropMapping } from "../../core/dist/configurable-prop-helpers.js";
|
|
5
5
|
import "../../core/dist/index.js";
|
|
6
6
|
import { buildMotionReference, resolveComponentMotionAliases, validateComponentVariants } from "./component-resolution.js";
|
|
7
|
+
import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
|
|
7
8
|
import { resolveTokenType, sniffTokenTypeFromValue } from "./resolveTokenTypes.js";
|
|
8
9
|
import { resolveStyleProp } from "./resolveStyleProp.js";
|
|
9
|
-
import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
|
|
10
10
|
import { setRegisteredStyleProps } from "./runtime-registry.js";
|
|
11
11
|
//#region ../config/dist/createConfig.js
|
|
12
12
|
/** biome-ignore-all lint/suspicious/noExplicitAny: necessary for dynamic builder to work correctly */
|
|
@@ -235,7 +235,6 @@ function resolveConfig(config) {
|
|
|
235
235
|
globalStyles: config.globalStyles ?? {},
|
|
236
236
|
preflight: config.preflight ?? true,
|
|
237
237
|
prefix: config.prefix ?? "uds",
|
|
238
|
-
remotion: config.remotion,
|
|
239
238
|
buildOptions: config.buildOptions,
|
|
240
239
|
examples: config.examples,
|
|
241
240
|
designPrinciples: config.designPrinciples,
|
|
@@ -264,22 +263,6 @@ function resolveConfig(config) {
|
|
|
264
263
|
}
|
|
265
264
|
return configData;
|
|
266
265
|
}
|
|
267
|
-
function mergeRemotionConfig(existing, incoming) {
|
|
268
|
-
return {
|
|
269
|
-
components: {
|
|
270
|
-
...existing?.components ?? {},
|
|
271
|
-
...incoming.components
|
|
272
|
-
},
|
|
273
|
-
transitions: {
|
|
274
|
-
...existing?.transitions ?? {},
|
|
275
|
-
...incoming.transitions ?? {}
|
|
276
|
-
},
|
|
277
|
-
effects: {
|
|
278
|
-
...existing?.effects ?? {},
|
|
279
|
-
...incoming.effects ?? {}
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
266
|
function isComponentDefinition(input) {
|
|
284
267
|
return typeof input === "object" && input !== null && "requiredTokens" in input && "components" in input;
|
|
285
268
|
}
|
|
@@ -293,8 +276,7 @@ function resolvePresetData(input) {
|
|
|
293
276
|
components: input.components,
|
|
294
277
|
globalStyles: {},
|
|
295
278
|
preflight: true,
|
|
296
|
-
prefix: "uds"
|
|
297
|
-
remotion: input.remotion
|
|
279
|
+
prefix: "uds"
|
|
298
280
|
};
|
|
299
281
|
if ("defineVars" in input) return resolveConfig(input);
|
|
300
282
|
return {
|
|
@@ -307,7 +289,6 @@ function resolvePresetData(input) {
|
|
|
307
289
|
globalStyles: input.globalStyles ?? {},
|
|
308
290
|
preflight: input.preflight ?? true,
|
|
309
291
|
prefix: input.prefix ?? "uds",
|
|
310
|
-
remotion: input.remotion,
|
|
311
292
|
examples: input.examples,
|
|
312
293
|
designPrinciples: input.designPrinciples,
|
|
313
294
|
vars: input.vars,
|
|
@@ -590,70 +571,6 @@ function createConfigBuilder(data, extensions) {
|
|
|
590
571
|
...ext
|
|
591
572
|
});
|
|
592
573
|
},
|
|
593
|
-
defineRemotionComponents(params) {
|
|
594
|
-
const tokenReference = buildTokenReference(data.atomic, data.prefix);
|
|
595
|
-
const motionReference = buildMotionReference(data.motion);
|
|
596
|
-
const componentsAccessor = buildComponentsAccessor(data.components);
|
|
597
|
-
const remotionConfig = typeof params === "function" ? params({
|
|
598
|
-
tokens: tokenReference,
|
|
599
|
-
motion: motionReference,
|
|
600
|
-
components: componentsAccessor
|
|
601
|
-
}) : params;
|
|
602
|
-
for (const [name, def] of Object.entries(remotionConfig.components)) validateComponentVariants(resolveComponentMotionAliases({ [name]: def.config }, data.motion));
|
|
603
|
-
return next({ remotion: mergeRemotionConfig(data.remotion, remotionConfig) });
|
|
604
|
-
},
|
|
605
|
-
defineRemotionComponent(name, def, motion) {
|
|
606
|
-
const tokenReference = buildTokenReference(data.atomic, data.prefix);
|
|
607
|
-
const resolvedMotion = typeof motion === "function" ? motion(tokenReference) : motion;
|
|
608
|
-
const motionReference = buildMotionReference({
|
|
609
|
-
...data.motion,
|
|
610
|
-
...resolvedMotion ?? {}
|
|
611
|
-
});
|
|
612
|
-
const componentsAccessor = buildComponentsAccessor(data.components);
|
|
613
|
-
const resolved = typeof def === "function" ? def({
|
|
614
|
-
tokens: tokenReference,
|
|
615
|
-
motion: motionReference,
|
|
616
|
-
components: componentsAccessor
|
|
617
|
-
}) : def;
|
|
618
|
-
const resolvedComponents = resolveComponentMotionAliases({ [name]: resolved.config }, {
|
|
619
|
-
...data.motion,
|
|
620
|
-
...resolvedMotion ?? {}
|
|
621
|
-
});
|
|
622
|
-
validateComponentVariants(resolvedComponents);
|
|
623
|
-
return {
|
|
624
|
-
name,
|
|
625
|
-
requiredTokens: collectRequiredTokens(data, resolvedComponents, resolvedMotion),
|
|
626
|
-
components: {},
|
|
627
|
-
motion: resolvedMotion,
|
|
628
|
-
remotion: {
|
|
629
|
-
components: { [name]: resolved },
|
|
630
|
-
transitions: {},
|
|
631
|
-
effects: {}
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
},
|
|
635
|
-
defineRemotionTransition(name, def) {
|
|
636
|
-
const tokenReference = buildTokenReference(data.atomic, data.prefix);
|
|
637
|
-
const resolved = typeof def === "function" ? def({ tokens: tokenReference }) : def;
|
|
638
|
-
return {
|
|
639
|
-
name,
|
|
640
|
-
requiredTokens: [],
|
|
641
|
-
components: {},
|
|
642
|
-
remotion: {
|
|
643
|
-
components: {},
|
|
644
|
-
transitions: { [name]: resolved },
|
|
645
|
-
effects: {}
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
},
|
|
649
|
-
defineRemotionTransitions(params) {
|
|
650
|
-
const tokenReference = buildTokenReference(data.atomic, data.prefix);
|
|
651
|
-
const resolved = typeof params === "function" ? params({ tokens: tokenReference }) : params;
|
|
652
|
-
return next({ remotion: mergeRemotionConfig(data.remotion, {
|
|
653
|
-
components: {},
|
|
654
|
-
transitions: resolved
|
|
655
|
-
}) });
|
|
656
|
-
},
|
|
657
574
|
defineVars(vars) {
|
|
658
575
|
const merged = { ...data.vars };
|
|
659
576
|
for (const [namespace, group] of Object.entries(vars)) merged[namespace] = {
|
|
@@ -702,8 +619,7 @@ const uds = createConfigBuilder({
|
|
|
702
619
|
components: {},
|
|
703
620
|
globalStyles: {},
|
|
704
621
|
preflight: true,
|
|
705
|
-
prefix: "uds"
|
|
706
|
-
remotion: void 0
|
|
622
|
+
prefix: "uds"
|
|
707
623
|
});
|
|
708
624
|
//#endregion
|
|
709
625
|
export { buildCompositeStylesReference, buildTokenReference, convertModesInputToGroups, createConfigBuilder, darker, interpolate, lighter, rem, resolveConfig, uds };
|
|
@@ -123,24 +123,6 @@ function mergeRecordByKey(base, incoming, mode) {
|
|
|
123
123
|
...incoming
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function mergeRemotionConfig(base, incoming) {
|
|
127
|
-
if (!incoming) return base;
|
|
128
|
-
if (!base) return incoming;
|
|
129
|
-
return {
|
|
130
|
-
components: {
|
|
131
|
-
...base.components,
|
|
132
|
-
...incoming.components
|
|
133
|
-
},
|
|
134
|
-
transitions: {
|
|
135
|
-
...base.transitions ?? {},
|
|
136
|
-
...incoming.transitions ?? {}
|
|
137
|
-
},
|
|
138
|
-
effects: {
|
|
139
|
-
...base.effects ?? {},
|
|
140
|
-
...incoming.effects ?? {}
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
126
|
function applyPresetToData(base, preset, strategy) {
|
|
145
127
|
const s = {
|
|
146
128
|
...defaultComponentDefinitionMergeStrategy,
|
|
@@ -165,7 +147,6 @@ function applyPresetToData(base, preset, strategy) {
|
|
|
165
147
|
motion: mergeRecordByKey(base.motion, preset.motion, s.motion),
|
|
166
148
|
components: mergeRecordByKey(base.components, preset.components, s.components),
|
|
167
149
|
globalStyles: mergeRecordByKey(base.globalStyles, preset.globalStyles, s.globalStyles),
|
|
168
|
-
remotion: mergeRemotionConfig(base.remotion, preset.remotion),
|
|
169
150
|
examples: mergedExamples,
|
|
170
151
|
designPrinciples: mergedPrinciples,
|
|
171
152
|
vars: mergedVars,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CompositeStylesConfig } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/compositeStyles.d.ts
|
|
4
|
-
//#region src/compositeStyles.d.ts
|
|
5
4
|
/** Set the composite-styles config (called by loader at build time) */
|
|
6
5
|
declare function setCompositeStylesConfig(config: CompositeStylesConfig): void;
|
|
7
6
|
/** Get the current composite-styles config */
|
|
@@ -17,6 +16,6 @@ declare function getCompositeStylesConfig(): CompositeStylesConfig;
|
|
|
17
16
|
declare function expandCompositeStyles(props: Record<string, unknown>, config?: CompositeStylesConfig): {
|
|
18
17
|
expanded: Record<string, unknown>;
|
|
19
18
|
markerClasses: string[];
|
|
20
|
-
};
|
|
19
|
+
};
|
|
21
20
|
//#endregion
|
|
22
21
|
export { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig };
|
|
@@ -2,7 +2,6 @@ import { PropMapping } from "./style-prop-data.js";
|
|
|
2
2
|
import { ConfigurableProp } from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../core/dist/configurable-prop-helpers.d.ts
|
|
5
|
-
//#region src/configurable-prop-helpers.d.ts
|
|
6
5
|
/** Look up a {@link PropMapping} by ConfigurableProp name. */
|
|
7
6
|
declare function getConfigurablePropMapping(prop: ConfigurableProp): PropMapping | undefined;
|
|
8
7
|
interface ConfigurablePropertyEntry {
|
|
@@ -27,6 +26,6 @@ interface CssVariablePrefixEntry {
|
|
|
27
26
|
* Only includes props that have both `cssProperty` and `defaultVarPrefix`.
|
|
28
27
|
* Deduplicates by `defaultVarPrefix` so each namespace appears once.
|
|
29
28
|
*/
|
|
30
|
-
declare function getCssVariablePrefixes(): CssVariablePrefixEntry[];
|
|
29
|
+
declare function getCssVariablePrefixes(): CssVariablePrefixEntry[];
|
|
31
30
|
//#endregion
|
|
32
31
|
export { ConfigurablePropertyEntry, CssVariablePrefixEntry, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CreateComponentConfig, CreateComponentProps, CreateComponentRenderFn, CreateComponentSlotTagConfig, CreateComponentTypeInput } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/createComponent.d.ts
|
|
4
|
-
//#region src/createComponent.d.ts
|
|
5
4
|
type PrimitiveTag = keyof React.JSX.IntrinsicElements;
|
|
6
5
|
type SpecConfig<TSpec> = TSpec extends {
|
|
7
6
|
config: infer TConfig extends CreateComponentTypeInput;
|
|
@@ -52,6 +51,6 @@ declare function createComponent<TSpecOrProps = {}>(tag: PrimitiveTag): React.FC
|
|
|
52
51
|
props: infer TOwnProps;
|
|
53
52
|
} ? CreateComponentProps<TConfig, TOwnProps, PrimitiveTag> : PrimitiveOwnProps<TSpecOrProps>>;
|
|
54
53
|
declare function createComponent<TSpec>(renderFn: CreateComponentRenderFn<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>): React.FC<CreateComponentProps<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>>;
|
|
55
|
-
declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>;
|
|
54
|
+
declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>;
|
|
56
55
|
//#endregion
|
|
57
56
|
export { createComponent };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, ComponentType } from "react";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/createComponentExample.d.ts
|
|
4
|
-
//#region src/createComponentExample.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Extracts variant fixtures from a Component's props type.
|
|
7
6
|
* If Button has `variant?: 'brand' | 'outline'` and `size?: 'sm' | 'md'`,
|
|
@@ -37,6 +36,6 @@ type ExamplesResult<TComponent extends ComponentType<any>> = {
|
|
|
37
36
|
* }));
|
|
38
37
|
* ```
|
|
39
38
|
*/
|
|
40
|
-
declare function createComponentExample<TComponent extends ComponentType<any>, T extends Record<string, ExampleFn<TComponent>>>(Component: TComponent, examplesFn: (fixtures: VariantFixtures<TComponent>) => ExamplesResult<TComponent>): ComponentExample<T>;
|
|
39
|
+
declare function createComponentExample<TComponent extends ComponentType<any>, T extends Record<string, ExampleFn<TComponent>>>(Component: TComponent, examplesFn: (fixtures: VariantFixtures<TComponent>) => ExamplesResult<TComponent>): ComponentExample<T>;
|
|
41
40
|
//#endregion
|
|
42
41
|
export { ComponentExample, createComponentExample };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../core/dist/createProvider.d.ts
|
|
2
|
-
//#region src/createProvider.d.ts
|
|
3
2
|
type ProviderRenderFn<TContext, TProps = Record<never, never>> = (props: {
|
|
4
3
|
children: React.ReactNode;
|
|
5
4
|
} & TProps) => {
|
|
@@ -8,6 +7,6 @@ type ProviderRenderFn<TContext, TProps = Record<never, never>> = (props: {
|
|
|
8
7
|
};
|
|
9
8
|
declare function createProvider<TContext, TProps = Record<never, never>>(name: string, renderFn: ProviderRenderFn<TContext, TProps>): [React.FC<{
|
|
10
9
|
children: React.ReactNode;
|
|
11
|
-
} & TProps>, () => TContext];
|
|
10
|
+
} & TProps>, () => TContext];
|
|
12
11
|
//#endregion
|
|
13
12
|
export { createProvider };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../core/dist/generated/stylePropsTwMap.d.ts
|
|
2
|
-
//#region src/generated/stylePropsTwMap.d.ts
|
|
3
2
|
declare const stylePropsTwMap: {
|
|
4
3
|
readonly "border-boolean": {
|
|
5
4
|
readonly border: "boolean";
|
|
@@ -1696,6 +1695,6 @@ declare const stylePropsTwMap: {
|
|
|
1696
1695
|
readonly "hyphens-manual": {
|
|
1697
1696
|
readonly hyphens: "manual";
|
|
1698
1697
|
};
|
|
1699
|
-
};
|
|
1698
|
+
};
|
|
1700
1699
|
//#endregion
|
|
1701
1700
|
export { stylePropsTwMap };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentRegistry, ComponentSlotsOf, ComponentVariantsOf } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/getComponentStyles.d.ts
|
|
4
|
-
//#region src/getComponentStyles.d.ts
|
|
5
4
|
type ResolveSlots<Name extends string> = Name extends keyof ComponentRegistry ? ComponentSlotsOf<Name> : string;
|
|
6
5
|
type ResolveVariants<Name extends string> = Name extends keyof ComponentRegistry ? ComponentVariantsOf<Name> : Record<string, string>;
|
|
7
6
|
interface UdsRuntimeMeta {
|
|
@@ -45,6 +44,6 @@ interface ComponentStyler<Name extends string> {
|
|
|
45
44
|
* @param slots - Array of slot names
|
|
46
45
|
* @param element - Optional HTML element tag for element-specific prop forwarding
|
|
47
46
|
*/
|
|
48
|
-
declare function createComponentStyler<Name extends string>(componentName: Name, slots: readonly string[], element?: string, variants?: readonly string[]): ComponentStyler<Name>;
|
|
47
|
+
declare function createComponentStyler<Name extends string>(componentName: Name, slots: readonly string[], element?: string, variants?: readonly string[]): ComponentStyler<Name>;
|
|
49
48
|
//#endregion
|
|
50
49
|
export { createComponentStyler };
|
|
@@ -2,7 +2,6 @@ import { ClassValue } from "clsx";
|
|
|
2
2
|
import { ModifierProp, ModifierProps, StyleAndModifierProps, StyleProps } from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../core/dist/getStyles.d.ts
|
|
5
|
-
//#region src/getStyles.d.ts
|
|
6
5
|
/** Convert kebab-case CSS property to camelCase for React inline styles.
|
|
7
6
|
* CSS custom properties (--*) are kept as-is since React supports them verbatim. */
|
|
8
7
|
declare function toCamelCase(str: string): string;
|
|
@@ -38,6 +37,6 @@ interface GetStylesParams extends StyleProps, ModifierProps {
|
|
|
38
37
|
* so they can be included in the CSS safelist.
|
|
39
38
|
*/
|
|
40
39
|
declare function getStyles(props: GetStylesParams): string;
|
|
41
|
-
declare function getVariantClassName(componentName: string, variant: string | undefined): string;
|
|
40
|
+
declare function getVariantClassName(componentName: string, variant: string | undefined): string;
|
|
42
41
|
//#endregion
|
|
43
42
|
export { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ModifierProp } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/modifier-mappings.d.ts
|
|
4
|
-
//#region src/modifier-mappings.d.ts
|
|
5
4
|
declare const modifierMappings: Record<ModifierProp, string>;
|
|
6
5
|
interface ModifierEntry {
|
|
7
6
|
prop: string;
|
|
8
7
|
cssSelector: string;
|
|
9
8
|
category: string;
|
|
10
9
|
description: string;
|
|
11
|
-
}
|
|
10
|
+
}
|
|
12
11
|
//#endregion
|
|
13
12
|
export { ModifierEntry, modifierMappings };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../core/dist/resolveMotionState.d.ts
|
|
2
|
-
|
|
3
|
-
declare function resolveMotionState(stateKeyframe: Record<string, unknown>, index: number): Record<string, number>; //#endregion
|
|
2
|
+
declare function resolveMotionState(stateKeyframe: Record<string, unknown>, index: number): Record<string, number>;
|
|
4
3
|
//#endregion
|
|
5
4
|
export { resolveMotionState };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProp } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/style-prop-data.d.ts
|
|
4
|
-
//#region src/style-prop-data.d.ts
|
|
5
4
|
interface PropMapping {
|
|
6
5
|
/** Class name prefix for runtime class generation. 'no-prefix' means value IS the class. */
|
|
7
6
|
classPrefix: string;
|
|
@@ -28,6 +27,6 @@ interface PropMapping {
|
|
|
28
27
|
}
|
|
29
28
|
/** Exclude className — it's passed through, not mapped to a utility class */
|
|
30
29
|
type MappedStyleProp = Exclude<StyleProp, 'className'>;
|
|
31
|
-
declare const propMappings: Record<MappedStyleProp, PropMapping>;
|
|
30
|
+
declare const propMappings: Record<MappedStyleProp, PropMapping>;
|
|
32
31
|
//#endregion
|
|
33
32
|
export { PropMapping, propMappings };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MotionPreset } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/transformPreset.d.ts
|
|
4
|
-
//#region src/transformPreset.d.ts
|
|
5
4
|
interface TransformedMotionProps {
|
|
6
5
|
initial?: Record<string, unknown>;
|
|
7
6
|
animate?: Record<string, unknown>;
|
|
@@ -13,6 +12,6 @@ interface TransformedMotionProps {
|
|
|
13
12
|
/**
|
|
14
13
|
* Convert a JS-runtime MotionPreset to a motion/react-compatible props object.
|
|
15
14
|
*/
|
|
16
|
-
declare function transformPreset(preset: MotionPreset): TransformedMotionProps;
|
|
15
|
+
declare function transformPreset(preset: MotionPreset): TransformedMotionProps;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { TransformedMotionProps, transformPreset };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BorderRadius, GridSpan, GridStartEnd, GridTemplate, StyleAndModifierProps } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/withDefaultStyleProps.d.ts
|
|
4
|
-
//#region src/withDefaultStyleProps.d.ts
|
|
5
4
|
interface StackDefaultsInput extends StyleAndModifierProps {
|
|
6
5
|
gap?: StyleAndModifierProps['gap'];
|
|
7
6
|
}
|
|
@@ -39,6 +38,6 @@ declare const withDefaultStyleProps: {
|
|
|
39
38
|
shape?: BorderRadius;
|
|
40
39
|
}) => StyleAndModifierProps;
|
|
41
40
|
Svg: (props: SvgDefaultsInput) => StyleAndModifierProps;
|
|
42
|
-
};
|
|
41
|
+
};
|
|
43
42
|
//#endregion
|
|
44
43
|
export { withDefaultStyleProps };
|
|
@@ -2,8 +2,8 @@ import { isCompiledJsxCallee } from "./babel-utils.js";
|
|
|
2
2
|
import { hasAnyOwnKeys } from "./create-component-data.js";
|
|
3
3
|
import { applySlotMotionToCompiledJsx, applySlotMotionToElement, wrapCompiledConditionalWithAnimatePresence, wrapParentConditionalWithAnimatePresence } from "./motion-transform.js";
|
|
4
4
|
import { findSlotPropsParamName } from "./data-attr-transform.js";
|
|
5
|
-
import * as t from "@babel/types";
|
|
6
5
|
import _traverse from "@babel/traverse";
|
|
6
|
+
import * as t from "@babel/types";
|
|
7
7
|
//#region ../loader/dist/loader/create-component-lowering.js
|
|
8
8
|
const traverse = _traverse.default ?? _traverse;
|
|
9
9
|
/** Reserved createComponent keys (never treated as own props) */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { applySlotMotionToCompiledJsx, getCustomSlotMotion } from "./motion-transform.js";
|
|
2
1
|
import { buildSourceRef, buildUdsId } from "./internal-meta.js";
|
|
2
|
+
import { applySlotMotionToCompiledJsx, getCustomSlotMotion } from "./motion-transform.js";
|
|
3
3
|
import * as t from "@babel/types";
|
|
4
4
|
//#region ../loader/dist/loader/data-attr-transform.js
|
|
5
5
|
/**
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
//#region ../loader/dist/loader/lower-new-api-primitive.js
|
|
2
2
|
/**
|
|
3
|
+
* Build-time lowering of new-API primitive-form JSX call sites.
|
|
4
|
+
*
|
|
5
|
+
* Given a JSX element whose tag name resolves to an entry in
|
|
6
|
+
* `manifest.components[name]` with non-empty `propBindings` (built by
|
|
7
|
+
* codegen — see `packages/codegen/src/loader/extractLoweringMetadata.ts`),
|
|
8
|
+
* this helper mutates the AST to bake every statically-known prop into a
|
|
9
|
+
* `className` string and replace the JSX tag with the underlying HTML
|
|
10
|
+
* element. The result skips the runtime `bindRender` lookup, registry
|
|
11
|
+
* walk, and per-render className concatenation entirely.
|
|
12
|
+
*
|
|
13
|
+
* // Before:
|
|
14
|
+
* <Box bg="brand" id="x">hi</Box>
|
|
15
|
+
*
|
|
16
|
+
* // After (when `bg` is a registered style prop with classPrefix
|
|
17
|
+
* // 'bg' and a static value, and `id` isn't a known binding):
|
|
18
|
+
* <div className="bg-brand" id="x">hi</div>
|
|
19
|
+
*
|
|
20
|
+
* The lowering bails (returns `false` without mutating the AST) when:
|
|
21
|
+
* - any spread attribute (`{...rest}`) — could carry unknown props,
|
|
22
|
+
* - any bound prop has a dynamic value — can't statically compute the
|
|
23
|
+
* class,
|
|
24
|
+
* - `as=` is dynamic — can't statically pick the tag,
|
|
25
|
+
* - the JSX attribute name isn't a simple identifier.
|
|
26
|
+
*
|
|
27
|
+
* Callers fall through to runtime when the helper returns `false`; the
|
|
28
|
+
* runtime path is correct for every case, just slower.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
3
31
|
* Build the className a binding emits for a given value. Mirrors the
|
|
4
32
|
* codegen convention in `packages/codegen/src/css/prepareCss.ts`:
|
|
5
33
|
*
|
|
@@ -2,10 +2,10 @@ import { applyComponentStyleDefaults } from "../../../utils/dist/component-style
|
|
|
2
2
|
import { kebabCase } from "../../../utils/dist/string-utils/kebabCase.js";
|
|
3
3
|
import { componentVariantClass } from "../../../utils/dist/string-utils/componentClassName.js";
|
|
4
4
|
import "../../../utils/dist/index.js";
|
|
5
|
-
import { expandCompositeStyles } from "
|
|
6
|
-
import { propMappings } from "
|
|
7
|
-
import { toCamelCase } from "
|
|
8
|
-
import "
|
|
5
|
+
import { expandCompositeStyles } from "../../../core/dist/compositeStyles.js";
|
|
6
|
+
import { propMappings } from "../../../core/dist/style-prop-data.js";
|
|
7
|
+
import { toCamelCase } from "../../../core/dist/getStyles.js";
|
|
8
|
+
import "../../../core/dist/index.js";
|
|
9
9
|
import { buildDynamicClassExpression, parseHandlerString } from "./dynamic-style-codegen.js";
|
|
10
10
|
import * as t from "@babel/types";
|
|
11
11
|
//#region ../loader/dist/loader/style-transform.js
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { LoaderDefinitionFunction } from "webpack";
|
|
2
2
|
|
|
3
3
|
//#region ../loader/dist/loader.d.ts
|
|
4
|
-
//#region src/loader.d.ts
|
|
5
4
|
declare const transformLoader: LoaderDefinitionFunction;
|
|
6
|
-
declare const normal: LoaderDefinitionFunction<{}, {}>;
|
|
5
|
+
declare const normal: LoaderDefinitionFunction<{}, {}>;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { normal, transformLoader };
|
|
@@ -8,11 +8,11 @@ import { findClassesParamName, findSlotFromClassNameAttr, findSlotFromPropsSprea
|
|
|
8
8
|
import { buildInlineSimpleLoweredCreateComponentRenderFn, buildInlineSimplePrimitiveCreateComponentRenderFn, buildLoweredCreateComponentConfigExpression, extractOwnPropKeys, inferCreateComponentNameFromAssignment, isCreateComponentRenderFnNode, remapOnPressToOnClickInJsxAttributes } from "./loader/create-component-lowering.js";
|
|
9
9
|
import { lowerNewApiPrimitiveJsx } from "./loader/lower-new-api-primitive.js";
|
|
10
10
|
import { createStyleTransformRuntime } from "./loader/style-transform.js";
|
|
11
|
-
import * as t from "@babel/types";
|
|
12
11
|
import path from "node:path";
|
|
13
|
-
import _traverse from "@babel/traverse";
|
|
14
12
|
import _generate from "@babel/generator";
|
|
15
13
|
import { parse } from "@babel/parser";
|
|
14
|
+
import _traverse from "@babel/traverse";
|
|
15
|
+
import * as t from "@babel/types";
|
|
16
16
|
//#region ../loader/dist/loader.js
|
|
17
17
|
const traverse = _traverse.default ?? _traverse;
|
|
18
18
|
const generate = _generate.default ?? _generate;
|
|
@@ -367,4 +367,4 @@ const transformLoader = function(source) {
|
|
|
367
367
|
};
|
|
368
368
|
const normal = transformLoader;
|
|
369
369
|
//#endregion
|
|
370
|
-
export {
|
|
370
|
+
export { transformLoader as default, normal };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NextConfig } from "next";
|
|
2
2
|
|
|
3
3
|
//#region ../loader/dist/next.d.ts
|
|
4
|
-
//#region src/next.d.ts
|
|
5
4
|
interface WithUdsOptions {
|
|
6
5
|
/** Output directory for generated files (default: '.uds') */
|
|
7
6
|
outputDir?: string;
|
|
@@ -12,6 +11,6 @@ interface WithUdsOptions {
|
|
|
12
11
|
type NextConfigFn = (phase: string, ctx: {
|
|
13
12
|
defaultConfig: NextConfig;
|
|
14
13
|
}) => NextConfig | Promise<NextConfig>;
|
|
15
|
-
declare function withUds(nextConfigOrFn: NextConfig | NextConfigFn, options?: WithUdsOptions): NextConfig | NextConfigFn;
|
|
14
|
+
declare function withUds(nextConfigOrFn: NextConfig | NextConfigFn, options?: WithUdsOptions): NextConfig | NextConfigFn;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { WithUdsOptions, withUds };
|
package/dist/loader/dist/next.js
CHANGED
package/dist/loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { normal
|
|
1
|
+
import transformLoader, { normal } from "./loader/dist/loader.js";
|
|
2
2
|
export { transformLoader as default, normal };
|
|
@@ -42,25 +42,8 @@ import { tabsConfig } from "../../components/dist/tabs.config.js";
|
|
|
42
42
|
import { textareaConfig } from "../../components/dist/textarea.config.js";
|
|
43
43
|
import { toastConfig } from "../../components/dist/toast.config.js";
|
|
44
44
|
import { tooltipConfig } from "../../components/dist/tooltip.config.js";
|
|
45
|
-
import { imageSlideConfig } from "../../remotion/dist/components/image-slide.config.js";
|
|
46
|
-
import { lowerThirdConfig } from "../../remotion/dist/components/lower-third.config.js";
|
|
47
|
-
import { quoteCardConfig } from "../../remotion/dist/components/quote-card.config.js";
|
|
48
|
-
import { splitScreenConfig } from "../../remotion/dist/components/split-screen.config.js";
|
|
49
|
-
import { statCardConfig } from "../../remotion/dist/components/stat-card.config.js";
|
|
50
|
-
import { textOverlayConfig } from "../../remotion/dist/components/text-overlay.config.js";
|
|
51
|
-
import { titleCardConfig } from "../../remotion/dist/components/title-card.config.js";
|
|
52
|
-
import { typingTextConfig } from "../../remotion/dist/components/typing-text.config.js";
|
|
53
|
-
import "../../remotion/dist/components/index.js";
|
|
54
|
-
import { fadeTransitionConfig } from "../../remotion/dist/transitions/fade.js";
|
|
55
|
-
import { slideDownTransitionConfig } from "../../remotion/dist/transitions/slide-down.js";
|
|
56
|
-
import { slideLeftTransitionConfig } from "../../remotion/dist/transitions/slide-left.js";
|
|
57
|
-
import { slideRightTransitionConfig } from "../../remotion/dist/transitions/slide-right.js";
|
|
58
|
-
import { slideUpTransitionConfig } from "../../remotion/dist/transitions/slide-up.js";
|
|
59
|
-
import { wipeTransitionConfig } from "../../remotion/dist/transitions/wipe.js";
|
|
60
|
-
import { zoomTransitionConfig } from "../../remotion/dist/transitions/zoom.js";
|
|
61
|
-
import "../../remotion/dist/transitions/index.js";
|
|
62
45
|
//#region ../presets/dist/defaultPreset.js
|
|
63
|
-
const defaultPreset = defaultFoundationPreset.compose(anchorConfig).compose(buttonConfig).compose(selectConfig).compose(textConfig).compose(textareaConfig).compose(inputConfig).compose(accordionConfig).compose(alertConfig).compose(avatarConfig).compose(avatarGroupConfig).compose(badgeConfig).compose(cardConfig).compose(emptyStateConfig).compose(itemConfig).compose(modalConfig).compose(dropdownConfig).compose(navHeaderConfig).compose(progressConfig).compose(sheetConfig).compose(skeletonConfig).compose(switchConfig).compose(tabsConfig).compose(toastConfig).compose(tooltipConfig).compose(breadcrumbConfig).compose(sliderConfig).compose(spinnerConfig).compose(sidebarConfig).compose(collapsibleConfig).compose(controlColorConfig).compose(controlStepperConfig).compose(controlKnobConfig).compose(controlToggleConfig).compose(controlSliderConfig).compose(controlSelectConfig).compose(controlFolderConfig).compose(controlGroupConfig).compose(controlSpringConfig).compose(controlCurveConfig).compose(controlPanelConfig).compose(presetBarConfig).compose(commandConfig).compose(commandDialogConfig).compose(commandInputConfig).compose(commandListConfig).compose(commandEmptyConfig).compose(commandGroupConfig).compose(commandItemConfig).compose(commandShortcutConfig).compose(commandSeparatorConfig).
|
|
46
|
+
const defaultPreset = defaultFoundationPreset.compose(anchorConfig).compose(buttonConfig).compose(selectConfig).compose(textConfig).compose(textareaConfig).compose(inputConfig).compose(accordionConfig).compose(alertConfig).compose(avatarConfig).compose(avatarGroupConfig).compose(badgeConfig).compose(cardConfig).compose(emptyStateConfig).compose(itemConfig).compose(modalConfig).compose(dropdownConfig).compose(navHeaderConfig).compose(progressConfig).compose(sheetConfig).compose(skeletonConfig).compose(switchConfig).compose(tabsConfig).compose(toastConfig).compose(tooltipConfig).compose(breadcrumbConfig).compose(sliderConfig).compose(spinnerConfig).compose(sidebarConfig).compose(collapsibleConfig).compose(controlColorConfig).compose(controlStepperConfig).compose(controlKnobConfig).compose(controlToggleConfig).compose(controlSliderConfig).compose(controlSelectConfig).compose(controlFolderConfig).compose(controlGroupConfig).compose(controlSpringConfig).compose(controlCurveConfig).compose(controlPanelConfig).compose(presetBarConfig).compose(commandConfig).compose(commandDialogConfig).compose(commandInputConfig).compose(commandListConfig).compose(commandEmptyConfig).compose(commandGroupConfig).compose(commandItemConfig).compose(commandShortcutConfig).compose(commandSeparatorConfig).defineGlobalStyles((_tokens) => ({
|
|
64
47
|
"*": { scrollbarWidth: "none" },
|
|
65
48
|
"::-webkit-scrollbar": { display: "none" }
|
|
66
49
|
}));
|