@yahoo/uds-mobile 2.6.0 → 2.7.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/bin/generateTheme.mjs +14 -0
- package/dist/bin/mobile/scripts/utils/configToRNMappings.mjs +6 -1
- package/dist/components/Banner/Banner.cjs +2 -2
- package/dist/components/Banner/Banner.js +2 -2
- package/dist/components/Banner/Banner.js.map +1 -1
- package/dist/components/IconButton.cjs +6 -3
- package/dist/components/IconButton.d.cts +3 -0
- package/dist/components/IconButton.d.cts.map +1 -1
- package/dist/components/IconButton.d.ts +3 -0
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +6 -3
- package/dist/components/IconButton.js.map +1 -1
- package/dist/types/dist/index.d.cts.map +1 -1
- package/dist/types/dist/index.d.ts.map +1 -1
- package/generated/styles.cjs +170 -0
- package/generated/styles.d.ts +96 -2
- package/generated/styles.mjs +170 -0
- package/generated/unistyles.d.ts +210 -0
- package/package.json +1 -1
package/generated/styles.cjs
CHANGED
|
@@ -1574,11 +1574,39 @@ const bannerStyles = StyleSheet.create((theme) => ({
|
|
|
1574
1574
|
description: {
|
|
1575
1575
|
variants: {
|
|
1576
1576
|
size: { default: theme.components['banner/size/default/description/rest'] },
|
|
1577
|
+
variant: {
|
|
1578
|
+
alert: theme.components['banner/variant/alert/description/rest'],
|
|
1579
|
+
'alert-secondary': theme.components['banner/variant/alert-secondary/description/rest'],
|
|
1580
|
+
brand: theme.components['banner/variant/brand/description/rest'],
|
|
1581
|
+
'brand-secondary': theme.components['banner/variant/brand-secondary/description/rest'],
|
|
1582
|
+
info: theme.components['banner/variant/info/description/rest'],
|
|
1583
|
+
'info-secondary': theme.components['banner/variant/info-secondary/description/rest'],
|
|
1584
|
+
primary: theme.components['banner/variant/primary/description/rest'],
|
|
1585
|
+
secondary: theme.components['banner/variant/secondary/description/rest'],
|
|
1586
|
+
success: theme.components['banner/variant/success/description/rest'],
|
|
1587
|
+
'success-secondary': theme.components['banner/variant/success-secondary/description/rest'],
|
|
1588
|
+
warning: theme.components['banner/variant/warning/description/rest'],
|
|
1589
|
+
'warning-secondary': theme.components['banner/variant/warning-secondary/description/rest'],
|
|
1590
|
+
},
|
|
1577
1591
|
},
|
|
1578
1592
|
},
|
|
1579
1593
|
title: {
|
|
1580
1594
|
variants: {
|
|
1581
1595
|
size: { default: theme.components['banner/size/default/title/rest'] },
|
|
1596
|
+
variant: {
|
|
1597
|
+
alert: theme.components['banner/variant/alert/title/rest'],
|
|
1598
|
+
'alert-secondary': theme.components['banner/variant/alert-secondary/title/rest'],
|
|
1599
|
+
brand: theme.components['banner/variant/brand/title/rest'],
|
|
1600
|
+
'brand-secondary': theme.components['banner/variant/brand-secondary/title/rest'],
|
|
1601
|
+
info: theme.components['banner/variant/info/title/rest'],
|
|
1602
|
+
'info-secondary': theme.components['banner/variant/info-secondary/title/rest'],
|
|
1603
|
+
primary: theme.components['banner/variant/primary/title/rest'],
|
|
1604
|
+
secondary: theme.components['banner/variant/secondary/title/rest'],
|
|
1605
|
+
success: theme.components['banner/variant/success/title/rest'],
|
|
1606
|
+
'success-secondary': theme.components['banner/variant/success-secondary/title/rest'],
|
|
1607
|
+
warning: theme.components['banner/variant/warning/title/rest'],
|
|
1608
|
+
'warning-secondary': theme.components['banner/variant/warning-secondary/title/rest'],
|
|
1609
|
+
},
|
|
1582
1610
|
},
|
|
1583
1611
|
},
|
|
1584
1612
|
}));
|
|
@@ -4842,6 +4870,146 @@ const switchStyles = StyleSheet.create((theme) => ({
|
|
|
4842
4870
|
},
|
|
4843
4871
|
}));
|
|
4844
4872
|
|
|
4873
|
+
/**
|
|
4874
|
+
* Layer-based styles for Tab.
|
|
4875
|
+
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
4876
|
+
*
|
|
4877
|
+
* Usage:
|
|
4878
|
+
* ```tsx
|
|
4879
|
+
* tabStyles.useVariants({
|
|
4880
|
+
* size,
|
|
4881
|
+
* variant,
|
|
4882
|
+
* disabled: isDisabled, // boolean
|
|
4883
|
+
* pressed: isPressed, // boolean
|
|
4884
|
+
* });
|
|
4885
|
+
* // Access: tabStyles.root, tabStyles.icon, etc.
|
|
4886
|
+
* ```
|
|
4887
|
+
*/
|
|
4888
|
+
const tabStyles = StyleSheet.create((theme) => ({
|
|
4889
|
+
root: {
|
|
4890
|
+
variants: {
|
|
4891
|
+
size: { default: theme.components['tab/size/default/root/rest'] },
|
|
4892
|
+
variant: {
|
|
4893
|
+
off: theme.components['tab/variant/primary/active/off/root/rest'],
|
|
4894
|
+
on: theme.components['tab/variant/primary/active/on/root/rest'],
|
|
4895
|
+
},
|
|
4896
|
+
pressed: { true: {} },
|
|
4897
|
+
},
|
|
4898
|
+
compoundVariants: [
|
|
4899
|
+
{
|
|
4900
|
+
variant: 'off',
|
|
4901
|
+
pressed: true,
|
|
4902
|
+
styles: theme.components['tab/variant/primary/active/off/root/pressed'],
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
variant: 'off',
|
|
4906
|
+
pressed: true,
|
|
4907
|
+
styles: theme.components['tab/variant/secondary/active/off/root/pressed'],
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
variant: 'on',
|
|
4911
|
+
pressed: true,
|
|
4912
|
+
styles: theme.components['tab/variant/primary/active/on/root/pressed'],
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
variant: 'on',
|
|
4916
|
+
pressed: true,
|
|
4917
|
+
styles: theme.components['tab/variant/secondary/active/on/root/pressed'],
|
|
4918
|
+
},
|
|
4919
|
+
],
|
|
4920
|
+
},
|
|
4921
|
+
text: {
|
|
4922
|
+
variants: {
|
|
4923
|
+
size: { default: theme.components['tab/size/default/rootText/rest'] },
|
|
4924
|
+
variant: {
|
|
4925
|
+
off: theme.components['tab/variant/primary/active/off/rootText/rest'],
|
|
4926
|
+
on: theme.components['tab/variant/primary/active/on/rootText/rest'],
|
|
4927
|
+
},
|
|
4928
|
+
pressed: { true: {} },
|
|
4929
|
+
},
|
|
4930
|
+
compoundVariants: [
|
|
4931
|
+
{
|
|
4932
|
+
variant: 'off',
|
|
4933
|
+
pressed: true,
|
|
4934
|
+
styles: theme.components['tab/variant/primary/active/off/rootText/pressed'],
|
|
4935
|
+
},
|
|
4936
|
+
{
|
|
4937
|
+
variant: 'off',
|
|
4938
|
+
pressed: true,
|
|
4939
|
+
styles: theme.components['tab/variant/secondary/active/off/rootText/pressed'],
|
|
4940
|
+
},
|
|
4941
|
+
{
|
|
4942
|
+
variant: 'on',
|
|
4943
|
+
pressed: true,
|
|
4944
|
+
styles: theme.components['tab/variant/primary/active/on/rootText/pressed'],
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
variant: 'on',
|
|
4948
|
+
pressed: true,
|
|
4949
|
+
styles: theme.components['tab/variant/secondary/active/on/rootText/pressed'],
|
|
4950
|
+
},
|
|
4951
|
+
],
|
|
4952
|
+
},
|
|
4953
|
+
icon: {
|
|
4954
|
+
variants: {
|
|
4955
|
+
size: { default: theme.components['tab/size/default/icon/rest'] },
|
|
4956
|
+
variant: {
|
|
4957
|
+
off: theme.components['tab/variant/primary/active/off/icon/rest'],
|
|
4958
|
+
on: theme.components['tab/variant/primary/active/on/icon/rest'],
|
|
4959
|
+
},
|
|
4960
|
+
pressed: { true: {} },
|
|
4961
|
+
},
|
|
4962
|
+
compoundVariants: [
|
|
4963
|
+
{
|
|
4964
|
+
variant: 'off',
|
|
4965
|
+
pressed: true,
|
|
4966
|
+
styles: theme.components['tab/variant/primary/active/off/icon/pressed'],
|
|
4967
|
+
},
|
|
4968
|
+
{
|
|
4969
|
+
variant: 'off',
|
|
4970
|
+
pressed: true,
|
|
4971
|
+
styles: theme.components['tab/variant/secondary/active/off/icon/pressed'],
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
variant: 'on',
|
|
4975
|
+
pressed: true,
|
|
4976
|
+
styles: theme.components['tab/variant/primary/active/on/icon/pressed'],
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
variant: 'on',
|
|
4980
|
+
pressed: true,
|
|
4981
|
+
styles: theme.components['tab/variant/secondary/active/on/icon/pressed'],
|
|
4982
|
+
},
|
|
4983
|
+
],
|
|
4984
|
+
},
|
|
4985
|
+
}));
|
|
4986
|
+
|
|
4987
|
+
/**
|
|
4988
|
+
* Layer-based styles for Tabs.
|
|
4989
|
+
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
4990
|
+
*
|
|
4991
|
+
* Usage:
|
|
4992
|
+
* ```tsx
|
|
4993
|
+
* tabsStyles.useVariants({
|
|
4994
|
+
* size,
|
|
4995
|
+
* variant,
|
|
4996
|
+
* disabled: isDisabled, // boolean
|
|
4997
|
+
* pressed: isPressed, // boolean
|
|
4998
|
+
* });
|
|
4999
|
+
* // Access: tabsStyles.root, tabsStyles.icon, etc.
|
|
5000
|
+
* ```
|
|
5001
|
+
*/
|
|
5002
|
+
const tabsStyles = StyleSheet.create((theme) => ({
|
|
5003
|
+
root: {
|
|
5004
|
+
variants: {
|
|
5005
|
+
variant: {
|
|
5006
|
+
primary: theme.components['tabs/variant/primary/root/rest'],
|
|
5007
|
+
secondary: theme.components['tabs/variant/secondary/root/rest'],
|
|
5008
|
+
},
|
|
5009
|
+
},
|
|
5010
|
+
},
|
|
5011
|
+
}));
|
|
5012
|
+
|
|
4845
5013
|
/**
|
|
4846
5014
|
* Layer-based styles for Toast.
|
|
4847
5015
|
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
@@ -4991,6 +5159,8 @@ module.exports = {
|
|
|
4991
5159
|
radioStyles,
|
|
4992
5160
|
scrimStyles,
|
|
4993
5161
|
switchStyles,
|
|
5162
|
+
tabStyles,
|
|
5163
|
+
tabsStyles,
|
|
4994
5164
|
toastStyles,
|
|
4995
5165
|
tooltipStyles,
|
|
4996
5166
|
};
|
package/generated/styles.d.ts
CHANGED
|
@@ -1361,6 +1361,7 @@ export declare const badgeStyles: {
|
|
|
1361
1361
|
export declare const bannerStyles: {
|
|
1362
1362
|
root: {
|
|
1363
1363
|
borderRadius: number;
|
|
1364
|
+
boxShadow: string;
|
|
1364
1365
|
gap: number;
|
|
1365
1366
|
paddingHorizontal: number;
|
|
1366
1367
|
paddingVertical: number;
|
|
@@ -1375,12 +1376,14 @@ export declare const bannerStyles: {
|
|
|
1375
1376
|
fontSize: number;
|
|
1376
1377
|
letterSpacing: number;
|
|
1377
1378
|
lineHeight: number;
|
|
1379
|
+
color: string;
|
|
1378
1380
|
};
|
|
1379
1381
|
title: {
|
|
1380
1382
|
fontFamily: 'YahooProductSans-Medium';
|
|
1381
1383
|
fontSize: number;
|
|
1382
1384
|
letterSpacing: number;
|
|
1383
1385
|
lineHeight: number;
|
|
1386
|
+
color: string;
|
|
1384
1387
|
};
|
|
1385
1388
|
} & {
|
|
1386
1389
|
useVariants: (
|
|
@@ -1420,13 +1423,47 @@ export declare const bannerStyles: {
|
|
|
1420
1423
|
| undefined;
|
|
1421
1424
|
}
|
|
1422
1425
|
| { size?: undefined }
|
|
1423
|
-
| {
|
|
1424
|
-
|
|
1426
|
+
| {
|
|
1427
|
+
size?: undefined;
|
|
1428
|
+
variant?:
|
|
1429
|
+
| 'primary'
|
|
1430
|
+
| 'secondary'
|
|
1431
|
+
| 'brand'
|
|
1432
|
+
| 'alert'
|
|
1433
|
+
| 'warning'
|
|
1434
|
+
| 'info'
|
|
1435
|
+
| 'brand-secondary'
|
|
1436
|
+
| 'alert-secondary'
|
|
1437
|
+
| 'warning-secondary'
|
|
1438
|
+
| 'info-secondary'
|
|
1439
|
+
| 'success'
|
|
1440
|
+
| 'success-secondary'
|
|
1441
|
+
| undefined;
|
|
1442
|
+
}
|
|
1443
|
+
| {
|
|
1444
|
+
size?: undefined;
|
|
1445
|
+
variant?:
|
|
1446
|
+
| 'primary'
|
|
1447
|
+
| 'secondary'
|
|
1448
|
+
| 'brand'
|
|
1449
|
+
| 'alert'
|
|
1450
|
+
| 'warning'
|
|
1451
|
+
| 'info'
|
|
1452
|
+
| 'brand-secondary'
|
|
1453
|
+
| 'alert-secondary'
|
|
1454
|
+
| 'warning-secondary'
|
|
1455
|
+
| 'info-secondary'
|
|
1456
|
+
| 'success'
|
|
1457
|
+
| 'success-secondary'
|
|
1458
|
+
| undefined;
|
|
1459
|
+
},
|
|
1425
1460
|
) => void;
|
|
1426
1461
|
};
|
|
1427
1462
|
|
|
1428
1463
|
export declare const bottomSheetStyles: {
|
|
1429
1464
|
root: {
|
|
1465
|
+
backgroundBlurColor: string;
|
|
1466
|
+
backgroundBlurRadius: number;
|
|
1430
1467
|
backgroundColor: string;
|
|
1431
1468
|
borderColor: string;
|
|
1432
1469
|
borderRadius: number;
|
|
@@ -1891,6 +1928,8 @@ export declare const menuContentStyles: {
|
|
|
1891
1928
|
gap: number;
|
|
1892
1929
|
paddingHorizontal: number;
|
|
1893
1930
|
paddingVertical: number;
|
|
1931
|
+
backgroundBlurColor: string;
|
|
1932
|
+
backgroundBlurRadius: number;
|
|
1894
1933
|
backgroundColor: string;
|
|
1895
1934
|
borderColor: string;
|
|
1896
1935
|
};
|
|
@@ -2021,6 +2060,61 @@ export declare const switchStyles: {
|
|
|
2021
2060
|
) => void;
|
|
2022
2061
|
};
|
|
2023
2062
|
|
|
2063
|
+
export declare const tabStyles: {
|
|
2064
|
+
root: {
|
|
2065
|
+
gap: number;
|
|
2066
|
+
paddingHorizontal: number;
|
|
2067
|
+
paddingVertical: number;
|
|
2068
|
+
backgroundColor: string;
|
|
2069
|
+
borderColor: string;
|
|
2070
|
+
borderRadius: number;
|
|
2071
|
+
borderWidth: number;
|
|
2072
|
+
boxShadow: string;
|
|
2073
|
+
};
|
|
2074
|
+
text: {
|
|
2075
|
+
fontFamily: 'YahooProductSans-Medium';
|
|
2076
|
+
fontSize: number;
|
|
2077
|
+
letterSpacing: number;
|
|
2078
|
+
lineHeight: number;
|
|
2079
|
+
color: string;
|
|
2080
|
+
};
|
|
2081
|
+
icon: { fontSize: number; iconSizeToken: 'sm'; lineHeight: number; color: string };
|
|
2082
|
+
} & {
|
|
2083
|
+
useVariants: (
|
|
2084
|
+
variants:
|
|
2085
|
+
| {
|
|
2086
|
+
size?: undefined;
|
|
2087
|
+
variant?: 'off' | 'on' | undefined;
|
|
2088
|
+
pressed?: boolean | 'true' | undefined;
|
|
2089
|
+
}
|
|
2090
|
+
| {
|
|
2091
|
+
size?: undefined;
|
|
2092
|
+
variant?: 'off' | 'on' | undefined;
|
|
2093
|
+
pressed?: boolean | 'true' | undefined;
|
|
2094
|
+
}
|
|
2095
|
+
| {
|
|
2096
|
+
size?: undefined;
|
|
2097
|
+
variant?: 'off' | 'on' | undefined;
|
|
2098
|
+
pressed?: boolean | 'true' | undefined;
|
|
2099
|
+
},
|
|
2100
|
+
) => void;
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
export declare const tabsStyles: {
|
|
2104
|
+
root: {
|
|
2105
|
+
backgroundColor: string;
|
|
2106
|
+
borderColor: string;
|
|
2107
|
+
borderRadius: number;
|
|
2108
|
+
borderWidth: number;
|
|
2109
|
+
gap: number;
|
|
2110
|
+
paddingHorizontal: number;
|
|
2111
|
+
paddingVertical: number;
|
|
2112
|
+
boxShadow: string;
|
|
2113
|
+
};
|
|
2114
|
+
} & {
|
|
2115
|
+
useVariants: (variants: { variant?: 'primary' | 'secondary' | undefined }) => void;
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2024
2118
|
export declare const toastStyles: {
|
|
2025
2119
|
root: {
|
|
2026
2120
|
borderRadius: number;
|
package/generated/styles.mjs
CHANGED
|
@@ -1574,11 +1574,39 @@ const bannerStyles = StyleSheet.create((theme) => ({
|
|
|
1574
1574
|
description: {
|
|
1575
1575
|
variants: {
|
|
1576
1576
|
size: { default: theme.components['banner/size/default/description/rest'] },
|
|
1577
|
+
variant: {
|
|
1578
|
+
alert: theme.components['banner/variant/alert/description/rest'],
|
|
1579
|
+
'alert-secondary': theme.components['banner/variant/alert-secondary/description/rest'],
|
|
1580
|
+
brand: theme.components['banner/variant/brand/description/rest'],
|
|
1581
|
+
'brand-secondary': theme.components['banner/variant/brand-secondary/description/rest'],
|
|
1582
|
+
info: theme.components['banner/variant/info/description/rest'],
|
|
1583
|
+
'info-secondary': theme.components['banner/variant/info-secondary/description/rest'],
|
|
1584
|
+
primary: theme.components['banner/variant/primary/description/rest'],
|
|
1585
|
+
secondary: theme.components['banner/variant/secondary/description/rest'],
|
|
1586
|
+
success: theme.components['banner/variant/success/description/rest'],
|
|
1587
|
+
'success-secondary': theme.components['banner/variant/success-secondary/description/rest'],
|
|
1588
|
+
warning: theme.components['banner/variant/warning/description/rest'],
|
|
1589
|
+
'warning-secondary': theme.components['banner/variant/warning-secondary/description/rest'],
|
|
1590
|
+
},
|
|
1577
1591
|
},
|
|
1578
1592
|
},
|
|
1579
1593
|
title: {
|
|
1580
1594
|
variants: {
|
|
1581
1595
|
size: { default: theme.components['banner/size/default/title/rest'] },
|
|
1596
|
+
variant: {
|
|
1597
|
+
alert: theme.components['banner/variant/alert/title/rest'],
|
|
1598
|
+
'alert-secondary': theme.components['banner/variant/alert-secondary/title/rest'],
|
|
1599
|
+
brand: theme.components['banner/variant/brand/title/rest'],
|
|
1600
|
+
'brand-secondary': theme.components['banner/variant/brand-secondary/title/rest'],
|
|
1601
|
+
info: theme.components['banner/variant/info/title/rest'],
|
|
1602
|
+
'info-secondary': theme.components['banner/variant/info-secondary/title/rest'],
|
|
1603
|
+
primary: theme.components['banner/variant/primary/title/rest'],
|
|
1604
|
+
secondary: theme.components['banner/variant/secondary/title/rest'],
|
|
1605
|
+
success: theme.components['banner/variant/success/title/rest'],
|
|
1606
|
+
'success-secondary': theme.components['banner/variant/success-secondary/title/rest'],
|
|
1607
|
+
warning: theme.components['banner/variant/warning/title/rest'],
|
|
1608
|
+
'warning-secondary': theme.components['banner/variant/warning-secondary/title/rest'],
|
|
1609
|
+
},
|
|
1582
1610
|
},
|
|
1583
1611
|
},
|
|
1584
1612
|
}));
|
|
@@ -4842,6 +4870,146 @@ const switchStyles = StyleSheet.create((theme) => ({
|
|
|
4842
4870
|
},
|
|
4843
4871
|
}));
|
|
4844
4872
|
|
|
4873
|
+
/**
|
|
4874
|
+
* Layer-based styles for Tab.
|
|
4875
|
+
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
4876
|
+
*
|
|
4877
|
+
* Usage:
|
|
4878
|
+
* ```tsx
|
|
4879
|
+
* tabStyles.useVariants({
|
|
4880
|
+
* size,
|
|
4881
|
+
* variant,
|
|
4882
|
+
* disabled: isDisabled, // boolean
|
|
4883
|
+
* pressed: isPressed, // boolean
|
|
4884
|
+
* });
|
|
4885
|
+
* // Access: tabStyles.root, tabStyles.icon, etc.
|
|
4886
|
+
* ```
|
|
4887
|
+
*/
|
|
4888
|
+
const tabStyles = StyleSheet.create((theme) => ({
|
|
4889
|
+
root: {
|
|
4890
|
+
variants: {
|
|
4891
|
+
size: { default: theme.components['tab/size/default/root/rest'] },
|
|
4892
|
+
variant: {
|
|
4893
|
+
off: theme.components['tab/variant/primary/active/off/root/rest'],
|
|
4894
|
+
on: theme.components['tab/variant/primary/active/on/root/rest'],
|
|
4895
|
+
},
|
|
4896
|
+
pressed: { true: {} },
|
|
4897
|
+
},
|
|
4898
|
+
compoundVariants: [
|
|
4899
|
+
{
|
|
4900
|
+
variant: 'off',
|
|
4901
|
+
pressed: true,
|
|
4902
|
+
styles: theme.components['tab/variant/primary/active/off/root/pressed'],
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
variant: 'off',
|
|
4906
|
+
pressed: true,
|
|
4907
|
+
styles: theme.components['tab/variant/secondary/active/off/root/pressed'],
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
variant: 'on',
|
|
4911
|
+
pressed: true,
|
|
4912
|
+
styles: theme.components['tab/variant/primary/active/on/root/pressed'],
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
variant: 'on',
|
|
4916
|
+
pressed: true,
|
|
4917
|
+
styles: theme.components['tab/variant/secondary/active/on/root/pressed'],
|
|
4918
|
+
},
|
|
4919
|
+
],
|
|
4920
|
+
},
|
|
4921
|
+
text: {
|
|
4922
|
+
variants: {
|
|
4923
|
+
size: { default: theme.components['tab/size/default/rootText/rest'] },
|
|
4924
|
+
variant: {
|
|
4925
|
+
off: theme.components['tab/variant/primary/active/off/rootText/rest'],
|
|
4926
|
+
on: theme.components['tab/variant/primary/active/on/rootText/rest'],
|
|
4927
|
+
},
|
|
4928
|
+
pressed: { true: {} },
|
|
4929
|
+
},
|
|
4930
|
+
compoundVariants: [
|
|
4931
|
+
{
|
|
4932
|
+
variant: 'off',
|
|
4933
|
+
pressed: true,
|
|
4934
|
+
styles: theme.components['tab/variant/primary/active/off/rootText/pressed'],
|
|
4935
|
+
},
|
|
4936
|
+
{
|
|
4937
|
+
variant: 'off',
|
|
4938
|
+
pressed: true,
|
|
4939
|
+
styles: theme.components['tab/variant/secondary/active/off/rootText/pressed'],
|
|
4940
|
+
},
|
|
4941
|
+
{
|
|
4942
|
+
variant: 'on',
|
|
4943
|
+
pressed: true,
|
|
4944
|
+
styles: theme.components['tab/variant/primary/active/on/rootText/pressed'],
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
variant: 'on',
|
|
4948
|
+
pressed: true,
|
|
4949
|
+
styles: theme.components['tab/variant/secondary/active/on/rootText/pressed'],
|
|
4950
|
+
},
|
|
4951
|
+
],
|
|
4952
|
+
},
|
|
4953
|
+
icon: {
|
|
4954
|
+
variants: {
|
|
4955
|
+
size: { default: theme.components['tab/size/default/icon/rest'] },
|
|
4956
|
+
variant: {
|
|
4957
|
+
off: theme.components['tab/variant/primary/active/off/icon/rest'],
|
|
4958
|
+
on: theme.components['tab/variant/primary/active/on/icon/rest'],
|
|
4959
|
+
},
|
|
4960
|
+
pressed: { true: {} },
|
|
4961
|
+
},
|
|
4962
|
+
compoundVariants: [
|
|
4963
|
+
{
|
|
4964
|
+
variant: 'off',
|
|
4965
|
+
pressed: true,
|
|
4966
|
+
styles: theme.components['tab/variant/primary/active/off/icon/pressed'],
|
|
4967
|
+
},
|
|
4968
|
+
{
|
|
4969
|
+
variant: 'off',
|
|
4970
|
+
pressed: true,
|
|
4971
|
+
styles: theme.components['tab/variant/secondary/active/off/icon/pressed'],
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
variant: 'on',
|
|
4975
|
+
pressed: true,
|
|
4976
|
+
styles: theme.components['tab/variant/primary/active/on/icon/pressed'],
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
variant: 'on',
|
|
4980
|
+
pressed: true,
|
|
4981
|
+
styles: theme.components['tab/variant/secondary/active/on/icon/pressed'],
|
|
4982
|
+
},
|
|
4983
|
+
],
|
|
4984
|
+
},
|
|
4985
|
+
}));
|
|
4986
|
+
|
|
4987
|
+
/**
|
|
4988
|
+
* Layer-based styles for Tabs.
|
|
4989
|
+
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
4990
|
+
*
|
|
4991
|
+
* Usage:
|
|
4992
|
+
* ```tsx
|
|
4993
|
+
* tabsStyles.useVariants({
|
|
4994
|
+
* size,
|
|
4995
|
+
* variant,
|
|
4996
|
+
* disabled: isDisabled, // boolean
|
|
4997
|
+
* pressed: isPressed, // boolean
|
|
4998
|
+
* });
|
|
4999
|
+
* // Access: tabsStyles.root, tabsStyles.icon, etc.
|
|
5000
|
+
* ```
|
|
5001
|
+
*/
|
|
5002
|
+
const tabsStyles = StyleSheet.create((theme) => ({
|
|
5003
|
+
root: {
|
|
5004
|
+
variants: {
|
|
5005
|
+
variant: {
|
|
5006
|
+
primary: theme.components['tabs/variant/primary/root/rest'],
|
|
5007
|
+
secondary: theme.components['tabs/variant/secondary/root/rest'],
|
|
5008
|
+
},
|
|
5009
|
+
},
|
|
5010
|
+
},
|
|
5011
|
+
}));
|
|
5012
|
+
|
|
4845
5013
|
/**
|
|
4846
5014
|
* Layer-based styles for Toast.
|
|
4847
5015
|
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
@@ -4991,6 +5159,8 @@ export {
|
|
|
4991
5159
|
radioStyles,
|
|
4992
5160
|
scrimStyles,
|
|
4993
5161
|
switchStyles,
|
|
5162
|
+
tabStyles,
|
|
5163
|
+
tabsStyles,
|
|
4994
5164
|
toastStyles,
|
|
4995
5165
|
tooltipStyles,
|
|
4996
5166
|
};
|