-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcssNameMap.ts
More file actions
175 lines (174 loc) · 6.15 KB
/
cssNameMap.ts
File metadata and controls
175 lines (174 loc) · 6.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
export const CAMEL_TO_SNAKE = {
pointerEvents: 'pointer-events',
WebkitAppRegion: '-webkit-app-region',
WebkitLineClamp: '-webkit-line-clamp',
WebkitBoxOrient: '-webkit-box-orient',
WebkitBackgroundClip: '-webkit-background-clip',
WebkitTextFillColor: '-webkit-text-fill-color',
WebkitTextStroke: '-webkit-text-fill-color',
WebkitTextStrokeWidth: '-webkit-text-stroke-width',
WebkitTextStrokeColor: '-webkit-text-stroke-color',
WebkitFontSmoothing: '-webkit-font-smoothing',
alignContent: 'align-content',
alignItems: 'align-items',
alignSelf: 'align-self',
animationDelay: 'animation-delay',
animationDirection: 'animation-direction',
animationDuration: 'animation-duration',
animationFillMode: 'animation-fill-mode',
animationIterationCount: 'animation-iteration-count',
animationName: 'animation-name',
animationPlayState: 'animation-play-state',
animationTimingFunction: 'animation-timing-function',
backfaceVisibility: 'backface-visibility',
backgroundAttachment: 'background-attachment',
backgroundBlendMode: 'background-blend-mode',
backgroundClip: 'background-clip',
backgroundColor: 'background-color',
backgroundImage: 'background-image',
backgroundOrigin: 'background-origin',
backgroundPosition: 'background-position',
backgroundRepeat: 'background-repeat',
backgroundSize: 'background-size',
backdropFilter: 'backdrop-filter',
borderBottom: 'border-bottom',
borderBottomColor: 'border-bottom-color',
borderBottomLeftRadius: 'border-bottom-left-radius',
borderBottomRightRadius: 'border-bottom-right-radius',
borderBottomStyle: 'border-bottom-style',
borderBottomWidth: 'border-bottom-width',
borderRadiusSize: 'border-radius-size',
borderCollapse: 'border-collapse',
borderColor: 'border-color',
borderImage: 'border-image',
borderImageOutset: 'border-image-outset',
borderImageRepeat: 'border-image-repeat',
borderImageSlice: 'border-image-slice',
borderImageSource: 'border-image-source',
borderImageWidth: 'border-image-width',
borderLeft: 'border-left',
borderLeftColor: 'border-left-color',
borderLeftStyle: 'border-left-style',
borderLeftWidth: 'border-left-width',
borderRadius: 'border-radius',
borderRight: 'border-right',
borderRightColor: 'border-right-color',
borderRightStyle: 'border-right-style',
borderRightWidth: 'border-right-width',
borderSpacing: 'border-spacing',
borderStyle: 'border-style',
borderTop: 'border-top',
borderTopColor: 'border-top-color',
borderTopLeftRadius: 'border-top-left-radius',
borderTopRightRadius: 'border-top-right-radius',
borderTopStyle: 'border-top-style',
borderTopWidth: 'border-top-width',
borderWidth: 'border-width',
boxShadow: 'box-shadow',
boxSizing: 'box-sizing',
captionSide: 'caption-side',
columnCount: 'column-count',
columnFill: 'column-fill',
columnGap: 'column-gap',
columnRule: 'column-rule',
columnRuleColor: 'column-rule-color',
columnRuleStyle: 'column-rule-style',
columnRuleWidth: 'column-rule-width',
columnSpan: 'column-span',
columnWidth: 'column-width',
counterIncrement: 'counter-increment',
counterReset: 'counter-reset',
emptyCells: 'empty-cells',
flexBasis: 'flex-basis',
flexDirection: 'flex-direction',
flexFlow: 'flex-flow',
flexGrow: 'flex-grow',
flexShrink: 'flex-shrink',
flexWrap: 'flex-wrap',
fontFamily: 'font-family',
fontSize: 'font-size',
fontSizeAdjust: 'font-size-adjust',
fontStretch: 'font-stretch',
fontStyle: 'font-style',
fontVariant: 'font-variant',
fontWeight: 'font-weight',
hangingPunctuation: 'hanging-punctuation',
justifyContent: 'justify-content',
letterSpacing: 'letter-spacing',
lineHeight: 'line-height',
listStyle: 'list-style',
listStyleImage: 'list-style-image',
listStylePosition: 'list-style-position',
listStyleType: 'list-style-type',
marginBottom: 'margin-bottom',
marginLeft: 'margin-left',
marginRight: 'margin-right',
marginTop: 'margin-top',
maxHeight: 'max-height',
maxWidth: 'max-width',
minHeight: 'min-height',
minWidth: 'min-width',
navDown: 'nav-down',
navIndex: 'nav-index',
navLeft: 'nav-left',
navRight: 'nav-right',
navUp: 'nav-up',
outlineColor: 'outline-color',
outlineOffset: 'outline-offset',
outlineStyle: 'outline-style',
outlineWidth: 'outline-width',
overflowX: 'overflow-x',
overflowY: 'overflow-y',
paddingBottom: 'padding-bottom',
paddingLeft: 'padding-left',
paddingRight: 'padding-right',
paddingTop: 'padding-top',
pageBreakAfter: 'page-break-after',
pageBreakBefore: 'page-break-before',
pageBreakInside: 'page-break-inside',
perspectiveOrigin: 'perspective-origin',
tabSize: 'tab-size',
tableLayout: 'table-layout',
textAlign: 'text-align',
textAlignLast: 'text-align-last',
textDecoration: 'text-decoration',
textDecorationColor: 'text-decoration-color',
textDecorationLine: 'text-decoration-line',
textDecorationStyle: 'text-decoration-style',
textIndent: 'text-indent',
textJustify: 'text-justify',
textOverflow: 'text-overflow',
textShadow: 'text-shadow',
textTransform: 'text-transform',
transformOrigin: 'transform-origin',
transformStyle: 'transform-style',
transitionDelay: 'transition-delay',
transitionDuration: 'transition-duration',
transitionProperty: 'transition-property',
transitionTimingFunction: 'transition-timing-function',
unicodeBidi: 'unicode-bidi',
userSelect: 'user-select',
verticalAlign: 'vertical-align',
whiteSpace: 'white-space',
wordBreak: 'word-break',
wordSpacing: 'word-spacing',
wordWrap: 'word-wrap',
zIndex: 'z-index',
gridGap: 'grid-gap',
gridTemplateColumns: 'grid-template-columns',
gridTemplateRows: 'grid-template-rows',
gridAutoRows: 'grid-auto-rows',
scrollSnapCoordinate: 'scroll-snap-coordinate',
scrollSnapDestination: 'scroll-snap-destination',
scrollSnapPointsX: 'scroll-snap-points-x',
scrollSnapPointsY: 'scroll-snap-points-y',
scrollSnapType: 'scroll-snap-type',
scrollSnapTypeX: 'scroll-snap-type-x',
scrollSnapTypeY: 'scroll-snap-type-y',
scrollSnapAlign: 'scroll-snap-align',
scrollSnapStop: 'scroll-snap-stop',
}
export const SNAKE_TO_CAMEL = Object.keys(CAMEL_TO_SNAKE).reduce(
(acc, cur) => ({ ...acc, [CAMEL_TO_SNAKE[cur]]: cur }),
{},
)