rockin 0.0.12 → 0.0.14
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/README.md +4 -4
- package/dist/styles.css +102 -0
- package/dist/ui/index.d.ts +284 -221
- package/dist/ui/index.js +3673 -3273
- package/package.json +24 -2
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode, HTMLAttributes } from 'react';
|
|
3
|
+
import React__default, { ComponentProps, ReactNode, HTMLAttributes } from 'react';
|
|
4
4
|
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { Button as Button$1 } from '@base-ui/react/button';
|
|
@@ -24,7 +24,7 @@ import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
|
24
24
|
import { LucideIcon } from 'lucide-react';
|
|
25
25
|
import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
26
26
|
import { Menu } from '@base-ui/react/menu';
|
|
27
|
-
import { MotionProps, Variants } from 'motion/react';
|
|
27
|
+
import { motion, MotionProps, Variants } from 'motion/react';
|
|
28
28
|
import { ImageProps as ImageProps$1 } from 'next/image';
|
|
29
29
|
import { OTPInput as OTPInput$1 } from 'input-otp';
|
|
30
30
|
export { REGEXP_ONLY_DIGITS } from 'input-otp';
|
|
@@ -35,6 +35,7 @@ export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVis
|
|
|
35
35
|
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
36
36
|
import { Radio } from '@base-ui/react/radio';
|
|
37
37
|
import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
38
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
38
39
|
import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
|
|
39
40
|
import { Select as Select$1 } from '@base-ui/react/select';
|
|
40
41
|
import { GooeyToasterProps } from 'goey-toast';
|
|
@@ -71,6 +72,42 @@ declare function AlertDialogDescription({ className, ...props }: React$1.Compone
|
|
|
71
72
|
declare function AlertDialogAction({ className, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
72
73
|
declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialog$1.Close.Props & Pick<React$1.ComponentProps<typeof Button>, "variant" | "size">): React$1.JSX.Element;
|
|
73
74
|
|
|
75
|
+
type AppleHelloEffectEnglishProps = Omit<ComponentProps<typeof motion.svg>, "durationScale" | "onAnimationComplete"> & {
|
|
76
|
+
/**
|
|
77
|
+
* Scales the duration and delay of the handwriting animation.
|
|
78
|
+
* Values below 1 speed up, values above 1 slow down.
|
|
79
|
+
* @defaultValue 1
|
|
80
|
+
*/
|
|
81
|
+
durationScale?: number;
|
|
82
|
+
/** Called when the full handwriting animation completes. */
|
|
83
|
+
onAnimationComplete?: () => void;
|
|
84
|
+
};
|
|
85
|
+
declare function AppleHelloEffectEnglish({ className, durationScale, onAnimationComplete, ...props }: AppleHelloEffectEnglishProps): React$1.JSX.Element;
|
|
86
|
+
|
|
87
|
+
type AppleHelloEffectHindiProps = Omit<ComponentProps<typeof motion.svg>, "durationScale" | "onAnimationComplete"> & {
|
|
88
|
+
/**
|
|
89
|
+
* Scales the duration and delay of the handwriting animation.
|
|
90
|
+
* Values below 1 speed up, values above 1 slow down.
|
|
91
|
+
* @defaultValue 0.8
|
|
92
|
+
*/
|
|
93
|
+
durationScale?: number;
|
|
94
|
+
/** Called when the full handwriting animation completes. */
|
|
95
|
+
onAnimationComplete?: () => void;
|
|
96
|
+
};
|
|
97
|
+
declare function AppleHelloEffectHindi({ className, durationScale, onAnimationComplete, ...props }: AppleHelloEffectHindiProps): React$1.JSX.Element;
|
|
98
|
+
|
|
99
|
+
type AppleHelloEffectSpanishProps = Omit<ComponentProps<typeof motion.svg>, "durationScale" | "onAnimationComplete"> & {
|
|
100
|
+
/**
|
|
101
|
+
* Scales the duration and delay of the handwriting animation.
|
|
102
|
+
* Values below 1 speed up, values above 1 slow down.
|
|
103
|
+
* @defaultValue 1
|
|
104
|
+
*/
|
|
105
|
+
durationScale?: number;
|
|
106
|
+
/** Called when the full handwriting animation completes. */
|
|
107
|
+
onAnimationComplete?: () => void;
|
|
108
|
+
};
|
|
109
|
+
declare function AppleHelloEffectSpanish({ className, durationScale, onAnimationComplete, ...props }: AppleHelloEffectSpanishProps): React$1.JSX.Element;
|
|
110
|
+
|
|
74
111
|
declare function Apple(): React$1.JSX.Element;
|
|
75
112
|
|
|
76
113
|
declare const Autocomplete: typeof Autocomplete$1.Root;
|
|
@@ -221,6 +258,15 @@ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlig
|
|
|
221
258
|
|
|
222
259
|
declare function Checkbox({ className, children, ...props }: Checkbox$1.Root.Props): React$1.JSX.Element;
|
|
223
260
|
|
|
261
|
+
type CodeBlockProps = {
|
|
262
|
+
code: string;
|
|
263
|
+
language?: string;
|
|
264
|
+
className?: string;
|
|
265
|
+
showLineNumbers?: boolean;
|
|
266
|
+
maxHeight?: number | string;
|
|
267
|
+
};
|
|
268
|
+
declare function CodeBlock({ code, language, className, showLineNumbers, maxHeight, }: CodeBlockProps): React$1.JSX.Element;
|
|
269
|
+
|
|
224
270
|
declare const Combobox: typeof Combobox$1.Root;
|
|
225
271
|
declare function ComboboxValue({ ...props }: Combobox$1.Value.Props): React$1.JSX.Element;
|
|
226
272
|
declare function ComboboxTrigger({ className, children, ...props }: Combobox$1.Trigger.Props): React$1.JSX.Element;
|
|
@@ -412,6 +458,178 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
412
458
|
} | undefined>;
|
|
413
459
|
}): React$1.JSX.Element | null;
|
|
414
460
|
|
|
461
|
+
interface FilterI18nConfig {
|
|
462
|
+
addFilter: string;
|
|
463
|
+
searchFields: string;
|
|
464
|
+
noFieldsFound: string;
|
|
465
|
+
noResultsFound: string;
|
|
466
|
+
select: string;
|
|
467
|
+
true: string;
|
|
468
|
+
false: string;
|
|
469
|
+
min: string;
|
|
470
|
+
max: string;
|
|
471
|
+
to: string;
|
|
472
|
+
typeAndPressEnter: string;
|
|
473
|
+
selected: string;
|
|
474
|
+
selectedCount: string;
|
|
475
|
+
percent: string;
|
|
476
|
+
defaultCurrency: string;
|
|
477
|
+
defaultColor: string;
|
|
478
|
+
addFilterTitle: string;
|
|
479
|
+
loadingOptions?: string;
|
|
480
|
+
errorLoadingOptions?: string;
|
|
481
|
+
operators: {
|
|
482
|
+
is: string;
|
|
483
|
+
isNot: string;
|
|
484
|
+
isAnyOf: string;
|
|
485
|
+
isNotAnyOf: string;
|
|
486
|
+
includesAll: string;
|
|
487
|
+
excludesAll: string;
|
|
488
|
+
before: string;
|
|
489
|
+
after: string;
|
|
490
|
+
between: string;
|
|
491
|
+
notBetween: string;
|
|
492
|
+
contains: string;
|
|
493
|
+
notContains: string;
|
|
494
|
+
startsWith: string;
|
|
495
|
+
endsWith: string;
|
|
496
|
+
isExactly: string;
|
|
497
|
+
equals: string;
|
|
498
|
+
notEquals: string;
|
|
499
|
+
greaterThan: string;
|
|
500
|
+
lessThan: string;
|
|
501
|
+
overlaps: string;
|
|
502
|
+
includes: string;
|
|
503
|
+
excludes: string;
|
|
504
|
+
includesAllOf: string;
|
|
505
|
+
includesAnyOf: string;
|
|
506
|
+
empty: string;
|
|
507
|
+
notEmpty: string;
|
|
508
|
+
};
|
|
509
|
+
placeholders: {
|
|
510
|
+
enterField: (fieldType: string) => string;
|
|
511
|
+
selectField: string;
|
|
512
|
+
searchField: (fieldName: string) => string;
|
|
513
|
+
enterKey: string;
|
|
514
|
+
enterValue: string;
|
|
515
|
+
};
|
|
516
|
+
helpers: {
|
|
517
|
+
formatOperator: (operator: string) => string;
|
|
518
|
+
};
|
|
519
|
+
validation: {
|
|
520
|
+
invalidEmail: string;
|
|
521
|
+
invalidUrl: string;
|
|
522
|
+
invalidTel: string;
|
|
523
|
+
invalid: string;
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
declare const DEFAULT_I18N: FilterI18nConfig;
|
|
527
|
+
interface FilterOption<T = unknown> {
|
|
528
|
+
value: T;
|
|
529
|
+
label: string;
|
|
530
|
+
icon?: React__default.ReactNode;
|
|
531
|
+
metadata?: Record<string, unknown>;
|
|
532
|
+
className?: string;
|
|
533
|
+
}
|
|
534
|
+
interface FilterOperator {
|
|
535
|
+
value: string;
|
|
536
|
+
label: string;
|
|
537
|
+
supportsMultiple?: boolean;
|
|
538
|
+
}
|
|
539
|
+
interface CustomRendererProps<T = unknown> {
|
|
540
|
+
field: FilterFieldConfig<T>;
|
|
541
|
+
values: T[];
|
|
542
|
+
onChange: (values: T[]) => void;
|
|
543
|
+
operator: string;
|
|
544
|
+
}
|
|
545
|
+
interface FilterOptionListRenderProps<T = unknown> {
|
|
546
|
+
options: FilterOption<T>[];
|
|
547
|
+
highlightedIndex: number;
|
|
548
|
+
renderOption: (option: FilterOption<T>, index: number) => React__default.ReactNode;
|
|
549
|
+
}
|
|
550
|
+
interface FilterFieldGroup<T = unknown> {
|
|
551
|
+
group?: string;
|
|
552
|
+
fields: FilterFieldConfig<T>[];
|
|
553
|
+
}
|
|
554
|
+
type FilterFieldsConfig<T = unknown> = FilterFieldConfig<T>[] | FilterFieldGroup<T>[];
|
|
555
|
+
interface FilterFieldConfig<T = unknown> {
|
|
556
|
+
key?: string;
|
|
557
|
+
label?: string;
|
|
558
|
+
icon?: React__default.ReactNode;
|
|
559
|
+
type?: "select" | "multiselect" | "text" | "custom" | "separator";
|
|
560
|
+
group?: string;
|
|
561
|
+
fields?: FilterFieldConfig<T>[];
|
|
562
|
+
options?: FilterOption<T>[];
|
|
563
|
+
loadOptions?: (query: string) => FilterOption<T>[] | Promise<FilterOption<T>[]>;
|
|
564
|
+
renderOptionList?: (props: FilterOptionListRenderProps<T>) => React__default.ReactNode;
|
|
565
|
+
operators?: FilterOperator[];
|
|
566
|
+
customRenderer?: (props: CustomRendererProps<T>) => React__default.ReactNode;
|
|
567
|
+
customValueRenderer?: (values: T[], options: FilterOption<T>[]) => React__default.ReactNode;
|
|
568
|
+
placeholder?: string;
|
|
569
|
+
searchable?: boolean;
|
|
570
|
+
maxSelections?: number;
|
|
571
|
+
min?: number;
|
|
572
|
+
max?: number;
|
|
573
|
+
step?: number;
|
|
574
|
+
prefix?: string | React__default.ReactNode;
|
|
575
|
+
suffix?: string | React__default.ReactNode;
|
|
576
|
+
pattern?: string;
|
|
577
|
+
validation?: (value: unknown) => boolean | {
|
|
578
|
+
valid: boolean;
|
|
579
|
+
message?: string;
|
|
580
|
+
};
|
|
581
|
+
allowCustomValues?: boolean;
|
|
582
|
+
className?: string;
|
|
583
|
+
menuPopupClassName?: string;
|
|
584
|
+
groupLabel?: string;
|
|
585
|
+
onLabel?: string;
|
|
586
|
+
offLabel?: string;
|
|
587
|
+
onInputChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
588
|
+
defaultOperator?: string;
|
|
589
|
+
value?: T[];
|
|
590
|
+
onValueChange?: (values: T[]) => void;
|
|
591
|
+
}
|
|
592
|
+
declare const DEFAULT_OPERATORS: Record<string, FilterOperator[]>;
|
|
593
|
+
interface Filter<T = unknown> {
|
|
594
|
+
id: string;
|
|
595
|
+
field: string;
|
|
596
|
+
operator: string;
|
|
597
|
+
values: T[];
|
|
598
|
+
}
|
|
599
|
+
interface FilterGroup<T = unknown> {
|
|
600
|
+
id: string;
|
|
601
|
+
label?: string;
|
|
602
|
+
filters: Filter<T>[];
|
|
603
|
+
fields: FilterFieldConfig<T>[];
|
|
604
|
+
}
|
|
605
|
+
interface FiltersContentProps<T = unknown> {
|
|
606
|
+
filters: Filter<T>[];
|
|
607
|
+
fields: FilterFieldsConfig<T>;
|
|
608
|
+
onChange: (filters: Filter<T>[]) => void;
|
|
609
|
+
}
|
|
610
|
+
declare const FiltersContent: <T = unknown>({ filters, fields, onChange, }: FiltersContentProps<T>) => React__default.JSX.Element;
|
|
611
|
+
interface FiltersProps<T = unknown> {
|
|
612
|
+
filters: Filter<T>[];
|
|
613
|
+
fields: FilterFieldsConfig<T>;
|
|
614
|
+
onChange: (filters: Filter<T>[]) => void;
|
|
615
|
+
className?: string;
|
|
616
|
+
variant?: "solid" | "default";
|
|
617
|
+
size?: "sm" | "default" | "lg";
|
|
618
|
+
radius?: "default" | "full";
|
|
619
|
+
i18n?: Partial<FilterI18nConfig>;
|
|
620
|
+
showSearchInput?: boolean;
|
|
621
|
+
trigger?: React__default.ReactNode;
|
|
622
|
+
allowMultiple?: boolean;
|
|
623
|
+
menuPopupClassName?: string;
|
|
624
|
+
collapseAddButton?: boolean;
|
|
625
|
+
enableShortcut?: boolean;
|
|
626
|
+
shortcutKey?: string;
|
|
627
|
+
shortcutLabel?: string;
|
|
628
|
+
}
|
|
629
|
+
declare function Filters<T = unknown>({ filters, fields, onChange, className, variant, size, radius, i18n, showSearchInput, trigger, allowMultiple, menuPopupClassName, enableShortcut, shortcutKey, shortcutLabel, }: FiltersProps<T>): React__default.JSX.Element;
|
|
630
|
+
declare const createFilter: <T = unknown>(field: string, operator?: string, values?: T[]) => Filter<T>;
|
|
631
|
+
declare const createFilterGroup: <T = unknown>(id: string, label: string, fields: FilterFieldConfig<T>[], initialFilters?: Filter<T>[]) => FilterGroup<T>;
|
|
632
|
+
|
|
415
633
|
type ImageProps = Omit<ImageProps$1, "children" | "placeholder" | "blurDataURL" | "src"> & {
|
|
416
634
|
src?: ImageProps$1["src"] | null;
|
|
417
635
|
wrapper?: string;
|
|
@@ -426,7 +644,7 @@ declare function Input({ className, type, inputMode, onWheel, ...props }: React$
|
|
|
426
644
|
|
|
427
645
|
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
428
646
|
declare const inputGroupAddonVariants: (props?: ({
|
|
429
|
-
align?: "inline-end" | "inline-start" | "block-
|
|
647
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
430
648
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
431
649
|
declare function InputGroupAddon({ className, align, focusInput, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants> & {
|
|
432
650
|
focusInput?: boolean;
|
|
@@ -535,6 +753,57 @@ declare function MessageScrollerContent({ className, ...props }: React$1.Compone
|
|
|
535
753
|
declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React$1.ComponentProps<typeof MessageScroller$1.Item>): React$1.JSX.Element;
|
|
536
754
|
declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React$1.ComponentProps<typeof MessageScroller$1.Button> & Pick<React$1.ComponentProps<typeof Button>, "variant" | "size">): React$1.JSX.Element;
|
|
537
755
|
|
|
756
|
+
declare const sizeStyles: {
|
|
757
|
+
readonly xs: {
|
|
758
|
+
readonly container: "h-6 p-0.5";
|
|
759
|
+
readonly button: "size-5";
|
|
760
|
+
readonly value: "w-6";
|
|
761
|
+
readonly text: "text-xs";
|
|
762
|
+
readonly icon: "size-3";
|
|
763
|
+
};
|
|
764
|
+
readonly sm: {
|
|
765
|
+
readonly container: "h-7 p-0.5";
|
|
766
|
+
readonly button: "size-6";
|
|
767
|
+
readonly value: "w-7";
|
|
768
|
+
readonly text: "text-sm";
|
|
769
|
+
readonly icon: "size-3.5";
|
|
770
|
+
};
|
|
771
|
+
readonly default: {
|
|
772
|
+
readonly container: "h-8 p-0.5";
|
|
773
|
+
readonly button: "size-7";
|
|
774
|
+
readonly value: "w-9";
|
|
775
|
+
readonly text: "text-sm";
|
|
776
|
+
readonly icon: "size-3.5";
|
|
777
|
+
};
|
|
778
|
+
readonly lg: {
|
|
779
|
+
readonly container: "h-9 p-1";
|
|
780
|
+
readonly button: "size-8";
|
|
781
|
+
readonly value: "w-11";
|
|
782
|
+
readonly text: "text-[15px]";
|
|
783
|
+
readonly icon: "size-4";
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
declare function RollingNumber({ value, format, className, }: {
|
|
787
|
+
value: number;
|
|
788
|
+
format?: (value: number) => string;
|
|
789
|
+
className?: string;
|
|
790
|
+
}): React$1.JSX.Element;
|
|
791
|
+
type NumberStepperProps = {
|
|
792
|
+
label: string;
|
|
793
|
+
value: number;
|
|
794
|
+
onChange: (value: number) => void;
|
|
795
|
+
min?: number;
|
|
796
|
+
max?: number;
|
|
797
|
+
step?: number;
|
|
798
|
+
className?: string;
|
|
799
|
+
size?: keyof typeof sizeStyles;
|
|
800
|
+
disabled?: boolean;
|
|
801
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
802
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
803
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
804
|
+
};
|
|
805
|
+
declare const NumberStepper: React$1.ForwardRefExoticComponent<NumberStepperProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
806
|
+
|
|
538
807
|
declare const EASE_OUT: readonly [0.16, 1, 0.3, 1];
|
|
539
808
|
declare const EASE_IN_OUT: readonly [0.77, 0, 0.175, 1];
|
|
540
809
|
declare const EASE_DRAWER: readonly [0.32, 0.72, 0, 1];
|
|
@@ -601,177 +870,11 @@ declare const QuantityInput: React$1.ForwardRefExoticComponent<Omit<Omit<_base_u
|
|
|
601
870
|
declare function RadioGroup({ className, ...props }: RadioGroup$1.Props): React$1.JSX.Element;
|
|
602
871
|
declare function RadioGroupItem({ className, ...props }: Radio.Root.Props): React$1.JSX.Element;
|
|
603
872
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
select: string;
|
|
610
|
-
true: string;
|
|
611
|
-
false: string;
|
|
612
|
-
min: string;
|
|
613
|
-
max: string;
|
|
614
|
-
to: string;
|
|
615
|
-
typeAndPressEnter: string;
|
|
616
|
-
selected: string;
|
|
617
|
-
selectedCount: string;
|
|
618
|
-
percent: string;
|
|
619
|
-
defaultCurrency: string;
|
|
620
|
-
defaultColor: string;
|
|
621
|
-
addFilterTitle: string;
|
|
622
|
-
loadingOptions?: string;
|
|
623
|
-
errorLoadingOptions?: string;
|
|
624
|
-
operators: {
|
|
625
|
-
is: string;
|
|
626
|
-
isNot: string;
|
|
627
|
-
isAnyOf: string;
|
|
628
|
-
isNotAnyOf: string;
|
|
629
|
-
includesAll: string;
|
|
630
|
-
excludesAll: string;
|
|
631
|
-
before: string;
|
|
632
|
-
after: string;
|
|
633
|
-
between: string;
|
|
634
|
-
notBetween: string;
|
|
635
|
-
contains: string;
|
|
636
|
-
notContains: string;
|
|
637
|
-
startsWith: string;
|
|
638
|
-
endsWith: string;
|
|
639
|
-
isExactly: string;
|
|
640
|
-
equals: string;
|
|
641
|
-
notEquals: string;
|
|
642
|
-
greaterThan: string;
|
|
643
|
-
lessThan: string;
|
|
644
|
-
overlaps: string;
|
|
645
|
-
includes: string;
|
|
646
|
-
excludes: string;
|
|
647
|
-
includesAllOf: string;
|
|
648
|
-
includesAnyOf: string;
|
|
649
|
-
empty: string;
|
|
650
|
-
notEmpty: string;
|
|
651
|
-
};
|
|
652
|
-
placeholders: {
|
|
653
|
-
enterField: (fieldType: string) => string;
|
|
654
|
-
selectField: string;
|
|
655
|
-
searchField: (fieldName: string) => string;
|
|
656
|
-
enterKey: string;
|
|
657
|
-
enterValue: string;
|
|
658
|
-
};
|
|
659
|
-
helpers: {
|
|
660
|
-
formatOperator: (operator: string) => string;
|
|
661
|
-
};
|
|
662
|
-
validation: {
|
|
663
|
-
invalidEmail: string;
|
|
664
|
-
invalidUrl: string;
|
|
665
|
-
invalidTel: string;
|
|
666
|
-
invalid: string;
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
declare const DEFAULT_I18N: FilterI18nConfig;
|
|
670
|
-
interface FilterOption<T = unknown> {
|
|
671
|
-
value: T;
|
|
672
|
-
label: string;
|
|
673
|
-
icon?: React__default.ReactNode;
|
|
674
|
-
metadata?: Record<string, unknown>;
|
|
675
|
-
className?: string;
|
|
676
|
-
}
|
|
677
|
-
interface FilterOperator {
|
|
678
|
-
value: string;
|
|
679
|
-
label: string;
|
|
680
|
-
supportsMultiple?: boolean;
|
|
681
|
-
}
|
|
682
|
-
interface CustomRendererProps<T = unknown> {
|
|
683
|
-
field: FilterFieldConfig<T>;
|
|
684
|
-
values: T[];
|
|
685
|
-
onChange: (values: T[]) => void;
|
|
686
|
-
operator: string;
|
|
687
|
-
}
|
|
688
|
-
interface FilterOptionListRenderProps<T = unknown> {
|
|
689
|
-
options: FilterOption<T>[];
|
|
690
|
-
highlightedIndex: number;
|
|
691
|
-
renderOption: (option: FilterOption<T>, index: number) => React__default.ReactNode;
|
|
692
|
-
}
|
|
693
|
-
interface FilterFieldGroup<T = unknown> {
|
|
694
|
-
group?: string;
|
|
695
|
-
fields: FilterFieldConfig<T>[];
|
|
696
|
-
}
|
|
697
|
-
type FilterFieldsConfig<T = unknown> = FilterFieldConfig<T>[] | FilterFieldGroup<T>[];
|
|
698
|
-
interface FilterFieldConfig<T = unknown> {
|
|
699
|
-
key?: string;
|
|
700
|
-
label?: string;
|
|
701
|
-
icon?: React__default.ReactNode;
|
|
702
|
-
type?: "select" | "multiselect" | "text" | "custom" | "separator";
|
|
703
|
-
group?: string;
|
|
704
|
-
fields?: FilterFieldConfig<T>[];
|
|
705
|
-
options?: FilterOption<T>[];
|
|
706
|
-
loadOptions?: (query: string) => FilterOption<T>[] | Promise<FilterOption<T>[]>;
|
|
707
|
-
renderOptionList?: (props: FilterOptionListRenderProps<T>) => React__default.ReactNode;
|
|
708
|
-
operators?: FilterOperator[];
|
|
709
|
-
customRenderer?: (props: CustomRendererProps<T>) => React__default.ReactNode;
|
|
710
|
-
customValueRenderer?: (values: T[], options: FilterOption<T>[]) => React__default.ReactNode;
|
|
711
|
-
placeholder?: string;
|
|
712
|
-
searchable?: boolean;
|
|
713
|
-
maxSelections?: number;
|
|
714
|
-
min?: number;
|
|
715
|
-
max?: number;
|
|
716
|
-
step?: number;
|
|
717
|
-
prefix?: string | React__default.ReactNode;
|
|
718
|
-
suffix?: string | React__default.ReactNode;
|
|
719
|
-
pattern?: string;
|
|
720
|
-
validation?: (value: unknown) => boolean | {
|
|
721
|
-
valid: boolean;
|
|
722
|
-
message?: string;
|
|
723
|
-
};
|
|
724
|
-
allowCustomValues?: boolean;
|
|
725
|
-
className?: string;
|
|
726
|
-
menuPopupClassName?: string;
|
|
727
|
-
groupLabel?: string;
|
|
728
|
-
onLabel?: string;
|
|
729
|
-
offLabel?: string;
|
|
730
|
-
onInputChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
731
|
-
defaultOperator?: string;
|
|
732
|
-
value?: T[];
|
|
733
|
-
onValueChange?: (values: T[]) => void;
|
|
734
|
-
}
|
|
735
|
-
declare const DEFAULT_OPERATORS: Record<string, FilterOperator[]>;
|
|
736
|
-
interface Filter<T = unknown> {
|
|
737
|
-
id: string;
|
|
738
|
-
field: string;
|
|
739
|
-
operator: string;
|
|
740
|
-
values: T[];
|
|
741
|
-
}
|
|
742
|
-
interface FilterGroup<T = unknown> {
|
|
743
|
-
id: string;
|
|
744
|
-
label?: string;
|
|
745
|
-
filters: Filter<T>[];
|
|
746
|
-
fields: FilterFieldConfig<T>[];
|
|
747
|
-
}
|
|
748
|
-
interface FiltersContentProps<T = unknown> {
|
|
749
|
-
filters: Filter<T>[];
|
|
750
|
-
fields: FilterFieldsConfig<T>;
|
|
751
|
-
onChange: (filters: Filter<T>[]) => void;
|
|
752
|
-
}
|
|
753
|
-
declare const FiltersContent: <T = unknown>({ filters, fields, onChange, }: FiltersContentProps<T>) => React__default.JSX.Element;
|
|
754
|
-
interface FiltersProps<T = unknown> {
|
|
755
|
-
filters: Filter<T>[];
|
|
756
|
-
fields: FilterFieldsConfig<T>;
|
|
757
|
-
onChange: (filters: Filter<T>[]) => void;
|
|
758
|
-
className?: string;
|
|
759
|
-
variant?: "solid" | "default";
|
|
760
|
-
size?: "sm" | "default" | "lg";
|
|
761
|
-
radius?: "default" | "full";
|
|
762
|
-
i18n?: Partial<FilterI18nConfig>;
|
|
763
|
-
showSearchInput?: boolean;
|
|
764
|
-
trigger?: React__default.ReactNode;
|
|
765
|
-
allowMultiple?: boolean;
|
|
766
|
-
menuPopupClassName?: string;
|
|
767
|
-
collapseAddButton?: boolean;
|
|
768
|
-
enableShortcut?: boolean;
|
|
769
|
-
shortcutKey?: string;
|
|
770
|
-
shortcutLabel?: string;
|
|
771
|
-
}
|
|
772
|
-
declare function Filters<T = unknown>({ filters, fields, onChange, className, variant, size, radius, i18n, showSearchInput, trigger, allowMultiple, menuPopupClassName, enableShortcut, shortcutKey, shortcutLabel, }: FiltersProps<T>): React__default.JSX.Element;
|
|
773
|
-
declare const createFilter: <T = unknown>(field: string, operator?: string, values?: T[]) => Filter<T>;
|
|
774
|
-
declare const createFilterGroup: <T = unknown>(id: string, label: string, fields: FilterFieldConfig<T>[], initialFilters?: Filter<T>[]) => FilterGroup<T>;
|
|
873
|
+
declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): React$1.JSX.Element;
|
|
874
|
+
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): React$1.JSX.Element;
|
|
875
|
+
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
876
|
+
withHandle?: boolean;
|
|
877
|
+
}): React$1.JSX.Element;
|
|
775
878
|
|
|
776
879
|
declare function ScrollArea({ className, children, ...props }: ScrollArea$1.Root.Props): React$1.JSX.Element;
|
|
777
880
|
declare function ScrollBar({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props): React$1.JSX.Element;
|
|
@@ -879,55 +982,15 @@ declare function Switch({ className, size, ...props }: Switch$1.Root.Props & {
|
|
|
879
982
|
|
|
880
983
|
declare function Textarea({ className, ...props }: React$1.ComponentProps<"textarea">): React$1.JSX.Element;
|
|
881
984
|
|
|
985
|
+
declare function ThemeToggle({ size, variant, className, }: {
|
|
986
|
+
size?: "xs" | "sm" | "default" | "lg";
|
|
987
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
988
|
+
className?: string;
|
|
989
|
+
}): React$1.JSX.Element;
|
|
990
|
+
|
|
882
991
|
declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): React$1.JSX.Element;
|
|
883
992
|
declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React$1.JSX.Element;
|
|
884
993
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React$1.JSX.Element;
|
|
885
994
|
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
|
|
886
995
|
|
|
887
|
-
|
|
888
|
-
readonly xs: {
|
|
889
|
-
readonly container: "h-6 p-0.5";
|
|
890
|
-
readonly button: "size-5";
|
|
891
|
-
readonly value: "w-6";
|
|
892
|
-
readonly text: "text-xs";
|
|
893
|
-
readonly icon: "size-3";
|
|
894
|
-
};
|
|
895
|
-
readonly sm: {
|
|
896
|
-
readonly container: "h-7 p-0.5";
|
|
897
|
-
readonly button: "size-6";
|
|
898
|
-
readonly value: "w-7";
|
|
899
|
-
readonly text: "text-sm";
|
|
900
|
-
readonly icon: "size-3.5";
|
|
901
|
-
};
|
|
902
|
-
readonly default: {
|
|
903
|
-
readonly container: "h-8 p-0.5";
|
|
904
|
-
readonly button: "size-7";
|
|
905
|
-
readonly value: "w-9";
|
|
906
|
-
readonly text: "text-sm";
|
|
907
|
-
readonly icon: "size-3.5";
|
|
908
|
-
};
|
|
909
|
-
readonly lg: {
|
|
910
|
-
readonly container: "h-9 p-1";
|
|
911
|
-
readonly button: "size-8";
|
|
912
|
-
readonly value: "w-11";
|
|
913
|
-
readonly text: "text-[15px]";
|
|
914
|
-
readonly icon: "size-4";
|
|
915
|
-
};
|
|
916
|
-
};
|
|
917
|
-
declare function RollingNumber({ value, format, className, }: {
|
|
918
|
-
value: number;
|
|
919
|
-
format?: (value: number) => string;
|
|
920
|
-
className?: string;
|
|
921
|
-
}): React$1.JSX.Element;
|
|
922
|
-
declare function NumberStepper({ label, value, onChange, min, max, step, className, size, }: {
|
|
923
|
-
label: string;
|
|
924
|
-
value: number;
|
|
925
|
-
onChange: (value: number) => void;
|
|
926
|
-
min?: number;
|
|
927
|
-
max?: number;
|
|
928
|
-
step?: number;
|
|
929
|
-
className?: string;
|
|
930
|
-
size?: keyof typeof sizeStyles;
|
|
931
|
-
}): React$1.JSX.Element;
|
|
932
|
-
|
|
933
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, ListItemVariant, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, Switch, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createFilter, createFilterGroup, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, useAutocompleteFilter, useCarousel, useComboboxAnchor, useJellyMood };
|
|
996
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, AppleHelloEffectEnglish, AppleHelloEffectHindi, AppleHelloEffectSpanish, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, ListItemVariant, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, Switch, Textarea, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createFilter, createFilterGroup, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, useAutocompleteFilter, useCarousel, useComboboxAnchor, useJellyMood };
|