@razorpay/blade 10.2.0 → 10.3.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/build/components/index.d.ts +10 -12
- package/build/components/index.development.web.js +94 -61
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +3 -5
- package/build/components/index.native.js +7 -7
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +94 -61
- package/build/components/index.production.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/package.json +1 -1
|
@@ -713,10 +713,8 @@ type PickCSSByPlatform<T extends keyof React__default.CSSProperties | keyof View
|
|
|
713
713
|
}>;
|
|
714
714
|
|
|
715
715
|
type BladeElementRef = Platform.Select<{
|
|
716
|
-
web:
|
|
717
|
-
|
|
718
|
-
| Pick<View, 'focus'>;
|
|
719
|
-
native: React__default.MutableRefObject<any>;
|
|
716
|
+
web: HTMLElement;
|
|
717
|
+
native: View;
|
|
720
718
|
}>;
|
|
721
719
|
|
|
722
720
|
declare type ActionListContextProp = Pick<ActionListProps, 'surfaceLevel'>;
|
|
@@ -5770,7 +5768,7 @@ declare type ListCommonProps = {
|
|
|
5770
5768
|
*
|
|
5771
5769
|
* @default 'medium'
|
|
5772
5770
|
*/
|
|
5773
|
-
size?: 'small' | 'medium';
|
|
5771
|
+
size?: 'small' | 'medium' | 'large';
|
|
5774
5772
|
} & TestID$1 & StyledPropsBlade$1;
|
|
5775
5773
|
declare type ListWithIconProps = ListCommonProps & {
|
|
5776
5774
|
variant?: 'unordered';
|
|
@@ -8215,13 +8213,13 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
8215
8213
|
readonly l?: csstype.Property.Border<string | number> | undefined;
|
|
8216
8214
|
readonly xl?: csstype.Property.Border<string | number> | undefined;
|
|
8217
8215
|
} | undefined;
|
|
8218
|
-
backgroundColor: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.
|
|
8219
|
-
readonly base?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.
|
|
8220
|
-
readonly xs?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.
|
|
8221
|
-
readonly s?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.
|
|
8222
|
-
readonly m?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.
|
|
8223
|
-
readonly l?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.
|
|
8224
|
-
readonly xl?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.
|
|
8216
|
+
backgroundColor: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.primary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.secondary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | "action.background.tertiary.disabled" | "transparent" | {
|
|
8217
|
+
readonly base?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.primary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.secondary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | "action.background.tertiary.disabled" | "transparent" | undefined;
|
|
8218
|
+
readonly xs?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.primary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.secondary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | "action.background.tertiary.disabled" | "transparent" | undefined;
|
|
8219
|
+
readonly s?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.primary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.secondary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | "action.background.tertiary.disabled" | "transparent" | undefined;
|
|
8220
|
+
readonly m?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.primary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.secondary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | "action.background.tertiary.disabled" | "transparent" | undefined;
|
|
8221
|
+
readonly l?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.primary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.secondary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | "action.background.tertiary.disabled" | "transparent" | undefined;
|
|
8222
|
+
readonly xl?: (string & Record<never, never>) | "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.highContrast" | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.primary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.secondary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | "action.background.tertiary.disabled" | "transparent" | undefined;
|
|
8225
8223
|
};
|
|
8226
8224
|
lineHeight: SpacingValueType | {
|
|
8227
8225
|
readonly base?: SpacingValueType | undefined;
|
|
@@ -14970,33 +14970,55 @@ var SelectorSupportText = function SelectorSupportText(_ref) {
|
|
|
14970
14970
|
});
|
|
14971
14971
|
};
|
|
14972
14972
|
|
|
14973
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14974
|
+
function assignRef(ref, value) {
|
|
14975
|
+
if (ref == null) return;
|
|
14976
|
+
if (typeof ref === 'function') {
|
|
14977
|
+
ref(value);
|
|
14978
|
+
return;
|
|
14979
|
+
}
|
|
14980
|
+
try {
|
|
14981
|
+
ref.current = value;
|
|
14982
|
+
} catch (error) {
|
|
14983
|
+
throwBladeError({
|
|
14984
|
+
moduleName: 'useMergeRefs',
|
|
14985
|
+
message: "Cannot assign value '".concat(value, "' to ref '").concat(ref, "'")
|
|
14986
|
+
});
|
|
14987
|
+
}
|
|
14988
|
+
}
|
|
14989
|
+
function mergeRefs() {
|
|
14990
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
14991
|
+
refs[_key] = arguments[_key];
|
|
14992
|
+
}
|
|
14993
|
+
return function (node) {
|
|
14994
|
+
refs.forEach(function (ref) {
|
|
14995
|
+
assignRef(ref, node);
|
|
14996
|
+
});
|
|
14997
|
+
};
|
|
14998
|
+
}
|
|
14999
|
+
|
|
14973
15000
|
/**
|
|
14974
|
-
*
|
|
15001
|
+
* Merged two or more refs into a single ref callback.
|
|
14975
15002
|
*
|
|
14976
|
-
*
|
|
14977
|
-
*
|
|
15003
|
+
* Usage:
|
|
15004
|
+
* ```ts
|
|
15005
|
+
* const internalRef = React.useRef()
|
|
15006
|
+
* const ref = useMergeRefs(incomingRef, internalRef);
|
|
15007
|
+
* ```
|
|
15008
|
+
*
|
|
15009
|
+
*
|
|
15010
|
+
* Taken from ChakraUI:
|
|
15011
|
+
* https://github.com/chakra-ui/chakra-ui/blob/f3c4a492e5636d2745b438d10794fa4e7999b6de/packages/hooks/use-merge-refs/src/index.ts#L31
|
|
14978
15012
|
*/
|
|
14979
|
-
|
|
14980
|
-
var
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
scrollIntoView: function scrollIntoView(opts) {
|
|
14989
|
-
var _element$scrollIntoVi;
|
|
14990
|
-
return element === null || element === void 0 ? void 0 : (_element$scrollIntoVi = element.scrollIntoView) === null || _element$scrollIntoVi === void 0 ? void 0 : _element$scrollIntoVi.call(element, opts);
|
|
14991
|
-
},
|
|
14992
|
-
getBoundingClientRect: function getBoundingClientRect() {
|
|
14993
|
-
return element === null || element === void 0 ? void 0 : element.getBoundingClientRect();
|
|
14994
|
-
},
|
|
14995
|
-
clientHeight: element.clientHeight
|
|
14996
|
-
};
|
|
14997
|
-
}, [innerRef, handlers]);
|
|
14998
|
-
return innerRef;
|
|
14999
|
-
};
|
|
15013
|
+
function useMergeRefs() {
|
|
15014
|
+
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
15015
|
+
refs[_key2] = arguments[_key2];
|
|
15016
|
+
}
|
|
15017
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15018
|
+
return useMemo(function () {
|
|
15019
|
+
return mergeRefs.apply(void 0, refs);
|
|
15020
|
+
}, refs);
|
|
15021
|
+
}
|
|
15000
15022
|
|
|
15001
15023
|
function ownKeys$1n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15002
15024
|
function _objectSpread$1m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1n(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -15051,7 +15073,10 @@ var _SelectorInput = function _SelectorInput(_ref3, ref) {
|
|
|
15051
15073
|
hoverTokens = _ref3.hoverTokens,
|
|
15052
15074
|
tabIndex = _ref3.tabIndex,
|
|
15053
15075
|
accessibilityLabel = _ref3.accessibilityLabel;
|
|
15054
|
-
|
|
15076
|
+
// merging both refs because inputProps.ref needs to have access to indeterminate state
|
|
15077
|
+
// to be able to set the mixed value via setMixed() function
|
|
15078
|
+
// TODO: replace with a generic `mergeRefs()` util if we do this in other places
|
|
15079
|
+
var mergedRef = useMergeRefs(ref, inputProps.ref);
|
|
15055
15080
|
return /*#__PURE__*/jsx(StyledInput, _objectSpread$1m(_objectSpread$1m(_objectSpread$1m({
|
|
15056
15081
|
id: id,
|
|
15057
15082
|
isChecked: isChecked,
|
|
@@ -15062,13 +15087,7 @@ var _SelectorInput = function _SelectorInput(_ref3, ref) {
|
|
|
15062
15087
|
}, inputProps), makeAccessible({
|
|
15063
15088
|
label: accessibilityLabel
|
|
15064
15089
|
})), {}, {
|
|
15065
|
-
|
|
15066
|
-
// to be able to set the mixed value via setMixed() function
|
|
15067
|
-
// TODO: replace with a generic `mergeRefs()` util if we do this in other places
|
|
15068
|
-
ref: function ref(value) {
|
|
15069
|
-
inputProps.ref.current = value;
|
|
15070
|
-
inputRef.current = value;
|
|
15071
|
-
}
|
|
15090
|
+
ref: mergedRef
|
|
15072
15091
|
}));
|
|
15073
15092
|
};
|
|
15074
15093
|
var SelectorInput = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.forwardRef(_SelectorInput), {
|
|
@@ -21261,7 +21280,8 @@ var _TextInput = function _TextInput(_ref2, ref) {
|
|
|
21261
21280
|
autoCapitalize = _ref2.autoCapitalize,
|
|
21262
21281
|
testID = _ref2.testID,
|
|
21263
21282
|
styledProps = _objectWithoutProperties$1(_ref2, _excluded$h);
|
|
21264
|
-
var textInputRef =
|
|
21283
|
+
var textInputRef = React__default.useRef(null);
|
|
21284
|
+
var mergedRef = useMergeRefs(ref, textInputRef);
|
|
21265
21285
|
var _useState = useState(false),
|
|
21266
21286
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21267
21287
|
shouldShowClearButton = _useState2[0],
|
|
@@ -21304,7 +21324,7 @@ var _TextInput = function _TextInput(_ref2, ref) {
|
|
|
21304
21324
|
return /*#__PURE__*/jsx(BaseInput, _objectSpread$I(_objectSpread$I({
|
|
21305
21325
|
id: "textinput",
|
|
21306
21326
|
componentName: MetaConstants.TextInput,
|
|
21307
|
-
ref:
|
|
21327
|
+
ref: mergedRef,
|
|
21308
21328
|
label: label,
|
|
21309
21329
|
accessibilityLabel: accessibilityLabel,
|
|
21310
21330
|
hideLabelText: !Boolean(label),
|
|
@@ -21406,7 +21426,6 @@ var _PasswordInput = function _PasswordInput(_ref, ref) {
|
|
|
21406
21426
|
autoCompleteSuggestionType = _ref.autoCompleteSuggestionType,
|
|
21407
21427
|
testID = _ref.testID,
|
|
21408
21428
|
styledProps = _objectWithoutProperties$1(_ref, _excluded$g);
|
|
21409
|
-
var inputRef = useBladeInnerRef(ref);
|
|
21410
21429
|
var _React$useState = React__default.useState(false),
|
|
21411
21430
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
21412
21431
|
isRevealed = _React$useState2[0],
|
|
@@ -21441,7 +21460,7 @@ var _PasswordInput = function _PasswordInput(_ref, ref) {
|
|
|
21441
21460
|
}) : null;
|
|
21442
21461
|
};
|
|
21443
21462
|
return /*#__PURE__*/jsx(BaseInput, _objectSpread$H({
|
|
21444
|
-
ref:
|
|
21463
|
+
ref: ref,
|
|
21445
21464
|
componentName: MetaConstants.PasswordInput,
|
|
21446
21465
|
id: "password-field",
|
|
21447
21466
|
label: label,
|
|
@@ -21517,7 +21536,8 @@ var _TextArea = function _TextArea(_ref, ref) {
|
|
|
21517
21536
|
numberOfLines = _ref$numberOfLines === void 0 ? 2 : _ref$numberOfLines,
|
|
21518
21537
|
testID = _ref.testID,
|
|
21519
21538
|
styledProps = _objectWithoutProperties$1(_ref, _excluded$f);
|
|
21520
|
-
var inputRef =
|
|
21539
|
+
var inputRef = React__default.useRef(null);
|
|
21540
|
+
var mergedRef = useMergeRefs(ref, inputRef);
|
|
21521
21541
|
var _React$useState = React__default.useState(false),
|
|
21522
21542
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
21523
21543
|
shouldShowClearButton = _React$useState2[0],
|
|
@@ -21560,7 +21580,7 @@ var _TextArea = function _TextArea(_ref, ref) {
|
|
|
21560
21580
|
id: "textarea",
|
|
21561
21581
|
componentName: MetaConstants.TextArea,
|
|
21562
21582
|
autoFocus: autoFocus,
|
|
21563
|
-
ref:
|
|
21583
|
+
ref: mergedRef,
|
|
21564
21584
|
label: label,
|
|
21565
21585
|
accessibilityLabel: accessibilityLabel,
|
|
21566
21586
|
hideLabelText: !Boolean(label),
|
|
@@ -21989,12 +22009,6 @@ var _SelectInput = function _SelectInput(props, ref) {
|
|
|
21989
22009
|
setIsControlled = _useDropdown.setIsControlled,
|
|
21990
22010
|
selectionType = _useDropdown.selectionType,
|
|
21991
22011
|
selectedIndices = _useDropdown.selectedIndices;
|
|
21992
|
-
var inputRef = useBladeInnerRef(ref, {
|
|
21993
|
-
onFocus: function onFocus(opts) {
|
|
21994
|
-
var _triggererRef$current;
|
|
21995
|
-
(_triggererRef$current = triggererRef.current) === null || _triggererRef$current === void 0 ? void 0 : _triggererRef$current.focus(opts);
|
|
21996
|
-
}
|
|
21997
|
-
});
|
|
21998
22012
|
var icon = props.icon;
|
|
21999
22013
|
props.onChange;
|
|
22000
22014
|
props.defaultValue;
|
|
@@ -22085,7 +22099,11 @@ var _SelectInput = function _SelectInput(props, ref) {
|
|
|
22085
22099
|
position: "relative",
|
|
22086
22100
|
children: [!isReactNative$4() ? /*#__PURE__*/jsx(VisuallyHidden, {
|
|
22087
22101
|
children: /*#__PURE__*/jsx("input", {
|
|
22088
|
-
|
|
22102
|
+
onFocus: function onFocus() {
|
|
22103
|
+
var _triggererRef$current;
|
|
22104
|
+
(_triggererRef$current = triggererRef.current) === null || _triggererRef$current === void 0 ? void 0 : _triggererRef$current.focus();
|
|
22105
|
+
},
|
|
22106
|
+
ref: ref,
|
|
22089
22107
|
tabIndex: -1,
|
|
22090
22108
|
required: props.isRequired,
|
|
22091
22109
|
name: props.name,
|
|
@@ -22429,53 +22447,63 @@ var listItemBulletMarginTop = {
|
|
|
22429
22447
|
unordered: {
|
|
22430
22448
|
onDesktop: {
|
|
22431
22449
|
small: makeSize(6),
|
|
22432
|
-
medium: makeSize(7)
|
|
22450
|
+
medium: makeSize(7),
|
|
22451
|
+
large: makeSize(10)
|
|
22433
22452
|
},
|
|
22434
22453
|
onMobile: {
|
|
22435
22454
|
small: makeSize(6),
|
|
22436
|
-
medium: makeSize(7)
|
|
22455
|
+
medium: makeSize(7),
|
|
22456
|
+
large: makeSize(10)
|
|
22437
22457
|
}
|
|
22438
22458
|
},
|
|
22439
22459
|
unorderedWithIcon: {
|
|
22440
22460
|
onDesktop: {
|
|
22441
22461
|
small: 'spacing.2',
|
|
22442
|
-
medium: 'spacing.1'
|
|
22462
|
+
medium: 'spacing.1',
|
|
22463
|
+
large: makeSize(5)
|
|
22443
22464
|
},
|
|
22444
22465
|
onMobile: {
|
|
22445
22466
|
small: 'spacing.2',
|
|
22446
|
-
medium: 'spacing.1'
|
|
22467
|
+
medium: 'spacing.1',
|
|
22468
|
+
large: makeSize(5)
|
|
22447
22469
|
}
|
|
22448
22470
|
},
|
|
22449
22471
|
ordered: {
|
|
22450
22472
|
onDesktop: {
|
|
22451
22473
|
small: makeSize(0),
|
|
22452
|
-
medium: makeSize(0)
|
|
22474
|
+
medium: makeSize(0),
|
|
22475
|
+
large: makeSize(0)
|
|
22453
22476
|
},
|
|
22454
22477
|
onMobile: {
|
|
22455
22478
|
small: makeSize(0),
|
|
22456
|
-
medium: makeSize(0)
|
|
22479
|
+
medium: makeSize(0),
|
|
22480
|
+
large: makeSize(0)
|
|
22457
22481
|
}
|
|
22458
22482
|
},
|
|
22459
22483
|
'ordered-filled': {
|
|
22460
22484
|
// TODO: fix these
|
|
22461
22485
|
onDesktop: {
|
|
22462
22486
|
small: makeSize(0),
|
|
22463
|
-
medium: makeSize(0)
|
|
22487
|
+
medium: makeSize(0),
|
|
22488
|
+
large: makeSize(0)
|
|
22464
22489
|
},
|
|
22465
22490
|
onMobile: {
|
|
22466
22491
|
small: makeSize(0),
|
|
22467
|
-
medium: makeSize(0)
|
|
22492
|
+
medium: makeSize(0),
|
|
22493
|
+
large: makeSize(0)
|
|
22468
22494
|
}
|
|
22469
22495
|
}
|
|
22470
22496
|
};
|
|
22471
22497
|
var listItemUnorderedBulletSize = {
|
|
22472
22498
|
onDesktop: {
|
|
22473
22499
|
small: makeSize(size[6]),
|
|
22474
|
-
medium: makeSize(size[6])
|
|
22500
|
+
medium: makeSize(size[6]),
|
|
22501
|
+
large: makeSize(size[6])
|
|
22475
22502
|
},
|
|
22476
22503
|
onMobile: {
|
|
22477
22504
|
small: makeSize(size[5]),
|
|
22478
|
-
medium: makeSize(size[6])
|
|
22505
|
+
medium: makeSize(size[6]),
|
|
22506
|
+
large: makeSize(size[6])
|
|
22479
22507
|
}
|
|
22480
22508
|
};
|
|
22481
22509
|
var listItemMarginBottom = 'spacing.3';
|
|
@@ -22484,27 +22512,32 @@ var listItemOrderedBulletBoxSize = {
|
|
|
22484
22512
|
ordered: {
|
|
22485
22513
|
onDesktop: {
|
|
22486
22514
|
small: makeSize(size[16]),
|
|
22487
|
-
medium: makeSize(size[20])
|
|
22515
|
+
medium: makeSize(size[20]),
|
|
22516
|
+
large: makeSize(size[24])
|
|
22488
22517
|
},
|
|
22489
22518
|
onMobile: {
|
|
22490
22519
|
small: makeSize(size[16]),
|
|
22491
|
-
medium: makeSize(size[24])
|
|
22520
|
+
medium: makeSize(size[24]),
|
|
22521
|
+
large: makeSize(size[24])
|
|
22492
22522
|
}
|
|
22493
22523
|
},
|
|
22494
22524
|
'ordered-filled': {
|
|
22495
22525
|
onDesktop: {
|
|
22496
22526
|
small: makeSize(size[18]),
|
|
22497
|
-
medium: makeSize(size[20])
|
|
22527
|
+
medium: makeSize(size[20]),
|
|
22528
|
+
large: makeSize(size[24])
|
|
22498
22529
|
},
|
|
22499
22530
|
onMobile: {
|
|
22500
22531
|
small: makeSize(size[16]),
|
|
22501
|
-
medium: makeSize(size[20])
|
|
22532
|
+
medium: makeSize(size[20]),
|
|
22533
|
+
large: makeSize(size[24])
|
|
22502
22534
|
}
|
|
22503
22535
|
}
|
|
22504
22536
|
};
|
|
22505
22537
|
var listItemCodeSize = {
|
|
22506
22538
|
small: 'small',
|
|
22507
|
-
medium: 'small'
|
|
22539
|
+
medium: 'small',
|
|
22540
|
+
large: 'medium'
|
|
22508
22541
|
};
|
|
22509
22542
|
|
|
22510
22543
|
var UnorderedLevel1Icon = function UnorderedLevel1Icon(_ref) {
|
|
@@ -27986,7 +28019,7 @@ function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
27986
28019
|
var MIN_WIDTH$1 = {
|
|
27987
28020
|
s: makeSize(size[200]),
|
|
27988
28021
|
m: makeSize(size[360]),
|
|
27989
|
-
l: makeSize(size[
|
|
28022
|
+
l: makeSize(size[360])
|
|
27990
28023
|
};
|
|
27991
28024
|
var Accordion = function Accordion(_ref) {
|
|
27992
28025
|
var defaultExpandedIndex = _ref.defaultExpandedIndex,
|