@yahoo/uds-v5-wip 1.61.0 → 1.62.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/AssetGroup.d.ts +75 -0
- package/dist/config/dist/AssetGroup.js +114 -0
- package/dist/config/dist/Component.d.ts +309 -0
- package/dist/config/dist/Component.js +897 -0
- package/dist/config/dist/ComponentGroup.d.ts +21 -0
- package/dist/config/dist/ComponentGroup.js +46 -0
- package/dist/config/dist/CompositeStyle.d.ts +28 -0
- package/dist/config/dist/CompositeStyle.js +52 -0
- package/dist/config/dist/Config.d.ts +422 -0
- package/dist/config/dist/Config.js +1426 -0
- package/dist/config/dist/Mode.d.ts +42 -0
- package/dist/config/dist/Mode.js +81 -0
- package/dist/config/dist/Modifier.d.ts +52 -0
- package/dist/config/dist/Modifier.js +97 -0
- package/dist/config/dist/MotionDef.d.ts +50 -0
- package/dist/config/dist/MotionDef.js +97 -0
- package/dist/config/dist/Props.d.ts +235 -126
- package/dist/config/dist/Provider.d.ts +21 -0
- package/dist/config/dist/Provider.js +14 -0
- package/dist/config/dist/StyleProp.d.ts +113 -0
- package/dist/config/dist/StyleProp.js +197 -0
- package/dist/config/dist/Token.d.ts +56 -0
- package/dist/config/dist/Token.js +112 -0
- package/dist/config/dist/TokenGroup.d.ts +33 -0
- package/dist/config/dist/TokenGroup.js +68 -0
- package/dist/config/dist/asset-kind.d.ts +56 -0
- package/dist/config/dist/asset-kind.js +29 -0
- package/dist/config/dist/brands.d.ts +31 -0
- package/dist/config/dist/brands.js +20 -0
- package/dist/config/dist/captureCallerPath.d.ts +49 -0
- package/dist/config/dist/captureCallerPath.js +95 -0
- package/dist/config/dist/colorExpressions.d.ts +132 -0
- package/dist/config/dist/colorExpressions.js +148 -0
- package/dist/config/dist/defineAssetGroup.d.ts +158 -0
- package/dist/config/dist/defineAssetGroup.js +263 -0
- package/dist/config/dist/defineProvider.d.ts +30 -0
- package/dist/config/dist/defineProvider.js +60 -0
- package/dist/config/dist/element-marker.d.ts +55 -0
- package/dist/config/dist/element-marker.js +113 -0
- package/dist/config/dist/entity-utils.d.ts +27 -0
- package/dist/config/dist/entity-utils.js +105 -0
- package/dist/config/dist/factories.d.ts +707 -0
- package/dist/config/dist/factories.js +393 -0
- package/dist/config/dist/foreign-component-name.js +42 -0
- package/dist/config/dist/index.d.ts +30 -21
- package/dist/config/dist/index.js +26 -14
- package/dist/config/dist/interpolate.d.ts +21 -0
- package/dist/config/dist/interpolate.js +10 -0
- package/dist/config/dist/markers.d.ts +218 -0
- package/dist/config/dist/markers.js +67 -0
- package/dist/config/dist/refs.d.ts +143 -69
- package/dist/config/dist/refs.js +95 -113
- package/dist/config/dist/token-override-rows.d.ts +67 -0
- package/dist/config/dist/token-override-rows.js +223 -0
- package/dist/config/dist/tokenValueType.js +138 -0
- package/dist/config/dist/types/css-properties.d.ts +132 -122
- package/dist/config/dist/types/css-property-keywords.d.ts +157 -0
- package/dist/config/dist/types/css-property-keywords.js +616 -0
- package/dist/config/dist/types/css-values.d.ts +18 -16
- package/dist/config/dist/types.d.ts +688 -66
- package/dist/config/dist/units.d.ts +15 -0
- package/dist/config/dist/units.js +16 -0
- package/dist/config.d.ts +31 -22
- package/dist/config.js +28 -16
- package/dist/loader/dist/loader/artifacts.js +26 -9
- package/dist/loader/dist/loader.d.ts +11 -23
- package/dist/loader/dist/loader.js +54 -99
- package/dist/loader/dist/next.js +3 -3
- package/dist/loader/dist/transform-runner.js +1 -8
- package/dist/loader/dist/unplugin.d.ts +2 -2
- package/dist/loader/dist/unplugin.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dist/index.js +1 -0
- package/dist/utils/dist/motion-utils/resolveMotionState.d.ts +35 -0
- package/dist/utils/dist/motion-utils/resolveMotionState.js +33 -0
- package/dist/utils/dist/string-utils/componentClassName.d.ts +41 -8
- package/dist/utils/dist/string-utils/componentClassName.js +48 -11
- package/dist/utils.d.ts +3 -2
- package/dist/utils.js +3 -2
- package/package.json +3 -3
- package/dist/codegen/dist/loader/getLoaderArtifacts.js +0 -2
- package/dist/config/dist/bindRender.d.ts +0 -16
- package/dist/config/dist/bindRender.js +0 -310
- package/dist/config/dist/className.d.ts +0 -54
- package/dist/config/dist/className.js +0 -77
- package/dist/config/dist/component-config.d.ts +0 -862
- package/dist/config/dist/component-config.js +0 -163
- package/dist/config/dist/component-refs.d.ts +0 -121
- package/dist/config/dist/createConfig.d.ts +0 -456
- package/dist/config/dist/createConfig.js +0 -503
- package/dist/config/dist/createStyler.d.ts +0 -35
- package/dist/config/dist/createStyler.js +0 -93
- package/dist/config/dist/defineComponent.d.ts +0 -317
- package/dist/config/dist/defineComponent.js +0 -264
- package/dist/config/dist/defineCompositeStyle.d.ts +0 -93
- package/dist/config/dist/defineCompositeStyle.js +0 -18
- package/dist/config/dist/defineMotionConfig.d.ts +0 -152
- package/dist/config/dist/definePreview.d.ts +0 -45
- package/dist/config/dist/definePreview.js +0 -35
- package/dist/config/dist/defineStyleProp.d.ts +0 -289
- package/dist/config/dist/defineStyleProp.js +0 -61
- package/dist/config/dist/merge-utils.js +0 -51
- package/dist/config/dist/propertyAcceptedTypes.d.ts +0 -19
- package/dist/config/dist/propertyAcceptedTypes.js +0 -220
- package/dist/config/dist/resolveCompoundProps.d.ts +0 -65
- package/dist/config/dist/resolveCompoundProps.js +0 -120
- package/dist/config/dist/resolveStyleProp.d.ts +0 -157
- package/dist/config/dist/resolveStyleProp.js +0 -260
- package/dist/config/dist/runtime-registry.js +0 -37
- package/dist/config/dist/serialize.d.ts +0 -47
- package/dist/config/dist/serialize.js +0 -111
- package/dist/config/dist/sniffTokenType.d.ts +0 -7
- package/dist/config/dist/sniffTokenType.js +0 -67
- package/dist/config/dist/style-prop-runtime.d.ts +0 -75
- package/dist/config/dist/style-prop-runtime.js +0 -390
- package/dist/loader/dist/loader/internal-meta.js +0 -59
- package/dist/loader/dist/loader/lower-new-api-primitive.js +0 -252
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CssValue, CssVarRef } from "./css-values.js";
|
|
2
|
+
import { CSS_PROPERTY_KEYWORDS } from "./css-property-keywords.js";
|
|
2
3
|
|
|
3
4
|
//#region ../config/dist/types/css-properties.d.ts
|
|
4
5
|
//#region src/types/css-properties.d.ts
|
|
@@ -11,7 +12,6 @@ type TimeOrVar = CssValue['time'] | CssVarRef;
|
|
|
11
12
|
type AngleOrVar = CssValue['angle'] | CssVarRef;
|
|
12
13
|
type IntrinsicSize = 'auto' | 'min-content' | 'max-content' | 'fit-content';
|
|
13
14
|
type GlobalKeyword = 'inherit' | 'initial' | 'unset' | 'revert';
|
|
14
|
-
type BorderStyleKeyword = 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
|
15
15
|
type CssPropertyValues = {
|
|
16
16
|
gap: LengthPercentageOrVar;
|
|
17
17
|
'column-gap': LengthPercentageOrVar;
|
|
@@ -25,22 +25,26 @@ type CssPropertyValues = {
|
|
|
25
25
|
'padding-inline': LengthPercentageOrVar;
|
|
26
26
|
'padding-inline-start': LengthPercentageOrVar;
|
|
27
27
|
'padding-inline-end': LengthPercentageOrVar;
|
|
28
|
-
margin: LengthPercentageOrVar | '
|
|
29
|
-
'margin-top': LengthPercentageOrVar | '
|
|
30
|
-
'margin-right': LengthPercentageOrVar | '
|
|
31
|
-
'margin-bottom': LengthPercentageOrVar | '
|
|
32
|
-
'margin-left': LengthPercentageOrVar | '
|
|
33
|
-
'margin-block': LengthPercentageOrVar | '
|
|
34
|
-
'margin-inline': LengthPercentageOrVar | '
|
|
35
|
-
'margin-inline-start': LengthPercentageOrVar | '
|
|
36
|
-
'margin-inline-end': LengthPercentageOrVar | '
|
|
37
|
-
top: LengthPercentageOrVar | '
|
|
38
|
-
right: LengthPercentageOrVar | '
|
|
39
|
-
bottom: LengthPercentageOrVar | '
|
|
40
|
-
left: LengthPercentageOrVar | '
|
|
41
|
-
inset: LengthPercentageOrVar | '
|
|
42
|
-
'inset-block': LengthPercentageOrVar | '
|
|
43
|
-
'inset-inline': LengthPercentageOrVar | '
|
|
28
|
+
margin: LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin'][number];
|
|
29
|
+
'margin-top': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-top'][number];
|
|
30
|
+
'margin-right': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-right'][number];
|
|
31
|
+
'margin-bottom': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-bottom'][number];
|
|
32
|
+
'margin-left': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-left'][number];
|
|
33
|
+
'margin-block': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-block'][number];
|
|
34
|
+
'margin-inline': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-inline'][number];
|
|
35
|
+
'margin-inline-start': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-inline-start'][number];
|
|
36
|
+
'margin-inline-end': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['margin-inline-end'][number];
|
|
37
|
+
top: LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['top'][number];
|
|
38
|
+
right: LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['right'][number];
|
|
39
|
+
bottom: LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['bottom'][number];
|
|
40
|
+
left: LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['left'][number];
|
|
41
|
+
inset: LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['inset'][number];
|
|
42
|
+
'inset-block': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['inset-block'][number];
|
|
43
|
+
'inset-inline': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['inset-inline'][number];
|
|
44
|
+
'inset-inline-start': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['inset-inline-start'][number];
|
|
45
|
+
'inset-inline-end': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['inset-inline-end'][number];
|
|
46
|
+
'inset-block-start': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['inset-block-start'][number];
|
|
47
|
+
'inset-block-end': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['inset-block-end'][number];
|
|
44
48
|
'scroll-margin': LengthPercentageOrVar;
|
|
45
49
|
'scroll-margin-top': LengthPercentageOrVar;
|
|
46
50
|
'scroll-margin-bottom': LengthPercentageOrVar;
|
|
@@ -58,19 +62,19 @@ type CssPropertyValues = {
|
|
|
58
62
|
width: LengthPercentageOrVar | IntrinsicSize;
|
|
59
63
|
height: LengthPercentageOrVar | IntrinsicSize;
|
|
60
64
|
'min-width': LengthPercentageOrVar | IntrinsicSize;
|
|
61
|
-
'max-width': LengthPercentageOrVar | IntrinsicSize | '
|
|
65
|
+
'max-width': LengthPercentageOrVar | IntrinsicSize | (typeof CSS_PROPERTY_KEYWORDS)['max-width'][number];
|
|
62
66
|
'min-height': LengthPercentageOrVar | IntrinsicSize;
|
|
63
|
-
'max-height': LengthPercentageOrVar | IntrinsicSize | '
|
|
64
|
-
'border-width': LengthOrVar |
|
|
65
|
-
'border-top-width': LengthOrVar |
|
|
66
|
-
'border-right-width': LengthOrVar |
|
|
67
|
-
'border-bottom-width': LengthOrVar |
|
|
68
|
-
'border-left-width': LengthOrVar |
|
|
69
|
-
'border-block-width': LengthOrVar |
|
|
70
|
-
'border-inline-width': LengthOrVar |
|
|
71
|
-
'border-inline-start-width': LengthOrVar |
|
|
72
|
-
'border-inline-end-width': LengthOrVar |
|
|
73
|
-
'outline-width': LengthOrVar |
|
|
67
|
+
'max-height': LengthPercentageOrVar | IntrinsicSize | (typeof CSS_PROPERTY_KEYWORDS)['max-height'][number];
|
|
68
|
+
'border-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-width'][number];
|
|
69
|
+
'border-top-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-top-width'][number];
|
|
70
|
+
'border-right-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-right-width'][number];
|
|
71
|
+
'border-bottom-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-bottom-width'][number];
|
|
72
|
+
'border-left-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-left-width'][number];
|
|
73
|
+
'border-block-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-block-width'][number];
|
|
74
|
+
'border-inline-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-inline-width'][number];
|
|
75
|
+
'border-inline-start-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-inline-start-width'][number];
|
|
76
|
+
'border-inline-end-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['border-inline-end-width'][number];
|
|
77
|
+
'outline-width': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['outline-width'][number];
|
|
74
78
|
'outline-offset': LengthOrVar;
|
|
75
79
|
'border-spacing': LengthOrVar;
|
|
76
80
|
'border-radius': LengthPercentageOrVar;
|
|
@@ -82,13 +86,18 @@ type CssPropertyValues = {
|
|
|
82
86
|
'border-start-end-radius': LengthPercentageOrVar;
|
|
83
87
|
'border-end-start-radius': LengthPercentageOrVar;
|
|
84
88
|
'border-end-end-radius': LengthPercentageOrVar;
|
|
85
|
-
'border-style':
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
89
|
+
'border-style': (typeof CSS_PROPERTY_KEYWORDS)['border-style'][number] | CssVarRef;
|
|
90
|
+
'border-top-style': (typeof CSS_PROPERTY_KEYWORDS)['border-top-style'][number] | CssVarRef;
|
|
91
|
+
'border-bottom-style': (typeof CSS_PROPERTY_KEYWORDS)['border-bottom-style'][number] | CssVarRef;
|
|
92
|
+
'border-inline-start-style': (typeof CSS_PROPERTY_KEYWORDS)['border-inline-start-style'][number] | CssVarRef;
|
|
93
|
+
'border-inline-end-style': (typeof CSS_PROPERTY_KEYWORDS)['border-inline-end-style'][number] | CssVarRef;
|
|
94
|
+
'outline-style': (typeof CSS_PROPERTY_KEYWORDS)['outline-style'][number] | CssVarRef;
|
|
95
|
+
'text-decoration-style': (typeof CSS_PROPERTY_KEYWORDS)['text-decoration-style'][number] | CssVarRef;
|
|
96
|
+
'text-decoration-thickness': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['text-decoration-thickness'][number];
|
|
97
|
+
'text-underline-offset': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['text-underline-offset'][number];
|
|
90
98
|
color: ColorOrVar;
|
|
91
99
|
'background-color': ColorOrVar;
|
|
100
|
+
'background-image': string;
|
|
92
101
|
'border-color': ColorOrVar;
|
|
93
102
|
'border-top-color': ColorOrVar;
|
|
94
103
|
'border-right-color': ColorOrVar;
|
|
@@ -98,125 +107,126 @@ type CssPropertyValues = {
|
|
|
98
107
|
'border-inline-color': ColorOrVar;
|
|
99
108
|
'border-inline-start-color': ColorOrVar;
|
|
100
109
|
'border-inline-end-color': ColorOrVar;
|
|
101
|
-
'outline-color': ColorOrVar | '
|
|
110
|
+
'outline-color': ColorOrVar | (typeof CSS_PROPERTY_KEYWORDS)['outline-color'][number];
|
|
102
111
|
'text-decoration-color': ColorOrVar;
|
|
103
|
-
'caret-color': ColorOrVar | '
|
|
104
|
-
fill: ColorOrVar |
|
|
105
|
-
stroke: ColorOrVar |
|
|
112
|
+
'caret-color': ColorOrVar | (typeof CSS_PROPERTY_KEYWORDS)['caret-color'][number];
|
|
113
|
+
fill: ColorOrVar | (typeof CSS_PROPERTY_KEYWORDS)['fill'][number];
|
|
114
|
+
stroke: ColorOrVar | (typeof CSS_PROPERTY_KEYWORDS)['stroke'][number];
|
|
106
115
|
'stroke-width': LengthPercentageOrVar | CssValue['number'];
|
|
107
|
-
'scrollbar-color': ColorOrVar | '
|
|
108
|
-
'font-size': LengthPercentageOrVar |
|
|
116
|
+
'scrollbar-color': ColorOrVar | (typeof CSS_PROPERTY_KEYWORDS)['scrollbar-color'][number] | `${string} ${string}`;
|
|
117
|
+
'font-size': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['font-size'][number];
|
|
109
118
|
'font-weight': CssValue['font-weight'] | CssVarRef;
|
|
110
119
|
'font-family': CssValue['font-family'] | CssVarRef;
|
|
111
|
-
'font-style':
|
|
112
|
-
'font-stretch': CssValue['percentage'] |
|
|
120
|
+
'font-style': (typeof CSS_PROPERTY_KEYWORDS)['font-style'][number] | `oblique ${string}` | CssVarRef;
|
|
121
|
+
'font-stretch': CssValue['percentage'] | (typeof CSS_PROPERTY_KEYWORDS)['font-stretch'][number] | CssVarRef;
|
|
113
122
|
'font-variant-numeric': string | CssVarRef;
|
|
114
|
-
'line-height': LengthPercentageOrVar | NumberOrVar | '
|
|
115
|
-
'letter-spacing': LengthOrVar | '
|
|
116
|
-
'text-align':
|
|
117
|
-
'text-transform':
|
|
123
|
+
'line-height': LengthPercentageOrVar | NumberOrVar | (typeof CSS_PROPERTY_KEYWORDS)['line-height'][number];
|
|
124
|
+
'letter-spacing': LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['letter-spacing'][number];
|
|
125
|
+
'text-align': (typeof CSS_PROPERTY_KEYWORDS)['text-align'][number] | CssVarRef;
|
|
126
|
+
'text-transform': (typeof CSS_PROPERTY_KEYWORDS)['text-transform'][number] | CssVarRef;
|
|
118
127
|
'text-indent': LengthPercentageOrVar;
|
|
119
|
-
'text-wrap': 'wrap' |
|
|
120
|
-
'text-overflow':
|
|
121
|
-
'text-decoration-line':
|
|
122
|
-
'text-shadow': CssValue['shadow'] | '
|
|
123
|
-
'white-space':
|
|
124
|
-
'word-break':
|
|
125
|
-
'overflow-wrap':
|
|
126
|
-
hyphens:
|
|
128
|
+
'text-wrap': (typeof CSS_PROPERTY_KEYWORDS)['text-wrap'][number] | CssVarRef;
|
|
129
|
+
'text-overflow': (typeof CSS_PROPERTY_KEYWORDS)['text-overflow'][number] | string;
|
|
130
|
+
'text-decoration-line': (typeof CSS_PROPERTY_KEYWORDS)['text-decoration-line'][number] | string | CssVarRef;
|
|
131
|
+
'text-shadow': CssValue['shadow'] | (typeof CSS_PROPERTY_KEYWORDS)['text-shadow'][number] | CssVarRef;
|
|
132
|
+
'white-space': (typeof CSS_PROPERTY_KEYWORDS)['white-space'][number] | CssVarRef;
|
|
133
|
+
'word-break': (typeof CSS_PROPERTY_KEYWORDS)['word-break'][number] | CssVarRef;
|
|
134
|
+
'overflow-wrap': (typeof CSS_PROPERTY_KEYWORDS)['overflow-wrap'][number] | CssVarRef;
|
|
135
|
+
hyphens: (typeof CSS_PROPERTY_KEYWORDS)['hyphens'][number] | CssVarRef;
|
|
127
136
|
'list-style-type': string | CssVarRef;
|
|
128
|
-
'list-style-image': CssValue['url'] | '
|
|
129
|
-
'list-style-position':
|
|
130
|
-
'vertical-align': LengthPercentageOrVar |
|
|
131
|
-
'-webkit-font-smoothing':
|
|
132
|
-
'-webkit-line-clamp': IntegerOrVar | '
|
|
133
|
-
display:
|
|
134
|
-
visibility:
|
|
135
|
-
isolation:
|
|
136
|
-
position:
|
|
137
|
-
'box-sizing': '
|
|
138
|
-
'container-type':
|
|
139
|
-
columns: IntegerOrVar | LengthOrVar | '
|
|
140
|
-
flex: string | NumberOrVar |
|
|
141
|
-
'flex-direction':
|
|
142
|
-
'flex-wrap':
|
|
137
|
+
'list-style-image': CssValue['url'] | (typeof CSS_PROPERTY_KEYWORDS)['list-style-image'][number] | CssVarRef;
|
|
138
|
+
'list-style-position': (typeof CSS_PROPERTY_KEYWORDS)['list-style-position'][number] | CssVarRef;
|
|
139
|
+
'vertical-align': LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['vertical-align'][number];
|
|
140
|
+
'-webkit-font-smoothing': (typeof CSS_PROPERTY_KEYWORDS)['-webkit-font-smoothing'][number];
|
|
141
|
+
'-webkit-line-clamp': IntegerOrVar | (typeof CSS_PROPERTY_KEYWORDS)['-webkit-line-clamp'][number];
|
|
142
|
+
display: (typeof CSS_PROPERTY_KEYWORDS)['display'][number] | CssVarRef;
|
|
143
|
+
visibility: (typeof CSS_PROPERTY_KEYWORDS)['visibility'][number] | CssVarRef;
|
|
144
|
+
isolation: (typeof CSS_PROPERTY_KEYWORDS)['isolation'][number] | CssVarRef;
|
|
145
|
+
position: (typeof CSS_PROPERTY_KEYWORDS)['position'][number] | CssVarRef;
|
|
146
|
+
'box-sizing': (typeof CSS_PROPERTY_KEYWORDS)['box-sizing'][number] | CssVarRef;
|
|
147
|
+
'container-type': (typeof CSS_PROPERTY_KEYWORDS)['container-type'][number] | CssVarRef;
|
|
148
|
+
columns: IntegerOrVar | LengthOrVar | (typeof CSS_PROPERTY_KEYWORDS)['columns'][number] | `${number} ${string}`;
|
|
149
|
+
flex: string | NumberOrVar | (typeof CSS_PROPERTY_KEYWORDS)['flex'][number];
|
|
150
|
+
'flex-direction': (typeof CSS_PROPERTY_KEYWORDS)['flex-direction'][number] | CssVarRef;
|
|
151
|
+
'flex-wrap': (typeof CSS_PROPERTY_KEYWORDS)['flex-wrap'][number] | CssVarRef;
|
|
143
152
|
'flex-grow': NumberOrVar;
|
|
144
153
|
'flex-shrink': NumberOrVar;
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'align-
|
|
148
|
-
'align-
|
|
154
|
+
'flex-basis': LengthPercentageOrVar | IntrinsicSize | (typeof CSS_PROPERTY_KEYWORDS)['flex-basis'][number];
|
|
155
|
+
'justify-content': (typeof CSS_PROPERTY_KEYWORDS)['justify-content'][number] | CssVarRef;
|
|
156
|
+
'align-items': (typeof CSS_PROPERTY_KEYWORDS)['align-items'][number] | CssVarRef;
|
|
157
|
+
'align-content': (typeof CSS_PROPERTY_KEYWORDS)['align-content'][number] | CssVarRef;
|
|
158
|
+
'align-self': (typeof CSS_PROPERTY_KEYWORDS)['align-self'][number] | CssVarRef;
|
|
149
159
|
'place-content': string | CssVarRef;
|
|
150
160
|
'place-items': string | CssVarRef;
|
|
151
161
|
'place-self': string | CssVarRef;
|
|
152
162
|
order: IntegerOrVar;
|
|
153
|
-
'grid-template-columns': string | '
|
|
154
|
-
'grid-template-rows': string | '
|
|
155
|
-
'grid-column': string | '
|
|
156
|
-
'grid-column-start': string | '
|
|
157
|
-
'grid-column-end': string | '
|
|
158
|
-
'grid-row': string | '
|
|
159
|
-
'grid-row-start': string | '
|
|
160
|
-
'grid-row-end': string | '
|
|
161
|
-
transform: string | '
|
|
163
|
+
'grid-template-columns': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-template-columns'][number] | CssVarRef;
|
|
164
|
+
'grid-template-rows': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-template-rows'][number] | CssVarRef;
|
|
165
|
+
'grid-column': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-column'][number] | CssVarRef;
|
|
166
|
+
'grid-column-start': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-column-start'][number] | CssVarRef;
|
|
167
|
+
'grid-column-end': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-column-end'][number] | CssVarRef;
|
|
168
|
+
'grid-row': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-row'][number] | CssVarRef;
|
|
169
|
+
'grid-row-start': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-row-start'][number] | CssVarRef;
|
|
170
|
+
'grid-row-end': string | (typeof CSS_PROPERTY_KEYWORDS)['grid-row-end'][number] | CssVarRef;
|
|
171
|
+
transform: string | (typeof CSS_PROPERTY_KEYWORDS)['transform'][number] | CssVarRef;
|
|
162
172
|
'transform-origin': string | CssVarRef;
|
|
163
|
-
rotate: AngleOrVar | '
|
|
164
|
-
scale: NumberOrVar | '
|
|
165
|
-
translate: LengthPercentageOrVar | '
|
|
166
|
-
transition: string | '
|
|
167
|
-
'transition-property': string |
|
|
173
|
+
rotate: AngleOrVar | (typeof CSS_PROPERTY_KEYWORDS)['rotate'][number] | `${number}` | `${string} ${string}`;
|
|
174
|
+
scale: NumberOrVar | (typeof CSS_PROPERTY_KEYWORDS)['scale'][number] | `${number} ${number}` | `${number} ${number} ${number}`;
|
|
175
|
+
translate: LengthPercentageOrVar | (typeof CSS_PROPERTY_KEYWORDS)['translate'][number] | `${string} ${string}` | `${string} ${string} ${string}`;
|
|
176
|
+
transition: string | (typeof CSS_PROPERTY_KEYWORDS)['transition'][number] | CssVarRef;
|
|
177
|
+
'transition-property': string | (typeof CSS_PROPERTY_KEYWORDS)['transition-property'][number] | CssVarRef;
|
|
168
178
|
'transition-duration': TimeOrVar;
|
|
169
179
|
'transition-delay': TimeOrVar;
|
|
170
180
|
'transition-timing-function': CssValue['easing-function'] | CssVarRef;
|
|
171
|
-
'transition-behavior':
|
|
172
|
-
animation: string | '
|
|
181
|
+
'transition-behavior': (typeof CSS_PROPERTY_KEYWORDS)['transition-behavior'][number] | CssVarRef;
|
|
182
|
+
animation: string | (typeof CSS_PROPERTY_KEYWORDS)['animation'][number] | CssVarRef;
|
|
173
183
|
opacity: CssValue['percentage'] | NumberOrVar;
|
|
174
|
-
'
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
'overflow-
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'scroll-
|
|
185
|
-
'scroll-snap-
|
|
186
|
-
'scroll-snap-
|
|
187
|
-
'
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
'
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'
|
|
197
|
-
'
|
|
184
|
+
'fill-opacity': CssValue['percentage'] | NumberOrVar;
|
|
185
|
+
'box-shadow': CssValue['shadow'] | (typeof CSS_PROPERTY_KEYWORDS)['box-shadow'][number] | CssVarRef;
|
|
186
|
+
filter: string | (typeof CSS_PROPERTY_KEYWORDS)['filter'][number] | CssVarRef;
|
|
187
|
+
'backdrop-filter': string | (typeof CSS_PROPERTY_KEYWORDS)['backdrop-filter'][number] | CssVarRef;
|
|
188
|
+
'mix-blend-mode': (typeof CSS_PROPERTY_KEYWORDS)['mix-blend-mode'][number] | CssVarRef;
|
|
189
|
+
'background-blend-mode': (typeof CSS_PROPERTY_KEYWORDS)['background-blend-mode'][number] | CssVarRef;
|
|
190
|
+
overflow: (typeof CSS_PROPERTY_KEYWORDS)['overflow'][number] | CssVarRef;
|
|
191
|
+
'overflow-x': (typeof CSS_PROPERTY_KEYWORDS)['overflow-x'][number] | CssVarRef;
|
|
192
|
+
'overflow-y': (typeof CSS_PROPERTY_KEYWORDS)['overflow-y'][number] | CssVarRef;
|
|
193
|
+
'overscroll-behavior': (typeof CSS_PROPERTY_KEYWORDS)['overscroll-behavior'][number] | CssVarRef;
|
|
194
|
+
'scroll-behavior': (typeof CSS_PROPERTY_KEYWORDS)['scroll-behavior'][number] | CssVarRef;
|
|
195
|
+
'scroll-snap-align': (typeof CSS_PROPERTY_KEYWORDS)['scroll-snap-align'][number] | CssVarRef;
|
|
196
|
+
'scroll-snap-stop': (typeof CSS_PROPERTY_KEYWORDS)['scroll-snap-stop'][number] | CssVarRef;
|
|
197
|
+
'scroll-snap-type': string | (typeof CSS_PROPERTY_KEYWORDS)['scroll-snap-type'][number] | CssVarRef;
|
|
198
|
+
'scrollbar-width': (typeof CSS_PROPERTY_KEYWORDS)['scrollbar-width'][number] | CssVarRef;
|
|
199
|
+
cursor: (typeof CSS_PROPERTY_KEYWORDS)['cursor'][number] | CssValue['url'] | CssVarRef;
|
|
200
|
+
'pointer-events': (typeof CSS_PROPERTY_KEYWORDS)['pointer-events'][number] | CssVarRef;
|
|
201
|
+
'user-select': (typeof CSS_PROPERTY_KEYWORDS)['user-select'][number] | CssVarRef;
|
|
202
|
+
resize: (typeof CSS_PROPERTY_KEYWORDS)['resize'][number] | CssVarRef;
|
|
203
|
+
appearance: (typeof CSS_PROPERTY_KEYWORDS)['appearance'][number] | CssVarRef;
|
|
204
|
+
'touch-action': string | (typeof CSS_PROPERTY_KEYWORDS)['touch-action'][number] | CssVarRef;
|
|
205
|
+
'will-change': (typeof CSS_PROPERTY_KEYWORDS)['will-change'][number] | string | CssVarRef;
|
|
206
|
+
'z-index': IntegerOrVar | (typeof CSS_PROPERTY_KEYWORDS)['z-index'][number];
|
|
207
|
+
'aspect-ratio': CssValue['ratio'] | NumberOrVar | (typeof CSS_PROPERTY_KEYWORDS)['aspect-ratio'][number];
|
|
208
|
+
'object-fit': (typeof CSS_PROPERTY_KEYWORDS)['object-fit'][number] | CssVarRef;
|
|
198
209
|
'object-position': string | CssVarRef;
|
|
199
|
-
'caption-side':
|
|
200
|
-
'border-collapse': 'collapse' |
|
|
201
|
-
'table-layout':
|
|
210
|
+
'caption-side': (typeof CSS_PROPERTY_KEYWORDS)['caption-side'][number] | CssVarRef;
|
|
211
|
+
'border-collapse': (typeof CSS_PROPERTY_KEYWORDS)['border-collapse'][number] | CssVarRef;
|
|
212
|
+
'table-layout': (typeof CSS_PROPERTY_KEYWORDS)['table-layout'][number] | CssVarRef;
|
|
202
213
|
};
|
|
203
214
|
type CssPropertyName = keyof CssPropertyValues;
|
|
204
215
|
/**
|
|
205
216
|
* Standard CSS properties that accept a `<color>` value. Used to gate
|
|
206
|
-
*
|
|
217
|
+
* any `.withOpacity({...})` builder on `defineStyleProp` — only
|
|
207
218
|
* color-typed props can pair with an opacity sibling (`bg` +
|
|
208
219
|
* `bgOpacity` → class `bg-primary_75` etc.).
|
|
209
220
|
*
|
|
210
221
|
* Custom CSS properties (`--foo`) authored with `cssType: 'color'` are
|
|
211
|
-
* also eligible for
|
|
222
|
+
* also eligible for opacity pairing; that check happens via the
|
|
212
223
|
* `cssType` generic on `defineStyleProp`, not in this union.
|
|
213
224
|
*/
|
|
214
225
|
type ColorCssProperty = 'background-color' | 'color' | 'text-decoration-color' | 'border-color' | 'border-top-color' | 'border-right-color' | 'border-bottom-color' | 'border-left-color' | 'border-block-color' | 'border-block-start-color' | 'border-block-end-color' | 'border-inline-color' | 'border-inline-start-color' | 'border-inline-end-color' | 'outline-color' | 'caret-color' | 'fill' | 'stroke';
|
|
215
226
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* if you want them.
|
|
227
|
+
* The CSS-wide keyword union (`inherit | initial | unset | revert`).
|
|
228
|
+
* Not added to `CssPropertyValues` entries by default — list locally
|
|
229
|
+
* on a per-property entry if you want them.
|
|
220
230
|
*/
|
|
221
231
|
type CssGlobalKeyword = GlobalKeyword; //#endregion
|
|
222
232
|
//#endregion
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
//#region ../config/dist/types/css-property-keywords.d.ts
|
|
2
|
+
//#region src/types/css-property-keywords.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Single source of truth for CSS keyword enums.
|
|
5
|
+
*
|
|
6
|
+
* These hand-authored runtime arrays list every plain string-literal
|
|
7
|
+
* keyword each CSS property accepts. The type unions in
|
|
8
|
+
* `./css-properties.ts` are DERIVED from these tuples
|
|
9
|
+
* (`(typeof CSS_PROPERTY_KEYWORDS)['<prop>'][number]`), so the keyword
|
|
10
|
+
* data lives in exactly one place and is available at runtime — Studio
|
|
11
|
+
* and other consumers can import the arrays directly instead of
|
|
12
|
+
* re-declaring a parallel hardcoded map.
|
|
13
|
+
*
|
|
14
|
+
* Scope: only concrete keyword literals belong here. Value-type aliases
|
|
15
|
+
* (lengths, percentages, numbers, colors, `CssVarRef`, intrinsic-size
|
|
16
|
+
* keywords expressed via shared aliases, template-literal/number types,
|
|
17
|
+
* bare `string`) stay in `css-properties.ts` and are NOT transcribed.
|
|
18
|
+
* Properties whose union is purely value-typed (e.g. `flex-grow`) get no
|
|
19
|
+
* entry here.
|
|
20
|
+
*/
|
|
21
|
+
/** The CSS-wide keyword set, available as a runtime array. */
|
|
22
|
+
declare const CSS_GLOBAL_KEYWORDS: readonly ["inherit", "initial", "unset", "revert", "revert-layer"];
|
|
23
|
+
/**
|
|
24
|
+
* Per-property keyword tuples. Each tuple holds, in source order, every
|
|
25
|
+
* plain string-literal keyword that property's union in
|
|
26
|
+
* `css-properties.ts` lists.
|
|
27
|
+
*/
|
|
28
|
+
declare const CSS_PROPERTY_KEYWORDS: {
|
|
29
|
+
readonly margin: readonly ["auto"];
|
|
30
|
+
readonly 'margin-top': readonly ["auto"];
|
|
31
|
+
readonly 'margin-right': readonly ["auto"];
|
|
32
|
+
readonly 'margin-bottom': readonly ["auto"];
|
|
33
|
+
readonly 'margin-left': readonly ["auto"];
|
|
34
|
+
readonly 'margin-block': readonly ["auto"];
|
|
35
|
+
readonly 'margin-inline': readonly ["auto"];
|
|
36
|
+
readonly 'margin-inline-start': readonly ["auto"];
|
|
37
|
+
readonly 'margin-inline-end': readonly ["auto"];
|
|
38
|
+
readonly top: readonly ["auto"];
|
|
39
|
+
readonly right: readonly ["auto"];
|
|
40
|
+
readonly bottom: readonly ["auto"];
|
|
41
|
+
readonly left: readonly ["auto"];
|
|
42
|
+
readonly inset: readonly ["auto"];
|
|
43
|
+
readonly 'inset-block': readonly ["auto"];
|
|
44
|
+
readonly 'inset-inline': readonly ["auto"];
|
|
45
|
+
readonly 'inset-inline-start': readonly ["auto"];
|
|
46
|
+
readonly 'inset-inline-end': readonly ["auto"];
|
|
47
|
+
readonly 'inset-block-start': readonly ["auto"];
|
|
48
|
+
readonly 'inset-block-end': readonly ["auto"];
|
|
49
|
+
readonly 'max-width': readonly ["none"];
|
|
50
|
+
readonly 'max-height': readonly ["none"];
|
|
51
|
+
readonly 'border-width': readonly ["thin", "medium", "thick"];
|
|
52
|
+
readonly 'border-top-width': readonly ["thin", "medium", "thick"];
|
|
53
|
+
readonly 'border-right-width': readonly ["thin", "medium", "thick"];
|
|
54
|
+
readonly 'border-bottom-width': readonly ["thin", "medium", "thick"];
|
|
55
|
+
readonly 'border-left-width': readonly ["thin", "medium", "thick"];
|
|
56
|
+
readonly 'border-block-width': readonly ["thin", "medium", "thick"];
|
|
57
|
+
readonly 'border-inline-width': readonly ["thin", "medium", "thick"];
|
|
58
|
+
readonly 'border-inline-start-width': readonly ["thin", "medium", "thick"];
|
|
59
|
+
readonly 'border-inline-end-width': readonly ["thin", "medium", "thick"];
|
|
60
|
+
readonly 'outline-width': readonly ["thin", "medium", "thick"];
|
|
61
|
+
readonly 'border-style': readonly ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
|
|
62
|
+
readonly 'border-top-style': readonly ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
|
|
63
|
+
readonly 'border-bottom-style': readonly ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
|
|
64
|
+
readonly 'border-inline-start-style': readonly ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
|
|
65
|
+
readonly 'border-inline-end-style': readonly ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
|
|
66
|
+
readonly 'outline-style': readonly ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset", "auto"];
|
|
67
|
+
readonly 'text-decoration-style': readonly ["solid", "double", "dotted", "dashed", "wavy"];
|
|
68
|
+
readonly 'text-decoration-thickness': readonly ["auto", "from-font"];
|
|
69
|
+
readonly 'text-underline-offset': readonly ["auto"];
|
|
70
|
+
readonly 'outline-color': readonly ["invert"];
|
|
71
|
+
readonly 'caret-color': readonly ["auto"];
|
|
72
|
+
readonly fill: readonly ["none", "context-fill", "context-stroke"];
|
|
73
|
+
readonly stroke: readonly ["none", "context-fill", "context-stroke"];
|
|
74
|
+
readonly 'scrollbar-color': readonly ["auto"];
|
|
75
|
+
readonly 'font-size': readonly ["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "smaller", "larger"];
|
|
76
|
+
readonly 'font-style': readonly ["normal", "italic", "oblique"];
|
|
77
|
+
readonly 'font-stretch': readonly ["normal", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"];
|
|
78
|
+
readonly 'line-height': readonly ["normal"];
|
|
79
|
+
readonly 'letter-spacing': readonly ["normal"];
|
|
80
|
+
readonly 'text-align': readonly ["left", "right", "center", "justify", "start", "end"];
|
|
81
|
+
readonly 'text-transform': readonly ["none", "capitalize", "uppercase", "lowercase", "full-width", "full-size-kana"];
|
|
82
|
+
readonly 'text-wrap': readonly ["wrap", "nowrap", "balance", "pretty", "stable"];
|
|
83
|
+
readonly 'text-overflow': readonly ["clip", "ellipsis"];
|
|
84
|
+
readonly 'text-decoration-line': readonly ["none", "underline", "overline", "line-through", "blink"];
|
|
85
|
+
readonly 'text-shadow': readonly ["none"];
|
|
86
|
+
readonly 'white-space': readonly ["normal", "nowrap", "pre", "pre-wrap", "pre-line", "break-spaces"];
|
|
87
|
+
readonly 'word-break': readonly ["normal", "break-all", "keep-all", "break-word"];
|
|
88
|
+
readonly 'overflow-wrap': readonly ["normal", "break-word", "anywhere"];
|
|
89
|
+
readonly hyphens: readonly ["none", "manual", "auto"];
|
|
90
|
+
readonly 'list-style-image': readonly ["none"];
|
|
91
|
+
readonly 'list-style-position': readonly ["inside", "outside"];
|
|
92
|
+
readonly 'vertical-align': readonly ["baseline", "sub", "super", "text-top", "text-bottom", "middle", "top", "bottom"];
|
|
93
|
+
readonly '-webkit-font-smoothing': readonly ["auto", "none", "antialiased", "subpixel-antialiased"];
|
|
94
|
+
readonly '-webkit-line-clamp': readonly ["none"];
|
|
95
|
+
readonly display: readonly ["block", "inline", "inline-block", "flex", "inline-flex", "grid", "inline-grid", "flow-root", "none", "contents", "table", "inline-table", "table-row-group", "table-header-group", "table-footer-group", "table-row", "table-cell", "table-column-group", "table-column", "table-caption", "list-item"];
|
|
96
|
+
readonly visibility: readonly ["visible", "hidden", "collapse"];
|
|
97
|
+
readonly isolation: readonly ["auto", "isolate"];
|
|
98
|
+
readonly position: readonly ["static", "relative", "absolute", "fixed", "sticky"];
|
|
99
|
+
readonly 'box-sizing': readonly ["content-box", "border-box"];
|
|
100
|
+
readonly 'container-type': readonly ["normal", "size", "inline-size"];
|
|
101
|
+
readonly columns: readonly ["auto"];
|
|
102
|
+
readonly flex: readonly ["none", "auto", "initial"];
|
|
103
|
+
readonly 'flex-direction': readonly ["row", "row-reverse", "column", "column-reverse"];
|
|
104
|
+
readonly 'flex-wrap': readonly ["nowrap", "wrap", "wrap-reverse"];
|
|
105
|
+
readonly 'flex-basis': readonly ["content"];
|
|
106
|
+
readonly 'justify-content': readonly ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"];
|
|
107
|
+
readonly 'align-items': readonly ["normal", "stretch", "center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "first baseline", "last baseline"];
|
|
108
|
+
readonly 'align-content': readonly ["normal", "start", "end", "center", "flex-start", "flex-end", "space-between", "space-around", "space-evenly", "stretch", "baseline"];
|
|
109
|
+
readonly 'align-self': readonly ["auto", "normal", "stretch", "center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline"];
|
|
110
|
+
readonly 'grid-template-columns': readonly ["none"];
|
|
111
|
+
readonly 'grid-template-rows': readonly ["none"];
|
|
112
|
+
readonly 'grid-column': readonly ["auto"];
|
|
113
|
+
readonly 'grid-column-start': readonly ["auto"];
|
|
114
|
+
readonly 'grid-column-end': readonly ["auto"];
|
|
115
|
+
readonly 'grid-row': readonly ["auto"];
|
|
116
|
+
readonly 'grid-row-start': readonly ["auto"];
|
|
117
|
+
readonly 'grid-row-end': readonly ["auto"];
|
|
118
|
+
readonly transform: readonly ["none"];
|
|
119
|
+
readonly rotate: readonly ["none"];
|
|
120
|
+
readonly scale: readonly ["none"];
|
|
121
|
+
readonly translate: readonly ["none"];
|
|
122
|
+
readonly transition: readonly ["none"];
|
|
123
|
+
readonly 'transition-property': readonly ["none", "all"];
|
|
124
|
+
readonly 'transition-behavior': readonly ["normal", "allow-discrete"];
|
|
125
|
+
readonly animation: readonly ["none"];
|
|
126
|
+
readonly 'box-shadow': readonly ["none"];
|
|
127
|
+
readonly filter: readonly ["none"];
|
|
128
|
+
readonly 'backdrop-filter': readonly ["none"];
|
|
129
|
+
readonly 'mix-blend-mode': readonly ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-darker", "plus-lighter"];
|
|
130
|
+
readonly 'background-blend-mode': readonly ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
131
|
+
readonly overflow: readonly ["visible", "hidden", "clip", "scroll", "auto"];
|
|
132
|
+
readonly 'overflow-x': readonly ["visible", "hidden", "clip", "scroll", "auto"];
|
|
133
|
+
readonly 'overflow-y': readonly ["visible", "hidden", "clip", "scroll", "auto"];
|
|
134
|
+
readonly 'overscroll-behavior': readonly ["auto", "contain", "none"];
|
|
135
|
+
readonly 'scroll-behavior': readonly ["auto", "smooth"];
|
|
136
|
+
readonly 'scroll-snap-align': readonly ["none", "start", "end", "center"];
|
|
137
|
+
readonly 'scroll-snap-stop': readonly ["normal", "always"];
|
|
138
|
+
readonly 'scroll-snap-type': readonly ["none"];
|
|
139
|
+
readonly 'scrollbar-width': readonly ["auto", "thin", "none"];
|
|
140
|
+
readonly cursor: readonly ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"];
|
|
141
|
+
readonly 'pointer-events': readonly ["auto", "none", "visiblePainted", "visibleFill", "visibleStroke", "visible", "painted", "fill", "stroke", "all"];
|
|
142
|
+
readonly 'user-select': readonly ["none", "auto", "text", "contain", "all"];
|
|
143
|
+
readonly resize: readonly ["none", "both", "horizontal", "vertical", "block", "inline"];
|
|
144
|
+
readonly appearance: readonly ["none", "auto", "menulist-button", "textfield"];
|
|
145
|
+
readonly 'touch-action': readonly ["auto", "none", "manipulation"];
|
|
146
|
+
readonly 'will-change': readonly ["auto", "scroll-position", "contents"];
|
|
147
|
+
readonly 'z-index': readonly ["auto"];
|
|
148
|
+
readonly 'aspect-ratio': readonly ["auto"];
|
|
149
|
+
readonly 'object-fit': readonly ["fill", "contain", "cover", "none", "scale-down"];
|
|
150
|
+
readonly 'caption-side': readonly ["top", "bottom", "inline-start", "inline-end"];
|
|
151
|
+
readonly 'border-collapse': readonly ["collapse", "separate"];
|
|
152
|
+
readonly 'table-layout': readonly ["auto", "fixed"];
|
|
153
|
+
};
|
|
154
|
+
/** Names of the CSS properties that have a keyword tuple above. */
|
|
155
|
+
type CssPropertyWithKeywords = keyof typeof CSS_PROPERTY_KEYWORDS; //#endregion
|
|
156
|
+
//#endregion
|
|
157
|
+
export { CSS_GLOBAL_KEYWORDS, CSS_PROPERTY_KEYWORDS, CssPropertyWithKeywords };
|