strata-ui-react 0.1.10 → 0.1.11
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.d.ts +312 -1
- package/dist/{strata-ui-react.js → index.es.js} +1668 -1480
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +30 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +13 -12
- package/dist/strata-ui-react.umd.cjs +0 -24
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,312 @@
|
|
|
1
|
-
|
|
1
|
+
import { AppFieldExtendedReactFieldGroupApi } from '@tanstack/react-form';
|
|
2
|
+
import { AppFieldExtendedReactFormApi } from '@tanstack/react-form';
|
|
3
|
+
import { Avatar as Avatar_2 } from '@base-ui/react/avatar';
|
|
4
|
+
import { Checkbox as Checkbox_2 } from '@base-ui/react/checkbox';
|
|
5
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
6
|
+
import { ClassValue } from 'clsx';
|
|
7
|
+
import { ComponentProps } from 'react';
|
|
8
|
+
import { DeepKeysOfType } from '@tanstack/react-form';
|
|
9
|
+
import { Dialog as Dialog_2 } from '@base-ui/react/dialog';
|
|
10
|
+
import { FieldsMap } from '@tanstack/react-form';
|
|
11
|
+
import { FormAsyncValidateOrFn } from '@tanstack/react-form';
|
|
12
|
+
import { FormOptions } from '@tanstack/react-form';
|
|
13
|
+
import { FormValidateOrFn } from '@tanstack/react-form';
|
|
14
|
+
import { FunctionComponent } from 'react';
|
|
15
|
+
import { Icon } from '@phosphor-icons/react';
|
|
16
|
+
import { Input as Input_2 } from '@base-ui/react/input';
|
|
17
|
+
import { JSX } from 'react/jsx-runtime';
|
|
18
|
+
import { KeyboardEventHandler } from 'react';
|
|
19
|
+
import { MouseEventHandler } from 'react';
|
|
20
|
+
import { PropsWithChildren } from 'react';
|
|
21
|
+
import { Ranger } from '@tanstack/react-ranger';
|
|
22
|
+
import { ReactNode } from 'react';
|
|
23
|
+
import { RefObject } from 'react';
|
|
24
|
+
import { ScrollArea as ScrollArea_2 } from '@base-ui/react/scroll-area';
|
|
25
|
+
import { Separator as Separator_2 } from '@base-ui/react/separator';
|
|
26
|
+
import { Switch as Switch_2 } from '@base-ui/react/switch';
|
|
27
|
+
import { Tabs as Tabs_2 } from '@base-ui/react/tabs';
|
|
28
|
+
import { Toast as Toast_2 } from '@base-ui/react/toast';
|
|
29
|
+
import { Tooltip as Tooltip_2 } from '@base-ui/react/tooltip';
|
|
30
|
+
import { TouchEventHandler } from 'react';
|
|
31
|
+
import { VariantProps } from 'class-variance-authority';
|
|
32
|
+
import { WithFieldGroupProps } from '@tanstack/react-form';
|
|
33
|
+
import { WithFormProps } from '@tanstack/react-form';
|
|
34
|
+
|
|
35
|
+
export declare const Avatar: ({ className, children, ref, ...props }: AvatarProps) => JSX.Element;
|
|
36
|
+
|
|
37
|
+
export declare const AvatarFallback: ({ className, ref, ...props }: AvatarFallbackProps) => JSX.Element;
|
|
38
|
+
|
|
39
|
+
export declare type AvatarFallbackProps = ComponentProps<typeof Avatar_2.Fallback>;
|
|
40
|
+
|
|
41
|
+
export declare const AvatarImage: ({ className, ref, ...props }: AvatarImageProps) => JSX.Element;
|
|
42
|
+
|
|
43
|
+
export declare type AvatarImageProps = ComponentProps<typeof Avatar_2.Image>;
|
|
44
|
+
|
|
45
|
+
export declare type AvatarProps = ComponentProps<typeof Avatar_2.Root>;
|
|
46
|
+
|
|
47
|
+
export declare const Badge: ({ className, tone, style, radius, children, ref, ...props }: BadgeExtendedProps) => JSX.Element;
|
|
48
|
+
|
|
49
|
+
export declare interface BadgeExtendedProps extends Omit<BadgeProps, "style">, VariantProps<typeof badgeVariants> {
|
|
50
|
+
style?: "solid" | "outline";
|
|
51
|
+
radius?: "rounded" | "circle";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare type BadgeProps = ComponentProps<"div">;
|
|
55
|
+
|
|
56
|
+
declare const badgeVariants: (props?: ({
|
|
57
|
+
tone?: "primary" | "secondary" | "tertiary" | "neutral" | "error" | "success" | "warning" | null | undefined;
|
|
58
|
+
style?: "solid" | "outline" | null | undefined;
|
|
59
|
+
radius?: "circle" | "rounded" | null | undefined;
|
|
60
|
+
} & ClassProp) | undefined) => string;
|
|
61
|
+
|
|
62
|
+
export declare function Button({ className, children, tone, style, size, ...props }: ButtonExtendedProps): JSX.Element;
|
|
63
|
+
|
|
64
|
+
export declare interface ButtonExtendedProps extends Omit<ComponentProps<"button">, "style">, VariantProps<typeof buttonVariants> {
|
|
65
|
+
style?: "solid" | "outline" | "ghost";
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const buttonVariants: (props?: ({
|
|
69
|
+
tone?: "primary" | "secondary" | "neutral" | "success" | "warning" | "destructive" | "glass" | "accent" | null | undefined;
|
|
70
|
+
style?: "solid" | "outline" | "ghost" | null | undefined;
|
|
71
|
+
size?: "small" | "medium" | "large" | "iconLarge" | "iconMedium" | "iconSmall" | null | undefined;
|
|
72
|
+
} & ClassProp) | undefined) => string;
|
|
73
|
+
|
|
74
|
+
export declare const Checkbox: ({ className, ref, label, id, disabled, ...props }: CheckboxRootProps) => JSX.Element;
|
|
75
|
+
|
|
76
|
+
export declare const CheckboxIndicator: ({ className, ...props }: CheckboxIndicatorProps) => JSX.Element;
|
|
77
|
+
|
|
78
|
+
export declare type CheckboxIndicatorProps = ComponentProps<typeof Checkbox_2.Indicator>;
|
|
79
|
+
|
|
80
|
+
export declare type CheckboxRootProps = ComponentProps<typeof Checkbox_2.Root> & {
|
|
81
|
+
label?: ReactNode;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export declare function cn(...inputs: Array<ClassValue>): string;
|
|
85
|
+
|
|
86
|
+
export declare const Dialog: ({ ...props }: DialogProps) => JSX.Element;
|
|
87
|
+
|
|
88
|
+
export declare const DialogClose: ({ className, children, ref, ...props }: DialogCloseProps) => JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare type DialogCloseProps = ComponentProps<typeof Dialog_2.Close>;
|
|
91
|
+
|
|
92
|
+
export declare const DialogDescription: ({ className, children, ref, ...props }: DialogDescriptionProps) => JSX.Element;
|
|
93
|
+
|
|
94
|
+
export declare type DialogDescriptionProps = ComponentProps<typeof Dialog_2.Description>;
|
|
95
|
+
|
|
96
|
+
export declare const DialogPopup: ({ className, children, showCloseButton, ref, ...props }: DialogPopupProps) => JSX.Element;
|
|
97
|
+
|
|
98
|
+
export declare type DialogPopupProps = ComponentProps<typeof Dialog_2.Popup> & {
|
|
99
|
+
showCloseButton?: boolean;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export declare type DialogProps = ComponentProps<typeof Dialog_2.Root>;
|
|
103
|
+
|
|
104
|
+
export declare const DialogTitle: ({ className, children, ref, ...props }: DialogTitleProps) => JSX.Element;
|
|
105
|
+
|
|
106
|
+
export declare type DialogTitleProps = ComponentProps<typeof Dialog_2.Title>;
|
|
107
|
+
|
|
108
|
+
export declare const DialogTrigger: ({ className, children, ref, ...props }: DialogTriggerProps) => JSX.Element;
|
|
109
|
+
|
|
110
|
+
export declare type DialogTriggerProps = ComponentProps<typeof Dialog_2.Trigger>;
|
|
111
|
+
|
|
112
|
+
export declare const FieldErrors: ({ className, children, ref, ...props }: FieldErrorsProps) => JSX.Element;
|
|
113
|
+
|
|
114
|
+
export declare type FieldErrorsProps = ComponentProps<"div">;
|
|
115
|
+
|
|
116
|
+
export declare const FieldInput: ({ className, children, ref, ...props }: FieldInputProps) => JSX.Element;
|
|
117
|
+
|
|
118
|
+
export declare type FieldInputProps = InputProps;
|
|
119
|
+
|
|
120
|
+
export declare type FieldSubmitButtonProps = ButtonExtendedProps & {
|
|
121
|
+
submittingText?: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export declare const Form: {
|
|
125
|
+
useAppForm: <TFormData, TOnMount extends FormValidateOrFn<TFormData> | undefined, TOnChange extends FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
126
|
+
readonly FieldErrors: ({ className, children, ref, ...props }: FieldErrorsProps) => JSX.Element;
|
|
127
|
+
readonly FieldInput: ({ className, children, ref, ...props }: FieldInputProps) => JSX.Element;
|
|
128
|
+
}, {
|
|
129
|
+
readonly FormErrors: ({ className, children, ref, ...props }: FormErrorsProps) => JSX.Element;
|
|
130
|
+
readonly FormSubmit: ({ submittingText, className, children, ref, ...props }: FieldSubmitButtonProps) => JSX.Element;
|
|
131
|
+
}>;
|
|
132
|
+
withForm: <TFormData, TOnMount extends FormValidateOrFn<TFormData> | undefined, TOnChange extends FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
133
|
+
readonly FieldErrors: ({ className, children, ref, ...props }: FieldErrorsProps) => JSX.Element;
|
|
134
|
+
readonly FieldInput: ({ className, children, ref, ...props }: FieldInputProps) => JSX.Element;
|
|
135
|
+
}, {
|
|
136
|
+
readonly FormErrors: ({ className, children, ref, ...props }: FormErrorsProps) => JSX.Element;
|
|
137
|
+
readonly FormSubmit: ({ submittingText, className, children, ref, ...props }: FieldSubmitButtonProps) => JSX.Element;
|
|
138
|
+
}, TRenderProps>) => FunctionComponent<PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
139
|
+
form: AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
|
|
140
|
+
readonly FieldErrors: ({ className, children, ref, ...props }: FieldErrorsProps) => JSX.Element;
|
|
141
|
+
readonly FieldInput: ({ className, children, ref, ...props }: FieldInputProps) => JSX.Element;
|
|
142
|
+
}, {
|
|
143
|
+
readonly FormErrors: ({ className, children, ref, ...props }: FormErrorsProps) => JSX.Element;
|
|
144
|
+
readonly FormSubmit: ({ submittingText, className, children, ref, ...props }: FieldSubmitButtonProps) => JSX.Element;
|
|
145
|
+
}>;
|
|
146
|
+
}>>;
|
|
147
|
+
withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps extends object = {}>({ render, props, defaultValues, }: WithFieldGroupProps<TFieldGroupData, {
|
|
148
|
+
readonly FieldErrors: ({ className, children, ref, ...props }: FieldErrorsProps) => JSX.Element;
|
|
149
|
+
readonly FieldInput: ({ className, children, ref, ...props }: FieldInputProps) => JSX.Element;
|
|
150
|
+
}, {
|
|
151
|
+
readonly FormErrors: ({ className, children, ref, ...props }: FormErrorsProps) => JSX.Element;
|
|
152
|
+
readonly FormSubmit: ({ submittingText, className, children, ref, ...props }: FieldSubmitButtonProps) => JSX.Element;
|
|
153
|
+
}, TSubmitMeta, TRenderProps>) => <TFormData, TFields extends DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | FieldsMap<TFormData, TFieldGroupData>, TOnMount extends FormValidateOrFn<TFormData> | undefined, TOnChange extends FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta>(params: PropsWithChildren<NoInfer<TRenderProps> & {
|
|
154
|
+
form: AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {
|
|
155
|
+
readonly FieldErrors: ({ className, children, ref, ...props }: FieldErrorsProps) => JSX.Element;
|
|
156
|
+
readonly FieldInput: ({ className, children, ref, ...props }: FieldInputProps) => JSX.Element;
|
|
157
|
+
}, {
|
|
158
|
+
readonly FormErrors: ({ className, children, ref, ...props }: FormErrorsProps) => JSX.Element;
|
|
159
|
+
readonly FormSubmit: ({ submittingText, className, children, ref, ...props }: FieldSubmitButtonProps) => JSX.Element;
|
|
160
|
+
}> | AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {
|
|
161
|
+
readonly FieldErrors: ({ className, children, ref, ...props }: FieldErrorsProps) => JSX.Element;
|
|
162
|
+
readonly FieldInput: ({ className, children, ref, ...props }: FieldInputProps) => JSX.Element;
|
|
163
|
+
}, {
|
|
164
|
+
readonly FormErrors: ({ className, children, ref, ...props }: FormErrorsProps) => JSX.Element;
|
|
165
|
+
readonly FormSubmit: ({ submittingText, className, children, ref, ...props }: FieldSubmitButtonProps) => JSX.Element;
|
|
166
|
+
}>;
|
|
167
|
+
fields: TFields;
|
|
168
|
+
}>) => ReturnType<FunctionComponent>;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export declare const FormErrors: ({ className, children, ref, ...props }: FormErrorsProps) => JSX.Element;
|
|
172
|
+
|
|
173
|
+
export declare type FormErrorsProps = ComponentProps<"div">;
|
|
174
|
+
|
|
175
|
+
export declare const FormSubmit: ({ submittingText, className, children, ref, ...props }: FieldSubmitButtonProps) => JSX.Element;
|
|
176
|
+
|
|
177
|
+
export declare const Input: ({ leadingIcon, showSeparator, className, ref, ...props }: InputProps) => JSX.Element;
|
|
178
|
+
|
|
179
|
+
export declare type InputProps = ComponentProps<typeof Input_2> & {
|
|
180
|
+
leadingIcon?: Icon;
|
|
181
|
+
showSeparator?: boolean;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export declare const Label: ({ className, children, ref, ...props }: LabelProps) => JSX.Element;
|
|
185
|
+
|
|
186
|
+
export declare type LabelProps = ComponentProps<"label">;
|
|
187
|
+
|
|
188
|
+
export declare const Profile: ({ className, imageUrl, fallbackText, profileName, profileEmail, compact, children, ref, ...props }: ProfileProps) => JSX.Element;
|
|
189
|
+
|
|
190
|
+
export declare type ProfileProps = ComponentProps<"button"> & {
|
|
191
|
+
imageUrl: string;
|
|
192
|
+
fallbackText: string;
|
|
193
|
+
profileName?: string;
|
|
194
|
+
profileEmail?: string;
|
|
195
|
+
compact?: boolean;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export declare const ScrollArea: ({ orientation, className, children, ref, ...props }: ScrollAreaProps) => JSX.Element;
|
|
199
|
+
|
|
200
|
+
export declare type ScrollAreaProps = ComponentProps<typeof ScrollArea_2.Root> & {
|
|
201
|
+
orientation?: "horizontal" | "vertical";
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export declare const Separator: ({ className, children, ref, ...props }: SeparatorProps) => JSX.Element;
|
|
205
|
+
|
|
206
|
+
export declare type SeparatorProps = Omit<ComponentProps<typeof Separator_2>, "style"> & VariantProps<typeof separatorVariants>;
|
|
207
|
+
|
|
208
|
+
declare const separatorVariants: (props?: ({
|
|
209
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
210
|
+
thickness?: "medium" | "thick" | "thin" | null | undefined;
|
|
211
|
+
} & ClassProp) | undefined) => string;
|
|
212
|
+
|
|
213
|
+
export declare const Slider: ({ leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, min, max, stepSize, defaultValues, showTickLabels, label, className, ref, ...props }: SliderProps) => JSX.Element;
|
|
214
|
+
|
|
215
|
+
export declare const SliderHandle: ({ sliderInstance, isActive, onKeyDownHandler, onMouseDownHandler, onTouchStart, value, className, children, ref, ...props }: SliderHandleProps) => JSX.Element;
|
|
216
|
+
|
|
217
|
+
export declare type SliderHandleProps = ComponentProps<"button"> & {
|
|
218
|
+
sliderInstance: Ranger<HTMLDivElement>;
|
|
219
|
+
isActive: boolean;
|
|
220
|
+
onKeyDownHandler: KeyboardEventHandler<HTMLButtonElement>;
|
|
221
|
+
onMouseDownHandler: MouseEventHandler<HTMLButtonElement>;
|
|
222
|
+
onTouchStart: TouchEventHandler<HTMLButtonElement>;
|
|
223
|
+
value: number;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export declare type SliderProps = ComponentProps<"div"> & {
|
|
227
|
+
leadingIcon?: Icon;
|
|
228
|
+
trailingIcon?: Icon;
|
|
229
|
+
min?: number;
|
|
230
|
+
max?: number;
|
|
231
|
+
stepSize?: number;
|
|
232
|
+
defaultValues?: Array<number>;
|
|
233
|
+
showTickLabels?: boolean;
|
|
234
|
+
label?: string;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export declare const SliderSegment: ({ index, steps, left, width, className, children, ref, ...props }: SliderSegmentProps) => JSX.Element;
|
|
238
|
+
|
|
239
|
+
export declare type SliderSegmentProps = ComponentProps<"div"> & {
|
|
240
|
+
index: number;
|
|
241
|
+
steps: number;
|
|
242
|
+
left: number;
|
|
243
|
+
width: number;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
export declare const SliderTick: ({ percentage, className, children, ref, ...props }: SliderTickProps) => JSX.Element;
|
|
247
|
+
|
|
248
|
+
export declare const SliderTickLabel: ({ className, children, ref, ...props }: SliderTickLabelProps) => JSX.Element;
|
|
249
|
+
|
|
250
|
+
export declare type SliderTickLabelProps = ComponentProps<"p">;
|
|
251
|
+
|
|
252
|
+
export declare type SliderTickProps = ComponentProps<"div"> & {
|
|
253
|
+
percentage: number;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export declare const SliderTrack: ({ className, children, sliderRef, ...props }: SliderTrackProps) => JSX.Element;
|
|
257
|
+
|
|
258
|
+
export declare type SliderTrackProps = ComponentProps<"div"> & {
|
|
259
|
+
sliderRef: RefObject<HTMLDivElement | null>;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export declare const Switch: ({ label, className, ref, ...props }: SwitchProps) => JSX.Element;
|
|
263
|
+
|
|
264
|
+
export declare type SwitchProps = ComponentProps<typeof Switch_2.Root> & {
|
|
265
|
+
label?: string;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export declare const Tabs: ({ className, ref, ...props }: TabsProps) => JSX.Element;
|
|
269
|
+
|
|
270
|
+
export declare const TabsIndicator: ({ className, ...props }: TabsIndicatorProps) => JSX.Element;
|
|
271
|
+
|
|
272
|
+
export declare type TabsIndicatorProps = ComponentProps<typeof Tabs_2.Indicator>;
|
|
273
|
+
|
|
274
|
+
export declare const TabsList: ({ className, ...props }: TabsListProps) => JSX.Element;
|
|
275
|
+
|
|
276
|
+
export declare type TabsListProps = ComponentProps<typeof Tabs_2.List>;
|
|
277
|
+
|
|
278
|
+
export declare const TabsPanel: ({ className, ...props }: TabsPanelProps) => JSX.Element;
|
|
279
|
+
|
|
280
|
+
export declare type TabsPanelProps = ComponentProps<typeof Tabs_2.Panel>;
|
|
281
|
+
|
|
282
|
+
export declare type TabsProps = ComponentProps<typeof Tabs_2.Root>;
|
|
283
|
+
|
|
284
|
+
export declare const TabsTab: ({ className, ...props }: TabsTabProps) => JSX.Element;
|
|
285
|
+
|
|
286
|
+
export declare type TabsTabProps = ComponentProps<typeof Tabs_2.Tab>;
|
|
287
|
+
|
|
288
|
+
export declare const Toast: ({ className, children, position, ref, ...props }: ToastProps) => JSX.Element[];
|
|
289
|
+
|
|
290
|
+
export declare type ToastProps = ComponentProps<"div"> & {
|
|
291
|
+
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
export declare const ToastProvider: ({ position, className, children, ref, ...props }: ToastProviderProps) => JSX.Element;
|
|
295
|
+
|
|
296
|
+
export declare type ToastProviderProps = ComponentProps<typeof Toast_2.Viewport> & {
|
|
297
|
+
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
export declare const Tooltip: ({ children, ...props }: TooltipProps) => JSX.Element;
|
|
301
|
+
|
|
302
|
+
export declare const TooltipContent: ({ className, children, ...props }: TooltipContentProps) => JSX.Element;
|
|
303
|
+
|
|
304
|
+
export declare type TooltipContentProps = ComponentProps<typeof Tooltip_2.Popup>;
|
|
305
|
+
|
|
306
|
+
export declare type TooltipProps = ComponentProps<typeof Tooltip_2.Root>;
|
|
307
|
+
|
|
308
|
+
export declare const TooltipTrigger: ({ children, ...props }: TooltipTriggerProps) => JSX.Element;
|
|
309
|
+
|
|
310
|
+
export declare type TooltipTriggerProps = ComponentProps<typeof Tooltip_2.Trigger>;
|
|
311
|
+
|
|
312
|
+
export { }
|