Skip to content

Commit f9b12cc

Browse files
Fix: update RANGE_UNITS and regenerate units.ts
1 parent 23768a8 commit f9b12cc

File tree

3 files changed

+2
-88
lines changed

3 files changed

+2
-88
lines changed

packages/css-data/bin/mdn-data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const units: Record<string, Array<string>> = {
2424
// consider % as unit
2525
percentage: ["%"],
2626
...data.units,
27+
length: ["%", "px", "em", "rem", "vw", "vh"],
2728
};
2829

2930
type Property = keyof typeof properties;

packages/css-engine/src/__generated__/types.ts

Lines changed: 0 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sdk/src/schema/animation-schema.ts

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,7 @@ const literalUnion = <T extends readonly string[]>(arr: T) =>
1212
);
1313

1414
// Range Units
15-
export const RANGE_UNITS = [
16-
"%",
17-
"px",
18-
"cm",
19-
"mm",
20-
"q",
21-
"in",
22-
"pt",
23-
"pc",
24-
"em",
25-
"rem",
26-
"ex",
27-
"rex",
28-
"cap",
29-
"rcap",
30-
"ch",
31-
"rch",
32-
"lh",
33-
"rlh",
34-
"vw",
35-
"svw",
36-
"lvw",
37-
"dvw",
38-
"vh",
39-
"svh",
40-
"lvh",
41-
"dvh",
42-
"vi",
43-
"svi",
44-
"lvi",
45-
"dvi",
46-
"vb",
47-
"svb",
48-
"lvb",
49-
"dvb",
50-
"vmin",
51-
"svmin",
52-
"lvmin",
53-
"dvmin",
54-
"vmax",
55-
"svmax",
56-
"lvmax",
57-
"dvmax",
58-
] as const;
15+
export const RANGE_UNITS = ["%", "px", "em", "rem", "vw", "vh"] as const;
5916

6017
export const rangeUnitSchema = literalUnion(RANGE_UNITS);
6118

0 commit comments

Comments
 (0)