@tamagui/helpers 3.0.0-beta.922.1 → 3.0.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.
Files changed (50) hide show
  1. package/dist/cjs/composeEventHandlers.native.cjs +1 -5
  2. package/dist/cjs/composeEventHandlers.native.js +1 -5
  3. package/dist/cjs/composeEventHandlers.native.js.map +1 -1
  4. package/dist/cjs/cssStyleProps.cjs +396 -0
  5. package/dist/cjs/cssStyleProps.native.cjs +398 -0
  6. package/dist/cjs/cssStyleProps.native.js +400 -0
  7. package/dist/cjs/cssStyleProps.native.js.map +1 -0
  8. package/dist/cjs/themeClassNames.cjs +19 -13
  9. package/dist/cjs/themeClassNames.native.cjs +37 -14
  10. package/dist/cjs/themeClassNames.native.js +37 -14
  11. package/dist/cjs/themeClassNames.native.js.map +1 -1
  12. package/dist/cjs/validStyleProps.cjs +14 -9
  13. package/dist/cjs/validStyleProps.native.cjs +16 -10
  14. package/dist/cjs/validStyleProps.native.js +16 -10
  15. package/dist/cjs/validStyleProps.native.js.map +1 -1
  16. package/dist/cjs/webOnlyStyleProps.cjs +4 -4
  17. package/dist/cjs/webOnlyStyleProps.native.cjs +4 -4
  18. package/dist/cjs/webOnlyStyleProps.native.js +4 -4
  19. package/dist/cjs/webOnlyStyleProps.native.js.map +1 -1
  20. package/dist/esm/composeEventHandlers.native.js +1 -5
  21. package/dist/esm/composeEventHandlers.native.js.map +1 -1
  22. package/dist/esm/cssStyleProps.mjs +373 -0
  23. package/dist/esm/cssStyleProps.mjs.map +1 -0
  24. package/dist/esm/cssStyleProps.native.js +373 -0
  25. package/dist/esm/cssStyleProps.native.js.map +1 -0
  26. package/dist/esm/themeClassNames.mjs +16 -13
  27. package/dist/esm/themeClassNames.mjs.map +1 -1
  28. package/dist/esm/themeClassNames.native.js +34 -14
  29. package/dist/esm/themeClassNames.native.js.map +1 -1
  30. package/dist/esm/validStyleProps.mjs +15 -9
  31. package/dist/esm/validStyleProps.mjs.map +1 -1
  32. package/dist/esm/validStyleProps.native.js +14 -9
  33. package/dist/esm/validStyleProps.native.js.map +1 -1
  34. package/dist/esm/webOnlyStyleProps.mjs +4 -4
  35. package/dist/esm/webOnlyStyleProps.mjs.map +1 -1
  36. package/dist/esm/webOnlyStyleProps.native.js +4 -4
  37. package/dist/esm/webOnlyStyleProps.native.js.map +1 -1
  38. package/package.json +8 -6
  39. package/src/cssStyleProps.ts +373 -0
  40. package/src/themeClassNames.ts +22 -24
  41. package/src/validStyleProps.ts +70 -23
  42. package/src/webOnlyStyleProps.ts +5 -5
  43. package/types/cssStyleProps.d.ts +371 -0
  44. package/types/cssStyleProps.d.ts.map +1 -0
  45. package/types/themeClassNames.d.ts +2 -10
  46. package/types/themeClassNames.d.ts.map +1 -1
  47. package/types/validStyleProps.d.ts +1766 -30
  48. package/types/validStyleProps.d.ts.map +1 -1
  49. package/types/webOnlyStyleProps.d.ts +12 -0
  50. package/types/webOnlyStyleProps.d.ts.map +1 -1
@@ -0,0 +1,400 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var cssStyleProps_exports = {};
24
+ __export(cssStyleProps_exports, {
25
+ cssStyleProps: () => cssStyleProps,
26
+ cssStylePropsUnitless: () => cssStylePropsUnitless
27
+ });
28
+ module.exports = __toCommonJS(cssStyleProps_exports);
29
+ var cssStyleProps = {
30
+ accentColor: true,
31
+ alignmentBaseline: true,
32
+ alignTracks: true,
33
+ all: true,
34
+ anchorName: true,
35
+ anchorScope: true,
36
+ animation: true,
37
+ animationComposition: true,
38
+ animationDelay: true,
39
+ animationDirection: true,
40
+ animationDuration: true,
41
+ animationFillMode: true,
42
+ animationName: true,
43
+ animationPlayState: true,
44
+ animationRange: true,
45
+ animationRangeEnd: true,
46
+ animationRangeStart: true,
47
+ animationTimeline: true,
48
+ animationTimingFunction: true,
49
+ appearance: true,
50
+ backgroundPositionX: true,
51
+ backgroundPositionY: true,
52
+ baselineShift: true,
53
+ borderBlockEnd: true,
54
+ borderBlockStart: true,
55
+ borderCollapse: true,
56
+ borderImageRepeat: true,
57
+ borderImageSource: true,
58
+ borderInlineEnd: true,
59
+ borderInlineStart: true,
60
+ borderSpacing: true,
61
+ boxAlign: true,
62
+ boxDecorationBreak: true,
63
+ boxDirection: true,
64
+ boxFlex: true,
65
+ boxFlexGroup: true,
66
+ boxLines: true,
67
+ boxOrdinalGroup: true,
68
+ boxOrient: true,
69
+ boxPack: true,
70
+ breakAfter: true,
71
+ breakBefore: true,
72
+ breakInside: true,
73
+ captionSide: true,
74
+ caret: true,
75
+ caretShape: true,
76
+ clear: true,
77
+ clip: true,
78
+ clipRule: true,
79
+ colorAdjust: true,
80
+ colorInterpolation: true,
81
+ colorInterpolationFilters: true,
82
+ colorRendering: true,
83
+ colorScheme: true,
84
+ columnFill: true,
85
+ columnRule: true,
86
+ columnRuleColor: true,
87
+ columnRuleStyle: true,
88
+ columnRuleWidth: true,
89
+ columns: true,
90
+ columnSpan: true,
91
+ columnWidth: true,
92
+ container: true,
93
+ containIntrinsicBlockSize: true,
94
+ containIntrinsicHeight: true,
95
+ containIntrinsicInlineSize: true,
96
+ containIntrinsicSize: true,
97
+ containIntrinsicWidth: true,
98
+ contentVisibility: true,
99
+ counterIncrement: true,
100
+ counterReset: true,
101
+ counterSet: true,
102
+ cx: true,
103
+ cy: true,
104
+ d: true,
105
+ dominantBaseline: true,
106
+ emptyCells: true,
107
+ fieldSizing: true,
108
+ fill: true,
109
+ fillOpacity: true,
110
+ fillRule: true,
111
+ flexFlow: true,
112
+ floodColor: true,
113
+ floodOpacity: true,
114
+ fontFeatureSettings: true,
115
+ fontKerning: true,
116
+ fontLanguageOverride: true,
117
+ fontOpticalSizing: true,
118
+ fontPalette: true,
119
+ fontSizeAdjust: true,
120
+ fontSmooth: true,
121
+ fontStretch: true,
122
+ fontSynthesis: true,
123
+ fontSynthesisPosition: true,
124
+ fontSynthesisSmallCaps: true,
125
+ fontSynthesisStyle: true,
126
+ fontSynthesisWeight: true,
127
+ fontVariantAlternates: true,
128
+ fontVariantCaps: true,
129
+ fontVariantEastAsian: true,
130
+ fontVariantEmoji: true,
131
+ fontVariantLigatures: true,
132
+ fontVariantNumeric: true,
133
+ fontVariantPosition: true,
134
+ fontVariationSettings: true,
135
+ fontWidth: true,
136
+ forcedColorAdjust: true,
137
+ glyphOrientationVertical: true,
138
+ grid: true,
139
+ gridArea: true,
140
+ gridAutoColumns: true,
141
+ gridAutoFlow: true,
142
+ gridAutoRows: true,
143
+ gridGap: true,
144
+ gridTemplate: true,
145
+ gridTemplateRows: true,
146
+ hangingPunctuation: true,
147
+ hyphenateCharacter: true,
148
+ hyphenateLimitChars: true,
149
+ hyphens: true,
150
+ imageOrientation: true,
151
+ imageRendering: true,
152
+ imageResolution: true,
153
+ imeMode: true,
154
+ initialLetter: true,
155
+ initialLetterAlign: true,
156
+ insetArea: true,
157
+ interpolateSize: true,
158
+ justifyItems: true,
159
+ justifySelf: true,
160
+ justifyTracks: true,
161
+ KhtmlBoxAlign: true,
162
+ KhtmlBoxDirection: true,
163
+ KhtmlBoxFlex: true,
164
+ KhtmlBoxFlexGroup: true,
165
+ KhtmlBoxLines: true,
166
+ KhtmlBoxOrdinalGroup: true,
167
+ KhtmlBoxOrient: true,
168
+ KhtmlBoxPack: true,
169
+ KhtmlLineBreak: true,
170
+ KhtmlOpacity: true,
171
+ KhtmlUserSelect: true,
172
+ lightingColor: true,
173
+ lineBreak: true,
174
+ lineHeightStep: true,
175
+ listStyle: true,
176
+ listStyleImage: true,
177
+ listStylePosition: true,
178
+ listStyleType: true,
179
+ marginTrim: true,
180
+ marker: true,
181
+ markerEnd: true,
182
+ markerMid: true,
183
+ markerStart: true,
184
+ masonryAutoFlow: true,
185
+ mathDepth: true,
186
+ mathShift: true,
187
+ mathStyle: true,
188
+ maxLines: true,
189
+ motion: true,
190
+ motionDistance: true,
191
+ motionPath: true,
192
+ motionRotation: true,
193
+ OAnimation: true,
194
+ OAnimationDelay: true,
195
+ OAnimationDirection: true,
196
+ OAnimationDuration: true,
197
+ OAnimationFillMode: true,
198
+ OAnimationIterationCount: true,
199
+ OAnimationName: true,
200
+ OAnimationPlayState: true,
201
+ OAnimationTimingFunction: true,
202
+ OBackgroundSize: true,
203
+ objectViewBox: true,
204
+ OBorderImage: true,
205
+ offset: true,
206
+ offsetAnchor: true,
207
+ offsetBlock: true,
208
+ offsetBlockEnd: true,
209
+ offsetBlockStart: true,
210
+ offsetDistance: true,
211
+ offsetInline: true,
212
+ offsetInlineEnd: true,
213
+ offsetInlineStart: true,
214
+ offsetPath: true,
215
+ offsetPosition: true,
216
+ offsetRotate: true,
217
+ offsetRotation: true,
218
+ OObjectFit: true,
219
+ OObjectPosition: true,
220
+ OTabSize: true,
221
+ OTextOverflow: true,
222
+ OTransform: true,
223
+ OTransformOrigin: true,
224
+ OTransition: true,
225
+ OTransitionDelay: true,
226
+ OTransitionDuration: true,
227
+ OTransitionProperty: true,
228
+ OTransitionTimingFunction: true,
229
+ overflowAnchor: true,
230
+ overflowClipBox: true,
231
+ overflowClipMargin: true,
232
+ overlay: true,
233
+ overscrollBehavior: true,
234
+ overscrollBehaviorBlock: true,
235
+ overscrollBehaviorInline: true,
236
+ overscrollBehaviorX: true,
237
+ overscrollBehaviorY: true,
238
+ page: true,
239
+ pageBreakAfter: true,
240
+ pageBreakBefore: true,
241
+ pageBreakInside: true,
242
+ paintOrder: true,
243
+ perspectiveOrigin: true,
244
+ placeContent: true,
245
+ placeItems: true,
246
+ placeSelf: true,
247
+ positionAnchor: true,
248
+ positionArea: true,
249
+ positionTry: true,
250
+ positionTryFallbacks: true,
251
+ positionTryOptions: true,
252
+ positionTryOrder: true,
253
+ positionVisibility: true,
254
+ printColorAdjust: true,
255
+ quotes: true,
256
+ r: true,
257
+ rubyAlign: true,
258
+ rubyMerge: true,
259
+ rubyOverhang: true,
260
+ rubyPosition: true,
261
+ rx: true,
262
+ ry: true,
263
+ scrollbarColor: true,
264
+ scrollbarGutter: true,
265
+ scrollBehavior: true,
266
+ scrollInitialTarget: true,
267
+ scrollMargin: true,
268
+ scrollMarginBlock: true,
269
+ scrollMarginBlockEnd: true,
270
+ scrollMarginBlockStart: true,
271
+ scrollMarginBottom: true,
272
+ scrollMarginInline: true,
273
+ scrollMarginInlineEnd: true,
274
+ scrollMarginInlineStart: true,
275
+ scrollMarginLeft: true,
276
+ scrollMarginRight: true,
277
+ scrollMarginTop: true,
278
+ scrollPadding: true,
279
+ scrollPaddingBlock: true,
280
+ scrollPaddingBlockEnd: true,
281
+ scrollPaddingBlockStart: true,
282
+ scrollPaddingBottom: true,
283
+ scrollPaddingInline: true,
284
+ scrollPaddingInlineEnd: true,
285
+ scrollPaddingInlineStart: true,
286
+ scrollPaddingLeft: true,
287
+ scrollPaddingRight: true,
288
+ scrollPaddingTop: true,
289
+ scrollSnapAlign: true,
290
+ scrollSnapCoordinate: true,
291
+ scrollSnapDestination: true,
292
+ scrollSnapMargin: true,
293
+ scrollSnapMarginBottom: true,
294
+ scrollSnapMarginLeft: true,
295
+ scrollSnapMarginRight: true,
296
+ scrollSnapMarginTop: true,
297
+ scrollSnapPointsX: true,
298
+ scrollSnapPointsY: true,
299
+ scrollSnapStop: true,
300
+ scrollSnapType: true,
301
+ scrollSnapTypeX: true,
302
+ scrollSnapTypeY: true,
303
+ scrollTimeline: true,
304
+ scrollTimelineAxis: true,
305
+ scrollTimelineName: true,
306
+ shapeImageThreshold: true,
307
+ shapeMargin: true,
308
+ shapeOutside: true,
309
+ shapeRendering: true,
310
+ speakAs: true,
311
+ stopColor: true,
312
+ stopOpacity: true,
313
+ stroke: true,
314
+ strokeColor: true,
315
+ strokeDasharray: true,
316
+ strokeDashoffset: true,
317
+ strokeLinecap: true,
318
+ strokeLinejoin: true,
319
+ strokeMiterlimit: true,
320
+ strokeOpacity: true,
321
+ strokeWidth: true,
322
+ tableLayout: true,
323
+ textAlignLast: true,
324
+ textAnchor: true,
325
+ textAutospace: true,
326
+ textBox: true,
327
+ textBoxEdge: true,
328
+ textBoxTrim: true,
329
+ textCombineUpright: true,
330
+ textDecorationSkip: true,
331
+ textDecorationSkipInk: true,
332
+ textDecorationThickness: true,
333
+ textEmphasisColor: true,
334
+ textEmphasisPosition: true,
335
+ textEmphasisStyle: true,
336
+ textIndent: true,
337
+ textJustify: true,
338
+ textOrientation: true,
339
+ textRendering: true,
340
+ textSizeAdjust: true,
341
+ textSpacingTrim: true,
342
+ textUnderlineOffset: true,
343
+ textUnderlinePosition: true,
344
+ textWrapMode: true,
345
+ textWrapStyle: true,
346
+ timelineScope: true,
347
+ transformBox: true,
348
+ translate: true,
349
+ unicodeBidi: true,
350
+ vectorEffect: true,
351
+ viewTimeline: true,
352
+ viewTimelineAxis: true,
353
+ viewTimelineInset: true,
354
+ viewTimelineName: true,
355
+ viewTransitionClass: true,
356
+ viewTransitionName: true,
357
+ whiteSpaceCollapse: true,
358
+ wordBreak: true,
359
+ wordSpacing: true,
360
+ writingMode: true
361
+ };
362
+ var cssStylePropsUnitless = {
363
+ animation: true,
364
+ borderImage: true,
365
+ boxFlex: true,
366
+ boxFlexGroup: true,
367
+ boxOrdinalGroup: true,
368
+ columns: true,
369
+ fillOpacity: true,
370
+ floodOpacity: true,
371
+ fontSizeAdjust: true,
372
+ glyphOrientationVertical: true,
373
+ gridArea: true,
374
+ hyphenateLimitChars: true,
375
+ initialLetter: true,
376
+ KhtmlBoxFlex: true,
377
+ KhtmlBoxFlexGroup: true,
378
+ KhtmlBoxOrdinalGroup: true,
379
+ KhtmlOpacity: true,
380
+ lineHeight: true,
381
+ maskBorder: true,
382
+ maskBorderOutset: true,
383
+ maskBorderSlice: true,
384
+ maskBorderWidth: true,
385
+ mathDepth: true,
386
+ maxLines: true,
387
+ OAnimation: true,
388
+ OAnimationIterationCount: true,
389
+ OBorderImage: true,
390
+ OTabSize: true,
391
+ shapeImageThreshold: true,
392
+ stopOpacity: true,
393
+ strokeDasharray: true,
394
+ strokeDashoffset: true,
395
+ strokeMiterlimit: true,
396
+ strokeOpacity: true,
397
+ strokeWidth: true
398
+ };
399
+
400
+ //# sourceMappingURL=cssStyleProps.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssStyleProps.native.js","names":[],"sources":["cjs/cssStyleProps.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar cssStyleProps_exports = {};\n__export(cssStyleProps_exports, {\n cssStyleProps: () => cssStyleProps,\n cssStylePropsUnitless: () => cssStylePropsUnitless\n});\nmodule.exports = __toCommonJS(cssStyleProps_exports);\nvar cssStyleProps = {\n accentColor: true,\n alignmentBaseline: true,\n alignTracks: true,\n all: true,\n anchorName: true,\n anchorScope: true,\n animation: true,\n animationComposition: true,\n animationDelay: true,\n animationDirection: true,\n animationDuration: true,\n animationFillMode: true,\n animationName: true,\n animationPlayState: true,\n animationRange: true,\n animationRangeEnd: true,\n animationRangeStart: true,\n animationTimeline: true,\n animationTimingFunction: true,\n appearance: true,\n backgroundPositionX: true,\n backgroundPositionY: true,\n baselineShift: true,\n borderBlockEnd: true,\n borderBlockStart: true,\n borderCollapse: true,\n borderImageRepeat: true,\n borderImageSource: true,\n borderInlineEnd: true,\n borderInlineStart: true,\n borderSpacing: true,\n boxAlign: true,\n boxDecorationBreak: true,\n boxDirection: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxLines: true,\n boxOrdinalGroup: true,\n boxOrient: true,\n boxPack: true,\n breakAfter: true,\n breakBefore: true,\n breakInside: true,\n captionSide: true,\n caret: true,\n caretShape: true,\n clear: true,\n clip: true,\n clipRule: true,\n colorAdjust: true,\n colorInterpolation: true,\n colorInterpolationFilters: true,\n colorRendering: true,\n colorScheme: true,\n columnFill: true,\n columnRule: true,\n columnRuleColor: true,\n columnRuleStyle: true,\n columnRuleWidth: true,\n columns: true,\n columnSpan: true,\n columnWidth: true,\n container: true,\n containIntrinsicBlockSize: true,\n containIntrinsicHeight: true,\n containIntrinsicInlineSize: true,\n containIntrinsicSize: true,\n containIntrinsicWidth: true,\n contentVisibility: true,\n counterIncrement: true,\n counterReset: true,\n counterSet: true,\n cx: true,\n cy: true,\n d: true,\n dominantBaseline: true,\n emptyCells: true,\n fieldSizing: true,\n fill: true,\n fillOpacity: true,\n fillRule: true,\n flexFlow: true,\n floodColor: true,\n floodOpacity: true,\n fontFeatureSettings: true,\n fontKerning: true,\n fontLanguageOverride: true,\n fontOpticalSizing: true,\n fontPalette: true,\n fontSizeAdjust: true,\n fontSmooth: true,\n fontStretch: true,\n fontSynthesis: true,\n fontSynthesisPosition: true,\n fontSynthesisSmallCaps: true,\n fontSynthesisStyle: true,\n fontSynthesisWeight: true,\n fontVariantAlternates: true,\n fontVariantCaps: true,\n fontVariantEastAsian: true,\n fontVariantEmoji: true,\n fontVariantLigatures: true,\n fontVariantNumeric: true,\n fontVariantPosition: true,\n fontVariationSettings: true,\n fontWidth: true,\n forcedColorAdjust: true,\n glyphOrientationVertical: true,\n grid: true,\n gridArea: true,\n gridAutoColumns: true,\n gridAutoFlow: true,\n gridAutoRows: true,\n gridGap: true,\n gridTemplate: true,\n gridTemplateRows: true,\n hangingPunctuation: true,\n hyphenateCharacter: true,\n hyphenateLimitChars: true,\n hyphens: true,\n imageOrientation: true,\n imageRendering: true,\n imageResolution: true,\n imeMode: true,\n initialLetter: true,\n initialLetterAlign: true,\n insetArea: true,\n interpolateSize: true,\n justifyItems: true,\n justifySelf: true,\n justifyTracks: true,\n KhtmlBoxAlign: true,\n KhtmlBoxDirection: true,\n KhtmlBoxFlex: true,\n KhtmlBoxFlexGroup: true,\n KhtmlBoxLines: true,\n KhtmlBoxOrdinalGroup: true,\n KhtmlBoxOrient: true,\n KhtmlBoxPack: true,\n KhtmlLineBreak: true,\n KhtmlOpacity: true,\n KhtmlUserSelect: true,\n lightingColor: true,\n lineBreak: true,\n lineHeightStep: true,\n listStyle: true,\n listStyleImage: true,\n listStylePosition: true,\n listStyleType: true,\n marginTrim: true,\n marker: true,\n markerEnd: true,\n markerMid: true,\n markerStart: true,\n masonryAutoFlow: true,\n mathDepth: true,\n mathShift: true,\n mathStyle: true,\n maxLines: true,\n motion: true,\n motionDistance: true,\n motionPath: true,\n motionRotation: true,\n OAnimation: true,\n OAnimationDelay: true,\n OAnimationDirection: true,\n OAnimationDuration: true,\n OAnimationFillMode: true,\n OAnimationIterationCount: true,\n OAnimationName: true,\n OAnimationPlayState: true,\n OAnimationTimingFunction: true,\n OBackgroundSize: true,\n objectViewBox: true,\n OBorderImage: true,\n offset: true,\n offsetAnchor: true,\n offsetBlock: true,\n offsetBlockEnd: true,\n offsetBlockStart: true,\n offsetDistance: true,\n offsetInline: true,\n offsetInlineEnd: true,\n offsetInlineStart: true,\n offsetPath: true,\n offsetPosition: true,\n offsetRotate: true,\n offsetRotation: true,\n OObjectFit: true,\n OObjectPosition: true,\n OTabSize: true,\n OTextOverflow: true,\n OTransform: true,\n OTransformOrigin: true,\n OTransition: true,\n OTransitionDelay: true,\n OTransitionDuration: true,\n OTransitionProperty: true,\n OTransitionTimingFunction: true,\n overflowAnchor: true,\n overflowClipBox: true,\n overflowClipMargin: true,\n overlay: true,\n overscrollBehavior: true,\n overscrollBehaviorBlock: true,\n overscrollBehaviorInline: true,\n overscrollBehaviorX: true,\n overscrollBehaviorY: true,\n page: true,\n pageBreakAfter: true,\n pageBreakBefore: true,\n pageBreakInside: true,\n paintOrder: true,\n perspectiveOrigin: true,\n placeContent: true,\n placeItems: true,\n placeSelf: true,\n positionAnchor: true,\n positionArea: true,\n positionTry: true,\n positionTryFallbacks: true,\n positionTryOptions: true,\n positionTryOrder: true,\n positionVisibility: true,\n printColorAdjust: true,\n quotes: true,\n r: true,\n rubyAlign: true,\n rubyMerge: true,\n rubyOverhang: true,\n rubyPosition: true,\n rx: true,\n ry: true,\n scrollbarColor: true,\n scrollbarGutter: true,\n scrollBehavior: true,\n scrollInitialTarget: true,\n scrollMargin: true,\n scrollMarginBlock: true,\n scrollMarginBlockEnd: true,\n scrollMarginBlockStart: true,\n scrollMarginBottom: true,\n scrollMarginInline: true,\n scrollMarginInlineEnd: true,\n scrollMarginInlineStart: true,\n scrollMarginLeft: true,\n scrollMarginRight: true,\n scrollMarginTop: true,\n scrollPadding: true,\n scrollPaddingBlock: true,\n scrollPaddingBlockEnd: true,\n scrollPaddingBlockStart: true,\n scrollPaddingBottom: true,\n scrollPaddingInline: true,\n scrollPaddingInlineEnd: true,\n scrollPaddingInlineStart: true,\n scrollPaddingLeft: true,\n scrollPaddingRight: true,\n scrollPaddingTop: true,\n scrollSnapAlign: true,\n scrollSnapCoordinate: true,\n scrollSnapDestination: true,\n scrollSnapMargin: true,\n scrollSnapMarginBottom: true,\n scrollSnapMarginLeft: true,\n scrollSnapMarginRight: true,\n scrollSnapMarginTop: true,\n scrollSnapPointsX: true,\n scrollSnapPointsY: true,\n scrollSnapStop: true,\n scrollSnapType: true,\n scrollSnapTypeX: true,\n scrollSnapTypeY: true,\n scrollTimeline: true,\n scrollTimelineAxis: true,\n scrollTimelineName: true,\n shapeImageThreshold: true,\n shapeMargin: true,\n shapeOutside: true,\n shapeRendering: true,\n speakAs: true,\n stopColor: true,\n stopOpacity: true,\n stroke: true,\n strokeColor: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeLinecap: true,\n strokeLinejoin: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true,\n tableLayout: true,\n textAlignLast: true,\n textAnchor: true,\n textAutospace: true,\n textBox: true,\n textBoxEdge: true,\n textBoxTrim: true,\n textCombineUpright: true,\n textDecorationSkip: true,\n textDecorationSkipInk: true,\n textDecorationThickness: true,\n textEmphasisColor: true,\n textEmphasisPosition: true,\n textEmphasisStyle: true,\n textIndent: true,\n textJustify: true,\n textOrientation: true,\n textRendering: true,\n textSizeAdjust: true,\n textSpacingTrim: true,\n textUnderlineOffset: true,\n textUnderlinePosition: true,\n textWrapMode: true,\n textWrapStyle: true,\n timelineScope: true,\n transformBox: true,\n translate: true,\n unicodeBidi: true,\n vectorEffect: true,\n viewTimeline: true,\n viewTimelineAxis: true,\n viewTimelineInset: true,\n viewTimelineName: true,\n viewTransitionClass: true,\n viewTransitionName: true,\n whiteSpaceCollapse: true,\n wordBreak: true,\n wordSpacing: true,\n writingMode: true\n};\nvar cssStylePropsUnitless = {\n animation: true,\n borderImage: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columns: true,\n fillOpacity: true,\n floodOpacity: true,\n fontSizeAdjust: true,\n glyphOrientationVertical: true,\n gridArea: true,\n hyphenateLimitChars: true,\n initialLetter: true,\n KhtmlBoxFlex: true,\n KhtmlBoxFlexGroup: true,\n KhtmlBoxOrdinalGroup: true,\n KhtmlOpacity: true,\n lineHeight: true,\n maskBorder: true,\n maskBorderOutset: true,\n maskBorderSlice: true,\n maskBorderWidth: true,\n mathDepth: true,\n maxLines: true,\n OAnimation: true,\n OAnimationIterationCount: true,\n OBorderImage: true,\n OTabSize: true,\n shapeImageThreshold: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true\n};\n//# sourceMappingURL=cssStyleProps.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,wBAAwB,CAAC;AAC7B,SAAS,uBAAuB;CAC9B,qBAAqB;CACrB,6BAA6B;AAC/B,CAAC;AACD,OAAO,UAAU,aAAa,qBAAqB;AACnD,IAAI,gBAAgB;CAClB,aAAa;CACb,mBAAmB;CACnB,aAAa;CACb,KAAK;CACL,YAAY;CACZ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gB;CAChB,kBAAkB;CAClB,eAAe;CACf,aAAa;CACb,aAAa;CACb,eAAe;CACf,YAAY;CACZ,eAAe;CACf,SAAS;CACT,aAAa;CACb,aAAa;CACb,oBAAoB;CACpB,oBAAoB;CACpB,uBAAuB;CACvB,yBAAyB;CACzB,mBAAmB;CACnB,sBAAsB;CACtB,mBAAmB;CACnB,YAAY;CACZ,aAAa;CACb,iBAAiB;CACjB,eAAe;CACf,gBAAgB;CAChB,iBAAiB;CACjB,qBAAqB;CACrB,uBAAuB;CACvB,cAAc;CACd,eAAe;CACf,eAAe;CACf,cAAc;CACd,WAAW;CACX,aAAa;CACb,cAAc;CACd,cAAc;CACd,kBAAkB;CAClB,mBAAmB;CACnB,kBAAkB;CAClB,qBAAqB;CACrB,oBAAoB;CACpB,oBAAoB;CACpB,WAAW;CACX,aAAa;CACb,aAAa;AACf;AACA,IAAI,wBAAwB;CAC1B,WAAW;CACX,aAAa;CACb,SAAS;CACT,cAAc;CACd,iBAAiB;CACjB,SAAS;CACT,aAAa;CACb,cAAc;CACd,gBAAgB;CAChB,0BAA0B;CAC1B,UAAU;CACV,qBAAqB;CACrB,eAAe;CACf,cAAc;CACd,mBAAmB;CACnB,sBAAsB;CACtB,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,kBAAkB;CAClB,iBAAiB;CACjB,iBAAiB;CACjB,WAAW;CACX,UAAU;CACV,YAAY;CACZ,0BAA0B;CAC1B,cAAc;CACd,UAAU;CACV,qBAAqB;CACrB,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,kBAAkB;CAClB,eAAe;CACf,aAAa;AACf"}
@@ -19,20 +19,26 @@ var __copyProps = (to, from, except, desc) => {
19
19
  };
20
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
21
  var themeClassNames_exports = {};
22
- __export(themeClassNames_exports, { getThemeClassNames: () => getThemeClassNames });
22
+ __export(themeClassNames_exports, {
23
+ getThemeClassNames: () => getThemeClassNames,
24
+ getThemeScheme: () => getThemeScheme
25
+ });
23
26
  module.exports = __toCommonJS(themeClassNames_exports);
24
- const schemePrefix = /^(dark|light)_/;
25
- function getThemeClassNames(name, isRoot = false) {
26
- const themeClassName = name.replace(schemePrefix, "");
27
- const fullThemeClassName = name === themeClassName ? "" : ` t_${name}`;
28
- const themeNameParts = themeClassName.split("_");
29
- let themeClasses = `t_${themeClassName}${fullThemeClassName}`;
30
- if (themeNameParts.length > 1) {
31
- const hierarchyClasses = [];
32
- for (let i = 1; i <= themeNameParts.length; i++) {
33
- hierarchyClasses.push(`t_${themeNameParts.slice(0, i).join("_")}`);
27
+ const schemePrefix = /^(light|dark)(?=_|$)/;
28
+ function getThemeScheme(name) {
29
+ return schemePrefix.exec(name)?.[0];
30
+ }
31
+ function getThemeClassNames(name, isRoot, schemeAuthored) {
32
+ const scheme = getThemeScheme(name);
33
+ const relativeName = scheme ? name.slice(scheme.length + 1) : name;
34
+ let classes = isRoot ? "" : "t_sub_theme";
35
+ if (relativeName) {
36
+ let prefix = "t";
37
+ for (const part of relativeName.split("_")) {
38
+ prefix += `_${part}`;
39
+ classes += ` ${prefix}`;
34
40
  }
35
- themeClasses = `${hierarchyClasses.join(" ")}${fullThemeClassName}`;
36
41
  }
37
- return `${isRoot ? "" : "t_sub_theme"} ${themeClasses}`;
42
+ if (schemeAuthored && scheme) classes += ` t_${name}`;
43
+ return classes;
38
44
  }
@@ -21,21 +21,44 @@ var __copyProps = (to, from, except, desc) => {
21
21
  };
22
22
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
23
  var themeClassNames_exports = {};
24
- __export(themeClassNames_exports, { getThemeClassNames: () => getThemeClassNames });
24
+ __export(themeClassNames_exports, {
25
+ getThemeClassNames: () => getThemeClassNames,
26
+ getThemeScheme: () => getThemeScheme
27
+ });
25
28
  module.exports = __toCommonJS(themeClassNames_exports);
26
- var schemePrefix = /^(dark|light)_/;
27
- function getThemeClassNames(name) {
28
- var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
29
- var themeClassName = name.replace(schemePrefix, "");
30
- var fullThemeClassName = name === themeClassName ? "" : ` t_${name}`;
31
- var themeNameParts = themeClassName.split("_");
32
- var themeClasses = `t_${themeClassName}${fullThemeClassName}`;
33
- if (themeNameParts.length > 1) {
34
- var hierarchyClasses = [];
35
- for (var i = 1; i <= themeNameParts.length; i++) {
36
- hierarchyClasses.push(`t_${themeNameParts.slice(0, i).join("_")}`);
29
+ var schemePrefix = /^(light|dark)(?=_|$)/;
30
+ function getThemeScheme(name) {
31
+ var _schemePrefix_exec;
32
+ return (_schemePrefix_exec = schemePrefix.exec(name)) === null || _schemePrefix_exec === void 0 ? void 0 : _schemePrefix_exec[0];
33
+ }
34
+ function getThemeClassNames(name, isRoot, schemeAuthored) {
35
+ var scheme = getThemeScheme(name);
36
+ var relativeName = scheme ? name.slice(scheme.length + 1) : name;
37
+ var classes = isRoot ? "" : "t_sub_theme";
38
+ if (relativeName) {
39
+ var prefix = "t";
40
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
41
+ try {
42
+ for (var _iterator = relativeName.split("_")[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
43
+ var part = _step.value;
44
+ prefix += `_${part}`;
45
+ classes += ` ${prefix}`;
46
+ }
47
+ } catch (err) {
48
+ _didIteratorError = true;
49
+ _iteratorError = err;
50
+ } finally {
51
+ try {
52
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
53
+ _iterator.return();
54
+ }
55
+ } finally {
56
+ if (_didIteratorError) {
57
+ throw _iteratorError;
58
+ }
59
+ }
37
60
  }
38
- themeClasses = `${hierarchyClasses.join(" ")}${fullThemeClassName}`;
39
61
  }
40
- return `${isRoot ? "" : "t_sub_theme"} ${themeClasses}`;
62
+ if (schemeAuthored && scheme) classes += ` t_${name}`;
63
+ return classes;
41
64
  }
@@ -21,23 +21,46 @@ var __copyProps = (to, from, except, desc) => {
21
21
  };
22
22
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
23
  var themeClassNames_exports = {};
24
- __export(themeClassNames_exports, { getThemeClassNames: () => getThemeClassNames });
24
+ __export(themeClassNames_exports, {
25
+ getThemeClassNames: () => getThemeClassNames,
26
+ getThemeScheme: () => getThemeScheme
27
+ });
25
28
  module.exports = __toCommonJS(themeClassNames_exports);
26
- var schemePrefix = /^(dark|light)_/;
27
- function getThemeClassNames(name) {
28
- var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
29
- var themeClassName = name.replace(schemePrefix, "");
30
- var fullThemeClassName = name === themeClassName ? "" : ` t_${name}`;
31
- var themeNameParts = themeClassName.split("_");
32
- var themeClasses = `t_${themeClassName}${fullThemeClassName}`;
33
- if (themeNameParts.length > 1) {
34
- var hierarchyClasses = [];
35
- for (var i = 1; i <= themeNameParts.length; i++) {
36
- hierarchyClasses.push(`t_${themeNameParts.slice(0, i).join("_")}`);
29
+ var schemePrefix = /^(light|dark)(?=_|$)/;
30
+ function getThemeScheme(name) {
31
+ var _schemePrefix_exec;
32
+ return (_schemePrefix_exec = schemePrefix.exec(name)) === null || _schemePrefix_exec === void 0 ? void 0 : _schemePrefix_exec[0];
33
+ }
34
+ function getThemeClassNames(name, isRoot, schemeAuthored) {
35
+ var scheme = getThemeScheme(name);
36
+ var relativeName = scheme ? name.slice(scheme.length + 1) : name;
37
+ var classes = isRoot ? "" : "t_sub_theme";
38
+ if (relativeName) {
39
+ var prefix = "t";
40
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
41
+ try {
42
+ for (var _iterator = relativeName.split("_")[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
43
+ var part = _step.value;
44
+ prefix += `_${part}`;
45
+ classes += ` ${prefix}`;
46
+ }
47
+ } catch (err) {
48
+ _didIteratorError = true;
49
+ _iteratorError = err;
50
+ } finally {
51
+ try {
52
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
53
+ _iterator.return();
54
+ }
55
+ } finally {
56
+ if (_didIteratorError) {
57
+ throw _iteratorError;
58
+ }
59
+ }
37
60
  }
38
- themeClasses = `${hierarchyClasses.join(" ")}${fullThemeClassName}`;
39
61
  }
40
- return `${isRoot ? "" : "t_sub_theme"} ${themeClasses}`;
62
+ if (schemeAuthored && scheme) classes += ` t_${name}`;
63
+ return classes;
41
64
  }
42
65
 
43
66
  //# sourceMappingURL=themeClassNames.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"themeClassNames.native.js","names":[],"sources":["cjs/themeClassNames.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar themeClassNames_exports = {};\n__export(themeClassNames_exports, {\n getThemeClassNames: () => getThemeClassNames\n});\nmodule.exports = __toCommonJS(themeClassNames_exports);\nvar schemePrefix = /^(dark|light)_/;\nfunction getThemeClassNames(name) {\n var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var themeClassName = name.replace(schemePrefix, \"\");\n var fullThemeClassName = name === themeClassName ? \"\" : ` t_${name}`;\n var themeNameParts = themeClassName.split(\"_\");\n var themeClasses = `t_${themeClassName}${fullThemeClassName}`;\n if (themeNameParts.length > 1) {\n var hierarchyClasses = [];\n for (var i = 1; i <= themeNameParts.length; i++) {\n hierarchyClasses.push(`t_${themeNameParts.slice(0, i).join(\"_\")}`);\n }\n themeClasses = `${hierarchyClasses.join(\" \")}${fullThemeClassName}`;\n }\n return `${isRoot ? \"\" : \"t_sub_theme\"} ${themeClasses}`;\n}\n//# sourceMappingURL=themeClassNames.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB,EAChC,0BAA0B,mBAC5B,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,IAAI,eAAe;AACnB,SAAS,mBAAmB,MAAM;CAChC,IAAI,SAAS,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC9E,IAAI,iBAAiB,KAAK,QAAQ,cAAc,EAAE;CAClD,IAAI,qBAAqB,SAAS,iBAAiB,KAAK,MAAM;CAC9D,IAAI,iBAAiB,eAAe,MAAM,GAAG;CAC7C,IAAI,eAAe,KAAK,iBAAiB;CACzC,IAAI,eAAe,SAAS,GAAG;EAC7B,IAAI,mBAAmB,CAAC;EACxB,KAAK,IAAI,IAAI,GAAG,KAAK,eAAe,QAAQ,KAAK;GAC/C,iBAAiB,KAAK,KAAK,eAAe,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG;EACnE;EACA,eAAe,GAAG,iBAAiB,KAAK,GAAG,IAAI;CACjD;CACA,OAAO,GAAG,SAAS,KAAK,cAAc,GAAG;AAC3C"}
1
+ {"version":3,"file":"themeClassNames.native.js","names":[],"sources":["cjs/themeClassNames.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar themeClassNames_exports = {};\n__export(themeClassNames_exports, {\n getThemeClassNames: () => getThemeClassNames,\n getThemeScheme: () => getThemeScheme\n});\nmodule.exports = __toCommonJS(themeClassNames_exports);\nvar schemePrefix = /^(light|dark)(?=_|$)/;\nfunction getThemeScheme(name) {\n var _schemePrefix_exec;\n return (_schemePrefix_exec = schemePrefix.exec(name)) === null || _schemePrefix_exec === void 0 ? void 0 : _schemePrefix_exec[0];\n}\nfunction getThemeClassNames(name, isRoot, schemeAuthored) {\n var scheme = getThemeScheme(name);\n var relativeName = scheme ? name.slice(scheme.length + 1) : name;\n var classes = isRoot ? \"\" : \"t_sub_theme\";\n if (relativeName) {\n var prefix = \"t\";\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = relativeName.split(\"_\")[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var part = _step.value;\n prefix += `_${part}`;\n classes += ` ${prefix}`;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n if (schemeAuthored && scheme) classes += ` t_${name}`;\n return classes;\n}\n//# sourceMappingURL=themeClassNames.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB;CAChC,0BAA0B;CAC1B,sBAAsB;AACxB,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,IAAI,eAAe;AACnB,SAAS,eAAe,MAAM;CAC5B,IAAI;CACJ,QAAQ,qBAAqB,aAAa,KAAK,IAAI,OAAO,QAAQ,uBAAuB,KAAK,IAAI,KAAK,IAAI,mBAAmB;AAChI;AACA,SAAS,mBAAmB,MAAM,QAAQ,gBAAgB;CACxD,IAAI,SAAS,eAAe,IAAI;CAChC,IAAI,eAAe,SAAS,KAAK,MAAM,OAAO,SAAS,CAAC,IAAI;CAC5D,IAAI,UAAU,SAAS,KAAK;CAC5B,IAAI,cAAc;EAChB,IAAI,SAAS;EACb,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;EACvF,IAAI;GACF,KAAK,IAAI,YAAY,aAAa,MAAM,GAAG,CAAC,CAAC,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;IACxK,IAAI,OAAO,MAAM;IACjB,UAAU,IAAI;IACd,WAAW,IAAI;GACjB;EACF,SAAS,KAAK;GACZ,oBAAoB;GACpB,iBAAiB;EACnB,UAAU;GACR,IAAI;IACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;KAC1D,UAAU,OAAO;IACnB;GACF,UAAU;IACR,IAAI,mBAAmB;KACrB,MAAM;IACR;GACF;EACF;CACF;CACA,IAAI,kBAAkB,QAAQ,WAAW,MAAM;CAC/C,OAAO;AACT"}
@@ -34,23 +34,28 @@ __export(validStyleProps_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(validStyleProps_exports);
36
36
  var import_constants = require("@tamagui/constants");
37
+ var import_cssStyleProps = require("./cssStyleProps.cjs");
37
38
  var import_webOnlyStyleProps = require("./webOnlyStyleProps.cjs");
38
39
  var import_toStylePropsObject = require("./toStylePropsObject.cjs");
39
40
  var import_tokenCategories = require("./tokenCategories.cjs");
40
41
  const cssShorthandLonghands = (0, import_toStylePropsObject.toStylePropsObject)("borderWidth borderStyle borderColor borderTopWidth borderTopStyle borderTopColor borderRightWidth borderRightStyle borderRightColor borderBottomWidth borderBottomStyle borderBottomColor borderLeftWidth borderLeftStyle borderLeftColor outlineWidth outlineStyle outlineColor outlineOffset");
41
- const textColors = (0, import_toStylePropsObject.toStylePropsObject)("color textDecorationColor textShadowColor");
42
+ const cssTextColors = (0, import_toStylePropsObject.toStylePropsObject)("color textDecorationColor");
43
+ const textColors = (0, import_toStylePropsObject.toStylePropsObject)(cssTextColors, "textShadowColor");
42
44
  const inputColors = (0, import_toStylePropsObject.toStylePropsObject)("placeholderTextColor selectionColor cursorColor selectionHandleColor");
43
- const nonAnimatableViewProps = (0, import_toStylePropsObject.toStylePropsObject)("alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle borderBlockStyle borderBlockEndStyle borderBlockStartStyle borderInlineStyle borderInlineEndStyle borderInlineStartStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility");
45
+ const nonAnimatableViewProps = (0, import_toStylePropsObject.toStylePropsObject)("alignContent alignItems alignSelf backfaceVisibility borderCurve borderStyle boxSizing cursor direction display flexDirection flexWrap isolation justifyContent mixBlendMode outlineStyle overflow pointerEvents position visibility");
44
46
  const nonAnimatableFontProps = (0, import_toStylePropsObject.toStylePropsObject)("fontFamily fontStyle fontVariant textTransform");
45
- const nonAnimatableTextOnlyProps = (0, import_toStylePropsObject.toStylePropsObject)("textAlign textDecorationLine textDecorationStyle userSelect writingDirection");
46
- const nonAnimatableUnitlessProps = (0, import_toStylePropsObject.toStylePropsObject)("WebkitLineClamp lineClamp gridTemplateColumns gridTemplateAreas");
47
- const nonAnimatableStyleProps = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, import_webOnlyStyleProps.nonAnimatableWebViewProps, import_webOnlyStyleProps.nonAnimatableWebTextProps);
48
- const stylePropsUnitless = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableUnitlessProps, "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth columnCount flex flexGrow flexOrder flexPositive flexShrink flexNegative fontWeight gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart opacity order orphans tabSize widows zIndex zoom scale scaleX scaleY scaleZ shadowOpacity");
47
+ const cssTextAlignmentProps = (0, import_toStylePropsObject.toStylePropsObject)("textAlign textDecorationLine textDecorationStyle userSelect");
48
+ const nonAnimatableTextOnlyProps = (0, import_toStylePropsObject.toStylePropsObject)(cssTextAlignmentProps, "writingDirection");
49
+ const nonAnimatableUnitlessProps = (0, import_toStylePropsObject.toStylePropsObject)("WebkitLineClamp lineClamp");
50
+ const webOnlyUnitlessProps = (0, import_toStylePropsObject.toStylePropsObject)("animationIterationCount borderImageOutset borderImageSlice borderImageWidth columnCount flexOrder flexPositive flexNegative order orphans tabSize widows zoom scaleZ");
51
+ const cssGridProps = (0, import_toStylePropsObject.toStylePropsObject)("gridTemplateColumns gridTemplateAreas gridRow gridRowEnd gridRowGap gridRowStart gridColumn gridColumnEnd gridColumnGap gridColumnStart");
52
+ const nonAnimatableStyleProps = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableViewProps, nonAnimatableFontProps, nonAnimatableTextOnlyProps, nonAnimatableUnitlessProps, cssGridProps, import_webOnlyStyleProps.nonAnimatableWebViewProps, import_webOnlyStyleProps.nonAnimatableWebTextProps);
53
+ const stylePropsUnitless = (0, import_toStylePropsObject.toStylePropsObject)(import_cssStyleProps.cssStylePropsUnitless, nonAnimatableUnitlessProps, webOnlyUnitlessProps, cssGridProps, "aspectRatio flex flexGrow flexShrink fontWeight opacity zIndex scale scaleX scaleY shadowOpacity");
49
54
  const stylePropsTransform = (0, import_toStylePropsObject.toStylePropsObject)("x y scale perspective scaleX scaleY skewX skewY matrix rotate rotateY rotateX rotateZ");
50
- const stylePropsView = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableViewProps, "borderBottomWidth borderLeftWidth borderRightWidth borderBlockWidth borderBlockEndWidth borderBlockStartWidth borderInlineWidth borderInlineEndWidth borderInlineStartWidth borderTopWidth borderWidth transform transformOrigin borderEndWidth borderStartWidth bottom end flexBasis gap columnGap rowGap left margin marginBlock marginBlockEnd marginBlockStart marginInline marginInlineStart marginInlineEnd marginBottom marginEnd marginHorizontal marginLeft marginRight marginStart marginTop marginVertical padding paddingBottom paddingInline paddingBlock paddingBlockEnd paddingBlockStart paddingInlineEnd paddingInlineStart paddingEnd paddingHorizontal paddingLeft paddingRight paddingStart paddingTop paddingVertical right start top inset insetBlock insetBlockEnd insetBlockStart insetInline insetInlineEnd insetInlineStart shadowOffset backgroundColor borderColor borderBlockStartColor borderBlockEndColor borderBlockColor borderBottomColor borderInlineColor borderInlineStartColor borderInlineEndColor borderTopColor borderLeftColor borderRightColor borderEndColor borderStartColor shadowColor outlineColor", "caretColor", "borderRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderTopStartRadius borderTopEndRadius borderBottomStartRadius borderBottomEndRadius borderStartStartRadius borderStartEndRadius borderEndStartRadius borderEndEndRadius width height minWidth minHeight maxWidth maxHeight blockSize minBlockSize maxBlockSize inlineSize minInlineSize maxInlineSize shadowRadius", stylePropsTransform, stylePropsUnitless, import_constants.isAndroid ? { elevationAndroid: true } : void 0, "boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth", import_webOnlyStyleProps.webOnlyStylePropsView);
51
55
  const stylePropsFont = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableFontProps, "fontSize fontWeight letterSpacing lineHeight");
52
- const stylePropsTextOnly = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsFont, nonAnimatableTextOnlyProps, textColors, "textShadow textShadowOffset textShadowRadius textDecoration font verticalAlign", import_webOnlyStyleProps.webOnlyStylePropsText);
56
+ const stylePropsTextOnly = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsFont, nonAnimatableTextOnlyProps, textColors, "textShadow textShadowOffset textShadowRadius textDecoration verticalAlign", "font", import_webOnlyStyleProps.webOnlyStylePropsText);
57
+ const stylePropsView = (0, import_toStylePropsObject.toStylePropsObject)(nonAnimatableViewProps, "borderBottomWidth borderLeftWidth borderRightWidth borderBlockWidth borderBlockEndWidth borderBlockStartWidth borderInlineWidth borderInlineEndWidth borderInlineStartWidth borderTopWidth borderWidth transform transformOrigin borderEndWidth borderStartWidth bottom end flexBasis gap columnGap rowGap left margin marginBlock marginBlockEnd marginBlockStart marginInline marginInlineStart marginInlineEnd marginBottom marginEnd marginHorizontal marginLeft marginRight marginStart marginTop marginVertical padding paddingBottom paddingInline paddingBlock paddingBlockEnd paddingBlockStart paddingInlineEnd paddingInlineStart paddingEnd paddingHorizontal paddingLeft paddingRight paddingStart paddingTop paddingVertical right start top inset insetBlock insetBlockEnd insetBlockStart insetInline insetInlineEnd insetInlineStart shadowOffset backgroundColor borderColor borderBlockStartColor borderBlockEndColor borderBlockColor borderBottomColor borderInlineColor borderInlineStartColor borderInlineEndColor borderTopColor borderLeftColor borderRightColor borderEndColor borderStartColor shadowColor outlineColor", "caretColor", "borderRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderTopStartRadius borderTopEndRadius borderBottomStartRadius borderBottomEndRadius borderStartStartRadius borderStartEndRadius borderEndStartRadius borderEndEndRadius width height minWidth minHeight maxWidth maxHeight blockSize minBlockSize maxBlockSize inlineSize minInlineSize maxInlineSize shadowRadius", stylePropsTransform, stylePropsUnitless, import_constants.isAndroid ? { elevationAndroid: true } : void 0, "boxShadow border borderBlock borderInline filter background backgroundImage experimental_backgroundImage outline outlineOffset outlineWidth", "fill stroke strokeWidth", import_webOnlyStyleProps.webOnlyStylePropsView, import_cssStyleProps.cssStyleProps, (0, import_toStylePropsObject.toStylePropsObject)(stylePropsFont, cssTextColors, cssTextAlignmentProps, import_webOnlyStyleProps.nonAnimatableWebTextProps, "textShadow textDecoration verticalAlign font"));
53
58
  const stylePropsText = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsView, stylePropsTextOnly);
54
59
  const stylePropsInput = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsText, inputColors);
55
- const stylePropsAll = stylePropsInput;
60
+ const stylePropsAll = (0, import_toStylePropsObject.toStylePropsObject)(stylePropsInput, import_cssStyleProps.cssStyleProps, cssGridProps, import_webOnlyStyleProps.webOnlyStylePropsView, import_webOnlyStyleProps.nonAnimatableWebTextProps, "font", nonAnimatableUnitlessProps, webOnlyUnitlessProps);
56
61
  const validStyles = stylePropsView;