@yahoo/uds-v5-wip 1.35.0 → 1.36.1
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 +13 -0
- package/dist/config/dist/component-resolution.d.ts +1 -1
- package/dist/config/dist/component-resolution.js +1 -1
- package/dist/config/dist/consts/defaultColors.d.ts +1 -2
- package/dist/config/dist/createConfig.d.ts +55 -87
- package/dist/config/dist/createConfig.js +82 -158
- package/dist/config/dist/defineStyleProp.d.ts +45 -0
- package/dist/config/dist/defineStyleProp.js +25 -0
- package/dist/config/dist/index.d.ts +4 -2
- package/dist/config/dist/index.js +4 -3
- package/dist/config/dist/preset-merge.js +0 -12
- package/dist/config/dist/propertyAcceptedTypes.js +81 -9
- package/dist/config/dist/propertyGroups.d.ts +1 -11
- package/dist/config/dist/propertyGroups.js +1 -19
- package/dist/config/dist/resolveStyleProp.d.ts +55 -1
- package/dist/config/dist/resolveStyleProp.js +197 -2
- package/dist/config/dist/serialize.d.ts +11 -4
- package/dist/config/dist/serialize.js +3 -3
- package/dist/config/dist/types/css-values.d.ts +60 -0
- package/dist/config/dist/types.d.ts +1 -2
- package/dist/config.d.ts +184 -184
- package/dist/core/dist/color-opacity-map.d.ts +13 -0
- package/dist/core/dist/color-opacity-map.js +33 -0
- package/dist/core/dist/configurable-prop-helpers.d.ts +32 -0
- package/dist/core/dist/configurable-prop-helpers.js +61 -0
- package/dist/core/dist/getStyles.js +3 -1
- package/dist/core/dist/index.d.ts +4 -1
- package/dist/core/dist/index.js +4 -1
- package/dist/core/dist/modifier-mappings.d.ts +13 -0
- package/dist/core/dist/modifier-mappings.js +61 -0
- package/dist/core/dist/style-prop-data.d.ts +33 -0
- package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js} +2 -93
- package/dist/core.d.ts +4 -1
- package/dist/core.js +4 -1
- package/dist/fixtures.d.ts +3 -1
- package/dist/fixtures.js +3 -1
- package/dist/foundational-presets/dist/boldVibrant.d.ts +573 -224
- package/dist/foundational-presets/dist/brutalist.d.ts +573 -224
- package/dist/foundational-presets/dist/candy.d.ts +573 -224
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +573 -224
- package/dist/foundational-presets/dist/corporate.d.ts +573 -224
- package/dist/foundational-presets/dist/darkMoody.d.ts +573 -224
- package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
- package/dist/foundational-presets/dist/defaultPreset.js +2 -312
- package/dist/foundational-presets/dist/forest.d.ts +573 -224
- package/dist/foundational-presets/dist/highContrast.d.ts +573 -224
- package/dist/foundational-presets/dist/lavender.d.ts +573 -224
- package/dist/foundational-presets/dist/luxury.d.ts +573 -224
- package/dist/foundational-presets/dist/monochrome.d.ts +573 -224
- package/dist/foundational-presets/dist/motion.d.ts +1 -2
- package/dist/foundational-presets/dist/neonCyber.d.ts +573 -224
- package/dist/foundational-presets/dist/newspaper.d.ts +573 -224
- package/dist/foundational-presets/dist/ocean.d.ts +573 -224
- package/dist/foundational-presets/dist/slate.d.ts +573 -224
- package/dist/foundational-presets/dist/style-props.js +1384 -0
- package/dist/foundational-presets/dist/sunset.d.ts +573 -224
- package/dist/foundational-presets/dist/terminal.d.ts +573 -224
- package/dist/foundational-presets/dist/warmOrganic.d.ts +573 -224
- package/dist/loader/dist/loader/style-transform.js +2 -1
- package/dist/loader/dist/loader.d.ts +1 -2
- package/dist/loader/dist/next.d.ts +1 -2
- package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
- package/dist/loader/dist/packages/core/dist/getStyles.js +3 -1
- package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
- package/dist/{core/dist/propMappings.js → loader/dist/packages/core/dist/style-prop-data.js} +2 -150
- package/dist/presets/dist/boldVibrant.d.ts +1 -2
- package/dist/presets/dist/brutalist.d.ts +1 -2
- package/dist/presets/dist/candy.d.ts +1 -2
- package/dist/presets/dist/cleanMinimalist.d.ts +1 -2
- package/dist/presets/dist/corporate.d.ts +1 -2
- package/dist/presets/dist/darkMoody.d.ts +1 -2
- package/dist/presets/dist/defaultPreset.d.ts +1 -2
- package/dist/presets/dist/forest.d.ts +1 -2
- package/dist/presets/dist/highContrast.d.ts +1 -2
- package/dist/presets/dist/lavender.d.ts +1 -2
- package/dist/presets/dist/luxury.d.ts +1 -2
- package/dist/presets/dist/monochrome.d.ts +1 -2
- package/dist/presets/dist/neonCyber.d.ts +1 -2
- package/dist/presets/dist/newspaper.d.ts +1 -2
- package/dist/presets/dist/ocean.d.ts +1 -2
- package/dist/presets/dist/slate.d.ts +1 -2
- package/dist/presets/dist/sunset.d.ts +1 -2
- package/dist/presets/dist/terminal.d.ts +1 -2
- package/dist/presets/dist/warmOrganic.d.ts +1 -2
- package/dist/remotion/dist/components/image-slide.d.ts +1 -2
- package/dist/remotion/dist/components/lower-third.d.ts +1 -2
- package/dist/remotion/dist/components/quote-card.d.ts +1 -2
- package/dist/remotion/dist/components/split-screen.d.ts +1 -2
- package/dist/remotion/dist/components/stat-card.d.ts +1 -2
- package/dist/remotion/dist/components/text-overlay.d.ts +1 -2
- package/dist/remotion/dist/components/title-card.d.ts +1 -2
- package/dist/remotion/dist/components/typing-text.d.ts +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/core/dist/propMappings.d.ts +0 -77
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//#region ../core/dist/modifier-mappings.js
|
|
2
|
+
const modifierMappings = {
|
|
3
|
+
_after: "after:",
|
|
4
|
+
_hover: "hover:",
|
|
5
|
+
_focus: "focus:",
|
|
6
|
+
_focusWithin: "focus-within:",
|
|
7
|
+
_focusVisible: "focus-visible:",
|
|
8
|
+
_active: "active:",
|
|
9
|
+
_visited: "visited:",
|
|
10
|
+
_target: "target:",
|
|
11
|
+
_first: "first:",
|
|
12
|
+
_last: "last:",
|
|
13
|
+
_only: "only:",
|
|
14
|
+
_odd: "odd:",
|
|
15
|
+
_even: "even:",
|
|
16
|
+
_firstOfType: "first-of-type:",
|
|
17
|
+
_lastOfType: "last-of-type:",
|
|
18
|
+
_onlyOfType: "only-of-type:",
|
|
19
|
+
_empty: "empty:",
|
|
20
|
+
_disabled: "disabled:",
|
|
21
|
+
_enabled: "enabled:",
|
|
22
|
+
_checked: "checked:",
|
|
23
|
+
_indeterminate: "indeterminate:",
|
|
24
|
+
_default: "default:",
|
|
25
|
+
_required: "required:",
|
|
26
|
+
_valid: "valid:",
|
|
27
|
+
_invalid: "invalid:",
|
|
28
|
+
_inRange: "in-range:",
|
|
29
|
+
_outOfRange: "out-of-range:",
|
|
30
|
+
_placeholderShown: "placeholder-shown:",
|
|
31
|
+
_autofill: "autofill:",
|
|
32
|
+
_readonly: "read-only:",
|
|
33
|
+
_file: "file:",
|
|
34
|
+
_selection: "selection:",
|
|
35
|
+
_backdrop: "backdrop:",
|
|
36
|
+
_motionReduce: "motion-reduce:",
|
|
37
|
+
_motionSafe: "motion-safe:",
|
|
38
|
+
_contrastMore: "contrast-more:",
|
|
39
|
+
_contrastLess: "contrast-less:",
|
|
40
|
+
_forcedColors: "forced-colors:",
|
|
41
|
+
_placeholder: "placeholder:",
|
|
42
|
+
_ariaBusy: "aria-busy:",
|
|
43
|
+
_ariaChecked: "aria-checked:",
|
|
44
|
+
_ariaHidden: "aria-hidden:",
|
|
45
|
+
_ariaPressed: "aria-pressed:",
|
|
46
|
+
_ariaReadonly: "aria-readonly:",
|
|
47
|
+
_ariaRequired: "aria-required:",
|
|
48
|
+
_ariaSelected: "aria-selected:",
|
|
49
|
+
_ariaCurrent: "aria-[current]:",
|
|
50
|
+
_ariaDisabled: "aria-disabled:",
|
|
51
|
+
_ariaExpanded: "aria-expanded:",
|
|
52
|
+
_dataDisabled: "data-[disabled=true]:",
|
|
53
|
+
_dataStateOpen: "data-[state=open]:",
|
|
54
|
+
_dataStateClosed: "data-[state=closed]:",
|
|
55
|
+
_startingStyle: "starting-style:",
|
|
56
|
+
_scrollbar: "*::-webkit-scrollbar:",
|
|
57
|
+
_scrollbarThumb: "*::-webkit-scrollbar-thumb:",
|
|
58
|
+
_scrollbarTrack: "*::-webkit-scrollbar-track:"
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { modifierMappings };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { StyleProp } from "@uds/types";
|
|
2
|
+
|
|
3
|
+
//#region ../core/dist/style-prop-data.d.ts
|
|
4
|
+
//#region src/style-prop-data.d.ts
|
|
5
|
+
interface PropMapping {
|
|
6
|
+
/** Class name prefix for runtime class generation. 'no-prefix' means value IS the class. */
|
|
7
|
+
classPrefix: string;
|
|
8
|
+
/** CSS property name (for @utility directive generation). Only needed for token-based props. */
|
|
9
|
+
cssProperty?: string;
|
|
10
|
+
/** CSS variable namespace for tokens. Only needed for token-based (configurable) props. */
|
|
11
|
+
defaultVarPrefix?: string;
|
|
12
|
+
/** Module augmentation interface name. Only needed for configurable props. */
|
|
13
|
+
augmentType?: string;
|
|
14
|
+
/** Known literal values for functional @utility generation. Used for props with cssProperty but no defaultVarPrefix. */
|
|
15
|
+
literalValues?: string[];
|
|
16
|
+
/** Alternate CSS property for component configs (directValues mode).
|
|
17
|
+
* Use when the utility cssProperty differs from the CSS shorthand needed for direct values.
|
|
18
|
+
* e.g. transition utility maps to 'transition-property', but direct values need 'transition'. */
|
|
19
|
+
directCssProperty?: string;
|
|
20
|
+
/** Template for generating inline style values from arbitrary bracket values.
|
|
21
|
+
* When present, arbitrary values like `[3.5px]` produce inline styles instead of Tailwind classes.
|
|
22
|
+
* `cssProperty` is the CSS property name (kebab-case), `valueTemplate` uses `%s` as value placeholder.
|
|
23
|
+
* e.g. { cssProperty: 'transform', valueTemplate: 'translateX(%s)' } */
|
|
24
|
+
arbitraryValueTemplate?: {
|
|
25
|
+
cssProperty: string;
|
|
26
|
+
valueTemplate: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/** Exclude className — it's passed through, not mapped to a utility class */
|
|
30
|
+
type MappedStyleProp = Exclude<StyleProp, 'className'>;
|
|
31
|
+
declare const propMappings: Record<MappedStyleProp, PropMapping>; //#endregion
|
|
32
|
+
//#endregion
|
|
33
|
+
export { PropMapping, propMappings };
|
package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../
|
|
1
|
+
//#region ../core/dist/style-prop-data.js
|
|
2
2
|
const propMappings = {
|
|
3
3
|
animation: {
|
|
4
4
|
classPrefix: "animation",
|
|
@@ -1253,96 +1253,5 @@ const propMappings = {
|
|
|
1253
1253
|
augmentType: "CustomTextShadow"
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
|
-
/**
|
|
1257
|
-
* Built-in modifier mappings (pseudo-classes, pseudo-elements, etc.).
|
|
1258
|
-
* Custom modifiers from defineModes() are handled dynamically in the runtime.
|
|
1259
|
-
*/
|
|
1260
|
-
const modifierMappings = {
|
|
1261
|
-
_after: "after:",
|
|
1262
|
-
_hover: "hover:",
|
|
1263
|
-
_focus: "focus:",
|
|
1264
|
-
_focusWithin: "focus-within:",
|
|
1265
|
-
_focusVisible: "focus-visible:",
|
|
1266
|
-
_active: "active:",
|
|
1267
|
-
_visited: "visited:",
|
|
1268
|
-
_target: "target:",
|
|
1269
|
-
_first: "first:",
|
|
1270
|
-
_last: "last:",
|
|
1271
|
-
_only: "only:",
|
|
1272
|
-
_odd: "odd:",
|
|
1273
|
-
_even: "even:",
|
|
1274
|
-
_firstOfType: "first-of-type:",
|
|
1275
|
-
_lastOfType: "last-of-type:",
|
|
1276
|
-
_onlyOfType: "only-of-type:",
|
|
1277
|
-
_empty: "empty:",
|
|
1278
|
-
_disabled: "disabled:",
|
|
1279
|
-
_enabled: "enabled:",
|
|
1280
|
-
_checked: "checked:",
|
|
1281
|
-
_indeterminate: "indeterminate:",
|
|
1282
|
-
_default: "default:",
|
|
1283
|
-
_required: "required:",
|
|
1284
|
-
_valid: "valid:",
|
|
1285
|
-
_invalid: "invalid:",
|
|
1286
|
-
_inRange: "in-range:",
|
|
1287
|
-
_outOfRange: "out-of-range:",
|
|
1288
|
-
_placeholderShown: "placeholder-shown:",
|
|
1289
|
-
_autofill: "autofill:",
|
|
1290
|
-
_readonly: "read-only:",
|
|
1291
|
-
_file: "file:",
|
|
1292
|
-
_selection: "selection:",
|
|
1293
|
-
_backdrop: "backdrop:",
|
|
1294
|
-
_motionReduce: "motion-reduce:",
|
|
1295
|
-
_motionSafe: "motion-safe:",
|
|
1296
|
-
_contrastMore: "contrast-more:",
|
|
1297
|
-
_contrastLess: "contrast-less:",
|
|
1298
|
-
_forcedColors: "forced-colors:",
|
|
1299
|
-
_placeholder: "placeholder:",
|
|
1300
|
-
_ariaBusy: "aria-busy:",
|
|
1301
|
-
_ariaChecked: "aria-checked:",
|
|
1302
|
-
_ariaHidden: "aria-hidden:",
|
|
1303
|
-
_ariaPressed: "aria-pressed:",
|
|
1304
|
-
_ariaReadonly: "aria-readonly:",
|
|
1305
|
-
_ariaRequired: "aria-required:",
|
|
1306
|
-
_ariaSelected: "aria-selected:",
|
|
1307
|
-
_ariaCurrent: "aria-[current]:",
|
|
1308
|
-
_ariaDisabled: "aria-disabled:",
|
|
1309
|
-
_ariaExpanded: "aria-expanded:",
|
|
1310
|
-
_dataDisabled: "data-[disabled=true]:",
|
|
1311
|
-
_dataStateOpen: "data-[state=open]:",
|
|
1312
|
-
_dataStateClosed: "data-[state=closed]:",
|
|
1313
|
-
_startingStyle: "starting-style:",
|
|
1314
|
-
_scrollbar: "*::-webkit-scrollbar:",
|
|
1315
|
-
_scrollbarThumb: "*::-webkit-scrollbar-thumb:",
|
|
1316
|
-
_scrollbarTrack: "*::-webkit-scrollbar-track:"
|
|
1317
|
-
};
|
|
1318
|
-
/**
|
|
1319
|
-
* Maps each color prop name to its corresponding opacity prop name.
|
|
1320
|
-
* Used by runtime (getStyles) and loader (style-transform) to merge
|
|
1321
|
-
* a color value with its opacity before class generation.
|
|
1322
|
-
*
|
|
1323
|
-
* e.g. `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
|
|
1324
|
-
*/
|
|
1325
|
-
const colorPropToOpacityProp = {
|
|
1326
|
-
bg: "bgOpacity",
|
|
1327
|
-
color: "colorOpacity",
|
|
1328
|
-
textDecorationColor: "textDecorationColorOpacity",
|
|
1329
|
-
borderColor: "borderColorOpacity",
|
|
1330
|
-
borderYColor: "borderYColorOpacity",
|
|
1331
|
-
borderXColor: "borderXColorOpacity",
|
|
1332
|
-
borderStartColor: "borderStartColorOpacity",
|
|
1333
|
-
borderLeftColor: "borderLeftColorOpacity",
|
|
1334
|
-
borderEndColor: "borderEndColorOpacity",
|
|
1335
|
-
borderRightColor: "borderRightColorOpacity",
|
|
1336
|
-
borderTopColor: "borderTopColorOpacity",
|
|
1337
|
-
borderBottomColor: "borderBottomColorOpacity",
|
|
1338
|
-
divideColor: "divideColorOpacity",
|
|
1339
|
-
outlineColor: "outlineColorOpacity",
|
|
1340
|
-
ringColor: "ringColorOpacity",
|
|
1341
|
-
ringOffsetColor: "ringOffsetColorOpacity",
|
|
1342
|
-
fillColor: "fillColorOpacity",
|
|
1343
|
-
strokeColor: "strokeColorOpacity",
|
|
1344
|
-
shadowColor: "shadowColorOpacity",
|
|
1345
|
-
caretColor: "caretColorOpacity"
|
|
1346
|
-
};
|
|
1347
1256
|
//#endregion
|
|
1348
|
-
export {
|
|
1257
|
+
export { propMappings };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { colorPropToOpacityProp } from "./core/dist/color-opacity-map.js";
|
|
1
2
|
import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./core/dist/compositeStyles.js";
|
|
3
|
+
import { PropMapping, propMappings } from "./core/dist/style-prop-data.js";
|
|
4
|
+
import { ConfigurablePropertyEntry, CssVariablePrefixEntry, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
|
|
2
5
|
import { createComponent } from "./core/dist/createComponent.js";
|
|
3
6
|
import { ComponentExample, createComponentExample } from "./core/dist/createComponentExample.js";
|
|
4
7
|
import { createProvider } from "./core/dist/createProvider.js";
|
|
5
8
|
import { stylePropsTwMap } from "./core/dist/generated/stylePropsTwMap.js";
|
|
6
9
|
import { createComponentStyler } from "./core/dist/getComponentStyles.js";
|
|
7
10
|
import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./core/dist/getStyles.js";
|
|
8
|
-
import {
|
|
11
|
+
import { ModifierEntry, modifierMappings } from "./core/dist/modifier-mappings.js";
|
|
9
12
|
import { resolveMotionState } from "./core/dist/resolveMotionState.js";
|
|
10
13
|
import { TransformedMotionProps, transformPreset } from "./core/dist/transformPreset.js";
|
|
11
14
|
import { withDefaultStyleProps } from "./core/dist/withDefaultStyleProps.js";
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { colorPropToOpacityProp } from "./core/dist/color-opacity-map.js";
|
|
1
2
|
import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./core/dist/compositeStyles.js";
|
|
3
|
+
import { propMappings } from "./core/dist/style-prop-data.js";
|
|
4
|
+
import { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
|
|
2
5
|
import { stylePropsTwMap } from "./core/dist/generated/stylePropsTwMap.js";
|
|
3
|
-
import {
|
|
6
|
+
import { modifierMappings } from "./core/dist/modifier-mappings.js";
|
|
4
7
|
import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./core/dist/getStyles.js";
|
|
5
8
|
import { createComponentStyler } from "./core/dist/getComponentStyles.js";
|
|
6
9
|
import { createComponent } from "./core/dist/createComponent.js";
|
package/dist/fixtures.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropMapping, propMappings } from "./core/dist/style-prop-data.js";
|
|
2
|
+
import { ConfigurablePropertyEntry, CssVariablePrefixEntry, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
|
|
3
|
+
import { ModifierEntry, modifierMappings } from "./core/dist/modifier-mappings.js";
|
|
2
4
|
export { type ConfigurablePropertyEntry, type CssVariablePrefixEntry, type ModifierEntry, type PropMapping, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings };
|
package/dist/fixtures.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { propMappings } from "./core/dist/style-prop-data.js";
|
|
2
|
+
import { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
|
|
3
|
+
import { modifierMappings } from "./core/dist/modifier-mappings.js";
|
|
2
4
|
import "./core/dist/index.js";
|
|
3
5
|
export { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings };
|