@tamagui/web 1.97.1 → 1.98.1
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/cjs/constants/webToNativeProps.js +22 -0
- package/dist/cjs/constants/webToNativeProps.js.map +6 -0
- package/dist/cjs/constants/webToNativeProps.native.js +189 -0
- package/dist/cjs/constants/webToNativeProps.native.js.map +6 -0
- package/dist/cjs/helpers/expandStyle.js +5 -1
- package/dist/cjs/helpers/expandStyle.js.map +1 -1
- package/dist/cjs/helpers/expandStyle.native.js +10 -1
- package/dist/cjs/helpers/expandStyle.native.js.map +2 -2
- package/dist/cjs/helpers/expandStyles.js +1 -0
- package/dist/cjs/helpers/expandStyles.js.map +1 -1
- package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/skipProps.js +1 -0
- package/dist/cjs/helpers/skipProps.js.map +1 -1
- package/dist/cjs/helpers/skipProps.native.js +2 -16
- package/dist/cjs/helpers/skipProps.native.js.map +2 -2
- package/dist/cjs/helpers/webPropsToSkip.js +21 -0
- package/dist/cjs/helpers/webPropsToSkip.js.map +6 -0
- package/dist/cjs/helpers/webPropsToSkip.native.js +79 -0
- package/dist/cjs/helpers/webPropsToSkip.native.js.map +6 -0
- package/dist/cjs/interfaces/KeyTypes.native.js.map +1 -1
- package/dist/cjs/views/Slot.js +5 -2
- package/dist/cjs/views/Slot.js.map +1 -1
- package/dist/cjs/views/Slot.native.js +2 -2
- package/dist/cjs/views/Slot.native.js.map +2 -2
- package/dist/esm/constants/webToNativeProps.js +6 -0
- package/dist/esm/constants/webToNativeProps.js.map +6 -0
- package/dist/esm/constants/webToNativeProps.mjs +3 -0
- package/dist/esm/constants/webToNativeProps.native.js +167 -0
- package/dist/esm/constants/webToNativeProps.native.js.map +6 -0
- package/dist/esm/helpers/expandStyle.js +8 -0
- package/dist/esm/helpers/expandStyle.js.map +1 -1
- package/dist/esm/helpers/expandStyle.mjs +3 -0
- package/dist/esm/helpers/expandStyle.native.js +10 -0
- package/dist/esm/helpers/expandStyle.native.js.map +2 -2
- package/dist/esm/helpers/expandStyles.js +1 -0
- package/dist/esm/helpers/expandStyles.js.map +1 -1
- package/dist/esm/helpers/expandStyles.mjs +1 -0
- package/dist/esm/helpers/expandStyles.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/skipProps.js +1 -0
- package/dist/esm/helpers/skipProps.js.map +1 -1
- package/dist/esm/helpers/skipProps.mjs +1 -0
- package/dist/esm/helpers/skipProps.native.js +2 -15
- package/dist/esm/helpers/skipProps.native.js.map +2 -2
- package/dist/esm/helpers/webPropsToSkip.js +5 -0
- package/dist/esm/helpers/webPropsToSkip.js.map +6 -0
- package/dist/esm/helpers/webPropsToSkip.mjs +2 -0
- package/dist/esm/helpers/webPropsToSkip.native.js +58 -0
- package/dist/esm/helpers/webPropsToSkip.native.js.map +6 -0
- package/dist/esm/views/Slot.js +6 -3
- package/dist/esm/views/Slot.js.map +1 -1
- package/dist/esm/views/Slot.mjs +16 -15
- package/dist/esm/views/Slot.native.js +3 -3
- package/dist/esm/views/Slot.native.js.map +2 -2
- package/package.json +12 -15
- package/src/constants/webToNativeProps.native.tsx +88 -0
- package/src/constants/webToNativeProps.tsx +3 -0
- package/src/helpers/expandStyle.ts +14 -0
- package/src/helpers/expandStyles.ts +1 -0
- package/src/helpers/getSplitStyles.tsx +4 -9
- package/src/helpers/skipProps.ts +3 -15
- package/src/helpers/webPropsToSkip.native.ts +54 -0
- package/src/helpers/webPropsToSkip.ts +1 -0
- package/src/interfaces/KeyTypes.tsx +21 -0
- package/src/interfaces/TamaguiComponentPropsBaseBase.tsx +1 -1
- package/src/types.tsx +219 -18
- package/src/views/Slot.tsx +7 -2
- package/types/_withStableStyle.d.ts.map +1 -1
- package/types/config.d.ts +2 -2
- package/types/config.d.ts.map +1 -1
- package/types/constants/webToNativeProps.d.ts +3 -0
- package/types/constants/webToNativeProps.d.ts.map +1 -0
- package/types/constants/webToNativeProps.native.d.ts +3 -0
- package/types/constants/webToNativeProps.native.d.ts.map +1 -0
- package/types/createComponent.d.ts +3 -3
- package/types/createComponent.d.ts.map +1 -1
- package/types/createFont.d.ts.map +1 -1
- package/types/createTheme.d.ts.map +1 -1
- package/types/createVariable.d.ts.map +1 -1
- package/types/createVariables.d.ts.map +1 -1
- package/types/helpers/expandStyle.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +2 -2
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/skipProps.d.ts.map +1 -1
- package/types/helpers/webPropsToSkip.d.ts +2 -0
- package/types/helpers/webPropsToSkip.d.ts.map +1 -0
- package/types/helpers/webPropsToSkip.native.d.ts +55 -0
- package/types/helpers/webPropsToSkip.native.d.ts.map +1 -0
- package/types/interfaces/KeyTypes.d.ts +2 -2
- package/types/interfaces/KeyTypes.d.ts.map +1 -1
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts +1 -1
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -1
- package/types/types.d.ts +215 -18
- package/types/types.d.ts.map +1 -1
- package/types/views/Slot.d.ts.map +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const webPropsToSkip = {
|
|
2
|
+
whiteSpace: 1,
|
|
3
|
+
wordWrap: 1,
|
|
4
|
+
textOverflow: 1,
|
|
5
|
+
textDecorationDistance: 1,
|
|
6
|
+
cursor: 1,
|
|
7
|
+
contain: 1,
|
|
8
|
+
boxSizing: 1,
|
|
9
|
+
touchAction: 1,
|
|
10
|
+
boxShadow: 1,
|
|
11
|
+
outlineStyle: 1,
|
|
12
|
+
outlineOffset: 1,
|
|
13
|
+
outlineWidth: 1,
|
|
14
|
+
outlineColor: 1,
|
|
15
|
+
filter: 1,
|
|
16
|
+
backdropFilter: 1,
|
|
17
|
+
backgroundImage: 1,
|
|
18
|
+
mixBlendMode: 1,
|
|
19
|
+
scrollbarWidth: 1,
|
|
20
|
+
backgroundOrigin: 1,
|
|
21
|
+
backgroundPosition: 1,
|
|
22
|
+
backgroundRepeat: 1,
|
|
23
|
+
backgroundSize: 1,
|
|
24
|
+
backgroundClip: 1,
|
|
25
|
+
backgroundBlendMode: 1,
|
|
26
|
+
backgroundAttachment: 1,
|
|
27
|
+
background: 1,
|
|
28
|
+
clipPath: 1,
|
|
29
|
+
caretColor: 1,
|
|
30
|
+
transformStyle: 1,
|
|
31
|
+
mask: 1,
|
|
32
|
+
maskImage: 1,
|
|
33
|
+
textEmphasis: 1,
|
|
34
|
+
borderImage: 1,
|
|
35
|
+
float: 1,
|
|
36
|
+
content: 1,
|
|
37
|
+
overflowBlock: 1,
|
|
38
|
+
overflowInline: 1,
|
|
39
|
+
maskBorder: 1,
|
|
40
|
+
maskBorderMode: 1,
|
|
41
|
+
maskBorderOutset: 1,
|
|
42
|
+
maskBorderRepeat: 1,
|
|
43
|
+
maskBorderSlice: 1,
|
|
44
|
+
maskBorderSource: 1,
|
|
45
|
+
maskBorderWidth: 1,
|
|
46
|
+
maskClip: 1,
|
|
47
|
+
maskComposite: 1,
|
|
48
|
+
maskMode: 1,
|
|
49
|
+
maskOrigin: 1,
|
|
50
|
+
maskPosition: 1,
|
|
51
|
+
maskRepeat: 1,
|
|
52
|
+
maskSize: 1,
|
|
53
|
+
maskType: 1,
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const webPropsToSkip = {}
|
|
@@ -21,6 +21,9 @@ export type ColorKeys =
|
|
|
21
21
|
| 'borderBlockColor'
|
|
22
22
|
| 'borderBlockEndColor'
|
|
23
23
|
| 'borderBlockStartColor'
|
|
24
|
+
| 'borderInlineColor'
|
|
25
|
+
| 'borderInlineStartColor'
|
|
26
|
+
| 'borderInlineEndColor'
|
|
24
27
|
|
|
25
28
|
export type SpaceKeys =
|
|
26
29
|
| 'space'
|
|
@@ -44,6 +47,18 @@ export type SpaceKeys =
|
|
|
44
47
|
| 'marginRight'
|
|
45
48
|
| 'marginEnd'
|
|
46
49
|
| 'marginStart'
|
|
50
|
+
| 'marginBlock'
|
|
51
|
+
| 'marginBlockStart'
|
|
52
|
+
| 'marginBlockEnd'
|
|
53
|
+
| 'marginInline'
|
|
54
|
+
| 'marginInlineStart'
|
|
55
|
+
| 'marginInlineEnd'
|
|
56
|
+
| 'paddingBlock'
|
|
57
|
+
| 'paddingBlockStart'
|
|
58
|
+
| 'paddingBlockEnd'
|
|
59
|
+
| 'paddingInline'
|
|
60
|
+
| 'paddingInlineStart'
|
|
61
|
+
| 'paddingInlineEnd'
|
|
47
62
|
| 'x'
|
|
48
63
|
| 'y'
|
|
49
64
|
| 'gap'
|
|
@@ -77,3 +92,9 @@ export type SpaceKeys =
|
|
|
77
92
|
| 'right'
|
|
78
93
|
| 'bottom'
|
|
79
94
|
| 'shadowOffset'
|
|
95
|
+
| 'borderBlockWidth'
|
|
96
|
+
| 'borderBlockStartWidth'
|
|
97
|
+
| 'borderBlockEndWidth'
|
|
98
|
+
| 'borderInlineWidth'
|
|
99
|
+
| 'borderInlineStartWidth'
|
|
100
|
+
| 'borderInlineEndWidth'
|
|
@@ -206,7 +206,7 @@ export type TamaguiComponentPropsBaseBase = {
|
|
|
206
206
|
* Adds some area outside the typical bounds of the component for touch actions to register.
|
|
207
207
|
* Tamagui uses Pressable internally so it supports `number | Insets` rather than just `Insets`
|
|
208
208
|
*/
|
|
209
|
-
hitSlop?: number | Insets
|
|
209
|
+
hitSlop?: number | Insets | null
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
export interface Insets {
|
package/src/types.tsx
CHANGED
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
import type {
|
|
14
14
|
Text as RNText,
|
|
15
15
|
TextProps as ReactTextProps,
|
|
16
|
-
TextStyle,
|
|
16
|
+
TextStyle as RNTextStyle,
|
|
17
17
|
View,
|
|
18
18
|
ViewProps,
|
|
19
19
|
ViewStyle,
|
|
@@ -578,7 +578,7 @@ type GenericTamaguiSettings = {
|
|
|
578
578
|
export type TamaguiSettings = TamaguiConfig['settings']
|
|
579
579
|
|
|
580
580
|
export type BaseStyleProps = {
|
|
581
|
-
[Key in keyof TextStylePropsBase]?:
|
|
581
|
+
[Key in keyof TextStylePropsBase]?: TextStyle[Key] | GetThemeValueForKey<Key>
|
|
582
582
|
} & {
|
|
583
583
|
[Key in keyof StackStyleBase]?: StackStyle[Key] | GetThemeValueForKey<Key>
|
|
584
584
|
}
|
|
@@ -718,8 +718,8 @@ export type GenericFont<Key extends GenericFontKey = GenericFontKey> = {
|
|
|
718
718
|
letterSpacing?: Partial<{ [key in Key]: number | Variable }>
|
|
719
719
|
weight?: Partial<{ [key in Key]: number | string | Variable }>
|
|
720
720
|
family?: string | Variable
|
|
721
|
-
style?: Partial<{ [key in Key]:
|
|
722
|
-
transform?: Partial<{ [key in Key]:
|
|
721
|
+
style?: Partial<{ [key in Key]: RNTextStyle['fontStyle'] | Variable }>
|
|
722
|
+
transform?: Partial<{ [key in Key]: RNTextStyle['textTransform'] | Variable }>
|
|
723
723
|
color?: Partial<{ [key in Key]: string | Variable }>
|
|
724
724
|
// for native use only, lets you map to alternative fonts
|
|
725
725
|
face?: Partial<{
|
|
@@ -1043,10 +1043,12 @@ export type FontWeightValues =
|
|
|
1043
1043
|
export type FontWeightTokens = `$${GetTokenFontKeysFor<'weight'>}` | FontWeightValues
|
|
1044
1044
|
export type FontColorTokens = `$${GetTokenFontKeysFor<'color'>}` | number
|
|
1045
1045
|
export type FontLetterSpacingTokens = `$${GetTokenFontKeysFor<'letterSpacing'>}` | number
|
|
1046
|
-
export type FontStyleTokens =
|
|
1046
|
+
export type FontStyleTokens =
|
|
1047
|
+
| `$${GetTokenFontKeysFor<'style'>}`
|
|
1048
|
+
| RNTextStyle['fontStyle']
|
|
1047
1049
|
export type FontTransformTokens =
|
|
1048
1050
|
| `$${GetTokenFontKeysFor<'transform'>}`
|
|
1049
|
-
|
|
|
1051
|
+
| RNTextStyle['textTransform']
|
|
1050
1052
|
|
|
1051
1053
|
export type ParseFont<A extends GenericFont> = {
|
|
1052
1054
|
size: TokenPrefixed<A['size']>
|
|
@@ -1271,6 +1273,7 @@ interface ExtraStyleProps {
|
|
|
1271
1273
|
* Web-only style property. Will be omitted on native.
|
|
1272
1274
|
*/
|
|
1273
1275
|
outlineWidth?: SpaceValue
|
|
1276
|
+
|
|
1274
1277
|
/**
|
|
1275
1278
|
* Web-only style property. Will be omitted on native.
|
|
1276
1279
|
*/
|
|
@@ -1326,6 +1329,199 @@ interface ExtraStyleProps {
|
|
|
1326
1329
|
| 'bottom'
|
|
1327
1330
|
| TwoValueTransformOrigin
|
|
1328
1331
|
| `${TwoValueTransformOrigin} ${Px}`
|
|
1332
|
+
/**
|
|
1333
|
+
* Web-only style property. Will be omitted on native.
|
|
1334
|
+
*/
|
|
1335
|
+
filter?: Properties['filter']
|
|
1336
|
+
/**
|
|
1337
|
+
* Web-only style property. Will be omitted on native.
|
|
1338
|
+
*/
|
|
1339
|
+
backdropFilter?: Properties['backdropFilter']
|
|
1340
|
+
/**
|
|
1341
|
+
* Web-only style property. Will be omitted on native.
|
|
1342
|
+
*/
|
|
1343
|
+
mixBlendMode?: Properties['mixBlendMode']
|
|
1344
|
+
/**
|
|
1345
|
+
* Web-only style property. Will be omitted on native.
|
|
1346
|
+
*/
|
|
1347
|
+
backgroundImage?: Properties['backgroundImage']
|
|
1348
|
+
/**
|
|
1349
|
+
* Web-only style property. Will be omitted on native.
|
|
1350
|
+
*/
|
|
1351
|
+
backgroundOrigin?: Properties['backgroundOrigin']
|
|
1352
|
+
/**
|
|
1353
|
+
* Web-only style property. Will be omitted on native.
|
|
1354
|
+
*/
|
|
1355
|
+
backgroundPosition?: Properties['backgroundPosition']
|
|
1356
|
+
/**
|
|
1357
|
+
* Web-only style property. Will be omitted on native.
|
|
1358
|
+
*/
|
|
1359
|
+
backgroundRepeat?: Properties['backgroundRepeat']
|
|
1360
|
+
/**
|
|
1361
|
+
* Web-only style property. Will be omitted on native.
|
|
1362
|
+
*/
|
|
1363
|
+
backgroundSize?: Properties['backgroundSize']
|
|
1364
|
+
/**
|
|
1365
|
+
* Web-only style property. Will be omitted on native.
|
|
1366
|
+
*/
|
|
1367
|
+
backgroundClip?: Properties['backgroundClip']
|
|
1368
|
+
/**
|
|
1369
|
+
* Web-only style property. Will be omitted on native.
|
|
1370
|
+
*/
|
|
1371
|
+
backgroundBlendMode?: Properties['backgroundBlendMode']
|
|
1372
|
+
/**
|
|
1373
|
+
* Web-only style property. Will be omitted on native.
|
|
1374
|
+
*/
|
|
1375
|
+
backgroundAttachment?: Properties['backgroundAttachment']
|
|
1376
|
+
/**
|
|
1377
|
+
* Web-only style property. Will be omitted on native.
|
|
1378
|
+
*/
|
|
1379
|
+
background?: Properties['background']
|
|
1380
|
+
/**
|
|
1381
|
+
* Web-only style property. Will be omitted on native.
|
|
1382
|
+
*/
|
|
1383
|
+
clipPath?: Properties['clipPath']
|
|
1384
|
+
/**
|
|
1385
|
+
* Web-only style property. Will be omitted on native.
|
|
1386
|
+
*/
|
|
1387
|
+
caretColor?: Properties['caretColor']
|
|
1388
|
+
/**
|
|
1389
|
+
* Web-only style property. Will be omitted on native.
|
|
1390
|
+
*/
|
|
1391
|
+
transformStyle?: Properties['transformStyle']
|
|
1392
|
+
/**
|
|
1393
|
+
* Web-only style property. Will be omitted on native.
|
|
1394
|
+
*/
|
|
1395
|
+
mask?: Properties['mask']
|
|
1396
|
+
/**
|
|
1397
|
+
* Web-only style property. Will be omitted on native.
|
|
1398
|
+
*/
|
|
1399
|
+
maskImage?: Properties['maskImage']
|
|
1400
|
+
/**
|
|
1401
|
+
* Web-only style property. Will be omitted on native.
|
|
1402
|
+
*/
|
|
1403
|
+
textEmphasis?: Properties['textEmphasis']
|
|
1404
|
+
/**
|
|
1405
|
+
* Web-only style property. Will be omitted on native.
|
|
1406
|
+
*/
|
|
1407
|
+
borderImage?: Properties['borderImage']
|
|
1408
|
+
/**
|
|
1409
|
+
* Web-only style property. Will be omitted on native.
|
|
1410
|
+
*/
|
|
1411
|
+
float?: Properties['float']
|
|
1412
|
+
/**
|
|
1413
|
+
* Web-only style property. Will be omitted on native.
|
|
1414
|
+
*/
|
|
1415
|
+
content?: Properties['content']
|
|
1416
|
+
/**
|
|
1417
|
+
* Web-only style property. Will be omitted on native.
|
|
1418
|
+
*/
|
|
1419
|
+
overflowBlock?: Properties['overflowBlock']
|
|
1420
|
+
/**
|
|
1421
|
+
* Web-only style property. Will be omitted on native.
|
|
1422
|
+
*/
|
|
1423
|
+
overflowInline?: Properties['overflowInline']
|
|
1424
|
+
/**
|
|
1425
|
+
* Web-only style property. Will be omitted on native.
|
|
1426
|
+
*/
|
|
1427
|
+
maskBorder?: Properties['maskBorder']
|
|
1428
|
+
/**
|
|
1429
|
+
* Web-only style property. Will be omitted on native.
|
|
1430
|
+
*/
|
|
1431
|
+
maskBorderMode?: Properties['maskBorderMode']
|
|
1432
|
+
/**
|
|
1433
|
+
* Web-only style property. Will be omitted on native.
|
|
1434
|
+
*/
|
|
1435
|
+
maskBorderOutset?: Properties['maskBorderOutset']
|
|
1436
|
+
/**
|
|
1437
|
+
* Web-only style property. Will be omitted on native.
|
|
1438
|
+
*/
|
|
1439
|
+
maskBorderRepeat?: Properties['maskBorderRepeat']
|
|
1440
|
+
/**
|
|
1441
|
+
* Web-only style property. Will be omitted on native.
|
|
1442
|
+
*/
|
|
1443
|
+
maskBorderSlice?: Properties['maskBorderSlice']
|
|
1444
|
+
/**
|
|
1445
|
+
* Web-only style property. Will be omitted on native.
|
|
1446
|
+
*/
|
|
1447
|
+
maskBorderSource?: Properties['maskBorderSource']
|
|
1448
|
+
/**
|
|
1449
|
+
* Web-only style property. Will be omitted on native.
|
|
1450
|
+
*/
|
|
1451
|
+
maskBorderWidth?: Properties['maskBorderWidth']
|
|
1452
|
+
/**
|
|
1453
|
+
* Web-only style property. Will be omitted on native.
|
|
1454
|
+
*/
|
|
1455
|
+
maskClip?: Properties['maskClip']
|
|
1456
|
+
/**
|
|
1457
|
+
* Web-only style property. Will be omitted on native.
|
|
1458
|
+
*/
|
|
1459
|
+
maskComposite?: Properties['maskComposite']
|
|
1460
|
+
/**
|
|
1461
|
+
* Web-only style property. Will be omitted on native.
|
|
1462
|
+
*/
|
|
1463
|
+
maskMode?: Properties['maskMode']
|
|
1464
|
+
/**
|
|
1465
|
+
* Web-only style property. Will be omitted on native.
|
|
1466
|
+
*/
|
|
1467
|
+
maskOrigin?: Properties['maskOrigin']
|
|
1468
|
+
/**
|
|
1469
|
+
* Web-only style property. Will be omitted on native.
|
|
1470
|
+
*/
|
|
1471
|
+
maskPosition?: Properties['maskPosition']
|
|
1472
|
+
/**
|
|
1473
|
+
* Web-only style property. Will be omitted on native.
|
|
1474
|
+
*/
|
|
1475
|
+
maskRepeat?: Properties['maskRepeat']
|
|
1476
|
+
/**
|
|
1477
|
+
* Web-only style property. Will be omitted on native.
|
|
1478
|
+
*/
|
|
1479
|
+
maskSize?: Properties['maskSize']
|
|
1480
|
+
/**
|
|
1481
|
+
* Web-only style property. Will be omitted on native.
|
|
1482
|
+
*/
|
|
1483
|
+
maskType?: Properties['maskType']
|
|
1484
|
+
borderInlineColor?: ColorTokens
|
|
1485
|
+
borderInlineStartColor?: ColorTokens
|
|
1486
|
+
borderInlineEndColor?: ColorTokens
|
|
1487
|
+
borderBlockWidth?: SpaceTokens | number
|
|
1488
|
+
borderBlockStartWidth?: SpaceTokens | number
|
|
1489
|
+
borderBlockEndWidth?: SpaceTokens | number
|
|
1490
|
+
borderInlineWidth?: SpaceTokens | number
|
|
1491
|
+
borderInlineStartWidth?: SpaceTokens | number
|
|
1492
|
+
borderInlineEndWidth?: SpaceTokens | number
|
|
1493
|
+
borderBlockStyle?: ViewStyle['borderStyle']
|
|
1494
|
+
borderBlockStartStyle?: ViewStyle['borderStyle']
|
|
1495
|
+
borderBlockEndStyle?: ViewStyle['borderStyle']
|
|
1496
|
+
borderInlineStyle?: ViewStyle['borderStyle']
|
|
1497
|
+
borderInlineStartStyle?: ViewStyle['borderStyle']
|
|
1498
|
+
borderInlineEndStyle?: ViewStyle['borderStyle']
|
|
1499
|
+
marginBlock?: SpaceTokens | number
|
|
1500
|
+
marginBlockStart?: SpaceTokens | number
|
|
1501
|
+
marginBlockEnd?: SpaceTokens | number
|
|
1502
|
+
marginInline?: SpaceTokens | number
|
|
1503
|
+
marginInlineStart?: SpaceTokens | number
|
|
1504
|
+
marginInlineEnd?: SpaceTokens | number
|
|
1505
|
+
paddingBlock?: SpaceTokens | number
|
|
1506
|
+
paddingBlockStart?: SpaceTokens | number
|
|
1507
|
+
paddingBlockEnd?: SpaceTokens | number
|
|
1508
|
+
paddingInline?: SpaceTokens | number
|
|
1509
|
+
paddingInlineStart?: SpaceTokens | number
|
|
1510
|
+
paddingInlineEnd?: SpaceTokens | number
|
|
1511
|
+
objectFit?: Properties['objectFit']
|
|
1512
|
+
verticalAlign?: Properties['verticalAlign']
|
|
1513
|
+
insetBlock?: SpaceTokens | number
|
|
1514
|
+
insetBlockStart?: SpaceTokens | number
|
|
1515
|
+
insetBlockEnd?: SpaceTokens | number
|
|
1516
|
+
insetInline?: SpaceTokens | number
|
|
1517
|
+
insetInlineStart?: SpaceTokens | number
|
|
1518
|
+
insetInlineEnd?: SpaceTokens | number
|
|
1519
|
+
blockSize?: SizeTokens | number
|
|
1520
|
+
minBlockSize?: SizeTokens | number
|
|
1521
|
+
maxBlockSize?: SizeTokens | number
|
|
1522
|
+
inlineSize?: SizeTokens | number
|
|
1523
|
+
minInlineSize?: SizeTokens | number
|
|
1524
|
+
maxInlineSize?: SizeTokens | number
|
|
1329
1525
|
}
|
|
1330
1526
|
|
|
1331
1527
|
export interface ExtendBaseStackProps {}
|
|
@@ -1346,7 +1542,7 @@ export interface StackStyleBase
|
|
|
1346
1542
|
OverrideNonStyledProps {}
|
|
1347
1543
|
|
|
1348
1544
|
export interface TextStylePropsBase
|
|
1349
|
-
extends Omit<
|
|
1545
|
+
extends Omit<RNTextStyle, keyof OverrideNonStyledProps>,
|
|
1350
1546
|
TransformStyleProps,
|
|
1351
1547
|
ExtraStyleProps,
|
|
1352
1548
|
OverrideNonStyledProps {
|
|
@@ -1355,6 +1551,8 @@ export interface TextStylePropsBase
|
|
|
1355
1551
|
textOverflow?: Properties['textOverflow']
|
|
1356
1552
|
whiteSpace?: Properties['whiteSpace']
|
|
1357
1553
|
wordWrap?: Properties['wordWrap']
|
|
1554
|
+
/** @deprecated use verticalAlign instead */
|
|
1555
|
+
textAlignVertical?: RNTextStyle['textAlignVertical']
|
|
1358
1556
|
}
|
|
1359
1557
|
|
|
1360
1558
|
//
|
|
@@ -1431,6 +1629,7 @@ export interface StackNonStyleProps
|
|
|
1431
1629
|
| 'pointerEvents'
|
|
1432
1630
|
| 'display'
|
|
1433
1631
|
| 'children'
|
|
1632
|
+
| keyof TamaguiComponentPropsBaseBase
|
|
1434
1633
|
// these are added back in by core
|
|
1435
1634
|
| RNOnlyProps
|
|
1436
1635
|
| keyof ExtendBaseStackProps
|
|
@@ -1464,12 +1663,14 @@ export interface TextNonStyleProps
|
|
|
1464
1663
|
ExtendBaseTextProps,
|
|
1465
1664
|
TamaguiComponentPropsBase {
|
|
1466
1665
|
// we allow either RN or web style props, of course only web css props only works on web
|
|
1467
|
-
style?: StyleProp<LooseCombinedObjects<React.CSSProperties,
|
|
1666
|
+
style?: StyleProp<LooseCombinedObjects<React.CSSProperties, RNTextStyle>>
|
|
1667
|
+
/** @deprecated use userSelect instead */
|
|
1668
|
+
selectable?: boolean
|
|
1468
1669
|
}
|
|
1469
1670
|
|
|
1470
|
-
export type
|
|
1671
|
+
export type TextStyle = WithThemeShorthandsPseudosMedia<TextStylePropsBase>
|
|
1471
1672
|
|
|
1472
|
-
export type TextProps = TextNonStyleProps &
|
|
1673
|
+
export type TextProps = TextNonStyleProps & TextStyle
|
|
1473
1674
|
|
|
1474
1675
|
export interface ThemeableProps {
|
|
1475
1676
|
theme?: ThemeName | null
|
|
@@ -1647,7 +1848,7 @@ export type TamaguiProviderProps = Partial<Omit<ThemeProviderProps, 'children'>>
|
|
|
1647
1848
|
export type PropMappedValue = [string, any][] | undefined
|
|
1648
1849
|
|
|
1649
1850
|
export type GetStyleState = {
|
|
1650
|
-
style:
|
|
1851
|
+
style: TextStyle | null
|
|
1651
1852
|
usedKeys: Record<string, number>
|
|
1652
1853
|
classNames: ClassNamesObject
|
|
1653
1854
|
staticConfig: StaticConfig
|
|
@@ -1788,13 +1989,13 @@ export type StaticConfig = StaticConfigBase & {
|
|
|
1788
1989
|
}
|
|
1789
1990
|
|
|
1790
1991
|
export type ViewStyleWithPseudos =
|
|
1791
|
-
|
|
|
1792
|
-
| (
|
|
1793
|
-
hoverStyle?:
|
|
1794
|
-
pressStyle?:
|
|
1795
|
-
focusStyle?:
|
|
1796
|
-
focusVisibleStyle?:
|
|
1797
|
-
disabledStyle?:
|
|
1992
|
+
| TextStyle
|
|
1993
|
+
| (TextStyle & {
|
|
1994
|
+
hoverStyle?: TextStyle
|
|
1995
|
+
pressStyle?: TextStyle
|
|
1996
|
+
focusStyle?: TextStyle
|
|
1997
|
+
focusVisibleStyle?: TextStyle
|
|
1998
|
+
disabledStyle?: TextStyle
|
|
1798
1999
|
})
|
|
1799
2000
|
|
|
1800
2001
|
/**
|
package/src/views/Slot.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { composeRefs } from '@tamagui/compose-refs'
|
|
|
4
4
|
import { isWeb } from '@tamagui/constants'
|
|
5
5
|
import { composeEventHandlers } from '@tamagui/helpers'
|
|
6
6
|
import type { ReactNode } from 'react'
|
|
7
|
-
import { Children, cloneElement, forwardRef, isValidElement } from 'react'
|
|
7
|
+
import { Children, cloneElement, forwardRef, isValidElement, version } from 'react'
|
|
8
8
|
|
|
9
9
|
/* -------------------------------------------------------------------------------------------------
|
|
10
10
|
* Slot
|
|
@@ -14,6 +14,8 @@ interface SlotProps {
|
|
|
14
14
|
children: ReactNode
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
const is19 = version.startsWith('19.')
|
|
18
|
+
|
|
17
19
|
export const Slot = forwardRef<any, SlotProps>(function Slot(props, forwardedRef) {
|
|
18
20
|
const { children, ...slotProps } = props
|
|
19
21
|
|
|
@@ -25,7 +27,10 @@ export const Slot = forwardRef<any, SlotProps>(function Slot(props, forwardedRef
|
|
|
25
27
|
? mergedProps
|
|
26
28
|
: {
|
|
27
29
|
...mergedProps,
|
|
28
|
-
ref: composeRefs(
|
|
30
|
+
ref: composeRefs(
|
|
31
|
+
forwardedRef,
|
|
32
|
+
is19 ? (children as any).props.ref : (children as any).ref
|
|
33
|
+
),
|
|
29
34
|
}
|
|
30
35
|
)
|
|
31
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_withStableStyle.d.ts","sourceRoot":"","sources":["../src/_withStableStyle.tsx"],"names":[],"mappings":";AAGA,4DAA4D;AAE5D,eAAO,MAAM,gBAAgB,cAChB,GAAG,
|
|
1
|
+
{"version":3,"file":"_withStableStyle.d.ts","sourceRoot":"","sources":["../src/_withStableStyle.tsx"],"names":[],"mappings":";AAGA,4DAA4D;AAE5D,eAAO,MAAM,gBAAgB,cAChB,GAAG,iBACC,CAAC,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,MAAM,yGAMvD,CAAA"}
|
package/types/config.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const getTokens: ({ prefixed, }?: {
|
|
|
7
7
|
/**
|
|
8
8
|
* Force either with $ or without $ prefix
|
|
9
9
|
*/
|
|
10
|
-
prefixed?: boolean
|
|
10
|
+
prefixed?: boolean;
|
|
11
11
|
}) => TokensMerged;
|
|
12
12
|
export declare const getTokenObject: (value: Token, group?: keyof Tokens) => import("./createVariable").Variable<any>;
|
|
13
13
|
export declare const getToken: (value: Token, group?: keyof Tokens, useVariable?: boolean) => any;
|
|
@@ -19,7 +19,7 @@ export declare const useTokens: ({ prefixed, }?: {
|
|
|
19
19
|
/**
|
|
20
20
|
* Force either with $ or without $ prefix
|
|
21
21
|
*/
|
|
22
|
-
prefixed?: boolean
|
|
22
|
+
prefixed?: boolean;
|
|
23
23
|
}) => TokensMerged;
|
|
24
24
|
export declare const getThemes: () => {
|
|
25
25
|
[x: string]: {
|
package/types/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,KAAK,EACL,MAAM,EACN,YAAY,EACb,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,SAAS,SAAU,qBAAqB,SAEpD,CAAA;AAED,eAAO,MAAM,aAAa,SAAU,MAAM,QAAQ,GAAG,cAAc,GAAG,SAMrE,CAAA;AAED,eAAO,MAAM,SAAS,6BASrB,CAAA;AAGD,wBAAgB,SAAS,CAAC,CAAC,EAAE,YAAY,QAExC;AAED,eAAO,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,KAAK,EACL,MAAM,EACN,YAAY,EACb,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,SAAS,SAAU,qBAAqB,SAEpD,CAAA;AAED,eAAO,MAAM,aAAa,SAAU,MAAM,QAAQ,GAAG,cAAc,GAAG,SAMrE,CAAA;AAED,eAAO,MAAM,SAAS,6BASrB,CAAA;AAGD,wBAAgB,SAAS,CAAC,CAAC,EAAE,YAAY,QAExC;AAED,eAAO,MAAM,SAAS,mBAEnB;IACD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,KAAQ,YAQR,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,UAAU,MAAM,MAAM,6CAShE,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,UAAU,MAAM,MAAM,+BAG1D,CAAA;AAED,eAAO,MAAM,aAAa,UAAW,KAAK,GAAG,OAAO,GAAG,MAAM,UAAU,MAAM,MAAM,QAGlF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,mBAvCnB;IACD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,KAAQ,YAkCyB,CAAA;AAElC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAAqB,CAAA;AAE3C,eAAO,MAAM,eAAe,qBAA4B,CAAA;AAExD,eAAO,MAAM,gBAAgB,OAAQ,cAAc,SAMlD,CAAA;AAED,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,GAAG,SAGnD,CAAA;AAGD,eAAO,MAAM,OAAO,SAAU,MAAM,4DAQnC,CAAA;AAED,KAAK,SAAS,GAAG;IACf,UAAU,CAAC,EACP,OAAO,GACP;QACE,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACN,CAAA;AAED,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;AAE3C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,QAIvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webToNativeProps.d.ts","sourceRoot":"","sources":["../../src/constants/webToNativeProps.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAC3E,CAAA;AACX,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webToNativeProps.native.d.ts","sourceRoot":"","sources":["../../src/constants/webToNativeProps.native.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,2BAA2B,KAQhC,CAAA;AAgER,eAAO,MAAM,oBAAoB,0BAAgD,CAAA"}
|
|
@@ -43,10 +43,10 @@ export type SpacedChildrenProps = {
|
|
|
43
43
|
export declare function spacedChildren(props: SpacedChildrenProps): React.ReactNode;
|
|
44
44
|
export declare const isDisabled: (props: any) => any;
|
|
45
45
|
export declare const subscribeToContextGroup: ({ disabled, setStateShallow, pseudoGroups, mediaGroups, componentContext, state, }: {
|
|
46
|
-
disabled?: boolean
|
|
46
|
+
disabled?: boolean;
|
|
47
47
|
setStateShallow: (next?: Partial<TamaguiComponentState> | undefined) => void;
|
|
48
|
-
pseudoGroups?: Set<string
|
|
49
|
-
mediaGroups?: Set<string
|
|
48
|
+
pseudoGroups?: Set<string>;
|
|
49
|
+
mediaGroups?: Set<string>;
|
|
50
50
|
componentContext: ComponentContextI;
|
|
51
51
|
state: TamaguiComponentState;
|
|
52
52
|
}) => import("./types").DisposeFn | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAYN,MAAM,OAAO,CAAA;AAuBd,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EAKT,cAAc,EACd,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,YAAY,EAEZ,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,qBAAqB,EACrB,SAAS,EAIV,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAiB/E,KAAK,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAA;AAEpF,eAAO,MAAM,kBAAkB,wBAA+B,CAAA;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AED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,mBAiGxD;AAwDD,eAAO,MAAM,UAAU,UAAW,GAAG,QAQpC,CAAA;AAED,eAAO,MAAM,uBAAuB,uFAOjC;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,qBAAqB,CAAC,GAAG,SAAS,KAAK,IAAI,CAAA;IAC5E,YAAY,CAAC,EAAE,IAAI,MAAM,CAAC,CAAA;IAC1B,WAAW,CAAC,EAAE,IAAI,MAAM,CAAC,CAAA;IACzB,gBAAgB,EAAE,iBAAiB,CAAA;IACnC,KAAK,EAAE,qBAAqB,CAAA;CAC7B,4CAqCA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFont.d.ts","sourceRoot":"","sources":["../src/createFont.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;AAkC5D,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"createFont.d.ts","sourceRoot":"","sources":["../src/createFont.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAA;AAkC5D,eAAO,MAAM,UAAU,gCAAiC,CAAC,KAAG,CAe3D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../src/createTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEhD,KAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../src/createTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEhD,KAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,WAAW,sCAAuC,KAAK,KAAG,KAEtE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVariable.d.ts","sourceRoot":"","sources":["../src/createVariable.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH,QAAA,MAAM,MAAM,UAAU,CAAA;AAEtB,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,GAAG;IAC/B,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,CAAC,CAAA;IACN,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAM/E,KAAK,UAAU,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC,CAAA;AACpE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"createVariable.d.ts","sourceRoot":"","sources":["../src/createVariable.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH,QAAA,MAAM,MAAM,UAAU,CAAA;AAEtB,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,GAAG;IAC/B,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,CAAC,CAAA;IACN,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CA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eAAe,CAAC,GAAG,CAAC,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,eAAe,IAAI;KACzD,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,GAAG,MAAM,GAC5C,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAChB,CAAC,CAAC,GAAG,CAAC,SAAS,eAAe,GAC5B,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAC1B,KAAK;CACZ,CAAA;AAMD,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"createVariables.d.ts","sourceRoot":"","sources":["../src/createVariables.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAGhD,KAAK,eAAe,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,GAAG,IAAI;IACxD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,eAAe,CAAC,GAAG,CAAC,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,eAAe,IAAI;KACzD,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,GAAG,MAAM,GAC5C,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAChB,CAAC,CAAC,GAAG,CAAC,SAAS,eAAe,GAC5B,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAC1B,KAAK;CACZ,CAAA;AAMD,eAAO,MAAM,eAAe,2CAClB,CAAC,4CAGR,mBAAmB,CAAC,CAmCtB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandStyle.d.ts","sourceRoot":"","sources":["../../src/helpers/expandStyle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"expandStyle.d.ts","sourceRoot":"","sources":["../../src/helpers/expandStyle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAM/C,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,eAAe,CA4CpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TamaguiComponentState } from '../interfaces/TamaguiComponentState';
|
|
2
|
-
import type { ComponentContextI, DebugProp, GetStyleResult, GetStyleState, SplitStyleProps, StaticConfig,
|
|
2
|
+
import type { ComponentContextI, DebugProp, GetStyleResult, GetStyleState, SplitStyleProps, StaticConfig, TextStyle, ThemeParsed } from '../types';
|
|
3
3
|
export type SplitStyles = ReturnType<typeof getSplitStyles>;
|
|
4
4
|
export type SplitStyleResult = ReturnType<typeof getSplitStyles>;
|
|
5
5
|
type StyleSplitter = (props: {
|
|
@@ -7,7 +7,7 @@ type StyleSplitter = (props: {
|
|
|
7
7
|
}, staticConfig: StaticConfig, theme: ThemeParsed, themeName: string, componentState: TamaguiComponentState, styleProps: SplitStyleProps, parentSplitStyles?: GetStyleResult | null, context?: ComponentContextI, elementType?: string, debug?: DebugProp, skipThemeTokenResolution?: boolean) => GetStyleResult;
|
|
8
8
|
export declare const PROP_SPLIT = "-";
|
|
9
9
|
export declare const getSplitStyles: StyleSplitter;
|
|
10
|
-
export declare const getSubStyle: (styleState: GetStyleState, subKey: string, styleIn: Object, avoidMergeTransform?: boolean) =>
|
|
10
|
+
export declare const getSubStyle: (styleState: GetStyleState, subKey: string, styleIn: Object, avoidMergeTransform?: boolean) => TextStyle;
|
|
11
11
|
export declare const useSplitStyles: StyleSplitter;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=getSplitStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAChF,OAAO,KAAK,EAEV,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,aAAa,EAOb,eAAe,EACf,YAAY,EAGZ,
|
|
1
|
+
{"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAChF,OAAO,KAAK,EAEV,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,aAAa,EAOb,eAAe,EACf,YAAY,EAGZ,SAAS,EACT,WAAW,EAEZ,MAAM,UAAU,CAAA;AAyBjB,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAMhE,KAAK,aAAa,GAAG,CACnB,KAAK,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC7B,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,qBAAqB,EACrC,UAAU,EAAE,eAAe,EAC3B,iBAAiB,CAAC,EAAE,cAAc,GAAG,IAAI,EACzC,OAAO,CAAC,EAAE,iBAAiB,EAE3B,WAAW,CAAC,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,SAAS,EACjB,wBAAwB,CAAC,EAAE,OAAO,KAC/B,cAAc,CAAA;AAEnB,eAAO,MAAM,UAAU,MAAM,CAAA;AA8B7B,eAAO,MAAM,cAAc,EAAE,aAstC5B,CAAA;AAgED,eAAO,MAAM,WAAW,eACV,aAAa,UACjB,MAAM,WACL,MAAM,wBACO,OAAO,KAC5B,SA2BF,CAAA;AAQD,eAAO,MAAM,cAAc,EAAE,aAU5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skipProps.d.ts","sourceRoot":"","sources":["../../src/helpers/skipProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skipProps.d.ts","sourceRoot":"","sources":["../../src/helpers/skipProps.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAcrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPropsToSkip.d.ts","sourceRoot":"","sources":["../../src/helpers/webPropsToSkip.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,IAAK,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const webPropsToSkip: {
|
|
2
|
+
whiteSpace: number;
|
|
3
|
+
wordWrap: number;
|
|
4
|
+
textOverflow: number;
|
|
5
|
+
textDecorationDistance: number;
|
|
6
|
+
cursor: number;
|
|
7
|
+
contain: number;
|
|
8
|
+
boxSizing: number;
|
|
9
|
+
touchAction: number;
|
|
10
|
+
boxShadow: number;
|
|
11
|
+
outlineStyle: number;
|
|
12
|
+
outlineOffset: number;
|
|
13
|
+
outlineWidth: number;
|
|
14
|
+
outlineColor: number;
|
|
15
|
+
filter: number;
|
|
16
|
+
backdropFilter: number;
|
|
17
|
+
backgroundImage: number;
|
|
18
|
+
mixBlendMode: number;
|
|
19
|
+
scrollbarWidth: number;
|
|
20
|
+
backgroundOrigin: number;
|
|
21
|
+
backgroundPosition: number;
|
|
22
|
+
backgroundRepeat: number;
|
|
23
|
+
backgroundSize: number;
|
|
24
|
+
backgroundClip: number;
|
|
25
|
+
backgroundBlendMode: number;
|
|
26
|
+
backgroundAttachment: number;
|
|
27
|
+
background: number;
|
|
28
|
+
clipPath: number;
|
|
29
|
+
caretColor: number;
|
|
30
|
+
transformStyle: number;
|
|
31
|
+
mask: number;
|
|
32
|
+
maskImage: number;
|
|
33
|
+
textEmphasis: number;
|
|
34
|
+
borderImage: number;
|
|
35
|
+
float: number;
|
|
36
|
+
content: number;
|
|
37
|
+
overflowBlock: number;
|
|
38
|
+
overflowInline: number;
|
|
39
|
+
maskBorder: number;
|
|
40
|
+
maskBorderMode: number;
|
|
41
|
+
maskBorderOutset: number;
|
|
42
|
+
maskBorderRepeat: number;
|
|
43
|
+
maskBorderSlice: number;
|
|
44
|
+
maskBorderSource: number;
|
|
45
|
+
maskBorderWidth: number;
|
|
46
|
+
maskClip: number;
|
|
47
|
+
maskComposite: number;
|
|
48
|
+
maskMode: number;
|
|
49
|
+
maskOrigin: number;
|
|
50
|
+
maskPosition: number;
|
|
51
|
+
maskRepeat: number;
|
|
52
|
+
maskSize: number;
|
|
53
|
+
maskType: number;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=webPropsToSkip.native.d.ts.map
|