@lglab/compose-ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.d.ts +30 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/dialog.d.ts +16 -14
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/drawer.d.ts +17 -15
- package/dist/components/drawer.d.ts.map +1 -1
- package/dist/components/scroll-area.d.ts +7 -6
- package/dist/components/scroll-area.d.ts.map +1 -1
- package/dist/components/tabs.d.ts +6 -5
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +238 -366
- package/dist/lib/button-variants.d.ts +7 -0
- package/dist/lib/button-variants.d.ts.map +1 -0
- package/dist/styles/default.css +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type AccordionRootProps = React.ComponentProps<typeof BaseAccordion.Root>;
|
|
4
|
+
declare const AccordionRoot: {
|
|
5
|
+
({ className, ...props }: AccordionRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
type AccordionItemProps = React.ComponentProps<typeof BaseAccordion.Item>;
|
|
9
|
+
declare const AccordionItem: {
|
|
10
|
+
({ className, ...props }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
type AccordionHeaderProps = React.ComponentProps<typeof BaseAccordion.Header>;
|
|
14
|
+
declare const AccordionHeader: {
|
|
15
|
+
({ className, ...props }: AccordionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
type AccordionTriggerProps = React.ComponentProps<typeof BaseAccordion.Trigger>;
|
|
19
|
+
declare const AccordionTrigger: {
|
|
20
|
+
({ className, children, ...props }: AccordionTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
type AccordionPanelProps = React.ComponentProps<typeof BaseAccordion.Panel>;
|
|
24
|
+
declare const AccordionPanel: {
|
|
25
|
+
({ className, ...props }: AccordionPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
export { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionPanel };
|
|
29
|
+
export type { AccordionRootProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionPanelProps, };
|
|
30
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/components/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAErE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAA;AAEzE,QAAA,MAAM,aAAa;8BAA6B,kBAAkB;;CAEjE,CAAA;AAQD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAA;AAEzE,QAAA,MAAM,aAAa;8BAA6B,kBAAkB;;CAOjE,CAAA;AAQD,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAE7E,QAAA,MAAM,eAAe;8BAA6B,oBAAoB;;CAErE,CAAA;AAQD,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;AAE/E,QAAA,MAAM,gBAAgB;wCAAuC,qBAAqB;;CAiBjF,CAAA;AAQD,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,KAAK,CAAC,CAAA;AAE3E,QAAA,MAAM,cAAc;8BAA6B,mBAAmB;;CAUnE,CAAA;AAQD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAA;AAE1F,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Button as BaseButton } from '@base-ui/react/button';
|
|
2
|
+
import { ButtonSize, ButtonVariant } from '../lib/button-variants';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
type
|
|
4
|
-
type ButtonSize = 'sm' | 'default' | 'lg' | 'icon';
|
|
5
|
-
export type ButtonProps = React.ComponentProps<typeof BaseButton> & {
|
|
4
|
+
type ButtonProps = React.ComponentProps<typeof BaseButton> & {
|
|
6
5
|
/** Visual style variant */
|
|
7
6
|
variant?: ButtonVariant;
|
|
8
7
|
/** Size of the button */
|
|
@@ -17,4 +16,5 @@ declare const Button: {
|
|
|
17
16
|
displayName: string;
|
|
18
17
|
};
|
|
19
18
|
export { Button };
|
|
19
|
+
export type { ButtonProps };
|
|
20
20
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAA;AAG/B,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAC3D,2BAA2B;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,MAAM;uFAST,WAAW;;CAiBb,CAAA;AAID,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { Dialog as BaseDialog } from '@base-ui/react/dialog';
|
|
2
|
+
import { ButtonSize, ButtonVariant } from '../lib/button-variants';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
+
type DialogRootProps = React.ComponentProps<typeof BaseDialog.Root>;
|
|
4
5
|
declare const DialogRoot: {
|
|
5
6
|
(props: DialogRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
displayName: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
type DialogTriggerProps = React.ComponentProps<typeof BaseDialog.Trigger> & {
|
|
9
10
|
/** Visual style variant */
|
|
10
|
-
variant?:
|
|
11
|
+
variant?: ButtonVariant;
|
|
11
12
|
/** Size of the trigger button */
|
|
12
|
-
size?:
|
|
13
|
+
size?: ButtonSize;
|
|
13
14
|
};
|
|
14
15
|
declare const DialogTrigger: {
|
|
15
16
|
({ className, variant, size, ...props }: DialogTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
displayName: string;
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
type DialogPortalProps = React.ComponentProps<typeof BaseDialog.Portal>;
|
|
19
20
|
declare const DialogPortal: {
|
|
20
21
|
(props: DialogPortalProps): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
displayName: string;
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
+
type DialogBackdropProps = React.ComponentProps<typeof BaseDialog.Backdrop>;
|
|
24
25
|
declare const DialogBackdrop: {
|
|
25
26
|
({ className, ...props }: DialogBackdropProps): import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
displayName: string;
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
+
type DialogPopupProps = React.ComponentProps<typeof BaseDialog.Popup> & {
|
|
29
30
|
/** Size of the dialog popup */
|
|
30
31
|
size?: 'sm' | 'default' | 'lg' | 'xl' | 'full';
|
|
31
32
|
};
|
|
@@ -33,35 +34,36 @@ declare const DialogPopup: {
|
|
|
33
34
|
({ className, size, ...props }: DialogPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
displayName: string;
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
type DialogTitleProps = React.ComponentProps<typeof BaseDialog.Title>;
|
|
37
38
|
declare const DialogTitle: {
|
|
38
39
|
({ className, ...props }: DialogTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
displayName: string;
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
type DialogDescriptionProps = React.ComponentProps<typeof BaseDialog.Description>;
|
|
42
43
|
declare const DialogDescription: {
|
|
43
44
|
({ className, ...props }: DialogDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
44
45
|
displayName: string;
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
+
type DialogCloseProps = React.ComponentProps<typeof BaseDialog.Close> & {
|
|
47
48
|
/** Visual style variant */
|
|
48
|
-
variant?:
|
|
49
|
+
variant?: ButtonVariant;
|
|
49
50
|
/** Size of the close button */
|
|
50
|
-
size?:
|
|
51
|
+
size?: ButtonSize;
|
|
51
52
|
};
|
|
52
53
|
declare const DialogClose: {
|
|
53
54
|
({ className, variant, size, ...props }: DialogCloseProps): import("react/jsx-runtime").JSX.Element;
|
|
54
55
|
displayName: string;
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
+
type DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
57
58
|
declare const DialogHeader: {
|
|
58
59
|
({ className, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
59
60
|
displayName: string;
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
+
type DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
62
63
|
declare const DialogFooter: {
|
|
63
64
|
({ className, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
64
65
|
displayName: string;
|
|
65
66
|
};
|
|
66
67
|
export { DialogRoot, DialogTrigger, DialogPortal, DialogBackdrop, DialogPopup, DialogTitle, DialogDescription, DialogClose, DialogHeader, DialogFooter, };
|
|
68
|
+
export type { DialogRootProps, DialogTriggerProps, DialogPortalProps, DialogBackdropProps, DialogPopupProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogHeaderProps, DialogFooterProps, };
|
|
67
69
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAA;AAO/B,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAA;AAEnE,QAAA,MAAM,UAAU;YAAW,eAAe;;CAEzC,CAAA;AAQD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,GAAG;IAC1E,2BAA2B;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,iCAAiC;IACjC,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,aAAa;6CAA4C,kBAAkB;;CAOhF,CAAA;AAQD,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;AAEvE,QAAA,MAAM,YAAY;YAAW,iBAAiB;;CAE7C,CAAA;AAQD,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAA;AAE3E,QAAA,MAAM,cAAc;8BAA6B,mBAAmB;;CAYnE,CAAA;AAmCD,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG;IACtE,+BAA+B;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;CAC/C,CAAA;AAED,QAAA,MAAM,WAAW;oCAAmC,gBAAgB;;CAOnE,CAAA;AAQD,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAA;AAErE,QAAA,MAAM,WAAW;8BAA6B,gBAAgB;;CAO7D,CAAA;AAQD,KAAK,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,WAAW,CAAC,CAAA;AAEjF,QAAA,MAAM,iBAAiB;8BAA6B,sBAAsB;;CAEzE,CAAA;AAQD,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG;IACtE,2BAA2B;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,WAAW;6CAA4C,gBAAgB;;CAO5E,CAAA;AAQD,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,QAAA,MAAM,YAAY;8BAA6B,iBAAiB;;CAE/D,CAAA;AAQD,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,QAAA,MAAM,YAAY;8BAA6B,iBAAiB;;CAU/D,CAAA;AAQD,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,CAAA;AAED,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { Dialog as BaseDialog } from '@base-ui/react/dialog';
|
|
2
|
+
import { ButtonSize, ButtonVariant } from '../lib/button-variants';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
+
type DrawerRootProps = React.ComponentProps<typeof BaseDialog.Root>;
|
|
4
5
|
declare const DrawerRoot: {
|
|
5
6
|
(props: DrawerRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
displayName: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
type DrawerTriggerProps = React.ComponentProps<typeof BaseDialog.Trigger> & {
|
|
9
10
|
/** Visual style variant */
|
|
10
|
-
variant?:
|
|
11
|
+
variant?: ButtonVariant;
|
|
11
12
|
/** Size of the trigger button */
|
|
12
|
-
size?:
|
|
13
|
+
size?: ButtonSize;
|
|
13
14
|
};
|
|
14
15
|
declare const DrawerTrigger: {
|
|
15
16
|
({ className, variant, size, ...props }: DrawerTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
displayName: string;
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
type DrawerPortalProps = React.ComponentProps<typeof BaseDialog.Portal>;
|
|
19
20
|
declare const DrawerPortal: {
|
|
20
21
|
(props: DrawerPortalProps): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
displayName: string;
|
|
22
23
|
};
|
|
23
|
-
|
|
24
|
+
type DrawerBackdropProps = React.ComponentProps<typeof BaseDialog.Backdrop>;
|
|
24
25
|
declare const DrawerBackdrop: {
|
|
25
26
|
({ className, ...props }: DrawerBackdropProps): import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
displayName: string;
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
+
type DrawerPopupProps = React.ComponentProps<typeof BaseDialog.Popup> & {
|
|
29
30
|
/** Side from which the drawer slides in */
|
|
30
31
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
31
32
|
};
|
|
@@ -33,40 +34,41 @@ declare const DrawerPopup: {
|
|
|
33
34
|
({ className, side, ...props }: DrawerPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
displayName: string;
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
type DrawerTitleProps = React.ComponentProps<typeof BaseDialog.Title>;
|
|
37
38
|
declare const DrawerTitle: {
|
|
38
39
|
({ className, ...props }: DrawerTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
displayName: string;
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
type DrawerDescriptionProps = React.ComponentProps<typeof BaseDialog.Description>;
|
|
42
43
|
declare const DrawerDescription: {
|
|
43
44
|
({ className, ...props }: DrawerDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
44
45
|
displayName: string;
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
+
type DrawerCloseProps = React.ComponentProps<typeof BaseDialog.Close> & {
|
|
47
48
|
/** Visual style variant */
|
|
48
|
-
variant?:
|
|
49
|
+
variant?: ButtonVariant;
|
|
49
50
|
/** Size of the close button */
|
|
50
|
-
size?:
|
|
51
|
+
size?: ButtonSize;
|
|
51
52
|
};
|
|
52
53
|
declare const DrawerClose: {
|
|
53
54
|
({ className, variant, size, ...props }: DrawerCloseProps): import("react/jsx-runtime").JSX.Element;
|
|
54
55
|
displayName: string;
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
+
type DrawerHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
57
58
|
declare const DrawerHeader: {
|
|
58
59
|
({ className, ...props }: DrawerHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
59
60
|
displayName: string;
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
+
type DrawerContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
62
63
|
declare const DrawerContent: {
|
|
63
64
|
({ className, ...props }: DrawerContentProps): import("react/jsx-runtime").JSX.Element;
|
|
64
65
|
displayName: string;
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
+
type DrawerFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
67
68
|
declare const DrawerFooter: {
|
|
68
69
|
({ className, ...props }: DrawerFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
69
70
|
displayName: string;
|
|
70
71
|
};
|
|
71
72
|
export { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerBackdrop, DrawerPopup, DrawerTitle, DrawerDescription, DrawerClose, DrawerHeader, DrawerContent, DrawerFooter, };
|
|
73
|
+
export type { DrawerRootProps, DrawerTriggerProps, DrawerPortalProps, DrawerBackdropProps, DrawerPopupProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerContentProps, DrawerFooterProps, };
|
|
72
74
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAA;AAO/B,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAA;AAEnE,QAAA,MAAM,UAAU;YAAW,eAAe;;CAEzC,CAAA;AAQD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,GAAG;IAC1E,2BAA2B;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,iCAAiC;IACjC,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,aAAa;6CAA4C,kBAAkB;;CAOhF,CAAA;AAQD,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;AAEvE,QAAA,MAAM,YAAY;YAAW,iBAAiB;;CAE7C,CAAA;AAQD,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAA;AAE3E,QAAA,MAAM,cAAc;8BAA6B,mBAAmB;;CAYnE,CAAA;AA+CD,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG;IACtE,2CAA2C;IAC3C,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;CAC3C,CAAA;AAED,QAAA,MAAM,WAAW;oCAAmC,gBAAgB;;CAOnE,CAAA;AAQD,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAA;AAErE,QAAA,MAAM,WAAW;8BAA6B,gBAAgB;;CAO7D,CAAA;AAQD,KAAK,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,WAAW,CAAC,CAAA;AAEjF,QAAA,MAAM,iBAAiB;8BAA6B,sBAAsB;;CAEzE,CAAA;AAQD,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG;IACtE,2BAA2B;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,WAAW;6CAA4C,gBAAgB;;CAO5E,CAAA;AAQD,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,QAAA,MAAM,YAAY;8BAA6B,iBAAiB;;CAE/D,CAAA;AAQD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAE9D,QAAA,MAAM,aAAa;8BAA6B,kBAAkB;;CAEjE,CAAA;AAQD,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,QAAA,MAAM,YAAY;8BAA6B,iBAAiB;;CAE/D,CAAA;AAQD,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,CAAA;AAED,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,CAAA"}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { ScrollArea as BaseScrollArea } from '@base-ui/react/scroll-area';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
type ScrollAreaRootProps = React.ComponentProps<typeof BaseScrollArea.Root>;
|
|
4
4
|
declare const ScrollAreaRoot: {
|
|
5
5
|
({ className, ...props }: ScrollAreaRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type ScrollAreaViewportProps = React.ComponentProps<typeof BaseScrollArea.Viewport>;
|
|
9
9
|
declare const ScrollAreaViewport: {
|
|
10
10
|
({ className, ...props }: ScrollAreaViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type ScrollAreaContentProps = React.ComponentProps<typeof BaseScrollArea.Content>;
|
|
14
14
|
declare const ScrollAreaContent: {
|
|
15
15
|
({ className, ...props }: ScrollAreaContentProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
type ScrollAreaScrollbarProps = React.ComponentProps<typeof BaseScrollArea.Scrollbar>;
|
|
19
19
|
declare const ScrollAreaScrollbar: {
|
|
20
20
|
({ className, orientation, ...props }: ScrollAreaScrollbarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type ScrollAreaThumbProps = React.ComponentProps<typeof BaseScrollArea.Thumb>;
|
|
24
24
|
declare const ScrollAreaThumb: {
|
|
25
25
|
({ className, ...props }: ScrollAreaThumbProps): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
type ScrollAreaCornerProps = React.ComponentProps<typeof BaseScrollArea.Corner>;
|
|
29
29
|
declare const ScrollAreaCorner: {
|
|
30
30
|
({ className, ...props }: ScrollAreaCornerProps): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
export { ScrollAreaRoot, ScrollAreaViewport, ScrollAreaContent, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, };
|
|
34
|
+
export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaContentProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, };
|
|
34
35
|
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AACzE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AACzE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,CAAA;AAE3E,QAAA,MAAM,cAAc;8BAA6B,mBAAmB;;CAEnE,CAAA;AAID,KAAK,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEnF,QAAA,MAAM,kBAAkB;8BAA6B,uBAAuB;;CAO3E,CAAA;AAID,KAAK,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,CAAA;AAEjF,QAAA,MAAM,iBAAiB;8BAA6B,sBAAsB;;CAEzE,CAAA;AAID,KAAK,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,SAAS,CAAC,CAAA;AAErF,QAAA,MAAM,mBAAmB;2CAItB,wBAAwB;;CAc1B,CAAA;AAID,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAAA;AAE7E,QAAA,MAAM,eAAe;8BAA6B,oBAAoB;;CAWrE,CAAA;AAID,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAA;AAE/E,QAAA,MAAM,gBAAgB;8BAA6B,qBAAqB;;CAEvE,CAAA;AAID,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,CAAA;AAED,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GACtB,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Tabs as BaseTabs } from '@base-ui/react/tabs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
type TabsRootProps = React.ComponentProps<typeof BaseTabs.Root>;
|
|
4
4
|
declare const TabsRoot: {
|
|
5
5
|
({ className, ...props }: TabsRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type TabsListProps = React.ComponentProps<typeof BaseTabs.List> & {
|
|
9
9
|
/** Orientation of the tabs list */
|
|
10
10
|
orientation?: 'horizontal' | 'vertical';
|
|
11
11
|
};
|
|
@@ -13,7 +13,7 @@ declare const TabsList: {
|
|
|
13
13
|
({ className, orientation, ...props }: TabsListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type TabsTabProps = React.ComponentProps<typeof BaseTabs.Tab> & {
|
|
17
17
|
/** Size of the tab */
|
|
18
18
|
size?: 'sm' | 'default' | 'lg';
|
|
19
19
|
};
|
|
@@ -21,7 +21,7 @@ declare const TabsTab: {
|
|
|
21
21
|
({ className, size, ...props }: TabsTabProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type TabsIndicatorProps = React.ComponentProps<typeof BaseTabs.Indicator> & {
|
|
25
25
|
/** Orientation of the indicator (should match the tabs list orientation) */
|
|
26
26
|
orientation?: 'horizontal' | 'vertical';
|
|
27
27
|
};
|
|
@@ -29,10 +29,11 @@ declare const TabsIndicator: {
|
|
|
29
29
|
({ className, orientation, ...props }: TabsIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
type TabsPanelProps = React.ComponentProps<typeof BaseTabs.Panel>;
|
|
33
33
|
declare const TabsPanel: {
|
|
34
34
|
({ className, ...props }: TabsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
displayName: string;
|
|
36
36
|
};
|
|
37
37
|
export { TabsRoot, TabsList, TabsTab, TabsIndicator, TabsPanel };
|
|
38
|
+
export type { TabsRootProps, TabsListProps, TabsTabProps, TabsIndicatorProps, TabsPanelProps, };
|
|
38
39
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAA;AAE/D,QAAA,MAAM,QAAQ;8BAA6B,aAAa;;CAEvD,CAAA;AAuBD,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG;IAChE,mCAAmC;IACnC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;CACxC,CAAA;AAED,QAAA,MAAM,QAAQ;2CAAyD,aAAa;;CAOnF,CAAA;AAiCD,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG,CAAC,GAAG;IAC9D,sBAAsB;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,QAAA,MAAM,OAAO;oCAAmC,YAAY;;CAE3D,CAAA;AAyBD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,SAAS,CAAC,GAAG;IAC1E,4EAA4E;IAC5E,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;CACxC,CAAA;AAED,QAAA,MAAM,aAAa;2CAIhB,kBAAkB;;CAOpB,CAAA;AAQD,KAAK,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAA;AAEjE,QAAA,MAAM,SAAS;8BAA6B,cAAc;;CAWzD,CAAA;AAQD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,CAAA;AAEhE,YAAY,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,cAAc,GACf,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,11 @@ export { ScrollAreaRoot, ScrollAreaViewport, ScrollAreaContent, ScrollAreaScroll
|
|
|
3
3
|
export { TabsRoot, TabsList, TabsTab, TabsIndicator, TabsPanel } from './components/tabs';
|
|
4
4
|
export { DialogRoot, DialogTrigger, DialogPortal, DialogBackdrop, DialogPopup, DialogTitle, DialogDescription, DialogClose, DialogHeader, DialogFooter, } from './components/dialog';
|
|
5
5
|
export { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerBackdrop, DrawerPopup, DrawerTitle, DrawerDescription, DrawerClose, DrawerHeader, DrawerContent, DrawerFooter, } from './components/drawer';
|
|
6
|
+
export { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionPanel, } from './components/accordion';
|
|
7
|
+
export type { ButtonProps } from './components/button';
|
|
8
|
+
export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaContentProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, } from './components/scroll-area';
|
|
9
|
+
export type { TabsRootProps, TabsListProps, TabsTabProps, TabsIndicatorProps, TabsPanelProps, } from './components/tabs';
|
|
10
|
+
export type { DialogRootProps, DialogTriggerProps, DialogPortalProps, DialogBackdropProps, DialogPopupProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogHeaderProps, DialogFooterProps, } from './components/dialog';
|
|
11
|
+
export type { DrawerRootProps, DrawerTriggerProps, DrawerPortalProps, DrawerBackdropProps, DrawerPopupProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerContentProps, DrawerFooterProps, } from './components/drawer';
|
|
12
|
+
export type { AccordionRootProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionPanelProps, } from './components/accordion';
|
|
6
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzF,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzF,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,cAAc,GACf,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,wBAAwB,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,87 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Button as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ScrollArea as
|
|
9
|
-
import { Tabs as
|
|
10
|
-
import { Dialog as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
(r, t, n) => n ? n.toUpperCase() : t.toLowerCase()
|
|
14
|
-
), f = (e) => {
|
|
15
|
-
const r = C(e);
|
|
16
|
-
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
17
|
-
}, v = (...e) => e.filter((r, t, n) => !!r && r.trim() !== "" && n.indexOf(r) === t).join(" ").trim(), V = (e) => {
|
|
18
|
-
for (const r in e)
|
|
19
|
-
if (r.startsWith("aria-") || r === "role" || r === "title")
|
|
20
|
-
return !0;
|
|
21
|
-
};
|
|
22
|
-
var A = {
|
|
23
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
-
width: 24,
|
|
25
|
-
height: 24,
|
|
26
|
-
viewBox: "0 0 24 24",
|
|
27
|
-
fill: "none",
|
|
28
|
-
stroke: "currentColor",
|
|
29
|
-
strokeWidth: 2,
|
|
30
|
-
strokeLinecap: "round",
|
|
31
|
-
strokeLinejoin: "round"
|
|
32
|
-
};
|
|
33
|
-
const P = b(
|
|
34
|
-
({
|
|
35
|
-
color: e = "currentColor",
|
|
36
|
-
size: r = 24,
|
|
37
|
-
strokeWidth: t = 2,
|
|
38
|
-
absoluteStrokeWidth: n,
|
|
39
|
-
className: c = "",
|
|
40
|
-
children: l,
|
|
41
|
-
iconNode: g,
|
|
42
|
-
...p
|
|
43
|
-
}, y) => m(
|
|
44
|
-
"svg",
|
|
45
|
-
{
|
|
46
|
-
ref: y,
|
|
47
|
-
...A,
|
|
48
|
-
width: r,
|
|
49
|
-
height: r,
|
|
50
|
-
stroke: e,
|
|
51
|
-
strokeWidth: n ? Number(t) * 24 / Number(r) : t,
|
|
52
|
-
className: v("lucide", c),
|
|
53
|
-
...!l && !V(p) && { "aria-hidden": "true" },
|
|
54
|
-
...p
|
|
55
|
-
},
|
|
56
|
-
[
|
|
57
|
-
...g.map(([h, x]) => m(h, x)),
|
|
58
|
-
...Array.isArray(l) ? l : [l]
|
|
59
|
-
]
|
|
60
|
-
)
|
|
61
|
-
);
|
|
62
|
-
const S = (e, r) => {
|
|
63
|
-
const t = b(
|
|
64
|
-
({ className: n, ...c }, l) => m(P, {
|
|
65
|
-
ref: l,
|
|
66
|
-
iconNode: r,
|
|
67
|
-
className: v(
|
|
68
|
-
`lucide-${T(f(e))}`,
|
|
69
|
-
`lucide-${e}`,
|
|
70
|
-
n
|
|
71
|
-
),
|
|
72
|
-
...c
|
|
73
|
-
})
|
|
74
|
-
);
|
|
75
|
-
return t.displayName = f(e), t;
|
|
76
|
-
};
|
|
77
|
-
const R = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], B = S("loader-circle", R);
|
|
78
|
-
function o(...e) {
|
|
79
|
-
return z(k(e));
|
|
80
|
-
}
|
|
81
|
-
const j = i(
|
|
2
|
+
import { jsx as t, jsxs as m, Fragment as y } from "react/jsx-runtime";
|
|
3
|
+
import { Button as v } from "@base-ui/react/button";
|
|
4
|
+
import { LoaderCircle as N, ChevronDown as h } from "lucide-react";
|
|
5
|
+
import { cva as n } from "class-variance-authority";
|
|
6
|
+
import { clsx as x } from "clsx";
|
|
7
|
+
import { twMerge as w } from "tailwind-merge";
|
|
8
|
+
import { ScrollArea as l } from "@base-ui/react/scroll-area";
|
|
9
|
+
import { Tabs as d } from "@base-ui/react/tabs";
|
|
10
|
+
import { Dialog as i } from "@base-ui/react/dialog";
|
|
11
|
+
import { Accordion as c } from "@base-ui/react/accordion";
|
|
12
|
+
const u = n(
|
|
82
13
|
// Base styles
|
|
83
14
|
[
|
|
84
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-
|
|
15
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-80 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
85
16
|
],
|
|
86
17
|
{
|
|
87
18
|
variants: {
|
|
@@ -107,76 +38,80 @@ const j = i(
|
|
|
107
38
|
size: "default"
|
|
108
39
|
}
|
|
109
40
|
}
|
|
110
|
-
)
|
|
41
|
+
);
|
|
42
|
+
function r(...e) {
|
|
43
|
+
return w(x(e));
|
|
44
|
+
}
|
|
45
|
+
const D = ({
|
|
111
46
|
className: e,
|
|
112
|
-
variant:
|
|
113
|
-
size:
|
|
114
|
-
loading:
|
|
115
|
-
loadingText:
|
|
116
|
-
disabled:
|
|
47
|
+
variant: a,
|
|
48
|
+
size: o,
|
|
49
|
+
loading: s = !1,
|
|
50
|
+
loadingText: p,
|
|
51
|
+
disabled: f,
|
|
117
52
|
children: g,
|
|
118
|
-
...
|
|
119
|
-
}) => /* @__PURE__ */
|
|
120
|
-
|
|
53
|
+
...b
|
|
54
|
+
}) => /* @__PURE__ */ t(
|
|
55
|
+
v,
|
|
121
56
|
{
|
|
122
|
-
className:
|
|
123
|
-
disabled:
|
|
124
|
-
...
|
|
125
|
-
children:
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
|
|
57
|
+
className: r(u({ variant: a, size: o }), e),
|
|
58
|
+
disabled: f || s,
|
|
59
|
+
...b,
|
|
60
|
+
children: s ? /* @__PURE__ */ m(y, { children: [
|
|
61
|
+
/* @__PURE__ */ t(N, { className: "animate-spin" }),
|
|
62
|
+
p ?? g
|
|
128
63
|
] }) : g
|
|
129
64
|
}
|
|
130
65
|
);
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
const
|
|
135
|
-
|
|
66
|
+
D.displayName = "Button";
|
|
67
|
+
const T = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Root, { className: r("relative", e), ...a });
|
|
68
|
+
T.displayName = "ScrollAreaRoot";
|
|
69
|
+
const k = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
70
|
+
l.Viewport,
|
|
136
71
|
{
|
|
137
|
-
className:
|
|
138
|
-
...
|
|
72
|
+
className: r("h-full overscroll-contain pr-3", e),
|
|
73
|
+
...a
|
|
139
74
|
}
|
|
140
75
|
);
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
const
|
|
76
|
+
k.displayName = "ScrollAreaViewport";
|
|
77
|
+
const A = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Content, { className: r("min-w-full", e), ...a });
|
|
78
|
+
A.displayName = "ScrollAreaContent";
|
|
79
|
+
const z = ({
|
|
145
80
|
className: e,
|
|
146
|
-
orientation:
|
|
147
|
-
...
|
|
148
|
-
}) => /* @__PURE__ */
|
|
149
|
-
|
|
81
|
+
orientation: a = "vertical",
|
|
82
|
+
...o
|
|
83
|
+
}) => /* @__PURE__ */ t(
|
|
84
|
+
l.Scrollbar,
|
|
150
85
|
{
|
|
151
|
-
className:
|
|
86
|
+
className: r(
|
|
152
87
|
"flex touch-none select-none p-0.5 transition-colors duration-150 ease-out",
|
|
153
88
|
"data-hovering:bg-muted/50",
|
|
154
|
-
|
|
155
|
-
|
|
89
|
+
a === "vertical" && "h-full w-2.5",
|
|
90
|
+
a === "horizontal" && "h-2.5 w-full flex-col",
|
|
156
91
|
e
|
|
157
92
|
),
|
|
158
|
-
orientation:
|
|
159
|
-
...
|
|
93
|
+
orientation: a,
|
|
94
|
+
...o
|
|
160
95
|
}
|
|
161
96
|
);
|
|
162
|
-
|
|
163
|
-
const
|
|
164
|
-
|
|
97
|
+
z.displayName = "ScrollAreaScrollbar";
|
|
98
|
+
const P = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
99
|
+
l.Thumb,
|
|
165
100
|
{
|
|
166
|
-
className:
|
|
101
|
+
className: r(
|
|
167
102
|
"relative flex-1 rounded-full bg-border transition-colors",
|
|
168
103
|
"hover:bg-muted-foreground/50",
|
|
169
104
|
e
|
|
170
105
|
),
|
|
171
|
-
...
|
|
106
|
+
...a
|
|
172
107
|
}
|
|
173
108
|
);
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
const
|
|
109
|
+
P.displayName = "ScrollAreaThumb";
|
|
110
|
+
const C = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Corner, { className: r("bg-muted/50", e), ...a });
|
|
111
|
+
C.displayName = "ScrollAreaCorner";
|
|
112
|
+
const S = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Root, { className: r("flex flex-col", e), ...a });
|
|
113
|
+
S.displayName = "TabsRoot";
|
|
114
|
+
const R = n(
|
|
180
115
|
["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
|
|
181
116
|
{
|
|
182
117
|
variants: {
|
|
@@ -189,15 +124,15 @@ const W = i(
|
|
|
189
124
|
orientation: "horizontal"
|
|
190
125
|
}
|
|
191
126
|
}
|
|
192
|
-
),
|
|
193
|
-
|
|
127
|
+
), V = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
|
|
128
|
+
d.List,
|
|
194
129
|
{
|
|
195
|
-
className:
|
|
196
|
-
...
|
|
130
|
+
className: r(R({ orientation: a }), e),
|
|
131
|
+
...o
|
|
197
132
|
}
|
|
198
133
|
);
|
|
199
|
-
|
|
200
|
-
const
|
|
134
|
+
V.displayName = "TabsList";
|
|
135
|
+
const B = n(
|
|
201
136
|
[
|
|
202
137
|
"relative z-10 inline-flex items-center justify-center whitespace-nowrap",
|
|
203
138
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
@@ -220,9 +155,9 @@ const E = i(
|
|
|
220
155
|
size: "default"
|
|
221
156
|
}
|
|
222
157
|
}
|
|
223
|
-
),
|
|
224
|
-
|
|
225
|
-
const
|
|
158
|
+
), H = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(d.Tab, { className: r(B({ size: a }), e), ...o });
|
|
159
|
+
H.displayName = "TabsTab";
|
|
160
|
+
const I = n(
|
|
226
161
|
["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
|
|
227
162
|
{
|
|
228
163
|
variants: {
|
|
@@ -235,82 +170,56 @@ const O = i(
|
|
|
235
170
|
orientation: "horizontal"
|
|
236
171
|
}
|
|
237
172
|
}
|
|
238
|
-
),
|
|
173
|
+
), j = ({
|
|
239
174
|
className: e,
|
|
240
|
-
orientation:
|
|
241
|
-
...
|
|
242
|
-
}) => /* @__PURE__ */
|
|
243
|
-
|
|
175
|
+
orientation: a = "horizontal",
|
|
176
|
+
...o
|
|
177
|
+
}) => /* @__PURE__ */ t(
|
|
178
|
+
d.Indicator,
|
|
244
179
|
{
|
|
245
|
-
className:
|
|
246
|
-
...
|
|
180
|
+
className: r(I({ orientation: a }), e),
|
|
181
|
+
...o
|
|
247
182
|
}
|
|
248
183
|
);
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
|
|
184
|
+
j.displayName = "TabsIndicator";
|
|
185
|
+
const F = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
186
|
+
d.Panel,
|
|
252
187
|
{
|
|
253
|
-
className:
|
|
188
|
+
className: r(
|
|
254
189
|
"mt-2 ring-offset-background",
|
|
255
190
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
256
191
|
e
|
|
257
192
|
),
|
|
258
|
-
...
|
|
193
|
+
...a
|
|
259
194
|
}
|
|
260
195
|
);
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium",
|
|
267
|
-
"transition-all",
|
|
268
|
-
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
269
|
-
"disabled:pointer-events-none disabled:opacity-50"
|
|
270
|
-
],
|
|
196
|
+
F.displayName = "TabsPanel";
|
|
197
|
+
const L = (e) => /* @__PURE__ */ t(i.Root, { ...e });
|
|
198
|
+
L.displayName = "DialogRoot";
|
|
199
|
+
const _ = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
200
|
+
i.Trigger,
|
|
271
201
|
{
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
275
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
276
|
-
outline: "border border-border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
277
|
-
ghost: "hover:bg-accent hover:text-accent-foreground"
|
|
278
|
-
},
|
|
279
|
-
size: {
|
|
280
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
281
|
-
default: "h-9 px-4 py-2",
|
|
282
|
-
lg: "h-10 rounded-md px-6"
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
defaultVariants: {
|
|
286
|
-
variant: "default",
|
|
287
|
-
size: "default"
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
), X = ({ className: e, variant: r, size: t, ...n }) => /* @__PURE__ */ a(
|
|
291
|
-
s.Trigger,
|
|
292
|
-
{
|
|
293
|
-
className: o(Q({ variant: r, size: t }), e),
|
|
294
|
-
...n
|
|
202
|
+
className: r(u({ variant: a, size: o }), e),
|
|
203
|
+
...s
|
|
295
204
|
}
|
|
296
205
|
);
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
|
|
206
|
+
_.displayName = "DialogTrigger";
|
|
207
|
+
const M = (e) => /* @__PURE__ */ t(i.Portal, { ...e });
|
|
208
|
+
M.displayName = "DialogPortal";
|
|
209
|
+
const $ = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
210
|
+
i.Backdrop,
|
|
302
211
|
{
|
|
303
|
-
className:
|
|
212
|
+
className: r(
|
|
304
213
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
305
214
|
"transition-opacity duration-200",
|
|
306
215
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
307
216
|
e
|
|
308
217
|
),
|
|
309
|
-
...
|
|
218
|
+
...a
|
|
310
219
|
}
|
|
311
220
|
);
|
|
312
|
-
|
|
313
|
-
const
|
|
221
|
+
$.displayName = "DialogBackdrop";
|
|
222
|
+
const q = n(
|
|
314
223
|
[
|
|
315
224
|
"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
|
|
316
225
|
"w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
@@ -335,126 +244,71 @@ const re = i(
|
|
|
335
244
|
size: "default"
|
|
336
245
|
}
|
|
337
246
|
}
|
|
338
|
-
),
|
|
339
|
-
|
|
247
|
+
), E = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
|
|
248
|
+
i.Popup,
|
|
340
249
|
{
|
|
341
|
-
className:
|
|
342
|
-
...
|
|
250
|
+
className: r(q({ size: a }), e),
|
|
251
|
+
...o
|
|
343
252
|
}
|
|
344
253
|
);
|
|
345
|
-
|
|
346
|
-
const
|
|
347
|
-
|
|
254
|
+
E.displayName = "DialogPopup";
|
|
255
|
+
const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
256
|
+
i.Title,
|
|
348
257
|
{
|
|
349
|
-
className:
|
|
350
|
-
...
|
|
258
|
+
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
259
|
+
...a
|
|
351
260
|
}
|
|
352
261
|
);
|
|
353
|
-
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
const
|
|
357
|
-
|
|
358
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium",
|
|
359
|
-
"transition-all",
|
|
360
|
-
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
361
|
-
"disabled:pointer-events-none disabled:opacity-50"
|
|
362
|
-
],
|
|
363
|
-
{
|
|
364
|
-
variants: {
|
|
365
|
-
variant: {
|
|
366
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
367
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
368
|
-
outline: "border border-border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
369
|
-
ghost: "hover:bg-accent hover:text-accent-foreground"
|
|
370
|
-
},
|
|
371
|
-
size: {
|
|
372
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
373
|
-
default: "h-9 px-4 py-2",
|
|
374
|
-
lg: "h-10 rounded-md px-6"
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
defaultVariants: {
|
|
378
|
-
variant: "outline",
|
|
379
|
-
size: "default"
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
), se = ({ className: e, variant: r, size: t, ...n }) => /* @__PURE__ */ a(
|
|
383
|
-
s.Close,
|
|
262
|
+
G.displayName = "DialogTitle";
|
|
263
|
+
const J = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Description, { className: r("mt-2", e), ...a });
|
|
264
|
+
J.displayName = "DialogDescription";
|
|
265
|
+
const K = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
266
|
+
i.Close,
|
|
384
267
|
{
|
|
385
|
-
className:
|
|
386
|
-
...
|
|
268
|
+
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
269
|
+
...s
|
|
387
270
|
}
|
|
388
271
|
);
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
const
|
|
272
|
+
K.displayName = "DialogClose";
|
|
273
|
+
const O = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
|
|
274
|
+
O.displayName = "DialogHeader";
|
|
275
|
+
const Q = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
393
276
|
"div",
|
|
394
277
|
{
|
|
395
|
-
className:
|
|
278
|
+
className: r(
|
|
396
279
|
"mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
397
280
|
e
|
|
398
281
|
),
|
|
399
|
-
...
|
|
282
|
+
...a
|
|
400
283
|
}
|
|
401
284
|
);
|
|
402
|
-
|
|
403
|
-
const
|
|
404
|
-
|
|
405
|
-
const
|
|
406
|
-
|
|
407
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium",
|
|
408
|
-
"transition-all",
|
|
409
|
-
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
410
|
-
"disabled:pointer-events-none disabled:opacity-50"
|
|
411
|
-
],
|
|
285
|
+
Q.displayName = "DialogFooter";
|
|
286
|
+
const U = (e) => /* @__PURE__ */ t(i.Root, { ...e });
|
|
287
|
+
U.displayName = "DrawerRoot";
|
|
288
|
+
const W = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
289
|
+
i.Trigger,
|
|
412
290
|
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
416
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
417
|
-
outline: "border border-border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
418
|
-
ghost: "hover:bg-accent hover:text-accent-foreground"
|
|
419
|
-
},
|
|
420
|
-
size: {
|
|
421
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
422
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
423
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
424
|
-
icon: "size-9",
|
|
425
|
-
"icon-sm": "size-8",
|
|
426
|
-
"icon-lg": "size-10"
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
defaultVariants: {
|
|
430
|
-
variant: "default",
|
|
431
|
-
size: "default"
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
), ue = ({ className: e, variant: r, size: t, ...n }) => /* @__PURE__ */ a(
|
|
435
|
-
s.Trigger,
|
|
436
|
-
{
|
|
437
|
-
className: o(ce({ variant: r, size: t }), e),
|
|
438
|
-
...n
|
|
291
|
+
className: r(u({ variant: a, size: o }), e),
|
|
292
|
+
...s
|
|
439
293
|
}
|
|
440
294
|
);
|
|
441
|
-
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
const
|
|
445
|
-
|
|
295
|
+
W.displayName = "DrawerTrigger";
|
|
296
|
+
const X = (e) => /* @__PURE__ */ t(i.Portal, { ...e });
|
|
297
|
+
X.displayName = "DrawerPortal";
|
|
298
|
+
const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
299
|
+
i.Backdrop,
|
|
446
300
|
{
|
|
447
|
-
className:
|
|
301
|
+
className: r(
|
|
448
302
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
449
303
|
"transition-opacity duration-300",
|
|
450
304
|
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
451
305
|
e
|
|
452
306
|
),
|
|
453
|
-
...
|
|
307
|
+
...a
|
|
454
308
|
}
|
|
455
309
|
);
|
|
456
|
-
|
|
457
|
-
const
|
|
310
|
+
Y.displayName = "DrawerBackdrop";
|
|
311
|
+
const Z = n(
|
|
458
312
|
[
|
|
459
313
|
"fixed z-50 flex flex-col bg-background p-6 shadow-lg",
|
|
460
314
|
"outline-none",
|
|
@@ -491,99 +345,117 @@ const me = i(
|
|
|
491
345
|
side: "right"
|
|
492
346
|
}
|
|
493
347
|
}
|
|
494
|
-
),
|
|
495
|
-
|
|
348
|
+
), ee = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
|
|
349
|
+
i.Popup,
|
|
496
350
|
{
|
|
497
|
-
className:
|
|
498
|
-
...
|
|
351
|
+
className: r(Z({ side: a }), e),
|
|
352
|
+
...o
|
|
499
353
|
}
|
|
500
354
|
);
|
|
501
|
-
|
|
502
|
-
const
|
|
503
|
-
|
|
355
|
+
ee.displayName = "DrawerPopup";
|
|
356
|
+
const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
357
|
+
i.Title,
|
|
504
358
|
{
|
|
505
|
-
className:
|
|
506
|
-
...
|
|
359
|
+
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
360
|
+
...a
|
|
507
361
|
}
|
|
508
362
|
);
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
|
|
514
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium",
|
|
515
|
-
"transition-all",
|
|
516
|
-
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
517
|
-
"disabled:pointer-events-none disabled:opacity-50"
|
|
518
|
-
],
|
|
363
|
+
ae.displayName = "DrawerTitle";
|
|
364
|
+
const te = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Description, { className: r("", e), ...a });
|
|
365
|
+
te.displayName = "DrawerDescription";
|
|
366
|
+
const re = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
|
|
367
|
+
i.Close,
|
|
519
368
|
{
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
523
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
524
|
-
outline: "border border-border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
525
|
-
ghost: "hover:bg-accent hover:text-accent-foreground"
|
|
526
|
-
},
|
|
527
|
-
size: {
|
|
528
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
529
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
530
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
531
|
-
icon: "size-9",
|
|
532
|
-
"icon-sm": "size-8",
|
|
533
|
-
"icon-lg": "size-10"
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
defaultVariants: {
|
|
537
|
-
variant: "outline",
|
|
538
|
-
size: "default"
|
|
539
|
-
}
|
|
369
|
+
className: r(u({ variant: a ?? "outline", size: o }), e),
|
|
370
|
+
...s
|
|
540
371
|
}
|
|
541
|
-
)
|
|
542
|
-
|
|
372
|
+
);
|
|
373
|
+
re.displayName = "DrawerClose";
|
|
374
|
+
const oe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
|
|
375
|
+
oe.displayName = "DrawerHeader";
|
|
376
|
+
const ie = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
|
|
377
|
+
ie.displayName = "DrawerContent";
|
|
378
|
+
const se = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
|
|
379
|
+
se.displayName = "DrawerFooter";
|
|
380
|
+
const ne = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Root, { className: r("w-full", e), ...a });
|
|
381
|
+
ne.displayName = "AccordionRoot";
|
|
382
|
+
const le = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
383
|
+
c.Item,
|
|
384
|
+
{
|
|
385
|
+
className: r("border-b border-border last:border-b-0", e),
|
|
386
|
+
...a
|
|
387
|
+
}
|
|
388
|
+
);
|
|
389
|
+
le.displayName = "AccordionItem";
|
|
390
|
+
const de = ({ className: e, ...a }) => /* @__PURE__ */ t(c.Header, { className: r("flex", e), ...a });
|
|
391
|
+
de.displayName = "AccordionHeader";
|
|
392
|
+
const ce = ({ className: e, children: a, ...o }) => /* @__PURE__ */ m(
|
|
393
|
+
c.Trigger,
|
|
394
|
+
{
|
|
395
|
+
className: r(
|
|
396
|
+
"flex flex-1 items-center justify-between py-3 font-medium",
|
|
397
|
+
"transition-all duration-200",
|
|
398
|
+
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
399
|
+
"data-disabled:pointer-events-none data-disabled:opacity-80",
|
|
400
|
+
"[&[data-panel-open]_svg:last-child]:rotate-180",
|
|
401
|
+
e
|
|
402
|
+
),
|
|
403
|
+
...o,
|
|
404
|
+
children: [
|
|
405
|
+
a,
|
|
406
|
+
/* @__PURE__ */ t(h, { className: "h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
ce.displayName = "AccordionTrigger";
|
|
411
|
+
const ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
412
|
+
c.Panel,
|
|
543
413
|
{
|
|
544
|
-
className:
|
|
545
|
-
|
|
414
|
+
className: r(
|
|
415
|
+
"overflow-hidden duration-200 h-(--accordion-panel-height) transition-height ease-out data-ending-style:h-0 data-starting-style:h-0",
|
|
416
|
+
e
|
|
417
|
+
),
|
|
418
|
+
...a
|
|
546
419
|
}
|
|
547
420
|
);
|
|
548
|
-
|
|
549
|
-
const xe = ({ className: e, ...r }) => /* @__PURE__ */ a("div", { className: o("flex flex-col space-y-1.5", e), ...r });
|
|
550
|
-
xe.displayName = "Drawer.Header";
|
|
551
|
-
const we = ({ className: e, ...r }) => /* @__PURE__ */ a("div", { className: o("py-5", e), ...r });
|
|
552
|
-
we.displayName = "Drawer.Content";
|
|
553
|
-
const Ne = ({ className: e, ...r }) => /* @__PURE__ */ a("div", { className: o("", e), ...r });
|
|
554
|
-
Ne.displayName = "Drawer.Footer";
|
|
421
|
+
ue.displayName = "AccordionPanel";
|
|
555
422
|
export {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
J as
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
423
|
+
de as AccordionHeader,
|
|
424
|
+
le as AccordionItem,
|
|
425
|
+
ue as AccordionPanel,
|
|
426
|
+
ne as AccordionRoot,
|
|
427
|
+
ce as AccordionTrigger,
|
|
428
|
+
D as Button,
|
|
429
|
+
$ as DialogBackdrop,
|
|
430
|
+
K as DialogClose,
|
|
431
|
+
J as DialogDescription,
|
|
432
|
+
Q as DialogFooter,
|
|
433
|
+
O as DialogHeader,
|
|
434
|
+
E as DialogPopup,
|
|
435
|
+
M as DialogPortal,
|
|
436
|
+
L as DialogRoot,
|
|
437
|
+
G as DialogTitle,
|
|
438
|
+
_ as DialogTrigger,
|
|
439
|
+
Y as DrawerBackdrop,
|
|
440
|
+
re as DrawerClose,
|
|
441
|
+
ie as DrawerContent,
|
|
442
|
+
te as DrawerDescription,
|
|
443
|
+
se as DrawerFooter,
|
|
444
|
+
oe as DrawerHeader,
|
|
445
|
+
ee as DrawerPopup,
|
|
446
|
+
X as DrawerPortal,
|
|
447
|
+
U as DrawerRoot,
|
|
448
|
+
ae as DrawerTitle,
|
|
449
|
+
W as DrawerTrigger,
|
|
450
|
+
A as ScrollAreaContent,
|
|
451
|
+
C as ScrollAreaCorner,
|
|
452
|
+
T as ScrollAreaRoot,
|
|
453
|
+
z as ScrollAreaScrollbar,
|
|
454
|
+
P as ScrollAreaThumb,
|
|
455
|
+
k as ScrollAreaViewport,
|
|
456
|
+
j as TabsIndicator,
|
|
457
|
+
V as TabsList,
|
|
458
|
+
F as TabsPanel,
|
|
459
|
+
S as TabsRoot,
|
|
460
|
+
H as TabsTab
|
|
589
461
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ButtonVariant = 'default' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';
|
|
2
|
+
export type ButtonSize = 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg';
|
|
3
|
+
export declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
//# sourceMappingURL=button-variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-variants.d.ts","sourceRoot":"","sources":["../../src/lib/button-variants.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,MAAM,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;AAEjF,eAAO,MAAM,cAAc;;;8EA+B1B,CAAA"}
|
package/dist/styles/default.css
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--color-accent: var(--accent);
|
|
18
18
|
--color-accent-foreground: var(--accent-foreground);
|
|
19
19
|
--color-destructive: var(--destructive);
|
|
20
|
+
--color-input: var(--input);
|
|
20
21
|
--color-border: var(--border);
|
|
21
22
|
--color-ring: var(--ring);
|
|
22
23
|
}
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
--accent-foreground: oklch(0.205 0 0);
|
|
36
37
|
--destructive: oklch(0.577 0.245 27.325);
|
|
37
38
|
--border: oklch(0.922 0 0);
|
|
39
|
+
--input: oklch(0.922 0 0);
|
|
38
40
|
--ring: oklch(0.708 0 0);
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
--accent-foreground: oklch(0.985 0 0);
|
|
52
54
|
--destructive: oklch(0.704 0.191 22.216);
|
|
53
55
|
--border: oklch(1 0 0 / 10%);
|
|
56
|
+
--input: oklch(1 0 0 / 15%);
|
|
54
57
|
--ring: oklch(0.556 0 0);
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -67,7 +70,18 @@
|
|
|
67
70
|
--accent: oklch(0.269 0 0);
|
|
68
71
|
--accent-foreground: oklch(0.985 0 0);
|
|
69
72
|
--destructive: oklch(0.704 0.191 22.216);
|
|
73
|
+
--input: oklch(1 0 0 / 15%);
|
|
70
74
|
--border: oklch(1 0 0 / 10%);
|
|
71
75
|
--ring: oklch(0.556 0 0);
|
|
72
76
|
}
|
|
73
77
|
}
|
|
78
|
+
|
|
79
|
+
@media (prefers-reduced-motion: reduce) {
|
|
80
|
+
*,
|
|
81
|
+
*::before,
|
|
82
|
+
*::after {
|
|
83
|
+
animation-duration: 0.01ms !important;
|
|
84
|
+
animation-iteration-count: 1 !important;
|
|
85
|
+
transition-duration: 0.01ms !important;
|
|
86
|
+
}
|
|
87
|
+
}
|