@pixpilot/shadcn-ui 0.0.4 → 0.0.6
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/AbsoluteFill.cjs +1 -0
- package/dist/AbsoluteFill.d.cts +18 -0
- package/dist/AbsoluteFill.d.ts +18 -0
- package/dist/AbsoluteFill.js +1 -0
- package/dist/Alert.cjs +1 -0
- package/dist/Alert.d.cts +16 -0
- package/dist/Alert.d.ts +16 -0
- package/dist/Alert.js +1 -0
- package/dist/Button.cjs +1 -0
- package/dist/Button.d.cts +47 -0
- package/dist/Button.d.ts +47 -0
- package/dist/Button.js +1 -0
- package/dist/CloseButtonAbsolute.cjs +1 -0
- package/dist/CloseButtonAbsolute.d.cts +8 -0
- package/dist/CloseButtonAbsolute.d.ts +8 -0
- package/dist/CloseButtonAbsolute.js +1 -0
- package/dist/CloseButtonRounded.cjs +1 -0
- package/dist/CloseButtonRounded.d.cts +8 -0
- package/dist/CloseButtonRounded.d.ts +8 -0
- package/dist/CloseButtonRounded.js +1 -0
- package/dist/Combobox.cjs +1 -0
- package/dist/Combobox.d.cts +16 -0
- package/dist/Combobox.d.ts +16 -0
- package/dist/Combobox.js +1 -0
- package/dist/CommandOptionList.cjs +1 -0
- package/dist/CommandOptionList.d.cts +7 -0
- package/dist/CommandOptionList.d.ts +7 -0
- package/dist/CommandOptionList.js +1 -0
- package/dist/ContentCard.cjs +1 -0
- package/dist/ContentCard.d.cts +16 -0
- package/dist/ContentCard.d.ts +16 -0
- package/dist/ContentCard.js +1 -0
- package/dist/DatePicker.cjs +1 -0
- package/dist/DatePicker.d.cts +16 -0
- package/dist/DatePicker.d.ts +16 -0
- package/dist/DatePicker.js +1 -0
- package/dist/FileUploadInline.cjs +1 -0
- package/dist/FileUploadInline.d.cts +75 -0
- package/dist/FileUploadInline.d.ts +75 -0
- package/dist/FileUploadInline.js +1 -0
- package/dist/Loader.cjs +1 -0
- package/dist/Loader.d.cts +21 -0
- package/dist/Loader.d.ts +21 -0
- package/dist/Loader.js +1 -0
- package/dist/Pagination/Pagination.cjs +1 -0
- package/dist/Pagination/Pagination.d.cts +88 -0
- package/dist/Pagination/Pagination.d.ts +88 -0
- package/dist/Pagination/Pagination.js +1 -0
- package/dist/Pagination/index.cjs +1 -0
- package/dist/Pagination/index.d.cts +1 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/Pagination/index.js +1 -0
- package/dist/PopoverContent.cjs +1 -0
- package/dist/PopoverContent.d.cts +8 -0
- package/dist/PopoverContent.d.ts +8 -0
- package/dist/PopoverContent.js +1 -0
- package/dist/Select.cjs +1 -0
- package/dist/Select.d.cts +18 -0
- package/dist/Select.d.ts +18 -0
- package/dist/Select.js +1 -0
- package/dist/Slider.cjs +1 -0
- package/dist/Slider.d.cts +8 -0
- package/dist/Slider.d.ts +8 -0
- package/dist/Slider.js +1 -0
- package/dist/ThemeToggle.cjs +1 -0
- package/dist/ThemeToggle.d.cts +6 -0
- package/dist/ThemeToggle.d.ts +6 -0
- package/dist/ThemeToggle.js +1 -0
- package/dist/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/confirmation-dialog/ConfirmationDialog.cjs +1 -0
- package/dist/confirmation-dialog/ConfirmationDialog.d.cts +13 -0
- package/dist/confirmation-dialog/ConfirmationDialog.d.ts +14 -0
- package/dist/confirmation-dialog/ConfirmationDialog.js +1 -0
- package/dist/confirmation-dialog/DialogProvider.cjs +1 -0
- package/dist/confirmation-dialog/DialogProvider.d.cts +9 -0
- package/dist/confirmation-dialog/DialogProvider.d.ts +9 -0
- package/dist/confirmation-dialog/DialogProvider.js +1 -0
- package/dist/confirmation-dialog/confirmation-dialogs.cjs +1 -0
- package/dist/confirmation-dialog/confirmation-dialogs.d.cts +7 -0
- package/dist/confirmation-dialog/confirmation-dialogs.d.ts +7 -0
- package/dist/confirmation-dialog/confirmation-dialogs.js +1 -0
- package/dist/confirmation-dialog/index.cjs +1 -0
- package/dist/confirmation-dialog/index.d.cts +3 -0
- package/dist/confirmation-dialog/index.d.ts +3 -0
- package/dist/confirmation-dialog/index.js +1 -0
- package/dist/index.cjs +1 -96
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1 -96
- package/dist/shadcn/src/components/ui/alert.cjs +1 -0
- package/dist/shadcn/src/components/ui/alert.js +1 -0
- package/dist/shadcn/src/components/ui/dialog.cjs +1 -0
- package/dist/shadcn/src/components/ui/dialog.js +1 -0
- package/dist/shadcn/src/lib/index.cjs +1 -0
- package/dist/shadcn/src/lib/index.js +1 -0
- package/dist/shadcn/src/lib/utils.cjs +1 -0
- package/dist/shadcn/src/lib/utils.js +1 -0
- package/dist/spinner/index.cjs +1 -0
- package/dist/spinner/index.d.cts +1 -0
- package/dist/spinner/index.d.ts +1 -0
- package/dist/spinner/index.js +1 -0
- package/dist/spinner/spinner.cjs +7 -0
- package/dist/spinner/spinner.d.cts +46 -0
- package/dist/spinner/spinner.d.ts +46 -0
- package/dist/spinner/spinner.js +7 -0
- package/dist/spinner/styles.cjs +46 -0
- package/dist/spinner/styles.js +46 -0
- package/dist/tags-input.cjs +1 -0
- package/dist/tags-input.d.cts +60 -0
- package/dist/tags-input.d.ts +60 -0
- package/dist/tags-input.js +1 -0
- package/dist/theme-provider/ThemeProvider.cjs +1 -0
- package/dist/theme-provider/ThemeProvider.d.cts +16 -0
- package/dist/theme-provider/ThemeProvider.d.ts +16 -0
- package/dist/theme-provider/ThemeProvider.js +1 -0
- package/dist/theme-provider/index.cjs +1 -0
- package/dist/theme-provider/index.d.cts +3 -0
- package/dist/theme-provider/index.d.ts +3 -0
- package/dist/theme-provider/index.js +1 -0
- package/dist/toast/AlertToast.cjs +1 -0
- package/dist/toast/AlertToast.d.cts +9 -0
- package/dist/toast/AlertToast.d.ts +9 -0
- package/dist/toast/AlertToast.js +1 -0
- package/dist/toast/index.cjs +1 -0
- package/dist/toast/index.d.cts +1 -0
- package/dist/toast/index.d.ts +1 -0
- package/dist/toast/index.js +1 -0
- package/dist/toast/toast.cjs +1 -0
- package/dist/toast/toast.d.cts +20 -0
- package/dist/toast/toast.d.ts +20 -0
- package/dist/toast/toast.js +1 -0
- package/package.json +6 -6
- package/dist/index-BMHRJkpu.d.ts +0 -470
- package/dist/index-JkmaV8h2.d.cts +0 -470
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
import { Button as Button$1, Calendar, Card, Command, FileUploadProps, PopoverContent as PopoverContent$1, Select as Select$1, Slider as Slider$1, Tooltip, buttonVariants, cn } from "@pixpilot/shadcn";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
import React$1, { ComponentProps, ReactNode } from "react";
|
|
4
|
-
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import "@ebay/nice-modal-react";
|
|
6
|
-
import { ThemeProvider as ThemeProvider$1, useTheme } from "next-themes";
|
|
7
|
-
|
|
8
|
-
//#region src/AbsoluteFill.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* Stretched element to enable tooltips on disabled buttons
|
|
11
|
-
* When a button is disabled, tooltips don't work by default.
|
|
12
|
-
* This element is positioned absolutely over the button to capture events.
|
|
13
|
-
*/
|
|
14
|
-
declare function AbsoluteFill(props: React$1.HTMLAttributes<HTMLDivElement> & {
|
|
15
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
16
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
17
|
-
declare namespace AbsoluteFill {
|
|
18
|
-
var displayName: string;
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/Alert.d.ts
|
|
22
|
-
type AlertVariant = 'error' | 'info' | 'warning' | 'success' | 'default';
|
|
23
|
-
interface AlertBaseProps {
|
|
24
|
-
variant?: AlertVariant;
|
|
25
|
-
description?: string;
|
|
26
|
-
duration?: number;
|
|
27
|
-
title?: string;
|
|
28
|
-
className?: string;
|
|
29
|
-
icon?: React$1.JSX.Element | boolean;
|
|
30
|
-
}
|
|
31
|
-
interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, AlertBaseProps {}
|
|
32
|
-
declare const Alert: React$1.FC<AlertProps>;
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/Button.d.ts
|
|
35
|
-
interface ButtonLoaderProps {
|
|
36
|
-
/**
|
|
37
|
-
* Position of the loader relative to button content
|
|
38
|
-
* @default 'end'
|
|
39
|
-
*/
|
|
40
|
-
placement?: 'start' | 'end' | 'center';
|
|
41
|
-
}
|
|
42
|
-
interface ButtonProps extends React$1.ComponentProps<typeof Button$1>, VariantProps<typeof buttonVariants> {
|
|
43
|
-
/**
|
|
44
|
-
* Tooltip message to show when button is disabled
|
|
45
|
-
*/
|
|
46
|
-
disabledTooltip?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Regular tooltip message
|
|
49
|
-
*/
|
|
50
|
-
tooltip?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Loading state
|
|
53
|
-
*/
|
|
54
|
-
loading?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Loader configuration
|
|
57
|
-
*/
|
|
58
|
-
LoaderProps?: ButtonLoaderProps;
|
|
59
|
-
/**
|
|
60
|
-
* Click handler for when disabled button is clicked
|
|
61
|
-
*/
|
|
62
|
-
onDisabledClick?: (e: React$1.MouseEvent<HTMLDivElement>) => void;
|
|
63
|
-
/**
|
|
64
|
-
* Props to pass to the tooltip component
|
|
65
|
-
*/
|
|
66
|
-
TooltipProps?: Omit<React$1.ComponentProps<typeof Tooltip>, 'children' | 'delayDuration'>;
|
|
67
|
-
}
|
|
68
|
-
declare function Button(props: ButtonProps & {
|
|
69
|
-
ref?: React$1.Ref<HTMLButtonElement>;
|
|
70
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
71
|
-
declare namespace Button {
|
|
72
|
-
var displayName: string;
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/CloseButtonRounded.d.ts
|
|
76
|
-
interface CloseButtonRoundedProps extends React$1.ComponentProps<typeof Button$1> {}
|
|
77
|
-
declare const CloseButtonRounded: React$1.FC<CloseButtonRoundedProps>;
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/CloseButtonAbsolute.d.ts
|
|
80
|
-
interface PopoverCloseButtonProps extends React$1.ComponentProps<typeof CloseButtonRounded> {}
|
|
81
|
-
declare const CloseButtonAbsolute: React$1.FC<PopoverCloseButtonProps>;
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/CommandOptionList.d.ts
|
|
84
|
-
interface CommandOptionListItem {
|
|
85
|
-
value: string;
|
|
86
|
-
label: string;
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region src/Combobox.d.ts
|
|
90
|
-
type ComboboxProps = {
|
|
91
|
-
value?: string;
|
|
92
|
-
onChange?: (value: string) => void;
|
|
93
|
-
options?: CommandOptionListItem[];
|
|
94
|
-
placeholder?: string;
|
|
95
|
-
searchPlaceholder?: string;
|
|
96
|
-
emptyText?: string;
|
|
97
|
-
} & Omit<ComponentProps<typeof Command>, 'value' | 'onValueChange'>;
|
|
98
|
-
declare const Combobox: React$1.FC<ComboboxProps>;
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/confirmation-dialog/ConfirmationDialog.d.ts
|
|
101
|
-
interface ConfirmationDialogProps {
|
|
102
|
-
title: string;
|
|
103
|
-
description?: string;
|
|
104
|
-
confirmText?: string;
|
|
105
|
-
cancelText?: string;
|
|
106
|
-
onConfirm?: () => void;
|
|
107
|
-
onCancel?: () => void;
|
|
108
|
-
}
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region src/confirmation-dialog/confirmation-dialogs.d.ts
|
|
111
|
-
interface ConfirmDialog extends ConfirmationDialogProps {}
|
|
112
|
-
declare function showConfirmDialog(props: ConfirmDialog): Promise<boolean>;
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region src/confirmation-dialog/DialogProvider.d.ts
|
|
115
|
-
interface DialogProviderProps {
|
|
116
|
-
children?: React$1.ReactNode;
|
|
117
|
-
}
|
|
118
|
-
declare const DialogProvider: React$1.FC<DialogProviderProps>;
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/ContentCard.d.ts
|
|
121
|
-
interface SectionCardProps extends React$1.ComponentProps<typeof Card> {
|
|
122
|
-
title?: string;
|
|
123
|
-
children: ReactNode;
|
|
124
|
-
marginBottom?: boolean;
|
|
125
|
-
}
|
|
126
|
-
declare function ContentCard(props: SectionCardProps): react_jsx_runtime0.JSX.Element;
|
|
127
|
-
declare namespace ContentCard {
|
|
128
|
-
var displayName: string;
|
|
129
|
-
}
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region src/DatePicker.d.ts
|
|
132
|
-
type BaseDatePickerProps = {
|
|
133
|
-
value?: Date;
|
|
134
|
-
onChange?: (date: Date | undefined) => void;
|
|
135
|
-
placeholder?: string;
|
|
136
|
-
} & Omit<ComponentProps<typeof Calendar>, 'selected' | 'onSelect' | 'mode'>;
|
|
137
|
-
declare function DatePicker(props: BaseDatePickerProps): react_jsx_runtime0.JSX.Element;
|
|
138
|
-
declare namespace DatePicker {
|
|
139
|
-
var displayName: string;
|
|
140
|
-
}
|
|
141
|
-
//#endregion
|
|
142
|
-
//#region src/FileUploadInline.d.ts
|
|
143
|
-
interface FileUploadInlineProps extends Omit<FileUploadProps, 'value'> {
|
|
144
|
-
/**
|
|
145
|
-
* The current file value (single file or array)
|
|
146
|
-
*/
|
|
147
|
-
value?: File | File[] | null;
|
|
148
|
-
/**
|
|
149
|
-
* Callback when file changes
|
|
150
|
-
*/
|
|
151
|
-
onChange?: (file: File | File[] | null) => void;
|
|
152
|
-
/**
|
|
153
|
-
* Button text when no file is selected
|
|
154
|
-
*/
|
|
155
|
-
buttonText?: string;
|
|
156
|
-
/**
|
|
157
|
-
* Show file icon
|
|
158
|
-
*/
|
|
159
|
-
showIcon?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Whether to show a clear button when a file is selected
|
|
162
|
-
*/
|
|
163
|
-
showClear?: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Custom class name for the container
|
|
166
|
-
*/
|
|
167
|
-
className?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Accepted file types
|
|
170
|
-
*/
|
|
171
|
-
accept?: string;
|
|
172
|
-
/**
|
|
173
|
-
* Whether the input is disabled
|
|
174
|
-
*/
|
|
175
|
-
disabled?: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Maximum file size in bytes
|
|
178
|
-
*/
|
|
179
|
-
maxSize?: number;
|
|
180
|
-
/**
|
|
181
|
-
* Maximum number of files (for multiple uploads)
|
|
182
|
-
*/
|
|
183
|
-
maxFiles?: number;
|
|
184
|
-
/**
|
|
185
|
-
* Allow multiple file selection
|
|
186
|
-
*/
|
|
187
|
-
multiple?: boolean;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* FileUploadInline - An inline file upload component using FileUpload primitives
|
|
191
|
-
*
|
|
192
|
-
* Features:
|
|
193
|
-
* - Shows a "Browse file" or custom button text
|
|
194
|
-
* - Displays selected filename with truncation
|
|
195
|
-
* - Uses FileUpload component primitives for proper file handling
|
|
196
|
-
* - Clean inline design
|
|
197
|
-
*/
|
|
198
|
-
declare function FileUploadInline({
|
|
199
|
-
value,
|
|
200
|
-
onChange,
|
|
201
|
-
buttonText,
|
|
202
|
-
showIcon,
|
|
203
|
-
showClear,
|
|
204
|
-
className,
|
|
205
|
-
accept,
|
|
206
|
-
disabled,
|
|
207
|
-
maxSize,
|
|
208
|
-
maxFiles,
|
|
209
|
-
multiple,
|
|
210
|
-
...rest
|
|
211
|
-
}: FileUploadInlineProps): react_jsx_runtime0.JSX.Element;
|
|
212
|
-
//#endregion
|
|
213
|
-
//#region src/Loader.d.ts
|
|
214
|
-
interface LoaderProps {
|
|
215
|
-
backdrop?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Position of the loader
|
|
218
|
-
* @default 'center'
|
|
219
|
-
*/
|
|
220
|
-
placement?: 'top' | 'bottom' | 'center';
|
|
221
|
-
loading: boolean;
|
|
222
|
-
message?: string;
|
|
223
|
-
/**
|
|
224
|
-
* Delay in milliseconds before showing the loader
|
|
225
|
-
* @default 300
|
|
226
|
-
*/
|
|
227
|
-
delay?: number;
|
|
228
|
-
}
|
|
229
|
-
declare const Loader: React$1.FC<LoaderProps>;
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region src/Pagination/Pagination.d.ts
|
|
232
|
-
interface PaginationProps {
|
|
233
|
-
/**
|
|
234
|
-
* Current page number (1-indexed)
|
|
235
|
-
*/
|
|
236
|
-
page: number;
|
|
237
|
-
/**
|
|
238
|
-
* Total number of pages
|
|
239
|
-
*/
|
|
240
|
-
totalPages: number;
|
|
241
|
-
/**
|
|
242
|
-
* Callback when page changes
|
|
243
|
-
*/
|
|
244
|
-
onPageChange: (event: React$1.ChangeEvent<unknown>, page: number) => void;
|
|
245
|
-
/**
|
|
246
|
-
* Maximum number of page numbers to display (excluding ellipsis)
|
|
247
|
-
* For example, with maxVisiblePages=4 and 10 total pages:
|
|
248
|
-
* - Page 1: <1 2 3 ... 10>
|
|
249
|
-
* - Page 5: <1 ... 5 ... 10>
|
|
250
|
-
* - Page 10: <1 ... 8 9 10>
|
|
251
|
-
* Set to 0 to hide page numbers entirely (only show prev/next buttons)
|
|
252
|
-
*
|
|
253
|
-
* @default 4
|
|
254
|
-
*/
|
|
255
|
-
maxVisiblePages?: number;
|
|
256
|
-
/**
|
|
257
|
-
* Display variant:
|
|
258
|
-
* - 'full': Shows page numbers with prev/next (e.g., < 1 2 3 ... 10 >)
|
|
259
|
-
* - 'simple': Only shows prev/next buttons (e.g., < >)
|
|
260
|
-
* - 'compact': Shows page indicator with all nav buttons (e.g., << < 2/10 > >>)
|
|
261
|
-
*
|
|
262
|
-
* @default 'full'
|
|
263
|
-
*/
|
|
264
|
-
variant?: 'full' | 'simple' | 'compact';
|
|
265
|
-
/**
|
|
266
|
-
* Size of the pagination component
|
|
267
|
-
* @default 'medium'
|
|
268
|
-
*/
|
|
269
|
-
size?: 'small' | 'medium' | 'large';
|
|
270
|
-
/**
|
|
271
|
-
* Whether to show first/last page buttons
|
|
272
|
-
* @default true
|
|
273
|
-
*/
|
|
274
|
-
showFirstLastButtons?: boolean;
|
|
275
|
-
/**
|
|
276
|
-
* Whether to show page info text (e.g., "Page 1 of 10")
|
|
277
|
-
* Only used with 'simple' variant
|
|
278
|
-
* @default false
|
|
279
|
-
*/
|
|
280
|
-
showPageInfo?: boolean;
|
|
281
|
-
className?: string;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Reusable pagination component with configurable page number display.
|
|
285
|
-
*
|
|
286
|
-
* @example
|
|
287
|
-
* // Full variant - default with page numbers
|
|
288
|
-
* <Pagination
|
|
289
|
-
* page={currentPage}
|
|
290
|
-
* totalPages={totalPages}
|
|
291
|
-
* onPageChange={handlePageChange}
|
|
292
|
-
* variant="full"
|
|
293
|
-
* />
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* // Compact variant - page indicator with first/prev/next/last buttons
|
|
297
|
-
* <Pagination
|
|
298
|
-
* page={currentPage}
|
|
299
|
-
* totalPages={totalPages}
|
|
300
|
-
* onPageChange={handlePageChange}
|
|
301
|
-
* variant="compact"
|
|
302
|
-
* />
|
|
303
|
-
*
|
|
304
|
-
* @example
|
|
305
|
-
* // Simple variant - only prev/next buttons
|
|
306
|
-
* <Pagination
|
|
307
|
-
* page={currentPage}
|
|
308
|
-
* totalPages={totalPages}
|
|
309
|
-
* onPageChange={handlePageChange}
|
|
310
|
-
* variant="simple"
|
|
311
|
-
* showPageInfo={true}
|
|
312
|
-
* />
|
|
313
|
-
*/
|
|
314
|
-
declare const Pagination: React$1.FC<PaginationProps>;
|
|
315
|
-
//#endregion
|
|
316
|
-
//#region src/PopoverContent.d.ts
|
|
317
|
-
interface PopoverContentProps extends React$1.ComponentProps<typeof PopoverContent$1> {}
|
|
318
|
-
declare const PopoverContent: React$1.FC<PopoverContentProps>;
|
|
319
|
-
//#endregion
|
|
320
|
-
//#region src/Select.d.ts
|
|
321
|
-
interface SelectOption {
|
|
322
|
-
value: string | number;
|
|
323
|
-
label: string;
|
|
324
|
-
}
|
|
325
|
-
type BaseSelectProps = {
|
|
326
|
-
options?: SelectOption[];
|
|
327
|
-
value?: string;
|
|
328
|
-
onChange?: (value: string) => void;
|
|
329
|
-
placeholder?: string;
|
|
330
|
-
} & Omit<ComponentProps<typeof Select$1>, 'value' | 'onValueChange' | 'children'>;
|
|
331
|
-
declare function Select(props: BaseSelectProps): react_jsx_runtime0.JSX.Element;
|
|
332
|
-
//#endregion
|
|
333
|
-
//#region src/Slider.d.ts
|
|
334
|
-
interface SliderProps extends React$1.ComponentProps<typeof Slider$1> {}
|
|
335
|
-
declare const Slider: React$1.FC<SliderProps>;
|
|
336
|
-
//#endregion
|
|
337
|
-
//#region src/spinner/spinner.d.ts
|
|
338
|
-
declare const SpinnerSize: {
|
|
339
|
-
readonly sm: 24;
|
|
340
|
-
readonly md: 40;
|
|
341
|
-
readonly lg: 64;
|
|
342
|
-
readonly xl: 96;
|
|
343
|
-
};
|
|
344
|
-
type SpinnerSizeKey = keyof typeof SpinnerSize;
|
|
345
|
-
interface SpinnerProps {
|
|
346
|
-
/**
|
|
347
|
-
* Size of the spinner - can be a preset ('sm', 'md', 'lg', 'xl') or a number in pixels
|
|
348
|
-
* @default 'md' (40px)
|
|
349
|
-
*/
|
|
350
|
-
size?: SpinnerSizeKey | number;
|
|
351
|
-
/**
|
|
352
|
-
* Width of the spinner stroke in pixels
|
|
353
|
-
* If not provided, automatically calculated as 10% of size (minimum 2px)
|
|
354
|
-
* @default Auto-calculated based on size
|
|
355
|
-
*/
|
|
356
|
-
strokeWidth?: number;
|
|
357
|
-
/**
|
|
358
|
-
* Duration of rotation animation in seconds
|
|
359
|
-
* @default 2
|
|
360
|
-
*/
|
|
361
|
-
speed?: number;
|
|
362
|
-
/**
|
|
363
|
-
* Single color for the spinner
|
|
364
|
-
* Use 'currentColor' to inherit text color from parent (works with dark/light mode)
|
|
365
|
-
* @default 'currentColor'
|
|
366
|
-
*/
|
|
367
|
-
color?: string;
|
|
368
|
-
/**
|
|
369
|
-
* Array of colors for color-changing animation
|
|
370
|
-
* If provided, overrides the color prop
|
|
371
|
-
*/
|
|
372
|
-
colors?: string[];
|
|
373
|
-
/**
|
|
374
|
-
* Additional CSS class name
|
|
375
|
-
*/
|
|
376
|
-
className?: string;
|
|
377
|
-
}
|
|
378
|
-
declare const Spinner: React$1.FC<SpinnerProps>;
|
|
379
|
-
//#endregion
|
|
380
|
-
//#region src/tags-input.d.ts
|
|
381
|
-
interface TagsInputProps {
|
|
382
|
-
value?: Array<string | number>;
|
|
383
|
-
onChange?: (value: Array<string | number>) => void;
|
|
384
|
-
options?: CommandOptionListItem[];
|
|
385
|
-
freeSolo?: boolean;
|
|
386
|
-
placeholder?: string;
|
|
387
|
-
emptyText?: string;
|
|
388
|
-
className?: string;
|
|
389
|
-
disabled?: boolean;
|
|
390
|
-
readOnly?: boolean;
|
|
391
|
-
maxTags?: number;
|
|
392
|
-
allowDuplicates?: boolean;
|
|
393
|
-
editable?: boolean;
|
|
394
|
-
label?: string;
|
|
395
|
-
delimiter?: string;
|
|
396
|
-
addOnPaste?: boolean;
|
|
397
|
-
addOnTab?: boolean;
|
|
398
|
-
onValidate?: (value: string) => boolean;
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* TagsInput component - Inline tags input based on DiceUI
|
|
402
|
-
*
|
|
403
|
-
* This is a different implementation than TagsInput, using the DiceUI library
|
|
404
|
-
* for a more streamlined inline editing experience.
|
|
405
|
-
*
|
|
406
|
-
* Features:
|
|
407
|
-
* - Inline tag display and editing
|
|
408
|
-
* - Keyboard navigation (Arrow keys, Home, End, Delete, Backspace)
|
|
409
|
-
* - Optional tag editing (editable prop)
|
|
410
|
-
* - Validation support
|
|
411
|
-
* - Paste support with delimiter parsing
|
|
412
|
-
* - Max tags limit
|
|
413
|
-
* - Options support with dropdown (like Select)
|
|
414
|
-
* - freeSolo mode for custom tags (like MUI Autocomplete)
|
|
415
|
-
*/
|
|
416
|
-
declare function TagsInput({
|
|
417
|
-
value,
|
|
418
|
-
onChange,
|
|
419
|
-
options,
|
|
420
|
-
freeSolo,
|
|
421
|
-
placeholder,
|
|
422
|
-
emptyText,
|
|
423
|
-
className,
|
|
424
|
-
disabled,
|
|
425
|
-
readOnly,
|
|
426
|
-
maxTags,
|
|
427
|
-
allowDuplicates,
|
|
428
|
-
editable,
|
|
429
|
-
label,
|
|
430
|
-
delimiter,
|
|
431
|
-
addOnPaste,
|
|
432
|
-
addOnTab,
|
|
433
|
-
onValidate
|
|
434
|
-
}: TagsInputProps): react_jsx_runtime0.JSX.Element;
|
|
435
|
-
//#endregion
|
|
436
|
-
//#region src/theme-provider/ThemeProvider.d.ts
|
|
437
|
-
/**
|
|
438
|
-
* Note: In Chrome extensions, a flicker (Flash of Wrong Theme, or FOWT) may occur on page load
|
|
439
|
-
* during development mode. This is resolved in production builds where scripts are included
|
|
440
|
-
* in the HTML head to apply the theme before content renders. Do not attempt to fix this in dev.
|
|
441
|
-
*/
|
|
442
|
-
interface ThemeProviderProps extends ComponentProps<typeof ThemeProvider$1> {
|
|
443
|
-
children: React$1.ReactNode;
|
|
444
|
-
}
|
|
445
|
-
declare const ThemeProvider: React$1.FC<ThemeProviderProps>;
|
|
446
|
-
//#endregion
|
|
447
|
-
//#region src/ThemeToggle.d.ts
|
|
448
|
-
declare function ThemeToggle(): react_jsx_runtime0.JSX.Element;
|
|
449
|
-
//#endregion
|
|
450
|
-
//#region src/toast/AlertToast.d.ts
|
|
451
|
-
interface AlertToastProps extends AlertProps {
|
|
452
|
-
onClose?: () => void;
|
|
453
|
-
}
|
|
454
|
-
//#endregion
|
|
455
|
-
//#region src/toast/toast.d.ts
|
|
456
|
-
declare const DEFAULT_ALERT_DURATION = 10000;
|
|
457
|
-
interface ToastProps extends AlertBaseProps {
|
|
458
|
-
duration?: number;
|
|
459
|
-
}
|
|
460
|
-
declare function toast(props: ToastProps): void;
|
|
461
|
-
type ToastMessage = string | ({
|
|
462
|
-
title: string;
|
|
463
|
-
description: string;
|
|
464
|
-
} & AlertToastProps);
|
|
465
|
-
declare function toastInfo(message: ToastMessage, duration?: number): void;
|
|
466
|
-
declare function toastSuccess(message: ToastMessage, duration?: number): void;
|
|
467
|
-
declare function toastWarning(message: ToastMessage, duration?: number): void;
|
|
468
|
-
declare function toastError(message: ToastMessage, duration?: number): void;
|
|
469
|
-
//#endregion
|
|
470
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, Button, ButtonLoaderProps, ButtonProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DialogProvider, DialogProviderProps, FileUploadInline, FileUploadInlineProps, Loader, LoaderProps, Pagination, PaginationProps, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, Select, SelectOption, Slider, SliderProps, Spinner, SpinnerProps, TagsInput, TagsInputProps, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useTheme };
|