@juspay/blend-design-system 0.0.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/README.md +177 -0
- package/dist/assets/main.css +1 -0
- package/dist/breakpoints/breakPoints.d.ts +5 -0
- package/dist/components/Accordion/Accordion.d.ts +4 -0
- package/dist/components/Accordion/AccordionItem.d.ts +6 -0
- package/dist/components/Accordion/accordion.tokens.d.ts +49 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion/types.d.ts +29 -0
- package/dist/components/Alert/Alert.d.ts +4 -0
- package/dist/components/Alert/alert.tokens.d.ts +25 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/types.d.ts +33 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/StyledAvatar.d.ts +8 -0
- package/dist/components/Avatar/avatarUtils.d.ts +7 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/token.d.ts +71 -0
- package/dist/components/Avatar/types.d.ts +29 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +11 -0
- package/dist/components/AvatarGroup/StyledAvatarGroup.d.ts +6 -0
- package/dist/components/AvatarGroup/avatarGroupUtils.d.ts +24 -0
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/AvatarGroup/token.d.ts +89 -0
- package/dist/components/AvatarGroup/types.d.ts +29 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/breadcrumb.tokens.d.ts +31 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Breadcrumb/types.d.ts +6 -0
- package/dist/components/Button/Button.d.ts +18 -0
- package/dist/components/Button/button.tokens.d.ts +61 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/types.d.ts +34 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/types.d.ts +6 -0
- package/dist/components/Charts/ChartHeader.d.ts +2 -0
- package/dist/components/Charts/ChartLegend.d.ts +3 -0
- package/dist/components/Charts/ChartUtils.d.ts +5 -0
- package/dist/components/Charts/Charts.d.ts +3 -0
- package/dist/components/Charts/CustomTooltip.d.ts +2 -0
- package/dist/components/Charts/index.d.ts +2 -0
- package/dist/components/Charts/renderChart.d.ts +2 -0
- package/dist/components/Charts/types.d.ts +83 -0
- package/dist/components/Charts/utils.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/StyledCheckbox.d.ts +11 -0
- package/dist/components/Checkbox/checkbox.token.d.ts +96 -0
- package/dist/components/Checkbox/checkboxUtils.d.ts +68 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/types.d.ts +21 -0
- package/dist/components/DataTable/ColumnFilter/index.d.ts +9 -0
- package/dist/components/DataTable/ColumnManager.d.ts +5 -0
- package/dist/components/DataTable/DataTable.d.ts +3 -0
- package/dist/components/DataTable/DataTable.stories.d.ts +16 -0
- package/dist/components/DataTable/DataTableHeader/index.d.ts +3 -0
- package/dist/components/DataTable/DataTableHeader/types.d.ts +20 -0
- package/dist/components/DataTable/DataTablePagination.d.ts +11 -0
- package/dist/components/DataTable/TableBody/BulkActionBar.d.ts +8 -0
- package/dist/components/DataTable/TableBody/index.d.ts +4 -0
- package/dist/components/DataTable/TableBody/types.d.ts +32 -0
- package/dist/components/DataTable/TableCell/index.d.ts +3 -0
- package/dist/components/DataTable/TableCell/types.d.ts +12 -0
- package/dist/components/DataTable/TableFooter/index.d.ts +3 -0
- package/dist/components/DataTable/TableFooter/types.d.ts +10 -0
- package/dist/components/DataTable/TableHeader/FilterComponents.d.ts +59 -0
- package/dist/components/DataTable/TableHeader/handlers.d.ts +28 -0
- package/dist/components/DataTable/TableHeader/index.d.ts +3 -0
- package/dist/components/DataTable/TableHeader/types.d.ts +21 -0
- package/dist/components/DataTable/TableHeader/utils.d.ts +29 -0
- package/dist/components/DataTable/columnTypes.d.ts +87 -0
- package/dist/components/DataTable/dataTable.tokens.d.ts +174 -0
- package/dist/components/DataTable/index.d.ts +10 -0
- package/dist/components/DataTable/types.d.ts +230 -0
- package/dist/components/DataTable/utils.d.ts +52 -0
- package/dist/components/DateRangePicker/CalendarGrid.d.ts +11 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +4 -0
- package/dist/components/DateRangePicker/QuickRangeSelector.d.ts +13 -0
- package/dist/components/DateRangePicker/TimeSelector.d.ts +7 -0
- package/dist/components/DateRangePicker/dateRangePicker.tokens.d.ts +188 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/types.d.ts +38 -0
- package/dist/components/DateRangePicker/utils.d.ts +470 -0
- package/dist/components/Directory/Directory.d.ts +6 -0
- package/dist/components/Directory/NavItem.d.ts +7 -0
- package/dist/components/Directory/Section.d.ts +3 -0
- package/dist/components/Directory/index.d.ts +2 -0
- package/dist/components/Directory/types.d.ts +29 -0
- package/dist/components/Directory/utils.d.ts +9 -0
- package/dist/components/Drawer/Drawer.d.ts +6 -0
- package/dist/components/Drawer/components/DrawerBase.d.ts +30 -0
- package/dist/components/Drawer/components/NestedSelectDrawer.d.ts +72 -0
- package/dist/components/Drawer/components/SelectDrawer.d.ts +9 -0
- package/dist/components/Drawer/components/StatusDrawer.d.ts +5 -0
- package/dist/components/Drawer/drawer.tokens.d.ts +60 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts +384 -0
- package/dist/components/Dropdown/Dropdown.d.ts +9 -0
- package/dist/components/GradientBlur/GradientBlur.d.ts +2 -0
- package/dist/components/Inputs/DropdownInput/DropdownInput.d.ts +3 -0
- package/dist/components/Inputs/DropdownInput/dropdownInput.tokens.d.ts +33 -0
- package/dist/components/Inputs/DropdownInput/index.d.ts +2 -0
- package/dist/components/Inputs/DropdownInput/types.d.ts +31 -0
- package/dist/components/Inputs/MultiValueInput/MultiValueInput.d.ts +3 -0
- package/dist/components/Inputs/MultiValueInput/index.d.ts +2 -0
- package/dist/components/Inputs/MultiValueInput/multiValueInput.tokens.d.ts +33 -0
- package/dist/components/Inputs/MultiValueInput/types.d.ts +25 -0
- package/dist/components/Inputs/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/Inputs/NumberInput/index.d.ts +2 -0
- package/dist/components/Inputs/NumberInput/numberInput.tokens.d.ts +44 -0
- package/dist/components/Inputs/NumberInput/types.d.ts +16 -0
- package/dist/components/Inputs/OTPInput/OTPInput.d.ts +3 -0
- package/dist/components/Inputs/OTPInput/index.d.ts +2 -0
- package/dist/components/Inputs/OTPInput/otpInput.tokens.d.ts +34 -0
- package/dist/components/Inputs/OTPInput/types.d.ts +11 -0
- package/dist/components/Inputs/SearchInput/SearchInput.d.ts +3 -0
- package/dist/components/Inputs/SearchInput/index.d.ts +2 -0
- package/dist/components/Inputs/SearchInput/searchInput.tokens.d.ts +41 -0
- package/dist/components/Inputs/SearchInput/types.d.ts +7 -0
- package/dist/components/Inputs/TextArea/TextArea.d.ts +3 -0
- package/dist/components/Inputs/TextArea/index.d.ts +2 -0
- package/dist/components/Inputs/TextArea/textarea.token.d.ts +27 -0
- package/dist/components/Inputs/TextArea/types.d.ts +22 -0
- package/dist/components/Inputs/TextInput/TextInput.d.ts +3 -0
- package/dist/components/Inputs/TextInput/index.d.ts +2 -0
- package/dist/components/Inputs/TextInput/textInput.tokens.d.ts +33 -0
- package/dist/components/Inputs/TextInput/types.d.ts +24 -0
- package/dist/components/Inputs/UnitInput/UnitInput.d.ts +3 -0
- package/dist/components/Inputs/UnitInput/index.d.ts +2 -0
- package/dist/components/Inputs/UnitInput/types.d.ts +25 -0
- package/dist/components/Inputs/UnitInput/unitInput.tokens.d.ts +40 -0
- package/dist/components/Inputs/index.d.ts +8 -0
- package/dist/components/Inputs/utils/InputFooter/InputFooter.d.ts +8 -0
- package/dist/components/Inputs/utils/InputLabels/InputLabels.d.ts +18 -0
- package/dist/components/Menu/Menu.d.ts +8 -0
- package/dist/components/Menu/MenuGroupLabel.d.ts +3 -0
- package/dist/components/Menu/MenuItem.d.ts +9 -0
- package/dist/components/Menu/MenuPlayground.d.ts +3 -0
- package/dist/components/Menu/MenuPlaygroundComprehensive.d.ts +3 -0
- package/dist/components/Menu/SubMenu.d.ts +5 -0
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/Menu/menu.styles.d.ts +2 -0
- package/dist/components/Menu/menu.tokens.d.ts +100 -0
- package/dist/components/Menu/types.d.ts +55 -0
- package/dist/components/Menu/utils.d.ts +3 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/modal.tokens.d.ts +48 -0
- package/dist/components/Modal/types.d.ts +22 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +3 -0
- package/dist/components/MultiSelect/MultiSelectMenu.d.ts +3 -0
- package/dist/components/MultiSelect/MultiSelectMenuItem.d.ts +10 -0
- package/dist/components/MultiSelect/MultiSelectSubMenu.d.ts +10 -0
- package/dist/components/MultiSelect/SelectAllItem.d.ts +8 -0
- package/dist/components/MultiSelect/index.d.ts +2 -0
- package/dist/components/MultiSelect/multiSelect.tokens.d.ts +77 -0
- package/dist/components/MultiSelect/types.d.ts +92 -0
- package/dist/components/MultiSelect/utils.d.ts +11 -0
- package/dist/components/Popover/Popover.d.ts +6 -0
- package/dist/components/Popover/PopoverFooter.d.ts +6 -0
- package/dist/components/Popover/PopoverHeader.d.ts +6 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/popover.tokens.d.ts +40 -0
- package/dist/components/Popover/types.d.ts +31 -0
- package/dist/components/Primitives/Block/Block.d.ts +189 -0
- package/dist/components/Primitives/PrimitiveButton/PrimitiveButton.d.ts +131 -0
- package/dist/components/Primitives/PrimitiveInput/PrimitiveInput.d.ts +91 -0
- package/dist/components/Primitives/PrimitiveLink.d.ts +58 -0
- package/dist/components/Primitives/PrimitiveText/PrimitiveText.d.ts +39 -0
- package/dist/components/Primitives/PrimitiveTextArea.d.ts +88 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/components/ProgressBar/index.d.ts +3 -0
- package/dist/components/ProgressBar/progressbar.tokens.d.ts +63 -0
- package/dist/components/ProgressBar/types.d.ts +22 -0
- package/dist/components/ProgressBar/utils.d.ts +7 -0
- package/dist/components/Radio/Radio.d.ts +6 -0
- package/dist/components/Radio/RadioGroup.d.ts +4 -0
- package/dist/components/Radio/StyledRadio.d.ts +7 -0
- package/dist/components/Radio/index.d.ts +4 -0
- package/dist/components/Radio/radio.token.d.ts +75 -0
- package/dist/components/Radio/types.d.ts +30 -0
- package/dist/components/Radio/utils.d.ts +47 -0
- package/dist/components/Select/Select.d.ts +25 -0
- package/dist/components/Select/SelectMenu.d.ts +3 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/select.token.d.ts +40 -0
- package/dist/components/Select/types.d.ts +55 -0
- package/dist/components/Sidebar/Sidebar.d.ts +4 -0
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/types.d.ts +44 -0
- package/dist/components/SingleSelect/SingleSelect.d.ts +3 -0
- package/dist/components/SingleSelect/SingleSelectMenu.d.ts +21 -0
- package/dist/components/SingleSelect/index.d.ts +2 -0
- package/dist/components/SingleSelect/types.d.ts +26 -0
- package/dist/components/Slider/Slider.d.ts +5 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/types.d.ts +30 -0
- package/dist/components/Slider/utils.d.ts +49 -0
- package/dist/components/Snackbar/Snackbar.d.ts +4 -0
- package/dist/components/Snackbar/index.d.ts +3 -0
- package/dist/components/Snackbar/snackbar.tokens.d.ts +52 -0
- package/dist/components/Snackbar/types.d.ts +26 -0
- package/dist/components/SplitTag/SplitTag.d.ts +6 -0
- package/dist/components/SplitTag/index.d.ts +2 -0
- package/dist/components/SplitTag/types.d.ts +16 -0
- package/dist/components/StatCard/StatCard.d.ts +6 -0
- package/dist/components/StatCard/index.d.ts +2 -0
- package/dist/components/StatCard/statcard.tokens.d.ts +145 -0
- package/dist/components/StatCard/types.d.ts +32 -0
- package/dist/components/Switch/StyledSwitch.d.ts +11 -0
- package/dist/components/Switch/Switch.d.ts +5 -0
- package/dist/components/Switch/SwitchGroup.d.ts +4 -0
- package/dist/components/Switch/index.d.ts +4 -0
- package/dist/components/Switch/switch.token.d.ts +112 -0
- package/dist/components/Switch/types.d.ts +30 -0
- package/dist/components/Switch/utils.d.ts +58 -0
- package/dist/components/Tabs/StyledTabs.d.ts +22 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/TabsContent.d.ts +2 -0
- package/dist/components/Tabs/TabsList.d.ts +8 -0
- package/dist/components/Tabs/TabsTrigger.d.ts +10 -0
- package/dist/components/Tabs/index.d.ts +6 -0
- package/dist/components/Tabs/tabs.token.d.ts +60 -0
- package/dist/components/Tabs/types.d.ts +34 -0
- package/dist/components/Tags/Tags.d.ts +3 -0
- package/dist/components/Tags/index.d.ts +2 -0
- package/dist/components/Tags/tag.tokens.d.ts +57 -0
- package/dist/components/Tags/types.d.ts +35 -0
- package/dist/components/Text/Text.d.ts +12 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/tooltip.tokens.d.ts +31 -0
- package/dist/components/Tooltip/types.d.ts +33 -0
- package/dist/context/ThemeContext.d.ts +66 -0
- package/dist/context/ThemeProvider.d.ts +11 -0
- package/dist/context/index.d.ts +4 -0
- package/dist/context/initComponentTokens.d.ts +4 -0
- package/dist/context/useComponentToken.d.ts +29 -0
- package/dist/foundationToken.d.ts +214 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useBreakPoints.d.ts +4 -0
- package/dist/hooks/useClickOutside.d.ts +3 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useResizeObserver.d.ts +1 -0
- package/dist/hooks/useResponsiveTokens.d.ts +2 -0
- package/dist/hooks/useScrollLock.d.ts +2 -0
- package/dist/main.d.ts +34 -0
- package/dist/main.js +50499 -0
- package/dist/tokens/border.tokens.d.ts +29 -0
- package/dist/tokens/color.tokens.d.ts +16 -0
- package/dist/tokens/font.tokens.d.ts +72 -0
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/opacity.tokens.d.ts +18 -0
- package/dist/tokens/shadows.tokens.d.ts +15 -0
- package/dist/tokens/theme.token.d.ts +16 -0
- package/dist/tokens/unit.tokens.d.ts +34 -0
- package/package.json +99 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { FoundationTokenType } from '../../../tokens/theme.token';
|
|
3
|
+
declare enum OTPInputState {
|
|
4
|
+
DEFAULT = "default",
|
|
5
|
+
HOVER = "hover",
|
|
6
|
+
FOCUS = "focus",
|
|
7
|
+
ERROR = "error",
|
|
8
|
+
DISABLED = "disabled"
|
|
9
|
+
}
|
|
10
|
+
export type OTPInputTokensType = {
|
|
11
|
+
input: {
|
|
12
|
+
gap: CSSObject['gap'];
|
|
13
|
+
borderRadius: CSSObject['borderRadius'];
|
|
14
|
+
boxShadow: {
|
|
15
|
+
[key in OTPInputState]: CSSObject['boxShadow'];
|
|
16
|
+
};
|
|
17
|
+
padding: CSSObject['padding'];
|
|
18
|
+
outline: {
|
|
19
|
+
[key in OTPInputState]: CSSObject['outline'];
|
|
20
|
+
};
|
|
21
|
+
border: {
|
|
22
|
+
[key in OTPInputState]: CSSObject['border'];
|
|
23
|
+
};
|
|
24
|
+
color: {
|
|
25
|
+
[key in OTPInputState]: CSSObject['color'];
|
|
26
|
+
};
|
|
27
|
+
backgroundColor: {
|
|
28
|
+
[key in OTPInputState]: CSSObject['backgroundColor'];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare const otpInputTokens: OTPInputTokensType;
|
|
33
|
+
export declare const getOTPInputTokens: (foundationToken: FoundationTokenType) => OTPInputTokensType;
|
|
34
|
+
export default otpInputTokens;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type OTPProps = {
|
|
2
|
+
label?: string;
|
|
3
|
+
sublabel?: string;
|
|
4
|
+
helpIconHintText?: string;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
hintText?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
form?: string;
|
|
11
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className'>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { FoundationTokenType } from '../../../tokens/theme.token';
|
|
3
|
+
declare enum SearchInputState {
|
|
4
|
+
DEFAULT = "default",
|
|
5
|
+
HOVER = "hover",
|
|
6
|
+
FOCUS = "focus",
|
|
7
|
+
ERROR = "error"
|
|
8
|
+
}
|
|
9
|
+
export type SearchInputTokensType = {
|
|
10
|
+
height: CSSObject['height'];
|
|
11
|
+
width: CSSObject['width'];
|
|
12
|
+
gap: CSSObject['gap'];
|
|
13
|
+
padding: {
|
|
14
|
+
x: CSSObject['padding'];
|
|
15
|
+
y: CSSObject['padding'];
|
|
16
|
+
};
|
|
17
|
+
borderRadius: CSSObject['borderRadius'];
|
|
18
|
+
borderTop: {
|
|
19
|
+
[key in SearchInputState]: CSSObject['borderTop'];
|
|
20
|
+
};
|
|
21
|
+
borderLeft: {
|
|
22
|
+
[key in SearchInputState]: CSSObject['borderTop'];
|
|
23
|
+
};
|
|
24
|
+
borderRight: {
|
|
25
|
+
[key in SearchInputState]: CSSObject['borderRight'];
|
|
26
|
+
};
|
|
27
|
+
borderBottom: {
|
|
28
|
+
[key in SearchInputState]: CSSObject['borderBottom'];
|
|
29
|
+
};
|
|
30
|
+
border?: {
|
|
31
|
+
radius: CSSObject['borderRadius'];
|
|
32
|
+
color: {
|
|
33
|
+
[key in SearchInputState]: CSSObject['borderColor'];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
outline: CSSObject['outline'];
|
|
37
|
+
boxShadow: CSSObject['boxShadow'];
|
|
38
|
+
};
|
|
39
|
+
declare const searchInputTokens: Readonly<SearchInputTokensType>;
|
|
40
|
+
export declare const getSearchInputTokens: (foundationTokens: FoundationTokenType) => SearchInputTokensType;
|
|
41
|
+
export default searchInputTokens;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type SearchInputProps = {
|
|
2
|
+
leftSlot?: React.ReactNode;
|
|
3
|
+
rightSlot?: React.ReactNode;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className'>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TextAreaProps } from './types';
|
|
2
|
+
declare const TextArea: ({ value, placeholder, disabled, autoFocus, onChange, onFocus, onBlur, rows, cols, label, sublabel, hintText, helpIconHintText, required, error, errorMessage, wrap, resize, ...rest }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default TextArea;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { FoundationTokenType } from '../../../tokens/theme.token';
|
|
3
|
+
type TextAreaState = 'default' | 'hover' | 'focus' | 'error' | 'disabled';
|
|
4
|
+
export type TextAreaTokensType = {
|
|
5
|
+
fontFamily: CSSObject['fontFamily'];
|
|
6
|
+
paddingX: CSSObject['padding'];
|
|
7
|
+
paddingY: CSSObject['padding'];
|
|
8
|
+
borderRadius: CSSObject['borderRadius'];
|
|
9
|
+
boxShadow: {
|
|
10
|
+
[key in TextAreaState]: CSSObject['boxShadow'];
|
|
11
|
+
};
|
|
12
|
+
outline: {
|
|
13
|
+
[key in TextAreaState]: CSSObject['outline'];
|
|
14
|
+
};
|
|
15
|
+
border: {
|
|
16
|
+
[key in TextAreaState]: CSSObject['border'];
|
|
17
|
+
};
|
|
18
|
+
color: {
|
|
19
|
+
[key in TextAreaState]: CSSObject['color'];
|
|
20
|
+
};
|
|
21
|
+
backgroundColor: {
|
|
22
|
+
[key in TextAreaState]: CSSObject['backgroundColor'];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const textAreaTokens: TextAreaTokensType;
|
|
26
|
+
export declare const getTextAreaTokens: (foundationTokens: FoundationTokenType) => TextAreaTokensType;
|
|
27
|
+
export default textAreaTokens;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
export type TextAreaProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8
|
+
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
9
|
+
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
10
|
+
rows?: number;
|
|
11
|
+
cols?: number;
|
|
12
|
+
label?: string;
|
|
13
|
+
sublabel?: string;
|
|
14
|
+
hintText?: string;
|
|
15
|
+
helpIconHintText?: string;
|
|
16
|
+
helpIconText?: string;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
error?: boolean;
|
|
19
|
+
errorMessage?: string;
|
|
20
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical' | 'block' | 'inline';
|
|
21
|
+
wrap?: CSSObject['whiteSpace'];
|
|
22
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'style' | 'className'>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TextInputProps } from './types';
|
|
2
|
+
declare const TextInput: ({ size, leftSlot, rightSlot, error, errorMessage, hintText, helpIconHintText, disabled, label, placeholder, sublabel, value, onChange, name, required, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default TextInput;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { FoundationTokenType } from '../../../tokens/theme.token';
|
|
3
|
+
import { TextInputSize, TextInputState } from './types';
|
|
4
|
+
export type TextInputTokensType = {
|
|
5
|
+
input: {
|
|
6
|
+
gap: CSSObject['gap'];
|
|
7
|
+
borderRadius?: CSSObject['borderRadius'];
|
|
8
|
+
boxShadow: {
|
|
9
|
+
[key in TextInputState]: CSSObject['boxShadow'];
|
|
10
|
+
};
|
|
11
|
+
paddingX: {
|
|
12
|
+
[key in TextInputSize]: CSSObject['padding'];
|
|
13
|
+
};
|
|
14
|
+
paddingY: {
|
|
15
|
+
[key in TextInputSize]: CSSObject['padding'];
|
|
16
|
+
};
|
|
17
|
+
border: {
|
|
18
|
+
[key in TextInputState]: CSSObject['border'];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
[key in TextInputState]: CSSObject['color'];
|
|
22
|
+
};
|
|
23
|
+
outline: {
|
|
24
|
+
[key in TextInputState]: CSSObject['outline'];
|
|
25
|
+
};
|
|
26
|
+
backgroundColor: {
|
|
27
|
+
[key in TextInputState]: CSSObject['backgroundColor'];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
declare const textInputTokens: Readonly<TextInputTokensType>;
|
|
32
|
+
export declare const getTextInputTokens: (foundationTheme: FoundationTokenType) => TextInputTokensType;
|
|
33
|
+
export default textInputTokens;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum TextInputSize {
|
|
2
|
+
MEDIUM = "md",
|
|
3
|
+
LARGE = "lg"
|
|
4
|
+
}
|
|
5
|
+
export declare enum TextInputState {
|
|
6
|
+
DEFAULT = "default",
|
|
7
|
+
HOVER = "hover",
|
|
8
|
+
FOCUS = "focus",
|
|
9
|
+
ERROR = "error",
|
|
10
|
+
DISABLED = "disabled"
|
|
11
|
+
}
|
|
12
|
+
export type TextInputProps = {
|
|
13
|
+
label?: string;
|
|
14
|
+
sublabel?: string;
|
|
15
|
+
hintText?: string;
|
|
16
|
+
helpIconHintText?: string;
|
|
17
|
+
error?: boolean;
|
|
18
|
+
errorMessage?: string;
|
|
19
|
+
size?: TextInputSize;
|
|
20
|
+
leftSlot?: React.ReactNode;
|
|
21
|
+
rightSlot?: React.ReactNode;
|
|
22
|
+
value: string;
|
|
23
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className'>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { UnitInputProps } from './types';
|
|
2
|
+
declare const UnitInput: ({ value, onChange, min, max, step, error, errorMessage, required, disabled, size, placeholder, sublabel, helpIconHintText, label, hintText, leftSlot, rightSlot, unit, unitPosition, name, ...rest }: UnitInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default UnitInput;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum UnitInputSize {
|
|
2
|
+
MEDIUM = "md",
|
|
3
|
+
LARGE = "lg"
|
|
4
|
+
}
|
|
5
|
+
export declare enum UnitPosition {
|
|
6
|
+
LEFT = "left",
|
|
7
|
+
RIGHT = "right"
|
|
8
|
+
}
|
|
9
|
+
export type UnitInputProps = {
|
|
10
|
+
value: number;
|
|
11
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
step?: number;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
size?: UnitInputSize;
|
|
17
|
+
label?: string;
|
|
18
|
+
sublabel?: string;
|
|
19
|
+
helpIconHintText?: string;
|
|
20
|
+
hintText?: string;
|
|
21
|
+
leftSlot?: React.ReactNode;
|
|
22
|
+
rightSlot?: React.ReactNode;
|
|
23
|
+
unit: string;
|
|
24
|
+
unitPosition?: UnitPosition;
|
|
25
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className'>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { UnitInputSize } from './types';
|
|
3
|
+
import { FoundationTokenType } from '../../../tokens/theme.token';
|
|
4
|
+
declare enum UnitInputState {
|
|
5
|
+
DEFAULT = "default",
|
|
6
|
+
HOVER = "hover",
|
|
7
|
+
FOCUS = "focus",
|
|
8
|
+
ERROR = "error",
|
|
9
|
+
DISABLED = "disabled"
|
|
10
|
+
}
|
|
11
|
+
export type UnitInputTokensType = {
|
|
12
|
+
input: {
|
|
13
|
+
gap: CSSObject['gap'];
|
|
14
|
+
borderRadius?: CSSObject['borderRadius'];
|
|
15
|
+
boxShadow: {
|
|
16
|
+
[key in UnitInputState]: CSSObject['boxShadow'];
|
|
17
|
+
};
|
|
18
|
+
paddingX: {
|
|
19
|
+
[key in UnitInputSize]: CSSObject['padding'];
|
|
20
|
+
};
|
|
21
|
+
paddingY: {
|
|
22
|
+
[key in UnitInputSize]: CSSObject['padding'];
|
|
23
|
+
};
|
|
24
|
+
border: {
|
|
25
|
+
[key in UnitInputState]: CSSObject['border'];
|
|
26
|
+
};
|
|
27
|
+
color: {
|
|
28
|
+
[key in UnitInputState]: CSSObject['color'];
|
|
29
|
+
};
|
|
30
|
+
outline: {
|
|
31
|
+
[key in UnitInputState]: CSSObject['outline'];
|
|
32
|
+
};
|
|
33
|
+
backgroundColor: {
|
|
34
|
+
[key in UnitInputState]: CSSObject['backgroundColor'];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare const unitInputTokens: UnitInputTokensType;
|
|
39
|
+
export declare const getUnitInputTokens: (foundationTheme: FoundationTokenType) => UnitInputTokensType;
|
|
40
|
+
export default unitInputTokens;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type InputFooterProps = {
|
|
2
|
+
error?: boolean;
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
hintText?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const InputFooter: ({ error, errorMessage, hintText, disabled, }: InputFooterProps) => "" | import("react/jsx-runtime").JSX.Element | undefined;
|
|
8
|
+
export default InputFooter;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type InputLabelsProps = {
|
|
2
|
+
label?: string;
|
|
3
|
+
sublabel?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
helpIconHintText?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @description InputLabels is a component that displays a label and sublabel for an input field.
|
|
11
|
+
* @param {string} label - The label for the input field.
|
|
12
|
+
* @param {string} sublabel - The sublabel for the input field.
|
|
13
|
+
* @param {boolean} disabled - Whether the input field is disabled.
|
|
14
|
+
* @param {string} helpIconHintText - The hint text for the help icon.
|
|
15
|
+
* @param {boolean} required - Whether the input field is required.
|
|
16
|
+
*/
|
|
17
|
+
declare const InputLabels: ({ label, sublabel, disabled, helpIconHintText, name, required, }: InputLabelsProps) => "" | import("react/jsx-runtime").JSX.Element | undefined;
|
|
18
|
+
export default InputLabels;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { MenuV2Props } from './types';
|
|
3
|
+
export declare const contentBaseStyle: CSSObject;
|
|
4
|
+
declare const Menu: {
|
|
5
|
+
({ trigger, items, asModal, alignment, side, sideOffset, alignOffset, collisonBoundaryRef, maxHeight, enableSearch, searchPlaceholder, minWidth, maxWidth, open, onOpenChange, }: MenuV2Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export default Menu;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
declare const MenuGroupLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<RadixMenu.DropdownMenuLabelProps & import('react').RefAttributes<HTMLDivElement>, never>> & string & Omit<import('react').ForwardRefExoticComponent<RadixMenu.DropdownMenuLabelProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
3
|
+
export default MenuGroupLabel;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { MenuItemV2ActionType, MenuItemV2Variant } from './types';
|
|
3
|
+
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
4
|
+
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
5
|
+
export type MenuItemStates = 'default' | 'hover' | 'active' | 'focus' | 'focusVisible' | 'disabled';
|
|
6
|
+
export type MenuTokensType = {
|
|
7
|
+
shadow: CSSObject['boxShadow'];
|
|
8
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
9
|
+
paddingTop: CSSObject['paddingTop'];
|
|
10
|
+
paddingBottom: CSSObject['paddingBottom'];
|
|
11
|
+
border: CSSObject['border'];
|
|
12
|
+
outline: CSSObject['outline'];
|
|
13
|
+
borderRadius: CSSObject['borderRadius'];
|
|
14
|
+
item: {
|
|
15
|
+
padding: CSSObject['padding'];
|
|
16
|
+
margin: CSSObject['margin'];
|
|
17
|
+
borderRadius: CSSObject['borderRadius'];
|
|
18
|
+
backgroundColor: {
|
|
19
|
+
[MenuItemV2Variant.DEFAULT]: {
|
|
20
|
+
enabled: {
|
|
21
|
+
[key in MenuItemStates]: CSSObject['backgroundColor'];
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
[key in MenuItemStates]: CSSObject['backgroundColor'];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
[MenuItemV2Variant.ACTION]: {
|
|
28
|
+
[key in MenuItemV2ActionType]: {
|
|
29
|
+
enabled: {
|
|
30
|
+
[key in MenuItemStates]: CSSObject['backgroundColor'];
|
|
31
|
+
};
|
|
32
|
+
disabled: {
|
|
33
|
+
[key in MenuItemStates]: CSSObject['backgroundColor'];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
cursor: CSSObject['cursor'];
|
|
39
|
+
gap: CSSObject['gap'];
|
|
40
|
+
label: {
|
|
41
|
+
fontSize: CSSObject['fontSize'];
|
|
42
|
+
fontWeight: CSSObject['fontWeight'];
|
|
43
|
+
color: {
|
|
44
|
+
[MenuItemV2Variant.DEFAULT]: {
|
|
45
|
+
enabled: {
|
|
46
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
47
|
+
};
|
|
48
|
+
disabled: {
|
|
49
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
[MenuItemV2Variant.ACTION]: {
|
|
53
|
+
[key in MenuItemV2ActionType]: {
|
|
54
|
+
enabled: {
|
|
55
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
subLabel: {
|
|
65
|
+
fontSize: CSSObject['fontSize'];
|
|
66
|
+
fontWeight: CSSObject['fontWeight'];
|
|
67
|
+
color: {
|
|
68
|
+
[MenuItemV2Variant.DEFAULT]: {
|
|
69
|
+
enabled: {
|
|
70
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
71
|
+
};
|
|
72
|
+
disabled: {
|
|
73
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
[MenuItemV2Variant.ACTION]: {
|
|
77
|
+
[key in MenuItemV2ActionType]: {
|
|
78
|
+
enabled: {
|
|
79
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
80
|
+
};
|
|
81
|
+
disabled: {
|
|
82
|
+
[key in MenuItemStates]: CSSObject['color'];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
seperator: {
|
|
90
|
+
color: CSSObject['color'];
|
|
91
|
+
height: CSSObject['height'];
|
|
92
|
+
margin: CSSObject['margin'];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export type ResponsiveMenuTokensType = {
|
|
96
|
+
[key in keyof BreakpointType]: MenuTokensType;
|
|
97
|
+
};
|
|
98
|
+
declare const menuTokens: MenuTokensType;
|
|
99
|
+
export declare const getMenuTokens: (foundationToken: FoundationTokenType) => ResponsiveMenuTokensType;
|
|
100
|
+
export default menuTokens;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare enum MenuAlignment {
|
|
2
|
+
START = "start",
|
|
3
|
+
CENTER = "center",
|
|
4
|
+
END = "end"
|
|
5
|
+
}
|
|
6
|
+
export declare enum MenuSide {
|
|
7
|
+
TOP = "top",
|
|
8
|
+
LEFT = "left",
|
|
9
|
+
RIGHT = "right",
|
|
10
|
+
BOTTOM = "bottom"
|
|
11
|
+
}
|
|
12
|
+
export type MenuV2Props = {
|
|
13
|
+
trigger: React.ReactNode;
|
|
14
|
+
items?: MenuV2GroupType[];
|
|
15
|
+
maxHeight?: number;
|
|
16
|
+
minHeight?: number;
|
|
17
|
+
maxWidth?: number;
|
|
18
|
+
minWidth?: number;
|
|
19
|
+
enableSearch?: boolean;
|
|
20
|
+
searchPlaceholder?: string;
|
|
21
|
+
open?: boolean;
|
|
22
|
+
onOpenChange?: (open: boolean) => void;
|
|
23
|
+
asModal?: boolean;
|
|
24
|
+
alignment?: MenuAlignment;
|
|
25
|
+
side?: MenuSide;
|
|
26
|
+
sideOffset?: number;
|
|
27
|
+
alignOffset?: number;
|
|
28
|
+
collisonBoundaryRef?: Element | null | Array<Element | null>;
|
|
29
|
+
};
|
|
30
|
+
export declare enum MenuItemV2Variant {
|
|
31
|
+
DEFAULT = "default",
|
|
32
|
+
ACTION = "action"
|
|
33
|
+
}
|
|
34
|
+
export declare enum MenuItemV2ActionType {
|
|
35
|
+
PRIMARY = "primary",
|
|
36
|
+
DANGER = "danger"
|
|
37
|
+
}
|
|
38
|
+
export type MenuItemV2Type = {
|
|
39
|
+
label: string;
|
|
40
|
+
subLabel?: string;
|
|
41
|
+
slot1?: React.ReactNode;
|
|
42
|
+
slot2?: React.ReactNode;
|
|
43
|
+
slot3?: React.ReactNode;
|
|
44
|
+
slot4?: React.ReactNode;
|
|
45
|
+
variant?: MenuItemV2Variant;
|
|
46
|
+
actionType?: MenuItemV2ActionType;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
subMenu?: MenuItemV2Type[];
|
|
50
|
+
};
|
|
51
|
+
export type MenuV2GroupType = {
|
|
52
|
+
label?: string;
|
|
53
|
+
items: MenuItemV2Type[];
|
|
54
|
+
showSeparator?: boolean;
|
|
55
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
3
|
+
export type ModalTokensType = {
|
|
4
|
+
shadow: CSSObject['boxShadow'];
|
|
5
|
+
zIndex: CSSObject['zIndex'];
|
|
6
|
+
borderRadius: CSSObject['borderRadius'];
|
|
7
|
+
headerContainer: {
|
|
8
|
+
padding: CSSObject['padding'];
|
|
9
|
+
borderBottom: CSSObject['borderBottom'];
|
|
10
|
+
borderTop: CSSObject['borderTop'];
|
|
11
|
+
borderLeft: CSSObject['borderLeft'];
|
|
12
|
+
borderRight: CSSObject['borderRight'];
|
|
13
|
+
borderRadius: CSSObject['borderRadius'];
|
|
14
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
15
|
+
header: {
|
|
16
|
+
color: CSSObject['color'];
|
|
17
|
+
fontSize: CSSObject['fontSize'];
|
|
18
|
+
fontWeight: CSSObject['fontWeight'];
|
|
19
|
+
};
|
|
20
|
+
subtitle: {
|
|
21
|
+
color: CSSObject['color'];
|
|
22
|
+
fontSize: CSSObject['fontSize'];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
bodyContainer: {
|
|
26
|
+
padding: CSSObject['padding'];
|
|
27
|
+
borderBottom: CSSObject['borderBottom'];
|
|
28
|
+
borderTop: CSSObject['borderTop'];
|
|
29
|
+
borderLeft: CSSObject['borderLeft'];
|
|
30
|
+
borderRight: CSSObject['borderRight'];
|
|
31
|
+
borderRadius: CSSObject['borderRadius'];
|
|
32
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
33
|
+
};
|
|
34
|
+
footerContainer: {
|
|
35
|
+
padding: CSSObject['padding'];
|
|
36
|
+
borderBottom: CSSObject['borderBottom'];
|
|
37
|
+
borderTop: CSSObject['borderTop'];
|
|
38
|
+
borderLeft: CSSObject['borderLeft'];
|
|
39
|
+
borderRight: CSSObject['borderRight'];
|
|
40
|
+
borderRadius: CSSObject['borderRadius'];
|
|
41
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
42
|
+
alignItems: CSSObject['alignItems'];
|
|
43
|
+
gap: CSSObject['gap'];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const modalTokens: ModalTokensType;
|
|
47
|
+
export declare const getModalComponentTokens: (foundationToken: FoundationTokenType) => ModalTokensType;
|
|
48
|
+
export default modalTokens;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonV2Props } from '../Button';
|
|
3
|
+
type ModalButtonAction = Omit<ButtonV2Props, 'buttonGroupPosition'>;
|
|
4
|
+
export type ModalProps = {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title?: string;
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
primaryAction?: ModalButtonAction;
|
|
11
|
+
secondaryAction?: ModalButtonAction;
|
|
12
|
+
className?: string;
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
showHeader?: boolean;
|
|
15
|
+
showFooter?: boolean;
|
|
16
|
+
closeOnBackdropClick?: boolean;
|
|
17
|
+
customHeader?: ReactNode;
|
|
18
|
+
customFooter?: ReactNode;
|
|
19
|
+
headerRightSlot?: ReactNode;
|
|
20
|
+
showDivider?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MultiSelectProps } from './types';
|
|
2
|
+
declare const MultiSelect: ({ selectedValues, onChange, items, label, sublabel, disabled, helpIconHintText, name, required, variant, selectionTagType, slot, hintText, placeholder, size, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, useDrawerOnMobile, minWidth, maxWidth, maxHeight, alignment, side, sideOffset, alignOffset, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default MultiSelect;
|