@razorpay/blade 6.5.2 → 6.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @razorpay/blade
2
2
 
3
+ ## 6.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fe89e6f6: fix: tree-shaking in blade components
8
+ - 7817c9e3: feat(Box): add different types for `display` on react native
9
+ - c6512ba0: fix(Alert, Card): set `box-sizing` as `border-box` for Alert and Card
10
+
11
+ ## 6.6.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 5863f939: feat(OTPInput): add `onFocus` & `onBlur` props
16
+ - 75daaa3c: feat(theme): add `name` property in `theme` to watch on theme changes
17
+
18
+ ### Patch Changes
19
+
20
+ - 6a8524ab: feat(Link): add `hitSlop` support for native
21
+
3
22
  ## 6.5.2
4
23
 
5
24
  ### Patch Changes
@@ -437,6 +437,7 @@ type Colors = {
437
437
  type ColorsWithModes = Record<ColorSchemeModes, Colors>;
438
438
 
439
439
  type ThemeTokens = {
440
+ name: 'paymentTheme' | 'bankingTheme' | StringWithAutocomplete; // Can be used to watch over state changes between theme without watching over entire theme object
440
441
  border: Border;
441
442
  breakpoints: Breakpoints;
442
443
  colors: ColorsWithModes;
@@ -446,16 +447,6 @@ type ThemeTokens = {
446
447
  typography: TypographyWithPlatforms;
447
448
  };
448
449
 
449
- /* eslint-disable @typescript-eslint/no-explicit-any */
450
-
451
-
452
- /**
453
- * A type defining React component with additional static prop `componentId`
454
- */
455
- type WithComponentId<Props> = ((props: Props) => React__default.ReactElement) & {
456
- componentId: string;
457
- };
458
-
459
450
  // All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions
460
451
  type AriaRoles =
461
452
  | Exclude<AccessibilityRole, 'header' | 'adjustable' | 'image' | 'none' | 'summary'>
@@ -935,6 +926,24 @@ type DotNotationSpacingStringToken = `spacing.${keyof Spacing}`;
935
926
  */
936
927
  type StringChildrenType = React__default.ReactText | React__default.ReactText[];
937
928
 
929
+ /**
930
+ *
931
+ * When combined with union, this type utility will give you autocomplete of union while still supporting any string value as input
932
+ *
933
+ * ### Usage
934
+ *
935
+ * ```ts
936
+ * type ThemeName = 'paymentTheme' | 'bankingTheme' | StringWithAutocomplete;
937
+ * ```
938
+ *
939
+ * This will show paymentTheme and bankingTheme in autocomplete but also allow any other string as value.
940
+ *
941
+ * More details - https://github.com/razorpay/blade/pull/1031/commits/86b6ee0facf45e7556739efcbfa5396b11b1b3c9#r1121298293
942
+ * Related TS Issue - https://github.com/microsoft/TypeScript/issues/29729
943
+ *
944
+ */
945
+ type StringWithAutocomplete = string & Record<never, never>;
946
+
938
947
  type TestID$1 = {
939
948
  testID?: string;
940
949
  };
@@ -993,6 +1002,7 @@ declare type ActionListProps = {
993
1002
  declare const ActionList: ({ children, surfaceLevel, testID }: ActionListProps) => JSX.Element;
994
1003
 
995
1004
  type Theme$1 = {
1005
+ name: ThemeTokens['name'];
996
1006
  border: Border;
997
1007
  breakpoints: Breakpoints;
998
1008
  colors: Colors;
@@ -1458,32 +1468,14 @@ declare type ActionListSectionProps = {
1458
1468
  */
1459
1469
  _hideDivider?: boolean;
1460
1470
  } & TestID$1;
1461
- declare const ActionListSection: WithComponentId<ActionListSectionProps>;
1462
- declare const ActionListItemIcon: WithComponentId<{
1471
+ declare const ActionListSection: ({ title, children, testID, _hideDivider, }: ActionListSectionProps) => JSX.Element;
1472
+ declare const ActionListItemIcon: ({ icon }: {
1463
1473
  icon: IconComponent$1;
1464
- }>;
1465
- declare const ActionListItemText: WithComponentId<{
1474
+ }) => JSX.Element;
1475
+ declare const ActionListItemText: ({ children, }: {
1466
1476
  children: StringChildrenType;
1467
- }>;
1468
- /**
1469
- * ### ActionListItem
1470
- *
1471
- * Creates option inside `ActionList`.
1472
- *
1473
- * #### Usage
1474
- *
1475
- * ```jsx
1476
- * <ActionList>
1477
- * <ActionListItem
1478
- * title="Home"
1479
- * value="home"
1480
- * leading={<ActionListItemIcon icon={HomeIcon} />}
1481
- * trailing={<ActionListItemText>⌘ + S</ActionListItemText>}
1482
- * />
1483
- * </ActionList>
1484
- * ```
1485
- */
1486
- declare const ActionListItem: WithComponentId<ActionListItemProps>;
1477
+ }) => React__default.ReactElement;
1478
+ declare const ActionListItem: (props: ActionListItemProps) => JSX.Element;
1487
1479
 
1488
1480
  declare type ActionListHeaderProps = {
1489
1481
  title: string;
@@ -1494,29 +1486,10 @@ declare type ActionListHeaderProps = {
1494
1486
  */
1495
1487
  leading?: React__default.ReactNode;
1496
1488
  } & TestID$1;
1497
- /**
1498
- * ### ActionListHeader
1499
- *
1500
- * To be used inside `ActionList`
1501
- *
1502
- * #### Usage
1503
- *
1504
- * ```jsx
1505
- * <ActionListHeader
1506
- * title="Search Tips"
1507
- * leading={
1508
- * <ActionListHeaderIcon
1509
- * title="Recent Searches"
1510
- * icon={HistoryIcon}
1511
- * />
1512
- * }
1513
- * />
1514
- * ```
1515
- */
1516
- declare const ActionListHeader: WithComponentId<ActionListHeaderProps>;
1517
- declare const ActionListHeaderIcon: WithComponentId<{
1489
+ declare const ActionListHeader: (props: ActionListHeaderProps) => JSX.Element;
1490
+ declare const ActionListHeaderIcon: ({ icon }: {
1518
1491
  icon: IconComponent$1;
1519
- }>;
1492
+ }) => React__default.ReactElement;
1520
1493
 
1521
1494
  declare type ActionListFooterProps = {
1522
1495
  title?: string;
@@ -1533,31 +1506,10 @@ declare type ActionListFooterProps = {
1533
1506
  */
1534
1507
  trailing?: React__default.ReactNode;
1535
1508
  } & TestID$1;
1536
- /**
1537
- * ### ActionListFooter
1538
- *
1539
- * To be used inside `ActionList`
1540
- *
1541
- * #### Usage
1542
- *
1543
- * ```jsx
1544
- * <ActionListFooter
1545
- * title="Search Tips"
1546
- * leading={<ActionListFooterIcon icon={SearchIcon} />}
1547
- * trailing={
1548
- * <Button
1549
- * onClick={() => { console.log('click') }}
1550
- * >
1551
- * Apply
1552
- * </Button>
1553
- * }
1554
- * />
1555
- * ```
1556
- */
1557
- declare const ActionListFooter: WithComponentId<ActionListFooterProps>;
1558
- declare const ActionListFooterIcon: WithComponentId<{
1509
+ declare const ActionListFooter: (props: ActionListFooterProps) => JSX.Element;
1510
+ declare const ActionListFooterIcon: ({ icon }: {
1559
1511
  icon: IconComponent$1;
1560
- }>;
1512
+ }) => React__default.ReactElement;
1561
1513
 
1562
1514
  declare type ActionListItemAssetProps = {
1563
1515
  /**
@@ -1569,7 +1521,7 @@ declare type ActionListItemAssetProps = {
1569
1521
  */
1570
1522
  alt: string;
1571
1523
  };
1572
- declare const ActionListItemAsset: WithComponentId<ActionListItemAssetProps>;
1524
+ declare const ActionListItemAsset: (props: ActionListItemAssetProps) => React.ReactElement;
1573
1525
 
1574
1526
  declare type PrimaryAction = {
1575
1527
  text: string;
@@ -1705,6 +1657,7 @@ declare const ThemeContext: React$1.Context<ThemeContext>;
1705
1657
  declare const useTheme: () => ThemeContext;
1706
1658
 
1707
1659
  declare type Theme = {
1660
+ name: ThemeTokens['name'];
1708
1661
  border: Border;
1709
1662
  breakpoints: Breakpoints;
1710
1663
  colors: Colors;
@@ -2210,7 +2163,29 @@ declare type LayoutProps = MakeObjectResponsive<{
2210
2163
  width: SpacingValueType;
2211
2164
  minWidth: SpacingValueType;
2212
2165
  maxWidth: SpacingValueType;
2213
- } & Pick<CSSObject, 'display' | 'overflow' | 'overflowX' | 'overflowY'>>;
2166
+ } & Pick<CSSObject, 'overflow' | 'overflowX' | 'overflowY'> & Platform$1.Select<{
2167
+ web: {
2168
+ /**
2169
+ *
2170
+ * 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.
2171
+ *
2172
+ * @see https://developer.mozilla.org/docs/Web/CSS/display
2173
+ */
2174
+ display: CSSObject['display'];
2175
+ };
2176
+ native: {
2177
+ /**
2178
+ *
2179
+ *
2180
+ * On React Native, **`display`** property sets whether an element can be `flex` or `none`
2181
+ *
2182
+ * @see https://reactnative.dev/docs/layout-props.html#display
2183
+ *
2184
+ * @default 'flex'
2185
+ */
2186
+ display: 'none' | 'flex';
2187
+ };
2188
+ }>>;
2214
2189
  declare type FlexboxProps = MakeObjectResponsive<{
2215
2190
  /**
2216
2191
  * This uses the native gap property which might not work on older browsers.
@@ -2331,7 +2306,7 @@ declare const Card: ({ children, surfaceLevel, testID, ...styledProps }: CardPro
2331
2306
  declare type CardBodyProps = {
2332
2307
  children: React__default.ReactNode;
2333
2308
  } & TestID$1;
2334
- declare const CardBody: WithComponentId<CardBodyProps>;
2309
+ declare const CardBody: ({ children, testID }: CardBodyProps) => React__default.ReactElement;
2335
2310
 
2336
2311
  declare type LinkCommonProps = {
2337
2312
  variant?: 'anchor' | 'button';
@@ -2348,7 +2323,25 @@ declare type LinkCommonProps = {
2348
2323
  * @default medium
2349
2324
  */
2350
2325
  size?: 'small' | 'medium';
2351
- } & TestID$1 & StyledPropsBlade;
2326
+ } & TestID$1 & StyledPropsBlade & Platform$1.Select<{
2327
+ native: {
2328
+ /**
2329
+ * Defines how far your touch can start away from the link
2330
+ */
2331
+ hitSlop?: {
2332
+ top?: number;
2333
+ right?: number;
2334
+ bottom?: number;
2335
+ left?: number;
2336
+ } | number;
2337
+ };
2338
+ web: {
2339
+ /**
2340
+ * This is a react-native only prop and has no effect on web.
2341
+ */
2342
+ hitSlop?: undefined;
2343
+ };
2344
+ }>;
2352
2345
  declare type LinkWithoutIconProps = LinkCommonProps & {
2353
2346
  icon?: undefined;
2354
2347
  children: StringChildrenType;
@@ -2373,7 +2366,7 @@ declare type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
2373
2366
  rel?: undefined;
2374
2367
  };
2375
2368
  declare type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
2376
- declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, ...styledProps }: LinkProps) => ReactElement;
2369
+ declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, hitSlop, ...styledProps }: LinkProps) => ReactElement;
2377
2370
 
2378
2371
  type BladeElementRef = Pick<HTMLElement, 'focus' | 'scrollIntoView'> | Pick<View, 'focus'>;
2379
2372
 
@@ -2517,23 +2510,23 @@ type CounterProps$1 = {
2517
2510
  } & TestID$1 &
2518
2511
  StyledPropsBlade;
2519
2512
 
2520
- declare const CardHeaderIcon: WithComponentId<{
2513
+ declare const CardHeaderIcon: ({ icon }: {
2521
2514
  icon: IconComponent$1;
2522
- }>;
2523
- declare const CardHeaderCounter: WithComponentId<CounterProps$1>;
2524
- declare const CardHeaderBadge: WithComponentId<BadgeProps>;
2525
- declare const CardHeaderText: WithComponentId<TextProps$1<{
2515
+ }) => React__default.ReactElement;
2516
+ declare const CardHeaderCounter: (props: CounterProps$1) => React__default.ReactElement;
2517
+ declare const CardHeaderBadge: (props: BadgeProps) => React__default.ReactElement;
2518
+ declare const CardHeaderText: (props: TextProps$1<{
2526
2519
  variant: TextVariant$1;
2527
- }>>;
2528
- declare const CardHeaderLink: WithComponentId<LinkProps>;
2520
+ }>) => React__default.ReactElement;
2521
+ declare const CardHeaderLink: (props: LinkProps) => React__default.ReactElement;
2529
2522
  declare type CardHeaderIconButtonProps = Omit<ButtonProps, 'variant' | 'size' | 'iconPosition' | 'isFullWidth' | 'children'> & {
2530
2523
  icon: IconComponent$1;
2531
2524
  };
2532
- declare const CardHeaderIconButton: WithComponentId<CardHeaderIconButtonProps>;
2525
+ declare const CardHeaderIconButton: (props: CardHeaderIconButtonProps) => React__default.ReactElement;
2533
2526
  declare type CardHeaderProps = {
2534
2527
  children?: React__default.ReactNode;
2535
2528
  } & TestID$1;
2536
- declare const CardHeader: WithComponentId<CardHeaderProps>;
2529
+ declare const CardHeader: ({ children, testID }: CardHeaderProps) => React__default.ReactElement;
2537
2530
  declare type CardHeaderLeadingProps = {
2538
2531
  title: string;
2539
2532
  subtitle?: string;
@@ -2550,7 +2543,7 @@ declare type CardHeaderLeadingProps = {
2550
2543
  */
2551
2544
  suffix?: React__default.ReactNode;
2552
2545
  };
2553
- declare const CardHeaderLeading: WithComponentId<CardHeaderLeadingProps>;
2546
+ declare const CardHeaderLeading: ({ title, subtitle, prefix, suffix, }: CardHeaderLeadingProps) => React__default.ReactElement;
2554
2547
  declare type CardHeaderTrailingProps = {
2555
2548
  /**
2556
2549
  * Renders a visual ornament in card header trailing section
@@ -2559,7 +2552,7 @@ declare type CardHeaderTrailingProps = {
2559
2552
  */
2560
2553
  visual?: React__default.ReactNode;
2561
2554
  };
2562
- declare const CardHeaderTrailing: WithComponentId<CardHeaderTrailingProps>;
2555
+ declare const CardHeaderTrailing: ({ visual }: CardHeaderTrailingProps) => React__default.ReactElement;
2563
2556
 
2564
2557
  declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel' | 'isLoading' | 'isDisabled' | 'icon' | 'iconPosition' | 'onClick'> & {
2565
2558
  text: ButtonProps['children'];
@@ -2567,19 +2560,19 @@ declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel'
2567
2560
  declare type CardFooterProps = {
2568
2561
  children?: React__default.ReactNode;
2569
2562
  } & TestID$1;
2570
- declare const CardFooter: WithComponentId<CardFooterProps>;
2563
+ declare const CardFooter: ({ children, testID }: CardFooterProps) => React__default.ReactElement;
2571
2564
  declare type CardFooterLeadingProps = {
2572
2565
  title?: string;
2573
2566
  subtitle?: string;
2574
2567
  };
2575
- declare const CardFooterLeading: WithComponentId<CardFooterLeadingProps>;
2568
+ declare const CardFooterLeading: ({ title, subtitle }: CardFooterLeadingProps) => React__default.ReactElement;
2576
2569
  declare type CardFooterTrailingProps = {
2577
2570
  actions?: {
2578
2571
  primary?: CardFooterAction;
2579
2572
  secondary?: CardFooterAction;
2580
2573
  };
2581
2574
  };
2582
- declare const CardFooterTrailing: WithComponentId<CardFooterTrailingProps>;
2575
+ declare const CardFooterTrailing: ({ actions }: CardFooterTrailingProps) => React__default.ReactElement;
2583
2576
 
2584
2577
  declare type IconButtonProps = {
2585
2578
  /**
@@ -2991,43 +2984,12 @@ declare type DropdownProps = {
2991
2984
  selectionType?: 'single' | 'multiple';
2992
2985
  children: React__default.ReactNode[];
2993
2986
  } & StyledPropsBlade;
2994
- /**
2995
- * ### Dropdown component
2996
- *
2997
- * Dropdown component is generic component that controls the dropdown functionality.
2998
- * It can be used with multiple triggers and mostly contains ActionList component inside it
2999
- *
3000
- * ---
3001
- *
3002
- * #### Usage
3003
- *
3004
- * ```jsx
3005
- * <Dropdown selectionType="single">
3006
- * <SelectInput />
3007
- * <DropdownOverlay>
3008
- * <ActionList>
3009
- * <ActionListItem />
3010
- * <ActionListItem />
3011
- * </ActionList>
3012
- * </DropdownOverlay>
3013
- * </Dropdown>
3014
- * ```
3015
- *
3016
- * ---
3017
- *
3018
- * Checkout {@link https://blade.razorpay.com/?path=/docs/components-dropdown-with-select--with-single-select Dropdown Documentation}
3019
- */
3020
- declare const Dropdown: WithComponentId<DropdownProps>;
2987
+ declare const Dropdown: ({ children, selectionType, ...styledProps }: DropdownProps) => JSX.Element;
3021
2988
 
3022
2989
  declare type DropdownOverlayProps = {
3023
2990
  children: React__default.ReactNode;
3024
2991
  } & TestID$1;
3025
- /**
3026
- * Overlay of dropdown
3027
- *
3028
- * Wrap your ActionList within this component
3029
- */
3030
- declare const DropdownOverlay: WithComponentId<DropdownOverlayProps>;
2992
+ declare const DropdownOverlay: ({ children, testID }: DropdownOverlayProps) => JSX.Element;
3031
2993
 
3032
2994
  declare const ArrowDownIcon: IconComponent;
3033
2995
 
@@ -4191,6 +4153,11 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
4191
4153
  }> | undefined;
4192
4154
  }, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
4193
4155
 
4156
+ declare type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
4157
+ name?: string;
4158
+ value?: string;
4159
+ inputIndex: number;
4160
+ }) => void;
4194
4161
  declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID'> & {
4195
4162
  /**
4196
4163
  * Determines the number of input fields to show for the OTP
@@ -4219,6 +4186,14 @@ declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'v
4219
4186
  *
4220
4187
  */
4221
4188
  autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'oneTimeCode'>;
4189
+ /**
4190
+ * The callback function to be invoked when one of the input fields gets focus
4191
+ */
4192
+ onFocus?: FormInputOnEventWithIndex;
4193
+ /**
4194
+ * The callback function to be invoked when one of the input fields is blurred
4195
+ */
4196
+ onBlur?: FormInputOnEventWithIndex;
4222
4197
  } & StyledPropsBlade;
4223
4198
  /**
4224
4199
  * OTPInput component can be used for accepting OTPs sent to users for authentication/verification purposes.
@@ -4234,7 +4209,7 @@ declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'v
4234
4209
  * />
4235
4210
  * ```
4236
4211
  */
4237
- declare const OTPInput: ({ autoFocus, errorText, helpText, isDisabled, keyboardReturnKeyType, keyboardType, label, labelPosition, name, onChange, onOTPFilled, otpLength, placeholder, successText, validationState, value, isMasked, autoCompleteSuggestionType, testID, ...styledProps }: OTPInputProps) => React__default.ReactElement;
4212
+ declare const OTPInput: ({ autoFocus, errorText, helpText, isDisabled, keyboardReturnKeyType, keyboardType, label, labelPosition, name, onChange, onFocus, onBlur, onOTPFilled, otpLength, placeholder, successText, validationState, value, isMasked, autoCompleteSuggestionType, testID, ...styledProps }: OTPInputProps) => React__default.ReactElement;
4238
4213
 
4239
4214
  declare type SelectInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'autoFocus' | 'onClick' | 'onFocus' | 'onBlur' | 'placeholder' | 'testID'> & {
4240
4215
  icon?: IconComponent$1;
@@ -4332,10 +4307,7 @@ declare type ListItemProps = {
4332
4307
  */
4333
4308
  _itemNumber?: undefined;
4334
4309
  } & TestID$1;
4335
- declare const ListItem: {
4336
- ({ children, icon, _itemNumber, testID, }: ListItemProps): React__default.ReactElement;
4337
- componentId: string;
4338
- };
4310
+ declare const ListItem: ({ children, icon, _itemNumber, testID, }: ListItemProps) => React__default.ReactElement;
4339
4311
 
4340
4312
  declare type ListCommonProps = {
4341
4313
  /**
@@ -4365,36 +4337,10 @@ declare type ListWithoutIconProps = ListCommonProps & {
4365
4337
  icon?: undefined;
4366
4338
  };
4367
4339
  declare type ListProps = ListWithIconProps | ListWithoutIconProps;
4368
- /**
4369
- * List Component is used to display a set of related items that are composed of text/links. Each list item begins with a bullet or a number.
4370
- *
4371
- * ## Usage
4372
- *
4373
- * ```tsx
4374
- * <List
4375
- * variant='unordered'
4376
- * size='medium'
4377
- * >
4378
- * <ListItem>
4379
- * Item 1
4380
- * <List>
4381
- * <ListItem>Item 1.1</ListItem>
4382
- * </List>
4383
- * </ListItem>
4384
- * <ListItem>Item 2</ListItem>
4385
- * <List />
4386
- * ```
4387
- */
4388
- declare const List: {
4389
- ({ variant, size, children, icon, testID, ...styledProps }: ListProps): React__default.ReactElement;
4390
- componentId: string;
4391
- };
4340
+ declare const List: ({ variant, size, children, icon, testID, ...styledProps }: ListProps) => React__default.ReactElement;
4392
4341
 
4393
4342
  declare type ListItemLinkProps = Exclude<LinkProps, 'size' | 'variant' | 'isDisabled'>;
4394
- declare const ListItemLink: {
4395
- ({ accessibilityLabel, children, href, icon, iconPosition, onClick, rel, target, testID, }: ListItemLinkProps): React.ReactElement;
4396
- componentId: string;
4397
- };
4343
+ declare const ListItemLink: ({ accessibilityLabel, children, href, icon, iconPosition, onClick, rel, target, testID, }: ListItemLinkProps) => React.ReactElement;
4398
4344
 
4399
4345
  declare type TitleProps = {
4400
4346
  size?: 'small' | 'medium' | 'large';
@@ -4546,10 +4492,7 @@ declare type CodeProps = {
4546
4492
  declare const Code: ({ children, size, testID, ...styledProps }: CodeProps) => JSX.Element;
4547
4493
 
4548
4494
  declare type ListItemCodeProps = Exclude<CodeProps, 'size'>;
4549
- declare const ListItemCode: {
4550
- ({ children, testID }: ListItemCodeProps): React.ReactElement;
4551
- componentId: string;
4552
- };
4495
+ declare const ListItemCode: ({ children, testID }: ListItemCodeProps) => React.ReactElement;
4553
4496
 
4554
4497
  declare type Assertiveness = AriaAttributes['liveRegion'];
4555
4498
 
@@ -4936,7 +4879,11 @@ declare const BaseBox: styled_components.StyledComponent<"div", styled_component
4936
4879
  width: SpacingValueType;
4937
4880
  minWidth: SpacingValueType;
4938
4881
  maxWidth: SpacingValueType;
4939
- } & Pick<styled_components.CSSObject, "display" | "overflow" | "overflowX" | "overflowY">> & MakeObjectResponsive<{
4882
+ } & Pick<styled_components.CSSObject, "overflow" | "overflowX" | "overflowY"> & {
4883
+ display: csstype.Property.Display | undefined;
4884
+ } & {
4885
+ __brand__?: "platform-web" | undefined;
4886
+ }> & MakeObjectResponsive<{
4940
4887
  gap: SpacingValueType;
4941
4888
  rowGap: SpacingValueType;
4942
4889
  columnGap: SpacingValueType;
@@ -5014,7 +4961,7 @@ declare const BaseBox: styled_components.StyledComponent<"div", styled_component
5014
4961
  children?: React$1.ReactNode | React$1.ReactNode[];
5015
4962
  } & TestID>, "backgroundColor" | "as"> & Partial<MakeObjectResponsive<{
5016
4963
  borderRadius: "none" | "small" | "medium" | "large" | "max" | "round";
5017
- backgroundColor: "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" | (string & Record<never, never>);
4964
+ 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";
5018
4965
  lineHeight: SpacingValueType;
5019
4966
  } & Pick<styled_components.CSSObject, "border" | "transform" | "borderBottom" | "borderLeft" | "borderRight" | "borderTop">> & {
5020
4967
  className?: string | undefined;