@yahoo/uds-mobile 1.6.5 → 1.8.0-beta.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.
@@ -30,6 +30,7 @@ export declare const styles: {
30
30
  borderTopStartRadius?: number;
31
31
  borderTopWidth?: number;
32
32
  borderWidth?: number;
33
+ boxShadow?: string;
33
34
  color?: string;
34
35
  columnGap?: number;
35
36
  display?: 'flex' | 'none' | 'contents';
@@ -1201,6 +1202,36 @@ export declare const styles: {
1201
1202
  | undefined;
1202
1203
  textAlign?: 'center' | 'justify' | undefined;
1203
1204
  textTransform?: 'none' | 'capitalize' | 'uppercase' | 'lowercase' | undefined;
1205
+ dropShadow?:
1206
+ | 'none'
1207
+ | 'elevation-0'
1208
+ | 'elevation-1'
1209
+ | 'elevation-2'
1210
+ | 'elevation-3'
1211
+ | 'elevation-4'
1212
+ | 'elevation-5'
1213
+ | 'xs'
1214
+ | 'sm'
1215
+ | 'md'
1216
+ | 'lg'
1217
+ | 'xl'
1218
+ | '2xl'
1219
+ | undefined;
1220
+ insetShadow?:
1221
+ | 'none'
1222
+ | 'xs'
1223
+ | 'sm'
1224
+ | 'md'
1225
+ | 'lg'
1226
+ | 'xl'
1227
+ | '2xl'
1228
+ | 'xs-invert'
1229
+ | 'sm-invert'
1230
+ | 'md-invert'
1231
+ | 'lg-invert'
1232
+ | 'xl-invert'
1233
+ | '2xl-invert'
1234
+ | undefined;
1204
1235
  iconSize?: 'xs' | 'sm' | 'md' | 'lg' | undefined;
1205
1236
  avatarSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | undefined;
1206
1237
  }) => void;
@@ -1217,7 +1248,7 @@ export declare const avatarStyles: {
1217
1248
  };
1218
1249
  text: {
1219
1250
  color: string;
1220
- fontFamily: 'YASans' | 'YASans-Medium';
1251
+ fontFamily: 'YahooProductSans' | 'YahooProductSans-Medium';
1221
1252
  fontSize: number;
1222
1253
  letterSpacing: number;
1223
1254
  lineHeight: number;
@@ -1263,7 +1294,7 @@ export declare const badgeStyles: {
1263
1294
  borderWidth: number;
1264
1295
  };
1265
1296
  text: {
1266
- fontFamily: 'YASans-SmBd';
1297
+ fontFamily: 'YahooProductSans-Medium';
1267
1298
  fontSize: number;
1268
1299
  letterSpacing: number;
1269
1300
  lineHeight: number;
@@ -1340,7 +1371,7 @@ export declare const buttonStyles: {
1340
1371
  boxShadow: string;
1341
1372
  };
1342
1373
  text: {
1343
- fontFamily: 'YASans-SmBd';
1374
+ fontFamily: 'YahooProductSans-Medium';
1344
1375
  fontSize: number;
1345
1376
  letterSpacing: number;
1346
1377
  lineHeight: number;
@@ -1440,7 +1471,7 @@ export declare const buttonStyles: {
1440
1471
  export declare const checkboxStyles: {
1441
1472
  root: { gap: number };
1442
1473
  text: {
1443
- fontFamily: 'YASans';
1474
+ fontFamily: 'YahooProductSans';
1444
1475
  fontSize: number;
1445
1476
  letterSpacing: number;
1446
1477
  lineHeight: number;
@@ -1496,7 +1527,7 @@ export declare const chipStyles: {
1496
1527
  };
1497
1528
  text: {
1498
1529
  color: string;
1499
- fontFamily: 'YASans-SmBd';
1530
+ fontFamily: 'YahooProductSans-Medium';
1500
1531
  fontSize: number;
1501
1532
  letterSpacing: number;
1502
1533
  lineHeight: number;
@@ -1533,7 +1564,7 @@ export declare const dividerStyles: {
1533
1564
  root: { gap: number };
1534
1565
  label: {
1535
1566
  color: string;
1536
- fontFamily: 'YASans-SmBd';
1567
+ fontFamily: 'YahooProductSans-Medium';
1537
1568
  fontSize: number;
1538
1569
  letterSpacing: number;
1539
1570
  lineHeight: number;
@@ -1563,7 +1594,7 @@ export declare const inputStyles: {
1563
1594
  endIcon: { fontSize: number; iconSizeToken: 'md'; lineHeight: number; color: string };
1564
1595
  helperIcon: { fontSize: number; iconSizeToken: 'sm'; lineHeight: number; color: string };
1565
1596
  helperText: {
1566
- fontFamily: 'YASans';
1597
+ fontFamily: 'YahooProductSans';
1567
1598
  fontSize: number;
1568
1599
  letterSpacing: number;
1569
1600
  lineHeight: number;
@@ -1574,7 +1605,7 @@ export declare const inputStyles: {
1574
1605
  inputWrapper: {
1575
1606
  borderWidth: number;
1576
1607
  borderRadius: number;
1577
- fontFamily: 'YASans';
1608
+ fontFamily: 'YahooProductSans';
1578
1609
  fontSize: number;
1579
1610
  gap: number;
1580
1611
  letterSpacing: number;
@@ -1585,7 +1616,7 @@ export declare const inputStyles: {
1585
1616
  borderColor: string;
1586
1617
  };
1587
1618
  label: {
1588
- fontFamily: 'YASans';
1619
+ fontFamily: 'YahooProductSans';
1589
1620
  fontSize: number;
1590
1621
  letterSpacing: number;
1591
1622
  lineHeight: number;
@@ -1680,7 +1711,7 @@ export declare const inputStyles: {
1680
1711
 
1681
1712
  export declare const linkStyles: {
1682
1713
  root: {
1683
- fontFamily: 'YASans' | 'YASans-Medium' | 'YASans-SmBd';
1714
+ fontFamily: 'YahooProductSans' | 'YahooProductSans-Medium';
1684
1715
  fontSize: number;
1685
1716
  letterSpacing: number;
1686
1717
  lineHeight: number;
@@ -1799,7 +1830,7 @@ export declare const menuItemStyles: {
1799
1830
  export declare const radioStyles: {
1800
1831
  root: { gap: number };
1801
1832
  text: {
1802
- fontFamily: 'YASans';
1833
+ fontFamily: 'YahooProductSans';
1803
1834
  fontSize: number;
1804
1835
  letterSpacing: number;
1805
1836
  lineHeight: number;
@@ -1840,7 +1871,12 @@ export declare const radioStyles: {
1840
1871
 
1841
1872
  export declare const switchStyles: {
1842
1873
  root: { gap: number; paddingHorizontal: number; paddingVertical: number };
1843
- text: { fontFamily: 'YASans'; fontSize: number; letterSpacing: number; lineHeight: number };
1874
+ text: {
1875
+ fontFamily: 'YahooProductSans';
1876
+ fontSize: number;
1877
+ letterSpacing: number;
1878
+ lineHeight: number;
1879
+ };
1844
1880
  handle: { height: number; width: number; backgroundColor: string; boxShadow: string };
1845
1881
  handleIcon: { fontSize: number; iconSizeToken: 'sm'; lineHeight: number; color: string };
1846
1882
  switch: {
@@ -1863,11 +1899,25 @@ export declare const switchStyles: {
1863
1899
  };
1864
1900
 
1865
1901
  export declare const toastStyles: {
1866
- root: { borderRadius: number; gap: number; paddingHorizontal: number; paddingVertical: number };
1902
+ root: {
1903
+ borderRadius: number;
1904
+ borderWidth: number;
1905
+ boxShadow: string;
1906
+ gap: number;
1907
+ paddingHorizontal: number;
1908
+ paddingVertical: number;
1909
+ backgroundColor: string;
1910
+ borderColor: string;
1911
+ };
1867
1912
  text: { color: string };
1868
1913
  icon: { fontSize: number; iconSizeToken: 'md'; lineHeight: number; color: string };
1869
1914
  closeIcon: { fontSize: number; iconSizeToken: 'sm'; lineHeight: number; color: string };
1870
- label: { fontFamily: 'YASans-SmBd'; fontSize: number; letterSpacing: number; lineHeight: number };
1915
+ label: {
1916
+ fontFamily: 'YahooProductSans-Medium';
1917
+ fontSize: number;
1918
+ letterSpacing: number;
1919
+ lineHeight: number;
1920
+ };
1871
1921
  } & {
1872
1922
  useVariants: (
1873
1923
  variants:
@@ -1892,15 +1942,25 @@ export declare const tooltipStyles: {
1892
1942
  root: { gap: number; paddingHorizontal: number; paddingVertical: number };
1893
1943
  text: { color: string };
1894
1944
  icon: { fontSize: number; iconSizeToken: 'xs'; lineHeight: number; color: string };
1895
- body: { fontFamily: 'YASans-SmBd'; fontSize: number; letterSpacing: number; lineHeight: number };
1945
+ body: {
1946
+ fontFamily: 'YahooProductSans-Medium';
1947
+ fontSize: number;
1948
+ letterSpacing: number;
1949
+ lineHeight: number;
1950
+ };
1896
1951
  endContent: {
1897
- fontFamily: 'YASans-Medium';
1952
+ fontFamily: 'YahooProductSans-Medium';
1898
1953
  fontSize: number;
1899
1954
  letterSpacing: number;
1900
1955
  lineHeight: number;
1901
1956
  };
1902
1957
  svg: { borderRadius: number; backgroundColor: string };
1903
- title: { fontFamily: 'YASans-SmBd'; fontSize: number; letterSpacing: number; lineHeight: number };
1958
+ title: {
1959
+ fontFamily: 'YahooProductSans-Medium';
1960
+ fontSize: number;
1961
+ letterSpacing: number;
1962
+ lineHeight: number;
1963
+ };
1904
1964
  } & {
1905
1965
  useVariants: (
1906
1966
  variants:
@@ -3036,6 +3096,36 @@ export type StyleProps = {
3036
3096
  | undefined;
3037
3097
  textAlign?: 'center' | 'justify' | undefined;
3038
3098
  textTransform?: 'none' | 'capitalize' | 'uppercase' | 'lowercase' | undefined;
3099
+ dropShadow?:
3100
+ | 'none'
3101
+ | 'elevation-0'
3102
+ | 'elevation-1'
3103
+ | 'elevation-2'
3104
+ | 'elevation-3'
3105
+ | 'elevation-4'
3106
+ | 'elevation-5'
3107
+ | 'xs'
3108
+ | 'sm'
3109
+ | 'md'
3110
+ | 'lg'
3111
+ | 'xl'
3112
+ | '2xl'
3113
+ | undefined;
3114
+ insetShadow?:
3115
+ | 'none'
3116
+ | 'xs'
3117
+ | 'sm'
3118
+ | 'md'
3119
+ | 'lg'
3120
+ | 'xl'
3121
+ | '2xl'
3122
+ | 'xs-invert'
3123
+ | 'sm-invert'
3124
+ | 'md-invert'
3125
+ | 'lg-invert'
3126
+ | 'xl-invert'
3127
+ | '2xl-invert'
3128
+ | undefined;
3039
3129
  iconSize?: 'xs' | 'sm' | 'md' | 'lg' | undefined;
3040
3130
  avatarSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | undefined;
3041
3131
  };
@@ -1287,6 +1287,36 @@ const styles = StyleSheet.create((theme) => ({
1287
1287
  uppercase: { textTransform: 'uppercase' },
1288
1288
  lowercase: { textTransform: 'lowercase' },
1289
1289
  },
1290
+ dropShadow: {
1291
+ none: { boxShadow: theme.boxShadow.drop['none'] },
1292
+ 'elevation-0': { boxShadow: theme.boxShadow.drop['elevation-0'] },
1293
+ 'elevation-1': { boxShadow: theme.boxShadow.drop['elevation-1'] },
1294
+ 'elevation-2': { boxShadow: theme.boxShadow.drop['elevation-2'] },
1295
+ 'elevation-3': { boxShadow: theme.boxShadow.drop['elevation-3'] },
1296
+ 'elevation-4': { boxShadow: theme.boxShadow.drop['elevation-4'] },
1297
+ 'elevation-5': { boxShadow: theme.boxShadow.drop['elevation-5'] },
1298
+ xs: { boxShadow: theme.boxShadow.drop['xs'] },
1299
+ sm: { boxShadow: theme.boxShadow.drop['sm'] },
1300
+ md: { boxShadow: theme.boxShadow.drop['md'] },
1301
+ lg: { boxShadow: theme.boxShadow.drop['lg'] },
1302
+ xl: { boxShadow: theme.boxShadow.drop['xl'] },
1303
+ '2xl': { boxShadow: theme.boxShadow.drop['2xl'] },
1304
+ },
1305
+ insetShadow: {
1306
+ none: { boxShadow: theme.boxShadow.inset['none'] },
1307
+ xs: { boxShadow: theme.boxShadow.inset['xs'] },
1308
+ sm: { boxShadow: theme.boxShadow.inset['sm'] },
1309
+ md: { boxShadow: theme.boxShadow.inset['md'] },
1310
+ lg: { boxShadow: theme.boxShadow.inset['lg'] },
1311
+ xl: { boxShadow: theme.boxShadow.inset['xl'] },
1312
+ '2xl': { boxShadow: theme.boxShadow.inset['2xl'] },
1313
+ 'xs-invert': { boxShadow: theme.boxShadow.inset['xs-invert'] },
1314
+ 'sm-invert': { boxShadow: theme.boxShadow.inset['sm-invert'] },
1315
+ 'md-invert': { boxShadow: theme.boxShadow.inset['md-invert'] },
1316
+ 'lg-invert': { boxShadow: theme.boxShadow.inset['lg-invert'] },
1317
+ 'xl-invert': { boxShadow: theme.boxShadow.inset['xl-invert'] },
1318
+ '2xl-invert': { boxShadow: theme.boxShadow.inset['2xl-invert'] },
1319
+ },
1290
1320
  iconSize: {
1291
1321
  xs: { width: theme.iconSize['xs'], height: theme.iconSize['xs'] },
1292
1322
  sm: { width: theme.iconSize['sm'], height: theme.iconSize['sm'] },
@@ -3968,6 +3968,8 @@ interface ComponentTheme {
3968
3968
  };
3969
3969
  'toast/size/default/root/rest': {
3970
3970
  borderRadius: number;
3971
+ borderWidth: number;
3972
+ boxShadow: string;
3971
3973
  gap: number;
3972
3974
  paddingHorizontal: number;
3973
3975
  paddingVertical: number;
@@ -3978,6 +3980,10 @@ interface ComponentTheme {
3978
3980
  'toast/variant/error/icon/rest': {
3979
3981
  color: string;
3980
3982
  };
3983
+ 'toast/variant/error/root/rest': {
3984
+ backgroundColor: string;
3985
+ borderColor: string;
3986
+ };
3981
3987
  'toast/variant/error/rootText/rest': {
3982
3988
  color: string;
3983
3989
  };
@@ -3987,6 +3993,10 @@ interface ComponentTheme {
3987
3993
  'toast/variant/info/icon/rest': {
3988
3994
  color: string;
3989
3995
  };
3996
+ 'toast/variant/info/root/rest': {
3997
+ backgroundColor: string;
3998
+ borderColor: string;
3999
+ };
3990
4000
  'toast/variant/info/rootText/rest': {
3991
4001
  color: string;
3992
4002
  };
@@ -3996,6 +4006,10 @@ interface ComponentTheme {
3996
4006
  'toast/variant/loading/icon/rest': {
3997
4007
  color: string;
3998
4008
  };
4009
+ 'toast/variant/loading/root/rest': {
4010
+ backgroundColor: string;
4011
+ borderColor: string;
4012
+ };
3999
4013
  'toast/variant/loading/rootText/rest': {
4000
4014
  color: string;
4001
4015
  };
@@ -4005,6 +4019,10 @@ interface ComponentTheme {
4005
4019
  'toast/variant/success/icon/rest': {
4006
4020
  color: string;
4007
4021
  };
4022
+ 'toast/variant/success/root/rest': {
4023
+ backgroundColor: string;
4024
+ borderColor: string;
4025
+ };
4008
4026
  'toast/variant/success/rootText/rest': {
4009
4027
  color: string;
4010
4028
  };
@@ -4014,6 +4032,10 @@ interface ComponentTheme {
4014
4032
  'toast/variant/warning/icon/rest': {
4015
4033
  color: string;
4016
4034
  };
4035
+ 'toast/variant/warning/root/rest': {
4036
+ backgroundColor: string;
4037
+ borderColor: string;
4038
+ };
4017
4039
  'toast/variant/warning/rootText/rest': {
4018
4040
  color: string;
4019
4041
  };
@@ -4588,20 +4610,38 @@ export interface AppTheme {
4588
4610
  'ui5/emphasized': TypographyVariant;
4589
4611
  'ui6/emphasized': TypographyVariant;
4590
4612
  };
4591
- shadow: {
4592
- 'elevation-0': number;
4593
- 'elevation-1': number;
4594
- 'elevation-2': number;
4595
- 'elevation-3': number;
4596
- 'elevation-4': number;
4597
- 'elevation-5': number;
4598
- none: number;
4599
- xs: number;
4600
- sm: number;
4601
- md: number;
4602
- lg: number;
4603
- xl: number;
4604
- '2xl': number;
4613
+ shadow: Record<string, number>;
4614
+ boxShadow: {
4615
+ drop: {
4616
+ 'elevation-0': string;
4617
+ 'elevation-1': string;
4618
+ 'elevation-2': string;
4619
+ 'elevation-3': string;
4620
+ 'elevation-4': string;
4621
+ 'elevation-5': string;
4622
+ none: string;
4623
+ xs: string;
4624
+ sm: string;
4625
+ md: string;
4626
+ lg: string;
4627
+ xl: string;
4628
+ '2xl': string;
4629
+ };
4630
+ inset: {
4631
+ none: string;
4632
+ xs: string;
4633
+ sm: string;
4634
+ md: string;
4635
+ lg: string;
4636
+ xl: string;
4637
+ '2xl': string;
4638
+ 'xs-invert': string;
4639
+ 'sm-invert': string;
4640
+ 'md-invert': string;
4641
+ 'lg-invert': string;
4642
+ 'xl-invert': string;
4643
+ '2xl-invert': string;
4644
+ };
4605
4645
  };
4606
4646
  components: ComponentTheme;
4607
4647
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yahoo/uds-mobile",
3
- "version": "1.6.5",
3
+ "version": "1.8.0-beta.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "uds-mobile": "./cli/uds-mobile.js"
@@ -234,9 +234,9 @@
234
234
  "lodash-es": "^4.17.23"
235
235
  },
236
236
  "peerDependencies": {
237
- "expo-font": "~14.0.0",
237
+ "expo-font": "~55.0.0",
238
238
  "react": "*",
239
- "react-native": ">=0.81.0",
239
+ "react-native": ">=0.83.0",
240
240
  "react-native-edge-to-edge": ">=1.0.0",
241
241
  "react-native-nitro-modules": ">=0.32.0",
242
242
  "react-native-reanimated": ">=4.0.0",