@razorpay/blade 11.18.2 → 11.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/native/components/Button/BaseButton/BaseButton.js +1 -1
- package/build/lib/native/components/Button/BaseButton/BaseButton.js.map +1 -1
- package/build/lib/native/components/Button/BaseButton/buttonTokens.js +1 -1
- package/build/lib/native/components/Button/BaseButton/buttonTokens.js.map +1 -1
- package/build/lib/native/components/DatePicker/DatePicker.native.js +7 -0
- package/build/lib/native/components/DatePicker/DatePicker.native.js.map +1 -0
- package/build/lib/native/components/index.js +1 -0
- package/build/lib/native/components/index.js.map +1 -1
- package/build/lib/native/tokens/global/size.js +1 -1
- package/build/lib/native/tokens/global/size.js.map +1 -1
- package/build/lib/native/utils/metaAttribute/metaConstants.js +1 -1
- package/build/lib/native/utils/metaAttribute/metaConstants.js.map +1 -1
- package/build/lib/web/development/components/BottomSheet/BottomSheetBody.web.js +6 -4
- package/build/lib/web/development/components/BottomSheet/BottomSheetBody.web.js.map +1 -1
- package/build/lib/web/development/components/Button/BaseButton/BaseButton.js +1 -1
- package/build/lib/web/development/components/Button/BaseButton/BaseButton.js.map +1 -1
- package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js +2 -2
- package/build/lib/web/development/components/Button/BaseButton/buttonTokens.js.map +1 -1
- package/build/lib/web/development/components/DatePicker/Calendar.web.js +182 -0
- package/build/lib/web/development/components/DatePicker/Calendar.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js +46 -0
- package/build/lib/web/development/components/DatePicker/CalendarFooter.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/CalendarHeader.web.js +162 -0
- package/build/lib/web/development/components/DatePicker/CalendarHeader.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/CalendarStyles.web.js +310 -0
- package/build/lib/web/development/components/DatePicker/CalendarStyles.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/DateInput.web.js +185 -0
- package/build/lib/web/development/components/DatePicker/DateInput.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/DatePicker.web.js +364 -0
- package/build/lib/web/development/components/DatePicker/DatePicker.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js +86 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/QuickSelectionItem.web.js +43 -0
- package/build/lib/web/development/components/DatePicker/QuickSelection/QuickSelectionItem.web.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/constants.js +22 -0
- package/build/lib/web/development/components/DatePicker/constants.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/index.js +2 -0
- package/build/lib/web/development/components/DatePicker/index.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/useControlledDates.js +75 -0
- package/build/lib/web/development/components/DatePicker/useControlledDates.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/useDatesState.js +149 -0
- package/build/lib/web/development/components/DatePicker/useDatesState.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/usePopup.js +90 -0
- package/build/lib/web/development/components/DatePicker/usePopup.js.map +1 -0
- package/build/lib/web/development/components/DatePicker/utils.js +39 -0
- package/build/lib/web/development/components/DatePicker/utils.js.map +1 -0
- package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +3 -2
- package/build/lib/web/development/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
- package/build/lib/web/development/components/index.js +2 -0
- package/build/lib/web/development/components/index.js.map +1 -1
- package/build/lib/web/development/tokens/global/size.js +2 -0
- package/build/lib/web/development/tokens/global/size.js.map +1 -1
- package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js +6 -3
- package/build/lib/web/development/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
- package/build/lib/web/development/utils/metaAttribute/metaConstants.js +2 -0
- package/build/lib/web/development/utils/metaAttribute/metaConstants.js.map +1 -1
- package/build/lib/web/production/components/BottomSheet/BottomSheetBody.web.js +6 -4
- package/build/lib/web/production/components/BottomSheet/BottomSheetBody.web.js.map +1 -1
- package/build/lib/web/production/components/Button/BaseButton/BaseButton.js +1 -1
- package/build/lib/web/production/components/Button/BaseButton/BaseButton.js.map +1 -1
- package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js +2 -2
- package/build/lib/web/production/components/Button/BaseButton/buttonTokens.js.map +1 -1
- package/build/lib/web/production/components/DatePicker/Calendar.web.js +182 -0
- package/build/lib/web/production/components/DatePicker/Calendar.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js +46 -0
- package/build/lib/web/production/components/DatePicker/CalendarFooter.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/CalendarHeader.web.js +162 -0
- package/build/lib/web/production/components/DatePicker/CalendarHeader.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/CalendarStyles.web.js +310 -0
- package/build/lib/web/production/components/DatePicker/CalendarStyles.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/DateInput.web.js +185 -0
- package/build/lib/web/production/components/DatePicker/DateInput.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/DatePicker.web.js +364 -0
- package/build/lib/web/production/components/DatePicker/DatePicker.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js +86 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/PresetSideBar.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/QuickSelectionItem.web.js +43 -0
- package/build/lib/web/production/components/DatePicker/QuickSelection/QuickSelectionItem.web.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/constants.js +22 -0
- package/build/lib/web/production/components/DatePicker/constants.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/index.js +2 -0
- package/build/lib/web/production/components/DatePicker/index.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/useControlledDates.js +75 -0
- package/build/lib/web/production/components/DatePicker/useControlledDates.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/useDatesState.js +149 -0
- package/build/lib/web/production/components/DatePicker/useDatesState.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/usePopup.js +90 -0
- package/build/lib/web/production/components/DatePicker/usePopup.js.map +1 -0
- package/build/lib/web/production/components/DatePicker/utils.js +39 -0
- package/build/lib/web/production/components/DatePicker/utils.js.map +1 -0
- package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js +3 -2
- package/build/lib/web/production/components/Input/PhoneNumberInput/PhoneNumberInput.web.js.map +1 -1
- package/build/lib/web/production/components/index.js +2 -0
- package/build/lib/web/production/components/index.js.map +1 -1
- package/build/lib/web/production/tokens/global/size.js +2 -0
- package/build/lib/web/production/tokens/global/size.js.map +1 -1
- package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js +6 -3
- package/build/lib/web/production/utils/getFocusRingStyles/getFocusRingStyles.web.js.map +1 -1
- package/build/lib/web/production/utils/metaAttribute/metaConstants.js +2 -0
- package/build/lib/web/production/utils/metaAttribute/metaConstants.js.map +1 -1
- package/build/types/components/index.d.ts +1242 -527
- package/build/types/components/index.native.d.ts +550 -406
- package/build/types/tokens/index.d.ts +2 -0
- package/build/types/tokens/index.native.d.ts +2 -0
- package/package.json +7 -3
|
@@ -6,6 +6,8 @@ import { CSSObject } from 'styled-components';
|
|
|
6
6
|
import { ReactDOMAttributes } from '@use-gesture/react/dist/declarations/src/types';
|
|
7
7
|
import { CurrencyCodeType } from '@razorpay/i18nify-js/currency';
|
|
8
8
|
import * as react_native_types from 'react-native/types';
|
|
9
|
+
import { DatePickerProps as DatePickerProps$1, DayOfWeek, DatesRangeValue } from '@mantine/dates';
|
|
10
|
+
export { DateValue, DatesRangeValue } from '@mantine/dates';
|
|
9
11
|
import { Placement, UseFloatingOptions } from '@floating-ui/react';
|
|
10
12
|
import { CountryCodeType } from '@razorpay/i18nify-js';
|
|
11
13
|
import { Toast } from 'react-hot-toast';
|
|
@@ -3471,6 +3473,7 @@ type BottomSheetBodyProps = {
|
|
|
3471
3473
|
* - Docs: https://blade.razorpay.com/?path=/docs/tokens-spacing--page
|
|
3472
3474
|
*/
|
|
3473
3475
|
padding?: Extract<SpacingValueType, 'spacing.0' | 'spacing.5'>;
|
|
3476
|
+
overflow?: BaseBoxProps['overflow'];
|
|
3474
3477
|
};
|
|
3475
3478
|
|
|
3476
3479
|
declare const BottomSheetHeader: ({ title, subtitle, leading, trailing, titleSuffix, showBackButton, onBackButtonClick, children, }: BottomSheetHeaderProps) => React__default.ReactElement;
|
|
@@ -5464,254 +5467,7 @@ declare const DrawerBody: (_props: {
|
|
|
5464
5467
|
children: React__default.ReactNode;
|
|
5465
5468
|
}) => React__default.ReactElement;
|
|
5466
5469
|
|
|
5467
|
-
|
|
5468
|
-
/**
|
|
5469
|
-
* Control open / close state of the Dropdown component
|
|
5470
|
-
*
|
|
5471
|
-
* This can be used to close the dropdown when button in the footer of dropdown is clicked
|
|
5472
|
-
*/
|
|
5473
|
-
isOpen?: boolean;
|
|
5474
|
-
/**
|
|
5475
|
-
* Callback when open state of the dropdown changes
|
|
5476
|
-
*/
|
|
5477
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
5478
|
-
selectionType?: 'single' | 'multiple';
|
|
5479
|
-
children: React__default.ReactNode[];
|
|
5480
|
-
} & TestID & StyledPropsBlade;
|
|
5481
|
-
type DropdownOverlayProps = {
|
|
5482
|
-
children: React__default.ReactElement[] | React__default.ReactElement;
|
|
5483
|
-
/**
|
|
5484
|
-
* Sets the z-index of the DropdownOverlay
|
|
5485
|
-
*
|
|
5486
|
-
* @default 1001
|
|
5487
|
-
*/
|
|
5488
|
-
zIndex?: number;
|
|
5489
|
-
width?: BoxProps['width'];
|
|
5490
|
-
/**
|
|
5491
|
-
* Reference to the element which triggers the DropdownOverlay
|
|
5492
|
-
*
|
|
5493
|
-
* This is used to position the DropdownOverlay relative to a specific element,
|
|
5494
|
-
* for example in PhoneNumberInput the DropdownOverlay is positioned relative to the input element
|
|
5495
|
-
*/
|
|
5496
|
-
referenceRef?: React__default.MutableRefObject<ContainerElementType | null>;
|
|
5497
|
-
/**
|
|
5498
|
-
* Sets the placement of the DropdownOverlay
|
|
5499
|
-
*
|
|
5500
|
-
* @default 'bottom-start'
|
|
5501
|
-
*/
|
|
5502
|
-
defaultPlacement?: Placement;
|
|
5503
|
-
} & TestID;
|
|
5504
|
-
|
|
5505
|
-
declare const Dropdown: ({ children, isOpen: isOpenControlled, onOpenChange, selectionType, testID, ...styledProps }: DropdownProps) => React__default.ReactElement;
|
|
5506
|
-
|
|
5507
|
-
declare const DropdownOverlay: ({ children, testID }: DropdownOverlayProps) => React__default.ReactElement;
|
|
5508
|
-
|
|
5509
|
-
type DropdownButtonProps = ButtonProps & {
|
|
5510
|
-
onBlur?: BaseButtonProps['onBlur'];
|
|
5511
|
-
onKeyDown?: BaseButtonProps['onKeyDown'];
|
|
5512
|
-
};
|
|
5513
|
-
declare const DropdownButton: ({ children, icon, iconPosition, isDisabled, isFullWidth, isLoading, onClick, onBlur, onKeyDown, size, type, variant, accessibilityLabel, testID, ...styledProps }: DropdownButtonProps) => React__default.ReactElement;
|
|
5514
|
-
|
|
5515
|
-
type DropdownLinkProps = LinkButtonVariantProps & {
|
|
5516
|
-
onBlur?: BaseLinkProps['onBlur'];
|
|
5517
|
-
onKeyDown?: BaseLinkProps['onKeyDown'];
|
|
5518
|
-
};
|
|
5519
|
-
declare const DropdownLink: ({ children, icon, iconPosition, onClick, onBlur, onKeyDown, isDisabled, href, target, rel, accessibilityLabel, size, testID, hitSlop, htmlTitle, ...styledProps }: DropdownLinkProps) => React__default.ReactElement;
|
|
5520
|
-
|
|
5521
|
-
type DropdownHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'testID'>;
|
|
5522
|
-
declare const DropdownHeader: ({ title, subtitle, leading, titleSuffix, trailing, testID, }: DropdownHeaderProps) => React__default.ReactElement;
|
|
5523
|
-
type DropdownFooter = Pick<BaseFooterProps, 'children' | 'testID'>;
|
|
5524
|
-
declare const DropdownFooter: ({ children, testID }: DropdownFooter) => React__default.ReactElement;
|
|
5525
|
-
|
|
5526
|
-
interface BladeFile extends File {
|
|
5527
|
-
/**
|
|
5528
|
-
* The unique identifier of the file.
|
|
5529
|
-
*/
|
|
5530
|
-
id?: string;
|
|
5531
|
-
/**
|
|
5532
|
-
* The file's upload status.
|
|
5533
|
-
*/
|
|
5534
|
-
status?: 'uploading' | 'success' | 'error';
|
|
5535
|
-
/**
|
|
5536
|
-
* The percentage of file upload completion.
|
|
5537
|
-
*/
|
|
5538
|
-
uploadPercent?: number;
|
|
5539
|
-
/**
|
|
5540
|
-
* Text indicating an error state
|
|
5541
|
-
*/
|
|
5542
|
-
errorText?: string;
|
|
5543
|
-
}
|
|
5544
|
-
type BladeFileList = BladeFile[];
|
|
5545
|
-
type FileUploadCommonProps = {
|
|
5546
|
-
/**
|
|
5547
|
-
* Position of the label relative to the file upload area. Desktop only prop. Default value on mobile will be 'top'
|
|
5548
|
-
*
|
|
5549
|
-
* @default 'top'
|
|
5550
|
-
*/
|
|
5551
|
-
labelPosition?: 'top' | 'left';
|
|
5552
|
-
/**
|
|
5553
|
-
* Defines the upload behavior of the FileUpload component
|
|
5554
|
-
*/
|
|
5555
|
-
uploadType?: 'single' | 'multiple';
|
|
5556
|
-
/**
|
|
5557
|
-
* File types that can be accepted. See [input's accept attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept)
|
|
5558
|
-
*
|
|
5559
|
-
* Usage: accept=".jpg, .png, .pdf", accept="image/*", accept="image/png, image/jpeg, application/pdf"
|
|
5560
|
-
*/
|
|
5561
|
-
accept?: string;
|
|
5562
|
-
/**
|
|
5563
|
-
* Disables or enables the FileUpload component
|
|
5564
|
-
*/
|
|
5565
|
-
isDisabled?: boolean;
|
|
5566
|
-
/**
|
|
5567
|
-
* Sets the required state of the file input
|
|
5568
|
-
*
|
|
5569
|
-
* @default false
|
|
5570
|
-
*/
|
|
5571
|
-
isRequired?: boolean;
|
|
5572
|
-
/**
|
|
5573
|
-
* Renders a necessity indicator after the label. If `isRequired` is `true`, it defaults to `'required'`
|
|
5574
|
-
*/
|
|
5575
|
-
necessityIndicator?: 'required' | 'optional' | 'none';
|
|
5576
|
-
/**
|
|
5577
|
-
* The name of the file upload input, [useful in form submissions](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
|
|
5578
|
-
*/
|
|
5579
|
-
name?: string;
|
|
5580
|
-
/**
|
|
5581
|
-
* List of files that have been selected/uploaded, useful when the component is controlled
|
|
5582
|
-
*/
|
|
5583
|
-
fileList?: BladeFileList;
|
|
5584
|
-
/**
|
|
5585
|
-
* Limit the number of files that can be uploaded
|
|
5586
|
-
*/
|
|
5587
|
-
maxCount?: number;
|
|
5588
|
-
/**
|
|
5589
|
-
* Limit the size of the uploaded files (in bytes)
|
|
5590
|
-
*/
|
|
5591
|
-
maxSize?: number;
|
|
5592
|
-
/**
|
|
5593
|
-
* Callback function triggered when files are selected
|
|
5594
|
-
*/
|
|
5595
|
-
onChange?: ({ name, fileList }: {
|
|
5596
|
-
name?: string;
|
|
5597
|
-
fileList: BladeFileList;
|
|
5598
|
-
}) => void;
|
|
5599
|
-
/**
|
|
5600
|
-
* Callback function triggered when the preview icon is clicked
|
|
5601
|
-
*/
|
|
5602
|
-
onPreview?: ({ file }: {
|
|
5603
|
-
file: File;
|
|
5604
|
-
}) => void;
|
|
5605
|
-
/**
|
|
5606
|
-
* Callback function triggered when a file is removed
|
|
5607
|
-
*/
|
|
5608
|
-
onRemove?: ({ file }: {
|
|
5609
|
-
file: File;
|
|
5610
|
-
}) => void;
|
|
5611
|
-
/**
|
|
5612
|
-
* Callback function triggered when a file upload is dismissed
|
|
5613
|
-
*/
|
|
5614
|
-
onDismiss?: ({ file }: {
|
|
5615
|
-
file: File;
|
|
5616
|
-
}) => void;
|
|
5617
|
-
/**
|
|
5618
|
-
* Callback function executed when files are dropped into the upload area
|
|
5619
|
-
*/
|
|
5620
|
-
onDrop?: ({ name, fileList }: {
|
|
5621
|
-
name?: string;
|
|
5622
|
-
fileList: BladeFileList;
|
|
5623
|
-
}) => void;
|
|
5624
|
-
/**
|
|
5625
|
-
* State indicating whether there is an error in the FileUpload component
|
|
5626
|
-
*/
|
|
5627
|
-
validationState?: 'none' | 'error';
|
|
5628
|
-
/**
|
|
5629
|
-
* Additional text providing assistance or guidance
|
|
5630
|
-
*/
|
|
5631
|
-
helpText?: string;
|
|
5632
|
-
/**
|
|
5633
|
-
* Text indicating an error state
|
|
5634
|
-
*/
|
|
5635
|
-
errorText?: string;
|
|
5636
|
-
/**
|
|
5637
|
-
* Size of the FileUpload component
|
|
5638
|
-
*
|
|
5639
|
-
* @default 'medium'
|
|
5640
|
-
*/
|
|
5641
|
-
size?: 'medium' | 'large';
|
|
5642
|
-
/**
|
|
5643
|
-
* Test ID for automation
|
|
5644
|
-
*/
|
|
5645
|
-
testID?: string;
|
|
5646
|
-
};
|
|
5647
|
-
type FileUploadPropsWithA11yLabel = {
|
|
5648
|
-
/**
|
|
5649
|
-
* Label to be shown for the input field
|
|
5650
|
-
*/
|
|
5651
|
-
label?: undefined;
|
|
5652
|
-
/**
|
|
5653
|
-
* Accessibility label for the input
|
|
5654
|
-
*/
|
|
5655
|
-
accessibilityLabel: string;
|
|
5656
|
-
};
|
|
5657
|
-
type FileUploadPropsWithLabel = {
|
|
5658
|
-
/**
|
|
5659
|
-
* Label to be shown for the input field
|
|
5660
|
-
*/
|
|
5661
|
-
label: string;
|
|
5662
|
-
/**
|
|
5663
|
-
* Accessibility label for the input
|
|
5664
|
-
*/
|
|
5665
|
-
accessibilityLabel?: string;
|
|
5666
|
-
};
|
|
5667
|
-
type FileUploadProps = (FileUploadPropsWithA11yLabel | FileUploadPropsWithLabel) & FileUploadCommonProps;
|
|
5668
|
-
|
|
5669
|
-
declare const FileUpload: (_props: FileUploadProps) => React.ReactElement;
|
|
5670
|
-
|
|
5671
|
-
type IndicatorCommonProps = {
|
|
5672
|
-
/**
|
|
5673
|
-
* Sets the color tone
|
|
5674
|
-
*
|
|
5675
|
-
* @default neutral
|
|
5676
|
-
*/
|
|
5677
|
-
color?: FeedbackColors | 'primary';
|
|
5678
|
-
/**
|
|
5679
|
-
* Sets the emphasis of the indicator
|
|
5680
|
-
*
|
|
5681
|
-
* If set to intense it will show a background circle
|
|
5682
|
-
*
|
|
5683
|
-
* @default subtle
|
|
5684
|
-
*/
|
|
5685
|
-
emphasis?: 'subtle' | 'intense';
|
|
5686
|
-
/**
|
|
5687
|
-
* Size of the indicator
|
|
5688
|
-
*
|
|
5689
|
-
* @default medium
|
|
5690
|
-
*/
|
|
5691
|
-
size?: 'small' | 'medium' | 'large';
|
|
5692
|
-
} & TestID & StyledPropsBlade;
|
|
5693
|
-
type IndicatorWithoutA11yLabel = {
|
|
5694
|
-
/**
|
|
5695
|
-
* A text label to show alongside the indicator dot
|
|
5696
|
-
*/
|
|
5697
|
-
children: StringChildrenType;
|
|
5698
|
-
/**
|
|
5699
|
-
* a11y label for screen readers
|
|
5700
|
-
*/
|
|
5701
|
-
accessibilityLabel?: string;
|
|
5702
|
-
};
|
|
5703
|
-
type IndicatorWithA11yLabel = {
|
|
5704
|
-
/**
|
|
5705
|
-
* a11y label for screen readers
|
|
5706
|
-
*/
|
|
5707
|
-
accessibilityLabel: string;
|
|
5708
|
-
/**
|
|
5709
|
-
* A text label to show alongside the indicator dot
|
|
5710
|
-
*/
|
|
5711
|
-
children?: StringChildrenType;
|
|
5712
|
-
};
|
|
5713
|
-
type IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);
|
|
5714
|
-
declare const Indicator: ({ accessibilityLabel, children, size, color, emphasis, testID, ...styledProps }: IndicatorProps) => ReactElement;
|
|
5470
|
+
declare const DatePicker: (_props: any) => React.ReactElement;
|
|
5715
5471
|
|
|
5716
5472
|
type FormInputLabelProps = {
|
|
5717
5473
|
/**
|
|
@@ -5926,129 +5682,535 @@ type BaseInputCommonProps = FormInputLabelProps & FormInputValidationProps & {
|
|
|
5926
5682
|
*/
|
|
5927
5683
|
labelId?: string;
|
|
5928
5684
|
/**
|
|
5929
|
-
* Can be used in select to set the id of the active descendant from the listbox
|
|
5685
|
+
* Can be used in select to set the id of the active descendant from the listbox
|
|
5686
|
+
*/
|
|
5687
|
+
activeDescendant?: string;
|
|
5688
|
+
/**
|
|
5689
|
+
* Hides the label text
|
|
5690
|
+
*/
|
|
5691
|
+
hideLabelText?: boolean;
|
|
5692
|
+
/**
|
|
5693
|
+
* Hides the form hint text
|
|
5694
|
+
*/
|
|
5695
|
+
hideFormHint?: boolean;
|
|
5696
|
+
/**
|
|
5697
|
+
* componentName prop sets the data-blade-component attribute name
|
|
5698
|
+
* for internal metric collection purposes
|
|
5699
|
+
*/
|
|
5700
|
+
componentName?: string;
|
|
5701
|
+
/**
|
|
5702
|
+
* whether the input has a popup
|
|
5703
|
+
*/
|
|
5704
|
+
hasPopup?: AriaAttributes['hasPopup'];
|
|
5705
|
+
/**
|
|
5706
|
+
* id of the popup
|
|
5707
|
+
*/
|
|
5708
|
+
popupId?: string;
|
|
5709
|
+
/**
|
|
5710
|
+
* true if popup is in expanded state
|
|
5711
|
+
*/
|
|
5712
|
+
isPopupExpanded?: boolean;
|
|
5713
|
+
setInputWrapperRef?: (node: ContainerElementType) => void;
|
|
5714
|
+
/**
|
|
5715
|
+
* sets the autocapitalize behavior for the input
|
|
5716
|
+
*/
|
|
5717
|
+
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
5718
|
+
/**
|
|
5719
|
+
* constraints the height of input to given number rows
|
|
5720
|
+
*
|
|
5721
|
+
* When set to expandable, input takes 1 row in the begining and expands to take 3 when active
|
|
5722
|
+
*
|
|
5723
|
+
* @default 'single'
|
|
5724
|
+
*/
|
|
5725
|
+
maxTagRows?: 'single' | 'multiple' | 'expandable';
|
|
5726
|
+
/**
|
|
5727
|
+
* A slot for adding tags to input
|
|
5728
|
+
*/
|
|
5729
|
+
tags?: React__default.ReactElement[] | null;
|
|
5730
|
+
/**
|
|
5731
|
+
* Disables stripping of tags and shows all tags
|
|
5732
|
+
*/
|
|
5733
|
+
showAllTags?: boolean;
|
|
5734
|
+
/**
|
|
5735
|
+
* State variable of active tag index
|
|
5736
|
+
*/
|
|
5737
|
+
activeTagIndex?: number;
|
|
5738
|
+
/**
|
|
5739
|
+
* Is this input SelectInput or AutoComplete
|
|
5740
|
+
*/
|
|
5741
|
+
isDropdownTrigger?: boolean;
|
|
5742
|
+
/**
|
|
5743
|
+
* Is the label expected to be rendered inside input?
|
|
5744
|
+
* Used in AutoComplete and Select when label can't exist outside
|
|
5745
|
+
*
|
|
5746
|
+
*/
|
|
5747
|
+
isLabelInsideInput?: boolean;
|
|
5748
|
+
/**
|
|
5749
|
+
* State setter for active tag index
|
|
5750
|
+
*/
|
|
5751
|
+
setActiveTagIndex?: (activeTagIndex: number) => void;
|
|
5752
|
+
/**
|
|
5753
|
+
* Sets the size of the input field
|
|
5754
|
+
* @default medium
|
|
5755
|
+
*/
|
|
5756
|
+
size?: 'medium' | 'large';
|
|
5757
|
+
/**
|
|
5758
|
+
* Link button to be rendered at the end of the input field.
|
|
5759
|
+
* **Note:** `size` of the Link will be set to the same size as the input field, `isDisabled` will follow Input's `isDisabled`, & `variant` will be set to `button`.
|
|
5760
|
+
* Example:
|
|
5761
|
+
* ```tsx
|
|
5762
|
+
* trailingButton={<Link onClick={handleClick}>Apply</Link>}
|
|
5763
|
+
* ```
|
|
5764
|
+
*/
|
|
5765
|
+
trailingButton?: React__default.ReactElement<LinkProps>;
|
|
5766
|
+
/**
|
|
5767
|
+
* Whether to use Text or Heading component for Input text
|
|
5768
|
+
* @default text
|
|
5769
|
+
**/
|
|
5770
|
+
valueComponentType?: 'text' | 'heading';
|
|
5771
|
+
} & TestID & Platform.Select<{
|
|
5772
|
+
native: {
|
|
5773
|
+
/**
|
|
5774
|
+
* The callback function to be invoked when the value of the input field is submitted.
|
|
5775
|
+
*/
|
|
5776
|
+
onSubmit?: FormInputOnEvent;
|
|
5777
|
+
/**
|
|
5778
|
+
* determines what autoComplete suggestion type to show
|
|
5779
|
+
*
|
|
5780
|
+
* Internally it'll render platform specific attributes:
|
|
5781
|
+
*
|
|
5782
|
+
* - web: `autocomplete`
|
|
5783
|
+
* - iOS: `textContentType`
|
|
5784
|
+
* - android: `autoComplete`
|
|
5785
|
+
*
|
|
5786
|
+
*/
|
|
5787
|
+
autoCompleteSuggestionType?: CommonAutoCompleteSuggestionTypes;
|
|
5788
|
+
};
|
|
5789
|
+
web: {
|
|
5790
|
+
/**
|
|
5791
|
+
* This is a react-native only prop and has no effect on web.
|
|
5792
|
+
*/
|
|
5793
|
+
onSubmit?: undefined;
|
|
5794
|
+
/**
|
|
5795
|
+
* determines what autoComplete suggestion type to show
|
|
5796
|
+
*
|
|
5797
|
+
* Internally it'll render platform specific attributes:
|
|
5798
|
+
*
|
|
5799
|
+
* - web: `autocomplete`
|
|
5800
|
+
* - iOS: `textContentType`
|
|
5801
|
+
* - android: `autoComplete`
|
|
5802
|
+
*
|
|
5803
|
+
*/
|
|
5804
|
+
autoCompleteSuggestionType?: WebAutoCompleteSuggestionType;
|
|
5805
|
+
};
|
|
5806
|
+
}> & StyledPropsBlade;
|
|
5807
|
+
type BaseInputPropsWithA11yLabel = {
|
|
5808
|
+
/**
|
|
5809
|
+
* Label to be shown for the input field
|
|
5810
|
+
*/
|
|
5811
|
+
label?: undefined;
|
|
5812
|
+
/**
|
|
5813
|
+
* Accessibility label for the input
|
|
5814
|
+
*/
|
|
5815
|
+
accessibilityLabel: string;
|
|
5816
|
+
};
|
|
5817
|
+
type BaseInputPropsWithLabel = {
|
|
5818
|
+
/**
|
|
5819
|
+
* Label to be shown for the input field
|
|
5820
|
+
*/
|
|
5821
|
+
label: string;
|
|
5822
|
+
/**
|
|
5823
|
+
* Accessibility label for the input
|
|
5824
|
+
*/
|
|
5825
|
+
accessibilityLabel?: string;
|
|
5826
|
+
};
|
|
5827
|
+
type BaseInputProps = (BaseInputPropsWithA11yLabel | BaseInputPropsWithLabel) & BaseInputCommonProps;
|
|
5828
|
+
|
|
5829
|
+
type TaggedInputProps = {
|
|
5830
|
+
isTaggedInput?: boolean;
|
|
5831
|
+
tags?: string[];
|
|
5832
|
+
onTagChange?: ({ tags }: {
|
|
5833
|
+
tags: string[];
|
|
5834
|
+
}) => void;
|
|
5835
|
+
};
|
|
5836
|
+
|
|
5837
|
+
type Type = Exclude<BaseInputProps['type'], 'password'>;
|
|
5838
|
+
type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | 'leadingIcon' | 'trailingButton' | 'trailingIcon'> & {
|
|
5839
|
+
/**
|
|
5840
|
+
* Decides whether to render a clear icon button
|
|
5841
|
+
*/
|
|
5842
|
+
showClearButton?: boolean;
|
|
5843
|
+
/**
|
|
5844
|
+
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
5845
|
+
*/
|
|
5846
|
+
onClearButtonClick?: () => void;
|
|
5847
|
+
/**
|
|
5848
|
+
* Decides whether to show a loading spinner for the input field.
|
|
5849
|
+
*/
|
|
5850
|
+
isLoading?: boolean;
|
|
5851
|
+
/**
|
|
5852
|
+
* Icon that will be rendered at the beginning of the input field
|
|
5853
|
+
* @deprecated Use `leadingIcon` instead. This prop will be removed in the next major version.
|
|
5854
|
+
*/
|
|
5855
|
+
icon?: IconComponent;
|
|
5856
|
+
/**
|
|
5857
|
+
* Type of Input Field to be rendered. Use `PasswordInput` for type `password`
|
|
5858
|
+
*
|
|
5859
|
+
*
|
|
5860
|
+
* **Note on number type**
|
|
5861
|
+
*
|
|
5862
|
+
* `type="number"` internally uses `inputMode="numeric"` instead of HTML's `type="number"` which also allows text characters.
|
|
5863
|
+
* If you have a usecase where you only want to support number input, you can handle it on validations end.
|
|
5864
|
+
*
|
|
5865
|
+
* 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
|
|
5866
|
+
*
|
|
5867
|
+
* @default text
|
|
5868
|
+
*/
|
|
5869
|
+
type?: Type;
|
|
5870
|
+
} & TaggedInputProps & StyledPropsBlade;
|
|
5871
|
+
type TextInputPropsWithA11yLabel = {
|
|
5872
|
+
/**
|
|
5873
|
+
* Label to be shown for the input field
|
|
5874
|
+
*/
|
|
5875
|
+
label?: undefined;
|
|
5876
|
+
/**
|
|
5877
|
+
* Accessibility label for the input
|
|
5878
|
+
*/
|
|
5879
|
+
accessibilityLabel: string;
|
|
5880
|
+
};
|
|
5881
|
+
type TextInputPropsWithLabel = {
|
|
5882
|
+
/**
|
|
5883
|
+
* Label to be shown for the input field
|
|
5884
|
+
*/
|
|
5885
|
+
label: string;
|
|
5886
|
+
/**
|
|
5887
|
+
* Accessibility label for the input
|
|
5888
|
+
*/
|
|
5889
|
+
accessibilityLabel?: string;
|
|
5890
|
+
};
|
|
5891
|
+
type TextInputProps = (TextInputPropsWithA11yLabel | TextInputPropsWithLabel) & TextInputCommonProps;
|
|
5892
|
+
declare const TextInput: React__default.ForwardRefExoticComponent<TextInputProps & React__default.RefAttributes<BladeElementRef>>;
|
|
5893
|
+
|
|
5894
|
+
type Level = 'month' | 'year' | 'decade';
|
|
5895
|
+
type PickerType = 'day' | 'month' | 'year';
|
|
5896
|
+
type Preset = {
|
|
5897
|
+
/**
|
|
5898
|
+
* Label for the preset
|
|
5899
|
+
*
|
|
5900
|
+
* @example 'Last 7 days'
|
|
5901
|
+
*/
|
|
5902
|
+
label: string;
|
|
5903
|
+
/**
|
|
5904
|
+
* Value can be a range of dates
|
|
5905
|
+
*
|
|
5906
|
+
* @example with range selection
|
|
5907
|
+
* [dayjs().subtract(7, 'day'), dayjs()]
|
|
5908
|
+
*/
|
|
5909
|
+
value: (date: Date) => DatesRangeValue;
|
|
5910
|
+
};
|
|
5911
|
+
type DateSelectionType = 'single' | 'range';
|
|
5912
|
+
type MantineInternalProps = '__onDayMouseEnter' | '__onDayClick' | 'getDayProps' | 'getYearControlProps' | 'getMonthControlProps' | 'onMouseLeave';
|
|
5913
|
+
type CalendarProps<SelectionType extends DateSelectionType> = Pick<DatePickerProps$1<SelectionType extends 'single' ? 'default' : 'range'>, MantineInternalProps | 'value' | 'defaultValue' | 'onChange' | 'onMonthSelect' | 'onYearSelect'> & {
|
|
5914
|
+
/**
|
|
5915
|
+
* Sets the selection mode of the calendar
|
|
5916
|
+
* @default 'single'
|
|
5917
|
+
*/
|
|
5918
|
+
selectionType?: SelectionType;
|
|
5919
|
+
/**
|
|
5920
|
+
* Sets the picker type
|
|
5921
|
+
* @default 'date'
|
|
5922
|
+
*/
|
|
5923
|
+
picker?: PickerType;
|
|
5924
|
+
/**
|
|
5925
|
+
* Sets the default picker type
|
|
5926
|
+
*/
|
|
5927
|
+
defaultPicker?: PickerType;
|
|
5928
|
+
/**
|
|
5929
|
+
* Callback which fires when picker type changes
|
|
5930
|
+
*/
|
|
5931
|
+
onPickerChange?: (picker: PickerType) => void;
|
|
5932
|
+
/**
|
|
5933
|
+
* Controlled isOpen state
|
|
5934
|
+
*/
|
|
5935
|
+
isOpen?: boolean;
|
|
5936
|
+
/**
|
|
5937
|
+
* Uncontrolled isOpen state
|
|
5938
|
+
*/
|
|
5939
|
+
defaultIsOpen?: boolean;
|
|
5940
|
+
/**
|
|
5941
|
+
* Callback which fires when isOpen state changes
|
|
5942
|
+
*/
|
|
5943
|
+
onOpenChange?: ({ isOpen }: {
|
|
5944
|
+
isOpen: boolean;
|
|
5945
|
+
}) => void;
|
|
5946
|
+
/**
|
|
5947
|
+
* Defines presets for the date picker
|
|
5948
|
+
*
|
|
5949
|
+
* @example with single selection
|
|
5950
|
+
* [
|
|
5951
|
+
* { label: 'In 7 days', value: dayjs().add(7, 'day') },
|
|
5952
|
+
* { label: 'In a month', value: dayjs().add(1, 'month') },
|
|
5953
|
+
* ]
|
|
5954
|
+
*
|
|
5955
|
+
* @example with range selection
|
|
5956
|
+
* [
|
|
5957
|
+
* { label: 'Last 7 days', value: [dayjs().subtract(7, 'day'), dayjs()] },
|
|
5958
|
+
* { label: 'Last month', value: [dayjs().subtract(1, 'month'), dayjs()] },
|
|
5959
|
+
* ]
|
|
5960
|
+
*/
|
|
5961
|
+
presets?: Preset[];
|
|
5962
|
+
/**
|
|
5963
|
+
* Sets the first day of the week in the calendar.
|
|
5964
|
+
*
|
|
5965
|
+
* 0-6 (0=Sunday, 1=Monday, etc.)
|
|
5966
|
+
* @default 1
|
|
5967
|
+
*/
|
|
5968
|
+
firstDayOfWeek?: DayOfWeek;
|
|
5969
|
+
/**
|
|
5970
|
+
* Sets the minimum date that can be selected.
|
|
5971
|
+
*/
|
|
5972
|
+
minDate?: Date;
|
|
5973
|
+
/**
|
|
5974
|
+
* Sets the maximum date that can be selected.
|
|
5975
|
+
*/
|
|
5976
|
+
maxDate?: Date;
|
|
5977
|
+
/**
|
|
5978
|
+
* Disables dates that do not pass the function.
|
|
5979
|
+
*/
|
|
5980
|
+
excludeDate?: (date: Date) => boolean;
|
|
5981
|
+
/**
|
|
5982
|
+
* Determines whether single date can be selected as range, applicable only when type="range"
|
|
5983
|
+
* @default false
|
|
5984
|
+
*/
|
|
5985
|
+
allowSingleDateInRange?: boolean;
|
|
5986
|
+
/**
|
|
5987
|
+
* Callback which is called whenever the next button is clicked.
|
|
5988
|
+
*
|
|
5989
|
+
* @param date - The updated date.
|
|
5990
|
+
* @param type - The level of the calendar. ("month" | "year" | "decade")
|
|
5991
|
+
*/
|
|
5992
|
+
onNext?: ({ date, type }: {
|
|
5993
|
+
date: Date;
|
|
5994
|
+
type: Level;
|
|
5995
|
+
}) => void;
|
|
5996
|
+
/**
|
|
5997
|
+
* Callback which is called whenever the previous button is clicked.
|
|
5998
|
+
*
|
|
5999
|
+
* @param date - The updated date.
|
|
6000
|
+
* @param type - The level of the calendar. ("month" | "year" | "decade")
|
|
6001
|
+
*/
|
|
6002
|
+
onPrevious?: ({ date, type }: {
|
|
6003
|
+
date: Date;
|
|
6004
|
+
type: Level;
|
|
6005
|
+
}) => void;
|
|
6006
|
+
};
|
|
6007
|
+
type DatePickerProps<Type extends DateSelectionType> = Omit<CalendarProps<Type>, MantineInternalProps> & Omit<DatePickerCommonInputProps, 'inputRef' | 'referenceProps' | 'labelPosition' | 'name'> & {
|
|
6008
|
+
/**
|
|
6009
|
+
* Sets the label for the input element.
|
|
6010
|
+
*/
|
|
6011
|
+
label?: Type extends 'single' ? string : {
|
|
6012
|
+
start: string;
|
|
6013
|
+
end?: string;
|
|
6014
|
+
};
|
|
6015
|
+
/**
|
|
6016
|
+
* Sets the HTML [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname) attribute on the input elements.
|
|
6017
|
+
* Can be used when submitting a form.
|
|
6018
|
+
*
|
|
6019
|
+
* @example 'date' | { start: 'start-date', end: 'end-date' }
|
|
6020
|
+
*/
|
|
6021
|
+
name?: Type extends 'single' ? string : {
|
|
6022
|
+
start: string;
|
|
6023
|
+
end?: string;
|
|
6024
|
+
};
|
|
6025
|
+
labelPosition?: BaseInputProps['labelPosition'];
|
|
6026
|
+
};
|
|
6027
|
+
type DatePickerCommonInputProps = {
|
|
6028
|
+
labelPosition?: BaseInputProps['labelPosition'];
|
|
6029
|
+
inputRef: React.Ref<any>;
|
|
6030
|
+
referenceProps: any;
|
|
6031
|
+
} & Pick<TextInputProps, 'size' | 'isRequired' | 'necessityIndicator' | 'autoFocus' | 'isDisabled' | 'accessibilityLabel'> & FormInputValidationProps;
|
|
6032
|
+
|
|
6033
|
+
type DropdownProps = {
|
|
6034
|
+
/**
|
|
6035
|
+
* Control open / close state of the Dropdown component
|
|
6036
|
+
*
|
|
6037
|
+
* This can be used to close the dropdown when button in the footer of dropdown is clicked
|
|
6038
|
+
*/
|
|
6039
|
+
isOpen?: boolean;
|
|
6040
|
+
/**
|
|
6041
|
+
* Callback when open state of the dropdown changes
|
|
6042
|
+
*/
|
|
6043
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
6044
|
+
selectionType?: 'single' | 'multiple';
|
|
6045
|
+
children: React__default.ReactNode[];
|
|
6046
|
+
} & TestID & StyledPropsBlade;
|
|
6047
|
+
type DropdownOverlayProps = {
|
|
6048
|
+
children: React__default.ReactElement[] | React__default.ReactElement;
|
|
6049
|
+
/**
|
|
6050
|
+
* Sets the z-index of the DropdownOverlay
|
|
6051
|
+
*
|
|
6052
|
+
* @default 1001
|
|
6053
|
+
*/
|
|
6054
|
+
zIndex?: number;
|
|
6055
|
+
width?: BoxProps['width'];
|
|
6056
|
+
/**
|
|
6057
|
+
* Reference to the element which triggers the DropdownOverlay
|
|
6058
|
+
*
|
|
6059
|
+
* This is used to position the DropdownOverlay relative to a specific element,
|
|
6060
|
+
* for example in PhoneNumberInput the DropdownOverlay is positioned relative to the input element
|
|
6061
|
+
*/
|
|
6062
|
+
referenceRef?: React__default.MutableRefObject<ContainerElementType | null>;
|
|
6063
|
+
/**
|
|
6064
|
+
* Sets the placement of the DropdownOverlay
|
|
6065
|
+
*
|
|
6066
|
+
* @default 'bottom-start'
|
|
6067
|
+
*/
|
|
6068
|
+
defaultPlacement?: Placement;
|
|
6069
|
+
} & TestID;
|
|
6070
|
+
|
|
6071
|
+
declare const Dropdown: ({ children, isOpen: isOpenControlled, onOpenChange, selectionType, testID, ...styledProps }: DropdownProps) => React__default.ReactElement;
|
|
6072
|
+
|
|
6073
|
+
declare const DropdownOverlay: ({ children, testID }: DropdownOverlayProps) => React__default.ReactElement;
|
|
6074
|
+
|
|
6075
|
+
type DropdownButtonProps = ButtonProps & {
|
|
6076
|
+
onBlur?: BaseButtonProps['onBlur'];
|
|
6077
|
+
onKeyDown?: BaseButtonProps['onKeyDown'];
|
|
6078
|
+
};
|
|
6079
|
+
declare const DropdownButton: ({ children, icon, iconPosition, isDisabled, isFullWidth, isLoading, onClick, onBlur, onKeyDown, size, type, variant, accessibilityLabel, testID, ...styledProps }: DropdownButtonProps) => React__default.ReactElement;
|
|
6080
|
+
|
|
6081
|
+
type DropdownLinkProps = LinkButtonVariantProps & {
|
|
6082
|
+
onBlur?: BaseLinkProps['onBlur'];
|
|
6083
|
+
onKeyDown?: BaseLinkProps['onKeyDown'];
|
|
6084
|
+
};
|
|
6085
|
+
declare const DropdownLink: ({ children, icon, iconPosition, onClick, onBlur, onKeyDown, isDisabled, href, target, rel, accessibilityLabel, size, testID, hitSlop, htmlTitle, ...styledProps }: DropdownLinkProps) => React__default.ReactElement;
|
|
6086
|
+
|
|
6087
|
+
type DropdownHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'testID'>;
|
|
6088
|
+
declare const DropdownHeader: ({ title, subtitle, leading, titleSuffix, trailing, testID, }: DropdownHeaderProps) => React__default.ReactElement;
|
|
6089
|
+
type DropdownFooter = Pick<BaseFooterProps, 'children' | 'testID'>;
|
|
6090
|
+
declare const DropdownFooter: ({ children, testID }: DropdownFooter) => React__default.ReactElement;
|
|
6091
|
+
|
|
6092
|
+
interface BladeFile extends File {
|
|
6093
|
+
/**
|
|
6094
|
+
* The unique identifier of the file.
|
|
6095
|
+
*/
|
|
6096
|
+
id?: string;
|
|
6097
|
+
/**
|
|
6098
|
+
* The file's upload status.
|
|
6099
|
+
*/
|
|
6100
|
+
status?: 'uploading' | 'success' | 'error';
|
|
6101
|
+
/**
|
|
6102
|
+
* The percentage of file upload completion.
|
|
6103
|
+
*/
|
|
6104
|
+
uploadPercent?: number;
|
|
6105
|
+
/**
|
|
6106
|
+
* Text indicating an error state
|
|
6107
|
+
*/
|
|
6108
|
+
errorText?: string;
|
|
6109
|
+
}
|
|
6110
|
+
type BladeFileList = BladeFile[];
|
|
6111
|
+
type FileUploadCommonProps = {
|
|
6112
|
+
/**
|
|
6113
|
+
* Position of the label relative to the file upload area. Desktop only prop. Default value on mobile will be 'top'
|
|
6114
|
+
*
|
|
6115
|
+
* @default 'top'
|
|
6116
|
+
*/
|
|
6117
|
+
labelPosition?: 'top' | 'left';
|
|
6118
|
+
/**
|
|
6119
|
+
* Defines the upload behavior of the FileUpload component
|
|
6120
|
+
*/
|
|
6121
|
+
uploadType?: 'single' | 'multiple';
|
|
6122
|
+
/**
|
|
6123
|
+
* File types that can be accepted. See [input's accept attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept)
|
|
6124
|
+
*
|
|
6125
|
+
* Usage: accept=".jpg, .png, .pdf", accept="image/*", accept="image/png, image/jpeg, application/pdf"
|
|
6126
|
+
*/
|
|
6127
|
+
accept?: string;
|
|
6128
|
+
/**
|
|
6129
|
+
* Disables or enables the FileUpload component
|
|
5930
6130
|
*/
|
|
5931
|
-
|
|
6131
|
+
isDisabled?: boolean;
|
|
5932
6132
|
/**
|
|
5933
|
-
*
|
|
6133
|
+
* Sets the required state of the file input
|
|
6134
|
+
*
|
|
6135
|
+
* @default false
|
|
5934
6136
|
*/
|
|
5935
|
-
|
|
6137
|
+
isRequired?: boolean;
|
|
5936
6138
|
/**
|
|
5937
|
-
*
|
|
6139
|
+
* Renders a necessity indicator after the label. If `isRequired` is `true`, it defaults to `'required'`
|
|
5938
6140
|
*/
|
|
5939
|
-
|
|
6141
|
+
necessityIndicator?: 'required' | 'optional' | 'none';
|
|
5940
6142
|
/**
|
|
5941
|
-
*
|
|
5942
|
-
* for internal metric collection purposes
|
|
6143
|
+
* The name of the file upload input, [useful in form submissions](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
|
|
5943
6144
|
*/
|
|
5944
|
-
|
|
6145
|
+
name?: string;
|
|
5945
6146
|
/**
|
|
5946
|
-
*
|
|
6147
|
+
* List of files that have been selected/uploaded, useful when the component is controlled
|
|
5947
6148
|
*/
|
|
5948
|
-
|
|
6149
|
+
fileList?: BladeFileList;
|
|
5949
6150
|
/**
|
|
5950
|
-
*
|
|
6151
|
+
* Limit the number of files that can be uploaded
|
|
5951
6152
|
*/
|
|
5952
|
-
|
|
6153
|
+
maxCount?: number;
|
|
5953
6154
|
/**
|
|
5954
|
-
*
|
|
6155
|
+
* Limit the size of the uploaded files (in bytes)
|
|
5955
6156
|
*/
|
|
5956
|
-
|
|
5957
|
-
setInputWrapperRef?: (node: ContainerElementType) => void;
|
|
6157
|
+
maxSize?: number;
|
|
5958
6158
|
/**
|
|
5959
|
-
*
|
|
6159
|
+
* Callback function triggered when files are selected
|
|
5960
6160
|
*/
|
|
5961
|
-
|
|
6161
|
+
onChange?: ({ name, fileList }: {
|
|
6162
|
+
name?: string;
|
|
6163
|
+
fileList: BladeFileList;
|
|
6164
|
+
}) => void;
|
|
5962
6165
|
/**
|
|
5963
|
-
*
|
|
5964
|
-
*
|
|
5965
|
-
* When set to expandable, input takes 1 row in the begining and expands to take 3 when active
|
|
5966
|
-
*
|
|
5967
|
-
* @default 'single'
|
|
6166
|
+
* Callback function triggered when the preview icon is clicked
|
|
5968
6167
|
*/
|
|
5969
|
-
|
|
6168
|
+
onPreview?: ({ file }: {
|
|
6169
|
+
file: File;
|
|
6170
|
+
}) => void;
|
|
5970
6171
|
/**
|
|
5971
|
-
*
|
|
6172
|
+
* Callback function triggered when a file is removed
|
|
5972
6173
|
*/
|
|
5973
|
-
|
|
6174
|
+
onRemove?: ({ file }: {
|
|
6175
|
+
file: File;
|
|
6176
|
+
}) => void;
|
|
5974
6177
|
/**
|
|
5975
|
-
*
|
|
6178
|
+
* Callback function triggered when a file upload is dismissed
|
|
5976
6179
|
*/
|
|
5977
|
-
|
|
6180
|
+
onDismiss?: ({ file }: {
|
|
6181
|
+
file: File;
|
|
6182
|
+
}) => void;
|
|
5978
6183
|
/**
|
|
5979
|
-
*
|
|
6184
|
+
* Callback function executed when files are dropped into the upload area
|
|
5980
6185
|
*/
|
|
5981
|
-
|
|
6186
|
+
onDrop?: ({ name, fileList }: {
|
|
6187
|
+
name?: string;
|
|
6188
|
+
fileList: BladeFileList;
|
|
6189
|
+
}) => void;
|
|
5982
6190
|
/**
|
|
5983
|
-
*
|
|
6191
|
+
* State indicating whether there is an error in the FileUpload component
|
|
5984
6192
|
*/
|
|
5985
|
-
|
|
6193
|
+
validationState?: 'none' | 'error';
|
|
5986
6194
|
/**
|
|
5987
|
-
*
|
|
5988
|
-
* Used in AutoComplete and Select when label can't exist outside
|
|
5989
|
-
*
|
|
6195
|
+
* Additional text providing assistance or guidance
|
|
5990
6196
|
*/
|
|
5991
|
-
|
|
6197
|
+
helpText?: string;
|
|
5992
6198
|
/**
|
|
5993
|
-
*
|
|
6199
|
+
* Text indicating an error state
|
|
5994
6200
|
*/
|
|
5995
|
-
|
|
6201
|
+
errorText?: string;
|
|
5996
6202
|
/**
|
|
5997
|
-
*
|
|
5998
|
-
*
|
|
6203
|
+
* Size of the FileUpload component
|
|
6204
|
+
*
|
|
6205
|
+
* @default 'medium'
|
|
5999
6206
|
*/
|
|
6000
6207
|
size?: 'medium' | 'large';
|
|
6001
6208
|
/**
|
|
6002
|
-
*
|
|
6003
|
-
* **Note:** `size` of the Link will be set to the same size as the input field, `isDisabled` will follow Input's `isDisabled`, & `variant` will be set to `button`.
|
|
6004
|
-
* Example:
|
|
6005
|
-
* ```tsx
|
|
6006
|
-
* trailingButton={<Link onClick={handleClick}>Apply</Link>}
|
|
6007
|
-
* ```
|
|
6209
|
+
* Test ID for automation
|
|
6008
6210
|
*/
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
* @default text
|
|
6013
|
-
**/
|
|
6014
|
-
valueComponentType?: 'text' | 'heading';
|
|
6015
|
-
} & TestID & Platform.Select<{
|
|
6016
|
-
native: {
|
|
6017
|
-
/**
|
|
6018
|
-
* The callback function to be invoked when the value of the input field is submitted.
|
|
6019
|
-
*/
|
|
6020
|
-
onSubmit?: FormInputOnEvent;
|
|
6021
|
-
/**
|
|
6022
|
-
* determines what autoComplete suggestion type to show
|
|
6023
|
-
*
|
|
6024
|
-
* Internally it'll render platform specific attributes:
|
|
6025
|
-
*
|
|
6026
|
-
* - web: `autocomplete`
|
|
6027
|
-
* - iOS: `textContentType`
|
|
6028
|
-
* - android: `autoComplete`
|
|
6029
|
-
*
|
|
6030
|
-
*/
|
|
6031
|
-
autoCompleteSuggestionType?: CommonAutoCompleteSuggestionTypes;
|
|
6032
|
-
};
|
|
6033
|
-
web: {
|
|
6034
|
-
/**
|
|
6035
|
-
* This is a react-native only prop and has no effect on web.
|
|
6036
|
-
*/
|
|
6037
|
-
onSubmit?: undefined;
|
|
6038
|
-
/**
|
|
6039
|
-
* determines what autoComplete suggestion type to show
|
|
6040
|
-
*
|
|
6041
|
-
* Internally it'll render platform specific attributes:
|
|
6042
|
-
*
|
|
6043
|
-
* - web: `autocomplete`
|
|
6044
|
-
* - iOS: `textContentType`
|
|
6045
|
-
* - android: `autoComplete`
|
|
6046
|
-
*
|
|
6047
|
-
*/
|
|
6048
|
-
autoCompleteSuggestionType?: WebAutoCompleteSuggestionType;
|
|
6049
|
-
};
|
|
6050
|
-
}> & StyledPropsBlade;
|
|
6051
|
-
type BaseInputPropsWithA11yLabel = {
|
|
6211
|
+
testID?: string;
|
|
6212
|
+
};
|
|
6213
|
+
type FileUploadPropsWithA11yLabel = {
|
|
6052
6214
|
/**
|
|
6053
6215
|
* Label to be shown for the input field
|
|
6054
6216
|
*/
|
|
@@ -6058,7 +6220,7 @@ type BaseInputPropsWithA11yLabel = {
|
|
|
6058
6220
|
*/
|
|
6059
6221
|
accessibilityLabel: string;
|
|
6060
6222
|
};
|
|
6061
|
-
type
|
|
6223
|
+
type FileUploadPropsWithLabel = {
|
|
6062
6224
|
/**
|
|
6063
6225
|
* Label to be shown for the input field
|
|
6064
6226
|
*/
|
|
@@ -6068,7 +6230,54 @@ type BaseInputPropsWithLabel = {
|
|
|
6068
6230
|
*/
|
|
6069
6231
|
accessibilityLabel?: string;
|
|
6070
6232
|
};
|
|
6071
|
-
type
|
|
6233
|
+
type FileUploadProps = (FileUploadPropsWithA11yLabel | FileUploadPropsWithLabel) & FileUploadCommonProps;
|
|
6234
|
+
|
|
6235
|
+
declare const FileUpload: (_props: FileUploadProps) => React.ReactElement;
|
|
6236
|
+
|
|
6237
|
+
type IndicatorCommonProps = {
|
|
6238
|
+
/**
|
|
6239
|
+
* Sets the color tone
|
|
6240
|
+
*
|
|
6241
|
+
* @default neutral
|
|
6242
|
+
*/
|
|
6243
|
+
color?: FeedbackColors | 'primary';
|
|
6244
|
+
/**
|
|
6245
|
+
* Sets the emphasis of the indicator
|
|
6246
|
+
*
|
|
6247
|
+
* If set to intense it will show a background circle
|
|
6248
|
+
*
|
|
6249
|
+
* @default subtle
|
|
6250
|
+
*/
|
|
6251
|
+
emphasis?: 'subtle' | 'intense';
|
|
6252
|
+
/**
|
|
6253
|
+
* Size of the indicator
|
|
6254
|
+
*
|
|
6255
|
+
* @default medium
|
|
6256
|
+
*/
|
|
6257
|
+
size?: 'small' | 'medium' | 'large';
|
|
6258
|
+
} & TestID & StyledPropsBlade;
|
|
6259
|
+
type IndicatorWithoutA11yLabel = {
|
|
6260
|
+
/**
|
|
6261
|
+
* A text label to show alongside the indicator dot
|
|
6262
|
+
*/
|
|
6263
|
+
children: StringChildrenType;
|
|
6264
|
+
/**
|
|
6265
|
+
* a11y label for screen readers
|
|
6266
|
+
*/
|
|
6267
|
+
accessibilityLabel?: string;
|
|
6268
|
+
};
|
|
6269
|
+
type IndicatorWithA11yLabel = {
|
|
6270
|
+
/**
|
|
6271
|
+
* a11y label for screen readers
|
|
6272
|
+
*/
|
|
6273
|
+
accessibilityLabel: string;
|
|
6274
|
+
/**
|
|
6275
|
+
* A text label to show alongside the indicator dot
|
|
6276
|
+
*/
|
|
6277
|
+
children?: StringChildrenType;
|
|
6278
|
+
};
|
|
6279
|
+
type IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);
|
|
6280
|
+
declare const Indicator: ({ accessibilityLabel, children, size, color, emphasis, testID, ...styledProps }: IndicatorProps) => ReactElement;
|
|
6072
6281
|
|
|
6073
6282
|
/**
|
|
6074
6283
|
* ### SelectInput
|
|
@@ -6380,14 +6589,6 @@ type PasswordInputPropsWithLabel = {
|
|
|
6380
6589
|
type PasswordInputProps = (PasswordInputPropsWithA11yLabel | PasswordInputPropsWithLabel) & PasswordInputCommonProps;
|
|
6381
6590
|
declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<BladeElementRef>>;
|
|
6382
6591
|
|
|
6383
|
-
type TaggedInputProps = {
|
|
6384
|
-
isTaggedInput?: boolean;
|
|
6385
|
-
tags?: string[];
|
|
6386
|
-
onTagChange?: ({ tags }: {
|
|
6387
|
-
tags: string[];
|
|
6388
|
-
}) => void;
|
|
6389
|
-
};
|
|
6390
|
-
|
|
6391
6592
|
type TextAreaCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID' | 'size'> & {
|
|
6392
6593
|
/**
|
|
6393
6594
|
* Decides whether to render a clear icon button
|
|
@@ -6421,63 +6622,6 @@ type TextAreaPropsWithLabel = {
|
|
|
6421
6622
|
type TextAreaProps = (TextAreaPropsWithA11yLabel | TextAreaPropsWithLabel) & TextAreaCommonProps;
|
|
6422
6623
|
declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<BladeElementRef>>;
|
|
6423
6624
|
|
|
6424
|
-
type Type = Exclude<BaseInputProps['type'], 'password'>;
|
|
6425
|
-
type TextInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size' | 'leadingIcon' | 'trailingButton' | 'trailingIcon'> & {
|
|
6426
|
-
/**
|
|
6427
|
-
* Decides whether to render a clear icon button
|
|
6428
|
-
*/
|
|
6429
|
-
showClearButton?: boolean;
|
|
6430
|
-
/**
|
|
6431
|
-
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
6432
|
-
*/
|
|
6433
|
-
onClearButtonClick?: () => void;
|
|
6434
|
-
/**
|
|
6435
|
-
* Decides whether to show a loading spinner for the input field.
|
|
6436
|
-
*/
|
|
6437
|
-
isLoading?: boolean;
|
|
6438
|
-
/**
|
|
6439
|
-
* Icon that will be rendered at the beginning of the input field
|
|
6440
|
-
* @deprecated Use `leadingIcon` instead. This prop will be removed in the next major version.
|
|
6441
|
-
*/
|
|
6442
|
-
icon?: IconComponent;
|
|
6443
|
-
/**
|
|
6444
|
-
* Type of Input Field to be rendered. Use `PasswordInput` for type `password`
|
|
6445
|
-
*
|
|
6446
|
-
*
|
|
6447
|
-
* **Note on number type**
|
|
6448
|
-
*
|
|
6449
|
-
* `type="number"` internally uses `inputMode="numeric"` instead of HTML's `type="number"` which also allows text characters.
|
|
6450
|
-
* If you have a usecase where you only want to support number input, you can handle it on validations end.
|
|
6451
|
-
*
|
|
6452
|
-
* 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
|
|
6453
|
-
*
|
|
6454
|
-
* @default text
|
|
6455
|
-
*/
|
|
6456
|
-
type?: Type;
|
|
6457
|
-
} & TaggedInputProps & StyledPropsBlade;
|
|
6458
|
-
type TextInputPropsWithA11yLabel = {
|
|
6459
|
-
/**
|
|
6460
|
-
* Label to be shown for the input field
|
|
6461
|
-
*/
|
|
6462
|
-
label?: undefined;
|
|
6463
|
-
/**
|
|
6464
|
-
* Accessibility label for the input
|
|
6465
|
-
*/
|
|
6466
|
-
accessibilityLabel: string;
|
|
6467
|
-
};
|
|
6468
|
-
type TextInputPropsWithLabel = {
|
|
6469
|
-
/**
|
|
6470
|
-
* Label to be shown for the input field
|
|
6471
|
-
*/
|
|
6472
|
-
label: string;
|
|
6473
|
-
/**
|
|
6474
|
-
* Accessibility label for the input
|
|
6475
|
-
*/
|
|
6476
|
-
accessibilityLabel?: string;
|
|
6477
|
-
};
|
|
6478
|
-
type TextInputProps = (TextInputPropsWithA11yLabel | TextInputPropsWithLabel) & TextInputCommonProps;
|
|
6479
|
-
declare const TextInput: React__default.ForwardRefExoticComponent<TextInputProps & React__default.RefAttributes<BladeElementRef>>;
|
|
6480
|
-
|
|
6481
6625
|
type SearchInputCommonProps = Pick<BaseInputProps, 'label' | 'accessibilityLabel' | 'labelPosition' | 'helpText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'autoFocus' | 'onSubmit' | 'autoCapitalize' | 'testID' | 'onClick' | 'size'> & {
|
|
6482
6626
|
/**
|
|
6483
6627
|
* Event handler to handle the onClick event for clear button.
|
|
@@ -6517,7 +6661,7 @@ type SearchInputPropsWithLabel = {
|
|
|
6517
6661
|
type SearchInputProps = (SearchInputPropsWithA11yLabel | SearchInputPropsWithLabel) & SearchInputCommonProps;
|
|
6518
6662
|
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<BladeElementRef>>;
|
|
6519
6663
|
|
|
6520
|
-
type CommonProps = Pick<BaseInputProps, 'size' | 'label' | 'labelPosition' | 'name' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'defaultValue' | 'necessityIndicator' | 'isRequired' | 'isDisabled' | 'onFocus' | 'onBlur' | 'onClick' | 'leadingIcon' | 'trailingIcon' | 'accessibilityLabel' | 'autoFocus' | 'testID' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType'>;
|
|
6664
|
+
type CommonProps = Pick<BaseInputProps, 'size' | 'label' | 'labelPosition' | 'name' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'defaultValue' | 'necessityIndicator' | 'isRequired' | 'isDisabled' | 'onFocus' | 'onBlur' | 'onClick' | 'leadingIcon' | 'trailingIcon' | 'accessibilityLabel' | 'autoFocus' | 'testID' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'placeholder'>;
|
|
6521
6665
|
type PhoneNumberInputProps = StyledPropsBlade & CommonProps & {
|
|
6522
6666
|
/**
|
|
6523
6667
|
* Default value of the input, Used to set the default value of input field when it's uncontrolled
|
|
@@ -8692,4 +8836,4 @@ declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => Rea
|
|
|
8692
8836
|
*/
|
|
8693
8837
|
declare const screenReaderStyles: CSSObject;
|
|
8694
8838
|
|
|
8695
|
-
export { AcceptPaymentsIcon, Accordion, AccordionItem, AccordionItemBody, AccordionItemHeader, AccordionItemProps, AccordionProps, ActionList, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemBadge, ActionListItemBadgeGroup, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionProps, ActivityIcon, AddressBookIcon, AffordabilityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, Amount, AmountProps, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, AttachmentIcon, AutoComplete, AutoCompleteProps, AutomateAccountingIcon, AutomatePayrollIcon, Avatar, AvatarGroup, AwardIcon, Badge, BadgeProps, BankAccountVerificationIcon, BankIcon, BarChartAltIcon, BarChartIcon, BarCodeIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BfsiIcon, BillIcon, BladeCommonEvents, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BottomSheet, BottomSheetBody, BottomSheetBodyProps, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, Box, BoxIcon, BoxProps, BoxRefType, Breadcrumb, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbProps, BriefcaseIcon, BugIcon, BuildingIcon, BulkPayoutsIcon, BusinessBankingIcon, BusinessSpendManagementIcon, Button, ButtonGroup, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderAmount, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, Carousel, CarouselItem, CarouselProps, CashIcon, CastIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, Chip, ChipGroup, ChipGroupProps, ChipProps, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, ClosedCaptioningIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodeSnippetIcon, CodepenIcon, CoinIcon, CoinsIcon, Collapsible, CollapsibleBody, CollapsibleBodyProps, CollapsibleButton, CollapsibleButtonProps, CollapsibleLink, CollapsibleLinkProps, CollapsibleProps, CommandIcon, CompanyRegistrationIcon, CompassIcon, ComponentIds, ConfettiIcon, ContactlessPaymentIcon, CookieIcon, CopyIcon, CopyrightIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CreditsAndLoansIcon, CropIcon, CrosshairIcon, CurrentAccountIcon, CustomersIcon, CutIcon, DashboardIcon, DeleteIcon, DigitalLendingIcon, DisbursePaymentsIcon, DiscIcon, Display, DisplayProps, Divider, DividerProps, DollarIcon, DollarsIcon, DotIcon, DownloadCloudIcon, DownloadIcon, Drawer, DrawerBody, DrawerHeader, DrawerHeaderProps, DrawerProps, Dropdown, DropdownButton, DropdownFooter, DropdownHeader, DropdownLink, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EcommerceIcon, EditComposeIcon, EditIcon, EditInlineIcon, EducationIcon, EscrowAccountIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FigmaIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FileUpload, FileZipIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, ForexManagementIcon, FreelanceIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphoneIcon, HeadphonesIcon, HeadsetIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconColors, IconComponent, IconProps, IconSize, Identifier, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, InstantSettlementIcon, InternationalPaymentsIcon, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkButtonVariantProps, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListItemText, ListItemTextProps, ListProps, LoaderIcon, LoansForBusinessesIcon, LockIcon, LogInIcon, LogOutIcon, MagicCheckoutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MobileAppIcon, Modal, ModalBody, ModalBodyProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputCommonProps, OTPInputProps, OctagonIcon, OffersIcon, OptimizerIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonIcon, PaymentButtonsIcon, PaymentGatewayIcon, PaymentLinkIcon, PaymentLinksIcon, PaymentPagesIcon, PayoutLinkIcon, PayrollAddonsIcon, PayrollForCaIcon, PayrollForStartupOrSmeIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneNumberInput, PhoneNumberInputProps, PhoneOffIcon, PhoneOutgoingIcon, PictureInPictureIcon, PieChartIcon, PinIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, Popover, PopoverInteractiveWrapper, PopoverProps, PopoverTriggerProps, PosIcon, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RazorpayxPayrollIcon, RefreshIcon, RepeatIcon, ReportsIcon, ResizerIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RouteIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaasIcon, SaveIcon, ScissorsIcon, SearchIcon, SearchInput, SearchInputProps, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingBagIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, Skeleton, SkeletonProps, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SolutionsIcon, SourceToPayIcon, SparklesIcon, SpeakerIcon, Spinner, SpinnerProps, SpotlightPopoverStepRenderProps, SpotlightPopoverTourFooter, SpotlightPopoverTourProps, SpotlightPopoverTourStep, SpotlightPopoverTourSteps, SquareIcon, StampIcon, StarIcon, StepGroup, StepGroupProps, StepItem, StepItemIcon, StepItemIndicator, StepItemProps, StopCircleIcon, StorefrontIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, Switch, SwitchProps, TabItem, TabItemProps, TabList, TabPanel, TabPanelProps, Table, TableBackgroundColors, TableBody, TableBodyProps, TableCell, TableCellProps, TableData, TableFooter, TableFooterCell, TableFooterCellProps, TableFooterProps, TableFooterRow, TableFooterRowProps, TableHeader, TableHeaderCell, TableHeaderCellProps, TableHeaderProps, TableHeaderRow, TableHeaderRowProps, TableNode, TablePagination, TablePaginationCommonProps, TablePaginationProps$1 as TablePaginationProps, TablePaginationType, TableProps, TableRow, TableRowProps, TableToolbar, TableToolbarActions, TableToolbarActionsProps, TableToolbarProps, TabletIcon, Tabs, TabsProps, Tag, TagIcon, TagProps, TargetIcon, TaxPaymentsIcon, TestIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, ToastContainer, ToastProps, ToggleLeftIcon, ToggleRightIcon, TokenHqIcon, Tooltip, TooltipInteractiveWrapper, TooltipProps, Tour, TrademarkIcon, TrademarkRegisteredIcon, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UpiAutopayIcon, UploadCloudIcon, UploadIcon, UseToastReturn, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VendorPaymentsIcon, VideoIcon, VideoOffIcon, ViewLiveDemoIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WalletIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getHeadingProps, getTextProps, screenReaderStyles, useTheme, useToast };
|
|
8839
|
+
export { AcceptPaymentsIcon, Accordion, AccordionItem, AccordionItemBody, AccordionItemHeader, AccordionItemProps, AccordionProps, ActionList, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemBadge, ActionListItemBadgeGroup, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionProps, ActivityIcon, AddressBookIcon, AffordabilityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, Amount, AmountProps, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, AttachmentIcon, AutoComplete, AutoCompleteProps, AutomateAccountingIcon, AutomatePayrollIcon, Avatar, AvatarGroup, AwardIcon, Badge, BadgeProps, BankAccountVerificationIcon, BankIcon, BarChartAltIcon, BarChartIcon, BarCodeIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BfsiIcon, BillIcon, BladeCommonEvents, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BottomSheet, BottomSheetBody, BottomSheetBodyProps, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, Box, BoxIcon, BoxProps, BoxRefType, Breadcrumb, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbProps, BriefcaseIcon, BugIcon, BuildingIcon, BulkPayoutsIcon, BusinessBankingIcon, BusinessSpendManagementIcon, Button, ButtonGroup, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderAmount, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, Carousel, CarouselItem, CarouselProps, CashIcon, CastIcon, CheckCircle2Icon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, Chip, ChipGroup, ChipGroupProps, ChipProps, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, ClosedCaptioningIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodeSnippetIcon, CodepenIcon, CoinIcon, CoinsIcon, Collapsible, CollapsibleBody, CollapsibleBodyProps, CollapsibleButton, CollapsibleButtonProps, CollapsibleLink, CollapsibleLinkProps, CollapsibleProps, CommandIcon, CompanyRegistrationIcon, CompassIcon, ComponentIds, ConfettiIcon, ContactlessPaymentIcon, CookieIcon, CopyIcon, CopyrightIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CreditsAndLoansIcon, CropIcon, CrosshairIcon, CurrentAccountIcon, CustomersIcon, CutIcon, DashboardIcon, DatePicker, DatePickerProps, DeleteIcon, DigitalLendingIcon, DisbursePaymentsIcon, DiscIcon, Display, DisplayProps, Divider, DividerProps, DollarIcon, DollarsIcon, DotIcon, DownloadCloudIcon, DownloadIcon, Drawer, DrawerBody, DrawerHeader, DrawerHeaderProps, DrawerProps, Dropdown, DropdownButton, DropdownFooter, DropdownHeader, DropdownLink, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EcommerceIcon, EditComposeIcon, EditIcon, EditInlineIcon, EducationIcon, EscrowAccountIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FigmaIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FileUpload, FileZipIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, ForexManagementIcon, FreelanceIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphoneIcon, HeadphonesIcon, HeadsetIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconColors, IconComponent, IconProps, IconSize, Identifier, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, InstantSettlementIcon, InternationalPaymentsIcon, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkButtonVariantProps, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListItemText, ListItemTextProps, ListProps, LoaderIcon, LoansForBusinessesIcon, LockIcon, LogInIcon, LogOutIcon, MagicCheckoutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MobileAppIcon, Modal, ModalBody, ModalBodyProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputCommonProps, OTPInputProps, OctagonIcon, OffersIcon, OptimizerIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonIcon, PaymentButtonsIcon, PaymentGatewayIcon, PaymentLinkIcon, PaymentLinksIcon, PaymentPagesIcon, PayoutLinkIcon, PayrollAddonsIcon, PayrollForCaIcon, PayrollForStartupOrSmeIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneNumberInput, PhoneNumberInputProps, PhoneOffIcon, PhoneOutgoingIcon, PictureInPictureIcon, PieChartIcon, PinIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, Popover, PopoverInteractiveWrapper, PopoverProps, PopoverTriggerProps, PosIcon, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RazorpayxPayrollIcon, RefreshIcon, RepeatIcon, ReportsIcon, ResizerIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RouteIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaasIcon, SaveIcon, ScissorsIcon, SearchIcon, SearchInput, SearchInputProps, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingBagIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, Skeleton, SkeletonProps, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SolutionsIcon, SourceToPayIcon, SparklesIcon, SpeakerIcon, Spinner, SpinnerProps, SpotlightPopoverStepRenderProps, SpotlightPopoverTourFooter, SpotlightPopoverTourProps, SpotlightPopoverTourStep, SpotlightPopoverTourSteps, SquareIcon, StampIcon, StarIcon, StepGroup, StepGroupProps, StepItem, StepItemIcon, StepItemIndicator, StepItemProps, StopCircleIcon, StorefrontIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, Switch, SwitchProps, TabItem, TabItemProps, TabList, TabPanel, TabPanelProps, Table, TableBackgroundColors, TableBody, TableBodyProps, TableCell, TableCellProps, TableData, TableFooter, TableFooterCell, TableFooterCellProps, TableFooterProps, TableFooterRow, TableFooterRowProps, TableHeader, TableHeaderCell, TableHeaderCellProps, TableHeaderProps, TableHeaderRow, TableHeaderRowProps, TableNode, TablePagination, TablePaginationCommonProps, TablePaginationProps$1 as TablePaginationProps, TablePaginationType, TableProps, TableRow, TableRowProps, TableToolbar, TableToolbarActions, TableToolbarActionsProps, TableToolbarProps, TabletIcon, Tabs, TabsProps, Tag, TagIcon, TagProps, TargetIcon, TaxPaymentsIcon, TestIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, TicketIcon, ToastContainer, ToastProps, ToggleLeftIcon, ToggleRightIcon, TokenHqIcon, Tooltip, TooltipInteractiveWrapper, TooltipProps, Tour, TrademarkIcon, TrademarkRegisteredIcon, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UpiAutopayIcon, UploadCloudIcon, UploadIcon, UseToastReturn, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VendorPaymentsIcon, VideoIcon, VideoOffIcon, ViewLiveDemoIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WalletIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getHeadingProps, getTextProps, screenReaderStyles, useTheme, useToast };
|