@razorpay/blade 7.1.1 → 7.2.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 +105 -0
- package/build/components/index.d.ts +63 -33
- package/build/components/index.native.d.ts +66 -14
- package/build/components/index.native.js +51 -30
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +1752 -1518
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/build/tokens/index.d.ts +2 -0
- package/build/tokens/index.native.d.ts +2 -0
- package/build/utils/index.d.ts +1 -5
- package/build/utils/index.native.d.ts +1 -5
- package/build/utils/index.native.js +1 -3
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +1 -7
- package/build/utils/index.web.js.map +1 -1
- package/package.json +75 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,110 @@
|
|
|
1
1
|
# @razorpay/blade
|
|
2
2
|
|
|
3
|
+
## 7.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 40a16da7: fix(blade): BottomSheet body dynamic height
|
|
8
|
+
- e0f80522: feat(blade): added bottomsheet component ids
|
|
9
|
+
|
|
10
|
+
## 7.2.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 1333e756: feat(blade): added bottomsheet component
|
|
15
|
+
|
|
16
|
+
> For react-native consumers make sure to [go through the installation guide](https://blade.razorpay.com/?path=/docs/guides-installation--page#-add-blade-to-your-application) on how to setup the peer dependencies
|
|
17
|
+
|
|
18
|
+
<details>
|
|
19
|
+
<summary>⚠️ Migration guide from prerelease version</summary>
|
|
20
|
+
|
|
21
|
+
Update the imports:
|
|
22
|
+
|
|
23
|
+
```diff
|
|
24
|
+
import {
|
|
25
|
+
- BottomSheet_PRE_RELEASE,
|
|
26
|
+
+ BottomSheet,
|
|
27
|
+
BottomSheetHeader,
|
|
28
|
+
BottomSheetBody,
|
|
29
|
+
BottomSheetFooter
|
|
30
|
+
} from "@razorpay/blade/components"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Changed Header Footer API:
|
|
34
|
+
|
|
35
|
+
**Header**
|
|
36
|
+
|
|
37
|
+
Prop changes:
|
|
38
|
+
|
|
39
|
+
- Removed prefix/suffix props and added new props
|
|
40
|
+
|
|
41
|
+
```diff
|
|
42
|
+
- title: string;
|
|
43
|
+
+ title?: string;
|
|
44
|
+
subtitle?: string;
|
|
45
|
+
- prefix?: React.ReactNode;
|
|
46
|
+
- suffix?: React.ReactNode;
|
|
47
|
+
+ leading?: React.ReactNode;
|
|
48
|
+
+ trailing?: React.ReactNode;
|
|
49
|
+
+ titleSuffix?: React.ReactNode;
|
|
50
|
+
+ showBackButton?: boolean;
|
|
51
|
+
+ onBackButtonClick?: () => void;
|
|
52
|
+
+ closeButtonRef: React.MutableRefObject<any>;
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Footer**
|
|
56
|
+
|
|
57
|
+
Footer component now accepts JSX content
|
|
58
|
+
|
|
59
|
+
Before:
|
|
60
|
+
|
|
61
|
+
```jsx
|
|
62
|
+
<BottomSheetFooter
|
|
63
|
+
trailing={{
|
|
64
|
+
primary: {
|
|
65
|
+
text: 'Hello',
|
|
66
|
+
onClick: () => {},
|
|
67
|
+
},
|
|
68
|
+
secondary: {
|
|
69
|
+
text: 'World',
|
|
70
|
+
onClick: () => {},
|
|
71
|
+
},
|
|
72
|
+
}}
|
|
73
|
+
/>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
After:
|
|
77
|
+
|
|
78
|
+
```jsx
|
|
79
|
+
<BottomSheetFooter>
|
|
80
|
+
<Button isFullWidth variant="secondary" onClick={() => {}}>
|
|
81
|
+
Hello
|
|
82
|
+
</Button>
|
|
83
|
+
<Button isFullWidth marginTop="spacing.5" onClick={() => {}}>
|
|
84
|
+
World
|
|
85
|
+
</Button>
|
|
86
|
+
</BottomSheetFooter>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
</details>
|
|
90
|
+
|
|
91
|
+
## 7.1.3
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- 73011827: fix(BottomSheet): ensure that the BottomSheet's lower snappoint will have a buffer
|
|
96
|
+
- f2130469: fix(blade): bottomsheet isOpen state, simplify isOpen logic & glue code
|
|
97
|
+
|
|
98
|
+
Previously if users did not changed the isOpen state to false inside `onDismiss` the bottomsheet's internal state will still remain "open", but the bottomsheet would visually be hidden and the backdrop will still remain, this fixes the bug so that internally we won't modify the bottomsheet's position instead we will just call the `onDismiss`. [Check the loom](https://www.loom.com/share/f24fcb51b245431fbf1a0aeb53cea287) video here for more info.
|
|
99
|
+
|
|
100
|
+
- 24d2a0b0: fix(cardFooter): alignment issue
|
|
101
|
+
|
|
102
|
+
## 7.1.2
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- 69ef5042: fix(blade): BottomSheet unable to scroll content
|
|
107
|
+
|
|
3
108
|
## 7.1.1
|
|
4
109
|
|
|
5
110
|
### Patch Changes
|
|
@@ -4,6 +4,7 @@ import React__default, { ReactChild, ReactElement, ReactNode, SyntheticEvent, Ke
|
|
|
4
4
|
import { AccessibilityRole, ViewStyle, View, GestureResponderEvent } from 'react-native';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
6
|
import { CSSObject } from 'styled-components';
|
|
7
|
+
import { ReactDOMAttributes } from '@use-gesture/react/dist/declarations/src/types';
|
|
7
8
|
|
|
8
9
|
type BorderRadius = Readonly<{
|
|
9
10
|
/** none: 0(px/rem/pt) */
|
|
@@ -1648,6 +1649,7 @@ declare type BladeProviderProps = {
|
|
|
1648
1649
|
colorScheme?: ColorSchemeNamesInput;
|
|
1649
1650
|
children: ReactNode;
|
|
1650
1651
|
};
|
|
1652
|
+
|
|
1651
1653
|
declare const BladeProvider: ({ themeTokens, colorScheme, children, }: BladeProviderProps) => ReactElement;
|
|
1652
1654
|
|
|
1653
1655
|
declare type UseColorScheme = {
|
|
@@ -2362,7 +2364,13 @@ declare type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
|
|
|
2362
2364
|
declare type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
|
|
2363
2365
|
declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, hitSlop, htmlTitle, ...styledProps }: LinkProps) => ReactElement;
|
|
2364
2366
|
|
|
2365
|
-
|
|
2367
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
type BladeElementRef = Platform.Select<{
|
|
2371
|
+
web: Pick<HTMLElement, 'focus' | 'scrollIntoView'> | Pick<View, 'focus'>;
|
|
2372
|
+
native: React.MutableRefObject<any>;
|
|
2373
|
+
}>;
|
|
2366
2374
|
|
|
2367
2375
|
declare type ButtonCommonProps = {
|
|
2368
2376
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
@@ -2591,10 +2599,6 @@ declare type IconButtonProps = {
|
|
|
2591
2599
|
*/
|
|
2592
2600
|
accessibilityLabel: string;
|
|
2593
2601
|
};
|
|
2594
|
-
/**
|
|
2595
|
-
* Component for making clickable icons with transparent background.
|
|
2596
|
-
* For other cases please use `Button` component with `icon` prop.
|
|
2597
|
-
*/
|
|
2598
2602
|
declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<BladeElementRef>>;
|
|
2599
2603
|
|
|
2600
2604
|
declare type CounterProps = {
|
|
@@ -3831,9 +3835,7 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
3831
3835
|
gap: SpacingValueType;
|
|
3832
3836
|
rowGap: SpacingValueType;
|
|
3833
3837
|
columnGap: SpacingValueType;
|
|
3834
|
-
flex: string | number;
|
|
3835
|
-
* Decides whether to show a loading spinner for the input field.
|
|
3836
|
-
*/
|
|
3838
|
+
flex: string | number;
|
|
3837
3839
|
} & PickIfExist<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
|
|
3838
3840
|
__brand__?: "platform-web" | undefined;
|
|
3839
3841
|
}>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
@@ -4637,40 +4639,68 @@ declare type AmountProps = {
|
|
|
4637
4639
|
} & TestID & StyledPropsBlade;
|
|
4638
4640
|
declare const Amount: ({ value, suffix, size, isAffixSubtle, intent, prefix, testID, currency, ...styledProps }: AmountProps) => ReactElement;
|
|
4639
4641
|
|
|
4640
|
-
declare type
|
|
4641
|
-
title
|
|
4642
|
+
declare type BaseHeaderProps = {
|
|
4643
|
+
title?: string;
|
|
4642
4644
|
subtitle?: string;
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4645
|
+
/**
|
|
4646
|
+
* Leading part of the header placed at the left most side of the header
|
|
4647
|
+
*/
|
|
4648
|
+
leading?: React__default.ReactNode;
|
|
4649
|
+
/**
|
|
4650
|
+
* Trailing part of the header placed at the right most side of the header
|
|
4651
|
+
*/
|
|
4652
|
+
trailing?: React__default.ReactNode;
|
|
4653
|
+
/**
|
|
4654
|
+
* Placed adjacent to the title text
|
|
4655
|
+
*/
|
|
4656
|
+
titleSuffix?: React__default.ReactNode;
|
|
4657
|
+
/**
|
|
4658
|
+
* @default true
|
|
4659
|
+
*/
|
|
4660
|
+
showDivider?: boolean;
|
|
4661
|
+
/**
|
|
4662
|
+
* @default false
|
|
4663
|
+
*/
|
|
4664
|
+
showBackButton?: boolean;
|
|
4665
|
+
/**
|
|
4666
|
+
* @default true
|
|
4667
|
+
*/
|
|
4668
|
+
showCloseButton?: boolean;
|
|
4669
|
+
onCloseButtonClick?: () => void;
|
|
4670
|
+
onBackButtonClick?: () => void;
|
|
4671
|
+
closeButtonRef: React__default.MutableRefObject<any>;
|
|
4672
|
+
} & Pick<ReactDOMAttributes, 'onClickCapture' | 'onKeyDown' | 'onKeyUp' | 'onLostPointerCapture' | 'onPointerCancel' | 'onPointerDown' | 'onPointerMove' | 'onPointerUp'>;
|
|
4647
4673
|
|
|
4648
|
-
declare
|
|
4674
|
+
declare type BaseFooterProps$1 = {
|
|
4649
4675
|
children: React__default.ReactNode;
|
|
4650
|
-
|
|
4676
|
+
showDivider?: boolean;
|
|
4677
|
+
};
|
|
4651
4678
|
|
|
4652
4679
|
declare type SnapPoints = [number, number, number];
|
|
4653
4680
|
|
|
4654
|
-
declare type
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
};
|
|
4681
|
+
declare type BottomSheetProps = {
|
|
4682
|
+
children: React.ReactNode;
|
|
4683
|
+
snapPoints?: SnapPoints;
|
|
4684
|
+
onDismiss?: () => void;
|
|
4685
|
+
isOpen?: boolean;
|
|
4686
|
+
initialFocusRef?: React.MutableRefObject<any>;
|
|
4661
4687
|
};
|
|
4662
|
-
declare type
|
|
4663
|
-
|
|
4688
|
+
declare type BottomSheetHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'showBackButton' | 'onBackButtonClick'>;
|
|
4689
|
+
declare type BottomSheetFooterProps = Pick<BaseFooterProps$1, 'children'>;
|
|
4690
|
+
|
|
4691
|
+
declare const BottomSheetHeader: ({ title, subtitle, leading, titleSuffix, trailing, showBackButton, onBackButtonClick, }: BottomSheetHeaderProps) => React__default.ReactElement;
|
|
4692
|
+
|
|
4693
|
+
type BaseFooterProps = {
|
|
4694
|
+
children: React__default.ReactNode;
|
|
4695
|
+
showDivider?: boolean;
|
|
4664
4696
|
};
|
|
4665
|
-
declare const BottomSheetFooter: ({ title, leading, trailing, }: BottomSheetFooterProps) => React__default.ReactElement;
|
|
4666
4697
|
|
|
4667
|
-
declare
|
|
4668
|
-
|
|
4669
|
-
|
|
4698
|
+
declare const BottomSheetFooter: ({ children }: BaseFooterProps) => React__default.ReactElement;
|
|
4699
|
+
|
|
4700
|
+
declare const BottomSheetBody: ({ children }: {
|
|
4670
4701
|
children: React__default.ReactNode;
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
};
|
|
4702
|
+
}) => React__default.ReactElement;
|
|
4703
|
+
|
|
4674
4704
|
declare const BottomSheet: ({ isOpen, onDismiss, children, initialFocusRef, snapPoints, }: BottomSheetProps) => React__default.ReactElement;
|
|
4675
4705
|
|
|
4676
|
-
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, BottomSheetBody, BottomSheetFooter, BottomSheetHeader,
|
|
4706
|
+
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, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, 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 };
|
|
@@ -4,6 +4,7 @@ import React__default, { ReactChild, ReactElement, ReactNode, SyntheticEvent, Ke
|
|
|
4
4
|
import * as react_native from 'react-native';
|
|
5
5
|
import { AccessibilityRole, ViewStyle, ImageSourcePropType, View, GestureResponderEvent } from 'react-native';
|
|
6
6
|
import { CSSObject } from 'styled-components';
|
|
7
|
+
import { ReactDOMAttributes } from '@use-gesture/react/dist/declarations/src/types';
|
|
7
8
|
|
|
8
9
|
type BorderRadius = Readonly<{
|
|
9
10
|
/** none: 0(px/rem/pt) */
|
|
@@ -1650,6 +1651,7 @@ declare type BladeProviderProps = {
|
|
|
1650
1651
|
colorScheme?: ColorSchemeNamesInput;
|
|
1651
1652
|
children: ReactNode;
|
|
1652
1653
|
};
|
|
1654
|
+
|
|
1653
1655
|
declare const BladeProvider: ({ themeTokens, colorScheme, children, }: BladeProviderProps) => ReactElement;
|
|
1654
1656
|
|
|
1655
1657
|
declare type UseColorScheme = {
|
|
@@ -2364,7 +2366,13 @@ declare type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
|
|
|
2364
2366
|
declare type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
|
|
2365
2367
|
declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, hitSlop, htmlTitle, ...styledProps }: LinkProps) => ReactElement;
|
|
2366
2368
|
|
|
2367
|
-
|
|
2369
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
type BladeElementRef = Platform.Select<{
|
|
2373
|
+
web: Pick<HTMLElement, 'focus' | 'scrollIntoView'> | Pick<View, 'focus'>;
|
|
2374
|
+
native: React.MutableRefObject<any>;
|
|
2375
|
+
}>;
|
|
2368
2376
|
|
|
2369
2377
|
declare type ButtonCommonProps = {
|
|
2370
2378
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
@@ -2593,10 +2601,6 @@ declare type IconButtonProps = {
|
|
|
2593
2601
|
*/
|
|
2594
2602
|
accessibilityLabel: string;
|
|
2595
2603
|
};
|
|
2596
|
-
/**
|
|
2597
|
-
* Component for making clickable icons with transparent background.
|
|
2598
|
-
* For other cases please use `Button` component with `icon` prop.
|
|
2599
|
-
*/
|
|
2600
2604
|
declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<BladeElementRef>>;
|
|
2601
2605
|
|
|
2602
2606
|
declare type CounterProps = {
|
|
@@ -3834,9 +3838,7 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
3834
3838
|
gap: SpacingValueType;
|
|
3835
3839
|
rowGap: SpacingValueType;
|
|
3836
3840
|
columnGap: SpacingValueType;
|
|
3837
|
-
flex: string | number;
|
|
3838
|
-
* Decides whether to show a loading spinner for the input field.
|
|
3839
|
-
*/
|
|
3841
|
+
flex: string | number;
|
|
3840
3842
|
} & PickIfExist<react_native.ViewStyle, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
|
|
3841
3843
|
__brand__?: "platform-native" | undefined;
|
|
3842
3844
|
}>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
@@ -4628,13 +4630,63 @@ declare type AmountProps = {
|
|
|
4628
4630
|
} & TestID & StyledPropsBlade;
|
|
4629
4631
|
declare const Amount: ({ value, suffix, size, isAffixSubtle, intent, prefix, testID, currency, ...styledProps }: AmountProps) => ReactElement;
|
|
4630
4632
|
|
|
4631
|
-
declare
|
|
4633
|
+
declare type BaseHeaderProps = {
|
|
4634
|
+
title?: string;
|
|
4635
|
+
subtitle?: string;
|
|
4636
|
+
/**
|
|
4637
|
+
* Leading part of the header placed at the left most side of the header
|
|
4638
|
+
*/
|
|
4639
|
+
leading?: React__default.ReactNode;
|
|
4640
|
+
/**
|
|
4641
|
+
* Trailing part of the header placed at the right most side of the header
|
|
4642
|
+
*/
|
|
4643
|
+
trailing?: React__default.ReactNode;
|
|
4644
|
+
/**
|
|
4645
|
+
* Placed adjacent to the title text
|
|
4646
|
+
*/
|
|
4647
|
+
titleSuffix?: React__default.ReactNode;
|
|
4648
|
+
/**
|
|
4649
|
+
* @default true
|
|
4650
|
+
*/
|
|
4651
|
+
showDivider?: boolean;
|
|
4652
|
+
/**
|
|
4653
|
+
* @default false
|
|
4654
|
+
*/
|
|
4655
|
+
showBackButton?: boolean;
|
|
4656
|
+
/**
|
|
4657
|
+
* @default true
|
|
4658
|
+
*/
|
|
4659
|
+
showCloseButton?: boolean;
|
|
4660
|
+
onCloseButtonClick?: () => void;
|
|
4661
|
+
onBackButtonClick?: () => void;
|
|
4662
|
+
closeButtonRef: React__default.MutableRefObject<any>;
|
|
4663
|
+
} & Pick<ReactDOMAttributes, 'onClickCapture' | 'onKeyDown' | 'onKeyUp' | 'onLostPointerCapture' | 'onPointerCancel' | 'onPointerDown' | 'onPointerMove' | 'onPointerUp'>;
|
|
4664
|
+
|
|
4665
|
+
declare type BaseFooterProps = {
|
|
4666
|
+
children: React__default.ReactNode;
|
|
4667
|
+
showDivider?: boolean;
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
declare type SnapPoints = [number, number, number];
|
|
4671
|
+
|
|
4672
|
+
declare type BottomSheetProps = {
|
|
4673
|
+
children: React.ReactNode;
|
|
4674
|
+
snapPoints?: SnapPoints;
|
|
4675
|
+
onDismiss?: () => void;
|
|
4676
|
+
isOpen?: boolean;
|
|
4677
|
+
initialFocusRef?: React.MutableRefObject<any>;
|
|
4678
|
+
};
|
|
4679
|
+
declare type BottomSheetHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'showBackButton' | 'onBackButtonClick'>;
|
|
4680
|
+
declare type BottomSheetFooterProps = Pick<BaseFooterProps, 'children'>;
|
|
4681
|
+
|
|
4682
|
+
declare const BottomSheetHeader: ({ title, subtitle, leading, trailing, titleSuffix, showBackButton, onBackButtonClick, }: BottomSheetHeaderProps) => React__default.ReactElement;
|
|
4632
4683
|
|
|
4633
|
-
declare const
|
|
4684
|
+
declare const BottomSheetBody: ({ children }: {
|
|
4685
|
+
children: React__default.ReactNode;
|
|
4686
|
+
}) => React__default.ReactElement;
|
|
4634
4687
|
|
|
4635
|
-
declare const
|
|
4688
|
+
declare const BottomSheetFooter: ({ children }: BottomSheetFooterProps) => React__default.ReactElement;
|
|
4636
4689
|
|
|
4637
|
-
declare
|
|
4638
|
-
declare const BottomSheet: () => React.ReactElement;
|
|
4690
|
+
declare const BottomSheet: ({ children, snapPoints, isOpen, onDismiss, initialFocusRef, }: BottomSheetProps) => React__default.ReactElement;
|
|
4639
4691
|
|
|
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, BottomSheetBody, BottomSheetFooter, BottomSheetHeader,
|
|
4692
|
+
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, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, 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 };
|