@bricks-toolkit/toolkit 0.1.11 → 0.1.12
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/package.json +1 -1
- package/dist/Button.types-BsQYqZml.d.ts +0 -27
- package/dist/Button.types-D-srlWFf.d.mts +0 -27
- package/dist/TextInput.types-DRI8HQza.d.mts +0 -32
- package/dist/TextInput.types-DRI8HQza.d.ts +0 -32
- package/dist/Tooltip.types-PbUasE3C.d.mts +0 -36
- package/dist/Tooltip.types-PbUasE3C.d.ts +0 -36
- package/dist/avatar/index.d.mts +0 -29
- package/dist/avatar/index.d.ts +0 -29
- package/dist/badge/index.d.mts +0 -57
- package/dist/badge/index.d.ts +0 -57
- package/dist/breadcrumbs/index.d.mts +0 -32
- package/dist/breadcrumbs/index.d.ts +0 -32
- package/dist/button/index.d.mts +0 -8
- package/dist/button/index.d.ts +0 -8
- package/dist/card/index.d.mts +0 -42
- package/dist/card/index.d.ts +0 -42
- package/dist/checkbox/index.d.mts +0 -36
- package/dist/checkbox/index.d.ts +0 -36
- package/dist/combo-box/index.d.mts +0 -62
- package/dist/combo-box/index.d.ts +0 -62
- package/dist/date-picker/index.d.mts +0 -32
- package/dist/date-picker/index.d.ts +0 -32
- package/dist/dialog/index.d.mts +0 -61
- package/dist/dialog/index.d.ts +0 -61
- package/dist/dropdown-menu/index.d.mts +0 -34
- package/dist/dropdown-menu/index.d.ts +0 -34
- package/dist/email/index.d.mts +0 -38
- package/dist/email/index.d.ts +0 -38
- package/dist/file-upload/index.d.mts +0 -27
- package/dist/file-upload/index.d.ts +0 -27
- package/dist/header/index.d.mts +0 -28
- package/dist/header/index.d.ts +0 -28
- package/dist/icon-button/index.d.mts +0 -16
- package/dist/icon-button/index.d.ts +0 -16
- package/dist/image/index.d.mts +0 -48
- package/dist/image/index.d.ts +0 -48
- package/dist/index.d.mts +0 -141
- package/dist/index.d.ts +0 -141
- package/dist/link/index.d.mts +0 -25
- package/dist/link/index.d.ts +0 -25
- package/dist/loader/index.d.mts +0 -21
- package/dist/loader/index.d.ts +0 -21
- package/dist/modal/index.d.mts +0 -116
- package/dist/modal/index.d.ts +0 -116
- package/dist/multi-select/index.d.mts +0 -59
- package/dist/multi-select/index.d.ts +0 -59
- package/dist/otp-input/index.d.mts +0 -57
- package/dist/otp-input/index.d.ts +0 -57
- package/dist/password-input/index.d.mts +0 -32
- package/dist/password-input/index.d.ts +0 -32
- package/dist/phone/index.d.mts +0 -41
- package/dist/phone/index.d.ts +0 -41
- package/dist/radio-button/index.d.mts +0 -56
- package/dist/radio-button/index.d.ts +0 -56
- package/dist/search-input/index.d.mts +0 -22
- package/dist/search-input/index.d.ts +0 -22
- package/dist/select/index.d.mts +0 -36
- package/dist/select/index.d.ts +0 -36
- package/dist/sidebar/index.d.mts +0 -96
- package/dist/sidebar/index.d.ts +0 -96
- package/dist/skeleton/index.d.mts +0 -76
- package/dist/skeleton/index.d.ts +0 -76
- package/dist/styles.d.mts +0 -2
- package/dist/styles.d.ts +0 -2
- package/dist/table/index.d.mts +0 -92
- package/dist/table/index.d.ts +0 -92
- package/dist/tabs/index.d.mts +0 -26
- package/dist/tabs/index.d.ts +0 -26
- package/dist/text-input/index.d.mts +0 -7
- package/dist/text-input/index.d.ts +0 -7
- package/dist/theme-provider/index.d.mts +0 -122
- package/dist/theme-provider/index.d.ts +0 -122
- package/dist/time-picker/index.d.mts +0 -32
- package/dist/time-picker/index.d.ts +0 -32
- package/dist/toaster/index.d.mts +0 -28
- package/dist/toaster/index.d.ts +0 -28
- package/dist/tooltip/index.d.mts +0 -7
- package/dist/tooltip/index.d.ts +0 -7
package/dist/image/index.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React__default, { ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
4
|
-
/**
|
|
5
|
-
* The source URL of the image.
|
|
6
|
-
*/
|
|
7
|
-
src: string;
|
|
8
|
-
/**
|
|
9
|
-
* The alt text for the image.
|
|
10
|
-
*/
|
|
11
|
-
alt: string;
|
|
12
|
-
/**
|
|
13
|
-
* Optional fallback component or image URL to show if the image fails to load.
|
|
14
|
-
*/
|
|
15
|
-
fallback?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Optional component to show while the image is loading.
|
|
18
|
-
* If not provided, a default Skeleton will be used.
|
|
19
|
-
*/
|
|
20
|
-
loadingComponent?: ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Whether to show a skeleton loader while loading.
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
showSkeleton?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* The aspect ratio of the image container.
|
|
28
|
-
* Useful to prevent layout shift.
|
|
29
|
-
* Example: '16/9', '1/1', '4/3'
|
|
30
|
-
*/
|
|
31
|
-
aspectRatio?: string;
|
|
32
|
-
/**
|
|
33
|
-
* How the image should be fitted in its container.
|
|
34
|
-
* @default 'cover'
|
|
35
|
-
*/
|
|
36
|
-
objectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
37
|
-
/**
|
|
38
|
-
* Container className.
|
|
39
|
-
*/
|
|
40
|
-
containerClassName?: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* A robust Image component with built-in loading states and error handling.
|
|
45
|
-
*/
|
|
46
|
-
declare const Image: React__default.ForwardRefExoticComponent<ImageProps & React__default.RefAttributes<HTMLImageElement>>;
|
|
47
|
-
|
|
48
|
-
export { Image, type ImageProps };
|
package/dist/index.d.mts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
export { Phone, PhoneProps } from './phone/index.mjs';
|
|
2
|
-
export { SearchInput, SearchInputProps } from './search-input/index.mjs';
|
|
3
|
-
export { TextInput } from './text-input/index.mjs';
|
|
4
|
-
export { T as TextInputProps, a as TextInputSize, b as TextInputState } from './TextInput.types-DRI8HQza.mjs';
|
|
5
|
-
export { Button } from './button/index.mjs';
|
|
6
|
-
export { B as ButtonProps, a as ButtonSize, b as ButtonVariant } from './Button.types-D-srlWFf.mjs';
|
|
7
|
-
export { IconButton, IconButtonProps } from './icon-button/index.mjs';
|
|
8
|
-
export { Sidebar, SidebarGroup, SidebarItem, SidebarProps } from './sidebar/index.mjs';
|
|
9
|
-
export { Header, HeaderProps } from './header/index.mjs';
|
|
10
|
-
export { Checkbox, CheckboxProps, CheckboxSize, CheckboxState } from './checkbox/index.mjs';
|
|
11
|
-
export { Toaster, ToasterProps, ToasterStatus, ToasterVariant } from './toaster/index.mjs';
|
|
12
|
-
export { MultiSelect, MultiSelectProps, MultiSelectSize, MultiSelectState, MultiSelectVariant } from './multi-select/index.mjs';
|
|
13
|
-
export { RadioButton, RadioButtonProps, RadioButtonSize, RadioButtonState } from './radio-button/index.mjs';
|
|
14
|
-
export { TimePicker, TimePickerProps, TimePickerSize, TimePickerState, TimePickerVariant } from './time-picker/index.mjs';
|
|
15
|
-
export { DatePicker, DatePickerProps, DatePickerSize, DatePickerState, DatePickerVariant } from './date-picker/index.mjs';
|
|
16
|
-
export { OtpInput, OtpInputProps } from './otp-input/index.mjs';
|
|
17
|
-
export { Email, EmailProps } from './email/index.mjs';
|
|
18
|
-
export { Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardPadding, CardProps, CardTitle, CardTitleProps, CardVariant } from './card/index.mjs';
|
|
19
|
-
export { Link, LinkProps, LinkSize, LinkUnderline, LinkVariant } from './link/index.mjs';
|
|
20
|
-
export { PasswordInput, PasswordInputProps, PasswordInputSize, PasswordInputState, PasswordInputVariant } from './password-input/index.mjs';
|
|
21
|
-
export { TabItem, Tabs, TabsProps, TabsSize, TabsVariant } from './tabs/index.mjs';
|
|
22
|
-
export { Avatar, AvatarProps, AvatarSize, AvatarState, AvatarVariant } from './avatar/index.mjs';
|
|
23
|
-
export { FileUpload, FileUploadProps, FileUploadSize, FileUploadState } from './file-upload/index.mjs';
|
|
24
|
-
export { Dialog, DialogBody, DialogBodyProps, DialogCloseButton, DialogCloseButtonProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogSize } from './dialog/index.mjs';
|
|
25
|
-
export { Modal, ModalBody, ModalBodyProps, ModalCloseButton, ModalCloseButtonProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, ModalSize } from './modal/index.mjs';
|
|
26
|
-
export { ComboBox, ComboBoxOption, ComboBoxProps, ComboBoxSize, ComboBoxState } from './combo-box/index.mjs';
|
|
27
|
-
export { Pagination, PaginationProps, SortDirection, SortState, Table, TableAlign, TableColumn, TableProps, TableSize } from './table/index.mjs';
|
|
28
|
-
export { BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, Breadcrumbs, BreadcrumbsProps } from './breadcrumbs/index.mjs';
|
|
29
|
-
export { Loader, LoaderColor, LoaderProps, LoaderSize, LoaderVariant } from './loader/index.mjs';
|
|
30
|
-
export { Skeleton, SkeletonAvatar, SkeletonAvatarProps, SkeletonCard, SkeletonCardProps, SkeletonProps, SkeletonShape, SkeletonTable, SkeletonTableProps, SkeletonText, SkeletonTextProps, SkeletonVariant } from './skeleton/index.mjs';
|
|
31
|
-
export { Tooltip } from './tooltip/index.mjs';
|
|
32
|
-
export { T as TooltipPlacement, a as TooltipProps, b as TooltipSize, c as TooltipTrigger } from './Tooltip.types-PbUasE3C.mjs';
|
|
33
|
-
export { Badge, BadgeColor, BadgeProps, BadgeShape, BadgeSize, BadgeVariant } from './badge/index.mjs';
|
|
34
|
-
export { DropdownMenu, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuSize, DropdownMenuTrigger, DropdownMenuTriggerProps, DropdownMenuVariant } from './dropdown-menu/index.mjs';
|
|
35
|
-
export { SemanticColors, ThemeConfig, ThemeMode, ThemeProvider, ThemeProviderProps, ThemeProviderState, useTheme } from './theme-provider/index.mjs';
|
|
36
|
-
import { ClassValue } from 'clsx';
|
|
37
|
-
export { Select, SelectOption, SelectProps, SelectSize, SelectState, SelectVariant } from './select/index.mjs';
|
|
38
|
-
export { Image, ImageProps } from './image/index.mjs';
|
|
39
|
-
import { ReactNode, HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
40
|
-
|
|
41
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
42
|
-
|
|
43
|
-
/** Visual style of the stepper. */
|
|
44
|
-
type StepperVariant = 'default' | 'filled' | 'outlined' | 'minimal';
|
|
45
|
-
/** Size token for the stepper. */
|
|
46
|
-
type StepperSize = 'sm' | 'md' | 'lg';
|
|
47
|
-
/** Layout orientation. */
|
|
48
|
-
type StepperOrientation = 'horizontal' | 'vertical';
|
|
49
|
-
/** State of an individual step. */
|
|
50
|
-
type StepStatus = 'completed' | 'active' | 'upcoming' | 'error';
|
|
51
|
-
interface StepItem {
|
|
52
|
-
/** Unique identifier for the step. */
|
|
53
|
-
id: string;
|
|
54
|
-
/** Primary label shown below / beside the step indicator. */
|
|
55
|
-
label: ReactNode;
|
|
56
|
-
/** Optional secondary description text. */
|
|
57
|
-
description?: ReactNode;
|
|
58
|
-
/** Optional custom icon to render inside the step indicator (overrides the step number). */
|
|
59
|
-
icon?: ReactNode;
|
|
60
|
-
/** Marks the step as disabled — cannot be clicked. */
|
|
61
|
-
disabled?: boolean;
|
|
62
|
-
/** Optional extra content/panel revealed when this step is active. */
|
|
63
|
-
content?: ReactNode;
|
|
64
|
-
/** Override status explicitly. When omitted, status is derived from `currentStep`. */
|
|
65
|
-
status?: StepStatus;
|
|
66
|
-
}
|
|
67
|
-
interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
68
|
-
/** Ordered list of steps to render. */
|
|
69
|
-
steps: StepItem[];
|
|
70
|
-
/** Zero-based index of the currently active step. */
|
|
71
|
-
currentStep?: number;
|
|
72
|
-
/** Callback fired when the user clicks a step (passes zero-based index). */
|
|
73
|
-
onChange?: (index: number) => void;
|
|
74
|
-
/** Visual style. Defaults to `'default'`. */
|
|
75
|
-
variant?: StepperVariant;
|
|
76
|
-
/** Size. Defaults to `'md'`. */
|
|
77
|
-
size?: StepperSize;
|
|
78
|
-
/** Layout direction. Defaults to `'horizontal'`. */
|
|
79
|
-
orientation?: StepperOrientation;
|
|
80
|
-
/** Whether steps are clickable for navigation. Defaults to `false`. */
|
|
81
|
-
clickable?: boolean;
|
|
82
|
-
/** Show content panel of the active step below the stepper. Defaults to `true`. */
|
|
83
|
-
showContent?: boolean;
|
|
84
|
-
/** Extra class applied to the step connector line. */
|
|
85
|
-
connectorClassName?: string;
|
|
86
|
-
/** Extra class applied to each step wrapper. */
|
|
87
|
-
stepClassName?: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
|
|
92
|
-
type ToggleSize = 'sm' | 'md' | 'lg';
|
|
93
|
-
type ToggleState = 'default' | 'error' | 'success' | 'warning';
|
|
94
|
-
interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
95
|
-
size?: ToggleSize;
|
|
96
|
-
state?: ToggleState;
|
|
97
|
-
label?: string;
|
|
98
|
-
helperText?: string;
|
|
99
|
-
errorText?: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
|
|
103
|
-
|
|
104
|
-
interface AccordionProps {
|
|
105
|
-
children: ReactNode;
|
|
106
|
-
className?: string;
|
|
107
|
-
allowMultiple?: boolean;
|
|
108
|
-
defaultOpenIndices?: number[];
|
|
109
|
-
}
|
|
110
|
-
interface AccordionItemProps {
|
|
111
|
-
children: ReactNode;
|
|
112
|
-
className?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Optional manual control over open state.
|
|
115
|
-
* If provided, the Accordion's internal group logic is ignored for this item.
|
|
116
|
-
*/
|
|
117
|
-
isOpen?: boolean;
|
|
118
|
-
onToggle?: () => void;
|
|
119
|
-
disabled?: boolean;
|
|
120
|
-
}
|
|
121
|
-
interface AccordionTriggerProps {
|
|
122
|
-
children: ReactNode;
|
|
123
|
-
className?: string;
|
|
124
|
-
/** Hide the default chevron icon */
|
|
125
|
-
hideChevron?: boolean;
|
|
126
|
-
/** Provide a custom icon instead of the default chevron */
|
|
127
|
-
icon?: ReactNode;
|
|
128
|
-
/** Extra content rendered on the right, independent of the toggle button */
|
|
129
|
-
rightContent?: ReactNode;
|
|
130
|
-
}
|
|
131
|
-
interface AccordionContentProps {
|
|
132
|
-
children: ReactNode;
|
|
133
|
-
className?: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare const AccordionItem: ({ children, className, isOpen: controlledIsOpen, onToggle, disabled, }: AccordionItemProps) => React.ReactElement;
|
|
137
|
-
declare const AccordionTrigger: ({ children, className, hideChevron, icon, rightContent, }: AccordionTriggerProps) => React.ReactElement;
|
|
138
|
-
declare const AccordionContent: ({ children, className, }: AccordionContentProps) => React.ReactElement | null;
|
|
139
|
-
declare const Accordion: ({ children, className, allowMultiple, defaultOpenIndices, }: AccordionProps) => React.ReactElement;
|
|
140
|
-
|
|
141
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type StepItem, type StepStatus, Stepper, type StepperOrientation, type StepperProps, type StepperSize, type StepperVariant, Toggle, type ToggleProps, type ToggleSize, type ToggleState, cn };
|
package/dist/index.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
export { Phone, PhoneProps } from './phone/index.js';
|
|
2
|
-
export { SearchInput, SearchInputProps } from './search-input/index.js';
|
|
3
|
-
export { TextInput } from './text-input/index.js';
|
|
4
|
-
export { T as TextInputProps, a as TextInputSize, b as TextInputState } from './TextInput.types-DRI8HQza.js';
|
|
5
|
-
export { Button } from './button/index.js';
|
|
6
|
-
export { B as ButtonProps, a as ButtonSize, b as ButtonVariant } from './Button.types-BsQYqZml.js';
|
|
7
|
-
export { IconButton, IconButtonProps } from './icon-button/index.js';
|
|
8
|
-
export { Sidebar, SidebarGroup, SidebarItem, SidebarProps } from './sidebar/index.js';
|
|
9
|
-
export { Header, HeaderProps } from './header/index.js';
|
|
10
|
-
export { Checkbox, CheckboxProps, CheckboxSize, CheckboxState } from './checkbox/index.js';
|
|
11
|
-
export { Toaster, ToasterProps, ToasterStatus, ToasterVariant } from './toaster/index.js';
|
|
12
|
-
export { MultiSelect, MultiSelectProps, MultiSelectSize, MultiSelectState, MultiSelectVariant } from './multi-select/index.js';
|
|
13
|
-
export { RadioButton, RadioButtonProps, RadioButtonSize, RadioButtonState } from './radio-button/index.js';
|
|
14
|
-
export { TimePicker, TimePickerProps, TimePickerSize, TimePickerState, TimePickerVariant } from './time-picker/index.js';
|
|
15
|
-
export { DatePicker, DatePickerProps, DatePickerSize, DatePickerState, DatePickerVariant } from './date-picker/index.js';
|
|
16
|
-
export { OtpInput, OtpInputProps } from './otp-input/index.js';
|
|
17
|
-
export { Email, EmailProps } from './email/index.js';
|
|
18
|
-
export { Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardPadding, CardProps, CardTitle, CardTitleProps, CardVariant } from './card/index.js';
|
|
19
|
-
export { Link, LinkProps, LinkSize, LinkUnderline, LinkVariant } from './link/index.js';
|
|
20
|
-
export { PasswordInput, PasswordInputProps, PasswordInputSize, PasswordInputState, PasswordInputVariant } from './password-input/index.js';
|
|
21
|
-
export { TabItem, Tabs, TabsProps, TabsSize, TabsVariant } from './tabs/index.js';
|
|
22
|
-
export { Avatar, AvatarProps, AvatarSize, AvatarState, AvatarVariant } from './avatar/index.js';
|
|
23
|
-
export { FileUpload, FileUploadProps, FileUploadSize, FileUploadState } from './file-upload/index.js';
|
|
24
|
-
export { Dialog, DialogBody, DialogBodyProps, DialogCloseButton, DialogCloseButtonProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogSize } from './dialog/index.js';
|
|
25
|
-
export { Modal, ModalBody, ModalBodyProps, ModalCloseButton, ModalCloseButtonProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, ModalSize } from './modal/index.js';
|
|
26
|
-
export { ComboBox, ComboBoxOption, ComboBoxProps, ComboBoxSize, ComboBoxState } from './combo-box/index.js';
|
|
27
|
-
export { Pagination, PaginationProps, SortDirection, SortState, Table, TableAlign, TableColumn, TableProps, TableSize } from './table/index.js';
|
|
28
|
-
export { BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, Breadcrumbs, BreadcrumbsProps } from './breadcrumbs/index.js';
|
|
29
|
-
export { Loader, LoaderColor, LoaderProps, LoaderSize, LoaderVariant } from './loader/index.js';
|
|
30
|
-
export { Skeleton, SkeletonAvatar, SkeletonAvatarProps, SkeletonCard, SkeletonCardProps, SkeletonProps, SkeletonShape, SkeletonTable, SkeletonTableProps, SkeletonText, SkeletonTextProps, SkeletonVariant } from './skeleton/index.js';
|
|
31
|
-
export { Tooltip } from './tooltip/index.js';
|
|
32
|
-
export { T as TooltipPlacement, a as TooltipProps, b as TooltipSize, c as TooltipTrigger } from './Tooltip.types-PbUasE3C.js';
|
|
33
|
-
export { Badge, BadgeColor, BadgeProps, BadgeShape, BadgeSize, BadgeVariant } from './badge/index.js';
|
|
34
|
-
export { DropdownMenu, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuSize, DropdownMenuTrigger, DropdownMenuTriggerProps, DropdownMenuVariant } from './dropdown-menu/index.js';
|
|
35
|
-
export { SemanticColors, ThemeConfig, ThemeMode, ThemeProvider, ThemeProviderProps, ThemeProviderState, useTheme } from './theme-provider/index.js';
|
|
36
|
-
import { ClassValue } from 'clsx';
|
|
37
|
-
export { Select, SelectOption, SelectProps, SelectSize, SelectState, SelectVariant } from './select/index.js';
|
|
38
|
-
export { Image, ImageProps } from './image/index.js';
|
|
39
|
-
import { ReactNode, HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
40
|
-
|
|
41
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
42
|
-
|
|
43
|
-
/** Visual style of the stepper. */
|
|
44
|
-
type StepperVariant = 'default' | 'filled' | 'outlined' | 'minimal';
|
|
45
|
-
/** Size token for the stepper. */
|
|
46
|
-
type StepperSize = 'sm' | 'md' | 'lg';
|
|
47
|
-
/** Layout orientation. */
|
|
48
|
-
type StepperOrientation = 'horizontal' | 'vertical';
|
|
49
|
-
/** State of an individual step. */
|
|
50
|
-
type StepStatus = 'completed' | 'active' | 'upcoming' | 'error';
|
|
51
|
-
interface StepItem {
|
|
52
|
-
/** Unique identifier for the step. */
|
|
53
|
-
id: string;
|
|
54
|
-
/** Primary label shown below / beside the step indicator. */
|
|
55
|
-
label: ReactNode;
|
|
56
|
-
/** Optional secondary description text. */
|
|
57
|
-
description?: ReactNode;
|
|
58
|
-
/** Optional custom icon to render inside the step indicator (overrides the step number). */
|
|
59
|
-
icon?: ReactNode;
|
|
60
|
-
/** Marks the step as disabled — cannot be clicked. */
|
|
61
|
-
disabled?: boolean;
|
|
62
|
-
/** Optional extra content/panel revealed when this step is active. */
|
|
63
|
-
content?: ReactNode;
|
|
64
|
-
/** Override status explicitly. When omitted, status is derived from `currentStep`. */
|
|
65
|
-
status?: StepStatus;
|
|
66
|
-
}
|
|
67
|
-
interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
68
|
-
/** Ordered list of steps to render. */
|
|
69
|
-
steps: StepItem[];
|
|
70
|
-
/** Zero-based index of the currently active step. */
|
|
71
|
-
currentStep?: number;
|
|
72
|
-
/** Callback fired when the user clicks a step (passes zero-based index). */
|
|
73
|
-
onChange?: (index: number) => void;
|
|
74
|
-
/** Visual style. Defaults to `'default'`. */
|
|
75
|
-
variant?: StepperVariant;
|
|
76
|
-
/** Size. Defaults to `'md'`. */
|
|
77
|
-
size?: StepperSize;
|
|
78
|
-
/** Layout direction. Defaults to `'horizontal'`. */
|
|
79
|
-
orientation?: StepperOrientation;
|
|
80
|
-
/** Whether steps are clickable for navigation. Defaults to `false`. */
|
|
81
|
-
clickable?: boolean;
|
|
82
|
-
/** Show content panel of the active step below the stepper. Defaults to `true`. */
|
|
83
|
-
showContent?: boolean;
|
|
84
|
-
/** Extra class applied to the step connector line. */
|
|
85
|
-
connectorClassName?: string;
|
|
86
|
-
/** Extra class applied to each step wrapper. */
|
|
87
|
-
stepClassName?: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
|
|
92
|
-
type ToggleSize = 'sm' | 'md' | 'lg';
|
|
93
|
-
type ToggleState = 'default' | 'error' | 'success' | 'warning';
|
|
94
|
-
interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
95
|
-
size?: ToggleSize;
|
|
96
|
-
state?: ToggleState;
|
|
97
|
-
label?: string;
|
|
98
|
-
helperText?: string;
|
|
99
|
-
errorText?: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
|
|
103
|
-
|
|
104
|
-
interface AccordionProps {
|
|
105
|
-
children: ReactNode;
|
|
106
|
-
className?: string;
|
|
107
|
-
allowMultiple?: boolean;
|
|
108
|
-
defaultOpenIndices?: number[];
|
|
109
|
-
}
|
|
110
|
-
interface AccordionItemProps {
|
|
111
|
-
children: ReactNode;
|
|
112
|
-
className?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Optional manual control over open state.
|
|
115
|
-
* If provided, the Accordion's internal group logic is ignored for this item.
|
|
116
|
-
*/
|
|
117
|
-
isOpen?: boolean;
|
|
118
|
-
onToggle?: () => void;
|
|
119
|
-
disabled?: boolean;
|
|
120
|
-
}
|
|
121
|
-
interface AccordionTriggerProps {
|
|
122
|
-
children: ReactNode;
|
|
123
|
-
className?: string;
|
|
124
|
-
/** Hide the default chevron icon */
|
|
125
|
-
hideChevron?: boolean;
|
|
126
|
-
/** Provide a custom icon instead of the default chevron */
|
|
127
|
-
icon?: ReactNode;
|
|
128
|
-
/** Extra content rendered on the right, independent of the toggle button */
|
|
129
|
-
rightContent?: ReactNode;
|
|
130
|
-
}
|
|
131
|
-
interface AccordionContentProps {
|
|
132
|
-
children: ReactNode;
|
|
133
|
-
className?: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare const AccordionItem: ({ children, className, isOpen: controlledIsOpen, onToggle, disabled, }: AccordionItemProps) => React.ReactElement;
|
|
137
|
-
declare const AccordionTrigger: ({ children, className, hideChevron, icon, rightContent, }: AccordionTriggerProps) => React.ReactElement;
|
|
138
|
-
declare const AccordionContent: ({ children, className, }: AccordionContentProps) => React.ReactElement | null;
|
|
139
|
-
declare const Accordion: ({ children, className, allowMultiple, defaultOpenIndices, }: AccordionProps) => React.ReactElement;
|
|
140
|
-
|
|
141
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type StepItem, type StepStatus, Stepper, type StepperOrientation, type StepperProps, type StepperSize, type StepperVariant, Toggle, type ToggleProps, type ToggleSize, type ToggleState, cn };
|
package/dist/link/index.d.mts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type LinkVariant = 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
4
|
-
type LinkSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
-
type LinkUnderline = 'always' | 'hover' | 'none';
|
|
6
|
-
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
7
|
-
/** The styling variant of the link */
|
|
8
|
-
variant?: LinkVariant;
|
|
9
|
-
/** The text size of the link */
|
|
10
|
-
size?: LinkSize;
|
|
11
|
-
/** Controls when the underline decoration is visible */
|
|
12
|
-
underline?: LinkUnderline;
|
|
13
|
-
/** If true, natively configures target="_blank" and secure rel attributes */
|
|
14
|
-
isExternal?: boolean;
|
|
15
|
-
/** Disables the link securely (removes pointer events and sets aria-disabled) */
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
/** An optional icon element to display before the text */
|
|
18
|
-
leftIcon?: ReactNode;
|
|
19
|
-
/** An optional icon element to display after the text */
|
|
20
|
-
rightIcon?: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
24
|
-
|
|
25
|
-
export { Link, type LinkProps, type LinkSize, type LinkUnderline, type LinkVariant };
|
package/dist/link/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type LinkVariant = 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
4
|
-
type LinkSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
-
type LinkUnderline = 'always' | 'hover' | 'none';
|
|
6
|
-
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
7
|
-
/** The styling variant of the link */
|
|
8
|
-
variant?: LinkVariant;
|
|
9
|
-
/** The text size of the link */
|
|
10
|
-
size?: LinkSize;
|
|
11
|
-
/** Controls when the underline decoration is visible */
|
|
12
|
-
underline?: LinkUnderline;
|
|
13
|
-
/** If true, natively configures target="_blank" and secure rel attributes */
|
|
14
|
-
isExternal?: boolean;
|
|
15
|
-
/** Disables the link securely (removes pointer events and sets aria-disabled) */
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
/** An optional icon element to display before the text */
|
|
18
|
-
leftIcon?: ReactNode;
|
|
19
|
-
/** An optional icon element to display after the text */
|
|
20
|
-
rightIcon?: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
24
|
-
|
|
25
|
-
export { Link, type LinkProps, type LinkSize, type LinkUnderline, type LinkVariant };
|
package/dist/loader/index.d.mts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type LoaderVariant = 'spinner' | 'dots' | 'pulse' | 'bar';
|
|
2
|
-
type LoaderSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
-
type LoaderColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'white' | 'current';
|
|
4
|
-
interface LoaderProps {
|
|
5
|
-
/** Visual style of the loader. Defaults to 'spinner'. */
|
|
6
|
-
variant?: LoaderVariant;
|
|
7
|
-
/** Size of the loader. Defaults to 'md'. */
|
|
8
|
-
size?: LoaderSize;
|
|
9
|
-
/** Color theme. Defaults to 'primary'. */
|
|
10
|
-
color?: LoaderColor;
|
|
11
|
-
/** Screen-reader label. Defaults to 'Loading…'. */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** When true the loader is centred inside a full-page overlay. */
|
|
14
|
-
fullscreen?: boolean;
|
|
15
|
-
/** Additional class for the outermost element. */
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare function Loader({ variant, size, color, label, fullscreen, className, }: LoaderProps): React.JSX.Element;
|
|
20
|
-
|
|
21
|
-
export { Loader, type LoaderColor, type LoaderProps, type LoaderSize, type LoaderVariant };
|
package/dist/loader/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type LoaderVariant = 'spinner' | 'dots' | 'pulse' | 'bar';
|
|
2
|
-
type LoaderSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
-
type LoaderColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'white' | 'current';
|
|
4
|
-
interface LoaderProps {
|
|
5
|
-
/** Visual style of the loader. Defaults to 'spinner'. */
|
|
6
|
-
variant?: LoaderVariant;
|
|
7
|
-
/** Size of the loader. Defaults to 'md'. */
|
|
8
|
-
size?: LoaderSize;
|
|
9
|
-
/** Color theme. Defaults to 'primary'. */
|
|
10
|
-
color?: LoaderColor;
|
|
11
|
-
/** Screen-reader label. Defaults to 'Loading…'. */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** When true the loader is centred inside a full-page overlay. */
|
|
14
|
-
fullscreen?: boolean;
|
|
15
|
-
/** Additional class for the outermost element. */
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare function Loader({ variant, size, color, label, fullscreen, className, }: LoaderProps): React.JSX.Element;
|
|
20
|
-
|
|
21
|
-
export { Loader, type LoaderColor, type LoaderProps, type LoaderSize, type LoaderVariant };
|
package/dist/modal/index.d.mts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full';
|
|
4
|
-
/**
|
|
5
|
-
* Visual style variant of the modal
|
|
6
|
-
* - `default`: Standard surface background with border
|
|
7
|
-
* - `glass`: Glassmorphism effect with blur and translucency
|
|
8
|
-
* - `flat`: No border, flat surface
|
|
9
|
-
*/
|
|
10
|
-
type ModalVariant = 'default' | 'glass' | 'flat';
|
|
11
|
-
/**
|
|
12
|
-
* Position/entry direction of the modal
|
|
13
|
-
* - `top`: Modal appears near the top
|
|
14
|
-
* - `center`: Modal is vertically centered (default dialog)
|
|
15
|
-
* - `bottom`: Slides up from the bottom (bottom sheet)
|
|
16
|
-
* - `left`: Slides in from the left (left drawer)
|
|
17
|
-
* - `right`: Slides in from the right (right drawer)
|
|
18
|
-
*/
|
|
19
|
-
type ModalPosition = 'top' | 'center' | 'bottom' | 'left' | 'right';
|
|
20
|
-
interface ModalProps {
|
|
21
|
-
/** Controls whether the modal is visible */
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
/** Called when the modal should close */
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
/** Content rendered inside the modal */
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Size of the modal
|
|
29
|
-
* @default 'md'
|
|
30
|
-
*/
|
|
31
|
-
size?: ModalSize;
|
|
32
|
-
/**
|
|
33
|
-
* Visual variant of the modal
|
|
34
|
-
* @default 'default'
|
|
35
|
-
*/
|
|
36
|
-
variant?: ModalVariant;
|
|
37
|
-
/**
|
|
38
|
-
* Vertical position of modal on screen
|
|
39
|
-
* @default 'center'
|
|
40
|
-
*/
|
|
41
|
-
position?: ModalPosition;
|
|
42
|
-
/**
|
|
43
|
-
* Close modal when clicking the overlay
|
|
44
|
-
* @default true
|
|
45
|
-
*/
|
|
46
|
-
closeOnOverlayClick?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Close modal when pressing the Escape key
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
closeOnEsc?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Trap focus inside the modal for accessibility
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
trapFocus?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Lock body scroll when modal is open
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
lockScroll?: boolean;
|
|
62
|
-
/** Extra class(es) applied to the modal content panel */
|
|
63
|
-
contentClassName?: string;
|
|
64
|
-
/** Extra class(es) applied to the backdrop overlay */
|
|
65
|
-
overlayClassName?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Show the dark backdrop overlay
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
showBackdrop?: boolean;
|
|
71
|
-
/** aria-label for the dialog (use when no visible title exists) */
|
|
72
|
-
ariaLabel?: string;
|
|
73
|
-
/** ID of the element that labels the dialog */
|
|
74
|
-
ariaLabelledby?: string;
|
|
75
|
-
/** ID of the element that describes the dialog */
|
|
76
|
-
ariaDescribedby?: string;
|
|
77
|
-
}
|
|
78
|
-
interface ModalHeaderProps {
|
|
79
|
-
children: ReactNode;
|
|
80
|
-
className?: string;
|
|
81
|
-
/** Optional decorative icon rendered before the title */
|
|
82
|
-
icon?: ReactNode;
|
|
83
|
-
/** Optional description shown below the title */
|
|
84
|
-
description?: string;
|
|
85
|
-
}
|
|
86
|
-
interface ModalBodyProps {
|
|
87
|
-
children: ReactNode;
|
|
88
|
-
className?: string;
|
|
89
|
-
/** Remove default padding (useful for full-bleed content) */
|
|
90
|
-
noPadding?: boolean;
|
|
91
|
-
}
|
|
92
|
-
interface ModalFooterProps {
|
|
93
|
-
children: ReactNode;
|
|
94
|
-
className?: string;
|
|
95
|
-
/** Left-align the footer actions instead of right-aligning */
|
|
96
|
-
align?: 'left' | 'center' | 'right';
|
|
97
|
-
}
|
|
98
|
-
interface ModalCloseButtonProps {
|
|
99
|
-
onClick?: () => void;
|
|
100
|
-
className?: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface ModalComponent {
|
|
104
|
-
(props: ModalProps): React.ReactPortal | null;
|
|
105
|
-
Header: typeof ModalHeader;
|
|
106
|
-
Body: typeof ModalBody;
|
|
107
|
-
Footer: typeof ModalFooter;
|
|
108
|
-
CloseButton: typeof ModalCloseButton;
|
|
109
|
-
}
|
|
110
|
-
declare const Modal: ModalComponent;
|
|
111
|
-
declare function ModalHeader({ children, className, icon, description, }: ModalHeaderProps): React.JSX.Element;
|
|
112
|
-
declare function ModalBody({ children, className, noPadding, }: ModalBodyProps): React.JSX.Element;
|
|
113
|
-
declare function ModalFooter({ children, className, align, }: ModalFooterProps): React.JSX.Element;
|
|
114
|
-
declare function ModalCloseButton({ onClick, className }: ModalCloseButtonProps): React.JSX.Element;
|
|
115
|
-
|
|
116
|
-
export { Modal, ModalBody, type ModalBodyProps, ModalCloseButton, type ModalCloseButtonProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPosition, type ModalProps, type ModalSize, type ModalVariant };
|
package/dist/modal/index.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full';
|
|
4
|
-
/**
|
|
5
|
-
* Visual style variant of the modal
|
|
6
|
-
* - `default`: Standard surface background with border
|
|
7
|
-
* - `glass`: Glassmorphism effect with blur and translucency
|
|
8
|
-
* - `flat`: No border, flat surface
|
|
9
|
-
*/
|
|
10
|
-
type ModalVariant = 'default' | 'glass' | 'flat';
|
|
11
|
-
/**
|
|
12
|
-
* Position/entry direction of the modal
|
|
13
|
-
* - `top`: Modal appears near the top
|
|
14
|
-
* - `center`: Modal is vertically centered (default dialog)
|
|
15
|
-
* - `bottom`: Slides up from the bottom (bottom sheet)
|
|
16
|
-
* - `left`: Slides in from the left (left drawer)
|
|
17
|
-
* - `right`: Slides in from the right (right drawer)
|
|
18
|
-
*/
|
|
19
|
-
type ModalPosition = 'top' | 'center' | 'bottom' | 'left' | 'right';
|
|
20
|
-
interface ModalProps {
|
|
21
|
-
/** Controls whether the modal is visible */
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
/** Called when the modal should close */
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
/** Content rendered inside the modal */
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Size of the modal
|
|
29
|
-
* @default 'md'
|
|
30
|
-
*/
|
|
31
|
-
size?: ModalSize;
|
|
32
|
-
/**
|
|
33
|
-
* Visual variant of the modal
|
|
34
|
-
* @default 'default'
|
|
35
|
-
*/
|
|
36
|
-
variant?: ModalVariant;
|
|
37
|
-
/**
|
|
38
|
-
* Vertical position of modal on screen
|
|
39
|
-
* @default 'center'
|
|
40
|
-
*/
|
|
41
|
-
position?: ModalPosition;
|
|
42
|
-
/**
|
|
43
|
-
* Close modal when clicking the overlay
|
|
44
|
-
* @default true
|
|
45
|
-
*/
|
|
46
|
-
closeOnOverlayClick?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Close modal when pressing the Escape key
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
closeOnEsc?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Trap focus inside the modal for accessibility
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
trapFocus?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Lock body scroll when modal is open
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
lockScroll?: boolean;
|
|
62
|
-
/** Extra class(es) applied to the modal content panel */
|
|
63
|
-
contentClassName?: string;
|
|
64
|
-
/** Extra class(es) applied to the backdrop overlay */
|
|
65
|
-
overlayClassName?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Show the dark backdrop overlay
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
showBackdrop?: boolean;
|
|
71
|
-
/** aria-label for the dialog (use when no visible title exists) */
|
|
72
|
-
ariaLabel?: string;
|
|
73
|
-
/** ID of the element that labels the dialog */
|
|
74
|
-
ariaLabelledby?: string;
|
|
75
|
-
/** ID of the element that describes the dialog */
|
|
76
|
-
ariaDescribedby?: string;
|
|
77
|
-
}
|
|
78
|
-
interface ModalHeaderProps {
|
|
79
|
-
children: ReactNode;
|
|
80
|
-
className?: string;
|
|
81
|
-
/** Optional decorative icon rendered before the title */
|
|
82
|
-
icon?: ReactNode;
|
|
83
|
-
/** Optional description shown below the title */
|
|
84
|
-
description?: string;
|
|
85
|
-
}
|
|
86
|
-
interface ModalBodyProps {
|
|
87
|
-
children: ReactNode;
|
|
88
|
-
className?: string;
|
|
89
|
-
/** Remove default padding (useful for full-bleed content) */
|
|
90
|
-
noPadding?: boolean;
|
|
91
|
-
}
|
|
92
|
-
interface ModalFooterProps {
|
|
93
|
-
children: ReactNode;
|
|
94
|
-
className?: string;
|
|
95
|
-
/** Left-align the footer actions instead of right-aligning */
|
|
96
|
-
align?: 'left' | 'center' | 'right';
|
|
97
|
-
}
|
|
98
|
-
interface ModalCloseButtonProps {
|
|
99
|
-
onClick?: () => void;
|
|
100
|
-
className?: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface ModalComponent {
|
|
104
|
-
(props: ModalProps): React.ReactPortal | null;
|
|
105
|
-
Header: typeof ModalHeader;
|
|
106
|
-
Body: typeof ModalBody;
|
|
107
|
-
Footer: typeof ModalFooter;
|
|
108
|
-
CloseButton: typeof ModalCloseButton;
|
|
109
|
-
}
|
|
110
|
-
declare const Modal: ModalComponent;
|
|
111
|
-
declare function ModalHeader({ children, className, icon, description, }: ModalHeaderProps): React.JSX.Element;
|
|
112
|
-
declare function ModalBody({ children, className, noPadding, }: ModalBodyProps): React.JSX.Element;
|
|
113
|
-
declare function ModalFooter({ children, className, align, }: ModalFooterProps): React.JSX.Element;
|
|
114
|
-
declare function ModalCloseButton({ onClick, className }: ModalCloseButtonProps): React.JSX.Element;
|
|
115
|
-
|
|
116
|
-
export { Modal, ModalBody, type ModalBodyProps, ModalCloseButton, type ModalCloseButtonProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPosition, type ModalProps, type ModalSize, type ModalVariant };
|