css-in-props 3.2.3 → 3.2.8

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.
@@ -1,179 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var block_exports = {};
20
- __export(block_exports, {
21
- BLOCK_PROPS: () => BLOCK_PROPS
22
- });
23
- module.exports = __toCommonJS(block_exports);
24
- var import_utils = require("@domql/utils");
25
- var import_scratch = require("@symbo.ls/scratch");
26
- const BLOCK_PROPS = {
27
- show: (val, el, s, ctx) => !!(ctx.utils.exec(val, el, s) === false) && {
28
- display: "none !important"
29
- },
30
- hide: (val, el, s, ctx) => !!ctx.utils.exec(val, el, s) && {
31
- display: "none !important"
32
- },
33
- height: (val, { props }) => (0, import_scratch.transformSizeRatio)("height", val, props),
34
- width: (val, { props }) => (0, import_scratch.transformSizeRatio)("width", val, props),
35
- boxSizing: (val) => !(0, import_utils.isUndefined)(val) ? { boxSizing: val } : { boxSizing: "border-box" },
36
- boxSize: (val) => {
37
- if (!(0, import_utils.isString)(val)) return;
38
- const [height, width] = val.split(" ");
39
- return {
40
- ...(0, import_scratch.transformSize)("height", height),
41
- ...(0, import_scratch.transformSize)("width", width || height)
42
- };
43
- },
44
- inlineSize: (val, { props }) => (0, import_scratch.transformSizeRatio)("inlineSize", val, props),
45
- blockSize: (val, { props }) => (0, import_scratch.transformSizeRatio)("blockSize", val, props),
46
- minWidth: (val, { props }) => (0, import_scratch.transformSizeRatio)("minWidth", val, props),
47
- maxWidth: (val, { props }) => (0, import_scratch.transformSizeRatio)("maxWidth", val, props),
48
- widthRange: (val) => {
49
- if (!(0, import_utils.isString)(val)) return;
50
- const [minWidth, maxWidth] = val.split(" ");
51
- return {
52
- ...(0, import_scratch.transformSize)("minWidth", minWidth),
53
- ...(0, import_scratch.transformSize)("maxWidth", maxWidth || minWidth)
54
- };
55
- },
56
- minHeight: (val, { props }) => (0, import_scratch.transformSizeRatio)("minHeight", val, props),
57
- maxHeight: (val, { props }) => (0, import_scratch.transformSizeRatio)("maxHeight", val, props),
58
- heightRange: (val) => {
59
- if (!(0, import_utils.isString)(val)) return;
60
- const [minHeight, maxHeight] = val.split(" ");
61
- return {
62
- ...(0, import_scratch.transformSize)("minHeight", minHeight),
63
- ...(0, import_scratch.transformSize)("maxHeight", maxHeight || minHeight)
64
- };
65
- },
66
- size: (val) => {
67
- if (!(0, import_utils.isString)(val)) return;
68
- const [inlineSize, blockSize] = val.split(" ");
69
- return {
70
- ...(0, import_scratch.transformSizeRatio)("inlineSize", inlineSize),
71
- ...(0, import_scratch.transformSizeRatio)("blockSize", blockSize || inlineSize)
72
- };
73
- },
74
- minBlockSize: (val, { props }) => (0, import_scratch.transformSizeRatio)("minBlockSize", val, props),
75
- minInlineSize: (val, { props }) => (0, import_scratch.transformSizeRatio)("minInlineSize", val, props),
76
- maxBlockSize: (val, { props }) => (0, import_scratch.transformSizeRatio)("maxBlockSize", val, props),
77
- maxInlineSize: (val, { props }) => (0, import_scratch.transformSizeRatio)("maxInlineSize", val, props),
78
- minSize: (val) => {
79
- if (!(0, import_utils.isString)(val)) return;
80
- const [minInlineSize, minBlockSize] = val.split(" ");
81
- return {
82
- ...(0, import_scratch.transformSize)("minInlineSize", minInlineSize),
83
- ...(0, import_scratch.transformSize)("minBlockSize", minBlockSize || minInlineSize)
84
- };
85
- },
86
- maxSize: (val) => {
87
- if (!(0, import_utils.isString)(val)) return;
88
- const [maxInlineSize, maxBlockSize] = val.split(" ");
89
- return {
90
- ...(0, import_scratch.transformSize)("maxInlineSize", maxInlineSize),
91
- ...(0, import_scratch.transformSize)("maxBlockSize", maxBlockSize || maxInlineSize)
92
- };
93
- },
94
- borderWidth: (val, { props }) => (0, import_scratch.transformSizeRatio)("borderWidth", val, props),
95
- padding: (val, { props }) => (0, import_scratch.transformSizeRatio)("padding", val, props),
96
- scrollPadding: (val, { props }) => (0, import_scratch.transformSizeRatio)("scrollPadding", val, props),
97
- paddingInline: (val) => {
98
- if (!(0, import_utils.isString)(val)) return;
99
- const [paddingInlineStart, paddingInlineEnd] = val.split(" ");
100
- return {
101
- ...(0, import_scratch.transformSize)("paddingInlineStart", paddingInlineStart),
102
- ...(0, import_scratch.transformSize)("paddingInlineEnd", paddingInlineEnd || paddingInlineStart)
103
- };
104
- },
105
- paddingBlock: (val) => {
106
- if (!(0, import_utils.isString)(val)) return;
107
- const [paddingBlockStart, paddingBlockEnd] = val.split(" ");
108
- return {
109
- ...(0, import_scratch.transformSize)("paddingBlockStart", paddingBlockStart),
110
- ...(0, import_scratch.transformSize)("paddingBlockEnd", paddingBlockEnd || paddingBlockStart)
111
- };
112
- },
113
- // Traditional directional padding
114
- paddingTop: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingBlockStart", val, props),
115
- paddingBottom: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingBlockEnd", val, props),
116
- paddingLeft: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingInlineStart", val, props),
117
- paddingRight: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingInlineEnd", val, props),
118
- // Logical properties (for reference)
119
- paddingBlockStart: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingBlockStart", val, props),
120
- // maps to top
121
- paddingBlockEnd: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingBlockEnd", val, props),
122
- // maps to bottom
123
- paddingInlineStart: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingInlineStart", val, props),
124
- // maps to left
125
- paddingInlineEnd: (val, { props }) => (0, import_scratch.transformSizeRatio)("paddingInlineEnd", val, props),
126
- // maps to right
127
- margin: (val, { props }) => (0, import_scratch.transformSizeRatio)("margin", val, props),
128
- marginInline: (val) => {
129
- if (!(0, import_utils.isString)(val)) return;
130
- const [marginInlineStart, marginInlineEnd] = val.split(" ");
131
- return {
132
- ...(0, import_scratch.transformSize)("marginInlineStart", marginInlineStart),
133
- ...(0, import_scratch.transformSize)("marginInlineEnd", marginInlineEnd || marginInlineStart)
134
- };
135
- },
136
- marginBlock: (val, { props }) => {
137
- if (!(0, import_utils.isString)(props.marginBlock)) return;
138
- const [marginBlockStart, marginBlockEnd] = props.marginBlock.split(" ");
139
- return {
140
- ...(0, import_scratch.transformSize)("marginBlockStart", marginBlockStart),
141
- ...(0, import_scratch.transformSize)("marginBlockEnd", marginBlockEnd || marginBlockStart)
142
- };
143
- },
144
- marginInlineStart: (val, { props }) => (0, import_scratch.transformSizeRatio)("marginInlineStart", val, props),
145
- marginInlineEnd: (val, { props }) => (0, import_scratch.transformSizeRatio)("marginInlineEnd", val, props),
146
- marginBlockStart: (val, { props }) => (0, import_scratch.transformSizeRatio)("marginBlockStart", val, props),
147
- marginBlockEnd: (val, { props }) => (0, import_scratch.transformSizeRatio)("marginBlockEnd", val, props),
148
- gap: (val) => ({
149
- gap: (0, import_scratch.transfromGap)(val)
150
- }),
151
- columnGap: (val, { props }) => (0, import_scratch.getSpacingBasedOnRatio)(props, "columnGap", val),
152
- rowGap: (val, { props }) => (0, import_scratch.getSpacingBasedOnRatio)(props, "rowGap", val),
153
- flexWrap: (val, { props }) => ({
154
- display: "flex",
155
- flexFlow: (val || "row").split(" ")[0] + " " + props.flexWrap
156
- }),
157
- flexFlow: (val, { props }) => {
158
- const { reverse } = props;
159
- if (!(0, import_utils.isString)(val)) return;
160
- let [direction, wrap] = (val || "row").split(" ");
161
- if (val.startsWith("x") || val === "row") direction = "row";
162
- if (val.startsWith("y") || val === "column") direction = "column";
163
- return {
164
- display: "flex",
165
- flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
166
- };
167
- },
168
- flexAlign: (val) => {
169
- if (!(0, import_utils.isString)(val)) return;
170
- const [alignItems, justifyContent] = val.split(" ");
171
- return {
172
- display: "flex",
173
- alignItems,
174
- justifyContent
175
- };
176
- },
177
- round: (val, { props }) => (0, import_scratch.transformBorderRadius)(val || props.borderRadius, props, "round"),
178
- borderRadius: (val, { props }) => (0, import_scratch.transformBorderRadius)(val || props.round, props, "borderRadius")
179
- };
@@ -1,340 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var defaults_exports = {};
19
- __export(defaults_exports, {
20
- DEFAULT_CSS_PROPERTIES_LIST: () => DEFAULT_CSS_PROPERTIES_LIST
21
- });
22
- module.exports = __toCommonJS(defaults_exports);
23
- const DEFAULT_CSS_PROPERTIES_LIST = [
24
- "accentColor",
25
- "alignContent",
26
- "alignItems",
27
- "alignSelf",
28
- "alignmentBaseline",
29
- "all",
30
- "animation",
31
- "animationDelay",
32
- "animationDirection",
33
- "animationDuration",
34
- "animationFillMode",
35
- "animationIterationCount",
36
- "animationName",
37
- "animationPlayState",
38
- "animationTimingFunction",
39
- "appearance",
40
- "aspectRatio",
41
- "backdropFilter",
42
- "backfaceVisibility",
43
- "background",
44
- "backgroundAttachment",
45
- "backgroundBlendMode",
46
- "backgroundClip",
47
- "backgroundColor",
48
- "backgroundImage",
49
- "backgroundOrigin",
50
- "backgroundPosition",
51
- "backgroundPositionX",
52
- "backgroundPositionY",
53
- "backgroundRepeat",
54
- "backgroundRepeatX",
55
- "backgroundRepeatY",
56
- "backgroundSize",
57
- "baselineShift",
58
- "blockSize",
59
- "border",
60
- "borderBlock",
61
- "borderBlockColor",
62
- "borderBlockEnd",
63
- "borderBlockEndColor",
64
- "borderBlockEndStyle",
65
- "borderBlockEndWidth",
66
- "borderBlockStart",
67
- "borderBlockStartColor",
68
- "borderBlockStartStyle",
69
- "borderBlockStartWidth",
70
- "borderBlockStyle",
71
- "borderBlockWidth",
72
- "borderBottom",
73
- "borderBottomColor",
74
- "borderBottomLeftRadius",
75
- "borderBottomRightRadius",
76
- "borderBottomStyle",
77
- "borderBottomWidth",
78
- "borderCollapse",
79
- "borderColor",
80
- "borderImage",
81
- "borderImageOutset",
82
- "borderImageRepeat",
83
- "borderImageSlice",
84
- "borderImageSource",
85
- "borderImageWidth",
86
- "borderLeft",
87
- "borderLeftColor",
88
- "borderLeftStyle",
89
- "borderLeftWidth",
90
- "borderRadius",
91
- "borderRight",
92
- "borderRightColor",
93
- "borderRightStyle",
94
- "borderRightWidth",
95
- "borderSpacing",
96
- "borderStyle",
97
- "borderTop",
98
- "borderTopColor",
99
- "borderTopLeftRadius",
100
- "borderTopRightRadius",
101
- "borderTopStyle",
102
- "borderTopWidth",
103
- "borderWidth",
104
- "bottom",
105
- "boxDecorationBreak",
106
- "boxShadow",
107
- "boxSizing",
108
- "breakAfter",
109
- "breakBefore",
110
- "breakInside",
111
- "captionSide",
112
- "caretColor",
113
- "clear",
114
- "clip",
115
- "clipPath",
116
- "color",
117
- "colorAdjust",
118
- "colorInterpolation",
119
- "colorInterpolationFilters",
120
- "colorRendering",
121
- "columnCount",
122
- "columnFill",
123
- "columnGap",
124
- "columnRule",
125
- "columnRuleColor",
126
- "columnRuleStyle",
127
- "columnRuleWidth",
128
- "columnSpan",
129
- "columnWidth",
130
- "columns",
131
- "contain",
132
- "content",
133
- "counterIncrement",
134
- "counterReset",
135
- "cursor",
136
- "direction",
137
- "display",
138
- "emptyCells",
139
- "filter",
140
- "flex",
141
- "flexBasis",
142
- "flexDirection",
143
- "flexFlow",
144
- "flexGrow",
145
- "flexShrink",
146
- "flexWrap",
147
- "float",
148
- "font",
149
- "fontFamily",
150
- "fontFeatureSettings",
151
- "fontKerning",
152
- "fontLanguageOverride",
153
- "fontSize",
154
- "fontSizeAdjust",
155
- "fontStretch",
156
- "fontStyle",
157
- "fontVariant",
158
- "fontVariantAlternates",
159
- "fontVariantCaps",
160
- "fontVariantEastAsian",
161
- "fontVariantNumeric",
162
- "fontVariantPosition",
163
- "fontWeight",
164
- "fontVariationSettings",
165
- "fontSynthesis",
166
- "forcedColorAdjust",
167
- "gap",
168
- "grid",
169
- "gridArea",
170
- "gridAutoColumns",
171
- "gridAutoFlow",
172
- "gridAutoRows",
173
- "gridColumn",
174
- "gridColumnEnd",
175
- "gridColumnGap",
176
- "gridColumnStart",
177
- "gridGap",
178
- "gridRow",
179
- "gridRowEnd",
180
- "gridRowGap",
181
- "gridRowStart",
182
- "gridTemplate",
183
- "gridTemplateAreas",
184
- "gridTemplateColumns",
185
- "gridTemplateRows",
186
- "height",
187
- "hyphens",
188
- "imageOrientation",
189
- "imageRendering",
190
- "imeMode",
191
- "inset",
192
- "insetBlock",
193
- "insetBlockEnd",
194
- "insetBlockStart",
195
- "insetInline",
196
- "insetInlineEnd",
197
- "insetInlineStart",
198
- "initialLetter",
199
- "isolation",
200
- "justifyContent",
201
- "justifyItems",
202
- "justifySelf",
203
- "left",
204
- "letterSpacing",
205
- "lineBreak",
206
- "lineClamp",
207
- "lineHeight",
208
- "listStyle",
209
- "listStyleImage",
210
- "listStylePosition",
211
- "listStyleType",
212
- "margin",
213
- "marginBottom",
214
- "marginLeft",
215
- "marginRight",
216
- "marginTop",
217
- "marginBlock",
218
- "marginBlockEnd",
219
- "marginBlockStart",
220
- "marginInline",
221
- "marginInlineEnd",
222
- "marginInlineStart",
223
- "mask",
224
- "maskBorder",
225
- "maskBorderImage",
226
- "maskBorderOutset",
227
- "maskBorderRepeat",
228
- "maskBorderSlice",
229
- "maskBorderSource",
230
- "maskBorderWidth",
231
- "maskClip",
232
- "maskComposite",
233
- "maskImage",
234
- "maskOrigin",
235
- "maskPosition",
236
- "maskRepeat",
237
- "maskSize",
238
- "maskType",
239
- "maxBlockSize",
240
- "maxHeight",
241
- "maxInlineSize",
242
- "maxWidth",
243
- "minBlockSize",
244
- "minHeight",
245
- "minInlineSize",
246
- "minWidth",
247
- "mixBlendMode",
248
- "objectFit",
249
- "objectPosition",
250
- "objectViewBox",
251
- "offset",
252
- "offsetDistance",
253
- "offsetPath",
254
- "offsetRotate",
255
- "opacity",
256
- "order",
257
- "orientation",
258
- "outline",
259
- "outlineColor",
260
- "outlineOffset",
261
- "outlineStyle",
262
- "outlineWidth",
263
- "overflow",
264
- "overflowAnchor",
265
- "overflowClip",
266
- "overflowScrolling",
267
- "overflowWrap",
268
- "overflowX",
269
- "overflowY",
270
- "padding",
271
- "paddingBottom",
272
- "paddingLeft",
273
- "paddingRight",
274
- "paddingTop",
275
- "pageBreakAfter",
276
- "pageBreakBefore",
277
- "pageBreakInside",
278
- "paintOrder",
279
- "perspective",
280
- "perspectiveOrigin",
281
- "placeContent",
282
- "placeItems",
283
- "placeSelf",
284
- "pointerEvents",
285
- "position",
286
- "resize",
287
- "right",
288
- "rotate",
289
- "rowGap",
290
- "scrollBehavior",
291
- "scrollPadding",
292
- "scrollSnapAlign",
293
- "scrollSnapType",
294
- "scrollbarColor",
295
- "scrollbarWidth",
296
- "shapeImageThreshold",
297
- "shapeMargin",
298
- "shapeOutside",
299
- "tabSize",
300
- "tableLayout",
301
- "textAlign",
302
- "textAlignLast",
303
- "textDecoration",
304
- "textDecorationColor",
305
- "textDecorationLine",
306
- "textDecorationSkipInk",
307
- "textDecorationStyle",
308
- "textDecorationThickness",
309
- "textIndent",
310
- "textOverflow",
311
- "textShadow",
312
- "textTransform",
313
- "textUnderlineOffset",
314
- "top",
315
- "transform",
316
- "transformOrigin",
317
- "transformStyle",
318
- "transition",
319
- "transitionDelay",
320
- "transitionDuration",
321
- "transitionProperty",
322
- "transitionTimingFunction",
323
- "translate",
324
- "translateX",
325
- "translateY",
326
- "translateZ",
327
- "unicodeBidi",
328
- "userSelect",
329
- "verticalAlign",
330
- "visibility",
331
- "whiteSpace",
332
- "widows",
333
- "width",
334
- "willChange",
335
- "wordBreak",
336
- "wordSpacing",
337
- "wordWrap",
338
- "writingMode",
339
- "zIndex"
340
- ];
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var flex_exports = {};
20
- __export(flex_exports, {
21
- FLEX_PROPS: () => FLEX_PROPS
22
- });
23
- module.exports = __toCommonJS(flex_exports);
24
- var import_utils = require("@domql/utils");
25
- const FLEX_PROPS = {
26
- flow: (value, el) => {
27
- const { props } = el;
28
- const { reverse } = props;
29
- if (!(0, import_utils.isString)(value)) return;
30
- let [direction, wrap] = (value || "row").split(" ");
31
- if (value.startsWith("x") || value === "row") direction = "row";
32
- if (value.startsWith("y") || value === "column") direction = "column";
33
- return {
34
- flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
35
- };
36
- },
37
- wrap: (value, { props }) => {
38
- return { flexWrap: value };
39
- },
40
- align: (value, { props }) => {
41
- const [alignItems, justifyContent] = value.split(" ");
42
- return { alignItems, justifyContent };
43
- }
44
- };
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var font_exports = {};
20
- __export(font_exports, {
21
- FONT_PROPS: () => FONT_PROPS
22
- });
23
- module.exports = __toCommonJS(font_exports);
24
- var import_scratch = require("@symbo.ls/scratch");
25
- const FONT_PROPS = {
26
- fontSize: (value) => {
27
- return (0, import_scratch.getFontSizeByKey)(value) || value;
28
- },
29
- fontFamily: (value) => ({
30
- fontFamily: (0, import_scratch.getFontFamily)(value) || value
31
- }),
32
- fontWeight: (value) => ({
33
- fontWeight: value,
34
- fontVariationSettings: '"wght" ' + value
35
- })
36
- };
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var grid_exports = {};
20
- __export(grid_exports, {
21
- GRID_PROPS: () => GRID_PROPS
22
- });
23
- module.exports = __toCommonJS(grid_exports);
24
- const GRID_PROPS = {
25
- area: (value) => ({ gridArea: value }),
26
- template: (value) => ({ gridTemplate: value }),
27
- templateAreas: (value) => ({ gridTemplateAreas: value }),
28
- column: (value) => ({ gridColumn: value }),
29
- columns: (value) => ({ gridTemplateColumns: value }),
30
- templateColumns: (value) => ({ gridTemplateColumns: value }),
31
- autoColumns: (value) => ({ gridAutoColumns: value }),
32
- columnStart: (value) => ({ gridColumnStart: value }),
33
- row: (value) => ({ gridRow: value }),
34
- rows: (value) => ({ gridTemplateRows: value }),
35
- templateRows: (value) => ({ gridTemplateRows: value }),
36
- autoRows: (value) => ({ gridAutoRows: value }),
37
- rowStart: (value) => ({ gridRowStart: value }),
38
- autoFlow: (value) => ({ gridAutoFlow: value })
39
- };
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var props_exports = {};
21
- __export(props_exports, {
22
- CSS_PROPS_REGISTRY: () => CSS_PROPS_REGISTRY,
23
- default: () => props_default
24
- });
25
- module.exports = __toCommonJS(props_exports);
26
- var import_animation = require("./animation");
27
- var import_block = require("./block");
28
- var import_font = require("./font");
29
- var import_misc = require("./misc");
30
- var import_position = require("./position");
31
- var import_theme = require("./theme");
32
- var import_timing = require("./timing");
33
- var import_flex = require("./flex");
34
- var import_grid = require("./grid");
35
- __reExport(props_exports, require("./animation"), module.exports);
36
- __reExport(props_exports, require("./block"), module.exports);
37
- __reExport(props_exports, require("./font"), module.exports);
38
- __reExport(props_exports, require("./misc"), module.exports);
39
- __reExport(props_exports, require("./position"), module.exports);
40
- __reExport(props_exports, require("./theme"), module.exports);
41
- __reExport(props_exports, require("./timing"), module.exports);
42
- __reExport(props_exports, require("./flex"), module.exports);
43
- __reExport(props_exports, require("./grid"), module.exports);
44
- const CSS_PROPS_REGISTRY = {
45
- ...import_animation.ANIMATION_PROPS,
46
- ...import_block.BLOCK_PROPS,
47
- ...import_font.FONT_PROPS,
48
- ...import_misc.MISC_PROPS,
49
- ...import_misc.MISC_PROPS,
50
- ...import_position.POSITION_PROPS,
51
- ...import_theme.THEME_PROPS,
52
- ...import_timing.TIMING_PROPS,
53
- ...import_flex.FLEX_PROPS,
54
- ...import_grid.GRID_PROPS
55
- };
56
- var props_default = CSS_PROPS_REGISTRY;