@px-ui/core 1.4.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.
@@ -0,0 +1,808 @@
1
+ import { n as __reExport, t as __export } from "./chunk-CYeTv9WL.js";
2
+ import * as React$2 from "react";
3
+ import React$1 from "react";
4
+ import { Dialog } from "@base-ui-components/react";
5
+ import { ArgumentArray } from "classnames";
6
+ import { VariantProps } from "class-variance-authority";
7
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
8
+ import { Popover } from "@base-ui-components/react/popover";
9
+ import { Combobox } from "@base-ui-components/react/combobox";
10
+ import * as _tanstack_react_query0 from "@tanstack/react-query";
11
+ import { QueryKey } from "@tanstack/react-query";
12
+ import { Select } from "@base-ui-components/react/select";
13
+ import { Menu } from "@base-ui-components/react/menu";
14
+ import { Progress } from "@base-ui-components/react/progress";
15
+ import { Radio } from "@base-ui-components/react/radio";
16
+ import { RadioGroup } from "@base-ui-components/react/radio-group";
17
+ import { Tabs } from "@base-ui-components/react/tabs";
18
+ import { Tooltip } from "@base-ui-components/react/tooltip";
19
+ import { CheckboxGroup } from "@base-ui-components/react/checkbox-group";
20
+ import { Checkbox as Checkbox$1 } from "@base-ui-components/react/checkbox";
21
+ import { useRender } from "@base-ui-components/react/use-render";
22
+ import { DayPickerProps } from "react-day-picker";
23
+ import { Avatar as Avatar$1 } from "@base-ui-components/react/avatar";
24
+ import { Switch as Switch$1 } from "@base-ui-components/react/switch";
25
+ import * as class_variance_authority_types10 from "class-variance-authority/types";
26
+ export * from "class-variance-authority";
27
+
28
+ //#region src/components/dialog.d.ts
29
+ declare namespace dialog_d_exports {
30
+ export { Close$1 as Close, Content$6 as Content, Description$3 as Description, Footer$1 as Footer, Header$3 as Header, HeaderContent, HeaderIcon, Overlay, Portal, Root$9 as Root, Title$3 as Title, Trigger$6 as Trigger };
31
+ }
32
+ declare function Root$9({
33
+ ...props
34
+ }: React$2.ComponentProps<typeof Dialog.Root>): react_jsx_runtime0.JSX.Element;
35
+ declare function Portal({
36
+ ...props
37
+ }: React$2.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime0.JSX.Element;
38
+ declare function Trigger$6({
39
+ ...props
40
+ }: React$2.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime0.JSX.Element;
41
+ declare function Close$1({
42
+ ...props
43
+ }: React$2.ComponentProps<typeof Dialog.Close>): react_jsx_runtime0.JSX.Element;
44
+ declare function Overlay({
45
+ className,
46
+ ...props
47
+ }: React$2.ComponentProps<typeof Dialog.Backdrop>): react_jsx_runtime0.JSX.Element;
48
+ declare function Content$6({
49
+ className,
50
+ children,
51
+ ...props
52
+ }: React$2.ComponentProps<typeof Dialog.Popup>): react_jsx_runtime0.JSX.Element;
53
+ declare function Header$3({
54
+ className,
55
+ ...props
56
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
57
+ declare function HeaderContent({
58
+ className,
59
+ children,
60
+ ...props
61
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
62
+ declare function HeaderIcon({
63
+ className,
64
+ children,
65
+ ...props
66
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
67
+ declare function Footer$1({
68
+ className,
69
+ ...props
70
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
71
+ declare function Title$3({
72
+ className,
73
+ ...props
74
+ }: React$2.ComponentProps<typeof Dialog.Title>): react_jsx_runtime0.JSX.Element;
75
+ declare function Description$3({
76
+ className,
77
+ ...props
78
+ }: React$2.ComponentProps<typeof Dialog.Description>): react_jsx_runtime0.JSX.Element;
79
+ declare namespace popover_d_exports {
80
+ export { Close, CloseIconButton, Content$5 as Content, Description$2 as Description, Footer, Header$2 as Header, Root$8 as Root, Title$2 as Title, Trigger$5 as Trigger };
81
+ }
82
+ declare function Root$8(props: React.ComponentProps<typeof Popover.Root>): react_jsx_runtime0.JSX.Element;
83
+ declare function Trigger$5(props: React.ComponentProps<typeof Popover.Trigger>): react_jsx_runtime0.JSX.Element;
84
+ declare function Close(props: React.ComponentProps<typeof Popover.Close>): react_jsx_runtime0.JSX.Element;
85
+ declare function Positioner(props: React.ComponentProps<typeof Popover.Positioner>): react_jsx_runtime0.JSX.Element;
86
+ declare function Header$2({
87
+ className,
88
+ ...props
89
+ }: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
90
+ declare function Title$2({
91
+ className,
92
+ ...props
93
+ }: React.ComponentProps<typeof Popover.Title>): react_jsx_runtime0.JSX.Element;
94
+ declare function Description$2({
95
+ className,
96
+ ...props
97
+ }: React.ComponentProps<typeof Popover.Description>): react_jsx_runtime0.JSX.Element;
98
+ declare function Content$5({
99
+ children,
100
+ className,
101
+ positionerProps,
102
+ popupProps,
103
+ arrow
104
+ }: {
105
+ popupProps?: React.ComponentProps<typeof Popover.Popup>;
106
+ } & {
107
+ positionerProps?: React.ComponentProps<typeof Positioner>;
108
+ } & {
109
+ children: React.ReactNode;
110
+ arrow?: boolean;
111
+ className?: string;
112
+ }): react_jsx_runtime0.JSX.Element;
113
+ declare function CloseIconButton({
114
+ className,
115
+ ...props
116
+ }: React.ComponentProps<"button">): react_jsx_runtime0.JSX.Element;
117
+ declare function Footer({
118
+ className,
119
+ ...props
120
+ }: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
121
+ //#endregion
122
+ //#region src/tw-styles/dropdown.d.ts
123
+ declare const triggerVariants: (props?: ({
124
+ size?: "default" | "sm" | null | undefined;
125
+ widthVariant?: "enforced" | "full" | "fit" | null | undefined;
126
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
127
+ //#endregion
128
+ //#region src/components/button.d.ts
129
+ declare const buttonVariants: (props?: ({
130
+ variant?: "link" | "default" | "primary" | "destructive" | "outline" | "primary-outline" | "ghost" | null | undefined;
131
+ size?: "default" | "sm" | "lg" | "icon-sm" | "icon" | null | undefined;
132
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
133
+ interface ButtonProps extends React$2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {}
134
+ declare function Button({
135
+ className,
136
+ variant,
137
+ size,
138
+ ...props
139
+ }: ButtonProps): react_jsx_runtime0.JSX.Element;
140
+ declare namespace input_group_d_exports {
141
+ export { Addon, Button$1 as Button, Input$1 as Input, Root$7 as Root, Text };
142
+ }
143
+ declare const inputGroupVariants: (props?: ({
144
+ size?: "default" | "sm" | null | undefined;
145
+ widthVariant?: "enforced" | "full" | "fit" | null | undefined;
146
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
147
+ declare function Root$7({
148
+ className,
149
+ size,
150
+ disabled,
151
+ widthVariant,
152
+ ...props
153
+ }: React$2.ComponentProps<"div"> & VariantProps<typeof inputGroupVariants> & {
154
+ disabled?: boolean;
155
+ }): react_jsx_runtime0.JSX.Element;
156
+ declare const inputGroupAddonVariants: (props?: ({
157
+ align?: "inline-start" | "inline-end" | null | undefined;
158
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
159
+ interface AddonProps extends React$2.ComponentProps<"div">, VariantProps<typeof inputGroupAddonVariants> {}
160
+ declare function Addon({
161
+ className,
162
+ align,
163
+ ...props
164
+ }: AddonProps): react_jsx_runtime0.JSX.Element;
165
+ declare const inputGroupButtonVariants: (props?: ({
166
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
167
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
168
+ declare function Button$1({
169
+ className,
170
+ type,
171
+ variant,
172
+ size,
173
+ ...props
174
+ }: Omit<React$2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime0.JSX.Element;
175
+ declare function Text({
176
+ className,
177
+ ...props
178
+ }: React$2.ComponentProps<"span">): react_jsx_runtime0.JSX.Element;
179
+ declare function Input$1({
180
+ className,
181
+ invalid,
182
+ ...props
183
+ }: React$2.ComponentProps<"input"> & {
184
+ invalid?: boolean;
185
+ }): react_jsx_runtime0.JSX.Element;
186
+ //#endregion
187
+ //#region src/hooks/use-async-options.d.ts
188
+ type LoadOptionsData<TData$1> = {
189
+ options: TData$1[];
190
+ hasMore: boolean;
191
+ };
192
+ type LoadOptionsReturn<TData$1> = {
193
+ data: LoadOptionsData<TData$1>;
194
+ error: any;
195
+ };
196
+ type LoadOptionsFn<TData$1> = (params: {
197
+ search: string;
198
+ page: number;
199
+ signal: AbortSignal;
200
+ }) => Promise<LoadOptionsReturn<TData$1>>;
201
+ declare function useAsyncOptions<TData$1 = any>(params: {
202
+ /**
203
+ * An unique key to identify the cache, used to cache the results.
204
+ * This must be unique
205
+ *
206
+ * @example
207
+ * ```ts
208
+ * const userOptions = defineAsyncOptions({
209
+ * cacheKey: ["users"],
210
+ * loader: async ({ page, search }) => {
211
+ * // Your async loading logic here
212
+ * return {
213
+ * data: { options: [], hasMore: false },
214
+ * error: null,
215
+ * };
216
+ * },
217
+ * }),
218
+ * const userOptions = useAsyncOptions(userOptions);
219
+ * ```
220
+ * });
221
+ */
222
+ cacheKey: QueryKey;
223
+ loader: LoadOptionsFn<TData$1>;
224
+ }, {
225
+ isOpen,
226
+ inputValue
227
+ }: {
228
+ isOpen: boolean;
229
+ inputValue: string;
230
+ }): {
231
+ items: TData$1[];
232
+ isLoading: boolean;
233
+ isLoadingMore: boolean;
234
+ hasMore: boolean;
235
+ isError: boolean;
236
+ onLoadMore: () => void;
237
+ _query: _tanstack_react_query0.UseInfiniteQueryResult<_tanstack_react_query0.InfiniteData<LoadOptionsData<TData$1>, unknown>, Error>;
238
+ };
239
+ type LoadOptionsConfig<TData$1> = {
240
+ cacheKey: QueryKey;
241
+ loader: LoadOptionsFn<TData$1>;
242
+ };
243
+ declare function defineLoadOptions<TData$1 = any>(loadOptions: LoadOptionsConfig<TData$1>): LoadOptionsConfig<TData$1>;
244
+ type InferOption<T> = T extends LoadOptionsConfig<infer TData> ? TData : never;
245
+ type InferOptions<T> = T extends LoadOptionsConfig<infer TData> ? TData[] : never;
246
+ declare namespace combobox_d_exports {
247
+ export { BaseCombobox, Chip, ChipsTrigger, Content$4 as Content, Item$6 as Item, List$2 as List, LoadingIndicator, MultiItem$1 as MultiItem, Root$6 as Root, Search, SearchableTrigger, SearchableTriggerDropdownAddon, Trigger$4 as Trigger, Value$2 as Value, useComboboxContext };
248
+ }
249
+ declare const List$2: React$2.ForwardRefExoticComponent<Combobox.List.Props & React$2.RefAttributes<HTMLDivElement>>;
250
+ type ComboboxContextValues = React$2.ComponentProps<typeof Combobox.Root<any, any, any>> & {
251
+ chipsTriggerRef: React$2.RefObject<HTMLDivElement | null>;
252
+ searchableTriggerRef: React$2.RefObject<HTMLDivElement | null>;
253
+ invalid?: boolean;
254
+ isLoading?: boolean;
255
+ isLoadingMore?: boolean;
256
+ isError?: boolean;
257
+ hasMore?: boolean;
258
+ onLoadMore?: () => void;
259
+ };
260
+ declare function Root$6<ItemValue, SelectedValue$1 = ItemValue, Multiple extends boolean | undefined = false>({
261
+ children,
262
+ ...props
263
+ }: React$2.ComponentProps<typeof Combobox.Root<ItemValue, SelectedValue$1, Multiple>> & Pick<ComboboxContextValues, "isLoading" | "isLoadingMore" | "isError" | "onLoadMore" | "hasMore" | "invalid"> & {
264
+ loadOptions?: LoadOptionsConfig<ItemValue>;
265
+ }): react_jsx_runtime0.JSX.Element;
266
+ declare function Content$4({
267
+ empty,
268
+ portalProps,
269
+ positionerProps,
270
+ popupProps,
271
+ children,
272
+ widthVariant
273
+ }: React$2.PropsWithChildren<{
274
+ empty?: string;
275
+ portalProps?: React$2.ComponentProps<typeof Combobox.Portal>;
276
+ positionerProps?: React$2.ComponentProps<typeof Combobox.Positioner>;
277
+ popupProps?: React$2.ComponentProps<typeof Combobox.Popup>;
278
+ widthVariant?: "trigger" | "fit" | "enforced";
279
+ }>): react_jsx_runtime0.JSX.Element;
280
+ declare function Item$6({
281
+ className,
282
+ ...props
283
+ }: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime0.JSX.Element;
284
+ declare function MultiItem$1({
285
+ className,
286
+ ...props
287
+ }: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime0.JSX.Element;
288
+ declare function LoadingIndicator(props: {
289
+ className?: string;
290
+ }): react_jsx_runtime0.JSX.Element;
291
+ declare function SearchableTrigger(props: {
292
+ placeholder?: string;
293
+ size?: React$2.ComponentProps<typeof Root$7>["size"];
294
+ widthVariant?: React$2.ComponentProps<typeof Root$7>["widthVariant"];
295
+ className?: string;
296
+ addons?: React$2.ReactNode;
297
+ }): react_jsx_runtime0.JSX.Element;
298
+ declare function SearchableTriggerDropdownAddon(): react_jsx_runtime0.JSX.Element;
299
+ interface TriggerProps$1 extends Combobox.Trigger.Props, VariantProps<typeof triggerVariants> {}
300
+ declare function Trigger$4({
301
+ size,
302
+ widthVariant,
303
+ children,
304
+ className,
305
+ ...props
306
+ }: TriggerProps$1): react_jsx_runtime0.JSX.Element;
307
+ /**
308
+ * Renders the value, if `value` is a string or an object with `label` property in it,
309
+ * then renders that value else you should provide a render function to render your custom value
310
+ * **/
311
+ declare function Value$2({
312
+ children,
313
+ className,
314
+ placeholder,
315
+ ...props
316
+ }: {
317
+ placeholder?: string;
318
+ children: React$2.ReactNode | ((selectedValue: any) => React$2.ReactNode);
319
+ className?: string;
320
+ }): react_jsx_runtime0.JSX.Element;
321
+ declare const chipsTriggerVariants: (props?: ({
322
+ size?: "default" | "sm" | null | undefined;
323
+ widthVariant?: "enforced" | "full" | null | undefined;
324
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
325
+ declare function ChipsTrigger({
326
+ size,
327
+ widthVariant,
328
+ ...props
329
+ }: {
330
+ children: React$2.ReactNode | ((selectedValue: any) => React$2.ReactNode);
331
+ placeholder?: string;
332
+ className?: string;
333
+ } & VariantProps<typeof chipsTriggerVariants>): react_jsx_runtime0.JSX.Element;
334
+ declare function Chip(props: React$2.ComponentProps<typeof Combobox.Chip> & {
335
+ key: React$2.Key;
336
+ }): react_jsx_runtime0.JSX.Element;
337
+ declare function Search({
338
+ placeholder,
339
+ ...props
340
+ }: React$2.ComponentProps<typeof Combobox.Input>): react_jsx_runtime0.JSX.Element;
341
+ declare function useComboboxContext(): ComboboxContextValues;
342
+ declare const BaseCombobox: typeof Combobox;
343
+ declare namespace select_d_exports {
344
+ export { BaseSelect, Content$3 as Content, Item$5 as Item, List$1 as List, MultiItem, MultiSelectedValue, Root$5 as Root, SelectedValue, Trigger$3 as Trigger, TriggerProps, Value$1 as Value };
345
+ }
346
+ declare function Root$5<Value$3 = any, Multiple extends boolean | undefined = false>({
347
+ children,
348
+ invalid,
349
+ ...props
350
+ }: React$2.ComponentPropsWithoutRef<typeof Select.Root<Value$3, Multiple>> & {
351
+ invalid?: boolean;
352
+ }): react_jsx_runtime0.JSX.Element;
353
+ declare function Content$3({
354
+ portalProps,
355
+ positionerProps,
356
+ popupProps,
357
+ children,
358
+ widthVariant
359
+ }: React$2.PropsWithChildren<{
360
+ portalProps?: React$2.ComponentProps<typeof Select.Portal>;
361
+ positionerProps?: React$2.ComponentProps<typeof Select.Positioner>;
362
+ popupProps?: React$2.ComponentProps<typeof Select.Popup>;
363
+ widthVariant?: "trigger" | "fit" | "enforced";
364
+ }>): react_jsx_runtime0.JSX.Element;
365
+ declare const List$1: React$2.ForwardRefExoticComponent<Select.List.Props & React$2.RefAttributes<HTMLDivElement>>;
366
+ declare function Item$5({
367
+ className,
368
+ ...props
369
+ }: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime0.JSX.Element;
370
+ declare function MultiItem({
371
+ className,
372
+ ...props
373
+ }: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime0.JSX.Element;
374
+ interface TriggerProps extends Select.Trigger.Props, VariantProps<typeof triggerVariants> {}
375
+ declare function Trigger$3({
376
+ size,
377
+ widthVariant,
378
+ ...props
379
+ }: TriggerProps): react_jsx_runtime0.JSX.Element;
380
+ declare function MultiSelectedValue({
381
+ selectedValue,
382
+ maxItems
383
+ }: {
384
+ selectedValue: any;
385
+ maxItems: number;
386
+ }): react_jsx_runtime0.JSX.Element | null;
387
+ /**
388
+ * Renders the value, if `value` is a string or an object with `label` property in it,
389
+ * then renders that value else you should provide a render function to render your custom value
390
+ * **/
391
+ declare function Value$1({
392
+ children,
393
+ className,
394
+ placeholder,
395
+ ...props
396
+ }: Select.Value.Props & {
397
+ placeholder?: string;
398
+ }): react_jsx_runtime0.JSX.Element;
399
+ type SelectedValue<TValue> = TValue | null | undefined;
400
+ declare const BaseSelect: typeof Select;
401
+ declare namespace menu_d_exports {
402
+ export { BaseMenu, BaseTrigger, Content$2 as Content, DropdownIndicator, Group$3 as Group, GroupLabel, Item$4 as Item, RadioGroup$1 as RadioGroup, RadioItem, Root$4 as Root, Separator$1 as Separator, Trigger$2 as Trigger };
403
+ }
404
+ declare const Root$4: React$2.FC<Menu.Root.Props>;
405
+ declare function Trigger$2({
406
+ className,
407
+ children,
408
+ size,
409
+ widthVariant,
410
+ ...props
411
+ }: React$2.ComponentProps<typeof Menu.Trigger> & VariantProps<typeof triggerVariants>): react_jsx_runtime0.JSX.Element;
412
+ declare function Content$2({
413
+ portalProps,
414
+ positionerProps,
415
+ popupProps,
416
+ children,
417
+ widthVariant
418
+ }: React$2.PropsWithChildren<{
419
+ portalProps?: React$2.ComponentProps<typeof Menu.Portal>;
420
+ positionerProps?: React$2.ComponentProps<typeof Menu.Positioner>;
421
+ popupProps?: React$2.ComponentProps<typeof Menu.Popup>;
422
+ widthVariant?: "trigger" | "fit" | "enforced";
423
+ }>): react_jsx_runtime0.JSX.Element;
424
+ declare function DropdownIndicator(): react_jsx_runtime0.JSX.Element;
425
+ declare function Item$4({
426
+ className,
427
+ children,
428
+ ...props
429
+ }: React$2.ComponentProps<typeof Menu.Item>): react_jsx_runtime0.JSX.Element;
430
+ declare function Separator$1({
431
+ className,
432
+ ...props
433
+ }: React$2.ComponentProps<typeof Menu.Separator>): react_jsx_runtime0.JSX.Element;
434
+ declare const Group$3: React$2.ForwardRefExoticComponent<Menu.Group.Props & React$2.RefAttributes<Element>>;
435
+ declare function GroupLabel({
436
+ className,
437
+ ...props
438
+ }: React$2.ComponentProps<typeof Menu.GroupLabel>): react_jsx_runtime0.JSX.Element;
439
+ declare const RadioGroup$1: React$2.NamedExoticComponent<Menu.RadioGroup.Props & React$2.RefAttributes<Element>>;
440
+ declare function RadioItem({
441
+ className,
442
+ ...props
443
+ }: React$2.ComponentProps<typeof Menu.RadioItem>): react_jsx_runtime0.JSX.Element;
444
+ declare const BaseTrigger: React$2.ForwardRefExoticComponent<Menu.Trigger.Props & React$2.RefAttributes<HTMLElement>>;
445
+ declare const BaseMenu: typeof Menu;
446
+ declare namespace progress_d_exports {
447
+ export { BaseProgress, Indicator, Label$1 as Label, Root$3 as Root, Track, Value };
448
+ }
449
+ declare const progressTrackVariants: (props?: ({
450
+ size?: "default" | "sm" | "lg" | null | undefined;
451
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
452
+ declare const Root$3: React$2.ForwardRefExoticComponent<Progress.Root.Props & React$2.RefAttributes<HTMLDivElement>>;
453
+ declare function Track({
454
+ className,
455
+ size,
456
+ children,
457
+ ...props
458
+ }: React$2.ComponentProps<typeof Progress.Track> & VariantProps<typeof progressTrackVariants>): react_jsx_runtime0.JSX.Element;
459
+ declare function Indicator({
460
+ className,
461
+ ...props
462
+ }: React$2.ComponentProps<typeof Progress.Indicator>): react_jsx_runtime0.JSX.Element;
463
+ declare function Label$1({
464
+ className,
465
+ ...props
466
+ }: React$2.ComponentProps<typeof Progress.Label>): react_jsx_runtime0.JSX.Element;
467
+ declare function Value({
468
+ className,
469
+ ...props
470
+ }: React$2.ComponentProps<typeof Progress.Value>): react_jsx_runtime0.JSX.Element;
471
+ declare const BaseProgress: typeof Progress;
472
+ declare namespace segmented_control_d_exports {
473
+ export { Item$3 as Item, Root$2 as Root };
474
+ }
475
+ declare const segmentedControlItemVariants: (props?: ({
476
+ variant?: "default" | null | undefined;
477
+ size?: "default" | "sm" | "lg" | null | undefined;
478
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
479
+ declare function Root$2({
480
+ className,
481
+ ...props
482
+ }: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime0.JSX.Element;
483
+ declare function Item$3({
484
+ children,
485
+ className,
486
+ variant,
487
+ size,
488
+ ...props
489
+ }: React$2.ComponentProps<typeof Radio.Root> & VariantProps<typeof segmentedControlItemVariants> & {
490
+ children: React$2.ReactNode;
491
+ }): react_jsx_runtime0.JSX.Element;
492
+ declare namespace tabs_d_exports {
493
+ export { Content$1 as Content, List, Root$1 as Root, Trigger$1 as Trigger };
494
+ }
495
+ type TabsVariant = "underline";
496
+ declare function Root$1({
497
+ variant,
498
+ className,
499
+ ...props
500
+ }: React$2.ComponentProps<typeof Tabs.Root> & {
501
+ variant?: TabsVariant;
502
+ }): react_jsx_runtime0.JSX.Element;
503
+ declare function List({
504
+ className,
505
+ children,
506
+ ...props
507
+ }: React$2.ComponentProps<typeof Tabs.List>): react_jsx_runtime0.JSX.Element;
508
+ declare function Trigger$1({
509
+ className,
510
+ ...props
511
+ }: React$2.ComponentProps<typeof Tabs.Tab>): react_jsx_runtime0.JSX.Element;
512
+ declare function Content$1({
513
+ className,
514
+ ...props
515
+ }: React$2.ComponentProps<typeof Tabs.Panel>): react_jsx_runtime0.JSX.Element;
516
+ declare namespace tooltip_d_exports {
517
+ export { BaseProvider, BaseRoot, Content, Root, Trigger };
518
+ }
519
+ declare function Root({
520
+ ...props
521
+ }: React$2.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime0.JSX.Element;
522
+ declare const BaseRoot: typeof Tooltip.Root;
523
+ declare const BaseProvider: React$2.FC<Tooltip.Provider.Props>;
524
+ declare function Trigger({
525
+ ...props
526
+ }: React$2.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime0.JSX.Element;
527
+ declare function Content({
528
+ className,
529
+ align,
530
+ sideOffset,
531
+ side,
532
+ children,
533
+ ...props
534
+ }: React$2.ComponentProps<typeof Tooltip.Popup> & {
535
+ align?: Tooltip.Positioner.Props["align"];
536
+ side?: Tooltip.Positioner.Props["side"];
537
+ sideOffset?: Tooltip.Positioner.Props["sideOffset"];
538
+ }): react_jsx_runtime0.JSX.Element;
539
+ //#endregion
540
+ //#region src/components/checkbox.d.ts
541
+ declare const checkboxVariants: (props?: ({
542
+ variant?: "default" | null | undefined;
543
+ size?: "default" | "sm" | "lg" | null | undefined;
544
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
545
+ interface CheckboxProps extends React.ComponentProps<typeof Checkbox$1.Root>, VariantProps<typeof checkboxVariants> {}
546
+ declare function Checkbox({
547
+ className,
548
+ ...props
549
+ }: CheckboxProps): react_jsx_runtime0.JSX.Element;
550
+ declare namespace block_checkbox_group_d_exports {
551
+ export { Description$1 as Description, Group$2 as Group, Header$1 as Header, Item$2 as Item, Title$1 as Title };
552
+ }
553
+ declare function Group$2({
554
+ className,
555
+ ...props
556
+ }: React.ComponentProps<typeof CheckboxGroup>): react_jsx_runtime0.JSX.Element;
557
+ declare function Item$2({
558
+ className,
559
+ invalid,
560
+ children,
561
+ ...rest
562
+ }: React.PropsWithChildren<React.ComponentProps<typeof Checkbox>> & {
563
+ className?: string;
564
+ invalid?: boolean;
565
+ }): react_jsx_runtime0.JSX.Element;
566
+ declare function Header$1(props: React.PropsWithChildren<{
567
+ className?: string;
568
+ }>): react_jsx_runtime0.JSX.Element;
569
+ declare function Title$1(props: React.PropsWithChildren<{
570
+ className?: string;
571
+ }>): react_jsx_runtime0.JSX.Element;
572
+ declare function Description$1(props: React.PropsWithChildren<{
573
+ className?: string;
574
+ }>): react_jsx_runtime0.JSX.Element;
575
+ //#endregion
576
+ //#region src/components/radio-group.d.ts
577
+ declare function Group({
578
+ className,
579
+ ...props
580
+ }: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime0.JSX.Element;
581
+ declare const radioVariants: (props?: ({
582
+ variant?: "default" | null | undefined;
583
+ size?: "default" | "sm" | "lg" | null | undefined;
584
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
585
+ interface RadioGroupItemProps extends React$2.ComponentProps<typeof Radio.Root>, VariantProps<typeof radioVariants> {}
586
+ declare function Item({
587
+ className,
588
+ variant,
589
+ size,
590
+ ...props
591
+ }: RadioGroupItemProps): react_jsx_runtime0.JSX.Element;
592
+ declare namespace block_radio_group_d_exports {
593
+ export { Description, Group$1 as Group, Header, Item$1 as Item, Title };
594
+ }
595
+ declare function Group$1({
596
+ className,
597
+ ...props
598
+ }: React.ComponentProps<typeof RadioGroup>): react_jsx_runtime0.JSX.Element;
599
+ declare function Item$1({
600
+ className,
601
+ invalid,
602
+ children,
603
+ ...rest
604
+ }: React.PropsWithChildren<React.ComponentProps<typeof Item>> & {
605
+ className?: string;
606
+ invalid?: boolean;
607
+ }): react_jsx_runtime0.JSX.Element;
608
+ declare function Header(props: React.PropsWithChildren<{
609
+ className?: string;
610
+ }>): react_jsx_runtime0.JSX.Element;
611
+ declare function Title(props: React.PropsWithChildren<{
612
+ className?: string;
613
+ }>): react_jsx_runtime0.JSX.Element;
614
+ declare function Description(props: React.PropsWithChildren<{
615
+ className?: string;
616
+ }>): react_jsx_runtime0.JSX.Element;
617
+ declare namespace breadcrumbs_d_exports {
618
+ export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
619
+ }
620
+ declare function Breadcrumb({
621
+ ...props
622
+ }: React$2.ComponentProps<"nav">): react_jsx_runtime0.JSX.Element;
623
+ declare function BreadcrumbList({
624
+ className,
625
+ ...props
626
+ }: React$2.ComponentProps<"ol">): react_jsx_runtime0.JSX.Element;
627
+ declare function BreadcrumbItem({
628
+ className,
629
+ ...props
630
+ }: React$2.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
631
+ declare function BreadcrumbLink({
632
+ className,
633
+ render,
634
+ ...props
635
+ }: React$2.ComponentProps<"a"> & useRender.ComponentProps<"a">): React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>>;
636
+ declare function BreadcrumbPage({
637
+ className,
638
+ ...props
639
+ }: React$2.ComponentProps<"span">): react_jsx_runtime0.JSX.Element;
640
+ declare function BreadcrumbSeparator({
641
+ children,
642
+ className,
643
+ ...props
644
+ }: React$2.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
645
+ //#endregion
646
+ //#region src/components/calendar.d.ts
647
+ declare function Calendar({
648
+ className,
649
+ classNames,
650
+ showOutsideDays,
651
+ captionLayout,
652
+ formatters,
653
+ components,
654
+ ...props
655
+ }: DayPickerProps): react_jsx_runtime0.JSX.Element;
656
+ //#endregion
657
+ //#region src/components/label.d.ts
658
+ declare function Label({
659
+ className,
660
+ ...props
661
+ }: React.ComponentProps<"label">): react_jsx_runtime0.JSX.Element;
662
+ //#endregion
663
+ //#region src/components/input.d.ts
664
+ declare const inputVariants: (props?: ({
665
+ size?: "default" | "sm" | null | undefined;
666
+ widthVariant?: "enforced" | "full" | null | undefined;
667
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
668
+ interface InputProps extends Omit<React$2.ComponentProps<"input">, "size">, VariantProps<typeof inputVariants> {
669
+ invalid?: boolean;
670
+ }
671
+ declare function Input({
672
+ className,
673
+ size,
674
+ invalid,
675
+ widthVariant,
676
+ ...props
677
+ }: InputProps): react_jsx_runtime0.JSX.Element;
678
+ //#endregion
679
+ //#region src/components/textarea.d.ts
680
+ declare const textareaVariants: (props?: ({
681
+ size?: "default" | "sm" | null | undefined;
682
+ widthVariant?: "enforced" | "full" | null | undefined;
683
+ } & class_variance_authority_types10.ClassProp) | undefined) => string;
684
+ interface TextareaProps extends React$2.ComponentProps<"textarea">, VariantProps<typeof textareaVariants> {
685
+ invalid?: boolean;
686
+ }
687
+ declare function Textarea({
688
+ className,
689
+ size,
690
+ invalid,
691
+ widthVariant,
692
+ ...props
693
+ }: TextareaProps): react_jsx_runtime0.JSX.Element;
694
+ //#endregion
695
+ //#region src/components/avatar.d.ts
696
+ type AvatarVariant = "squared" | "rounded";
697
+ interface AvatarProps {
698
+ imgSrc: string | null | undefined;
699
+ name: string | null | undefined;
700
+ variant?: AvatarVariant;
701
+ size?: `${number}px`;
702
+ className?: string;
703
+ children?: React.ReactNode;
704
+ hideTooltip?: boolean;
705
+ }
706
+ declare function Avatar(props: AvatarProps): react_jsx_runtime0.JSX.Element;
707
+ type AvatarImplProps = Omit<AvatarProps, "hideTooltip"> & {
708
+ avatarRootProps?: React.ComponentProps<typeof Avatar$1.Root>;
709
+ };
710
+ declare function AvatarImpl(props: AvatarImplProps): react_jsx_runtime0.JSX.Element;
711
+ //#endregion
712
+ //#region src/components/avatar-group.d.ts
713
+ interface AvatarGroupProps {
714
+ avatars: React$1.ComponentProps<typeof Avatar>[];
715
+ max?: number;
716
+ className?: string;
717
+ }
718
+ declare function AvatarGroup({
719
+ max,
720
+ avatars,
721
+ className
722
+ }: AvatarGroupProps): react_jsx_runtime0.JSX.Element;
723
+ //#endregion
724
+ //#region src/components/spinner.d.ts
725
+ interface SpinnerProps {
726
+ size?: "small" | "medium" | "large";
727
+ className?: string;
728
+ }
729
+ declare function Spinner({
730
+ size,
731
+ className
732
+ }: SpinnerProps): react_jsx_runtime0.JSX.Element;
733
+ //#endregion
734
+ //#region src/components/switch.d.ts
735
+ declare function Switch({
736
+ className,
737
+ size,
738
+ ...props
739
+ }: React$2.ComponentProps<typeof Switch$1.Root> & {
740
+ size?: "sm" | "lg";
741
+ }): react_jsx_runtime0.JSX.Element;
742
+ //#endregion
743
+ //#region src/components/separator.d.ts
744
+ declare function Separator({
745
+ className,
746
+ orientation,
747
+ decorative,
748
+ ...props
749
+ }: React$2.ComponentProps<"div"> & {
750
+ orientation: "horizontal" | "vertical";
751
+ decorative?: boolean;
752
+ }): react_jsx_runtime0.JSX.Element;
753
+ declare namespace Separator {
754
+ var displayName: string;
755
+ }
756
+ //#endregion
757
+ //#region src/components/date-picker.d.ts
758
+ type CalendarProps = React$2.ComponentProps<typeof Calendar>;
759
+ type DatePickerProps = {
760
+ placeholder?: string;
761
+ format?: string;
762
+ trailingIcon?: React$2.ReactNode;
763
+ invalid?: boolean;
764
+ triggerProps?: VariantProps<typeof triggerVariants> & {
765
+ className?: string;
766
+ disabled?: boolean;
767
+ };
768
+ renderTriggerContent?: React$2.ReactNode;
769
+ popoverRootProps?: Omit<React$2.ComponentProps<typeof Root$8>, "children">;
770
+ popoverContentProps?: React$2.ComponentProps<typeof Content$5>;
771
+ } & CalendarProps;
772
+ declare function DatePicker({
773
+ triggerProps,
774
+ placeholder,
775
+ format,
776
+ invalid,
777
+ trailingIcon,
778
+ renderTriggerContent,
779
+ popoverRootProps,
780
+ popoverContentProps,
781
+ ...calendarProps
782
+ }: DatePickerProps): react_jsx_runtime0.JSX.Element;
783
+ //#endregion
784
+ //#region src/hooks/use-intersection-observer.d.ts
785
+ interface UseIntersectionObserverOptions {
786
+ threshold?: number | number[];
787
+ root?: Element | Document | null;
788
+ rootMargin?: string;
789
+ }
790
+ type UseIntersectionObserverReturn = [(node: Element | null) => void, IntersectionObserverEntry | null];
791
+ declare function useIntersectionObserver(options?: UseIntersectionObserverOptions): UseIntersectionObserverReturn;
792
+ //#endregion
793
+ //#region src/hooks/use-infinite-scroll.d.ts
794
+ type UseInfiniteScrollHookArgs = Pick<UseIntersectionObserverOptions, "rootMargin" | "threshold"> & {
795
+ isLoadingMore: boolean;
796
+ hasMore: boolean;
797
+ onLoadMore: () => unknown;
798
+ disabled?: boolean;
799
+ };
800
+ //#endregion
801
+ //#region src/utils/classnames.d.ts
802
+ declare function cn(...inputs: ArgumentArray): string;
803
+ declare namespace index_d_exports {
804
+ export { Avatar, AvatarGroup, AvatarImpl, block_checkbox_group_d_exports as BlockCheckboxGroup, block_radio_group_d_exports as BlockRadioGroup, breadcrumbs_d_exports as Breadcrumbs, Button, Calendar, Checkbox, combobox_d_exports as Combobox, DatePicker, dialog_d_exports as Dialog, Group, InferOption, InferOptions, Input, input_group_d_exports as InputGroup, Item, Label, LoadOptionsConfig, menu_d_exports as Menu, popover_d_exports as Popover, progress_d_exports as Progress, segmented_control_d_exports as SegmentedControl, select_d_exports as Select, Separator, Spinner, Switch, tabs_d_exports as Tabs, Textarea, TextareaProps, tooltip_d_exports as Tooltip, UseInfiniteScrollHookArgs, UseIntersectionObserverOptions, UseIntersectionObserverReturn, buttonVariants, cn, defineLoadOptions, useAsyncOptions, useIntersectionObserver };
805
+ }
806
+ //#endregion
807
+ export { Avatar, AvatarGroup, AvatarImpl, block_checkbox_group_d_exports as BlockCheckboxGroup, block_radio_group_d_exports as BlockRadioGroup, breadcrumbs_d_exports as Breadcrumbs, Button, Calendar, Checkbox, combobox_d_exports as Combobox, DatePicker, dialog_d_exports as Dialog, Group, InferOption, InferOptions, Input, input_group_d_exports as InputGroup, Item, Label, LoadOptionsConfig, menu_d_exports as Menu, popover_d_exports as Popover, progress_d_exports as Progress, segmented_control_d_exports as SegmentedControl, select_d_exports as Select, Separator, Spinner, Switch, tabs_d_exports as Tabs, Textarea, TextareaProps, tooltip_d_exports as Tooltip, UseInfiniteScrollHookArgs, UseIntersectionObserverOptions, UseIntersectionObserverReturn, buttonVariants, cn, defineLoadOptions, useAsyncOptions, useIntersectionObserver };
808
+ //# sourceMappingURL=index.d.ts.map