@animus-ui/properties 0.1.0-next.38
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/csstype.d.ts +2 -0
- package/dist/csstype.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +91 -0
- package/dist/shorthands.d.ts +12 -0
- package/dist/shorthands.d.ts.map +1 -0
- package/dist/unitless.d.ts +10 -0
- package/dist/unitless.d.ts.map +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csstype.d.ts","sourceRoot":"","sources":["../src/csstype.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//#region src/shorthands.ts
|
|
2
|
+
/**
|
|
3
|
+
* CSS shorthand properties registered in the prop config, used for
|
|
4
|
+
* declaration ordering (shorthands before longhands).
|
|
5
|
+
*
|
|
6
|
+
* Entries use **camelCase** (prop config convention) because consumers
|
|
7
|
+
* check against JS prop config keys, not CSS declaration names.
|
|
8
|
+
* See unitless.ts for kebab-case convention rationale.
|
|
9
|
+
*
|
|
10
|
+
* Scoped to shorthands registered in the prop system — not all CSS shorthands.
|
|
11
|
+
*/
|
|
12
|
+
const SHORTHAND_PROPERTIES = [
|
|
13
|
+
"border",
|
|
14
|
+
"borderTop",
|
|
15
|
+
"borderBottom",
|
|
16
|
+
"borderLeft",
|
|
17
|
+
"borderRight",
|
|
18
|
+
"borderWidth",
|
|
19
|
+
"borderStyle",
|
|
20
|
+
"borderColor",
|
|
21
|
+
"background",
|
|
22
|
+
"flex",
|
|
23
|
+
"margin",
|
|
24
|
+
"padding",
|
|
25
|
+
"transition",
|
|
26
|
+
"gap",
|
|
27
|
+
"grid",
|
|
28
|
+
"gridArea",
|
|
29
|
+
"gridColumn",
|
|
30
|
+
"gridRow",
|
|
31
|
+
"gridTemplate",
|
|
32
|
+
"overflow"
|
|
33
|
+
];
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/unitless.ts
|
|
36
|
+
/**
|
|
37
|
+
* CSS properties that accept unitless numeric values.
|
|
38
|
+
* Bare numerics on properties NOT in this set receive automatic `px` suffix.
|
|
39
|
+
*
|
|
40
|
+
* Entries use **kebab-case** (CSS declaration convention) because consumers
|
|
41
|
+
* check against CSS property names in post-processed output.
|
|
42
|
+
* See shorthands.ts for camelCase convention rationale.
|
|
43
|
+
*/
|
|
44
|
+
const UNITLESS_PROPERTIES = new Set([
|
|
45
|
+
"animation-iteration-count",
|
|
46
|
+
"aspect-ratio",
|
|
47
|
+
"border-image-outset",
|
|
48
|
+
"border-image-slice",
|
|
49
|
+
"border-image-width",
|
|
50
|
+
"box-flex",
|
|
51
|
+
"box-flex-group",
|
|
52
|
+
"box-ordinal-group",
|
|
53
|
+
"column-count",
|
|
54
|
+
"columns",
|
|
55
|
+
"flex",
|
|
56
|
+
"flex-grow",
|
|
57
|
+
"flex-negative",
|
|
58
|
+
"flex-order",
|
|
59
|
+
"flex-positive",
|
|
60
|
+
"flex-shrink",
|
|
61
|
+
"fill-opacity",
|
|
62
|
+
"flood-opacity",
|
|
63
|
+
"font-weight",
|
|
64
|
+
"grid-area",
|
|
65
|
+
"grid-column",
|
|
66
|
+
"grid-column-end",
|
|
67
|
+
"grid-column-span",
|
|
68
|
+
"grid-column-start",
|
|
69
|
+
"grid-row",
|
|
70
|
+
"grid-row-end",
|
|
71
|
+
"grid-row-span",
|
|
72
|
+
"grid-row-start",
|
|
73
|
+
"line-clamp",
|
|
74
|
+
"line-height",
|
|
75
|
+
"opacity",
|
|
76
|
+
"order",
|
|
77
|
+
"orphans",
|
|
78
|
+
"scale",
|
|
79
|
+
"stop-opacity",
|
|
80
|
+
"stroke-dasharray",
|
|
81
|
+
"stroke-dashoffset",
|
|
82
|
+
"stroke-miterlimit",
|
|
83
|
+
"stroke-opacity",
|
|
84
|
+
"stroke-width",
|
|
85
|
+
"tab-size",
|
|
86
|
+
"widows",
|
|
87
|
+
"z-index",
|
|
88
|
+
"zoom"
|
|
89
|
+
]);
|
|
90
|
+
//#endregion
|
|
91
|
+
export { SHORTHAND_PROPERTIES, UNITLESS_PROPERTIES };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS shorthand properties registered in the prop config, used for
|
|
3
|
+
* declaration ordering (shorthands before longhands).
|
|
4
|
+
*
|
|
5
|
+
* Entries use **camelCase** (prop config convention) because consumers
|
|
6
|
+
* check against JS prop config keys, not CSS declaration names.
|
|
7
|
+
* See unitless.ts for kebab-case convention rationale.
|
|
8
|
+
*
|
|
9
|
+
* Scoped to shorthands registered in the prop system — not all CSS shorthands.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SHORTHAND_PROPERTIES: readonly ["border", "borderTop", "borderBottom", "borderLeft", "borderRight", "borderWidth", "borderStyle", "borderColor", "background", "flex", "margin", "padding", "transition", "gap", "grid", "gridArea", "gridColumn", "gridRow", "gridTemplate", "overflow"];
|
|
12
|
+
//# sourceMappingURL=shorthands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shorthands.d.ts","sourceRoot":"","sources":["../src/shorthands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,qQAqBvB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS properties that accept unitless numeric values.
|
|
3
|
+
* Bare numerics on properties NOT in this set receive automatic `px` suffix.
|
|
4
|
+
*
|
|
5
|
+
* Entries use **kebab-case** (CSS declaration convention) because consumers
|
|
6
|
+
* check against CSS property names in post-processed output.
|
|
7
|
+
* See shorthands.ts for camelCase convention rationale.
|
|
8
|
+
*/
|
|
9
|
+
export declare const UNITLESS_PROPERTIES: Set<string>;
|
|
10
|
+
//# sourceMappingURL=unitless.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unitless.d.ts","sourceRoot":"","sources":["../src/unitless.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,aA6C9B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@animus-ui/properties",
|
|
3
|
+
"version": "0.1.0-next.38",
|
|
4
|
+
"description": "CSS property classification data — unitless set, shorthand list, type re-exports",
|
|
5
|
+
"author": "codecaaron <airrobb@gmail.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/codecaaron/animus"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "bun run build:ts",
|
|
29
|
+
"build:ts": "tsdown && tsc -p tsconfig.build.json",
|
|
30
|
+
"compile": "tsc --noEmit"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"csstype": "3.1.3"
|
|
34
|
+
}
|
|
35
|
+
}
|