@yahoo/uds-mobile 1.6.0 → 1.6.2
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/fixtures/dist/index.mjs +9 -0
- package/dist/bin/generateTheme.mjs +1 -0
- package/dist/components/Avatar.cjs +3 -3
- package/dist/components/Avatar.mjs +3 -3
- package/dist/components/Avatar.mjs.map +1 -1
- package/dist/components/Button.cjs +3 -0
- package/dist/components/Button.mjs +3 -0
- package/dist/components/Button.mjs.map +1 -1
- package/dist/components/Checkbox.cjs +2 -1
- package/dist/components/Checkbox.mjs +2 -1
- package/dist/components/Checkbox.mjs.map +1 -1
- package/dist/components/Icon.cjs +5 -2
- package/dist/components/Icon.d.cts.map +1 -1
- package/dist/components/Icon.d.mts.map +1 -1
- package/dist/components/Icon.mjs +5 -2
- package/dist/components/Icon.mjs.map +1 -1
- package/dist/motion-tokens/dist/index.d.cts +5 -1
- package/dist/motion-tokens/dist/index.d.cts.map +1 -1
- package/dist/motion-tokens/dist/index.d.mts +5 -1
- package/dist/motion-tokens/dist/index.d.mts.map +1 -1
- package/dist/motion-tokens/dist/index.mjs.map +1 -1
- package/dist/types/dist/index.d.cts.map +1 -1
- package/dist/types/dist/index.d.mts.map +1 -1
- package/fonts/index.cjs +205 -205
- package/fonts/index.mjs +205 -205
- package/generated/styles.cjs +56 -0
- package/generated/styles.d.ts +53 -36
- package/generated/styles.mjs +56 -0
- package/generated/unistyles.d.ts +94 -0
- package/package.json +2 -2
package/generated/styles.d.ts
CHANGED
|
@@ -1217,7 +1217,7 @@ export declare const avatarStyles: {
|
|
|
1217
1217
|
};
|
|
1218
1218
|
text: {
|
|
1219
1219
|
color: string;
|
|
1220
|
-
fontFamily: '
|
|
1220
|
+
fontFamily: 'YASans' | 'YASans-Medium';
|
|
1221
1221
|
fontSize: number;
|
|
1222
1222
|
letterSpacing: number;
|
|
1223
1223
|
lineHeight: number;
|
|
@@ -1228,6 +1228,7 @@ export declare const avatarStyles: {
|
|
|
1228
1228
|
borderRadius: number;
|
|
1229
1229
|
color: string;
|
|
1230
1230
|
fontSize: number;
|
|
1231
|
+
iconSizeToken: 'lg' | 'md' | 'sm';
|
|
1231
1232
|
lineHeight: number;
|
|
1232
1233
|
};
|
|
1233
1234
|
} & {
|
|
@@ -1259,13 +1260,13 @@ export declare const badgeStyles: {
|
|
|
1259
1260
|
borderWidth: number;
|
|
1260
1261
|
};
|
|
1261
1262
|
text: {
|
|
1262
|
-
fontFamily: '
|
|
1263
|
+
fontFamily: 'YASans-SmBd';
|
|
1263
1264
|
fontSize: number;
|
|
1264
1265
|
letterSpacing: number;
|
|
1265
1266
|
lineHeight: number;
|
|
1266
1267
|
color: string;
|
|
1267
1268
|
};
|
|
1268
|
-
icon: { fontSize: number; lineHeight: number; color: string };
|
|
1269
|
+
icon: { fontSize: number; iconSizeToken: 'lg' | 'md' | 'sm'; lineHeight: number; color: string };
|
|
1269
1270
|
} & {
|
|
1270
1271
|
useVariants: (
|
|
1271
1272
|
variants:
|
|
@@ -1336,13 +1337,13 @@ export declare const buttonStyles: {
|
|
|
1336
1337
|
boxShadow: string;
|
|
1337
1338
|
};
|
|
1338
1339
|
text: {
|
|
1339
|
-
fontFamily: '
|
|
1340
|
+
fontFamily: 'YASans-SmBd';
|
|
1340
1341
|
fontSize: number;
|
|
1341
1342
|
letterSpacing: number;
|
|
1342
1343
|
lineHeight: number;
|
|
1343
1344
|
color: string;
|
|
1344
1345
|
};
|
|
1345
|
-
icon: { fontSize: number; lineHeight: number; color: string };
|
|
1346
|
+
icon: { fontSize: number; iconSizeToken: 'sm' | 'xs'; lineHeight: number; color: string };
|
|
1346
1347
|
} & {
|
|
1347
1348
|
useVariants: (
|
|
1348
1349
|
variants:
|
|
@@ -1427,7 +1428,7 @@ export declare const buttonStyles: {
|
|
|
1427
1428
|
export declare const checkboxStyles: {
|
|
1428
1429
|
root: { gap: number };
|
|
1429
1430
|
text: {
|
|
1430
|
-
fontFamily: '
|
|
1431
|
+
fontFamily: 'YASans';
|
|
1431
1432
|
fontSize: number;
|
|
1432
1433
|
letterSpacing: number;
|
|
1433
1434
|
lineHeight: number;
|
|
@@ -1483,12 +1484,12 @@ export declare const chipStyles: {
|
|
|
1483
1484
|
};
|
|
1484
1485
|
text: {
|
|
1485
1486
|
color: string;
|
|
1486
|
-
fontFamily: '
|
|
1487
|
+
fontFamily: 'YASans-SmBd';
|
|
1487
1488
|
fontSize: number;
|
|
1488
1489
|
letterSpacing: number;
|
|
1489
1490
|
lineHeight: number;
|
|
1490
1491
|
};
|
|
1491
|
-
icon: { color: string; fontSize: number; lineHeight: number };
|
|
1492
|
+
icon: { color: string; fontSize: number; iconSizeToken: 'sm'; lineHeight: number };
|
|
1492
1493
|
} & {
|
|
1493
1494
|
useVariants: (
|
|
1494
1495
|
variants:
|
|
@@ -1520,7 +1521,7 @@ export declare const dividerStyles: {
|
|
|
1520
1521
|
root: { gap: number };
|
|
1521
1522
|
label: {
|
|
1522
1523
|
color: string;
|
|
1523
|
-
fontFamily: '
|
|
1524
|
+
fontFamily: 'YASans-SmBd';
|
|
1524
1525
|
fontSize: number;
|
|
1525
1526
|
letterSpacing: number;
|
|
1526
1527
|
lineHeight: number;
|
|
@@ -1537,7 +1538,7 @@ export declare const dividerStyles: {
|
|
|
1537
1538
|
|
|
1538
1539
|
export declare const iconButtonStyles: {
|
|
1539
1540
|
root: { padding: number };
|
|
1540
|
-
icon: { fontSize: number; lineHeight: number };
|
|
1541
|
+
icon: { fontSize: number; iconSizeToken: 'md' | 'sm' | 'lg' | 'xs'; lineHeight: number };
|
|
1541
1542
|
} & {
|
|
1542
1543
|
useVariants: (
|
|
1543
1544
|
variants:
|
|
@@ -1547,10 +1548,10 @@ export declare const iconButtonStyles: {
|
|
|
1547
1548
|
};
|
|
1548
1549
|
|
|
1549
1550
|
export declare const inputStyles: {
|
|
1550
|
-
endIcon: { fontSize: number; lineHeight: number; color: string };
|
|
1551
|
-
helperIcon: { fontSize: number; lineHeight: number; color: string };
|
|
1551
|
+
endIcon: { fontSize: number; iconSizeToken: 'md'; lineHeight: number; color: string };
|
|
1552
|
+
helperIcon: { fontSize: number; iconSizeToken: 'sm'; lineHeight: number; color: string };
|
|
1552
1553
|
helperText: {
|
|
1553
|
-
fontFamily: '
|
|
1554
|
+
fontFamily: 'YASans';
|
|
1554
1555
|
fontSize: number;
|
|
1555
1556
|
letterSpacing: number;
|
|
1556
1557
|
lineHeight: number;
|
|
@@ -1561,7 +1562,7 @@ export declare const inputStyles: {
|
|
|
1561
1562
|
inputWrapper: {
|
|
1562
1563
|
borderWidth: number;
|
|
1563
1564
|
borderRadius: number;
|
|
1564
|
-
fontFamily: '
|
|
1565
|
+
fontFamily: 'YASans';
|
|
1565
1566
|
fontSize: number;
|
|
1566
1567
|
gap: number;
|
|
1567
1568
|
letterSpacing: number;
|
|
@@ -1572,14 +1573,14 @@ export declare const inputStyles: {
|
|
|
1572
1573
|
borderColor: string;
|
|
1573
1574
|
};
|
|
1574
1575
|
label: {
|
|
1575
|
-
fontFamily: '
|
|
1576
|
+
fontFamily: 'YASans';
|
|
1576
1577
|
fontSize: number;
|
|
1577
1578
|
letterSpacing: number;
|
|
1578
1579
|
lineHeight: number;
|
|
1579
1580
|
color: string;
|
|
1580
1581
|
};
|
|
1581
1582
|
labelRequired: { color: string };
|
|
1582
|
-
startIcon: { fontSize: number; lineHeight: number; color: string };
|
|
1583
|
+
startIcon: { fontSize: number; iconSizeToken: 'md'; lineHeight: number; color: string };
|
|
1583
1584
|
} & {
|
|
1584
1585
|
useVariants: (
|
|
1585
1586
|
variants:
|
|
@@ -1667,13 +1668,13 @@ export declare const inputStyles: {
|
|
|
1667
1668
|
|
|
1668
1669
|
export declare const linkStyles: {
|
|
1669
1670
|
root: {
|
|
1670
|
-
fontFamily: '
|
|
1671
|
+
fontFamily: 'YASans' | 'YASans-Medium' | 'YASans-SmBd';
|
|
1671
1672
|
fontSize: number;
|
|
1672
1673
|
letterSpacing: number;
|
|
1673
1674
|
lineHeight: number;
|
|
1674
1675
|
};
|
|
1675
1676
|
text: { color: string; textDecorationLine: 'underline' | 'none' };
|
|
1676
|
-
icon: { lineHeight: number; fontSize: number };
|
|
1677
|
+
icon: { lineHeight: number; fontSize: number; iconSizeToken: 'md' | 'sm' | 'lg' };
|
|
1677
1678
|
iconEnd: { color: string };
|
|
1678
1679
|
iconStart: { color: string };
|
|
1679
1680
|
} & {
|
|
@@ -1764,9 +1765,9 @@ export declare const menuContentStyles: {
|
|
|
1764
1765
|
export declare const menuItemStyles: {
|
|
1765
1766
|
root: { backgroundColor: string };
|
|
1766
1767
|
icon: { color: string };
|
|
1767
|
-
endIcon: { color: string; fontSize: number; lineHeight: number };
|
|
1768
|
+
endIcon: { color: string; fontSize: number; iconSizeToken: 'sm'; lineHeight: number };
|
|
1768
1769
|
line: { borderColor: 'transparent'; borderWidth: number };
|
|
1769
|
-
startIcon: { color: string; fontSize: number; lineHeight: number };
|
|
1770
|
+
startIcon: { color: string; fontSize: number; iconSizeToken: 'sm'; lineHeight: number };
|
|
1770
1771
|
} & {
|
|
1771
1772
|
useVariants: (
|
|
1772
1773
|
variants:
|
|
@@ -1786,7 +1787,7 @@ export declare const menuItemStyles: {
|
|
|
1786
1787
|
export declare const radioStyles: {
|
|
1787
1788
|
root: { gap: number };
|
|
1788
1789
|
text: {
|
|
1789
|
-
fontFamily: '
|
|
1790
|
+
fontFamily: 'YASans';
|
|
1790
1791
|
fontSize: number;
|
|
1791
1792
|
letterSpacing: number;
|
|
1792
1793
|
lineHeight: number;
|
|
@@ -1827,14 +1828,9 @@ export declare const radioStyles: {
|
|
|
1827
1828
|
|
|
1828
1829
|
export declare const switchStyles: {
|
|
1829
1830
|
root: { gap: number; paddingHorizontal: number; paddingVertical: number };
|
|
1830
|
-
text: {
|
|
1831
|
-
fontFamily: 'YahooProductSans';
|
|
1832
|
-
fontSize: number;
|
|
1833
|
-
letterSpacing: number;
|
|
1834
|
-
lineHeight: number;
|
|
1835
|
-
};
|
|
1831
|
+
text: { fontFamily: 'YASans'; fontSize: number; letterSpacing: number; lineHeight: number };
|
|
1836
1832
|
handle: { height: number; width: number; backgroundColor: string; boxShadow: string };
|
|
1837
|
-
handleIcon: { fontSize: number; lineHeight: number; color: string };
|
|
1833
|
+
handleIcon: { fontSize: number; iconSizeToken: 'sm'; lineHeight: number; color: string };
|
|
1838
1834
|
switch: {
|
|
1839
1835
|
borderWidth: number;
|
|
1840
1836
|
height: number;
|
|
@@ -1857,14 +1853,9 @@ export declare const switchStyles: {
|
|
|
1857
1853
|
export declare const toastStyles: {
|
|
1858
1854
|
root: { borderRadius: number; gap: number; paddingHorizontal: number; paddingVertical: number };
|
|
1859
1855
|
text: { color: string };
|
|
1860
|
-
icon: { fontSize: number; lineHeight: number; color: string };
|
|
1861
|
-
closeIcon: { fontSize: number; lineHeight: number; color: string };
|
|
1862
|
-
label: {
|
|
1863
|
-
fontFamily: 'YahooProductSans-Medium';
|
|
1864
|
-
fontSize: number;
|
|
1865
|
-
letterSpacing: number;
|
|
1866
|
-
lineHeight: number;
|
|
1867
|
-
};
|
|
1856
|
+
icon: { fontSize: number; iconSizeToken: 'md'; lineHeight: number; color: string };
|
|
1857
|
+
closeIcon: { fontSize: number; iconSizeToken: 'sm'; lineHeight: number; color: string };
|
|
1858
|
+
label: { fontFamily: 'YASans-SmBd'; fontSize: number; letterSpacing: number; lineHeight: number };
|
|
1868
1859
|
} & {
|
|
1869
1860
|
useVariants: (
|
|
1870
1861
|
variants:
|
|
@@ -1885,6 +1876,32 @@ export declare const toastStyles: {
|
|
|
1885
1876
|
) => void;
|
|
1886
1877
|
};
|
|
1887
1878
|
|
|
1879
|
+
export declare const tooltipStyles: {
|
|
1880
|
+
root: { gap: number; paddingHorizontal: number; paddingVertical: number };
|
|
1881
|
+
text: { color: string };
|
|
1882
|
+
icon: { fontSize: number; iconSizeToken: 'xs'; lineHeight: number; color: string };
|
|
1883
|
+
body: { fontFamily: 'YASans-SmBd'; fontSize: number; letterSpacing: number; lineHeight: number };
|
|
1884
|
+
endContent: {
|
|
1885
|
+
fontFamily: 'YASans-Medium';
|
|
1886
|
+
fontSize: number;
|
|
1887
|
+
letterSpacing: number;
|
|
1888
|
+
lineHeight: number;
|
|
1889
|
+
};
|
|
1890
|
+
svg: { borderRadius: number; backgroundColor: string };
|
|
1891
|
+
title: { fontFamily: 'YASans-SmBd'; fontSize: number; letterSpacing: number; lineHeight: number };
|
|
1892
|
+
} & {
|
|
1893
|
+
useVariants: (
|
|
1894
|
+
variants:
|
|
1895
|
+
| { size?: undefined }
|
|
1896
|
+
| { variant?: undefined }
|
|
1897
|
+
| { size?: undefined; variant?: undefined }
|
|
1898
|
+
| { size?: undefined }
|
|
1899
|
+
| { size?: undefined }
|
|
1900
|
+
| { size?: undefined; variant?: undefined }
|
|
1901
|
+
| { size?: undefined },
|
|
1902
|
+
) => void;
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1888
1905
|
export type StyleProps = {
|
|
1889
1906
|
backgroundColor?:
|
|
1890
1907
|
| 'primary'
|
package/generated/styles.mjs
CHANGED
|
@@ -4590,6 +4590,61 @@ const toastStyles = StyleSheet.create((theme) => ({
|
|
|
4590
4590
|
},
|
|
4591
4591
|
}));
|
|
4592
4592
|
|
|
4593
|
+
/**
|
|
4594
|
+
* Layer-based styles for Tooltip.
|
|
4595
|
+
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
4596
|
+
*
|
|
4597
|
+
* Usage:
|
|
4598
|
+
* ```tsx
|
|
4599
|
+
* tooltipStyles.useVariants({
|
|
4600
|
+
* size,
|
|
4601
|
+
* variant,
|
|
4602
|
+
* disabled: isDisabled, // boolean
|
|
4603
|
+
* pressed: isPressed, // boolean
|
|
4604
|
+
* });
|
|
4605
|
+
* // Access: tooltipStyles.root, tooltipStyles.icon, etc.
|
|
4606
|
+
* ```
|
|
4607
|
+
*/
|
|
4608
|
+
const tooltipStyles = StyleSheet.create((theme) => ({
|
|
4609
|
+
root: {
|
|
4610
|
+
variants: {
|
|
4611
|
+
size: { default: theme.components['tooltip/size/default/root/rest'] },
|
|
4612
|
+
},
|
|
4613
|
+
},
|
|
4614
|
+
text: {
|
|
4615
|
+
variants: {
|
|
4616
|
+
variant: { default: theme.components['tooltip/variant/default/rootText/rest'] },
|
|
4617
|
+
},
|
|
4618
|
+
},
|
|
4619
|
+
icon: {
|
|
4620
|
+
variants: {
|
|
4621
|
+
size: { default: theme.components['tooltip/size/default/icon/rest'] },
|
|
4622
|
+
variant: { default: theme.components['tooltip/variant/default/icon/rest'] },
|
|
4623
|
+
},
|
|
4624
|
+
},
|
|
4625
|
+
body: {
|
|
4626
|
+
variants: {
|
|
4627
|
+
size: { default: theme.components['tooltip/size/default/body/rest'] },
|
|
4628
|
+
},
|
|
4629
|
+
},
|
|
4630
|
+
endContent: {
|
|
4631
|
+
variants: {
|
|
4632
|
+
size: { default: theme.components['tooltip/size/default/endContent/rest'] },
|
|
4633
|
+
},
|
|
4634
|
+
},
|
|
4635
|
+
svg: {
|
|
4636
|
+
variants: {
|
|
4637
|
+
size: { default: theme.components['tooltip/size/default/svg/rest'] },
|
|
4638
|
+
variant: { default: theme.components['tooltip/variant/default/svg/rest'] },
|
|
4639
|
+
},
|
|
4640
|
+
},
|
|
4641
|
+
title: {
|
|
4642
|
+
variants: {
|
|
4643
|
+
size: { default: theme.components['tooltip/size/default/title/rest'] },
|
|
4644
|
+
},
|
|
4645
|
+
},
|
|
4646
|
+
}));
|
|
4647
|
+
|
|
4593
4648
|
export {
|
|
4594
4649
|
styles,
|
|
4595
4650
|
avatarStyles,
|
|
@@ -4606,4 +4661,5 @@ export {
|
|
|
4606
4661
|
radioStyles,
|
|
4607
4662
|
switchStyles,
|
|
4608
4663
|
toastStyles,
|
|
4664
|
+
tooltipStyles,
|
|
4609
4665
|
};
|