@usefui/components 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +237 -9
- package/dist/index.d.ts +237 -9
- package/dist/index.js +1095 -311
- package/dist/index.mjs +1049 -278
- package/package.json +6 -6
- package/src/avatar/index.tsx +1 -1
- package/src/badge/index.tsx +3 -3
- package/src/breadcrumb/Breadcrumb.stories.tsx +36 -0
- package/src/breadcrumb/index.tsx +117 -0
- package/src/breadcrumb/styles/index.ts +19 -0
- package/src/button/Button.stories.tsx +80 -8
- package/src/button/index.tsx +67 -5
- package/src/button/styles/index.ts +82 -10
- package/src/card/Card.stories.tsx +57 -0
- package/src/card/index.tsx +55 -0
- package/src/card/styles/index.ts +72 -0
- package/src/copy-button/CopyButton.stories.tsx +29 -0
- package/src/copy-button/index.tsx +101 -0
- package/src/dialog/index.tsx +1 -1
- package/src/dropdown/index.tsx +1 -1
- package/src/field/Field.stories.tsx +39 -8
- package/src/field/index.tsx +5 -0
- package/src/field/styles/index.ts +38 -12
- package/src/index.ts +8 -0
- package/src/page/index.tsx +1 -1
- package/src/privacy-field/PrivacyField.stories.tsx +29 -0
- package/src/privacy-field/index.tsx +56 -0
- package/src/privacy-field/styles/index.ts +17 -0
- package/src/resizable/Resizable.stories.tsx +40 -0
- package/src/resizable/index.tsx +108 -0
- package/src/resizable/styles/index.ts +65 -0
- package/src/skeleton/Skeleton.stories.tsx +32 -0
- package/src/skeleton/index.tsx +43 -0
- package/src/skeleton/styles/index.ts +56 -0
- package/src/spinner/Spinner.stories.tsx +27 -0
- package/src/spinner/index.tsx +19 -0
- package/src/spinner/styles/index.ts +43 -0
- package/src/text-area/Textarea.stories.tsx +32 -0
- package/src/text-area/index.tsx +78 -0
- package/src/text-area/styles/index.ts +84 -0
- package/src/tooltip/index.tsx +4 -3
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ type TComponentHeight = "fullscreen" | "display" | "auto";
|
|
|
9
9
|
type TComponentAPI = boolean | string | number | null | unknown;
|
|
10
10
|
type TComponentSize = "small" | "medium" | "large";
|
|
11
11
|
type TComponentSide = "top" | "right" | "bottom" | "left";
|
|
12
|
+
type TComponentShape = "square" | "smooth" | "round";
|
|
12
13
|
type TComponentVariant = "primary" | "secondary" | "tertiary" | "mono" | "border" | "ghost";
|
|
13
14
|
type TKeyBinding = "ctrlKey" | "metaKey" | "altKey" | "shiftKey";
|
|
14
15
|
interface IComponentAPI {
|
|
@@ -34,8 +35,11 @@ interface IComponentSpacing {
|
|
|
34
35
|
spacing?: TComponentSize;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
interface IButtonProperties extends IComponentStyling, IComponentSize,
|
|
38
|
+
interface IButtonProperties extends IComponentStyling, IComponentSize, React$1.ComponentPropsWithRef<"button"> {
|
|
38
39
|
rawicon?: boolean;
|
|
40
|
+
variant?: TComponentVariant | "danger" | "warning";
|
|
41
|
+
shape?: TComponentShape;
|
|
42
|
+
animation?: "reflective";
|
|
39
43
|
}
|
|
40
44
|
/**
|
|
41
45
|
* Buttons are used to initialize an action.
|
|
@@ -48,8 +52,10 @@ interface IButtonProperties extends IComponentStyling, IComponentSize, IComponen
|
|
|
48
52
|
* @param {IButtonProperties} props - The props for the Button component.
|
|
49
53
|
* @param {boolean} props.raw - Define whether the component is styled or not.
|
|
50
54
|
* @param {boolean} props.rawicon - Define whether the component is styles its svg children.
|
|
51
|
-
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to
|
|
55
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to "medium".
|
|
56
|
+
* @param {TComponentShape} props.shape - The size of the component. Defaults to `smooth`.
|
|
52
57
|
* @param {string} props.variant - The style definition used by the component.
|
|
58
|
+
* @param {string} props.animation - The animation that comes with the variant.
|
|
53
59
|
* @param {ReactNode} props.children - The content to be rendered inside the button.
|
|
54
60
|
* @returns {ReactElement} The Button component.
|
|
55
61
|
*/
|
|
@@ -162,7 +168,7 @@ interface IAvatarProperties extends IComponentStyling, IComponentSize, React$1.H
|
|
|
162
168
|
*
|
|
163
169
|
* @param {IAvatarProperties} props - The props for the Avatar component.
|
|
164
170
|
* @param {boolean} props.raw - Whether the avatar is styled or not.
|
|
165
|
-
* @param {ComponentSizeEnum} props.sizing - The size of the avatar. Defaults to
|
|
171
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the avatar. Defaults to "medium".
|
|
166
172
|
* @param {string} props.status - The status of the user represented by the avatar.
|
|
167
173
|
* @param {string} props.src - The source URL of the image to be displayed in the avatar.
|
|
168
174
|
* @param {string} props.alt - The alternative text for the image in the avatar.
|
|
@@ -176,7 +182,7 @@ declare const Avatar: {
|
|
|
176
182
|
|
|
177
183
|
interface IBadgeProperties extends IComponentStyling, React$1.ComponentProps<"div"> {
|
|
178
184
|
variant?: "primary" | "secondary" | "border" | "error" | "warning" | "success" | "meta";
|
|
179
|
-
shape?:
|
|
185
|
+
shape?: TComponentShape;
|
|
180
186
|
}
|
|
181
187
|
/**
|
|
182
188
|
* Badges are used to convey data or states to the users.
|
|
@@ -188,7 +194,7 @@ interface IBadgeProperties extends IComponentStyling, React$1.ComponentProps<"di
|
|
|
188
194
|
*
|
|
189
195
|
* @param {IBadgeProperties} props - The props for the Badge component.
|
|
190
196
|
* @param {boolean} props.raw - Define whether the component is styled or not.
|
|
191
|
-
* @param {
|
|
197
|
+
* @param {TComponentShape} props.shape - The shape of the component. Defaults to `smooth`.
|
|
192
198
|
* @param {string} props.variant - The style definition used by the component.
|
|
193
199
|
* @param {ReactNode} props.children - The content to be rendered inside the Badge.
|
|
194
200
|
* @returns {ReactElement} The Badge component.
|
|
@@ -198,6 +204,100 @@ declare const Badge: {
|
|
|
198
204
|
displayName: string;
|
|
199
205
|
};
|
|
200
206
|
|
|
207
|
+
interface BreadcrumbProps extends React$1.ComponentProps<"div"> {
|
|
208
|
+
navigate?: (href: string) => void;
|
|
209
|
+
capitalizeItems?: boolean;
|
|
210
|
+
path: string;
|
|
211
|
+
}
|
|
212
|
+
interface BreadcrumbItemProps extends IButtonProperties {
|
|
213
|
+
isLastItem?: boolean;
|
|
214
|
+
}
|
|
215
|
+
interface BreadcrumbComposition {
|
|
216
|
+
Item: typeof BreadcrumbItem;
|
|
217
|
+
Separator: typeof BreadcrumbSeparator;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Breadcrumb Item are used to display the path to the current resource.
|
|
221
|
+
*
|
|
222
|
+
* @param {BreadcrumbItemProps} props - The props for the Breadcrumb Item component.
|
|
223
|
+
* @param {boolean} props.isLastItem - Render the item as latest on the links hierarchy.
|
|
224
|
+
* @returns {ReactElement} The Breadcrumb Item component.
|
|
225
|
+
*/
|
|
226
|
+
declare const BreadcrumbItem: {
|
|
227
|
+
(props: BreadcrumbItemProps): React$1.JSX.Element;
|
|
228
|
+
displayName: string;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Breadcrumb Separators are used to display hierarchy of links.
|
|
232
|
+
*
|
|
233
|
+
* @param {React.ComponentProps<"span">} props - The props for the Breadcrumb Separators component.
|
|
234
|
+
* @returns {ReactElement} The Breadcrumb Separators component.
|
|
235
|
+
*/
|
|
236
|
+
declare const BreadcrumbSeparator: {
|
|
237
|
+
(props: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
238
|
+
displayName: string;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Breadcrumbs are used to display the path to the current resource using a hierarchy of links.
|
|
242
|
+
*
|
|
243
|
+
* @param {BreadcrumbProps} props - The props for the Breadcrumb component.
|
|
244
|
+
* @param {boolean} props.capitalizeItems - Render the current path with a capitalized case. Defaults to 'true'.
|
|
245
|
+
* @param {string} props.path - The current path.
|
|
246
|
+
* @param {function} props.navigate - The function used to redirect to the path route.
|
|
247
|
+
* @returns {ReactElement} The Breadcrumb component.
|
|
248
|
+
*/
|
|
249
|
+
declare const Breadcrumb: {
|
|
250
|
+
(props: BreadcrumbProps): React$1.JSX.Element | null;
|
|
251
|
+
displayName: string;
|
|
252
|
+
Item: {
|
|
253
|
+
(props: BreadcrumbItemProps): React$1.JSX.Element;
|
|
254
|
+
displayName: string;
|
|
255
|
+
};
|
|
256
|
+
Separator: {
|
|
257
|
+
(props: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
258
|
+
displayName: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
interface CardComposition {
|
|
263
|
+
Body: typeof CardBody;
|
|
264
|
+
Meta: typeof CardMeta;
|
|
265
|
+
Grid: typeof CardGrid;
|
|
266
|
+
}
|
|
267
|
+
interface CardGridProps extends React$1.ComponentProps<"div">, IComponentSize {
|
|
268
|
+
}
|
|
269
|
+
interface CardProps extends React$1.ComponentProps<"div"> {
|
|
270
|
+
shape?: TComponentShape;
|
|
271
|
+
}
|
|
272
|
+
declare const CardGrid: {
|
|
273
|
+
(props: CardGridProps): React$1.JSX.Element;
|
|
274
|
+
displayName: string;
|
|
275
|
+
};
|
|
276
|
+
declare const CardMeta: {
|
|
277
|
+
(props: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
278
|
+
displayName: string;
|
|
279
|
+
};
|
|
280
|
+
declare const CardBody: {
|
|
281
|
+
(props: CardProps): React$1.JSX.Element;
|
|
282
|
+
displayName: string;
|
|
283
|
+
};
|
|
284
|
+
declare const Card: {
|
|
285
|
+
(props: CardProps): React$1.JSX.Element;
|
|
286
|
+
displayName: string;
|
|
287
|
+
Grid: {
|
|
288
|
+
(props: CardGridProps): React$1.JSX.Element;
|
|
289
|
+
displayName: string;
|
|
290
|
+
};
|
|
291
|
+
Meta: {
|
|
292
|
+
(props: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
293
|
+
displayName: string;
|
|
294
|
+
};
|
|
295
|
+
Body: {
|
|
296
|
+
(props: CardProps): React$1.JSX.Element;
|
|
297
|
+
displayName: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
|
|
201
301
|
interface ICheckboxComposition {
|
|
202
302
|
Root: typeof CheckboxRoot;
|
|
203
303
|
Indicator: typeof CheckboxIndicator;
|
|
@@ -315,6 +415,34 @@ declare const CollapsibleContent: {
|
|
|
315
415
|
displayName: string;
|
|
316
416
|
};
|
|
317
417
|
|
|
418
|
+
type TooltipValueProperties = {
|
|
419
|
+
copyLabel?: string;
|
|
420
|
+
copiedLabel?: string;
|
|
421
|
+
};
|
|
422
|
+
interface CopyButtonProperties extends IButtonProperties {
|
|
423
|
+
delay?: number;
|
|
424
|
+
value: string;
|
|
425
|
+
tooltip?: TooltipValueProperties;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* CopyButton are used to copy stored values when clicked.
|
|
429
|
+
*
|
|
430
|
+
* @param {IButtonProperties} props - The props for the CopyButton component.
|
|
431
|
+
* @param {boolean} props.raw - Define whether the component is styled or not.
|
|
432
|
+
* @param {boolean} props.rawicon - Define whether the component is styles its svg children.
|
|
433
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to `medium`.
|
|
434
|
+
* @param {string} props.variant - The style definition used by the component.
|
|
435
|
+
* @param {string} props.value - The value copied when the CopyButton is clicked.
|
|
436
|
+
* @param {number} props.delay - The delay used to rendered the state change.
|
|
437
|
+
* @param {TooltipValueProperties} props.tooltip - The values used to convey the copy state.
|
|
438
|
+
* @param {ReactNode} props.children - The content to be rendered inside the CopyButton.
|
|
439
|
+
* @returns {ReactElement} The CopyButton component.
|
|
440
|
+
*/
|
|
441
|
+
declare const CopyButton: {
|
|
442
|
+
({ value, delay, tooltip, children, ...restProps }: CopyButtonProperties): React$1.JSX.Element;
|
|
443
|
+
displayName: string;
|
|
444
|
+
};
|
|
445
|
+
|
|
318
446
|
interface IDialogItemProperties extends IComponentStyling, IComponentSize, IScrollAreaProperties, React$1.ComponentProps<"dialog"> {
|
|
319
447
|
lock?: boolean;
|
|
320
448
|
}
|
|
@@ -329,7 +457,7 @@ interface IDialogItemProperties extends IComponentStyling, IComponentSize, IScro
|
|
|
329
457
|
*
|
|
330
458
|
* @param {IDialogItemProperties} props - The props for the Dialog component.
|
|
331
459
|
* @param {boolean} props.raw - Define whether the component is styled or not.
|
|
332
|
-
* @param {ComponentSizeEnum} props.sizing - The size of the component.
|
|
460
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to "medium".
|
|
333
461
|
* @param {boolean} props.open - Whether the dialog is open or not.
|
|
334
462
|
* @param {ReactNode} props.children - The content to be rendered inside the dialog.
|
|
335
463
|
* @returns {ReactElement} The Dialog component.
|
|
@@ -482,7 +610,7 @@ declare const DropdownMenuTrigger: {
|
|
|
482
610
|
*
|
|
483
611
|
* @param {IDropdownContentProperties} props - The props for the DropdownMenu.Content component.
|
|
484
612
|
* @param {boolean} props.raw - Define whether the component is styled or not.
|
|
485
|
-
* @param {ComponentSizeEnum} props.sizing - The size of the component.
|
|
613
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to "medium".
|
|
486
614
|
* @param {boolean} props.defaultOpen - The initial open state of the dropdown menu. Defaults to false.
|
|
487
615
|
* @param {ReactNode} props.children - The content to be rendered inside the dropdown menu.
|
|
488
616
|
* @returns {ReactElement} The DropdownMenu.Content component.
|
|
@@ -509,6 +637,7 @@ declare enum MetaVariantEnum {
|
|
|
509
637
|
}
|
|
510
638
|
type TMetaVariant = "default" | "hint" | "emphasis" | "error";
|
|
511
639
|
interface IField extends React$1.ComponentProps<"input">, IComponentSize, IComponentVariant, IComponentStyling {
|
|
640
|
+
shape?: TComponentShape;
|
|
512
641
|
hint?: string;
|
|
513
642
|
error?: string;
|
|
514
643
|
}
|
|
@@ -536,6 +665,7 @@ interface IFieldComposition {
|
|
|
536
665
|
* @param {boolean} props.raw - Define whether the component is styled or not.
|
|
537
666
|
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to `medium`.
|
|
538
667
|
* @param {string} props.variant - The style definition used by the component.
|
|
668
|
+
* @param {TComponentShape} props.shape - The size of the component. Defaults to `smooth`.
|
|
539
669
|
* @param {string} props.error - The error message to display.
|
|
540
670
|
* @param {string} props.hint - The hint message to display.
|
|
541
671
|
* @returns {ReactElement} The Field component.
|
|
@@ -739,7 +869,7 @@ declare const PageNavigation: {
|
|
|
739
869
|
* @param {string} props.shortcut - The key combination used as keyboard shortcuts to trigger the Page.Toolbar.
|
|
740
870
|
* @param {string} props.hotkey - The key to use in the key combination for the keyboard shortcuts.
|
|
741
871
|
* @param {KeyBindingEnum} props.bindkey - The modifier key to use in the key combination.
|
|
742
|
-
* @param {ComponentSizeEnum} props.sizing - The size of the Page.Toolbar.
|
|
872
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the Page.Toolbar. Defaults to "medium".
|
|
743
873
|
* @param {ComponentHeightEnum} props.height - The height definition of the Page.Toolbar.
|
|
744
874
|
* @param {TComponentSide} props.side - The side of the Page.Toolbar.
|
|
745
875
|
* @param {boolean} props.defaultOpen - Whether the Page.Toolbar should be open by default.
|
|
@@ -812,6 +942,50 @@ declare const Portal: {
|
|
|
812
942
|
displayName: string;
|
|
813
943
|
};
|
|
814
944
|
|
|
945
|
+
type PrivacyType = "password" | "text";
|
|
946
|
+
interface PrivacyFieldProps extends IField {
|
|
947
|
+
defaultType?: PrivacyType;
|
|
948
|
+
textIcon: React$1.ReactNode;
|
|
949
|
+
passwordIcon: React$1.ReactNode;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* PrivacyFields are used to hide sensitive values typed by users.
|
|
953
|
+
*
|
|
954
|
+
* @param {PrivacyFieldProps} props - The props for the PrivacyField component.
|
|
955
|
+
* @param {boolean} props.raw - Define whether the component is styled or not.
|
|
956
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to `medium`.
|
|
957
|
+
* @param {string} props.variant - The style definition used by the component.
|
|
958
|
+
* @param {string} props.error - The error message to display.
|
|
959
|
+
* @param {string} props.hint - The hint message to display.
|
|
960
|
+
* @param {string} props.defaultType - The type of the PrivacyField when rendered.
|
|
961
|
+
* @param {ReactElement} props.textIcon - The Icon used to convey the text type information.
|
|
962
|
+
* @param {ReactElement} props.passwordIcon - The Icon used to convey the password type information.
|
|
963
|
+
* @returns {ReactElement} The PrivacyField component.
|
|
964
|
+
*/
|
|
965
|
+
declare const PrivacyField: {
|
|
966
|
+
({ defaultType, textIcon, passwordIcon, ...restProps }: PrivacyFieldProps): React$1.JSX.Element;
|
|
967
|
+
displayName: string;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
type ResizableEditorProperties = {
|
|
971
|
+
defaultWidth?: number;
|
|
972
|
+
left: React$1.ReactNode;
|
|
973
|
+
right: React$1.ReactNode;
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* Resizable are used to render children into separated sections that can be resized by users.
|
|
977
|
+
*
|
|
978
|
+
* @param {ResizableEditorProperties} props - The props for the Resizable component.
|
|
979
|
+
* @param {number} props.defaultWidth - The default width of the Resizable left section.
|
|
980
|
+
* @param {ReactNode} props.left - The content to be rendered inside the Left panel of the Resizable component.
|
|
981
|
+
* @param {ReactNode} props.right - The content to be rendered inside the Right panel of the Resizable component.
|
|
982
|
+
* @returns {ReactElement} The Resizable component.
|
|
983
|
+
*/
|
|
984
|
+
declare const Resizable: {
|
|
985
|
+
({ defaultWidth, left, right, }: ResizableEditorProperties): React$1.JSX.Element;
|
|
986
|
+
displayName: string;
|
|
987
|
+
};
|
|
988
|
+
|
|
815
989
|
interface ISheetProperties extends IComponentStyling, IComponentSize, IComponentControlProperties, React$1.ComponentProps<"dialog"> {
|
|
816
990
|
side?: "left" | "right";
|
|
817
991
|
lock?: boolean;
|
|
@@ -889,6 +1063,33 @@ interface IScrollAreaProperties extends React$1.ComponentProps<any> {
|
|
|
889
1063
|
*/
|
|
890
1064
|
declare const ScrollArea: ({ scrollbar, children, ...restProps }: IScrollAreaProperties) => React$1.JSX.Element;
|
|
891
1065
|
|
|
1066
|
+
interface SpinnerProperties extends IComponentSize {
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Spinners are used to convoy a loading state information.
|
|
1070
|
+
*
|
|
1071
|
+
* @param {TextareaProps} props - The props for the Spinner component.
|
|
1072
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to `medium`.
|
|
1073
|
+
* @returns {ReactElement} The Spinner component.
|
|
1074
|
+
*/
|
|
1075
|
+
declare const Spinner: (props: SpinnerProperties) => React$1.JSX.Element;
|
|
1076
|
+
|
|
1077
|
+
interface SkeletonProperties extends IComponentSize, React$1.ComponentPropsWithRef<"span"> {
|
|
1078
|
+
shape?: TComponentShape;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Skeletons are used to convoy a loading state information.
|
|
1082
|
+
*
|
|
1083
|
+
* @param {IButtonProperties} props - The props for the Skeleton component.
|
|
1084
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to `medium`.
|
|
1085
|
+
* @param {TComponentShape} props.shape - The size of the component. Defaults to `smooth`.
|
|
1086
|
+
* @returns {ReactElement} The Skeleton component.
|
|
1087
|
+
*/
|
|
1088
|
+
declare const Skeleton: {
|
|
1089
|
+
(props: SkeletonProperties): React$1.ReactElement;
|
|
1090
|
+
displayName: string;
|
|
1091
|
+
};
|
|
1092
|
+
|
|
892
1093
|
interface ISwitchComposition {
|
|
893
1094
|
Root: typeof SwitchRoot;
|
|
894
1095
|
Thumb: typeof SwitchThumb;
|
|
@@ -1109,6 +1310,33 @@ declare const TabsContent: {
|
|
|
1109
1310
|
displayName: string;
|
|
1110
1311
|
};
|
|
1111
1312
|
|
|
1313
|
+
type ScrollContainerProps = {
|
|
1314
|
+
$height?: string;
|
|
1315
|
+
$width?: string;
|
|
1316
|
+
$thumbColor?: string;
|
|
1317
|
+
$trackColor?: string;
|
|
1318
|
+
$thumbHoverColor?: string;
|
|
1319
|
+
};
|
|
1320
|
+
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, IComponentStyling, IComponentSize, IComponentVariant {
|
|
1321
|
+
resizable?: boolean;
|
|
1322
|
+
shape?: "square" | "smooth";
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Textarea are used to allow users to write large chunks of text.
|
|
1326
|
+
*
|
|
1327
|
+
* @param {TextareaProps} props - The props for the Textarea component.
|
|
1328
|
+
* @param {string} props.variant - The style definition used by the component. Defaults to `secondary`.
|
|
1329
|
+
* @param {TComponentShape} props.shape - The size of the component. Defaults to `smooth`.
|
|
1330
|
+
* @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to `medium`.
|
|
1331
|
+
* @param {boolean} props.resizable - Define whether the component is resizable or not. Defaults to 'true'.
|
|
1332
|
+
*
|
|
1333
|
+
* @returns {ReactElement} The TextareaProps component.
|
|
1334
|
+
*/
|
|
1335
|
+
declare const Textarea: {
|
|
1336
|
+
(props: TextareaProps): React$1.JSX.Element;
|
|
1337
|
+
displayName: string;
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1112
1340
|
interface IToggleProperties extends IButtonProperties {
|
|
1113
1341
|
defaultChecked?: boolean;
|
|
1114
1342
|
}
|
|
@@ -1296,4 +1524,4 @@ declare const useTabs: () => IComponentAPI;
|
|
|
1296
1524
|
|
|
1297
1525
|
declare const useToolbar: () => IComponentAPI;
|
|
1298
1526
|
|
|
1299
|
-
export { Accordion, AccordionContent, AccordionRoot, AccordionTrigger, AvataStatusEnum, Avatar, Badge, Button, Checkbox, CheckboxIndicator, CheckboxRoot, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, Dialog, DialogControl, DialogMenu, DialogOverlay, DialogRoot, DialogTrigger, Divider, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuTrigger, Field, FieldLabel, FieldMeta, FieldRoot, FieldWrapper, type IAccordionComposition, type IAccordionContentProperties, type IAccordionProperties, type IAccordionTriggerProperties, type IAvatarProperties, type IButtonProperties, type ICheckboxComposition, type ICheckboxProperties, type ICollapsibleComposition, type ICollapsibleProperties, type IDialogItemProperties, type IDropdownComposition, type IDropdownContentProperties, type IDropdownItemProperties, type IField, type IFieldComposition, type IFieldLabel, type IFieldMeta, type IOTPFieldComposition, type IOverlayProperties, type IPageToolsProperties, type IPageWrapperProperties, type IPortalProperties, type IScrollAreaProperties, type ISheetComposition, type ISheetProperties, type ISwitchComposition, type ISwitchProperties, type ISwitchThumbProperties, type ITabsComposition, type ITabsProperties, type IToggleProperties, type IToolbarBodyProperties, type IToolbarComposition, type IToolbarItemProperties, type IToolbarSectionProperties, MetaVariantEnum, OTPField, OTPFieldSlot, Overlay, Page, PageContent, PageMenu, PageNavigation, PagePanel, PageTools, PageWrapper, Portal, ScrollArea, Sheet, SheetRoot, SheetTrigger, Switch, SwitchRoot, SwitchThumb, type TMetaVariant, Table, TableBody, TableCell, TableFooter, TableHead, TableHeadCell, TableRow, Tabs, TabsContent, TabsRoot, TabsTrigger, Toggle, Toolbar, ToolbarItem, ToolbarRoot, ToolbarSection, ToolbarTrigger, Tooltip, useAccordion, useCheckbox, useCollapsible, useDialog, useDropdownMenu, useField, useSheet, useSwitch, useTabs, useToolbar };
|
|
1527
|
+
export { Accordion, AccordionContent, AccordionRoot, AccordionTrigger, AvataStatusEnum, Avatar, Badge, Breadcrumb, type BreadcrumbComposition, BreadcrumbItem, BreadcrumbSeparator, Button, Card, CardBody, type CardComposition, CardGrid, CardMeta, Checkbox, CheckboxIndicator, CheckboxRoot, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, CopyButton, Dialog, DialogControl, DialogMenu, DialogOverlay, DialogRoot, DialogTrigger, Divider, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuTrigger, Field, FieldLabel, FieldMeta, FieldRoot, FieldWrapper, type IAccordionComposition, type IAccordionContentProperties, type IAccordionProperties, type IAccordionTriggerProperties, type IAvatarProperties, type IButtonProperties, type ICheckboxComposition, type ICheckboxProperties, type ICollapsibleComposition, type ICollapsibleProperties, type IDialogItemProperties, type IDropdownComposition, type IDropdownContentProperties, type IDropdownItemProperties, type IField, type IFieldComposition, type IFieldLabel, type IFieldMeta, type IOTPFieldComposition, type IOverlayProperties, type IPageToolsProperties, type IPageWrapperProperties, type IPortalProperties, type IScrollAreaProperties, type ISheetComposition, type ISheetProperties, type ISwitchComposition, type ISwitchProperties, type ISwitchThumbProperties, type ITabsComposition, type ITabsProperties, type IToggleProperties, type IToolbarBodyProperties, type IToolbarComposition, type IToolbarItemProperties, type IToolbarSectionProperties, MetaVariantEnum, OTPField, OTPFieldSlot, Overlay, Page, PageContent, PageMenu, PageNavigation, PagePanel, PageTools, PageWrapper, Portal, PrivacyField, Resizable, ScrollArea, type ScrollContainerProps, Sheet, SheetRoot, SheetTrigger, Skeleton, type SkeletonProperties, Spinner, Switch, SwitchRoot, SwitchThumb, type TMetaVariant, Table, TableBody, TableCell, TableFooter, TableHead, TableHeadCell, TableRow, Tabs, TabsContent, TabsRoot, TabsTrigger, Textarea, type TextareaProps, Toggle, Toolbar, ToolbarItem, ToolbarRoot, ToolbarSection, ToolbarTrigger, Tooltip, useAccordion, useCheckbox, useCollapsible, useDialog, useDropdownMenu, useField, useSheet, useSwitch, useTabs, useToolbar };
|