@razorpay/blade 10.2.1 → 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 +9 -11
- package/build/components/index.development.web.js +63 -45
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +2 -4
- package/build/components/index.native.js +5 -5
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +63 -45
- 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'>;
|
|
@@ -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.
|
|
15002
|
+
*
|
|
15003
|
+
* Usage:
|
|
15004
|
+
* ```ts
|
|
15005
|
+
* const internalRef = React.useRef()
|
|
15006
|
+
* const ref = useMergeRefs(incomingRef, internalRef);
|
|
15007
|
+
* ```
|
|
15008
|
+
*
|
|
14975
15009
|
*
|
|
14976
|
-
*
|
|
14977
|
-
*
|
|
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,
|