@bleakedev/bleake-components 0.0.2 → 0.0.4
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/index.cjs +6629 -1523
- package/dist/index.d.cts +383 -12
- package/dist/index.d.ts +383 -12
- package/dist/index.js +6615 -1548
- package/package.json +11 -8
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactElement, ComponentProps } from 'react';
|
|
2
|
+
import React__default, { ReactElement, ReactNode, ComponentProps } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
|
-
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, HoverCard as HoverCard$1, Label as Label$1, Menubar as Menubar$1, Popover as Popover$1, RadioGroup as RadioGroup$1, Select as Select$1, Separator as Separator$1, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1 } from 'radix-ui';
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
6
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
-
import {
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { FieldValues, FieldPath, UseFormReturn } from 'react-hook-form';
|
|
7
|
+
import { Matcher, DayPicker } from 'react-day-picker';
|
|
8
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, HoverCard as HoverCard$1, Label as Label$1, Menubar as Menubar$1, Popover as Popover$1, RadioGroup as RadioGroup$1, Select as Select$1, Separator as Separator$1, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1 } from 'radix-ui';
|
|
8
9
|
import { Combobox as Combobox$1 } from '@base-ui/react';
|
|
9
10
|
import { Command as Command$1 } from 'cmdk';
|
|
10
11
|
import { OTPInput } from 'input-otp';
|
|
@@ -16,6 +17,62 @@ type SlideUpProps = {
|
|
|
16
17
|
};
|
|
17
18
|
declare const SlideUp: ({ children, className }: SlideUpProps) => React__default.ReactElement;
|
|
18
19
|
|
|
20
|
+
declare const BulkActionsGroup: {
|
|
21
|
+
({ label, children, isFirst, }: BulkActionsGroupProps): React__default.ReactElement;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
type BulkActionsBarWithGroup = typeof BulkActionsBarInner & {
|
|
25
|
+
Group: typeof BulkActionsGroup;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
declare const BulkActionsBarInner: ({ selectedCount, entityLabel, onClear, children, }: BulkActionsBarProps) => ReactElement;
|
|
29
|
+
declare const BulkActionsBar: BulkActionsBarWithGroup;
|
|
30
|
+
|
|
31
|
+
declare const AppTable: <T>({ headers, elements, renderRow, getRowId, isLoading, tableHeaderClassname, headerClassName, fixedLayout, hideHeadersWhenEmpty, empty, pagination, sort, headerLabelClassName, selection, bulkActions, }: AppTableProps<T>) => React__default.ReactElement;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* BulkUploadTable<TRow>
|
|
35
|
+
*
|
|
36
|
+
* A generic, editable data grid used in bulk upload flows (F4/F5).
|
|
37
|
+
* Each row from the server's parse response is rendered as a card
|
|
38
|
+
* with fields in a responsive grid — avoids horizontal scroll.
|
|
39
|
+
*/
|
|
40
|
+
declare const BulkUploadTable: <TRow extends BulkUploadRow>({ columns, rows, onRowChange, onConfirm, onCancel, isSubmitting, errors, }: BulkUploadTableProps<TRow>) => React__default.ReactElement;
|
|
41
|
+
|
|
42
|
+
declare const ImagePreviewDialog: ({ src, alt, mimeType, className, previewClassName, title, onDownload, }: ImagePreviewDialogProps) => React__default.ReactElement;
|
|
43
|
+
|
|
44
|
+
type InfoCardProps = {
|
|
45
|
+
children: React__default.ReactElement;
|
|
46
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
47
|
+
position?: "top" | "right" | "left" | "bottom";
|
|
48
|
+
};
|
|
49
|
+
declare const InfoCard: ({ children, size, position, }: InfoCardProps) => React__default.ReactElement;
|
|
50
|
+
|
|
51
|
+
type BaseInfoItemProps = {
|
|
52
|
+
icon: LucideIcon;
|
|
53
|
+
label?: string;
|
|
54
|
+
className?: string;
|
|
55
|
+
copyable?: boolean;
|
|
56
|
+
isLink?: boolean;
|
|
57
|
+
};
|
|
58
|
+
type InfoItemWithValue = BaseInfoItemProps & {
|
|
59
|
+
value: string;
|
|
60
|
+
children?: never;
|
|
61
|
+
};
|
|
62
|
+
type InfoItemWithChildren = BaseInfoItemProps & {
|
|
63
|
+
children: ReactNode;
|
|
64
|
+
value?: never;
|
|
65
|
+
};
|
|
66
|
+
type InfoItemProps = InfoItemWithValue | InfoItemWithChildren;
|
|
67
|
+
declare const InfoItem: ({ icon, label, value, children, className, copyable, isLink, }: InfoItemProps) => React.ReactElement;
|
|
68
|
+
|
|
69
|
+
type SocialMediaProps = {
|
|
70
|
+
socialMedia: SocialMedia;
|
|
71
|
+
};
|
|
72
|
+
declare const SocialMedia: ({ socialMedia }: SocialMediaProps) => React__default.ReactElement;
|
|
73
|
+
|
|
74
|
+
declare function AppToaster(): React.ReactElement;
|
|
75
|
+
|
|
19
76
|
type EmptyAction = {
|
|
20
77
|
label: string;
|
|
21
78
|
onClick: () => void;
|
|
@@ -36,6 +93,38 @@ type ErrorFallbackProps = {
|
|
|
36
93
|
};
|
|
37
94
|
declare function ErrorFallback({ error, resetError }: ErrorFallbackProps): ReactElement;
|
|
38
95
|
|
|
96
|
+
declare const AppSkeleton: () => React__default.ReactElement;
|
|
97
|
+
|
|
98
|
+
declare const BreadcrumbSkeleton: () => React__default.ReactElement;
|
|
99
|
+
|
|
100
|
+
declare const buttonVariants: (props?: ({
|
|
101
|
+
variant?: "link" | "outline" | "default" | "secondary" | "destructive" | "ghost" | "success" | null | undefined;
|
|
102
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
103
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
104
|
+
type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
105
|
+
|
|
106
|
+
type Props$5 = Pick<ButtonVariants, "size"> & {
|
|
107
|
+
className?: string;
|
|
108
|
+
fullWidth?: boolean;
|
|
109
|
+
};
|
|
110
|
+
declare const ButtonSkeleton: ({ size, className, fullWidth, }: Props$5) => React__default.ReactElement;
|
|
111
|
+
|
|
112
|
+
declare const PageHeaderSkeleton: () => React__default.ReactElement;
|
|
113
|
+
|
|
114
|
+
declare const PageSkeleton: () => React__default.ReactElement;
|
|
115
|
+
|
|
116
|
+
declare const PageTitleSkeleton: () => React__default.ReactElement;
|
|
117
|
+
|
|
118
|
+
type Props$4 = {
|
|
119
|
+
dateFrom?: string;
|
|
120
|
+
dateTo?: string;
|
|
121
|
+
onChangeRange: (from?: string, to?: string) => void;
|
|
122
|
+
placeholder?: string;
|
|
123
|
+
disabled?: boolean;
|
|
124
|
+
className?: string;
|
|
125
|
+
};
|
|
126
|
+
declare const FilterDateRangePicker: ({ dateFrom, dateTo, onChangeRange, placeholder, disabled, className, }: Props$4) => React__default.ReactElement;
|
|
127
|
+
|
|
39
128
|
type FilterSelectProps = {
|
|
40
129
|
label?: string;
|
|
41
130
|
options: Option[];
|
|
@@ -49,6 +138,294 @@ type FilterSelectProps = {
|
|
|
49
138
|
};
|
|
50
139
|
declare const FilterSelect: ({ label, options, value, onChange, placeholder, disabled, className, labelClassName, inputClassName, }: FilterSelectProps) => React__default.ReactElement;
|
|
51
140
|
|
|
141
|
+
declare const FiltersWrapper: ({ activeFilterCount, hasActiveFilters, children, clearFilters, direction, variant, mobileTitle, mobileDescription, presets, }: FiltersWrapperProps) => React__default.ReactElement;
|
|
142
|
+
|
|
143
|
+
declare const SearchFilterSelect: ({ placeholder, allLabel, searchPlaceholder, value, onChange, options, isLoading, onSearch, className, }: SearchFilterSelectProps) => React__default.ReactElement;
|
|
144
|
+
|
|
145
|
+
type SearchInputProps = {
|
|
146
|
+
value: string | undefined;
|
|
147
|
+
onCommit: (value: string | undefined) => void;
|
|
148
|
+
placeholder?: string;
|
|
149
|
+
className?: string;
|
|
150
|
+
};
|
|
151
|
+
declare const SearchInput: ({ value, onCommit, placeholder, className, }: SearchInputProps) => React__default.ReactElement;
|
|
152
|
+
|
|
153
|
+
declare const FileDropzone: <T extends FieldValues>({ label, name, form, required, helperText, acceptText, className, upload, accept, maxSize, previewSrc, getFileUrl, getPdfThumbnail, }: FormFileUploaderProps<T>) => React.ReactElement;
|
|
154
|
+
|
|
155
|
+
type FormAddressProps = {
|
|
156
|
+
/**
|
|
157
|
+
* Form body rendered inside the dialog/sheet content. The consumer owns
|
|
158
|
+
* the form, fields, and submit handler. To close the wrapper after a
|
|
159
|
+
* successful submit, the consumer calls `onOpenChange(false)` (controlled)
|
|
160
|
+
* or unmounts; alternatively pass `onSuccess` and call it from the consumer's
|
|
161
|
+
* submit handler — the wrapper closes on `onSuccess`.
|
|
162
|
+
*/
|
|
163
|
+
children?: React__default.ReactNode;
|
|
164
|
+
/**
|
|
165
|
+
* Optional trigger element. When omitted, a default button is rendered.
|
|
166
|
+
* Ignored when the component is fully controlled (`open` provided) and no
|
|
167
|
+
* trigger is desired.
|
|
168
|
+
*/
|
|
169
|
+
trigger?: React__default.ReactElement;
|
|
170
|
+
/**
|
|
171
|
+
* Called when the consumer signals a successful submit. The wrapper closes
|
|
172
|
+
* after invoking this. Replaces the domain `onSuccess(address)` callback;
|
|
173
|
+
* the payload is now consumer-owned.
|
|
174
|
+
*/
|
|
175
|
+
onSuccess?: () => void;
|
|
176
|
+
variant?: "dialog" | "sheet";
|
|
177
|
+
/** Controlled open state — when provided, the component is fully controlled */
|
|
178
|
+
open?: boolean;
|
|
179
|
+
/** Controlled open change handler — required when `open` is provided */
|
|
180
|
+
onOpenChange?: (open: boolean) => void;
|
|
181
|
+
/** Default trigger label (used only when `trigger` is omitted) */
|
|
182
|
+
triggerLabel?: string;
|
|
183
|
+
/** Dialog max width class (dialog variant only) */
|
|
184
|
+
dialogClassName?: string;
|
|
185
|
+
/** SheetContent side (sheet variant only) */
|
|
186
|
+
sheetSide?: "left" | "right" | "top" | "bottom";
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* FormAddress — generic dialog/sheet form wrapper.
|
|
190
|
+
*
|
|
191
|
+
* Decoupled from campaign-dash during migration. The original hardcoded address
|
|
192
|
+
* fields (state, municipality, street, ext/int number, zip, neighborhood,
|
|
193
|
+
* between_streets), the `useAddressForm` hook (which depended on
|
|
194
|
+
* `useCreateAddress`, `useQueryStates`, `useQueryLocal`, `createAddressSchema`,
|
|
195
|
+
* `formatGeographicDivisionsOptions`), and the `Address`/`CreateAddress`
|
|
196
|
+
* domain types were all removed.
|
|
197
|
+
*
|
|
198
|
+
* TODO: domain-specific code removed during migration — the cascading
|
|
199
|
+
* geographic select (state → municipality) and the address schema/validation
|
|
200
|
+
* now live in the consumer. This wrapper only owns the dialog/sheet shell,
|
|
201
|
+
* open state, and the success→close behavior.
|
|
202
|
+
*/
|
|
203
|
+
declare const FormAddress: ({ children, trigger, onSuccess, variant, open: controlledOpen, onOpenChange: setControlledOpen, triggerLabel, dialogClassName, sheetSide, }: FormAddressProps) => React__default.ReactElement;
|
|
204
|
+
|
|
205
|
+
type FormAsyncMultiSelectProps<T extends FieldValues> = {
|
|
206
|
+
label: string;
|
|
207
|
+
name: FieldPath<T>;
|
|
208
|
+
form: UseFormReturn<T>;
|
|
209
|
+
options: Option[];
|
|
210
|
+
isLoading?: boolean;
|
|
211
|
+
hasMore?: boolean;
|
|
212
|
+
onSearch: (value: string) => void;
|
|
213
|
+
onLoadMore: () => void;
|
|
214
|
+
placeholder?: string;
|
|
215
|
+
required?: boolean;
|
|
216
|
+
helperText?: string;
|
|
217
|
+
className?: string;
|
|
218
|
+
info?: string;
|
|
219
|
+
disabled?: boolean;
|
|
220
|
+
optional?: boolean;
|
|
221
|
+
searchValue?: string;
|
|
222
|
+
open?: boolean;
|
|
223
|
+
onOpenChange?: (open: boolean) => void;
|
|
224
|
+
};
|
|
225
|
+
declare const FormAsyncMultiSelect: <T extends FieldValues>({ label, name, form, options, isLoading, hasMore, onSearch, onLoadMore, placeholder, required, helperText, className, info, disabled, optional, searchValue, open, onOpenChange, }: FormAsyncMultiSelectProps<T>) => React__default.ReactElement;
|
|
226
|
+
|
|
227
|
+
type FormAsyncSelectProps<T extends FieldValues> = {
|
|
228
|
+
label: string;
|
|
229
|
+
name: FieldPath<T>;
|
|
230
|
+
form: UseFormReturn<T>;
|
|
231
|
+
options: Option[];
|
|
232
|
+
isLoading?: boolean;
|
|
233
|
+
hasMore?: boolean;
|
|
234
|
+
onSearch: (value: string) => void;
|
|
235
|
+
onLoadMore?: () => void;
|
|
236
|
+
placeholder?: string;
|
|
237
|
+
searchPlaceholder?: string;
|
|
238
|
+
required?: boolean;
|
|
239
|
+
helperText?: string;
|
|
240
|
+
className?: string;
|
|
241
|
+
info?: string;
|
|
242
|
+
disabled?: boolean;
|
|
243
|
+
optional?: boolean;
|
|
244
|
+
searchValue?: string;
|
|
245
|
+
action?: React__default.ReactNode;
|
|
246
|
+
};
|
|
247
|
+
declare const FormAsyncSelect: <T extends FieldValues>({ label, name, form, options, isLoading, hasMore, onSearch, onLoadMore, placeholder, searchPlaceholder, required, helperText, className, info, disabled, optional, action, }: FormAsyncSelectProps<T>) => React__default.ReactElement;
|
|
248
|
+
|
|
249
|
+
type BaseProps$2<T extends FieldValues> = {
|
|
250
|
+
label: string;
|
|
251
|
+
form: UseFormReturn<T>;
|
|
252
|
+
required?: boolean;
|
|
253
|
+
helperText?: string;
|
|
254
|
+
className?: string;
|
|
255
|
+
info?: string;
|
|
256
|
+
optional?: boolean;
|
|
257
|
+
disabled?: boolean;
|
|
258
|
+
minDate?: Date;
|
|
259
|
+
maxDate?: Date;
|
|
260
|
+
disabledDates?: Matcher | Matcher[];
|
|
261
|
+
};
|
|
262
|
+
type Props$3<T extends FieldValues> = (BaseProps$2<T> & {
|
|
263
|
+
mode: "single";
|
|
264
|
+
name: FieldPath<T>;
|
|
265
|
+
}) | (BaseProps$2<T> & {
|
|
266
|
+
mode: "range";
|
|
267
|
+
name: FieldPath<T>;
|
|
268
|
+
});
|
|
269
|
+
declare const FormDatePicker: <T extends FieldValues>({ label, form, required, helperText, className, info, optional, disabled, disabledDates, minDate, maxDate, ...props }: Props$3<T>) => React__default.ReactElement;
|
|
270
|
+
|
|
271
|
+
type FormFieldProps<T extends FieldValues> = {
|
|
272
|
+
label: string;
|
|
273
|
+
name: FieldPath<T>;
|
|
274
|
+
form: UseFormReturn<T>;
|
|
275
|
+
type?: "text" | "email" | "password" | "tel" | "number" | "currency" | "percentage";
|
|
276
|
+
placeholder?: string;
|
|
277
|
+
required?: boolean;
|
|
278
|
+
helperText?: string;
|
|
279
|
+
className?: string;
|
|
280
|
+
info?: string;
|
|
281
|
+
optional?: boolean;
|
|
282
|
+
/** Solo para type="number": valor mínimo permitido (validación visual + RHF) */
|
|
283
|
+
min?: number;
|
|
284
|
+
/** Solo para type="number": valor máximo permitido (validación visual + RHF) */
|
|
285
|
+
max?: number;
|
|
286
|
+
/** Solo para type="number": permite valores decimales. Default: false */
|
|
287
|
+
allowDecimals?: boolean;
|
|
288
|
+
/** Solo para type="number": permite valores negativos. Default: false */
|
|
289
|
+
allowNegative?: boolean;
|
|
290
|
+
disabled?: boolean;
|
|
291
|
+
};
|
|
292
|
+
declare const FormField: <T extends FieldValues>({ label, name, form, type, placeholder, required, helperText, className, info, optional, min, max, allowDecimals, allowNegative, disabled, }: FormFieldProps<T>) => React.ReactElement;
|
|
293
|
+
|
|
294
|
+
type FormMultiSelectProps<T extends FieldValues> = {
|
|
295
|
+
label: string;
|
|
296
|
+
name: FieldPath<T>;
|
|
297
|
+
form: UseFormReturn<T>;
|
|
298
|
+
options: Option[];
|
|
299
|
+
placeholder?: string;
|
|
300
|
+
required?: boolean;
|
|
301
|
+
helperText?: string;
|
|
302
|
+
className?: string;
|
|
303
|
+
info?: string;
|
|
304
|
+
disabled?: boolean;
|
|
305
|
+
optional?: boolean;
|
|
306
|
+
};
|
|
307
|
+
declare const FormMultiSelect: <T extends FieldValues>({ label, name, form, options, placeholder, required, helperText, className, info, disabled, optional, }: FormMultiSelectProps<T>) => React__default.ReactElement;
|
|
308
|
+
|
|
309
|
+
type FormSelectProps<T extends FieldValues> = {
|
|
310
|
+
label: string;
|
|
311
|
+
name: FieldPath<T>;
|
|
312
|
+
form: UseFormReturn<T>;
|
|
313
|
+
options: Option[];
|
|
314
|
+
placeholder?: string;
|
|
315
|
+
required?: boolean;
|
|
316
|
+
helperText?: string;
|
|
317
|
+
className?: string;
|
|
318
|
+
info?: string;
|
|
319
|
+
disabled?: boolean;
|
|
320
|
+
optional?: boolean;
|
|
321
|
+
searchable?: boolean;
|
|
322
|
+
searchPlaceholder?: string;
|
|
323
|
+
action?: React.ReactNode;
|
|
324
|
+
};
|
|
325
|
+
declare const FormSelect: <T extends FieldValues>({ label, name, form, options, placeholder, required, helperText, className, info, disabled, optional, searchable, searchPlaceholder, action, }: FormSelectProps<T>) => React.ReactElement;
|
|
326
|
+
|
|
327
|
+
declare const FormSheet: ({ open, onOpenChange, icon: Icon, title, description, maxWidth, children, footer, }: FormSheetProps) => React__default.ReactElement;
|
|
328
|
+
|
|
329
|
+
declare const FormSignaturePad: <T extends FieldValues>({ name, form, required, className, upload, getFileUrl, }: FormSignaturePadProps<T>) => React$1.JSX.Element;
|
|
330
|
+
|
|
331
|
+
type FormSwitchProps<T extends FieldValues> = {
|
|
332
|
+
label?: string;
|
|
333
|
+
name: FieldPath<T>;
|
|
334
|
+
form: UseFormReturn<T>;
|
|
335
|
+
helperText?: string;
|
|
336
|
+
className?: string;
|
|
337
|
+
info?: string;
|
|
338
|
+
optional?: boolean;
|
|
339
|
+
required?: boolean;
|
|
340
|
+
disabled?: boolean;
|
|
341
|
+
activeText?: string;
|
|
342
|
+
inactiveText?: string;
|
|
343
|
+
};
|
|
344
|
+
declare const FormSwitch: <T extends FieldValues>({ label, name, form, helperText, className, info, optional, required, disabled, activeText, inactiveText, }: FormSwitchProps<T>) => React.ReactElement;
|
|
345
|
+
|
|
346
|
+
type FormTextareaProps<T extends FieldValues> = {
|
|
347
|
+
label: string;
|
|
348
|
+
name: FieldPath<T>;
|
|
349
|
+
form: UseFormReturn<T>;
|
|
350
|
+
placeholder?: string;
|
|
351
|
+
required?: boolean;
|
|
352
|
+
helperText?: string;
|
|
353
|
+
className?: string;
|
|
354
|
+
info?: string;
|
|
355
|
+
optional?: boolean;
|
|
356
|
+
rows?: number;
|
|
357
|
+
action?: React__default.ReactElement;
|
|
358
|
+
};
|
|
359
|
+
declare const FormTextarea: <T extends FieldValues>({ label, name, form, placeholder, required, helperText, className, info, optional, rows, action, }: FormTextareaProps<T>) => React__default.ReactElement;
|
|
360
|
+
|
|
361
|
+
type BaseProps$1<T extends FieldValues> = {
|
|
362
|
+
label: string;
|
|
363
|
+
form: UseFormReturn<T>;
|
|
364
|
+
required?: boolean;
|
|
365
|
+
helperText?: string;
|
|
366
|
+
className?: string;
|
|
367
|
+
info?: string;
|
|
368
|
+
optional?: boolean;
|
|
369
|
+
/** Step in minutes for the time options (default: 5) */
|
|
370
|
+
minuteStep?: number;
|
|
371
|
+
/** Minimum selectable time "HH:mm" */
|
|
372
|
+
minTime?: string;
|
|
373
|
+
/** Maximum selectable time "HH:mm" */
|
|
374
|
+
maxTime?: string;
|
|
375
|
+
};
|
|
376
|
+
type Props$2<T extends FieldValues> = (BaseProps$1<T> & {
|
|
377
|
+
mode: "single";
|
|
378
|
+
name: FieldPath<T>;
|
|
379
|
+
}) | (BaseProps$1<T> & {
|
|
380
|
+
mode: "range";
|
|
381
|
+
name: FieldPath<T>;
|
|
382
|
+
});
|
|
383
|
+
declare const FormTimeSelector: <T extends FieldValues>({ label, form, required, helperText, className, info, optional, minuteStep, minTime, maxTime, ...props }: Props$2<T>) => React__default.ReactElement;
|
|
384
|
+
|
|
385
|
+
type BaseProps<T extends FieldValues> = {
|
|
386
|
+
label: string;
|
|
387
|
+
form: UseFormReturn<T>;
|
|
388
|
+
required?: boolean;
|
|
389
|
+
helperText?: string;
|
|
390
|
+
className?: string;
|
|
391
|
+
info?: string;
|
|
392
|
+
optional?: boolean;
|
|
393
|
+
fromYear?: number;
|
|
394
|
+
toYear?: number;
|
|
395
|
+
};
|
|
396
|
+
type Props$1<T extends FieldValues> = (BaseProps<T> & {
|
|
397
|
+
mode: "single";
|
|
398
|
+
name: FieldPath<T>;
|
|
399
|
+
}) | (BaseProps<T> & {
|
|
400
|
+
mode: "range";
|
|
401
|
+
name: FieldPath<T>;
|
|
402
|
+
});
|
|
403
|
+
declare const FormYearSelector: <T extends FieldValues>({ label, form, required, helperText, className, info, optional, fromYear, toYear, ...props }: Props$1<T>) => React__default.ReactElement;
|
|
404
|
+
|
|
405
|
+
declare const Optional: () => React__default.ReactElement;
|
|
406
|
+
|
|
407
|
+
interface SignaturePadProps {
|
|
408
|
+
/** Called with the signature as a PNG Blob whenever a stroke ends */
|
|
409
|
+
onSignature: (blob: Blob) => void;
|
|
410
|
+
/** Width in px (default: 100% of container) */
|
|
411
|
+
width?: number;
|
|
412
|
+
/** Height in px */
|
|
413
|
+
height?: number;
|
|
414
|
+
className?: string;
|
|
415
|
+
disabled?: boolean;
|
|
416
|
+
/** Hide the action buttons (Undo, Clear, Confirm). The parent controls submission. */
|
|
417
|
+
hideConfirm?: boolean;
|
|
418
|
+
}
|
|
419
|
+
/** Renders the SignaturePad component. */
|
|
420
|
+
declare function SignaturePad({ onSignature, height, className, disabled, hideConfirm, }: SignaturePadProps): ReactElement;
|
|
421
|
+
|
|
422
|
+
type LandingLayoutProps = {
|
|
423
|
+
header?: React__default.ReactNode;
|
|
424
|
+
footer?: React__default.ReactNode;
|
|
425
|
+
children?: React__default.ReactNode;
|
|
426
|
+
};
|
|
427
|
+
declare const LandingLayout: ({ header, footer, children, }: LandingLayoutProps) => React__default.ReactElement;
|
|
428
|
+
|
|
52
429
|
declare const SectionTitle: ({ icon: Icon, title, description, action, onEdit, editLabel, }: SectionTitleProps) => React__default.ReactElement;
|
|
53
430
|
|
|
54
431
|
type BreadcrumbItemConfig = {
|
|
@@ -180,7 +557,7 @@ declare const Avatar: ({ className, size, ...props }: React__default.ComponentPr
|
|
|
180
557
|
}) => React__default.ReactElement;
|
|
181
558
|
|
|
182
559
|
declare const badgeVariants: (props?: ({
|
|
183
|
-
variant?: "link" | "outline" | "default" | "secondary" | "
|
|
560
|
+
variant?: "link" | "outline" | "default" | "secondary" | "destructive" | "ghost" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
184
561
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
185
562
|
|
|
186
563
|
declare const Badge: ({ className, variant, asChild, ...props }: React__default.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
@@ -189,12 +566,6 @@ declare const Badge: ({ className, variant, asChild, ...props }: React__default.
|
|
|
189
566
|
|
|
190
567
|
declare const Breadcrumb: ({ className, ...props }: React__default.ComponentProps<"nav">) => React__default.ReactElement;
|
|
191
568
|
|
|
192
|
-
declare const buttonVariants: (props?: ({
|
|
193
|
-
variant?: "link" | "outline" | "default" | "secondary" | "ghost" | "destructive" | "success" | null | undefined;
|
|
194
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
195
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
196
|
-
type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
197
|
-
|
|
198
569
|
type Props = React__default.ComponentProps<"button"> & ButtonVariants & {
|
|
199
570
|
asChild?: boolean;
|
|
200
571
|
};
|
|
@@ -386,4 +757,4 @@ declare const ToggleGroup: ({ className, variant, size, spacing, orientation, ch
|
|
|
386
757
|
|
|
387
758
|
declare const Tooltip: ({ ...props }: React__default.ComponentProps<typeof Tooltip$1.Root>) => React__default.ReactElement;
|
|
388
759
|
|
|
389
|
-
export { Accordion, ActionsMenu, AlertDialog, AppBreadcrumbs, AppTabs, Avatar, Badge, Breadcrumb, Button, ButtonGroup, Calendar, Card, Checkbox, Collapsible, Combobox, Command, ConfirmDialog, ContextMenu, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, Empty, ErrorFallback, FilterSelect, Glow, HoverCard, Image, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, Item, Label, Menubar, Modal, Pagination, Popover, Progress, RadioGroup, SectionCard, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, Sidebar, Skeleton, SlideUp, Spinner, Steps, Switch, Table, TablePagination, Tabs, Textarea, Toaster, Toggle, ToggleGroup, Tooltip, TruncatedText, WaveLayer };
|
|
760
|
+
export { Accordion, ActionsMenu, AlertDialog, AppBreadcrumbs, AppSkeleton, AppTable, AppTabs, AppToaster, Avatar, Badge, Breadcrumb, BreadcrumbSkeleton, BulkActionsBar, BulkUploadTable, Button, ButtonGroup, ButtonSkeleton, Calendar, Card, Checkbox, Collapsible, Combobox, Command, ConfirmDialog, ContextMenu, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, Empty, ErrorFallback, FileDropzone, FilterDateRangePicker, FilterSelect, FiltersWrapper, FormAddress, FormAsyncMultiSelect, FormAsyncSelect, FormDatePicker, FormField, FormMultiSelect, FormSelect, FormSheet, FormSignaturePad, FormSwitch, FormTextarea, FormTimeSelector, FormYearSelector, Glow, HoverCard, Image, ImagePreviewDialog, InfoCard, InfoItem, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, Item, Label, LandingLayout, Menubar, Modal, Optional, PageHeaderSkeleton, PageSkeleton, PageTitleSkeleton, Pagination, Popover, Progress, RadioGroup, SearchFilterSelect, SearchInput, SectionCard, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, Sidebar, SignaturePad, Skeleton, SlideUp, SocialMedia, Spinner, Steps, Switch, Table, TablePagination, Tabs, Textarea, Toaster, Toggle, ToggleGroup, Tooltip, TruncatedText, WaveLayer };
|