@bubo-squared/ui-framework 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/index.cjs +2646 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +421 -0
- package/dist/index.d.ts +421 -0
- package/dist/index.js +2582 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
6
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
7
|
+
import { ClassValue } from 'clsx';
|
|
8
|
+
|
|
9
|
+
declare const buttonVariants: (props?: ({
|
|
10
|
+
variant?: "primary" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
11
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
12
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
+
interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
suffixIcon?: React$1.ReactNode;
|
|
16
|
+
prefixIcon?: React$1.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
orientation?: 'horizontal' | 'vertical';
|
|
22
|
+
}
|
|
23
|
+
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
24
|
+
|
|
25
|
+
declare const iconButtonVariants: (props?: ({
|
|
26
|
+
variant?: "primary" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
27
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
28
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
29
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
30
|
+
asChild?: boolean;
|
|
31
|
+
icon: React$1.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
declare const IconButton: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
|
|
35
|
+
type IconButtonSize = ButtonProps["size"];
|
|
36
|
+
interface IconButtonGroupItem {
|
|
37
|
+
icon: React$1.ReactNode;
|
|
38
|
+
ariaLabel: string;
|
|
39
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
}
|
|
42
|
+
interface IconButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
43
|
+
/** Icons to render as a segmented group. */
|
|
44
|
+
items: IconButtonGroupItem[];
|
|
45
|
+
/** Shared size for all icon buttons. */
|
|
46
|
+
size?: IconButtonSize;
|
|
47
|
+
}
|
|
48
|
+
declare const IconButtonGroup: React$1.FC<IconButtonGroupProps>;
|
|
49
|
+
|
|
50
|
+
declare const linkButtonVariants: (props?: ({
|
|
51
|
+
variant?: "primary" | "secondary" | "destructive" | null | undefined;
|
|
52
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
53
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
54
|
+
interface LinkButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof linkButtonVariants> {
|
|
55
|
+
asChild?: boolean;
|
|
56
|
+
suffixIcon?: React$1.ReactNode;
|
|
57
|
+
prefixIcon?: React$1.ReactNode;
|
|
58
|
+
}
|
|
59
|
+
declare const LinkButton: React$1.ForwardRefExoticComponent<LinkButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
|
|
61
|
+
type MessageButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> & {
|
|
62
|
+
onClick?: () => void | Promise<void>;
|
|
63
|
+
idleLabel?: string;
|
|
64
|
+
loadingLabel?: string;
|
|
65
|
+
successLabel?: string;
|
|
66
|
+
errorLabel?: string;
|
|
67
|
+
feedbackDuration?: number;
|
|
68
|
+
icon?: React$1.ReactNode;
|
|
69
|
+
};
|
|
70
|
+
declare const MessageButton: React$1.FC<MessageButtonProps>;
|
|
71
|
+
|
|
72
|
+
type AvatarVariant = "initial" | "icon" | "image";
|
|
73
|
+
declare const avatarVariants: (props?: ({
|
|
74
|
+
size?: "20" | "24" | "32" | "40" | "48" | "56" | "64" | null | undefined;
|
|
75
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
76
|
+
interface AvatarProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof avatarVariants> {
|
|
77
|
+
/**
|
|
78
|
+
* Visual variant: initials, icon or image.
|
|
79
|
+
*/
|
|
80
|
+
variant?: AvatarVariant;
|
|
81
|
+
/**
|
|
82
|
+
* Text rendered when variant="initial".
|
|
83
|
+
*/
|
|
84
|
+
initials?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Image source when variant="image".
|
|
87
|
+
*/
|
|
88
|
+
src?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Accessible alt text for the image.
|
|
91
|
+
*/
|
|
92
|
+
alt?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Render as child via Radix Slot. When true, Avatar will not render a native
|
|
95
|
+
* button element, but instead pass props to the child component.
|
|
96
|
+
*/
|
|
97
|
+
asChild?: boolean;
|
|
98
|
+
}
|
|
99
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<AvatarProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
100
|
+
|
|
101
|
+
declare const badgeVariants: (props?: ({
|
|
102
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
103
|
+
variant?: "primary" | "secondary" | "disabled" | "success" | "error" | "active" | "informal" | "warning" | "double-default" | "double-current" | null | undefined;
|
|
104
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
105
|
+
type BadgeVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
|
|
106
|
+
type BadgeSize = "sm" | "md" | "lg" | "xl";
|
|
107
|
+
interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
108
|
+
asChild?: boolean;
|
|
109
|
+
label: string;
|
|
110
|
+
value?: string;
|
|
111
|
+
className?: string;
|
|
112
|
+
size?: BadgeSize;
|
|
113
|
+
variant?: BadgeVariant;
|
|
114
|
+
}
|
|
115
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
116
|
+
|
|
117
|
+
declare const badgeDigitVariants: (props?: ({
|
|
118
|
+
size?: "sm" | "md" | null | undefined;
|
|
119
|
+
variant?: "primary" | "secondary" | "disabled" | "success" | "error" | "informal" | "warning" | null | undefined;
|
|
120
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
121
|
+
type BadgeDigitSize = "sm" | "md";
|
|
122
|
+
type BadgeDigitVariant = "primary" | "secondary" | "informal" | "success" | "warning" | "error" | "disabled";
|
|
123
|
+
interface BadgeDigitProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeDigitVariants> {
|
|
124
|
+
/** The numeric value to display inside the badge. */
|
|
125
|
+
value: string | number;
|
|
126
|
+
size?: BadgeDigitSize;
|
|
127
|
+
variant?: BadgeDigitVariant;
|
|
128
|
+
}
|
|
129
|
+
declare const BadgeDigit: React$1.ForwardRefExoticComponent<BadgeDigitProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
130
|
+
|
|
131
|
+
declare const badgeDotVariants: (props?: ({
|
|
132
|
+
status?: "disabled" | "error" | "informal" | "warning" | "success/online" | null | undefined;
|
|
133
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
134
|
+
interface BadgeDotProps extends VariantProps<typeof badgeDotVariants> {
|
|
135
|
+
className?: string;
|
|
136
|
+
}
|
|
137
|
+
declare const BadgeDot: React$1.FC<BadgeDotProps>;
|
|
138
|
+
|
|
139
|
+
interface BadgeStatusProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
140
|
+
label: string;
|
|
141
|
+
active?: boolean;
|
|
142
|
+
dotClassName?: string;
|
|
143
|
+
}
|
|
144
|
+
declare const BadgeStatus: React$1.ForwardRefExoticComponent<BadgeStatusProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
145
|
+
|
|
146
|
+
type DividerType = "line" | "text-lines" | "icon-lines" | "icon-group-lines" | "button-lines";
|
|
147
|
+
type SimpleDividerType = Exclude<DividerType, "button-lines" | "icon-lines" | "icon-group-lines">;
|
|
148
|
+
interface BaseDividerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
149
|
+
type?: SimpleDividerType;
|
|
150
|
+
/** Label shown for text variant (e.g. "OR"). */
|
|
151
|
+
label?: string;
|
|
152
|
+
}
|
|
153
|
+
type ButtonVariant = ButtonProps$1["variant"];
|
|
154
|
+
type IconButtonVariant = ButtonProps["variant"];
|
|
155
|
+
type IconGroupSize = IconButtonGroupProps["size"];
|
|
156
|
+
interface IconLinesDividerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
157
|
+
type: "icon-lines";
|
|
158
|
+
/** Icon rendered between the lines. */
|
|
159
|
+
icon: React$1.ReactNode;
|
|
160
|
+
/** Variant for the icon button between the lines. */
|
|
161
|
+
iconButtonVariant?: IconButtonVariant;
|
|
162
|
+
/** Click handler for the icon button between the lines. */
|
|
163
|
+
onIconClick: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
164
|
+
/** Accessible label for the icon button. Falls back to "More options". */
|
|
165
|
+
ariaLabel?: string;
|
|
166
|
+
}
|
|
167
|
+
interface ButtonLinesDividerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
168
|
+
type: "button-lines";
|
|
169
|
+
/** Text inside the button between the lines. */
|
|
170
|
+
buttonLabel: string;
|
|
171
|
+
/** onClick handler for the button between the lines. */
|
|
172
|
+
onButtonClick: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
173
|
+
/** Variant for the button between the lines. */
|
|
174
|
+
buttonVariant?: ButtonVariant;
|
|
175
|
+
}
|
|
176
|
+
interface IconGroupLinesDividerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
177
|
+
type: "icon-group-lines";
|
|
178
|
+
/** Items rendered as a segmented icon group between the lines. */
|
|
179
|
+
iconGroupItems: IconButtonGroupItem[];
|
|
180
|
+
/** Shared size for the icon group; defaults to IconButtonGroup default. */
|
|
181
|
+
iconGroupSize?: IconGroupSize;
|
|
182
|
+
}
|
|
183
|
+
type DividerProps = BaseDividerProps | IconLinesDividerProps | IconGroupLinesDividerProps | ButtonLinesDividerProps;
|
|
184
|
+
declare const Divider: React$1.FC<DividerProps>;
|
|
185
|
+
|
|
186
|
+
type ProgressSize = "sm" | "md" | "lg";
|
|
187
|
+
interface ProgressProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
188
|
+
/** Current value, from 0 to 100. */
|
|
189
|
+
value: number;
|
|
190
|
+
/** Optional label shown above the bar with the percentage on the right. */
|
|
191
|
+
label?: string;
|
|
192
|
+
/** Optional hint text shown below the bar. */
|
|
193
|
+
hint?: string;
|
|
194
|
+
/** Controls whether the label/percentage row is rendered. */
|
|
195
|
+
showLabel?: boolean;
|
|
196
|
+
/** Controls whether the hint text is rendered. */
|
|
197
|
+
showHint?: boolean;
|
|
198
|
+
/** Visual height of the bar. */
|
|
199
|
+
size?: ProgressSize;
|
|
200
|
+
}
|
|
201
|
+
declare const Progress: React$1.ForwardRefExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
202
|
+
|
|
203
|
+
type StatusAvatarVariant = "verified" | "bookmark" | "favorite" | "add" | "remove" | "offline" | "online" | "away" | "busy";
|
|
204
|
+
interface StatusAvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
205
|
+
/**
|
|
206
|
+
* Visual style of the status badge.
|
|
207
|
+
*/
|
|
208
|
+
variant?: StatusAvatarVariant;
|
|
209
|
+
}
|
|
210
|
+
declare const StatusAvatar: React$1.ForwardRefExoticComponent<StatusAvatarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
|
+
|
|
212
|
+
declare const tagVariants: (props?: ({
|
|
213
|
+
size?: "sm" | "md" | null | undefined;
|
|
214
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
215
|
+
interface TagProps extends VariantProps<typeof tagVariants> {
|
|
216
|
+
asChild?: boolean;
|
|
217
|
+
label: string;
|
|
218
|
+
value?: string;
|
|
219
|
+
className?: string;
|
|
220
|
+
leadingIcon?: React$1.ReactElement<{
|
|
221
|
+
disabled?: boolean;
|
|
222
|
+
}>;
|
|
223
|
+
trailingIcon?: React$1.ReactElement<{
|
|
224
|
+
disabled?: boolean;
|
|
225
|
+
}>;
|
|
226
|
+
size: "sm" | "md";
|
|
227
|
+
disabled?: boolean;
|
|
228
|
+
}
|
|
229
|
+
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
|
|
231
|
+
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
232
|
+
label?: string;
|
|
233
|
+
}
|
|
234
|
+
declare function Checkbox({ label, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
235
|
+
|
|
236
|
+
type DropdownStatus = "default" | "success" | "error";
|
|
237
|
+
interface DropdownOption {
|
|
238
|
+
label: string;
|
|
239
|
+
value: string;
|
|
240
|
+
}
|
|
241
|
+
declare const dropdownTriggerVariants: (props?: ({
|
|
242
|
+
size?: "large" | "extra-large" | null | undefined;
|
|
243
|
+
status?: "success" | "error" | "default" | null | undefined;
|
|
244
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
245
|
+
interface DropdownProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, VariantProps<typeof dropdownTriggerVariants> {
|
|
246
|
+
label?: string;
|
|
247
|
+
showLabel?: boolean;
|
|
248
|
+
hint?: string;
|
|
249
|
+
showHint?: boolean;
|
|
250
|
+
placeholder?: string;
|
|
251
|
+
status?: DropdownStatus;
|
|
252
|
+
options: DropdownOption[];
|
|
253
|
+
value?: string;
|
|
254
|
+
defaultValue?: string;
|
|
255
|
+
onChange?: (value: string) => void;
|
|
256
|
+
/** Force the menu open (used mainly for docs/Storybook states). */
|
|
257
|
+
showMenu?: boolean;
|
|
258
|
+
}
|
|
259
|
+
declare const Dropdown: React$1.FC<DropdownProps>;
|
|
260
|
+
|
|
261
|
+
type PasswordInputSize = "large" | "extra-large";
|
|
262
|
+
type PasswordInputStatus = "default" | "success" | "error";
|
|
263
|
+
type PasswordInputVariant = "icons" | "action";
|
|
264
|
+
interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "disabled"> {
|
|
265
|
+
label?: string;
|
|
266
|
+
hint?: string;
|
|
267
|
+
placeholder?: string;
|
|
268
|
+
status?: PasswordInputStatus;
|
|
269
|
+
size?: PasswordInputSize;
|
|
270
|
+
variant?: PasswordInputVariant;
|
|
271
|
+
leadingIcon?: React$1.ReactNode;
|
|
272
|
+
trailingIcon?: React$1.ReactNode;
|
|
273
|
+
actionLabel?: string;
|
|
274
|
+
onActionClick?: () => void;
|
|
275
|
+
disabled?: boolean;
|
|
276
|
+
}
|
|
277
|
+
declare const PasswordInput: React$1.FC<PasswordInputProps>;
|
|
278
|
+
|
|
279
|
+
type RadioGroupOrientation = "vertical" | "horizontal";
|
|
280
|
+
interface RadioGroupOption {
|
|
281
|
+
value: string;
|
|
282
|
+
label: string;
|
|
283
|
+
disabled?: boolean;
|
|
284
|
+
}
|
|
285
|
+
interface RadioGroupProps extends Omit<RadioGroupPrimitive.RadioGroupProps, "children" | "orientation" | "onValueChange"> {
|
|
286
|
+
label?: string;
|
|
287
|
+
hint?: string;
|
|
288
|
+
orientation?: RadioGroupOrientation;
|
|
289
|
+
options: RadioGroupOption[];
|
|
290
|
+
disabled?: boolean;
|
|
291
|
+
onValueChange?: (value: string) => void;
|
|
292
|
+
}
|
|
293
|
+
declare const RadioGroup: React$1.FC<RadioGroupProps>;
|
|
294
|
+
|
|
295
|
+
type SearchInputSize = "large" | "extra-large";
|
|
296
|
+
interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "disabled"> {
|
|
297
|
+
placeholder?: string;
|
|
298
|
+
leadingIcon?: React$1.ReactNode;
|
|
299
|
+
showLeadingIcon?: boolean;
|
|
300
|
+
size?: SearchInputSize;
|
|
301
|
+
disabled?: boolean;
|
|
302
|
+
}
|
|
303
|
+
declare const SearchInput: React$1.FC<SearchInputProps>;
|
|
304
|
+
|
|
305
|
+
type SliderDisplay = "flat" | "numeric" | "tooltip";
|
|
306
|
+
type SliderType = "single" | "multi";
|
|
307
|
+
type SliderTooltipPlacement = "top" | "bottom";
|
|
308
|
+
interface SliderProps {
|
|
309
|
+
display?: SliderDisplay;
|
|
310
|
+
type?: SliderType;
|
|
311
|
+
tooltipPlacement?: SliderTooltipPlacement;
|
|
312
|
+
/**
|
|
313
|
+
* Custom formatter for tooltip / numeric / accessibility text.
|
|
314
|
+
* Receives the current slider value and should return a display string.
|
|
315
|
+
* If provided, it takes precedence over `showPercentage`.
|
|
316
|
+
*/
|
|
317
|
+
tooltipFormatter?: (value: number) => string;
|
|
318
|
+
/**
|
|
319
|
+
* When true (default), values are rendered as percentages (e.g. "30%").
|
|
320
|
+
* When false, raw numbers are shown instead.
|
|
321
|
+
* Ignored when `tooltipFormatter` is provided.
|
|
322
|
+
*/
|
|
323
|
+
showPercentage?: boolean;
|
|
324
|
+
min?: number;
|
|
325
|
+
max?: number;
|
|
326
|
+
step?: number;
|
|
327
|
+
disabled?: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* Current value(s). For `type="single"`, use a single-element array, e.g. `[30]`.
|
|
330
|
+
* For `type="multi"`, use two values, e.g. `[0, 25]`.
|
|
331
|
+
*/
|
|
332
|
+
value?: number[];
|
|
333
|
+
/**
|
|
334
|
+
* Initial value(s) for uncontrolled usage.
|
|
335
|
+
*/
|
|
336
|
+
defaultValue?: number[];
|
|
337
|
+
onValueChange?: (value: number[]) => void;
|
|
338
|
+
className?: string;
|
|
339
|
+
}
|
|
340
|
+
declare const Slider: React$1.FC<SliderProps>;
|
|
341
|
+
|
|
342
|
+
type TextInputSize = "large" | "extra-large";
|
|
343
|
+
type TextInputStatus = "default" | "success" | "error";
|
|
344
|
+
interface TextInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "disabled"> {
|
|
345
|
+
label?: string;
|
|
346
|
+
hint?: string;
|
|
347
|
+
placeholder?: string;
|
|
348
|
+
status?: TextInputStatus;
|
|
349
|
+
size?: TextInputSize;
|
|
350
|
+
disabled?: boolean;
|
|
351
|
+
leadingIcon?: React$1.ReactNode | null;
|
|
352
|
+
trailingIcon?: React$1.ReactNode | null;
|
|
353
|
+
}
|
|
354
|
+
declare const TextInput: React$1.FC<TextInputProps>;
|
|
355
|
+
|
|
356
|
+
type TextAreaType = "responsive" | "character-limit";
|
|
357
|
+
interface TextAreaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "disabled"> {
|
|
358
|
+
label?: string;
|
|
359
|
+
hint?: string;
|
|
360
|
+
status?: TextInputStatus;
|
|
361
|
+
/**
|
|
362
|
+
* Visual/behavioural variant.
|
|
363
|
+
* - "responsive": regular textarea.
|
|
364
|
+
* - "character-limit": shows character counter, expects maxLength.
|
|
365
|
+
*/
|
|
366
|
+
type?: TextAreaType;
|
|
367
|
+
/**
|
|
368
|
+
* Maximum number of characters allowed. Used by "character-limit" variant
|
|
369
|
+
* and passed through to the underlying <textarea> as maxLength.
|
|
370
|
+
*/
|
|
371
|
+
maxLength?: number;
|
|
372
|
+
/**
|
|
373
|
+
* Optional trailing icon rendered in the top-right corner of the field.
|
|
374
|
+
*/
|
|
375
|
+
disabled?: boolean;
|
|
376
|
+
}
|
|
377
|
+
declare const TextArea: React$1.FC<TextAreaProps>;
|
|
378
|
+
|
|
379
|
+
interface ToggleProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
380
|
+
label?: string;
|
|
381
|
+
}
|
|
382
|
+
declare const Toggle: React$1.FC<ToggleProps>;
|
|
383
|
+
|
|
384
|
+
type WebsiteInputHierarchy = "prefix" | "suffix";
|
|
385
|
+
interface WebsiteInputProps extends Omit<TextInputProps, "leadingIcon" | "trailingIcon"> {
|
|
386
|
+
/**
|
|
387
|
+
* Position of the protocol add-on (label + icon).
|
|
388
|
+
* - "prefix": add-on on the left side of the field
|
|
389
|
+
* - "suffix": add-on on the right side of the field
|
|
390
|
+
*/
|
|
391
|
+
hierarchy?: WebsiteInputHierarchy;
|
|
392
|
+
/**
|
|
393
|
+
* Text shown inside the protocol add-on (e.g. "http://", "https://").
|
|
394
|
+
*/
|
|
395
|
+
protocolLabel?: string;
|
|
396
|
+
/**
|
|
397
|
+
* Optional icon shown next to the protocol label".
|
|
398
|
+
*/
|
|
399
|
+
icon?: React$1.ReactNode | null;
|
|
400
|
+
}
|
|
401
|
+
declare const WebsiteInput: React$1.FC<WebsiteInputProps>;
|
|
402
|
+
|
|
403
|
+
declare const LogoIconExtraLarge: () => react_jsx_runtime.JSX.Element;
|
|
404
|
+
|
|
405
|
+
declare const LogoIconExtraSmall: () => react_jsx_runtime.JSX.Element;
|
|
406
|
+
|
|
407
|
+
declare const LogoIconLarge: () => react_jsx_runtime.JSX.Element;
|
|
408
|
+
|
|
409
|
+
declare const LogoIconMedium: () => react_jsx_runtime.JSX.Element;
|
|
410
|
+
|
|
411
|
+
declare const LogoIconSmall: () => react_jsx_runtime.JSX.Element;
|
|
412
|
+
|
|
413
|
+
declare const LogoInline$1: () => react_jsx_runtime.JSX.Element;
|
|
414
|
+
|
|
415
|
+
declare const LogoInline: () => react_jsx_runtime.JSX.Element;
|
|
416
|
+
|
|
417
|
+
declare const LogoMultiline: () => react_jsx_runtime.JSX.Element;
|
|
418
|
+
|
|
419
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
420
|
+
|
|
421
|
+
export { Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Button, ButtonGroup, Checkbox, Divider, Dropdown, IconButton, IconButtonGroup, LinkButton, LogoIconExtraLarge, LogoIconExtraSmall, LogoIconLarge, LogoIconMedium, LogoIconSmall, LogoInline$1 as LogoInline, LogoInline as LogoInlineSmall, LogoMultiline, MessageButton, PasswordInput, Progress, RadioGroup, SearchInput, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, WebsiteInput, cn };
|