@yahoo/uds-mobile 2.15.0 → 2.16.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.
- package/README.md +27 -24
- package/dist/components/Input.cjs +16 -13
- package/dist/components/Input.d.cts.map +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +16 -13
- package/dist/components/Input.js.map +1 -1
- package/dist/components/InputHelpText.cjs +52 -0
- package/dist/components/InputHelpText.d.cts +37 -0
- package/dist/components/InputHelpText.d.cts.map +1 -0
- package/dist/components/InputHelpText.d.ts +37 -0
- package/dist/components/InputHelpText.d.ts.map +1 -0
- package/dist/components/InputHelpText.js +52 -0
- package/dist/components/InputHelpText.js.map +1 -0
- package/dist/components/internal/Overlay/OverlayPortal.cjs +20 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.cts +17 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.cts.map +1 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.ts +17 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.ts.map +1 -0
- package/dist/components/internal/Overlay/OverlayPortal.js +20 -0
- package/dist/components/internal/Overlay/OverlayPortal.js.map +1 -0
- package/dist/components/internal/Overlay/index.cjs +6 -0
- package/dist/components/internal/Overlay/index.d.cts +5 -0
- package/dist/components/internal/Overlay/index.d.ts +5 -0
- package/dist/components/internal/Overlay/index.js +4 -0
- package/dist/components/internal/Overlay/types.cjs +1 -0
- package/dist/components/internal/Overlay/types.d.cts +21 -0
- package/dist/components/internal/Overlay/types.d.cts.map +1 -0
- package/dist/components/internal/Overlay/types.d.ts +21 -0
- package/dist/components/internal/Overlay/types.d.ts.map +1 -0
- package/dist/components/internal/Overlay/types.js +1 -0
- package/dist/components/internal/Overlay/useControllableState.cjs +34 -0
- package/dist/components/internal/Overlay/useControllableState.d.cts +18 -0
- package/dist/components/internal/Overlay/useControllableState.d.cts.map +1 -0
- package/dist/components/internal/Overlay/useControllableState.d.ts +18 -0
- package/dist/components/internal/Overlay/useControllableState.d.ts.map +1 -0
- package/dist/components/internal/Overlay/useControllableState.js +34 -0
- package/dist/components/internal/Overlay/useControllableState.js.map +1 -0
- package/dist/portal.cjs +1 -0
- package/dist/portal.d.cts +6 -1
- package/dist/portal.d.cts.map +1 -1
- package/dist/portal.d.ts +6 -1
- package/dist/portal.d.ts.map +1 -1
- package/dist/portal.js +1 -1
- package/dist/portal.js.map +1 -1
- package/dist/types/dist/index.d.cts +1 -1
- package/dist/types/dist/index.d.cts.map +1 -1
- package/dist/types/dist/index.d.ts +1 -1
- package/dist/types/dist/index.d.ts.map +1 -1
- package/fonts/index.cjs +219 -219
- package/fonts/index.mjs +219 -219
- package/generated/styles.cjs +114 -0
- package/generated/styles.d.ts +29 -0
- package/generated/styles.mjs +114 -0
- package/generated/unistyles.d.ts +110 -0
- package/package.json +11 -1
package/generated/styles.d.ts
CHANGED
|
@@ -2011,6 +2011,35 @@ export declare const modalStyles: {
|
|
|
2011
2011
|
) => void;
|
|
2012
2012
|
};
|
|
2013
2013
|
|
|
2014
|
+
export declare const paddleNavStyles: {
|
|
2015
|
+
root: { borderRadius: number; borderWidth: number; padding: number; borderColor: string };
|
|
2016
|
+
icon: {
|
|
2017
|
+
fontSize: number;
|
|
2018
|
+
iconSizeToken: 'md' | 'sm' | 'lg' | 'xs';
|
|
2019
|
+
lineHeight: number;
|
|
2020
|
+
color: string;
|
|
2021
|
+
};
|
|
2022
|
+
background: { backgroundColor: string; opacity: number };
|
|
2023
|
+
} & {
|
|
2024
|
+
useVariants: (
|
|
2025
|
+
variants:
|
|
2026
|
+
| {
|
|
2027
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | undefined;
|
|
2028
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | undefined;
|
|
2029
|
+
pressed?: boolean | 'true' | undefined;
|
|
2030
|
+
}
|
|
2031
|
+
| {
|
|
2032
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | undefined;
|
|
2033
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | undefined;
|
|
2034
|
+
pressed?: boolean | 'true' | undefined;
|
|
2035
|
+
}
|
|
2036
|
+
| {
|
|
2037
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | undefined;
|
|
2038
|
+
pressed?: boolean | 'true' | undefined;
|
|
2039
|
+
},
|
|
2040
|
+
) => void;
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2014
2043
|
export declare const popoverStyles: {
|
|
2015
2044
|
root: { boxShadow: string };
|
|
2016
2045
|
blur: { backgroundBlurRadius: number };
|
package/generated/styles.mjs
CHANGED
|
@@ -4456,6 +4456,119 @@ const modalStyles = StyleSheet.create((theme) => ({
|
|
|
4456
4456
|
},
|
|
4457
4457
|
}));
|
|
4458
4458
|
|
|
4459
|
+
/**
|
|
4460
|
+
* Layer-based styles for PaddleNav.
|
|
4461
|
+
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
4462
|
+
*
|
|
4463
|
+
* Usage:
|
|
4464
|
+
* ```tsx
|
|
4465
|
+
* paddleNavStyles.useVariants({
|
|
4466
|
+
* size,
|
|
4467
|
+
* variant,
|
|
4468
|
+
* disabled: isDisabled, // boolean
|
|
4469
|
+
* pressed: isPressed, // boolean
|
|
4470
|
+
* });
|
|
4471
|
+
* // Access: paddleNavStyles.root, paddleNavStyles.icon, etc.
|
|
4472
|
+
* ```
|
|
4473
|
+
*/
|
|
4474
|
+
const paddleNavStyles = StyleSheet.create((theme) => ({
|
|
4475
|
+
root: {
|
|
4476
|
+
variants: {
|
|
4477
|
+
size: {
|
|
4478
|
+
lg: theme.components['paddleNav/size/lg/root/rest'],
|
|
4479
|
+
md: theme.components['paddleNav/size/md/root/rest'],
|
|
4480
|
+
sm: theme.components['paddleNav/size/sm/root/rest'],
|
|
4481
|
+
xl: theme.components['paddleNav/size/xl/root/rest'],
|
|
4482
|
+
xs: theme.components['paddleNav/size/xs/root/rest'],
|
|
4483
|
+
},
|
|
4484
|
+
variant: {
|
|
4485
|
+
primary: theme.components['paddleNav/variant/primary/root/rest'],
|
|
4486
|
+
secondary: theme.components['paddleNav/variant/secondary/root/rest'],
|
|
4487
|
+
tertiary: theme.components['paddleNav/variant/tertiary/root/rest'],
|
|
4488
|
+
},
|
|
4489
|
+
pressed: { true: {} },
|
|
4490
|
+
},
|
|
4491
|
+
compoundVariants: [
|
|
4492
|
+
{
|
|
4493
|
+
variant: 'primary',
|
|
4494
|
+
pressed: true,
|
|
4495
|
+
styles: theme.components['paddleNav/variant/primary/root/pressed'],
|
|
4496
|
+
},
|
|
4497
|
+
{
|
|
4498
|
+
variant: 'secondary',
|
|
4499
|
+
pressed: true,
|
|
4500
|
+
styles: theme.components['paddleNav/variant/secondary/root/pressed'],
|
|
4501
|
+
},
|
|
4502
|
+
{
|
|
4503
|
+
variant: 'tertiary',
|
|
4504
|
+
pressed: true,
|
|
4505
|
+
styles: theme.components['paddleNav/variant/tertiary/root/pressed'],
|
|
4506
|
+
},
|
|
4507
|
+
],
|
|
4508
|
+
},
|
|
4509
|
+
icon: {
|
|
4510
|
+
variants: {
|
|
4511
|
+
size: {
|
|
4512
|
+
lg: theme.components['paddleNav/size/lg/icon/rest'],
|
|
4513
|
+
md: theme.components['paddleNav/size/md/icon/rest'],
|
|
4514
|
+
sm: theme.components['paddleNav/size/sm/icon/rest'],
|
|
4515
|
+
xl: theme.components['paddleNav/size/xl/icon/rest'],
|
|
4516
|
+
xs: theme.components['paddleNav/size/xs/icon/rest'],
|
|
4517
|
+
},
|
|
4518
|
+
variant: {
|
|
4519
|
+
primary: theme.components['paddleNav/variant/primary/icon/rest'],
|
|
4520
|
+
secondary: theme.components['paddleNav/variant/secondary/icon/rest'],
|
|
4521
|
+
tertiary: theme.components['paddleNav/variant/tertiary/icon/rest'],
|
|
4522
|
+
},
|
|
4523
|
+
pressed: { true: {} },
|
|
4524
|
+
},
|
|
4525
|
+
compoundVariants: [
|
|
4526
|
+
{
|
|
4527
|
+
variant: 'primary',
|
|
4528
|
+
pressed: true,
|
|
4529
|
+
styles: theme.components['paddleNav/variant/primary/icon/pressed'],
|
|
4530
|
+
},
|
|
4531
|
+
{
|
|
4532
|
+
variant: 'secondary',
|
|
4533
|
+
pressed: true,
|
|
4534
|
+
styles: theme.components['paddleNav/variant/secondary/icon/pressed'],
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
variant: 'tertiary',
|
|
4538
|
+
pressed: true,
|
|
4539
|
+
styles: theme.components['paddleNav/variant/tertiary/icon/pressed'],
|
|
4540
|
+
},
|
|
4541
|
+
],
|
|
4542
|
+
},
|
|
4543
|
+
background: {
|
|
4544
|
+
variants: {
|
|
4545
|
+
variant: {
|
|
4546
|
+
primary: theme.components['paddleNav/variant/primary/background/rest'],
|
|
4547
|
+
secondary: theme.components['paddleNav/variant/secondary/background/rest'],
|
|
4548
|
+
tertiary: theme.components['paddleNav/variant/tertiary/background/rest'],
|
|
4549
|
+
},
|
|
4550
|
+
pressed: { true: {} },
|
|
4551
|
+
},
|
|
4552
|
+
compoundVariants: [
|
|
4553
|
+
{
|
|
4554
|
+
variant: 'primary',
|
|
4555
|
+
pressed: true,
|
|
4556
|
+
styles: theme.components['paddleNav/variant/primary/background/pressed'],
|
|
4557
|
+
},
|
|
4558
|
+
{
|
|
4559
|
+
variant: 'secondary',
|
|
4560
|
+
pressed: true,
|
|
4561
|
+
styles: theme.components['paddleNav/variant/secondary/background/pressed'],
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
variant: 'tertiary',
|
|
4565
|
+
pressed: true,
|
|
4566
|
+
styles: theme.components['paddleNav/variant/tertiary/background/pressed'],
|
|
4567
|
+
},
|
|
4568
|
+
],
|
|
4569
|
+
},
|
|
4570
|
+
}));
|
|
4571
|
+
|
|
4459
4572
|
/**
|
|
4460
4573
|
* Layer-based styles for Popover.
|
|
4461
4574
|
* Uses compound variants for state-specific (disabled/pressed) styles.
|
|
@@ -5233,6 +5346,7 @@ export {
|
|
|
5233
5346
|
menuContentStyles,
|
|
5234
5347
|
menuItemStyles,
|
|
5235
5348
|
modalStyles,
|
|
5349
|
+
paddleNavStyles,
|
|
5236
5350
|
popoverStyles,
|
|
5237
5351
|
radioStyles,
|
|
5238
5352
|
scrimStyles,
|
package/generated/unistyles.d.ts
CHANGED
|
@@ -4003,6 +4003,116 @@ interface ComponentTheme {
|
|
|
4003
4003
|
'modal/variant/default/title/rest': {
|
|
4004
4004
|
color: string;
|
|
4005
4005
|
};
|
|
4006
|
+
'paddleNav/size/lg/icon/rest': {
|
|
4007
|
+
fontSize: number;
|
|
4008
|
+
iconSizeToken: string;
|
|
4009
|
+
lineHeight: number;
|
|
4010
|
+
};
|
|
4011
|
+
'paddleNav/size/lg/root/rest': {
|
|
4012
|
+
borderRadius: number;
|
|
4013
|
+
borderWidth: number;
|
|
4014
|
+
padding: number;
|
|
4015
|
+
};
|
|
4016
|
+
'paddleNav/size/md/icon/rest': {
|
|
4017
|
+
fontSize: number;
|
|
4018
|
+
iconSizeToken: string;
|
|
4019
|
+
lineHeight: number;
|
|
4020
|
+
};
|
|
4021
|
+
'paddleNav/size/md/root/rest': {
|
|
4022
|
+
borderRadius: number;
|
|
4023
|
+
borderWidth: number;
|
|
4024
|
+
padding: number;
|
|
4025
|
+
};
|
|
4026
|
+
'paddleNav/size/sm/icon/rest': {
|
|
4027
|
+
fontSize: number;
|
|
4028
|
+
iconSizeToken: string;
|
|
4029
|
+
lineHeight: number;
|
|
4030
|
+
};
|
|
4031
|
+
'paddleNav/size/sm/root/rest': {
|
|
4032
|
+
borderRadius: number;
|
|
4033
|
+
borderWidth: number;
|
|
4034
|
+
padding: number;
|
|
4035
|
+
};
|
|
4036
|
+
'paddleNav/size/xl/icon/rest': {
|
|
4037
|
+
fontSize: number;
|
|
4038
|
+
iconSizeToken: string;
|
|
4039
|
+
lineHeight: number;
|
|
4040
|
+
};
|
|
4041
|
+
'paddleNav/size/xl/root/rest': {
|
|
4042
|
+
borderRadius: number;
|
|
4043
|
+
borderWidth: number;
|
|
4044
|
+
padding: number;
|
|
4045
|
+
};
|
|
4046
|
+
'paddleNav/size/xs/icon/rest': {
|
|
4047
|
+
fontSize: number;
|
|
4048
|
+
iconSizeToken: string;
|
|
4049
|
+
lineHeight: number;
|
|
4050
|
+
};
|
|
4051
|
+
'paddleNav/size/xs/root/rest': {
|
|
4052
|
+
borderRadius: number;
|
|
4053
|
+
borderWidth: number;
|
|
4054
|
+
padding: number;
|
|
4055
|
+
};
|
|
4056
|
+
'paddleNav/variant/primary/background/pressed': {
|
|
4057
|
+
backgroundColor: string;
|
|
4058
|
+
opacity: number;
|
|
4059
|
+
};
|
|
4060
|
+
'paddleNav/variant/primary/background/rest': {
|
|
4061
|
+
backgroundColor: string;
|
|
4062
|
+
opacity: number;
|
|
4063
|
+
};
|
|
4064
|
+
'paddleNav/variant/primary/icon/pressed': {
|
|
4065
|
+
color: string;
|
|
4066
|
+
};
|
|
4067
|
+
'paddleNav/variant/primary/icon/rest': {
|
|
4068
|
+
color: string;
|
|
4069
|
+
};
|
|
4070
|
+
'paddleNav/variant/primary/root/pressed': {
|
|
4071
|
+
borderColor: string;
|
|
4072
|
+
};
|
|
4073
|
+
'paddleNav/variant/primary/root/rest': {
|
|
4074
|
+
borderColor: string;
|
|
4075
|
+
};
|
|
4076
|
+
'paddleNav/variant/secondary/background/pressed': {
|
|
4077
|
+
backgroundColor: string;
|
|
4078
|
+
opacity: number;
|
|
4079
|
+
};
|
|
4080
|
+
'paddleNav/variant/secondary/background/rest': {
|
|
4081
|
+
backgroundColor: string;
|
|
4082
|
+
opacity: number;
|
|
4083
|
+
};
|
|
4084
|
+
'paddleNav/variant/secondary/icon/pressed': {
|
|
4085
|
+
color: string;
|
|
4086
|
+
};
|
|
4087
|
+
'paddleNav/variant/secondary/icon/rest': {
|
|
4088
|
+
color: string;
|
|
4089
|
+
};
|
|
4090
|
+
'paddleNav/variant/secondary/root/pressed': {
|
|
4091
|
+
borderColor: string;
|
|
4092
|
+
};
|
|
4093
|
+
'paddleNav/variant/secondary/root/rest': {
|
|
4094
|
+
borderColor: string;
|
|
4095
|
+
};
|
|
4096
|
+
'paddleNav/variant/tertiary/background/pressed': {
|
|
4097
|
+
backgroundColor: string;
|
|
4098
|
+
opacity: number;
|
|
4099
|
+
};
|
|
4100
|
+
'paddleNav/variant/tertiary/background/rest': {
|
|
4101
|
+
backgroundColor: string;
|
|
4102
|
+
opacity: number;
|
|
4103
|
+
};
|
|
4104
|
+
'paddleNav/variant/tertiary/icon/pressed': {
|
|
4105
|
+
color: string;
|
|
4106
|
+
};
|
|
4107
|
+
'paddleNav/variant/tertiary/icon/rest': {
|
|
4108
|
+
color: string;
|
|
4109
|
+
};
|
|
4110
|
+
'paddleNav/variant/tertiary/root/pressed': {
|
|
4111
|
+
borderColor: string;
|
|
4112
|
+
};
|
|
4113
|
+
'paddleNav/variant/tertiary/root/rest': {
|
|
4114
|
+
borderColor: string;
|
|
4115
|
+
};
|
|
4006
4116
|
'popover/size/default/closeIcon/rest': {
|
|
4007
4117
|
fontSize: number;
|
|
4008
4118
|
iconSizeToken: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-mobile",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"uds-mobile": "./cli/uds-mobile.js"
|
|
@@ -190,6 +190,16 @@
|
|
|
190
190
|
"default": "./dist/components/Input.cjs"
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
+
"./InputHelpText": {
|
|
194
|
+
"import": {
|
|
195
|
+
"types": "./dist/components/InputHelpText.d.ts",
|
|
196
|
+
"default": "./dist/components/InputHelpText.js"
|
|
197
|
+
},
|
|
198
|
+
"require": {
|
|
199
|
+
"types": "./dist/components/InputHelpText.d.cts",
|
|
200
|
+
"default": "./dist/components/InputHelpText.cjs"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
193
203
|
"./Link": {
|
|
194
204
|
"import": {
|
|
195
205
|
"types": "./dist/components/Link.d.ts",
|