@polastack/design-system 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/LICENSE +21 -0
- package/README.md +151 -0
- package/dist/index.d.ts +648 -0
- package/dist/index.js +3711 -0
- package/dist/index.js.map +1 -0
- package/dist/tokens/index.d.ts +218 -0
- package/dist/tokens/index.js +183 -0
- package/dist/tokens/index.js.map +1 -0
- package/package.json +94 -0
- package/src/styles/globals.css +395 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
7
|
+
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
8
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
9
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
10
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
11
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
12
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
13
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
14
|
+
import { ColumnDef, Column, Table as Table$1 } from '@tanstack/react-table';
|
|
15
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
16
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
17
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
18
|
+
|
|
19
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 型安全なReactコンテキストファクトリ。
|
|
23
|
+
* Provider外での使用時に明確なエラーメッセージを提供する。
|
|
24
|
+
*/
|
|
25
|
+
declare function createContext<T>(displayName: string): readonly [React.Provider<T | undefined>, () => T & ({} | null)];
|
|
26
|
+
|
|
27
|
+
declare const BREAKPOINTS: {
|
|
28
|
+
readonly sm: 640;
|
|
29
|
+
readonly md: 768;
|
|
30
|
+
readonly lg: 1024;
|
|
31
|
+
readonly xl: 1280;
|
|
32
|
+
readonly '2xl': 1536;
|
|
33
|
+
};
|
|
34
|
+
type Breakpoint = 'base' | keyof typeof BREAKPOINTS;
|
|
35
|
+
declare function useBreakpoint(): {
|
|
36
|
+
breakpoint: Breakpoint;
|
|
37
|
+
isMobile: boolean;
|
|
38
|
+
isTablet: boolean;
|
|
39
|
+
isDesktop: boolean;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
type DisplayMode = 'standalone' | 'minimal-ui' | 'fullscreen' | 'browser';
|
|
43
|
+
/**
|
|
44
|
+
* PWAの表示モードを検出するフック。
|
|
45
|
+
* standalone / minimal-ui / fullscreen / browser を返す。
|
|
46
|
+
*/
|
|
47
|
+
declare function useDisplayMode(): {
|
|
48
|
+
displayMode: DisplayMode;
|
|
49
|
+
isStandalone: boolean;
|
|
50
|
+
isPWA: boolean;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* ブラウザのオンライン/オフライン状態を監視するフック。
|
|
55
|
+
*/
|
|
56
|
+
declare function useOnlineStatus(): {
|
|
57
|
+
isOnline: boolean;
|
|
58
|
+
isOffline: boolean;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* モバイルブラウザのアドレスバーを考慮した実際のビューポート高さを返すフック。
|
|
63
|
+
* CSS の 100dvh が利用可能な場合はそちらを推奨するが、
|
|
64
|
+
* JS側でピクセル値が必要な場合に使用する。
|
|
65
|
+
*/
|
|
66
|
+
declare function useViewportHeight(): number;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* PWAインストールプロンプトを制御するフック。
|
|
70
|
+
* `beforeinstallprompt` イベントをキャプチャし、任意のタイミングで表示する。
|
|
71
|
+
*/
|
|
72
|
+
declare function useInstallPrompt(): {
|
|
73
|
+
canInstall: boolean;
|
|
74
|
+
isInstalled: boolean;
|
|
75
|
+
promptInstall: () => Promise<"accepted" | "dismissed" | null>;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
79
|
+
type ResolvedTheme = 'light' | 'dark';
|
|
80
|
+
interface UseThemeOptions {
|
|
81
|
+
storageKey?: string;
|
|
82
|
+
defaultTheme?: Theme;
|
|
83
|
+
}
|
|
84
|
+
interface UseThemeReturn {
|
|
85
|
+
theme: Theme;
|
|
86
|
+
setTheme: (theme: Theme) => void;
|
|
87
|
+
resolvedTheme: ResolvedTheme;
|
|
88
|
+
}
|
|
89
|
+
declare function useTheme$1(options?: UseThemeOptions): UseThemeReturn;
|
|
90
|
+
|
|
91
|
+
interface ThemeProviderProps {
|
|
92
|
+
children: React.ReactNode;
|
|
93
|
+
defaultTheme?: Theme;
|
|
94
|
+
storageKey?: string;
|
|
95
|
+
}
|
|
96
|
+
declare function ThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
97
|
+
declare namespace ThemeProvider {
|
|
98
|
+
var displayName: string;
|
|
99
|
+
}
|
|
100
|
+
declare function useTheme(): UseThemeReturn;
|
|
101
|
+
|
|
102
|
+
declare const buttonVariants: (props?: ({
|
|
103
|
+
variant?: "link" | "default" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
104
|
+
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
105
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
106
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
107
|
+
}
|
|
108
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
109
|
+
|
|
110
|
+
declare const badgeVariants: (props?: ({
|
|
111
|
+
variant?: "error" | "default" | "outline" | "success" | "warning" | "info" | null | undefined;
|
|
112
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
113
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
114
|
+
}
|
|
115
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
116
|
+
|
|
117
|
+
declare const avatarVariants: (props?: ({
|
|
118
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
119
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
120
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof avatarVariants> {
|
|
121
|
+
}
|
|
122
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
123
|
+
interface AvatarImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
124
|
+
}
|
|
125
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
126
|
+
interface AvatarFallbackProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
127
|
+
}
|
|
128
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
129
|
+
|
|
130
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
131
|
+
orientation?: 'horizontal' | 'vertical';
|
|
132
|
+
decorative?: boolean;
|
|
133
|
+
}
|
|
134
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
135
|
+
|
|
136
|
+
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
137
|
+
}
|
|
138
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
139
|
+
|
|
140
|
+
declare const spinnerVariants: (props?: ({
|
|
141
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
142
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
143
|
+
interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
144
|
+
}
|
|
145
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
146
|
+
|
|
147
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
148
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
149
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
150
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
151
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
152
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
153
|
+
|
|
154
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
155
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
156
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
157
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
158
|
+
|
|
159
|
+
declare const ToastProvider: React.FC<ToastPrimitive.ToastProviderProps>;
|
|
160
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
161
|
+
declare const toastVariants: (props?: ({
|
|
162
|
+
variant?: "error" | "default" | "success" | null | undefined;
|
|
163
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
164
|
+
interface ToastProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {
|
|
165
|
+
}
|
|
166
|
+
declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>;
|
|
167
|
+
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
168
|
+
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
169
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
170
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
171
|
+
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
172
|
+
|
|
173
|
+
type ToastInput = {
|
|
174
|
+
title?: string;
|
|
175
|
+
description?: string;
|
|
176
|
+
action?: ToastActionElement;
|
|
177
|
+
variant?: 'default' | 'success' | 'error';
|
|
178
|
+
duration?: number;
|
|
179
|
+
};
|
|
180
|
+
type ToasterToast = ToastInput & {
|
|
181
|
+
id: string;
|
|
182
|
+
open: boolean;
|
|
183
|
+
};
|
|
184
|
+
declare function toast(props: ToastInput): {
|
|
185
|
+
id: string;
|
|
186
|
+
dismiss: () => void;
|
|
187
|
+
};
|
|
188
|
+
declare function useToast(): {
|
|
189
|
+
toast: typeof toast;
|
|
190
|
+
dismiss: (toastId?: string) => void;
|
|
191
|
+
toasts: ToasterToast[];
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
declare function Toaster(): react_jsx_runtime.JSX.Element;
|
|
195
|
+
|
|
196
|
+
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
197
|
+
required?: boolean;
|
|
198
|
+
}
|
|
199
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
200
|
+
|
|
201
|
+
declare const inputVariants: (props?: ({
|
|
202
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
203
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
204
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
205
|
+
}
|
|
206
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
207
|
+
|
|
208
|
+
declare const textareaVariants: (props?: ({
|
|
209
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
210
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
211
|
+
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, VariantProps<typeof textareaVariants> {
|
|
212
|
+
}
|
|
213
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
214
|
+
|
|
215
|
+
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
216
|
+
}
|
|
217
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
218
|
+
|
|
219
|
+
interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
220
|
+
}
|
|
221
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
222
|
+
interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
|
|
223
|
+
}
|
|
224
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
225
|
+
|
|
226
|
+
declare const switchVariants: (props?: ({
|
|
227
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
228
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
229
|
+
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchVariants> {
|
|
230
|
+
}
|
|
231
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
232
|
+
|
|
233
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
234
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
235
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
236
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
237
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
239
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
240
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
241
|
+
|
|
242
|
+
declare const numberInputVariants: (props?: ({
|
|
243
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
244
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
245
|
+
interface NumberInputProps extends VariantProps<typeof numberInputVariants> {
|
|
246
|
+
value?: number;
|
|
247
|
+
defaultValue?: number;
|
|
248
|
+
onChange?: (value: number | undefined) => void;
|
|
249
|
+
min?: number;
|
|
250
|
+
max?: number;
|
|
251
|
+
step?: number;
|
|
252
|
+
precision?: number;
|
|
253
|
+
disabled?: boolean;
|
|
254
|
+
readOnly?: boolean;
|
|
255
|
+
name?: string;
|
|
256
|
+
id?: string;
|
|
257
|
+
placeholder?: string;
|
|
258
|
+
className?: string;
|
|
259
|
+
'aria-invalid'?: boolean | 'true' | 'false';
|
|
260
|
+
'aria-label'?: string;
|
|
261
|
+
'aria-describedby'?: string;
|
|
262
|
+
required?: boolean;
|
|
263
|
+
}
|
|
264
|
+
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
265
|
+
|
|
266
|
+
interface DatePickerProps extends InputProps {
|
|
267
|
+
}
|
|
268
|
+
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
269
|
+
|
|
270
|
+
interface ComboboxOption {
|
|
271
|
+
value: string;
|
|
272
|
+
label: string;
|
|
273
|
+
disabled?: boolean;
|
|
274
|
+
}
|
|
275
|
+
interface ComboboxProps {
|
|
276
|
+
options: ComboboxOption[];
|
|
277
|
+
value?: string;
|
|
278
|
+
onValueChange?: (value: string) => void;
|
|
279
|
+
placeholder?: string;
|
|
280
|
+
searchPlaceholder?: string;
|
|
281
|
+
emptyMessage?: string;
|
|
282
|
+
disabled?: boolean;
|
|
283
|
+
className?: string;
|
|
284
|
+
'aria-invalid'?: boolean | 'true' | 'false';
|
|
285
|
+
'aria-label'?: string;
|
|
286
|
+
'aria-describedby'?: string;
|
|
287
|
+
id?: string;
|
|
288
|
+
name?: string;
|
|
289
|
+
required?: boolean;
|
|
290
|
+
}
|
|
291
|
+
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
292
|
+
|
|
293
|
+
interface FormFieldContextValue {
|
|
294
|
+
id: string;
|
|
295
|
+
error?: string;
|
|
296
|
+
required?: boolean;
|
|
297
|
+
disabled?: boolean;
|
|
298
|
+
descriptionId: string;
|
|
299
|
+
messageId: string;
|
|
300
|
+
}
|
|
301
|
+
declare const useFormField: () => FormFieldContextValue;
|
|
302
|
+
|
|
303
|
+
interface FormFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
304
|
+
error?: string;
|
|
305
|
+
required?: boolean;
|
|
306
|
+
disabled?: boolean;
|
|
307
|
+
}
|
|
308
|
+
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
309
|
+
interface FormLabelProps extends LabelProps {
|
|
310
|
+
}
|
|
311
|
+
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
312
|
+
interface FormControlProps {
|
|
313
|
+
children: React.ReactElement;
|
|
314
|
+
}
|
|
315
|
+
declare function FormControl({ children }: FormControlProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
316
|
+
declare namespace FormControl {
|
|
317
|
+
var displayName: string;
|
|
318
|
+
}
|
|
319
|
+
interface FormDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
320
|
+
}
|
|
321
|
+
declare const FormDescription: React.ForwardRefExoticComponent<FormDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
322
|
+
interface FormMessageProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
323
|
+
}
|
|
324
|
+
declare const FormMessage: React.ForwardRefExoticComponent<FormMessageProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
325
|
+
|
|
326
|
+
type FieldType = 'text' | 'number' | 'email' | 'url' | 'tel' | 'password' | 'textarea' | 'select' | 'combobox' | 'checkbox' | 'radio' | 'switch' | 'date' | 'datetime' | 'time' | 'file';
|
|
327
|
+
interface FieldOption {
|
|
328
|
+
value: string;
|
|
329
|
+
label: string;
|
|
330
|
+
}
|
|
331
|
+
interface DynamicFormFieldProps {
|
|
332
|
+
type: FieldType;
|
|
333
|
+
name: string;
|
|
334
|
+
label: string;
|
|
335
|
+
description?: string;
|
|
336
|
+
error?: string;
|
|
337
|
+
required?: boolean;
|
|
338
|
+
disabled?: boolean;
|
|
339
|
+
placeholder?: string;
|
|
340
|
+
value?: unknown;
|
|
341
|
+
onChange?: (value: unknown) => void;
|
|
342
|
+
options?: FieldOption[];
|
|
343
|
+
min?: number | string;
|
|
344
|
+
max?: number | string;
|
|
345
|
+
step?: number;
|
|
346
|
+
rows?: number;
|
|
347
|
+
className?: string;
|
|
348
|
+
}
|
|
349
|
+
declare function getFieldComponent(type: FieldType): string;
|
|
350
|
+
declare const DynamicFormField: React.ForwardRefExoticComponent<DynamicFormFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
351
|
+
|
|
352
|
+
declare const formLayoutVariants: (props?: ({
|
|
353
|
+
layout?: "grid" | "horizontal" | "vertical" | null | undefined;
|
|
354
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
355
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
356
|
+
interface FormLayoutProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof formLayoutVariants> {
|
|
357
|
+
columns?: number;
|
|
358
|
+
}
|
|
359
|
+
declare const FormLayout: React.ForwardRefExoticComponent<FormLayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
360
|
+
interface FormSectionProps extends React.HTMLAttributes<HTMLFieldSetElement> {
|
|
361
|
+
title: string;
|
|
362
|
+
description?: string;
|
|
363
|
+
}
|
|
364
|
+
declare const FormSection: React.ForwardRefExoticComponent<FormSectionProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
365
|
+
interface FormActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
366
|
+
align?: 'left' | 'right' | 'center' | 'between';
|
|
367
|
+
}
|
|
368
|
+
declare const FormActions: React.ForwardRefExoticComponent<FormActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
369
|
+
|
|
370
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
371
|
+
declare const tabsListVariants: (props?: ({
|
|
372
|
+
variant?: "default" | "underline" | null | undefined;
|
|
373
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
374
|
+
interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, VariantProps<typeof tabsListVariants> {
|
|
375
|
+
}
|
|
376
|
+
declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
377
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
378
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
379
|
+
|
|
380
|
+
declare const emptyStateVariants: (props?: ({
|
|
381
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
382
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
383
|
+
interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
|
|
384
|
+
}
|
|
385
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
386
|
+
declare const EmptyStateIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
387
|
+
declare const EmptyStateTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
388
|
+
declare const EmptyStateDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
389
|
+
declare const EmptyStateActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
390
|
+
|
|
391
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
392
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
393
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
394
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
395
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
396
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
397
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
398
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
399
|
+
|
|
400
|
+
interface DataTableProps<TData> {
|
|
401
|
+
columns: ColumnDef<TData, unknown>[];
|
|
402
|
+
data: TData[];
|
|
403
|
+
enableSorting?: boolean;
|
|
404
|
+
enableRowSelection?: boolean;
|
|
405
|
+
enableColumnVisibility?: boolean;
|
|
406
|
+
enablePagination?: boolean;
|
|
407
|
+
pageSize?: number;
|
|
408
|
+
pageSizeOptions?: number[];
|
|
409
|
+
onRowSelectionChange?: (selectedRows: TData[]) => void;
|
|
410
|
+
emptyState?: React.ReactNode;
|
|
411
|
+
className?: string;
|
|
412
|
+
'aria-label'?: string;
|
|
413
|
+
}
|
|
414
|
+
declare function DataTable<TData>({ columns, data, enableSorting, enableRowSelection, enableColumnVisibility, enablePagination, pageSize, pageSizeOptions, onRowSelectionChange, emptyState, className, 'aria-label': ariaLabel, }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
415
|
+
declare namespace DataTable {
|
|
416
|
+
var displayName: string;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
|
|
420
|
+
column: Column<TData, TValue>;
|
|
421
|
+
title: string;
|
|
422
|
+
}
|
|
423
|
+
declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
424
|
+
declare namespace DataTableColumnHeader {
|
|
425
|
+
var displayName: string;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
interface DataTablePaginationProps<TData> {
|
|
429
|
+
table: Table$1<TData>;
|
|
430
|
+
pageSizeOptions?: number[];
|
|
431
|
+
className?: string;
|
|
432
|
+
}
|
|
433
|
+
declare function DataTablePagination<TData>({ table, pageSizeOptions, className, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
|
|
434
|
+
declare namespace DataTablePagination {
|
|
435
|
+
var displayName: string;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
interface DataTableToolbarProps<TData> {
|
|
439
|
+
table: Table$1<TData>;
|
|
440
|
+
enableColumnVisibility?: boolean;
|
|
441
|
+
className?: string;
|
|
442
|
+
children?: React.ReactNode;
|
|
443
|
+
}
|
|
444
|
+
declare function DataTableToolbar<TData>({ table, enableColumnVisibility, className, children, }: DataTableToolbarProps<TData>): react_jsx_runtime.JSX.Element;
|
|
445
|
+
declare namespace DataTableToolbar {
|
|
446
|
+
var displayName: string;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
declare const FilterBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
450
|
+
declare const FilterBarGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
451
|
+
declare const filterChipVariants: (props?: ({
|
|
452
|
+
variant?: "default" | "outline" | null | undefined;
|
|
453
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
454
|
+
interface FilterChipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof filterChipVariants> {
|
|
455
|
+
label: string;
|
|
456
|
+
value: string;
|
|
457
|
+
onRemove?: () => void;
|
|
458
|
+
}
|
|
459
|
+
declare const FilterChip: React.ForwardRefExoticComponent<FilterChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
460
|
+
interface ActiveFiltersProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
461
|
+
onClearAll?: () => void;
|
|
462
|
+
clearAllLabel?: string;
|
|
463
|
+
}
|
|
464
|
+
declare const ActiveFilters: React.ForwardRefExoticComponent<ActiveFiltersProps & React.RefAttributes<HTMLDivElement>>;
|
|
465
|
+
declare const FilterBarActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
466
|
+
|
|
467
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
468
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
469
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
470
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
471
|
+
|
|
472
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
473
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
474
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
475
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
476
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
477
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
478
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
479
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
480
|
+
inset?: boolean;
|
|
481
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
482
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
483
|
+
interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {
|
|
484
|
+
inset?: boolean;
|
|
485
|
+
destructive?: boolean;
|
|
486
|
+
}
|
|
487
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
488
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
489
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
490
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
491
|
+
inset?: boolean;
|
|
492
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
493
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
494
|
+
declare const DropdownMenuShortcut: {
|
|
495
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
496
|
+
displayName: string;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
500
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
501
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
502
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
503
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
504
|
+
declare const DialogHeader: {
|
|
505
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
506
|
+
displayName: string;
|
|
507
|
+
};
|
|
508
|
+
declare const DialogFooter: {
|
|
509
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
510
|
+
displayName: string;
|
|
511
|
+
};
|
|
512
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
513
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
514
|
+
|
|
515
|
+
interface CommandPaletteProps {
|
|
516
|
+
open: boolean;
|
|
517
|
+
onOpenChange: (open: boolean) => void;
|
|
518
|
+
placeholder?: string;
|
|
519
|
+
className?: string;
|
|
520
|
+
children: React.ReactNode;
|
|
521
|
+
}
|
|
522
|
+
declare function CommandPalette({ open, onOpenChange, placeholder, className, children, }: CommandPaletteProps): react_jsx_runtime.JSX.Element;
|
|
523
|
+
declare namespace CommandPalette {
|
|
524
|
+
var displayName: string;
|
|
525
|
+
}
|
|
526
|
+
interface CommandPaletteGroupProps {
|
|
527
|
+
heading?: string;
|
|
528
|
+
children: React.ReactNode;
|
|
529
|
+
}
|
|
530
|
+
declare function CommandPaletteGroup({ heading, children, }: CommandPaletteGroupProps): react_jsx_runtime.JSX.Element;
|
|
531
|
+
declare namespace CommandPaletteGroup {
|
|
532
|
+
var displayName: string;
|
|
533
|
+
}
|
|
534
|
+
interface CommandPaletteItemProps {
|
|
535
|
+
icon?: React.ReactNode;
|
|
536
|
+
shortcut?: string;
|
|
537
|
+
onSelect?: () => void;
|
|
538
|
+
disabled?: boolean;
|
|
539
|
+
className?: string;
|
|
540
|
+
children: React.ReactNode;
|
|
541
|
+
}
|
|
542
|
+
declare function CommandPaletteItem({ icon, shortcut, onSelect, disabled, className, children, }: CommandPaletteItemProps): react_jsx_runtime.JSX.Element;
|
|
543
|
+
declare namespace CommandPaletteItem {
|
|
544
|
+
var displayName: string;
|
|
545
|
+
}
|
|
546
|
+
declare function CommandPaletteSeparator({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
547
|
+
declare namespace CommandPaletteSeparator {
|
|
548
|
+
var displayName: string;
|
|
549
|
+
}
|
|
550
|
+
declare function CommandPaletteEmpty({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
551
|
+
declare namespace CommandPaletteEmpty {
|
|
552
|
+
var displayName: string;
|
|
553
|
+
}
|
|
554
|
+
declare function CommandPaletteShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
555
|
+
declare namespace CommandPaletteShortcut {
|
|
556
|
+
var displayName: string;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
declare function DrawerProvider({ children }: {
|
|
560
|
+
children: React.ReactNode;
|
|
561
|
+
}): react_jsx_runtime.JSX.Element;
|
|
562
|
+
declare namespace DrawerProvider {
|
|
563
|
+
var displayName: string;
|
|
564
|
+
}
|
|
565
|
+
interface DrawerProps {
|
|
566
|
+
open?: boolean;
|
|
567
|
+
onOpenChange?: (open: boolean) => void;
|
|
568
|
+
side?: 'left' | 'right';
|
|
569
|
+
pinnable?: boolean;
|
|
570
|
+
pinned?: boolean;
|
|
571
|
+
onPinnedChange?: (pinned: boolean) => void;
|
|
572
|
+
children: React.ReactNode;
|
|
573
|
+
}
|
|
574
|
+
declare function Drawer({ open, onOpenChange, side, pinnable, pinned, onPinnedChange, children, }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
575
|
+
declare namespace Drawer {
|
|
576
|
+
var displayName: string;
|
|
577
|
+
}
|
|
578
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
579
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
580
|
+
declare const drawerSizeVariants: (props?: ({
|
|
581
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
582
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
583
|
+
interface DrawerContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof drawerSizeVariants> {
|
|
584
|
+
}
|
|
585
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
586
|
+
declare const DrawerHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
587
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
588
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
589
|
+
declare const DrawerFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
590
|
+
|
|
591
|
+
interface AppShellContextValue {
|
|
592
|
+
sidebarCollapsed: boolean;
|
|
593
|
+
setSidebarCollapsed: (collapsed: boolean) => void;
|
|
594
|
+
isMobile: boolean;
|
|
595
|
+
withBottomNav: boolean;
|
|
596
|
+
mobileSidebarOpen: boolean;
|
|
597
|
+
setMobileSidebarOpen: (open: boolean) => void;
|
|
598
|
+
}
|
|
599
|
+
declare const useAppShell: () => AppShellContextValue;
|
|
600
|
+
|
|
601
|
+
interface AppShellProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
602
|
+
sidebarCollapsed?: boolean;
|
|
603
|
+
onSidebarCollapsedChange?: (collapsed: boolean) => void;
|
|
604
|
+
sidebarWidth?: number;
|
|
605
|
+
sidebarCollapsedWidth?: number;
|
|
606
|
+
withBottomNav?: boolean;
|
|
607
|
+
}
|
|
608
|
+
declare const AppShell: React.ForwardRefExoticComponent<AppShellProps & React.RefAttributes<HTMLDivElement>>;
|
|
609
|
+
declare const AppShellSidebar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
610
|
+
declare const AppShellHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
611
|
+
declare const AppShellContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
612
|
+
declare const AppShellFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
613
|
+
|
|
614
|
+
interface BottomNavigationProps extends React.HTMLAttributes<HTMLElement> {
|
|
615
|
+
}
|
|
616
|
+
declare const BottomNavigation: React.ForwardRefExoticComponent<BottomNavigationProps & React.RefAttributes<HTMLElement>>;
|
|
617
|
+
interface BottomNavigationItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
618
|
+
icon: React.ReactNode;
|
|
619
|
+
label: string;
|
|
620
|
+
active?: boolean;
|
|
621
|
+
}
|
|
622
|
+
declare const BottomNavigationItem: React.ForwardRefExoticComponent<BottomNavigationItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
623
|
+
|
|
624
|
+
interface OfflineIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
625
|
+
isOffline: boolean;
|
|
626
|
+
message?: string;
|
|
627
|
+
}
|
|
628
|
+
declare const OfflineIndicator: React.ForwardRefExoticComponent<OfflineIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
629
|
+
|
|
630
|
+
interface InstallPromptProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
631
|
+
canInstall: boolean;
|
|
632
|
+
onInstall: () => void;
|
|
633
|
+
onDismiss: () => void;
|
|
634
|
+
title?: string;
|
|
635
|
+
description?: string;
|
|
636
|
+
installLabel?: string;
|
|
637
|
+
dismissLabel?: string;
|
|
638
|
+
}
|
|
639
|
+
declare const InstallPrompt: React.ForwardRefExoticComponent<InstallPromptProps & React.RefAttributes<HTMLDivElement>>;
|
|
640
|
+
|
|
641
|
+
interface PullToRefreshProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
642
|
+
onRefresh: () => Promise<void>;
|
|
643
|
+
threshold?: number;
|
|
644
|
+
disabled?: boolean;
|
|
645
|
+
}
|
|
646
|
+
declare const PullToRefresh: React.ForwardRefExoticComponent<PullToRefreshProps & React.RefAttributes<HTMLDivElement>>;
|
|
647
|
+
|
|
648
|
+
export { ActiveFilters, type ActiveFiltersProps, AppShell, AppShellContent, AppShellFooter, AppShellHeader, type AppShellProps, AppShellSidebar, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, BREAKPOINTS, Badge, type BadgeProps, BottomNavigation, BottomNavigationItem, type BottomNavigationItemProps, type BottomNavigationProps, type Breakpoint, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, type CommandPaletteGroupProps, CommandPaletteItem, type CommandPaletteItemProps, type CommandPaletteProps, CommandPaletteSeparator, CommandPaletteShortcut, DataTable, DataTableColumnHeader, DataTablePagination, type DataTableProps, DataTableToolbar, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DialogTrigger, type DisplayMode, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFormField, type DynamicFormFieldProps, EmptyState, EmptyStateActions, EmptyStateDescription, EmptyStateIcon, type EmptyStateProps, EmptyStateTitle, type FieldOption, type FieldType, FilterBar, FilterBarActions, FilterBarGroup, FilterChip, type FilterChipProps, FormActions, type FormActionsProps, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormLayout, type FormLayoutProps, FormMessage, type FormMessageProps, FormSection, type FormSectionProps, Input, type InputProps, InstallPrompt, type InstallPromptProps, Label, type LabelProps, NumberInput, type NumberInputProps, OfflineIndicator, type OfflineIndicatorProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PullToRefresh, type PullToRefreshProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResolvedTheme, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, Textarea, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseThemeOptions, type UseThemeReturn, avatarVariants, badgeVariants, buttonVariants, cn, createContext, formLayoutVariants, getFieldComponent, inputVariants, spinnerVariants, switchVariants, textareaVariants, toast, toastVariants, useAppShell, useBreakpoint, useDisplayMode, useFormField, useInstallPrompt, useOnlineStatus, useTheme$1 as useTheme, useTheme as useThemeContext, useToast, useViewportHeight };
|