@razorpay/blade 7.0.2 → 7.0.4

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.
@@ -1,10 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { ReactChild, ReactElement, ReactNode, SyntheticEvent, KeyboardEvent } from 'react';
4
+ import { AccessibilityRole, ViewStyle, View, GestureResponderEvent } from 'react-native';
4
5
  import * as styled_components from 'styled-components';
5
6
  import { CSSObject } from 'styled-components';
6
- import { AccessibilityRole, View, GestureResponderEvent } from 'react-native';
7
- import * as csstype from 'csstype';
8
7
 
9
8
  type BorderRadius = Readonly<{
10
9
  /** none: 0(px/rem/pt) */
@@ -778,31 +777,31 @@ type AriaAttributes = {
778
777
  * Brands a type making them act as nominal
779
778
  * @see https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d
780
779
  */
781
- type Brand$1<Type, Name extends string> = Type & { __brand__?: Name };
780
+ type Brand<Type, Name extends string> = Type & { __brand__?: Name };
782
781
 
783
- type NativeOrWebBrand$1 = Brand$1<any, 'native' | 'web'>;
782
+ type NativeOrWebBrand = Brand<any, 'native' | 'web'>;
784
783
 
785
784
  /* eslint-disable @typescript-eslint/no-namespace */
786
785
 
787
786
 
788
- declare namespace Platform$1 {
787
+ declare namespace Platform {
789
788
  export type Name = 'web';
790
789
  /**
791
790
  * Right now, the module resolution is set to resolve `.web` files,
792
791
  *
793
792
  * Thus Platform.Select<> type will return the `web` type
794
793
  */
795
- export type Select<Options extends { web: unknown; native: unknown }> = Brand$1<
794
+ export type Select<Options extends { web: unknown; native: unknown }> = Brand<
796
795
  Options[Name],
797
796
  'platform-web'
798
797
  >;
799
798
 
800
- export type CastNative<T extends NativeOrWebBrand$1 | undefined> = Extract<
799
+ export type CastNative<T extends NativeOrWebBrand | undefined> = Extract<
801
800
  T,
802
801
  { __brand__?: 'platform-native' | 'platform-all' }
803
802
  >;
804
803
 
805
- export type CastWeb<T extends NativeOrWebBrand$1 | undefined> = Extract<
804
+ export type CastWeb<T extends NativeOrWebBrand | undefined> = Extract<
806
805
  T,
807
806
  { __brand__?: 'platform-web' | 'platform-all' }
808
807
  >;
@@ -841,7 +840,7 @@ type Delay = {
841
840
  };
842
841
 
843
842
  type EasingFunctionFactory = { factory: () => (value: number) => number }; // similar to EasingFunctionFactory of `react-native-reanimated`
844
- type EasingType<Value extends string> = Platform$1.Select<{
843
+ type EasingType<Value extends string> = Platform.Select<{
845
844
  web: Value;
846
845
  native: EasingFunctionFactory;
847
846
  }>;
@@ -959,17 +958,51 @@ type StringChildrenType = React__default.ReactText | React__default.ReactText[];
959
958
  */
960
959
  type StringWithAutocomplete = string & Record<never, never>;
961
960
 
962
- type TestID$1 = {
961
+ type TestID = {
963
962
  testID?: string;
964
963
  };
965
964
 
965
+ /**
966
+ * Similar to `Pick` except this returns `never` when value doesn't exist (native `Pick` returns `unknown`).
967
+ *
968
+ * You might have to ts-ignore the non-existing type error while using this. This is done so that you can get jsdoc from actual type.
969
+ *
970
+ * E.g. This will pick from ViewStyle prop if value exists else returns undefined.
971
+ *
972
+ * ```ts
973
+ * // @ts-expect-error: T passed here may not neccessarily exist. We return `never` type when it doesn't
974
+ * native: PickIfExist<ViewStyle, T>;
975
+ * ```
976
+ */
977
+ type PickIfExist$1<T, K extends keyof T> = {
978
+ [P in K]: P extends keyof T ? T[P] : never;
979
+ };
980
+
981
+ /**
982
+ * Picks the types based on the platform (web / native).
983
+ *
984
+ * E.g.
985
+ * ```ts
986
+ * type CSSObject = PickCSSByPlatform<'display'>
987
+ * // On Web --> This will be all possible web display properties like `block`, `flex`, `inline`, and more.
988
+ * // On Native --> This will be just `flex` and `none`
989
+ * ```
990
+ */
991
+ type PickCSSByPlatform$1<T extends keyof React__default.CSSProperties | keyof ViewStyle> = Platform.Select<{
992
+ web: PickIfExist$1<CSSObject, T>;
993
+ // @ts-expect-error: T passed here may not neccessarily exist. We return `never` type when it doesn't
994
+ native: PickIfExist$1<ViewStyle, T>;
995
+ }>;
996
+
997
+ declare type ActionListContextProp = Pick<ActionListProps, 'surfaceLevel'>;
998
+ declare const useActionListContext: () => ActionListContextProp;
966
999
  declare type ActionListProps = {
967
1000
  children: React__default.ReactNode[];
968
1001
  /**
969
1002
  * Decides the backgroundColor of ActionList
970
1003
  */
971
1004
  surfaceLevel?: 2 | 3;
972
- } & TestID$1;
1005
+ } & TestID;
973
1006
  declare const ActionList: React__default.MemoExoticComponent<({ children, surfaceLevel, testID }: ActionListProps) => JSX.Element>;
974
1007
 
975
1008
  type Theme$1 = {
@@ -1006,12 +1039,16 @@ type Theme$1 = {
1006
1039
  * ```
1007
1040
  *
1008
1041
  */
1009
- type MakeValueResponsive$1<T> =
1010
- | T
1011
- | {
1012
- // Using this instead of Record to maintain the jsdoc from breakpoints.ts
1013
- [P in keyof Breakpoints]?: T;
1014
- };
1042
+ // When type is `never`, we just want to return `never` rather than { base: never, ...etc } since that prop is intended to be never used
1043
+ // Explaination of [T] extends [never] -> https://stackoverflow.com/questions/65492464/typescript-never-type-condition
1044
+ type MakeValueResponsive$1<T> = [T] extends [never]
1045
+ ? never
1046
+ :
1047
+ | T
1048
+ | {
1049
+ // Using this instead of Record to maintain the jsdoc from breakpoints.ts
1050
+ [P in keyof Breakpoints]?: T;
1051
+ };
1015
1052
 
1016
1053
  /**
1017
1054
  * Turns all the values in object into responsive object.
@@ -1033,7 +1070,7 @@ type MakeValueResponsive$1<T> =
1033
1070
  type MakeObjectResponsive$1<T> = { [P in keyof T]: MakeValueResponsive$1<T[P]> };
1034
1071
 
1035
1072
  type ArrayOfMaxLength4$1<T> = readonly [T?, T?, T?, T?];
1036
- type SpaceUnits$1 = Platform$1.Select<{
1073
+ type SpaceUnits$1 = Platform.Select<{
1037
1074
  web: 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
1038
1075
  native: 'px' | '%';
1039
1076
  }>;
@@ -1249,10 +1286,6 @@ type MarginProps$1 = MakeObjectResponsive$1<{
1249
1286
  marginLeft: SpacingValueType$1;
1250
1287
  }>;
1251
1288
 
1252
- type MakeObjectWebOnly$1<T> = {
1253
- [P in keyof T]: Platform$1.Select<{ web: T[P]; native: never }>;
1254
- };
1255
-
1256
1289
  type FlexboxProps$1 = MakeObjectResponsive$1<
1257
1290
  {
1258
1291
  /**
@@ -1276,9 +1309,13 @@ type FlexboxProps$1 = MakeObjectResponsive$1<
1276
1309
  * @see https://caniuse.com/?search=column-gap
1277
1310
  */
1278
1311
  columnGap: SpacingValueType$1;
1279
- } & Pick<
1280
- CSSObject,
1281
- | 'flex'
1312
+ /**
1313
+ * The **`flex`** CSS shorthand property sets how a flex _item_ will grow or shrink to fit the space available in its flex container.
1314
+ *
1315
+ * @see https://developer.mozilla.org/docs/Web/CSS/flex
1316
+ */
1317
+ flex: string | number;
1318
+ } & PickCSSByPlatform$1<
1282
1319
  | 'flexWrap'
1283
1320
  | 'flexDirection'
1284
1321
  | 'flexGrow'
@@ -1301,46 +1338,46 @@ type PositionProps$1 = MakeObjectResponsive$1<
1301
1338
  right: SpacingValueType$1;
1302
1339
  bottom: SpacingValueType$1;
1303
1340
  left: SpacingValueType$1;
1304
- } & Pick<CSSObject, 'position' | 'zIndex'>
1341
+ } & PickCSSByPlatform$1<'position' | 'zIndex'>
1305
1342
  >;
1306
1343
 
1307
- type GridProps$1 = MakeObjectWebOnly$1<
1308
- MakeObjectResponsive$1<
1309
- Pick<
1310
- CSSObject,
1311
- | 'grid'
1312
- | 'gridColumn'
1313
- | 'gridRow'
1314
- | 'gridRowStart'
1315
- | 'gridRowEnd'
1316
- | 'gridColumnStart'
1317
- | 'gridColumnEnd'
1318
- | 'gridArea'
1319
- | 'gridAutoFlow'
1320
- | 'gridAutoRows'
1321
- | 'gridAutoColumns'
1322
- | 'gridTemplate'
1323
- | 'gridTemplateAreas'
1324
- | 'gridTemplateColumns'
1325
- | 'gridTemplateRows'
1326
- >
1344
+ type GridProps$1 = MakeObjectResponsive$1<
1345
+ PickCSSByPlatform$1<
1346
+ | 'grid'
1347
+ | 'gridColumn'
1348
+ | 'gridRow'
1349
+ | 'gridRowStart'
1350
+ | 'gridRowEnd'
1351
+ | 'gridColumnStart'
1352
+ | 'gridColumnEnd'
1353
+ | 'gridArea'
1354
+ | 'gridAutoFlow'
1355
+ | 'gridAutoRows'
1356
+ | 'gridAutoColumns'
1357
+ | 'gridTemplate'
1358
+ | 'gridTemplateAreas'
1359
+ | 'gridTemplateColumns'
1360
+ | 'gridTemplateRows'
1327
1361
  >
1328
1362
  >;
1329
1363
 
1330
1364
  type StyledPropsBlade = Partial<
1331
- MarginProps$1 &
1332
- Pick<FlexboxProps$1, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> &
1333
- PositionProps$1 &
1334
- Pick<
1335
- GridProps$1,
1336
- | 'gridColumn'
1337
- | 'gridRow'
1338
- | 'gridRowStart'
1339
- | 'gridRowEnd'
1340
- | 'gridColumnStart'
1341
- | 'gridColumnEnd'
1342
- | 'gridArea'
1343
- >
1365
+ Omit<
1366
+ MarginProps$1 &
1367
+ Pick<FlexboxProps$1, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> &
1368
+ PositionProps$1 &
1369
+ Pick<
1370
+ GridProps$1,
1371
+ | 'gridColumn'
1372
+ | 'gridRow'
1373
+ | 'gridRowStart'
1374
+ | 'gridRowEnd'
1375
+ | 'gridColumnStart'
1376
+ | 'gridColumnEnd'
1377
+ | 'gridArea'
1378
+ >,
1379
+ '__brand__'
1380
+ >
1344
1381
  >;
1345
1382
 
1346
1383
  type FeedbackIconColors$1 = `feedback.icon.${DotNotationColorStringToken<
@@ -1425,7 +1462,7 @@ declare type ActionListItemProps = {
1425
1462
  * @private
1426
1463
  */
1427
1464
  _index?: number;
1428
- } & TestID$1;
1465
+ } & TestID;
1429
1466
  declare const ActionListSectionDivider: () => JSX.Element;
1430
1467
  declare type ActionListSectionProps = {
1431
1468
  title: string;
@@ -1438,7 +1475,7 @@ declare type ActionListSectionProps = {
1438
1475
  * @private
1439
1476
  */
1440
1477
  _hideDivider?: boolean;
1441
- } & TestID$1;
1478
+ } & TestID;
1442
1479
  declare const ActionListSection: ({ title, children, testID, _hideDivider, }: ActionListSectionProps) => JSX.Element;
1443
1480
  declare const ActionListItemIcon: ({ icon }: {
1444
1481
  icon: IconComponent$1;
@@ -1456,7 +1493,7 @@ declare type ActionListHeaderProps = {
1456
1493
  * Valid children - `ActionListHeaderIcon`
1457
1494
  */
1458
1495
  leading?: React__default.ReactNode;
1459
- } & TestID$1;
1496
+ } & TestID;
1460
1497
  declare const ActionListHeader: (props: ActionListHeaderProps) => JSX.Element;
1461
1498
  declare const ActionListHeaderIcon: ({ icon }: {
1462
1499
  icon: IconComponent$1;
@@ -1476,7 +1513,7 @@ declare type ActionListFooterProps = {
1476
1513
  * Anything can be passed here but maybe don't? Should ideally have Button or Tick Icon Buttons.
1477
1514
  */
1478
1515
  trailing?: React__default.ReactNode;
1479
- } & TestID$1;
1516
+ } & TestID;
1480
1517
  declare const ActionListFooter: (props: ActionListFooterProps) => JSX.Element;
1481
1518
  declare const ActionListFooterIcon: ({ icon }: {
1482
1519
  icon: IconComponent$1;
@@ -1564,7 +1601,7 @@ declare type AlertProps = {
1564
1601
  */
1565
1602
  secondary?: SecondaryAction;
1566
1603
  };
1567
- } & TestID$1 & StyledPropsBlade;
1604
+ } & TestID & StyledPropsBlade;
1568
1605
  declare const Alert: ({ description, title, isDismissible, onDismiss, contrast, isFullWidth, intent, actions, testID, ...styledProps }: AlertProps) => ReactElement | null;
1569
1606
 
1570
1607
  declare type BadgeProps = {
@@ -1603,7 +1640,7 @@ declare type BadgeProps = {
1603
1640
  * @default 'regular'
1604
1641
  */
1605
1642
  fontWeight?: 'regular' | 'bold';
1606
- } & TestID$1 & StyledPropsBlade;
1643
+ } & TestID & StyledPropsBlade;
1607
1644
  declare const Badge: ({ children, contrast, fontWeight, icon, size, variant, testID, ...styledProps }: BadgeProps) => ReactElement;
1608
1645
 
1609
1646
  declare type BladeProviderProps = {
@@ -1661,7 +1698,7 @@ declare type Theme = {
1661
1698
  * ```
1662
1699
  *
1663
1700
  */
1664
- declare type MakeValueResponsive<T> = T | {
1701
+ declare type MakeValueResponsive<T> = [T] extends [never] ? never : T | {
1665
1702
  [P in keyof Breakpoints]?: T;
1666
1703
  };
1667
1704
  /**
@@ -1686,7 +1723,7 @@ declare type MakeObjectResponsive<T> = {
1686
1723
  };
1687
1724
 
1688
1725
  declare type ArrayOfMaxLength4<T> = readonly [T?, T?, T?, T?];
1689
- declare type SpaceUnits = Platform$1.Select<{
1726
+ declare type SpaceUnits = Platform.Select<{
1690
1727
  web: 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
1691
1728
  native: 'px' | '%';
1692
1729
  }>;
@@ -2121,12 +2158,6 @@ declare type MarginProps = MakeObjectResponsive<{
2121
2158
  marginLeft: SpacingValueType;
2122
2159
  }>;
2123
2160
 
2124
- declare type MakeObjectWebOnly<T> = {
2125
- [P in keyof T]: Platform$1.Select<{
2126
- web: T[P];
2127
- native: never;
2128
- }>;
2129
- };
2130
2161
  declare type LayoutProps = MakeObjectResponsive<{
2131
2162
  height: SpacingValueType;
2132
2163
  minHeight: SpacingValueType;
@@ -2134,29 +2165,7 @@ declare type LayoutProps = MakeObjectResponsive<{
2134
2165
  width: SpacingValueType;
2135
2166
  minWidth: SpacingValueType;
2136
2167
  maxWidth: SpacingValueType;
2137
- } & Pick<CSSObject, 'overflow' | 'overflowX' | 'overflowY'> & Platform$1.Select<{
2138
- web: {
2139
- /**
2140
- *
2141
- * On Web, The **`display`** CSS property sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex.
2142
- *
2143
- * @see https://developer.mozilla.org/docs/Web/CSS/display
2144
- */
2145
- display: CSSObject['display'];
2146
- };
2147
- native: {
2148
- /**
2149
- *
2150
- *
2151
- * On React Native, **`display`** property sets whether an element can be `flex` or `none`
2152
- *
2153
- * @see https://reactnative.dev/docs/layout-props.html#display
2154
- *
2155
- * @default 'flex'
2156
- */
2157
- display: 'none' | 'flex';
2158
- };
2159
- }>>;
2168
+ } & PickCSSByPlatform$1<'display' | 'overflow' | 'overflowX' | 'overflowY'>>;
2160
2169
  declare type FlexboxProps = MakeObjectResponsive<{
2161
2170
  /**
2162
2171
  * This uses the native gap property which might not work on older browsers.
@@ -2179,14 +2188,20 @@ declare type FlexboxProps = MakeObjectResponsive<{
2179
2188
  * @see https://caniuse.com/?search=column-gap
2180
2189
  */
2181
2190
  columnGap: SpacingValueType;
2182
- } & Pick<CSSObject, 'flex' | 'flexWrap' | 'flexDirection' | 'flexGrow' | 'flexShrink' | 'flexBasis' | 'alignItems' | 'alignContent' | 'alignSelf' | 'justifyItems' | 'justifyContent' | 'justifySelf' | 'placeSelf' | 'order'>>;
2191
+ /**
2192
+ * The **`flex`** CSS shorthand property sets how a flex _item_ will grow or shrink to fit the space available in its flex container.
2193
+ *
2194
+ * @see https://developer.mozilla.org/docs/Web/CSS/flex
2195
+ */
2196
+ flex: string | number;
2197
+ } & PickCSSByPlatform$1<'flexWrap' | 'flexDirection' | 'flexGrow' | 'flexShrink' | 'flexBasis' | 'alignItems' | 'alignContent' | 'alignSelf' | 'justifyItems' | 'justifyContent' | 'justifySelf' | 'placeSelf' | 'order'>>;
2183
2198
  declare type PositionProps = MakeObjectResponsive<{
2184
2199
  top: SpacingValueType;
2185
2200
  right: SpacingValueType;
2186
2201
  bottom: SpacingValueType;
2187
2202
  left: SpacingValueType;
2188
- } & Pick<CSSObject, 'position' | 'zIndex'>>;
2189
- declare type GridProps = MakeObjectWebOnly<MakeObjectResponsive<Pick<CSSObject, 'grid' | 'gridColumn' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'gridColumnStart' | 'gridColumnEnd' | 'gridArea' | 'gridAutoFlow' | 'gridAutoRows' | 'gridAutoColumns' | 'gridTemplate' | 'gridTemplateAreas' | 'gridTemplateColumns' | 'gridTemplateRows'>>>;
2203
+ } & PickCSSByPlatform$1<'position' | 'zIndex'>>;
2204
+ declare type GridProps = MakeObjectResponsive<PickCSSByPlatform$1<'grid' | 'gridColumn' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'gridColumnStart' | 'gridColumnEnd' | 'gridArea' | 'gridAutoFlow' | 'gridAutoRows' | 'gridAutoColumns' | 'gridTemplate' | 'gridTemplateAreas' | 'gridTemplateColumns' | 'gridTemplateRows'>>;
2190
2205
  declare type ColorObjects = 'feedback' | 'surface' | 'action';
2191
2206
  declare type BackgroundColorString<T extends ColorObjects> = `${T}.background.${DotNotationColorStringToken<Theme$1['colors'][T]['background']>}`;
2192
2207
  declare const validBoxAsValues: readonly ["div", "section", "footer", "header", "main", "aside", "nav", "span"];
@@ -2198,7 +2213,7 @@ declare type BoxVisualProps = MakeObjectResponsive<{
2198
2213
  };
2199
2214
  declare type BoxProps = Partial<PaddingProps & MarginProps & LayoutProps & FlexboxProps & PositionProps & GridProps & BoxVisualProps & {
2200
2215
  children?: React.ReactNode | React.ReactNode[];
2201
- } & TestID$1>;
2216
+ } & TestID>;
2202
2217
 
2203
2218
  /**
2204
2219
  * ## Box
@@ -2272,11 +2287,11 @@ declare type CardProps = {
2272
2287
  * - Figma: https://shorturl.at/fsvwK
2273
2288
  */
2274
2289
  surfaceLevel?: 2 | 3;
2275
- } & TestID$1 & StyledPropsBlade;
2290
+ } & TestID & StyledPropsBlade;
2276
2291
  declare const Card: ({ children, surfaceLevel, testID, ...styledProps }: CardProps) => React__default.ReactElement;
2277
2292
  declare type CardBodyProps = {
2278
2293
  children: React__default.ReactNode;
2279
- } & TestID$1;
2294
+ } & TestID;
2280
2295
  declare const CardBody: ({ children, testID }: CardBodyProps) => React__default.ReactElement;
2281
2296
 
2282
2297
  declare type LinkCommonProps = {
@@ -2294,7 +2309,7 @@ declare type LinkCommonProps = {
2294
2309
  * @default medium
2295
2310
  */
2296
2311
  size?: 'small' | 'medium' | 'large';
2297
- } & TestID$1 & StyledPropsBlade & Platform$1.Select<{
2312
+ } & TestID & StyledPropsBlade & Platform.Select<{
2298
2313
  native: {
2299
2314
  /**
2300
2315
  * Defines how far your touch can start away from the link
@@ -2358,11 +2373,11 @@ declare type ButtonCommonProps = {
2358
2373
  isLoading?: boolean;
2359
2374
  accessibilityLabel?: string;
2360
2375
  type?: 'button' | 'reset' | 'submit';
2361
- onClick?: Platform$1.Select<{
2376
+ onClick?: Platform.Select<{
2362
2377
  native: (event: GestureResponderEvent) => void;
2363
2378
  web: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
2364
2379
  }>;
2365
- } & TestID$1 & StyledPropsBlade;
2380
+ } & TestID & StyledPropsBlade;
2366
2381
  declare type ButtonWithoutIconProps = ButtonCommonProps & {
2367
2382
  icon?: undefined;
2368
2383
  children: StringChildrenType;
@@ -2412,7 +2427,7 @@ type BaseTextProps$1 = {
2412
2427
  */
2413
2428
  numberOfLines?: number;
2414
2429
  componentName?: 'text' | 'title' | 'heading' | 'code';
2415
- } & TestID$1 &
2430
+ } & TestID &
2416
2431
  StyledPropsBlade;
2417
2432
 
2418
2433
  /* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
@@ -2429,7 +2444,7 @@ type TextCommonProps$1 = {
2429
2444
  */
2430
2445
  color?: BaseTextProps$1['color'];
2431
2446
  textAlign?: BaseTextProps$1['textAlign'];
2432
- } & TestID$1 &
2447
+ } & TestID &
2433
2448
  StyledPropsBlade;
2434
2449
 
2435
2450
  type TextVariant$1 = 'body' | 'caption';
@@ -2486,7 +2501,7 @@ type CounterProps$1 = {
2486
2501
  * @default 'medium'
2487
2502
  */
2488
2503
  size?: 'small' | 'medium' | 'large';
2489
- } & TestID$1 &
2504
+ } & TestID &
2490
2505
  StyledPropsBlade;
2491
2506
 
2492
2507
  declare const CardHeaderIcon: ({ icon }: {
@@ -2504,7 +2519,7 @@ declare type CardHeaderIconButtonProps = Omit<ButtonProps, 'variant' | 'size' |
2504
2519
  declare const CardHeaderIconButton: (props: CardHeaderIconButtonProps) => React__default.ReactElement;
2505
2520
  declare type CardHeaderProps = {
2506
2521
  children?: React__default.ReactNode;
2507
- } & TestID$1;
2522
+ } & TestID;
2508
2523
  declare const CardHeader: ({ children, testID }: CardHeaderProps) => React__default.ReactElement;
2509
2524
  declare type CardHeaderLeadingProps = {
2510
2525
  title: string;
@@ -2538,7 +2553,7 @@ declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel'
2538
2553
  };
2539
2554
  declare type CardFooterProps = {
2540
2555
  children?: React__default.ReactNode;
2541
- } & TestID$1;
2556
+ } & TestID;
2542
2557
  declare const CardFooter: ({ children, testID }: CardFooterProps) => React__default.ReactElement;
2543
2558
  declare type CardFooterLeadingProps = {
2544
2559
  title?: string;
@@ -2610,37 +2625,9 @@ declare type CounterProps = {
2610
2625
  * @default 'medium'
2611
2626
  */
2612
2627
  size?: 'small' | 'medium' | 'large';
2613
- } & TestID$1 & StyledPropsBlade;
2628
+ } & TestID & StyledPropsBlade;
2614
2629
  declare const Counter: ({ value, max, intent, contrast, size, testID, ...styledProps }: CounterProps) => React.ReactElement;
2615
2630
 
2616
- /**
2617
- * Brands a type making them act as nominal
2618
- * @see https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d
2619
- */
2620
- declare type Brand<Type, Name extends string> = Type & {
2621
- __brand__?: Name;
2622
- };
2623
- declare type NativeOrWebBrand = Brand<any, 'native' | 'web'>;
2624
-
2625
- declare namespace Platform {
2626
- type Name = 'web';
2627
- /**
2628
- * Right now, the module resolution is set to resolve `.web` files,
2629
- *
2630
- * Thus Platform.Select<> type will return the `web` type
2631
- */
2632
- type Select<Options extends {
2633
- web: unknown;
2634
- native: unknown;
2635
- }> = Brand<Options[Name], 'platform-web'>;
2636
- type CastNative<T extends NativeOrWebBrand | undefined> = Extract<T, {
2637
- __brand__?: 'platform-native' | 'platform-all';
2638
- }>;
2639
- type CastWeb<T extends NativeOrWebBrand | undefined> = Extract<T, {
2640
- __brand__?: 'platform-web' | 'platform-all';
2641
- }>;
2642
- }
2643
-
2644
2631
  declare type OnChange = ({ isChecked, event, value, }: {
2645
2632
  isChecked: boolean;
2646
2633
  event?: React__default.ChangeEvent;
@@ -2724,7 +2711,7 @@ declare type CheckboxProps = {
2724
2711
  *
2725
2712
  */
2726
2713
  tabIndex?: number;
2727
- } & TestID$1 & StyledPropsBlade;
2714
+ } & TestID & StyledPropsBlade;
2728
2715
  declare const Checkbox: React__default.ForwardRefExoticComponent<{
2729
2716
  /**
2730
2717
  * If `true`, The checkbox will be checked. This also makes the checkbox controlled
@@ -2803,7 +2790,7 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
2803
2790
  *
2804
2791
  */
2805
2792
  tabIndex?: number | undefined;
2806
- } & TestID$1 & Partial<MakeObjectResponsive<{
2793
+ } & TestID & Partial<Omit<MakeObjectResponsive<{
2807
2794
  margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
2808
2795
  marginX: SpacingValueType;
2809
2796
  marginY: SpacingValueType;
@@ -2815,73 +2802,17 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
2815
2802
  gap: SpacingValueType;
2816
2803
  rowGap: SpacingValueType;
2817
2804
  columnGap: SpacingValueType;
2818
- } & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
2805
+ flex: string | number;
2806
+ } & PickIfExist$1<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
2807
+ __brand__?: "platform-web" | undefined;
2808
+ }>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
2819
2809
  top: SpacingValueType;
2820
2810
  right: SpacingValueType;
2821
2811
  bottom: SpacingValueType;
2822
2812
  left: SpacingValueType;
2823
- } & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
2824
- grid?: Platform.Select<{
2825
- web: MakeValueResponsive<csstype.Property.Grid | undefined>;
2826
- native: never;
2827
- }> | undefined;
2828
- gridAutoColumns?: Platform.Select<{
2829
- web: MakeValueResponsive<csstype.Property.GridAutoColumns<string | number> | undefined>;
2830
- native: never;
2831
- }> | undefined;
2832
- gridAutoFlow?: Platform.Select<{
2833
- web: MakeValueResponsive<csstype.Property.GridAutoFlow | undefined>;
2834
- native: never;
2835
- }> | undefined;
2836
- gridAutoRows?: Platform.Select<{
2837
- web: MakeValueResponsive<csstype.Property.GridAutoRows<string | number> | undefined>;
2838
- native: never;
2839
- }> | undefined;
2840
- gridColumnEnd?: Platform.Select<{
2841
- web: MakeValueResponsive<csstype.Property.GridColumnEnd | undefined>;
2842
- native: never;
2843
- }> | undefined;
2844
- gridColumnStart?: Platform.Select<{
2845
- web: MakeValueResponsive<csstype.Property.GridColumnStart | undefined>;
2846
- native: never;
2847
- }> | undefined;
2848
- gridRowEnd?: Platform.Select<{
2849
- web: MakeValueResponsive<csstype.Property.GridRowEnd | undefined>;
2850
- native: never;
2851
- }> | undefined;
2852
- gridRowStart?: Platform.Select<{
2853
- web: MakeValueResponsive<csstype.Property.GridRowStart | undefined>;
2854
- native: never;
2855
- }> | undefined;
2856
- gridTemplateAreas?: Platform.Select<{
2857
- web: MakeValueResponsive<csstype.Property.GridTemplateAreas | undefined>;
2858
- native: never;
2859
- }> | undefined;
2860
- gridTemplateColumns?: Platform.Select<{
2861
- web: MakeValueResponsive<csstype.Property.GridTemplateColumns<string | number> | undefined>;
2862
- native: never;
2863
- }> | undefined;
2864
- gridTemplateRows?: Platform.Select<{
2865
- web: MakeValueResponsive<csstype.Property.GridTemplateRows<string | number> | undefined>;
2866
- native: never;
2867
- }> | undefined;
2868
- gridArea?: Platform.Select<{
2869
- web: MakeValueResponsive<csstype.Property.GridArea | undefined>;
2870
- native: never;
2871
- }> | undefined;
2872
- gridColumn?: Platform.Select<{
2873
- web: MakeValueResponsive<csstype.Property.GridColumn | undefined>;
2874
- native: never;
2875
- }> | undefined;
2876
- gridRow?: Platform.Select<{
2877
- web: MakeValueResponsive<csstype.Property.GridRow | undefined>;
2878
- native: never;
2879
- }> | undefined;
2880
- gridTemplate?: Platform.Select<{
2881
- web: MakeValueResponsive<csstype.Property.GridTemplate | undefined>;
2882
- native: never;
2883
- }> | undefined;
2884
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
2813
+ } & PickIfExist$1<styled_components.CSSObject, "position" | "zIndex"> & {
2814
+ __brand__?: "platform-web" | undefined;
2815
+ }> & Pick<MakeObjectResponsive<PickCSSByPlatform$1<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
2885
2816
 
2886
2817
  declare type CheckboxGroupProps = {
2887
2818
  /**
@@ -2956,7 +2887,7 @@ declare type CheckboxGroupProps = {
2956
2887
  * @default "medium"
2957
2888
  */
2958
2889
  size?: 'small' | 'medium';
2959
- } & TestID$1 & StyledPropsBlade;
2890
+ } & TestID & StyledPropsBlade;
2960
2891
  declare const CheckboxGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: CheckboxGroupProps) => React__default.ReactElement;
2961
2892
 
2962
2893
  declare type DropdownProps = {
@@ -2967,7 +2898,7 @@ declare const Dropdown: ({ children, selectionType, ...styledProps }: DropdownPr
2967
2898
 
2968
2899
  declare type DropdownOverlayProps = {
2969
2900
  children: React__default.ReactNode;
2970
- } & TestID$1;
2901
+ } & TestID;
2971
2902
  declare const DropdownOverlay: ({ children, testID }: DropdownOverlayProps) => JSX.Element;
2972
2903
 
2973
2904
  declare const ArrowDownIcon: IconComponent;
@@ -3528,6 +3459,36 @@ declare type IconProps = {
3528
3459
  } & StyledPropsBlade;
3529
3460
  declare type IconComponent = React.ComponentType<IconProps>;
3530
3461
 
3462
+ /**
3463
+ * Similar to `Pick` except this returns `never` when value doesn't exist (native `Pick` returns `unknown`).
3464
+ *
3465
+ * You might have to ts-ignore the non-existing type error while using this. This is done so that you can get jsdoc from actual type.
3466
+ *
3467
+ * E.g. This will pick from ViewStyle prop if value exists else returns undefined.
3468
+ *
3469
+ * ```ts
3470
+ * // @ts-expect-error: T passed here may not neccessarily exist. We return `never` type when it doesn't
3471
+ * native: PickIfExist<ViewStyle, T>;
3472
+ * ```
3473
+ */
3474
+ declare type PickIfExist<T, K extends keyof T> = {
3475
+ [P in K]: P extends keyof T ? T[P] : never;
3476
+ };
3477
+ /**
3478
+ * Picks the types based on the platform (web / native).
3479
+ *
3480
+ * E.g.
3481
+ * ```ts
3482
+ * type CSSObject = PickCSSByPlatform<'display'>
3483
+ * // On Web --> This will be all possible web display properties like `block`, `flex`, `inline`, and more.
3484
+ * // On Native --> This will be just `flex` and `none`
3485
+ * ```
3486
+ */
3487
+ declare type PickCSSByPlatform<T extends keyof React__default.CSSProperties | keyof ViewStyle> = Platform.Select<{
3488
+ web: PickIfExist<CSSObject, T>;
3489
+ native: PickIfExist<ViewStyle, T>;
3490
+ }>;
3491
+
3531
3492
  declare type FormInputLabelProps = {
3532
3493
  /**
3533
3494
  * Label to be shown for the input field
@@ -3779,7 +3740,7 @@ declare type BaseInputProps = FormInputLabelProps & FormInputValidationProps & {
3779
3740
  * sets the autocapitalize behavior for the input
3780
3741
  */
3781
3742
  autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
3782
- } & TestID$1 & Platform$1.Select<{
3743
+ } & TestID & Platform.Select<{
3783
3744
  native: {
3784
3745
  /**
3785
3746
  * The callback function to be invoked when the value of the input field is submitted.
@@ -3815,6 +3776,14 @@ declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | '
3815
3776
  /**
3816
3777
  * Type of Input Field to be rendered. Use `PasswordInput` for type `password`
3817
3778
  *
3779
+ *
3780
+ * **Note on number type**
3781
+ *
3782
+ * `type="number"` internally uses `inputMode="numeric"` instead of HTML's `type="number"` which also allows text characters.
3783
+ * If you have a usecase where you only want to support number input, you can handle it on validations end.
3784
+ *
3785
+ * Check out [Why the GOV.UK Design System team changed the input type for numbers](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) for reasoning
3786
+ *
3818
3787
  * @default text
3819
3788
  */
3820
3789
  type?: Type;
@@ -3839,10 +3808,18 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
3839
3808
  /**
3840
3809
  * Type of Input Field to be rendered. Use `PasswordInput` for type `password`
3841
3810
  *
3811
+ *
3812
+ * **Note on number type**
3813
+ *
3814
+ * `type="number"` internally uses `inputMode="numeric"` instead of HTML's `type="number"` which also allows text characters.
3815
+ * If you have a usecase where you only want to support number input, you can handle it on validations end.
3816
+ *
3817
+ * Check out [Why the GOV.UK Design System team changed the input type for numbers](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) for reasoning
3818
+ *
3842
3819
  * @default text
3843
3820
  */
3844
3821
  type?: Type;
3845
- } & Partial<MakeObjectResponsive<{
3822
+ } & Partial<Omit<MakeObjectResponsive<{
3846
3823
  margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
3847
3824
  marginX: SpacingValueType;
3848
3825
  marginY: SpacingValueType;
@@ -3854,73 +3831,19 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
3854
3831
  gap: SpacingValueType;
3855
3832
  rowGap: SpacingValueType;
3856
3833
  columnGap: SpacingValueType;
3857
- } & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
3834
+ flex: string | number; /**
3835
+ * Decides whether to show a loading spinner for the input field.
3836
+ */
3837
+ } & PickIfExist<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
3838
+ __brand__?: "platform-web" | undefined;
3839
+ }>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
3858
3840
  top: SpacingValueType;
3859
3841
  right: SpacingValueType;
3860
3842
  bottom: SpacingValueType;
3861
3843
  left: SpacingValueType;
3862
- } & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
3863
- grid?: Platform.Select<{
3864
- web: MakeValueResponsive<csstype.Property.Grid | undefined>;
3865
- native: never;
3866
- }> | undefined;
3867
- gridAutoColumns?: Platform.Select<{
3868
- web: MakeValueResponsive<csstype.Property.GridAutoColumns<string | number> | undefined>;
3869
- native: never;
3870
- }> | undefined;
3871
- gridAutoFlow?: Platform.Select<{
3872
- web: MakeValueResponsive<csstype.Property.GridAutoFlow | undefined>;
3873
- native: never;
3874
- }> | undefined;
3875
- gridAutoRows?: Platform.Select<{
3876
- web: MakeValueResponsive<csstype.Property.GridAutoRows<string | number> | undefined>;
3877
- native: never;
3878
- }> | undefined;
3879
- gridColumnEnd?: Platform.Select<{
3880
- web: MakeValueResponsive<csstype.Property.GridColumnEnd | undefined>;
3881
- native: never;
3882
- }> | undefined;
3883
- gridColumnStart?: Platform.Select<{
3884
- web: MakeValueResponsive<csstype.Property.GridColumnStart | undefined>;
3885
- native: never;
3886
- }> | undefined;
3887
- gridRowEnd?: Platform.Select<{
3888
- web: MakeValueResponsive<csstype.Property.GridRowEnd | undefined>;
3889
- native: never;
3890
- }> | undefined;
3891
- gridRowStart?: Platform.Select<{
3892
- web: MakeValueResponsive<csstype.Property.GridRowStart | undefined>;
3893
- native: never;
3894
- }> | undefined;
3895
- gridTemplateAreas?: Platform.Select<{
3896
- web: MakeValueResponsive<csstype.Property.GridTemplateAreas | undefined>;
3897
- native: never;
3898
- }> | undefined;
3899
- gridTemplateColumns?: Platform.Select<{
3900
- web: MakeValueResponsive<csstype.Property.GridTemplateColumns<string | number> | undefined>;
3901
- native: never;
3902
- }> | undefined;
3903
- gridTemplateRows?: Platform.Select<{
3904
- web: MakeValueResponsive<csstype.Property.GridTemplateRows<string | number> | undefined>;
3905
- native: never;
3906
- }> | undefined;
3907
- gridArea?: Platform.Select<{
3908
- web: MakeValueResponsive<csstype.Property.GridArea | undefined>;
3909
- native: never;
3910
- }> | undefined;
3911
- gridColumn?: Platform.Select<{
3912
- web: MakeValueResponsive<csstype.Property.GridColumn | undefined>;
3913
- native: never;
3914
- }> | undefined;
3915
- gridRow?: Platform.Select<{
3916
- web: MakeValueResponsive<csstype.Property.GridRow | undefined>;
3917
- native: never;
3918
- }> | undefined;
3919
- gridTemplate?: Platform.Select<{
3920
- web: MakeValueResponsive<csstype.Property.GridTemplate | undefined>;
3921
- native: never;
3922
- }> | undefined;
3923
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
3844
+ } & PickIfExist<styled_components.CSSObject, "position" | "zIndex"> & {
3845
+ __brand__?: "platform-web" | undefined;
3846
+ }> & Pick<MakeObjectResponsive<PickCSSByPlatform<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
3924
3847
 
3925
3848
  declare type PasswordInputExtraProps = {
3926
3849
  /**
@@ -3953,7 +3876,7 @@ declare type PasswordInputExtraProps = {
3953
3876
  autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'password' | 'newPassword'>;
3954
3877
  };
3955
3878
  declare type PasswordInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onSubmit' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID'> & PasswordInputExtraProps & StyledPropsBlade;
3956
- declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "name" | "testID" | "placeholder" | "label" | "value" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "autoFocus" | "defaultValue" | "isDisabled" | "labelPosition" | "helpText" | "errorText" | "successText" | "validationState" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps & Partial<MakeObjectResponsive<{
3879
+ declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "name" | "testID" | "placeholder" | "label" | "value" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "autoFocus" | "defaultValue" | "isDisabled" | "labelPosition" | "helpText" | "errorText" | "successText" | "validationState" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps & Partial<Omit<MakeObjectResponsive<{
3957
3880
  margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
3958
3881
  marginX: SpacingValueType;
3959
3882
  marginY: SpacingValueType;
@@ -3965,73 +3888,17 @@ declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseI
3965
3888
  gap: SpacingValueType;
3966
3889
  rowGap: SpacingValueType;
3967
3890
  columnGap: SpacingValueType;
3968
- } & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
3891
+ flex: string | number;
3892
+ } & PickIfExist<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
3893
+ __brand__?: "platform-web" | undefined;
3894
+ }>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
3969
3895
  top: SpacingValueType;
3970
3896
  right: SpacingValueType;
3971
3897
  bottom: SpacingValueType;
3972
3898
  left: SpacingValueType;
3973
- } & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
3974
- grid?: Platform.Select<{
3975
- web: MakeValueResponsive<csstype.Property.Grid | undefined>;
3976
- native: never;
3977
- }> | undefined;
3978
- gridAutoColumns?: Platform.Select<{
3979
- web: MakeValueResponsive<csstype.Property.GridAutoColumns<string | number> | undefined>;
3980
- native: never;
3981
- }> | undefined;
3982
- gridAutoFlow?: Platform.Select<{
3983
- web: MakeValueResponsive<csstype.Property.GridAutoFlow | undefined>;
3984
- native: never;
3985
- }> | undefined;
3986
- gridAutoRows?: Platform.Select<{
3987
- web: MakeValueResponsive<csstype.Property.GridAutoRows<string | number> | undefined>;
3988
- native: never;
3989
- }> | undefined;
3990
- gridColumnEnd?: Platform.Select<{
3991
- web: MakeValueResponsive<csstype.Property.GridColumnEnd | undefined>;
3992
- native: never;
3993
- }> | undefined;
3994
- gridColumnStart?: Platform.Select<{
3995
- web: MakeValueResponsive<csstype.Property.GridColumnStart | undefined>;
3996
- native: never;
3997
- }> | undefined;
3998
- gridRowEnd?: Platform.Select<{
3999
- web: MakeValueResponsive<csstype.Property.GridRowEnd | undefined>;
4000
- native: never;
4001
- }> | undefined;
4002
- gridRowStart?: Platform.Select<{
4003
- web: MakeValueResponsive<csstype.Property.GridRowStart | undefined>;
4004
- native: never;
4005
- }> | undefined;
4006
- gridTemplateAreas?: Platform.Select<{
4007
- web: MakeValueResponsive<csstype.Property.GridTemplateAreas | undefined>;
4008
- native: never;
4009
- }> | undefined;
4010
- gridTemplateColumns?: Platform.Select<{
4011
- web: MakeValueResponsive<csstype.Property.GridTemplateColumns<string | number> | undefined>;
4012
- native: never;
4013
- }> | undefined;
4014
- gridTemplateRows?: Platform.Select<{
4015
- web: MakeValueResponsive<csstype.Property.GridTemplateRows<string | number> | undefined>;
4016
- native: never;
4017
- }> | undefined;
4018
- gridArea?: Platform.Select<{
4019
- web: MakeValueResponsive<csstype.Property.GridArea | undefined>;
4020
- native: never;
4021
- }> | undefined;
4022
- gridColumn?: Platform.Select<{
4023
- web: MakeValueResponsive<csstype.Property.GridColumn | undefined>;
4024
- native: never;
4025
- }> | undefined;
4026
- gridRow?: Platform.Select<{
4027
- web: MakeValueResponsive<csstype.Property.GridRow | undefined>;
4028
- native: never;
4029
- }> | undefined;
4030
- gridTemplate?: Platform.Select<{
4031
- web: MakeValueResponsive<csstype.Property.GridTemplate | undefined>;
4032
- native: never;
4033
- }> | undefined;
4034
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
3899
+ } & PickIfExist<styled_components.CSSObject, "position" | "zIndex"> & {
3900
+ __brand__?: "platform-web" | undefined;
3901
+ }> & Pick<MakeObjectResponsive<PickCSSByPlatform<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
4035
3902
 
4036
3903
  declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID'> & {
4037
3904
  /**
@@ -4052,7 +3919,7 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
4052
3919
  * Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
4053
3920
  */
4054
3921
  onClearButtonClick?: (() => void) | undefined;
4055
- } & Partial<MakeObjectResponsive<{
3922
+ } & Partial<Omit<MakeObjectResponsive<{
4056
3923
  margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
4057
3924
  marginX: SpacingValueType;
4058
3925
  marginY: SpacingValueType;
@@ -4064,73 +3931,17 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
4064
3931
  gap: SpacingValueType;
4065
3932
  rowGap: SpacingValueType;
4066
3933
  columnGap: SpacingValueType;
4067
- } & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
3934
+ flex: string | number;
3935
+ } & PickIfExist<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
3936
+ __brand__?: "platform-web" | undefined;
3937
+ }>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
4068
3938
  top: SpacingValueType;
4069
3939
  right: SpacingValueType;
4070
3940
  bottom: SpacingValueType;
4071
3941
  left: SpacingValueType;
4072
- } & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
4073
- grid?: Platform.Select<{
4074
- web: MakeValueResponsive<csstype.Property.Grid | undefined>;
4075
- native: never;
4076
- }> | undefined;
4077
- gridAutoColumns?: Platform.Select<{
4078
- web: MakeValueResponsive<csstype.Property.GridAutoColumns<string | number> | undefined>;
4079
- native: never;
4080
- }> | undefined;
4081
- gridAutoFlow?: Platform.Select<{
4082
- web: MakeValueResponsive<csstype.Property.GridAutoFlow | undefined>;
4083
- native: never;
4084
- }> | undefined;
4085
- gridAutoRows?: Platform.Select<{
4086
- web: MakeValueResponsive<csstype.Property.GridAutoRows<string | number> | undefined>;
4087
- native: never;
4088
- }> | undefined;
4089
- gridColumnEnd?: Platform.Select<{
4090
- web: MakeValueResponsive<csstype.Property.GridColumnEnd | undefined>;
4091
- native: never;
4092
- }> | undefined;
4093
- gridColumnStart?: Platform.Select<{
4094
- web: MakeValueResponsive<csstype.Property.GridColumnStart | undefined>;
4095
- native: never;
4096
- }> | undefined;
4097
- gridRowEnd?: Platform.Select<{
4098
- web: MakeValueResponsive<csstype.Property.GridRowEnd | undefined>;
4099
- native: never;
4100
- }> | undefined;
4101
- gridRowStart?: Platform.Select<{
4102
- web: MakeValueResponsive<csstype.Property.GridRowStart | undefined>;
4103
- native: never;
4104
- }> | undefined;
4105
- gridTemplateAreas?: Platform.Select<{
4106
- web: MakeValueResponsive<csstype.Property.GridTemplateAreas | undefined>;
4107
- native: never;
4108
- }> | undefined;
4109
- gridTemplateColumns?: Platform.Select<{
4110
- web: MakeValueResponsive<csstype.Property.GridTemplateColumns<string | number> | undefined>;
4111
- native: never;
4112
- }> | undefined;
4113
- gridTemplateRows?: Platform.Select<{
4114
- web: MakeValueResponsive<csstype.Property.GridTemplateRows<string | number> | undefined>;
4115
- native: never;
4116
- }> | undefined;
4117
- gridArea?: Platform.Select<{
4118
- web: MakeValueResponsive<csstype.Property.GridArea | undefined>;
4119
- native: never;
4120
- }> | undefined;
4121
- gridColumn?: Platform.Select<{
4122
- web: MakeValueResponsive<csstype.Property.GridColumn | undefined>;
4123
- native: never;
4124
- }> | undefined;
4125
- gridRow?: Platform.Select<{
4126
- web: MakeValueResponsive<csstype.Property.GridRow | undefined>;
4127
- native: never;
4128
- }> | undefined;
4129
- gridTemplate?: Platform.Select<{
4130
- web: MakeValueResponsive<csstype.Property.GridTemplate | undefined>;
4131
- native: never;
4132
- }> | undefined;
4133
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
3942
+ } & PickIfExist<styled_components.CSSObject, "position" | "zIndex"> & {
3943
+ __brand__?: "platform-web" | undefined;
3944
+ }> & Pick<MakeObjectResponsive<PickCSSByPlatform<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
4134
3945
 
4135
3946
  declare type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
4136
3947
  name?: string;
@@ -4245,7 +4056,7 @@ declare type IndicatorCommonProps = {
4245
4056
  * @default medium
4246
4057
  */
4247
4058
  size?: 'small' | 'medium' | 'large';
4248
- } & TestID$1 & StyledPropsBlade;
4059
+ } & TestID & StyledPropsBlade;
4249
4060
  declare type IndicatorWithoutA11yLabel = {
4250
4061
  /**
4251
4062
  * A text label to show alongside the indicator dot
@@ -4285,7 +4096,7 @@ declare type ListItemProps = {
4285
4096
  *
4286
4097
  */
4287
4098
  _itemNumber?: undefined;
4288
- } & TestID$1;
4099
+ } & TestID;
4289
4100
  declare const ListItem: ({ children, icon, _itemNumber, testID, }: ListItemProps) => React__default.ReactElement;
4290
4101
 
4291
4102
  declare type ListCommonProps = {
@@ -4306,7 +4117,7 @@ declare type ListCommonProps = {
4306
4117
  * @default 'medium'
4307
4118
  */
4308
4119
  size?: 'small' | 'medium';
4309
- } & TestID$1 & StyledPropsBlade;
4120
+ } & TestID & StyledPropsBlade;
4310
4121
  declare type ListWithIconProps = ListCommonProps & {
4311
4122
  variant?: 'unordered';
4312
4123
  icon?: IconComponent;
@@ -4326,7 +4137,7 @@ declare type TitleProps = {
4326
4137
  contrast?: ColorContrastTypes;
4327
4138
  type?: TextTypes;
4328
4139
  children: StringChildrenType;
4329
- } & TestID$1 & StyledPropsBlade;
4140
+ } & TestID & StyledPropsBlade;
4330
4141
  declare const Title: ({ size, type, contrast, children, testID, ...styledProps }: TitleProps) => ReactElement;
4331
4142
 
4332
4143
  declare type HeadingVariant = 'regular' | 'subheading';
@@ -4335,7 +4146,7 @@ declare type HeadingCommonProps = {
4335
4146
  type?: TextTypes;
4336
4147
  contrast?: ColorContrastTypes;
4337
4148
  children: StringChildrenType;
4338
- } & TestID$1 & StyledPropsBlade;
4149
+ } & TestID & StyledPropsBlade;
4339
4150
  declare type HeadingNormalVariant = HeadingCommonProps & {
4340
4151
  variant?: Exclude<HeadingVariant, 'subheading'>;
4341
4152
  /**
@@ -4393,7 +4204,7 @@ declare type BaseTextProps = {
4393
4204
  */
4394
4205
  numberOfLines?: number;
4395
4206
  componentName?: 'text' | 'title' | 'heading' | 'code';
4396
- } & TestID$1 & StyledPropsBlade;
4207
+ } & TestID & StyledPropsBlade;
4397
4208
 
4398
4209
  declare type TextCommonProps = {
4399
4210
  type?: TextTypes;
@@ -4406,7 +4217,7 @@ declare type TextCommonProps = {
4406
4217
  */
4407
4218
  color?: BaseTextProps['color'];
4408
4219
  textAlign?: BaseTextProps['textAlign'];
4409
- } & TestID$1 & StyledPropsBlade;
4220
+ } & TestID & StyledPropsBlade;
4410
4221
  declare type TextVariant = 'body' | 'caption';
4411
4222
  declare type TextBodyVariant = TextCommonProps & {
4412
4223
  variant?: Extract<TextVariant, 'body'>;
@@ -4446,7 +4257,7 @@ declare type CodeProps = {
4446
4257
  */
4447
4258
  size?: 'small' | 'medium';
4448
4259
  weight?: 'regular' | 'bold';
4449
- } & TestID$1 & StyledPropsBlade;
4260
+ } & TestID & StyledPropsBlade;
4450
4261
  /**
4451
4262
  * Code component can be used for displaying token, variable names, or inlined code snippets.
4452
4263
  *
@@ -4531,7 +4342,7 @@ declare type ProgressBarCommonProps = {
4531
4342
  * @default 100
4532
4343
  */
4533
4344
  max?: number;
4534
- } & TestID$1 & StyledPropsBlade;
4345
+ } & TestID & StyledPropsBlade;
4535
4346
  declare type ProgressBarVariant = 'progress' | 'meter';
4536
4347
  declare type ProgressBarProgressProps = ProgressBarCommonProps & {
4537
4348
  /**
@@ -4596,7 +4407,7 @@ declare type RadioProps = {
4596
4407
  * @default "medium"
4597
4408
  */
4598
4409
  size?: 'small' | 'medium';
4599
- } & TestID$1 & StyledPropsBlade;
4410
+ } & TestID & StyledPropsBlade;
4600
4411
  declare const Radio: React__default.ForwardRefExoticComponent<{
4601
4412
  /**
4602
4413
  * Sets the label text of the Radio
@@ -4623,7 +4434,7 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
4623
4434
  * @default "medium"
4624
4435
  */
4625
4436
  size?: "small" | "medium" | undefined;
4626
- } & TestID$1 & Partial<MakeObjectResponsive<{
4437
+ } & TestID & Partial<Omit<MakeObjectResponsive<{
4627
4438
  margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
4628
4439
  marginX: SpacingValueType;
4629
4440
  marginY: SpacingValueType;
@@ -4635,73 +4446,17 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
4635
4446
  gap: SpacingValueType;
4636
4447
  rowGap: SpacingValueType;
4637
4448
  columnGap: SpacingValueType;
4638
- } & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
4449
+ flex: string | number;
4450
+ } & PickIfExist$1<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
4451
+ __brand__?: "platform-web" | undefined;
4452
+ }>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
4639
4453
  top: SpacingValueType;
4640
4454
  right: SpacingValueType;
4641
4455
  bottom: SpacingValueType;
4642
4456
  left: SpacingValueType;
4643
- } & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
4644
- grid?: Platform.Select<{
4645
- web: MakeValueResponsive<csstype.Property.Grid | undefined>;
4646
- native: never;
4647
- }> | undefined;
4648
- gridAutoColumns?: Platform.Select<{
4649
- web: MakeValueResponsive<csstype.Property.GridAutoColumns<string | number> | undefined>;
4650
- native: never;
4651
- }> | undefined;
4652
- gridAutoFlow?: Platform.Select<{
4653
- web: MakeValueResponsive<csstype.Property.GridAutoFlow | undefined>;
4654
- native: never;
4655
- }> | undefined;
4656
- gridAutoRows?: Platform.Select<{
4657
- web: MakeValueResponsive<csstype.Property.GridAutoRows<string | number> | undefined>;
4658
- native: never;
4659
- }> | undefined;
4660
- gridColumnEnd?: Platform.Select<{
4661
- web: MakeValueResponsive<csstype.Property.GridColumnEnd | undefined>;
4662
- native: never;
4663
- }> | undefined;
4664
- gridColumnStart?: Platform.Select<{
4665
- web: MakeValueResponsive<csstype.Property.GridColumnStart | undefined>;
4666
- native: never;
4667
- }> | undefined;
4668
- gridRowEnd?: Platform.Select<{
4669
- web: MakeValueResponsive<csstype.Property.GridRowEnd | undefined>;
4670
- native: never;
4671
- }> | undefined;
4672
- gridRowStart?: Platform.Select<{
4673
- web: MakeValueResponsive<csstype.Property.GridRowStart | undefined>;
4674
- native: never;
4675
- }> | undefined;
4676
- gridTemplateAreas?: Platform.Select<{
4677
- web: MakeValueResponsive<csstype.Property.GridTemplateAreas | undefined>;
4678
- native: never;
4679
- }> | undefined;
4680
- gridTemplateColumns?: Platform.Select<{
4681
- web: MakeValueResponsive<csstype.Property.GridTemplateColumns<string | number> | undefined>;
4682
- native: never;
4683
- }> | undefined;
4684
- gridTemplateRows?: Platform.Select<{
4685
- web: MakeValueResponsive<csstype.Property.GridTemplateRows<string | number> | undefined>;
4686
- native: never;
4687
- }> | undefined;
4688
- gridArea?: Platform.Select<{
4689
- web: MakeValueResponsive<csstype.Property.GridArea | undefined>;
4690
- native: never;
4691
- }> | undefined;
4692
- gridColumn?: Platform.Select<{
4693
- web: MakeValueResponsive<csstype.Property.GridColumn | undefined>;
4694
- native: never;
4695
- }> | undefined;
4696
- gridRow?: Platform.Select<{
4697
- web: MakeValueResponsive<csstype.Property.GridRow | undefined>;
4698
- native: never;
4699
- }> | undefined;
4700
- gridTemplate?: Platform.Select<{
4701
- web: MakeValueResponsive<csstype.Property.GridTemplate | undefined>;
4702
- native: never;
4703
- }> | undefined;
4704
- }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
4457
+ } & PickIfExist$1<styled_components.CSSObject, "position" | "zIndex"> & {
4458
+ __brand__?: "platform-web" | undefined;
4459
+ }> & Pick<MakeObjectResponsive<PickCSSByPlatform$1<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
4705
4460
 
4706
4461
  declare type RadioGroupProps = {
4707
4462
  /**
@@ -4776,7 +4531,7 @@ declare type RadioGroupProps = {
4776
4531
  * @default "medium"
4777
4532
  */
4778
4533
  size?: 'small' | 'medium';
4779
- } & TestID$1 & StyledPropsBlade;
4534
+ } & TestID & StyledPropsBlade;
4780
4535
  declare const RadioGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: RadioGroupProps) => React__default.ReactElement;
4781
4536
 
4782
4537
  declare type BaseSpinnerProps = {
@@ -4809,7 +4564,7 @@ declare type BaseSpinnerProps = {
4809
4564
  *
4810
4565
  */
4811
4566
  accessibilityLabel: string;
4812
- } & TestID$1 & StyledPropsBlade;
4567
+ } & TestID & StyledPropsBlade;
4813
4568
 
4814
4569
  declare type SpinnerProps = Omit<BaseSpinnerProps, 'intent'>;
4815
4570
  declare const Spinner: ({ label, labelPosition, accessibilityLabel, contrast, size, testID, ...styledProps }: SpinnerProps) => React.ReactElement;
@@ -4821,12 +4576,12 @@ declare type SkipNavLinkProps = {
4821
4576
  declare const SkipNavLink: ({ id, children, }: SkipNavLinkProps) => JSX.Element;
4822
4577
  declare type SkipNavContentProps = {
4823
4578
  id?: string;
4824
- } & TestID$1;
4579
+ } & TestID;
4825
4580
  declare const SkipNavContent: ({ id, testID, }: SkipNavContentProps) => JSX.Element;
4826
4581
 
4827
4582
  declare type VisuallyHiddenProps = {
4828
4583
  children: React.ReactNode;
4829
- } & TestID$1;
4584
+ } & TestID;
4830
4585
 
4831
4586
  declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => JSX.Element;
4832
4587
 
@@ -4879,123 +4634,7 @@ declare type AmountProps = {
4879
4634
  * @default 'INR'
4880
4635
  * */
4881
4636
  currency?: Currency;
4882
- } & TestID$1 & StyledPropsBlade;
4637
+ } & TestID & StyledPropsBlade;
4883
4638
  declare const Amount: ({ value, suffix, size, isAffixSubtle, intent, prefix, testID, currency, ...styledProps }: AmountProps) => ReactElement;
4884
4639
 
4885
- declare type TestID = {
4886
- testID?: string;
4887
- };
4888
-
4889
- declare const BaseBox: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Omit<Partial<MakeObjectResponsive<{
4890
- padding: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
4891
- paddingX: SpacingValueType;
4892
- paddingY: SpacingValueType;
4893
- paddingTop: SpacingValueType;
4894
- paddingRight: SpacingValueType;
4895
- paddingBottom: SpacingValueType;
4896
- paddingLeft: SpacingValueType;
4897
- }> & MakeObjectResponsive<{
4898
- margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
4899
- marginX: SpacingValueType;
4900
- marginY: SpacingValueType;
4901
- marginTop: SpacingValueType;
4902
- marginRight: SpacingValueType;
4903
- marginBottom: SpacingValueType;
4904
- marginLeft: SpacingValueType;
4905
- }> & MakeObjectResponsive<{
4906
- height: SpacingValueType;
4907
- minHeight: SpacingValueType;
4908
- maxHeight: SpacingValueType;
4909
- width: SpacingValueType;
4910
- minWidth: SpacingValueType;
4911
- maxWidth: SpacingValueType;
4912
- } & Pick<styled_components.CSSObject, "overflow" | "overflowX" | "overflowY"> & {
4913
- display: csstype.Property.Display | undefined;
4914
- } & {
4915
- __brand__?: "platform-web" | undefined;
4916
- }> & MakeObjectResponsive<{
4917
- gap: SpacingValueType;
4918
- rowGap: SpacingValueType;
4919
- columnGap: SpacingValueType;
4920
- } & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">> & MakeObjectResponsive<{
4921
- top: SpacingValueType;
4922
- right: SpacingValueType;
4923
- bottom: SpacingValueType;
4924
- left: SpacingValueType;
4925
- } & Pick<styled_components.CSSObject, "position" | "zIndex">> & {
4926
- grid?: Platform.Select<{
4927
- web: MakeValueResponsive<csstype.Property.Grid | undefined>;
4928
- native: never;
4929
- }> | undefined;
4930
- gridAutoColumns?: Platform.Select<{
4931
- web: MakeValueResponsive<csstype.Property.GridAutoColumns<string | number> | undefined>;
4932
- native: never;
4933
- }> | undefined;
4934
- gridAutoFlow?: Platform.Select<{
4935
- web: MakeValueResponsive<csstype.Property.GridAutoFlow | undefined>;
4936
- native: never;
4937
- }> | undefined;
4938
- gridAutoRows?: Platform.Select<{
4939
- web: MakeValueResponsive<csstype.Property.GridAutoRows<string | number> | undefined>;
4940
- native: never;
4941
- }> | undefined;
4942
- gridColumnEnd?: Platform.Select<{
4943
- web: MakeValueResponsive<csstype.Property.GridColumnEnd | undefined>;
4944
- native: never;
4945
- }> | undefined;
4946
- gridColumnStart?: Platform.Select<{
4947
- web: MakeValueResponsive<csstype.Property.GridColumnStart | undefined>;
4948
- native: never;
4949
- }> | undefined;
4950
- gridRowEnd?: Platform.Select<{
4951
- web: MakeValueResponsive<csstype.Property.GridRowEnd | undefined>;
4952
- native: never;
4953
- }> | undefined;
4954
- gridRowStart?: Platform.Select<{
4955
- web: MakeValueResponsive<csstype.Property.GridRowStart | undefined>;
4956
- native: never;
4957
- }> | undefined;
4958
- gridTemplateAreas?: Platform.Select<{
4959
- web: MakeValueResponsive<csstype.Property.GridTemplateAreas | undefined>;
4960
- native: never;
4961
- }> | undefined;
4962
- gridTemplateColumns?: Platform.Select<{
4963
- web: MakeValueResponsive<csstype.Property.GridTemplateColumns<string | number> | undefined>;
4964
- native: never;
4965
- }> | undefined;
4966
- gridTemplateRows?: Platform.Select<{
4967
- web: MakeValueResponsive<csstype.Property.GridTemplateRows<string | number> | undefined>;
4968
- native: never;
4969
- }> | undefined;
4970
- gridArea?: Platform.Select<{
4971
- web: MakeValueResponsive<csstype.Property.GridArea | undefined>;
4972
- native: never;
4973
- }> | undefined;
4974
- gridColumn?: Platform.Select<{
4975
- web: MakeValueResponsive<csstype.Property.GridColumn | undefined>;
4976
- native: never;
4977
- }> | undefined;
4978
- gridRow?: Platform.Select<{
4979
- web: MakeValueResponsive<csstype.Property.GridRow | undefined>;
4980
- native: never;
4981
- }> | undefined;
4982
- gridTemplate?: Platform.Select<{
4983
- web: MakeValueResponsive<csstype.Property.GridTemplate | undefined>;
4984
- native: never;
4985
- }> | undefined;
4986
- } & MakeObjectResponsive<{
4987
- backgroundColor: "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast";
4988
- }> & {
4989
- as: "header" | "main" | "aside" | "div" | "footer" | "nav" | "section" | "span";
4990
- } & {
4991
- children?: React$1.ReactNode | React$1.ReactNode[];
4992
- } & TestID>, "backgroundColor" | "as"> & Partial<MakeObjectResponsive<{
4993
- borderRadius: "none" | "small" | "medium" | "large" | "max" | "round";
4994
- backgroundColor: (string & Record<never, never>) | "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.disabled" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.secondary.default" | "action.background.secondary.disabled" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.tertiary.default" | "action.background.tertiary.disabled" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active";
4995
- lineHeight: SpacingValueType;
4996
- } & Pick<styled_components.CSSObject, "border" | "transform" | "borderBottom" | "borderLeft" | "borderRight" | "borderTop">> & {
4997
- className?: string | undefined;
4998
- id?: string | undefined;
4999
- }>, never>;
5000
-
5001
- export { ActionList, ActionListFooter, ActionListFooterIcon, ActionListFooterProps, ActionListHeader, ActionListHeaderIcon, ActionListHeaderProps, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionDivider, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, Amount, AmountProps, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, Box, BoxIcon, BoxProps, BriefcaseIcon, BulkPayoutsIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodepenIcon, CoinsIcon, CommandIcon, CompassIcon, ComponentIds, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, CustomersIcon, CutIcon, DashboardIcon, DeleteIcon, DiscIcon, DollarIcon, DollarsIcon, DownloadCloudIcon, DownloadIcon, Dropdown, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EditComposeIcon, EditIcon, EditInlineIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphonesIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, BaseBox as InternalDontUsePleaseWillBeRemovedSoonBaseBox, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputProps, OctagonIcon, OffersIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonsIcon, PaymentLinksIcon, PaymentPagesIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RefreshIcon, RepeatIcon, ReportsIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaveIcon, ScissorsIcon, SearchIcon, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SpeakerIcon, Spinner, SpinnerProps, SquareIcon, StampIcon, StarIcon, StopCircleIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, TabletIcon, TagIcon, TargetIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, Title, TitleProps, ToggleLeftIcon, ToggleRightIcon, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
4640
+ export { ActionList, ActionListFooter, ActionListFooterIcon, ActionListFooterProps, ActionListHeader, ActionListHeaderIcon, ActionListHeaderProps, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionDivider, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, Amount, AmountProps, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, Box, BoxIcon, BoxProps, BriefcaseIcon, BulkPayoutsIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodepenIcon, CoinsIcon, CommandIcon, CompassIcon, ComponentIds, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, CustomersIcon, CutIcon, DashboardIcon, DeleteIcon, DiscIcon, DollarIcon, DollarsIcon, DownloadCloudIcon, DownloadIcon, Dropdown, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EditComposeIcon, EditIcon, EditInlineIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphonesIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputProps, OctagonIcon, OffersIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonsIcon, PaymentLinksIcon, PaymentPagesIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RefreshIcon, RepeatIcon, ReportsIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaveIcon, ScissorsIcon, SearchIcon, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SpeakerIcon, Spinner, SpinnerProps, SquareIcon, StampIcon, StarIcon, StopCircleIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, TabletIcon, TagIcon, TargetIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, Title, TitleProps, ToggleLeftIcon, ToggleRightIcon, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useActionListContext, useTheme };