@kroo-web/design-system 1.1.106 → 1.1.107
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/dist/cjs/examples/form/index.d.ts +16 -49
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/src/__tests__/setup.d.ts +5 -0
- package/dist/cjs/src/components/Accordion/config.d.ts +1 -1
- package/dist/cjs/src/components/Accordion/index.d.ts +12 -12
- package/dist/cjs/src/components/Button/index.d.ts +6 -6
- package/dist/cjs/src/components/Callout/index.d.ts +2 -2
- package/dist/cjs/src/components/Card/index.d.ts +7 -7
- package/dist/cjs/src/components/Cards/index.d.ts +2 -2
- package/dist/cjs/src/components/Checkbox/index.d.ts +8 -9
- package/dist/cjs/src/components/Columns/index.d.ts +2 -2
- package/dist/cjs/src/components/ComboBox/index.d.ts +8 -9
- package/dist/cjs/src/components/DatePicker/index.d.ts +8 -17
- package/dist/cjs/src/components/Disclosure/index.d.ts +2 -2
- package/dist/cjs/src/components/Form/index.d.ts +7 -3
- package/dist/cjs/src/components/Icon/index.d.ts +2 -2
- package/dist/cjs/src/components/Link/index.d.ts +3 -3
- package/dist/cjs/src/components/Loading/index.d.ts +3 -3
- package/dist/cjs/src/components/Modal/index.d.ts +8 -8
- package/dist/cjs/src/components/NumberField/index.d.ts +10 -20
- package/dist/cjs/src/components/PhoneField/index.d.ts +6 -26
- package/dist/cjs/src/components/PinInput/index.d.ts +8 -7
- package/dist/cjs/src/components/Popover/index.d.ts +2 -2
- package/dist/cjs/src/components/ProgressIndicator/index.d.ts +3 -3
- package/dist/cjs/src/components/RadioGroup/index.d.ts +10 -18
- package/dist/cjs/src/components/Range/index.d.ts +9 -19
- package/dist/cjs/src/components/Select/index.d.ts +13 -14
- package/dist/cjs/src/components/Skeleton/index.d.ts +2 -2
- package/dist/cjs/src/components/Table/index.d.ts +4 -4
- package/dist/cjs/src/components/Tabs/index.d.ts +3 -3
- package/dist/cjs/src/components/Tag/index.d.ts +4 -4
- package/dist/cjs/src/components/TextField/index.d.ts +12 -13
- package/dist/cjs/src/components/Toast/index.d.ts +3 -3
- package/dist/cjs/src/components/Tooltip/index.d.ts +7 -7
- package/dist/cjs/src/components/Typography/index.d.ts +6 -7
- package/dist/cjs/src/components/Wrapper/index.d.ts +7 -7
- package/dist/cjs/src/components/shared/FormField/index.d.ts +4 -4
- package/dist/cjs/src/hooks/useWindowSize.d.ts +1 -1
- package/dist/cjs/src/types/PolymorphicWithoutRef.d.ts +2 -2
- package/dist/cjs/src/utils/decorators/Grid/index.d.ts +1 -1
- package/dist/esm/examples/form/index.d.ts +16 -49
- package/dist/esm/index.js +16 -16
- package/dist/esm/src/__tests__/setup.d.ts +5 -0
- package/dist/esm/src/components/Accordion/config.d.ts +1 -1
- package/dist/esm/src/components/Accordion/index.d.ts +12 -12
- package/dist/esm/src/components/Button/index.d.ts +6 -6
- package/dist/esm/src/components/Callout/index.d.ts +2 -2
- package/dist/esm/src/components/Card/index.d.ts +7 -7
- package/dist/esm/src/components/Cards/index.d.ts +2 -2
- package/dist/esm/src/components/Checkbox/index.d.ts +8 -9
- package/dist/esm/src/components/Columns/index.d.ts +2 -2
- package/dist/esm/src/components/ComboBox/index.d.ts +8 -9
- package/dist/esm/src/components/DatePicker/index.d.ts +8 -17
- package/dist/esm/src/components/Disclosure/index.d.ts +2 -2
- package/dist/esm/src/components/Form/index.d.ts +7 -3
- package/dist/esm/src/components/Icon/index.d.ts +2 -2
- package/dist/esm/src/components/Link/index.d.ts +3 -3
- package/dist/esm/src/components/Loading/index.d.ts +3 -3
- package/dist/esm/src/components/Modal/index.d.ts +8 -8
- package/dist/esm/src/components/NumberField/index.d.ts +10 -20
- package/dist/esm/src/components/PhoneField/index.d.ts +6 -26
- package/dist/esm/src/components/PinInput/index.d.ts +8 -7
- package/dist/esm/src/components/Popover/index.d.ts +2 -2
- package/dist/esm/src/components/ProgressIndicator/index.d.ts +3 -3
- package/dist/esm/src/components/RadioGroup/index.d.ts +10 -18
- package/dist/esm/src/components/Range/index.d.ts +9 -19
- package/dist/esm/src/components/Select/index.d.ts +13 -14
- package/dist/esm/src/components/Skeleton/index.d.ts +2 -2
- package/dist/esm/src/components/Table/index.d.ts +4 -4
- package/dist/esm/src/components/Tabs/index.d.ts +3 -3
- package/dist/esm/src/components/Tag/index.d.ts +4 -4
- package/dist/esm/src/components/TextField/index.d.ts +12 -13
- package/dist/esm/src/components/Toast/index.d.ts +3 -3
- package/dist/esm/src/components/Tooltip/index.d.ts +7 -7
- package/dist/esm/src/components/Typography/index.d.ts +6 -7
- package/dist/esm/src/components/Wrapper/index.d.ts +7 -7
- package/dist/esm/src/components/shared/FormField/index.d.ts +4 -4
- package/dist/esm/src/hooks/useWindowSize.d.ts +1 -1
- package/dist/esm/src/types/PolymorphicWithoutRef.d.ts +2 -2
- package/dist/esm/src/utils/decorators/Grid/index.d.ts +1 -1
- package/dist/types.d.ts +175 -242
- package/package.json +19 -11
- package/dist/cjs/examples/CheckboxWithController/index.d.ts +0 -6
- package/dist/cjs/examples/ComboBoxWithController/index.d.ts +0 -6
- package/dist/cjs/examples/MagicForm/index.d.ts +0 -7
- package/dist/cjs/examples/NumberFieldWithController/index.d.ts +0 -6
- package/dist/cjs/examples/PhoneFieldWithController/index.d.ts +0 -6
- package/dist/cjs/examples/PinInputWithController/index.d.ts +0 -6
- package/dist/cjs/examples/RadioGroupWithController/index.d.ts +0 -8
- package/dist/cjs/src/utils/composeRefs.d.ts +0 -2
- package/dist/cjs/src/utils/parseInt.d.ts +0 -1
- package/dist/esm/examples/CheckboxWithController/index.d.ts +0 -6
- package/dist/esm/examples/ComboBoxWithController/index.d.ts +0 -6
- package/dist/esm/examples/MagicForm/index.d.ts +0 -7
- package/dist/esm/examples/NumberFieldWithController/index.d.ts +0 -6
- package/dist/esm/examples/PhoneFieldWithController/index.d.ts +0 -6
- package/dist/esm/examples/PinInputWithController/index.d.ts +0 -6
- package/dist/esm/examples/RadioGroupWithController/index.d.ts +0 -8
- package/dist/esm/src/utils/composeRefs.d.ts +0 -2
- package/dist/esm/src/utils/parseInt.d.ts +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,201 +1,190 @@
|
|
|
1
|
-
import React$1, { PropsWithChildren, ForwardedRef, ReactNode, DetailedHTMLProps, InputHTMLAttributes, ElementType, ButtonHTMLAttributes, ChangeEvent, OptionHTMLAttributes } from 'react';
|
|
2
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import React$1, { PropsWithChildren, ReactNode, HTMLProps, ElementType, ButtonHTMLAttributes, OptionHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes } from 'react';
|
|
3
3
|
import { MaterialSymbolProps } from 'react-material-symbols';
|
|
4
|
+
import { FieldValues, Path, ControllerRenderProps, UseFormReturn, FieldError } from 'react-hook-form';
|
|
4
5
|
import * as zustand from 'zustand';
|
|
5
6
|
import * as RadixPopover from '@radix-ui/react-popover';
|
|
6
7
|
import * as RadixRadioGroup from '@radix-ui/react-radio-group';
|
|
7
8
|
import * as RadixTabs from '@radix-ui/react-tabs';
|
|
8
9
|
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
9
10
|
|
|
10
|
-
type TAccordionRootProps =
|
|
11
|
-
grouping?: 'attached' | 'detached';
|
|
11
|
+
type TAccordionRootProps = {
|
|
12
12
|
children: React$1.ReactNode;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
grouping?: 'attached' | 'detached';
|
|
14
|
+
} & React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
|
15
|
+
type TAccordionTriggerProps<C extends React$1.ElementType = 'p'> = {
|
|
15
16
|
as?: C;
|
|
16
|
-
size?: 'regular' | 'large';
|
|
17
17
|
controls?: React$1.ReactNode;
|
|
18
|
-
|
|
18
|
+
size?: 'large' | 'regular';
|
|
19
|
+
} & React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;
|
|
19
20
|
declare const Accordion: {
|
|
20
|
-
|
|
21
|
+
Content: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
21
22
|
Item: (props: React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>) => React$1.JSX.Element;
|
|
22
|
-
|
|
23
|
+
Root: (props: TAccordionRootProps) => React$1.JSX.Element;
|
|
24
|
+
Trigger: React$1.ForwardRefExoticComponent<{
|
|
23
25
|
as?: "p" | undefined;
|
|
24
|
-
size?: "regular" | "large";
|
|
25
26
|
controls?: React$1.ReactNode;
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
size?: "large" | "regular";
|
|
28
|
+
} & Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
type Merge<T, U> = Omit<T, keyof U> & U;
|
|
31
|
-
type PropsWithAs<P, T extends React.ElementType> =
|
|
32
|
+
type PropsWithAs<P, T extends React.ElementType> = {
|
|
32
33
|
as?: T;
|
|
33
|
-
};
|
|
34
|
+
} & P;
|
|
34
35
|
type PolymorphicPropsWithoutRef<P, T extends React.ElementType> = Merge<T extends keyof JSX.IntrinsicElements ? React.PropsWithoutRef<JSX.IntrinsicElements[T]> : React.ComponentPropsWithoutRef<T>, PropsWithAs<P, T>>;
|
|
35
36
|
|
|
36
37
|
declare const defaultElement$1 = "button";
|
|
37
38
|
type TButtonVisualTypes = {
|
|
39
|
+
variant?: 'danger' | 'ghost' | 'primary' | 'secondary' | 'tertiary';
|
|
38
40
|
visualType?: 'button';
|
|
39
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger';
|
|
40
41
|
} | {
|
|
42
|
+
variant?: 'danger' | 'ghost' | 'standard';
|
|
41
43
|
visualType?: 'action';
|
|
42
|
-
variant?: 'standard' | 'ghost' | 'danger';
|
|
43
44
|
} | {
|
|
45
|
+
variant?: 'outline' | 'primary' | 'secondary';
|
|
44
46
|
visualType?: 'nav';
|
|
45
|
-
variant?: 'primary' | 'outline' | 'secondary';
|
|
46
47
|
} | {
|
|
47
|
-
visualType?: 'text';
|
|
48
48
|
variant?: 'primary' | 'secondary';
|
|
49
|
+
visualType?: 'text';
|
|
49
50
|
};
|
|
50
51
|
type TButtonOwnProps = {
|
|
51
52
|
as?: 'button' | 'span';
|
|
52
53
|
className?: string;
|
|
53
54
|
onlyIcon?: boolean;
|
|
54
|
-
} & React$1.ButtonHTMLAttributes<HTMLButtonElement> &
|
|
55
|
+
} & PropsWithChildren & React$1.ButtonHTMLAttributes<HTMLButtonElement> & TButtonVisualTypes;
|
|
55
56
|
type TButtonProps<T extends React$1.ElementType = typeof defaultElement$1> = PolymorphicPropsWithoutRef<TButtonOwnProps, T>;
|
|
56
|
-
declare function Button<T extends React$1.ElementType = typeof defaultElement$1>({ as, children,
|
|
57
|
+
declare function Button<T extends React$1.ElementType = typeof defaultElement$1>({ as, children, className, onlyIcon, variant, visualType, ...rest }: TButtonProps<T>): React$1.JSX.Element;
|
|
57
58
|
|
|
58
59
|
type TIconProps = {
|
|
59
|
-
size?: '
|
|
60
|
-
weight?: 'light' | '
|
|
60
|
+
size?: 'large' | 'regular' | 'xlarge';
|
|
61
|
+
weight?: 'light' | 'medium' | 'normal';
|
|
61
62
|
} & Omit<MaterialSymbolProps, 'size' | 'weight'>;
|
|
62
63
|
declare const Icon: ({ size, weight, ...rest }: TIconProps) => React$1.JSX.Element;
|
|
63
64
|
|
|
64
|
-
type TLegacyMarketingText = 'marketing-
|
|
65
|
+
type TLegacyMarketingText = 'marketing-large-light' | 'marketing-large-regular' | 'marketing-large-semi-bold' | 'marketing-medium-light' | 'marketing-medium-regular' | 'marketing-medium-semi-bold' | 'marketing-quote-light' | 'marketing-quote-regular' | 'marketing-quote-semi-bold' | 'marketing-small-light' | 'marketing-small-regular' | 'marketing-small-semi-bold' | 'marketing-tag-light' | 'marketing-tag-regular' | 'marketing-tag-semi-bold' | 'marketing-text-light' | 'marketing-text-regular' | 'marketing-text-semi-bold';
|
|
65
66
|
type TLegacyMarketingHeading = 'marketing-heading-1' | 'marketing-heading-2' | 'marketing-heading-3' | 'marketing-heading-4' | 'marketing-heading-5' | 'marketing-heading-6' | 'marketing-heading-7';
|
|
66
67
|
type TLegacyMarketingFooter = 'footer-regular' | 'footer-semi-bold';
|
|
67
|
-
type TTypography = '
|
|
68
|
-
type TTypographyVariants =
|
|
68
|
+
type TTypography = 'content-large' | 'content-large-light' | 'content-large-semi-bold' | 'content-regular' | 'content-regular-light' | 'content-regular-semi-bold' | 'content-title' | 'content-title-light' | 'content-title-semi-bold' | 'form-button' | 'form-helper' | 'form-input-normal' | 'form-input-semi-bold' | 'form-label' | 'tag';
|
|
69
|
+
type TTypographyVariants = TLegacyMarketingFooter | TLegacyMarketingHeading | TLegacyMarketingText | TTypography;
|
|
69
70
|
type TTypographyProps<C extends React$1.ElementType = 'p'> = {
|
|
70
71
|
as?: C;
|
|
71
|
-
variant?: TTypographyVariants;
|
|
72
72
|
children?: React$1.ReactNode;
|
|
73
73
|
className?: string;
|
|
74
|
+
variant?: TTypographyVariants;
|
|
74
75
|
} & React$1.ComponentPropsWithoutRef<C>;
|
|
75
|
-
declare const
|
|
76
|
-
declare const Typography: React$1.ForwardRefExoticComponent<Omit<TTypographyProps<React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements>>, "ref"> & React$1.RefAttributes<React$1.ElementType<any, keyof React$1.JSX.IntrinsicElements>>>;
|
|
76
|
+
declare const Typography: <C extends React$1.ElementType = "p">({ as, children, className, variant, ...rest }: TTypographyProps<C>) => React$1.JSX.Element;
|
|
77
77
|
|
|
78
78
|
type TCalloutRootProps = {
|
|
79
|
-
type?: '
|
|
79
|
+
type?: 'error' | 'positive' | 'primary' | 'secondary' | 'warning';
|
|
80
80
|
};
|
|
81
81
|
type TCalloutTextProps = TTypographyProps<'p'>;
|
|
82
82
|
declare const Callout: {
|
|
83
|
-
Root: ({ type, children }: PropsWithChildren<TCalloutRootProps>) => React$1.JSX.Element;
|
|
84
83
|
Icon: ({ size, weight, ...rest }: TIconProps) => React$1.JSX.Element;
|
|
84
|
+
Root: ({ children, type }: PropsWithChildren<TCalloutRootProps>) => React$1.JSX.Element;
|
|
85
85
|
Text: ({ children, ...props }: PropsWithChildren<TCalloutTextProps>) => React$1.JSX.Element;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
declare const defaultElement = "div";
|
|
89
89
|
type TCardVariants = {
|
|
90
|
-
|
|
90
|
+
elementType?: 'div';
|
|
91
|
+
radius?: 'large' | 'medium' | 'none' | 'small';
|
|
91
92
|
size?: {
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
horizontal: 'extra-small' | 'large' | 'medium' | 'none' | 'small';
|
|
94
|
+
vertical: 'extra-small' | 'large' | 'medium' | 'none' | 'small';
|
|
94
95
|
};
|
|
95
|
-
|
|
96
|
-
elementType?: 'div';
|
|
96
|
+
visual?: 'primary' | 'secondary' | 'tertiary';
|
|
97
97
|
};
|
|
98
98
|
interface ICardOwnProps extends React$1.HTMLAttributes<HTMLDivElement>, PropsWithChildren {
|
|
99
99
|
as?: 'div';
|
|
100
|
-
variants?: TCardVariants;
|
|
101
100
|
className?: string;
|
|
102
101
|
isSquare?: boolean;
|
|
102
|
+
variants?: TCardVariants;
|
|
103
103
|
}
|
|
104
104
|
type ICardProps<T extends React$1.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<ICardOwnProps, T>;
|
|
105
|
-
declare function Card<T extends React$1.ElementType = typeof defaultElement>({ as, children,
|
|
105
|
+
declare function Card<T extends React$1.ElementType = typeof defaultElement>({ as, children, className, isSquare, variants, ...rest }: ICardProps<T>): React$1.JSX.Element;
|
|
106
106
|
|
|
107
107
|
type CardsVariants = {
|
|
108
|
-
layout?: 'bento-
|
|
108
|
+
layout?: 'bento-five' | 'bento-four' | 'bento-three';
|
|
109
109
|
};
|
|
110
110
|
interface ICardsProps extends PropsWithChildren {
|
|
111
|
-
as: 'div' | 'ol' | '
|
|
111
|
+
as: 'div' | 'ol' | 'section' | 'ul';
|
|
112
112
|
variants: CardsVariants;
|
|
113
113
|
}
|
|
114
114
|
declare const Cards: ({ as, children, variants }: ICardsProps) => React$1.JSX.Element;
|
|
115
115
|
|
|
116
|
-
type TCheckboxProps = {
|
|
117
|
-
id: string;
|
|
118
|
-
label: string | ReactNode;
|
|
119
|
-
disabled?: boolean;
|
|
116
|
+
type TCheckboxProps<T extends FieldValues> = {
|
|
120
117
|
className?: string;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
id: string;
|
|
120
|
+
label: ReactNode | string;
|
|
121
|
+
name: Path<T>;
|
|
122
|
+
variant?: 'checkbox' | 'radio';
|
|
125
123
|
};
|
|
126
|
-
declare const Checkbox:
|
|
124
|
+
declare const Checkbox: <T extends FieldValues>(props: TCheckboxProps<T>) => React$1.JSX.Element;
|
|
127
125
|
|
|
128
126
|
type TColumnsProps = {
|
|
129
|
-
cols: number;
|
|
130
127
|
children: React$1.ReactNode;
|
|
128
|
+
cols: number;
|
|
131
129
|
};
|
|
132
|
-
declare const Columns: ({
|
|
130
|
+
declare const Columns: ({ children, cols }: TColumnsProps) => React$1.JSX.Element;
|
|
133
131
|
|
|
134
132
|
type TComboBoxItem = {
|
|
135
|
-
text: string;
|
|
136
133
|
img?: string;
|
|
137
134
|
render?: ReactNode;
|
|
135
|
+
text: string;
|
|
138
136
|
};
|
|
139
137
|
type TComboBoxProps = {
|
|
138
|
+
alwaysOpen?: boolean;
|
|
139
|
+
field: ControllerRenderProps<FieldValues>;
|
|
140
140
|
label: string;
|
|
141
|
-
|
|
141
|
+
name: string;
|
|
142
142
|
onSelect?: (item: TComboBoxItem) => void;
|
|
143
|
-
|
|
144
|
-
field: {
|
|
145
|
-
value: string;
|
|
146
|
-
onChange: (value: string) => void;
|
|
147
|
-
onBlur: () => void;
|
|
148
|
-
};
|
|
143
|
+
options: TComboBoxItem[];
|
|
149
144
|
};
|
|
150
|
-
declare const ComboBox: (props: TComboBoxProps) => React$1.JSX.Element;
|
|
145
|
+
declare const ComboBox: (props: Omit<TComboBoxProps, "field">) => React$1.JSX.Element;
|
|
146
|
+
declare const Field: ({ alwaysOpen, field: { onBlur, ...restField }, label, onSelect, options }: TComboBoxProps) => React$1.JSX.Element;
|
|
151
147
|
|
|
152
|
-
type
|
|
153
|
-
id: string;
|
|
154
|
-
label: string;
|
|
155
|
-
helper?: {
|
|
156
|
-
message: string;
|
|
157
|
-
};
|
|
148
|
+
type TDatePicker<T extends FieldValues> = {
|
|
158
149
|
disabled?: boolean;
|
|
159
|
-
|
|
150
|
+
helper?: {
|
|
160
151
|
message: string;
|
|
161
152
|
};
|
|
162
|
-
} & React$1.InputHTMLAttributes<HTMLInputElement>;
|
|
163
|
-
declare const DatePicker: React$1.ForwardRefExoticComponent<{
|
|
164
153
|
id: string;
|
|
165
154
|
label: string;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
message: string;
|
|
172
|
-
};
|
|
173
|
-
} & React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>>;
|
|
155
|
+
max?: string;
|
|
156
|
+
min?: string;
|
|
157
|
+
name: Path<T>;
|
|
158
|
+
};
|
|
159
|
+
declare const DatePicker: <T extends FieldValues>(props: TDatePicker<T>) => React$1.JSX.Element;
|
|
174
160
|
|
|
175
161
|
type TDisclosureProps = {
|
|
176
|
-
condition: boolean;
|
|
177
162
|
children: React$1.ReactNode;
|
|
163
|
+
condition: boolean;
|
|
178
164
|
};
|
|
179
|
-
declare const Disclosure: ({
|
|
165
|
+
declare const Disclosure: ({ children, condition }: TDisclosureProps) => React$1.JSX.Element;
|
|
180
166
|
|
|
181
|
-
type TFormProps =
|
|
182
|
-
|
|
167
|
+
type TFormProps<T extends FieldValues> = {
|
|
168
|
+
methods: UseFormReturn<T>;
|
|
169
|
+
onSubmit: (values: T) => void;
|
|
170
|
+
} & PropsWithChildren<HTMLProps<HTMLFormElement>>;
|
|
171
|
+
declare const Form: <T extends FieldValues>({ children, methods, onSubmit, ...rest }: TFormProps<T>) => React$1.JSX.Element;
|
|
183
172
|
|
|
184
173
|
type PolymorphicLink<T extends ElementType> = {
|
|
185
174
|
as?: T;
|
|
186
175
|
className?: string;
|
|
187
176
|
} & PropsWithChildren;
|
|
188
|
-
type AnchorProps =
|
|
177
|
+
type AnchorProps = {
|
|
189
178
|
as?: undefined;
|
|
190
|
-
}
|
|
191
|
-
type TLink<T extends ElementType> = PolymorphicLink<T
|
|
179
|
+
} & React$1.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
180
|
+
type TLink<T extends ElementType> = AnchorProps | PolymorphicLink<T>;
|
|
192
181
|
declare const Link: <T extends ElementType = "a">({ as, children, className, ...rest }: TLink<T>) => React$1.JSX.Element;
|
|
193
182
|
|
|
194
183
|
declare const sizes: {
|
|
195
|
-
small: string;
|
|
196
|
-
medium: string;
|
|
197
|
-
large: string;
|
|
198
184
|
full: string;
|
|
185
|
+
large: string;
|
|
186
|
+
medium: string;
|
|
187
|
+
small: string;
|
|
199
188
|
};
|
|
200
189
|
type TLoadingProps = {
|
|
201
190
|
size?: keyof typeof sizes;
|
|
@@ -204,200 +193,146 @@ declare const Loading: ({ size }: TLoadingProps) => React$1.JSX.Element;
|
|
|
204
193
|
|
|
205
194
|
type TUseModalProps = {
|
|
206
195
|
activeModal: string;
|
|
196
|
+
close: () => void;
|
|
207
197
|
isOpen: boolean;
|
|
208
198
|
open: (value: string) => void;
|
|
209
|
-
close: () => void;
|
|
210
199
|
};
|
|
211
200
|
declare const useModal: zustand.UseBoundStore<zustand.StoreApi<TUseModalProps>>;
|
|
212
201
|
type TModalContentProps = {
|
|
213
202
|
children: React$1.ReactNode;
|
|
214
|
-
value: string;
|
|
215
|
-
focusTrap?: boolean;
|
|
216
203
|
closeOnBackdropClick?: boolean;
|
|
204
|
+
focusTrap?: boolean;
|
|
205
|
+
value: string;
|
|
217
206
|
};
|
|
218
207
|
type TModalControlProps = {
|
|
219
208
|
children: React$1.ReactNode;
|
|
220
209
|
value: string;
|
|
221
210
|
} & TButtonProps;
|
|
222
211
|
type TModalHeaderProps = {
|
|
212
|
+
actionButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
213
|
+
onClick?: () => void;
|
|
223
214
|
title: string;
|
|
224
215
|
variant?: 'action';
|
|
225
|
-
onClick?: () => void;
|
|
226
|
-
actionButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
227
216
|
};
|
|
228
217
|
type TModalButtonProps = PropsWithChildren;
|
|
229
218
|
declare const Buttons: ({ children }: TModalButtonProps) => React$1.JSX.Element;
|
|
230
219
|
declare const Modal: {
|
|
231
|
-
Content: ({ value, children, focusTrap, closeOnBackdropClick }: TModalContentProps) => React$1.JSX.Element;
|
|
232
|
-
Control: ({ value, children, ...rest }: TModalControlProps) => React$1.JSX.Element;
|
|
233
|
-
Header: ({ title, variant, onClick, actionButtonProps }: TModalHeaderProps) => React$1.JSX.Element;
|
|
234
220
|
Buttons: ({ children }: TModalButtonProps) => React$1.JSX.Element;
|
|
221
|
+
Content: ({ children, closeOnBackdropClick, focusTrap, value }: TModalContentProps) => React$1.JSX.Element;
|
|
222
|
+
Control: ({ children, value, ...rest }: TModalControlProps) => React$1.JSX.Element;
|
|
223
|
+
Header: ({ actionButtonProps, onClick, title, variant }: TModalHeaderProps) => React$1.JSX.Element;
|
|
235
224
|
};
|
|
236
225
|
|
|
237
|
-
type TNumberFieldProps = {
|
|
238
|
-
id: string;
|
|
239
|
-
label: string;
|
|
240
|
-
width?: number;
|
|
226
|
+
type TNumberFieldProps<T extends FieldValues> = {
|
|
241
227
|
helper?: {
|
|
242
228
|
message: string;
|
|
243
229
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
* @returns {JSX.Element} The rendered number field component.
|
|
255
|
-
*
|
|
256
|
-
* !!! If using this component with react-hook-form, you will need to wrap this component in a Controller component.
|
|
257
|
-
*/
|
|
258
|
-
declare const NumberField: (props: TNumberFieldProps) => React$1.JSX.Element;
|
|
259
|
-
|
|
260
|
-
type TPhoneFieldProps = {
|
|
261
|
-
id: string;
|
|
230
|
+
label: string;
|
|
231
|
+
max?: number;
|
|
232
|
+
min?: number;
|
|
233
|
+
name: Path<T>;
|
|
234
|
+
width?: number;
|
|
235
|
+
};
|
|
236
|
+
declare const NumberField: <T extends FieldValues>(props: TNumberFieldProps<T>) => React$1.JSX.Element;
|
|
237
|
+
|
|
238
|
+
type TPhoneFieldProps<T extends FieldValues> = {
|
|
239
|
+
className?: string;
|
|
262
240
|
disabled?: boolean;
|
|
263
|
-
error?: {
|
|
264
|
-
message: string;
|
|
265
|
-
};
|
|
266
241
|
helper?: {
|
|
267
242
|
message: ReactNode | string;
|
|
268
243
|
};
|
|
269
|
-
|
|
244
|
+
id: string;
|
|
245
|
+
name: Path<T>;
|
|
270
246
|
placeholder?: string;
|
|
271
|
-
onChange?: (value: {
|
|
272
|
-
code: string;
|
|
273
|
-
number: string;
|
|
274
|
-
formatted: string;
|
|
275
|
-
}) => void;
|
|
276
|
-
onBlur?: () => void;
|
|
277
|
-
value?: {
|
|
278
|
-
code: string;
|
|
279
|
-
number: string;
|
|
280
|
-
formatted: string;
|
|
281
|
-
};
|
|
282
247
|
};
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
* @returns {JSX.Element} The rendered number field component.
|
|
288
|
-
*
|
|
289
|
-
* !!! If using this component with react-hook-form, you will need to wrap this component in a Controller component.
|
|
290
|
-
*/
|
|
291
|
-
declare const PhoneField: (props: TPhoneFieldProps) => React$1.JSX.Element;
|
|
292
|
-
|
|
293
|
-
interface TPinInputProps {
|
|
294
|
-
length: number;
|
|
295
|
-
label: string;
|
|
248
|
+
declare const PhoneField: <T extends FieldValues>(props: TPhoneFieldProps<T>) => React$1.JSX.Element;
|
|
249
|
+
|
|
250
|
+
interface TPinInputProps<T extends FieldValues> {
|
|
251
|
+
isNumeric?: boolean;
|
|
296
252
|
isOTP?: boolean;
|
|
297
253
|
isPassword?: boolean;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
254
|
+
label: string;
|
|
255
|
+
length: number;
|
|
256
|
+
name: Path<T>;
|
|
301
257
|
}
|
|
302
|
-
declare const PinInput:
|
|
258
|
+
declare const PinInput: <T extends FieldValues>(props: TPinInputProps<T>) => React$1.JSX.Element;
|
|
259
|
+
declare const OTPInput: () => React$1.JSX.Element;
|
|
303
260
|
|
|
304
261
|
type TPopoverRootProps = React$1.ComponentPropsWithoutRef<typeof RadixPopover.Root>;
|
|
305
262
|
type TPopoverTriggerProps = React$1.ComponentPropsWithoutRef<typeof RadixPopover.Trigger>;
|
|
306
263
|
type TPopoverContentProps = React$1.ComponentPropsWithoutRef<typeof RadixPopover.Content>;
|
|
307
264
|
declare const Popover: {
|
|
265
|
+
Content: ({ children, ...rest }: TPopoverContentProps) => React$1.JSX.Element;
|
|
308
266
|
Root: (props: TPopoverRootProps) => React$1.JSX.Element;
|
|
309
267
|
Trigger: ({ children, ...rest }: TPopoverTriggerProps) => React$1.JSX.Element;
|
|
310
|
-
Content: ({ children, ...rest }: TPopoverContentProps) => React$1.JSX.Element;
|
|
311
268
|
};
|
|
312
269
|
|
|
313
270
|
type TProgressIndicatorProps = {
|
|
314
|
-
label?: string;
|
|
315
|
-
size?: 'small' | 'medium' | 'full-width';
|
|
316
271
|
current?: number;
|
|
272
|
+
label?: string;
|
|
317
273
|
max?: number;
|
|
274
|
+
size?: 'full-width' | 'medium' | 'small';
|
|
318
275
|
};
|
|
319
|
-
declare const ProgressIndicator: ({
|
|
276
|
+
declare const ProgressIndicator: ({ current, label, max, size }: TProgressIndicatorProps) => React$1.JSX.Element;
|
|
320
277
|
|
|
321
|
-
type TRadioGroupProps = {
|
|
322
|
-
|
|
323
|
-
name?: string;
|
|
278
|
+
type TRadioGroupProps<T extends FieldValues> = {
|
|
279
|
+
error?: FieldError;
|
|
324
280
|
label: string;
|
|
281
|
+
name: Path<T>;
|
|
325
282
|
variant?: 'cards' | 'circle';
|
|
326
|
-
|
|
327
|
-
message: string;
|
|
328
|
-
};
|
|
329
|
-
onChange?: (value: string) => void;
|
|
330
|
-
onBlur?: () => void;
|
|
331
|
-
disabled?: boolean;
|
|
332
|
-
value?: string;
|
|
333
|
-
};
|
|
283
|
+
} & Omit<RadixRadioGroup.RadioGroupProps, 'name'>;
|
|
334
284
|
declare const RadioGroup: {
|
|
335
|
-
Root: React$1.ForwardRefExoticComponent<TRadioGroupProps & {
|
|
336
|
-
children?: React$1.ReactNode | undefined;
|
|
337
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
338
|
-
Item: ({ children, className, variant, ...props }: RadixRadioGroup.RadioGroupItemProps & {
|
|
339
|
-
variant?: "circle" | "cards";
|
|
340
|
-
}) => React$1.JSX.Element;
|
|
341
285
|
Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => React$1.JSX.Element;
|
|
286
|
+
Item: ({ children, className, variant, ...props }: {
|
|
287
|
+
variant?: "cards" | "circle";
|
|
288
|
+
} & RadixRadioGroup.RadioGroupItemProps) => React$1.JSX.Element;
|
|
289
|
+
Root: <T extends FieldValues>({ children, className, disabled, label, name, variant, ...props }: TRadioGroupProps<T>) => React$1.JSX.Element;
|
|
342
290
|
};
|
|
343
291
|
|
|
344
|
-
type TRangeProps = {
|
|
345
|
-
id: string;
|
|
346
|
-
label: string;
|
|
347
|
-
step?: number;
|
|
292
|
+
type TRangeProps<T extends FieldValues> = {
|
|
348
293
|
helper?: {
|
|
349
294
|
message: string;
|
|
350
295
|
};
|
|
351
|
-
error?: {
|
|
352
|
-
message: string;
|
|
353
|
-
};
|
|
354
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
355
|
-
} & Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'>;
|
|
356
|
-
declare const Range: React$1.ForwardRefExoticComponent<{
|
|
357
296
|
id: string;
|
|
358
297
|
label: string;
|
|
298
|
+
max?: number;
|
|
299
|
+
min?: number;
|
|
300
|
+
name: Path<T>;
|
|
301
|
+
showValue?: boolean;
|
|
359
302
|
step?: number;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
};
|
|
363
|
-
error?: {
|
|
364
|
-
message: string;
|
|
365
|
-
};
|
|
366
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
367
|
-
} & Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
303
|
+
};
|
|
304
|
+
declare const Range: <T extends FieldValues>(props: TRangeProps<T>) => React$1.JSX.Element;
|
|
368
305
|
|
|
369
306
|
type TItem = {
|
|
370
307
|
id: string;
|
|
371
308
|
title: string;
|
|
372
309
|
};
|
|
373
|
-
type TSelectProps = {
|
|
374
|
-
|
|
375
|
-
|
|
310
|
+
type TSelectProps<T extends FieldValues> = {
|
|
311
|
+
children?: ReactNode;
|
|
312
|
+
defaultValue?: string;
|
|
313
|
+
disabled?: boolean;
|
|
376
314
|
helper?: {
|
|
377
315
|
message: string;
|
|
378
316
|
};
|
|
317
|
+
id: string;
|
|
379
318
|
items?: {
|
|
380
319
|
id: string;
|
|
381
|
-
title: string;
|
|
382
320
|
props?: OptionHTMLAttributes<HTMLOptionElement>;
|
|
321
|
+
title: string;
|
|
383
322
|
}[];
|
|
384
|
-
|
|
385
|
-
disabled?: boolean;
|
|
386
|
-
defaultValue?: string;
|
|
323
|
+
label: string;
|
|
387
324
|
missing?: boolean;
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
} & DetailedHTMLProps<React$1.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
|
|
393
|
-
declare const Select: React$1.ForwardRefExoticComponent<Omit<TSelectProps, "ref"> & React$1.RefAttributes<HTMLSelectElement>>;
|
|
325
|
+
name: Path<T>;
|
|
326
|
+
placeholder?: string;
|
|
327
|
+
};
|
|
328
|
+
declare const Select: <T extends FieldValues>(props: TSelectProps<T>) => React$1.JSX.Element;
|
|
394
329
|
|
|
395
330
|
type TSkeletonProps = {
|
|
396
|
-
width?: string;
|
|
397
331
|
height?: string;
|
|
398
332
|
rounded?: boolean;
|
|
333
|
+
width?: string;
|
|
399
334
|
};
|
|
400
|
-
declare const Skeleton: ({
|
|
335
|
+
declare const Skeleton: ({ height, rounded, width }: TSkeletonProps) => React$1.JSX.Element;
|
|
401
336
|
|
|
402
337
|
declare const TableRoot: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
403
338
|
declare const TableHead: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
@@ -407,13 +342,13 @@ declare const TableRow: ({ children }: PropsWithChildren) => React$1.JSX.Element
|
|
|
407
342
|
declare const TableData: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
408
343
|
declare const TableFooter: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
409
344
|
declare const Table: {
|
|
410
|
-
Root: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
411
|
-
Head: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
412
|
-
Header: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
413
345
|
Body: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
414
|
-
Row: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
415
346
|
Data: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
416
347
|
Footer: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
348
|
+
Head: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
349
|
+
Header: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
350
|
+
Root: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
351
|
+
Row: ({ children }: PropsWithChildren) => React$1.JSX.Element;
|
|
417
352
|
};
|
|
418
353
|
|
|
419
354
|
type TTabsRoot = React$1.ComponentProps<typeof RadixTabs.Root>;
|
|
@@ -421,87 +356,85 @@ type TTabsList = React$1.ComponentProps<typeof RadixTabs.List>;
|
|
|
421
356
|
type TTabsTrigger = React$1.ComponentProps<typeof RadixTabs.Trigger>;
|
|
422
357
|
type TTabsContent = React$1.ComponentProps<typeof RadixTabs.Content>;
|
|
423
358
|
declare const Tabs: {
|
|
424
|
-
|
|
359
|
+
Content: ({ children, ...rest }: TTabsContent) => React$1.JSX.Element;
|
|
425
360
|
List: ({ children, ...rest }: TTabsList) => React$1.JSX.Element;
|
|
361
|
+
Root: ({ children, ...rest }: TTabsRoot) => React$1.JSX.Element;
|
|
426
362
|
Trigger: ({ children, ...rest }: TTabsTrigger) => React$1.JSX.Element;
|
|
427
|
-
Content: ({ children, ...rest }: TTabsContent) => React$1.JSX.Element;
|
|
428
363
|
};
|
|
429
364
|
|
|
430
365
|
type TTagProps = {
|
|
431
|
-
|
|
366
|
+
children: ReactNode | ReactNode[];
|
|
432
367
|
circularIcon?: boolean;
|
|
433
368
|
className?: string;
|
|
434
369
|
icon: boolean;
|
|
435
|
-
|
|
370
|
+
variant?: 'danger' | 'night' | 'positive' | 'primary' | 'secondary' | 'tertiary' | 'warning';
|
|
436
371
|
};
|
|
437
372
|
declare const Tag: {
|
|
438
|
-
Root: ({ variant, children, className, icon, circularIcon, ...rest }: TTagProps) => React$1.JSX.Element;
|
|
439
|
-
Icon: ({ size, weight, ...rest }: TIconProps) => React$1.JSX.Element;
|
|
440
373
|
Content: ({ children, ...rest }: TTypographyProps) => React$1.JSX.Element;
|
|
374
|
+
Icon: ({ size, weight, ...rest }: TIconProps) => React$1.JSX.Element;
|
|
375
|
+
Root: ({ children, circularIcon, className, icon, variant, ...rest }: TTagProps) => React$1.JSX.Element;
|
|
441
376
|
};
|
|
442
377
|
|
|
443
|
-
type TTextFieldProps = {
|
|
444
|
-
|
|
445
|
-
label: string;
|
|
378
|
+
type TTextFieldProps<T extends FieldValues> = {
|
|
379
|
+
className?: string;
|
|
446
380
|
disabled?: boolean;
|
|
381
|
+
disableError?: boolean;
|
|
447
382
|
helper?: {
|
|
448
383
|
message: ReactNode | string;
|
|
449
384
|
};
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
suffix?: string | ReactNode;
|
|
453
|
-
className?: string;
|
|
454
|
-
rightContent?: ReactNode | string;
|
|
385
|
+
id: string;
|
|
386
|
+
label: string;
|
|
455
387
|
leftContent?: ReactNode | string;
|
|
456
388
|
missing?: boolean;
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
389
|
+
name: Path<T>;
|
|
390
|
+
prefix?: ReactNode | string;
|
|
391
|
+
rightContent?: ReactNode | string;
|
|
392
|
+
suffix?: ReactNode | string;
|
|
393
|
+
type?: DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>['type'];
|
|
461
394
|
} & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
462
|
-
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TTextFieldProps
|
|
395
|
+
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TTextFieldProps<FieldValues>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
463
396
|
|
|
464
397
|
type TToastRootProps = {
|
|
465
398
|
children: React$1.ReactNode;
|
|
466
399
|
};
|
|
467
400
|
type TToastTitleProps = {
|
|
468
|
-
className?: string;
|
|
469
401
|
children: React$1.ReactNode;
|
|
402
|
+
className?: string;
|
|
470
403
|
};
|
|
471
404
|
type TToastDescriptionProps = {
|
|
472
405
|
children: React$1.ReactNode;
|
|
473
406
|
};
|
|
474
407
|
type TToastIconProps = TIconProps;
|
|
475
408
|
declare const Toast: {
|
|
476
|
-
Root: ({ children }: TToastRootProps) => React$1.JSX.Element;
|
|
477
|
-
Title: ({ className, children }: TToastTitleProps) => React$1.JSX.Element;
|
|
478
409
|
Description: ({ children }: TToastDescriptionProps) => React$1.JSX.Element;
|
|
479
410
|
Icon: (props: TToastIconProps) => React$1.JSX.Element;
|
|
411
|
+
Root: ({ children }: TToastRootProps) => React$1.JSX.Element;
|
|
412
|
+
Title: ({ children, className }: TToastTitleProps) => React$1.JSX.Element;
|
|
480
413
|
};
|
|
481
414
|
|
|
482
415
|
type TTooltipRootProps = React$1.ComponentProps<typeof RadixTooltip.Root>;
|
|
483
|
-
type TTooltipTriggerProps =
|
|
416
|
+
type TTooltipTriggerProps = {
|
|
484
417
|
className?: string;
|
|
485
|
-
}
|
|
486
|
-
type TTooltipContentProps =
|
|
418
|
+
} & React$1.ComponentProps<typeof RadixTooltip.Trigger>;
|
|
419
|
+
type TTooltipContentProps = {
|
|
487
420
|
className?: string;
|
|
488
|
-
}
|
|
421
|
+
} & React$1.ComponentProps<typeof RadixTooltip.Content>;
|
|
489
422
|
declare const Tooltip: {
|
|
423
|
+
Content: ({ children, className, ...rest }: TTooltipContentProps) => React$1.JSX.Element;
|
|
490
424
|
Root: ({ children, ...rest }: TTooltipRootProps) => React$1.JSX.Element;
|
|
491
|
-
Trigger: ({
|
|
492
|
-
Content: ({ className, children, ...rest }: TTooltipContentProps) => React$1.JSX.Element;
|
|
425
|
+
Trigger: ({ children, className, ...rest }: TTooltipTriggerProps) => React$1.JSX.Element;
|
|
493
426
|
};
|
|
494
427
|
|
|
495
|
-
interface WrapperProps extends PropsWithChildren {
|
|
496
|
-
as?: 'li' | 'div';
|
|
497
|
-
variants?: WrapperVariants;
|
|
498
|
-
className?: string;
|
|
499
|
-
}
|
|
500
428
|
type WrapperVariants = {
|
|
501
|
-
visual?: 'paper' | 'bento' | 'bento-icon';
|
|
502
429
|
orientation?: 'center';
|
|
503
430
|
type?: 'trustPilot';
|
|
431
|
+
visual?: 'bento' | 'bento-icon' | 'paper';
|
|
504
432
|
};
|
|
505
|
-
|
|
433
|
+
interface WrapperProps extends PropsWithChildren {
|
|
434
|
+
as?: 'div' | 'li';
|
|
435
|
+
className?: string;
|
|
436
|
+
variants?: WrapperVariants;
|
|
437
|
+
}
|
|
438
|
+
declare const Wrapper: ({ as, children, className, variants }: WrapperProps) => React$1.JSX.Element;
|
|
506
439
|
|
|
507
|
-
export { Accordion, Button, Buttons, Callout, Card, Cards, type CardsVariants, Checkbox, Columns, ComboBox, DatePicker, Disclosure, Form, type ICardOwnProps, type ICardProps, type ICardsProps, Icon, Link, Loading, Modal, NumberField, PhoneField, PinInput, Popover, ProgressIndicator, RadioGroup, Range, Select, Skeleton, type TAccordionRootProps, type TAccordionTriggerProps, type TButtonProps, type TCalloutRootProps, type TCalloutTextProps, type TCardVariants, type TCheckboxProps, type TColumnsProps, type TComboBoxItem, type TComboBoxProps, type
|
|
440
|
+
export { Accordion, Button, Buttons, Callout, Card, Cards, type CardsVariants, Checkbox, Columns, ComboBox, DatePicker, Disclosure, Field, Form, type ICardOwnProps, type ICardProps, type ICardsProps, Icon, Link, Loading, Modal, NumberField, OTPInput, PhoneField, PinInput, Popover, ProgressIndicator, RadioGroup, Range, Select, Skeleton, type TAccordionRootProps, type TAccordionTriggerProps, type TButtonProps, type TCalloutRootProps, type TCalloutTextProps, type TCardVariants, type TCheckboxProps, type TColumnsProps, type TComboBoxItem, type TComboBoxProps, type TDatePicker, type TDisclosureProps, type TIconProps, type TItem, type TLegacyMarketingFooter, type TLegacyMarketingHeading, type TLegacyMarketingText, type TLink, type TLoadingProps, type TModalButtonProps, type TModalContentProps, type TModalControlProps, type TModalHeaderProps, type TNumberFieldProps, type TPhoneFieldProps, type TPinInputProps, type TPopoverContentProps, type TPopoverRootProps, type TPopoverTriggerProps, type TProgressIndicatorProps, type TRadioGroupProps, type TRangeProps, type TSelectProps, type TSkeletonProps, type TTabsContent, type TTabsList, type TTabsRoot, type TTabsTrigger, type TTagProps, type TTextFieldProps, type TToastDescriptionProps, type TToastIconProps, type TToastRootProps, type TToastTitleProps, type TTooltipContentProps, type TTooltipRootProps, type TTooltipTriggerProps, type TTypography, type TTypographyProps, type TTypographyVariants, type TUseModalProps, Table, TableBody, TableData, TableFooter, TableHead, TableHeader, TableRoot, TableRow, Tabs, Tag, TextField, Toast, Tooltip, Typography, Wrapper, type WrapperProps, type WrapperVariants, useModal };
|