@dgithiomi/sbui-web 1.0.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/dist/chunk-3QS3WKRC.mjs +31 -0
- package/dist/chunk-3QS3WKRC.mjs.map +1 -0
- package/dist/index.cjs +3649 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +225 -0
- package/dist/index.d.ts +225 -0
- package/dist/index.mjs +3613 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +1245 -0
- package/dist/tailwind-preset.cjs +266 -0
- package/dist/tailwind-preset.cjs.map +1 -0
- package/dist/tailwind-preset.d.cts +23 -0
- package/dist/tailwind-preset.d.ts +23 -0
- package/dist/tailwind-preset.mjs +246 -0
- package/dist/tailwind-preset.mjs.map +1 -0
- package/package.json +76 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import React, { ReactNode, RefObject, TextareaHTMLAttributes, FocusEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
type TooltipAnimation = "fade" | "scale" | "none";
|
|
4
|
+
type TooltipPointerDirection = "left" | "right" | "center";
|
|
5
|
+
type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
6
|
+
type TooltipTrigger = "hover" | "click" | "focus" | "manual";
|
|
7
|
+
type TooltipVariant = "warning" | "success" | "error" | "info";
|
|
8
|
+
interface TooltipProps {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for the Tooltip component.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Custom CSS class for styling the Tooltip.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The text or element displayed inside the Tooltip.
|
|
19
|
+
*/
|
|
20
|
+
content: string | ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The preferred position of the Tooltip relative to the target element.
|
|
23
|
+
* - Top: Tooltip appears above the target.
|
|
24
|
+
* - Bottom: Tooltip appears below the target.
|
|
25
|
+
* - Left: Tooltip appears to the left of the target.
|
|
26
|
+
* - Right: Tooltip appears to the right of the target.
|
|
27
|
+
*/
|
|
28
|
+
placement?: TooltipPlacement;
|
|
29
|
+
/**
|
|
30
|
+
* Defines how the Tooltip is activated.
|
|
31
|
+
* - Hover (default): Tooltip appears when hovering over the target.
|
|
32
|
+
* - Click: Tooltip appears when clicking the target.
|
|
33
|
+
* - Focus: Tooltip appears when the target gains focus.
|
|
34
|
+
* - Manual: Tooltip is controlled programmatically.
|
|
35
|
+
*/
|
|
36
|
+
trigger?: TooltipTrigger;
|
|
37
|
+
/**
|
|
38
|
+
* Time (in milliseconds) before the Tooltip appears/disappears after triggering.
|
|
39
|
+
*/
|
|
40
|
+
delay?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to display an arrow pointing to the target element.
|
|
43
|
+
*/
|
|
44
|
+
arrow?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the appearance animation of the Tooltip.
|
|
47
|
+
* - Fade (default): Smooth fade-in effect.
|
|
48
|
+
* - Scale: Expands from the center.
|
|
49
|
+
* - None: No animation.
|
|
50
|
+
*/
|
|
51
|
+
animation?: TooltipAnimation;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the maximum width of the Tooltip content.
|
|
54
|
+
*/
|
|
55
|
+
maxWidth?: string | number;
|
|
56
|
+
/**
|
|
57
|
+
* Disables the Tooltip when set to true.
|
|
58
|
+
*/
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the type of element wrapping the Tooltip trigger.
|
|
62
|
+
*/
|
|
63
|
+
asChild?: "button" | "span" | "div";
|
|
64
|
+
/**
|
|
65
|
+
* A reference to the underlying Tooltip container.
|
|
66
|
+
*/
|
|
67
|
+
ref?: RefObject<HTMLDivElement>;
|
|
68
|
+
/**
|
|
69
|
+
* Controls whether the Tooltip is visible by default.
|
|
70
|
+
* true: The Tooltip is visible when rendered.
|
|
71
|
+
* false (default): The Tooltip follows the trigger behavior.
|
|
72
|
+
*/
|
|
73
|
+
isVisible?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* If true, a close button appears inside the Tooltip, allowing manual dismissal.
|
|
76
|
+
*/
|
|
77
|
+
closeButton?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Callback function triggered when the close button is clicked.
|
|
80
|
+
*/
|
|
81
|
+
onClose?: () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Callback function triggered when the Tooltip becomes visible.
|
|
84
|
+
*/
|
|
85
|
+
onShow?: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Callback function triggered when the Tooltip is hidden.
|
|
88
|
+
*/
|
|
89
|
+
onHide?: () => void;
|
|
90
|
+
variant?: TooltipVariant;
|
|
91
|
+
pointerDirection?: TooltipPointerDirection;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare const Tooltip: React.FC<TooltipProps & {
|
|
95
|
+
children: ReactNode;
|
|
96
|
+
}>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Controls padding and typography scale of the textarea.
|
|
100
|
+
*
|
|
101
|
+
* - `small` — compact density for dense forms or tables.
|
|
102
|
+
* - `default` — standard body size for most layouts.
|
|
103
|
+
* - `large` — emphasized input for hero or marketing surfaces.
|
|
104
|
+
*/
|
|
105
|
+
type TextAreaSize = "small" | "default" | "large";
|
|
106
|
+
/**
|
|
107
|
+
* Visual feedback state applied to the field border and clear affordance.
|
|
108
|
+
*
|
|
109
|
+
* - `none` — neutral styling (default).
|
|
110
|
+
* - `error` — error ring and error-toned clear button.
|
|
111
|
+
* - `warning` — warning ring and warning-toned clear button.
|
|
112
|
+
*/
|
|
113
|
+
type TextAreaStatus = "warning" | "error" | "none";
|
|
114
|
+
/**
|
|
115
|
+
* Native CSS `resize` behavior on the underlying `<textarea>`.
|
|
116
|
+
*
|
|
117
|
+
* - `none` — fixed dimensions (default).
|
|
118
|
+
* - `vertical` — height only.
|
|
119
|
+
* - `horizontal` — width only.
|
|
120
|
+
* - `both` — width and height.
|
|
121
|
+
*/
|
|
122
|
+
type TextAreaResize = "none" | "vertical" | "horizontal" | "both";
|
|
123
|
+
/**
|
|
124
|
+
* Props for the {@link TextArea} component.
|
|
125
|
+
*
|
|
126
|
+
* `TextArea` is a controlled multi-line input. Pair `value` with `onChange` for
|
|
127
|
+
* state updates. Native `<textarea>` attributes (e.g. `name`, `tabIndex`) pass
|
|
128
|
+
* through via `...props` except `onChange`, `prefix`, and `suffix`, which are
|
|
129
|
+
* owned by this API.
|
|
130
|
+
*/
|
|
131
|
+
interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "suffix" | "prefix"> {
|
|
132
|
+
/** Unique `id` on the native `<textarea>`. Used for labels, tooltips, and tests. */
|
|
133
|
+
id: string;
|
|
134
|
+
/** Current textarea value. Use with {@link TextAreaProps.onChange} for controlled usage. */
|
|
135
|
+
value: string;
|
|
136
|
+
/** Called with the latest string whenever the user edits the field. */
|
|
137
|
+
onChange: (value: string) => void;
|
|
138
|
+
/** Class names merged onto the outer wrapper (layout, spacing, surfaces). */
|
|
139
|
+
className?: string;
|
|
140
|
+
/** Hint text shown when the field is empty. */
|
|
141
|
+
placeholder?: string;
|
|
142
|
+
/** Initial value when not fully controlled by parent state (rare; prefer `value`). */
|
|
143
|
+
defaultValue?: string;
|
|
144
|
+
/** Visual density of the control. @default "default" */
|
|
145
|
+
size?: TextAreaSize;
|
|
146
|
+
/** Prevents editing and applies disabled styles. @default false */
|
|
147
|
+
disabled?: boolean;
|
|
148
|
+
/** Displays the value but blocks edits (focusable, not dimmed like `disabled`). @default false */
|
|
149
|
+
readOnly?: boolean;
|
|
150
|
+
/** Marks the field required for native form validation. @default false */
|
|
151
|
+
required?: boolean;
|
|
152
|
+
/** Fired when the textarea receives focus. */
|
|
153
|
+
onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
154
|
+
/** Fired when the textarea loses focus. */
|
|
155
|
+
onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
156
|
+
/** Focuses the textarea on mount. @default false */
|
|
157
|
+
autoFocus?: boolean;
|
|
158
|
+
/** Shows a clear control when the field has a value (also clears on Escape). @default true */
|
|
159
|
+
allowClear?: boolean;
|
|
160
|
+
/** Maximum character count; pairs with {@link TextAreaProps.showCount}. */
|
|
161
|
+
maxLength?: number;
|
|
162
|
+
/** Minimum length for native constraint validation. */
|
|
163
|
+
minLength?: number;
|
|
164
|
+
/** Renders a live character counter (`value.length` / `maxLength` when set). @default false */
|
|
165
|
+
showCount?: boolean;
|
|
166
|
+
/** Visible height in rows (maps to the `rows` attribute). @default 3 */
|
|
167
|
+
rows?: number;
|
|
168
|
+
/** Whether the user can resize the textarea with the drag handle. @default "none" */
|
|
169
|
+
resize?: TextAreaResize;
|
|
170
|
+
/** Node rendered inside the field shell before the `<textarea>` (e.g. icon). */
|
|
171
|
+
prefix?: ReactNode;
|
|
172
|
+
/** Node rendered inside the field shell after the `<textarea>` (e.g. unit label). */
|
|
173
|
+
suffix?: ReactNode;
|
|
174
|
+
/** Content attached before the entire field group (flattens leading corners). */
|
|
175
|
+
addonBefore?: ReactNode;
|
|
176
|
+
/** Content attached after the entire field group (flattens trailing corners). */
|
|
177
|
+
addonAfter?: ReactNode;
|
|
178
|
+
/** Validation or feedback styling for borders and the clear button. @default "none" */
|
|
179
|
+
status?: TextAreaStatus;
|
|
180
|
+
/** Shortcut tooltip copy. Wraps the field in `Tooltip` when set. */
|
|
181
|
+
tooltip?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Full {@link TooltipProps} for placement, trigger, variant, and styling.
|
|
184
|
+
* Merged with `id` and `tooltip` on the wrapping `Tooltip`.
|
|
185
|
+
*/
|
|
186
|
+
tooltipOptions?: TooltipProps;
|
|
187
|
+
/** Accessible name when no visible `<label>` is associated with the field. */
|
|
188
|
+
"aria-label"?: string;
|
|
189
|
+
/** Id of an element that describes the field (helper or error text). */
|
|
190
|
+
"aria-describedby"?: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare const TextArea: React.FC<TextAreaProps>;
|
|
194
|
+
|
|
195
|
+
type ProgressBarProps = {
|
|
196
|
+
id: string;
|
|
197
|
+
className?: string;
|
|
198
|
+
value?: number;
|
|
199
|
+
defaultValue?: number;
|
|
200
|
+
max?: number;
|
|
201
|
+
min?: number;
|
|
202
|
+
size?: "small" | "medium" | "large";
|
|
203
|
+
color?: string;
|
|
204
|
+
backgroundColor?: string;
|
|
205
|
+
striped?: boolean;
|
|
206
|
+
animated?: boolean;
|
|
207
|
+
variant?: "solid" | "dashed" | "dotted";
|
|
208
|
+
showPercentage?: boolean;
|
|
209
|
+
indeterminate?: boolean;
|
|
210
|
+
autoFocus?: boolean;
|
|
211
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
212
|
+
style?: React.CSSProperties;
|
|
213
|
+
onChange?: (value: number) => void;
|
|
214
|
+
direction?: "horizontal" | "vertical";
|
|
215
|
+
minColor?: string;
|
|
216
|
+
maxColor?: string;
|
|
217
|
+
showLoadingLabel?: boolean;
|
|
218
|
+
labelPosition?: "inside" | "outside";
|
|
219
|
+
minLabel?: string;
|
|
220
|
+
maxLabel?: string;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
224
|
+
|
|
225
|
+
export { ProgressBar, type ProgressBarProps, TextArea, type TextAreaProps, type TextAreaResize, type TextAreaSize, type TextAreaStatus, Tooltip, type TooltipAnimation, type TooltipPlacement, type TooltipPointerDirection, type TooltipProps, type TooltipTrigger, type TooltipVariant };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import React, { ReactNode, RefObject, TextareaHTMLAttributes, FocusEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
type TooltipAnimation = "fade" | "scale" | "none";
|
|
4
|
+
type TooltipPointerDirection = "left" | "right" | "center";
|
|
5
|
+
type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
6
|
+
type TooltipTrigger = "hover" | "click" | "focus" | "manual";
|
|
7
|
+
type TooltipVariant = "warning" | "success" | "error" | "info";
|
|
8
|
+
interface TooltipProps {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for the Tooltip component.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Custom CSS class for styling the Tooltip.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The text or element displayed inside the Tooltip.
|
|
19
|
+
*/
|
|
20
|
+
content: string | ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The preferred position of the Tooltip relative to the target element.
|
|
23
|
+
* - Top: Tooltip appears above the target.
|
|
24
|
+
* - Bottom: Tooltip appears below the target.
|
|
25
|
+
* - Left: Tooltip appears to the left of the target.
|
|
26
|
+
* - Right: Tooltip appears to the right of the target.
|
|
27
|
+
*/
|
|
28
|
+
placement?: TooltipPlacement;
|
|
29
|
+
/**
|
|
30
|
+
* Defines how the Tooltip is activated.
|
|
31
|
+
* - Hover (default): Tooltip appears when hovering over the target.
|
|
32
|
+
* - Click: Tooltip appears when clicking the target.
|
|
33
|
+
* - Focus: Tooltip appears when the target gains focus.
|
|
34
|
+
* - Manual: Tooltip is controlled programmatically.
|
|
35
|
+
*/
|
|
36
|
+
trigger?: TooltipTrigger;
|
|
37
|
+
/**
|
|
38
|
+
* Time (in milliseconds) before the Tooltip appears/disappears after triggering.
|
|
39
|
+
*/
|
|
40
|
+
delay?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to display an arrow pointing to the target element.
|
|
43
|
+
*/
|
|
44
|
+
arrow?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the appearance animation of the Tooltip.
|
|
47
|
+
* - Fade (default): Smooth fade-in effect.
|
|
48
|
+
* - Scale: Expands from the center.
|
|
49
|
+
* - None: No animation.
|
|
50
|
+
*/
|
|
51
|
+
animation?: TooltipAnimation;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the maximum width of the Tooltip content.
|
|
54
|
+
*/
|
|
55
|
+
maxWidth?: string | number;
|
|
56
|
+
/**
|
|
57
|
+
* Disables the Tooltip when set to true.
|
|
58
|
+
*/
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the type of element wrapping the Tooltip trigger.
|
|
62
|
+
*/
|
|
63
|
+
asChild?: "button" | "span" | "div";
|
|
64
|
+
/**
|
|
65
|
+
* A reference to the underlying Tooltip container.
|
|
66
|
+
*/
|
|
67
|
+
ref?: RefObject<HTMLDivElement>;
|
|
68
|
+
/**
|
|
69
|
+
* Controls whether the Tooltip is visible by default.
|
|
70
|
+
* true: The Tooltip is visible when rendered.
|
|
71
|
+
* false (default): The Tooltip follows the trigger behavior.
|
|
72
|
+
*/
|
|
73
|
+
isVisible?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* If true, a close button appears inside the Tooltip, allowing manual dismissal.
|
|
76
|
+
*/
|
|
77
|
+
closeButton?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Callback function triggered when the close button is clicked.
|
|
80
|
+
*/
|
|
81
|
+
onClose?: () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Callback function triggered when the Tooltip becomes visible.
|
|
84
|
+
*/
|
|
85
|
+
onShow?: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Callback function triggered when the Tooltip is hidden.
|
|
88
|
+
*/
|
|
89
|
+
onHide?: () => void;
|
|
90
|
+
variant?: TooltipVariant;
|
|
91
|
+
pointerDirection?: TooltipPointerDirection;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare const Tooltip: React.FC<TooltipProps & {
|
|
95
|
+
children: ReactNode;
|
|
96
|
+
}>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Controls padding and typography scale of the textarea.
|
|
100
|
+
*
|
|
101
|
+
* - `small` — compact density for dense forms or tables.
|
|
102
|
+
* - `default` — standard body size for most layouts.
|
|
103
|
+
* - `large` — emphasized input for hero or marketing surfaces.
|
|
104
|
+
*/
|
|
105
|
+
type TextAreaSize = "small" | "default" | "large";
|
|
106
|
+
/**
|
|
107
|
+
* Visual feedback state applied to the field border and clear affordance.
|
|
108
|
+
*
|
|
109
|
+
* - `none` — neutral styling (default).
|
|
110
|
+
* - `error` — error ring and error-toned clear button.
|
|
111
|
+
* - `warning` — warning ring and warning-toned clear button.
|
|
112
|
+
*/
|
|
113
|
+
type TextAreaStatus = "warning" | "error" | "none";
|
|
114
|
+
/**
|
|
115
|
+
* Native CSS `resize` behavior on the underlying `<textarea>`.
|
|
116
|
+
*
|
|
117
|
+
* - `none` — fixed dimensions (default).
|
|
118
|
+
* - `vertical` — height only.
|
|
119
|
+
* - `horizontal` — width only.
|
|
120
|
+
* - `both` — width and height.
|
|
121
|
+
*/
|
|
122
|
+
type TextAreaResize = "none" | "vertical" | "horizontal" | "both";
|
|
123
|
+
/**
|
|
124
|
+
* Props for the {@link TextArea} component.
|
|
125
|
+
*
|
|
126
|
+
* `TextArea` is a controlled multi-line input. Pair `value` with `onChange` for
|
|
127
|
+
* state updates. Native `<textarea>` attributes (e.g. `name`, `tabIndex`) pass
|
|
128
|
+
* through via `...props` except `onChange`, `prefix`, and `suffix`, which are
|
|
129
|
+
* owned by this API.
|
|
130
|
+
*/
|
|
131
|
+
interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "suffix" | "prefix"> {
|
|
132
|
+
/** Unique `id` on the native `<textarea>`. Used for labels, tooltips, and tests. */
|
|
133
|
+
id: string;
|
|
134
|
+
/** Current textarea value. Use with {@link TextAreaProps.onChange} for controlled usage. */
|
|
135
|
+
value: string;
|
|
136
|
+
/** Called with the latest string whenever the user edits the field. */
|
|
137
|
+
onChange: (value: string) => void;
|
|
138
|
+
/** Class names merged onto the outer wrapper (layout, spacing, surfaces). */
|
|
139
|
+
className?: string;
|
|
140
|
+
/** Hint text shown when the field is empty. */
|
|
141
|
+
placeholder?: string;
|
|
142
|
+
/** Initial value when not fully controlled by parent state (rare; prefer `value`). */
|
|
143
|
+
defaultValue?: string;
|
|
144
|
+
/** Visual density of the control. @default "default" */
|
|
145
|
+
size?: TextAreaSize;
|
|
146
|
+
/** Prevents editing and applies disabled styles. @default false */
|
|
147
|
+
disabled?: boolean;
|
|
148
|
+
/** Displays the value but blocks edits (focusable, not dimmed like `disabled`). @default false */
|
|
149
|
+
readOnly?: boolean;
|
|
150
|
+
/** Marks the field required for native form validation. @default false */
|
|
151
|
+
required?: boolean;
|
|
152
|
+
/** Fired when the textarea receives focus. */
|
|
153
|
+
onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
154
|
+
/** Fired when the textarea loses focus. */
|
|
155
|
+
onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
156
|
+
/** Focuses the textarea on mount. @default false */
|
|
157
|
+
autoFocus?: boolean;
|
|
158
|
+
/** Shows a clear control when the field has a value (also clears on Escape). @default true */
|
|
159
|
+
allowClear?: boolean;
|
|
160
|
+
/** Maximum character count; pairs with {@link TextAreaProps.showCount}. */
|
|
161
|
+
maxLength?: number;
|
|
162
|
+
/** Minimum length for native constraint validation. */
|
|
163
|
+
minLength?: number;
|
|
164
|
+
/** Renders a live character counter (`value.length` / `maxLength` when set). @default false */
|
|
165
|
+
showCount?: boolean;
|
|
166
|
+
/** Visible height in rows (maps to the `rows` attribute). @default 3 */
|
|
167
|
+
rows?: number;
|
|
168
|
+
/** Whether the user can resize the textarea with the drag handle. @default "none" */
|
|
169
|
+
resize?: TextAreaResize;
|
|
170
|
+
/** Node rendered inside the field shell before the `<textarea>` (e.g. icon). */
|
|
171
|
+
prefix?: ReactNode;
|
|
172
|
+
/** Node rendered inside the field shell after the `<textarea>` (e.g. unit label). */
|
|
173
|
+
suffix?: ReactNode;
|
|
174
|
+
/** Content attached before the entire field group (flattens leading corners). */
|
|
175
|
+
addonBefore?: ReactNode;
|
|
176
|
+
/** Content attached after the entire field group (flattens trailing corners). */
|
|
177
|
+
addonAfter?: ReactNode;
|
|
178
|
+
/** Validation or feedback styling for borders and the clear button. @default "none" */
|
|
179
|
+
status?: TextAreaStatus;
|
|
180
|
+
/** Shortcut tooltip copy. Wraps the field in `Tooltip` when set. */
|
|
181
|
+
tooltip?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Full {@link TooltipProps} for placement, trigger, variant, and styling.
|
|
184
|
+
* Merged with `id` and `tooltip` on the wrapping `Tooltip`.
|
|
185
|
+
*/
|
|
186
|
+
tooltipOptions?: TooltipProps;
|
|
187
|
+
/** Accessible name when no visible `<label>` is associated with the field. */
|
|
188
|
+
"aria-label"?: string;
|
|
189
|
+
/** Id of an element that describes the field (helper or error text). */
|
|
190
|
+
"aria-describedby"?: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare const TextArea: React.FC<TextAreaProps>;
|
|
194
|
+
|
|
195
|
+
type ProgressBarProps = {
|
|
196
|
+
id: string;
|
|
197
|
+
className?: string;
|
|
198
|
+
value?: number;
|
|
199
|
+
defaultValue?: number;
|
|
200
|
+
max?: number;
|
|
201
|
+
min?: number;
|
|
202
|
+
size?: "small" | "medium" | "large";
|
|
203
|
+
color?: string;
|
|
204
|
+
backgroundColor?: string;
|
|
205
|
+
striped?: boolean;
|
|
206
|
+
animated?: boolean;
|
|
207
|
+
variant?: "solid" | "dashed" | "dotted";
|
|
208
|
+
showPercentage?: boolean;
|
|
209
|
+
indeterminate?: boolean;
|
|
210
|
+
autoFocus?: boolean;
|
|
211
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
212
|
+
style?: React.CSSProperties;
|
|
213
|
+
onChange?: (value: number) => void;
|
|
214
|
+
direction?: "horizontal" | "vertical";
|
|
215
|
+
minColor?: string;
|
|
216
|
+
maxColor?: string;
|
|
217
|
+
showLoadingLabel?: boolean;
|
|
218
|
+
labelPosition?: "inside" | "outside";
|
|
219
|
+
minLabel?: string;
|
|
220
|
+
maxLabel?: string;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
224
|
+
|
|
225
|
+
export { ProgressBar, type ProgressBarProps, TextArea, type TextAreaProps, type TextAreaResize, type TextAreaSize, type TextAreaStatus, Tooltip, type TooltipAnimation, type TooltipPlacement, type TooltipPointerDirection, type TooltipProps, type TooltipTrigger, type TooltipVariant };
|