@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.
@@ -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 ButtonVariant = 'default' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';
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;AAG5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,aAAa,GACd,SAAS,GACT,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,MAAM,CAAA;AACV,KAAK,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAAA;AAmClD,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAClE,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"}
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
- export type DialogRootProps = React.ComponentProps<typeof BaseDialog.Root>;
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
- export type DialogTriggerProps = React.ComponentProps<typeof BaseDialog.Trigger> & {
9
+ type DialogTriggerProps = React.ComponentProps<typeof BaseDialog.Trigger> & {
9
10
  /** Visual style variant */
10
- variant?: 'default' | 'secondary' | 'outline' | 'ghost';
11
+ variant?: ButtonVariant;
11
12
  /** Size of the trigger button */
12
- size?: 'sm' | 'default' | 'lg';
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
- export type DialogPortalProps = React.ComponentProps<typeof BaseDialog.Portal>;
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
- export type DialogBackdropProps = React.ComponentProps<typeof BaseDialog.Backdrop>;
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
- export type DialogPopupProps = React.ComponentProps<typeof BaseDialog.Popup> & {
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
- export type DialogTitleProps = React.ComponentProps<typeof BaseDialog.Title>;
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
- export type DialogDescriptionProps = React.ComponentProps<typeof BaseDialog.Description>;
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
- export type DialogCloseProps = React.ComponentProps<typeof BaseDialog.Close> & {
47
+ type DialogCloseProps = React.ComponentProps<typeof BaseDialog.Close> & {
47
48
  /** Visual style variant */
48
- variant?: 'default' | 'secondary' | 'outline' | 'ghost';
49
+ variant?: ButtonVariant;
49
50
  /** Size of the close button */
50
- size?: 'sm' | 'default' | 'lg';
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
- export type DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;
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
- export type DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
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;AAQ9B,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAA;AAE1E,QAAA,MAAM,UAAU;YAAW,eAAe;;CAEzC,CAAA;AAqCD,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,GAAG;IACjF,2BAA2B;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAA;IACvD,iCAAiC;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,QAAA,MAAM,aAAa;6CAA4C,kBAAkB;;CAOhF,CAAA;AAQD,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAA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B,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
- export type DrawerRootProps = React.ComponentProps<typeof BaseDialog.Root>;
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
- export type DrawerTriggerProps = React.ComponentProps<typeof BaseDialog.Trigger> & {
9
+ type DrawerTriggerProps = React.ComponentProps<typeof BaseDialog.Trigger> & {
9
10
  /** Visual style variant */
10
- variant?: 'default' | 'secondary' | 'outline' | 'ghost';
11
+ variant?: ButtonVariant;
11
12
  /** Size of the trigger button */
12
- size?: 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg';
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
- export type DrawerPortalProps = React.ComponentProps<typeof BaseDialog.Portal>;
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
- export type DrawerBackdropProps = React.ComponentProps<typeof BaseDialog.Backdrop>;
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
- export type DrawerPopupProps = React.ComponentProps<typeof BaseDialog.Popup> & {
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
- export type DrawerTitleProps = React.ComponentProps<typeof BaseDialog.Title>;
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
- export type DrawerDescriptionProps = React.ComponentProps<typeof BaseDialog.Description>;
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
- export type DrawerCloseProps = React.ComponentProps<typeof BaseDialog.Close> & {
47
+ type DrawerCloseProps = React.ComponentProps<typeof BaseDialog.Close> & {
47
48
  /** Visual style variant */
48
- variant?: 'default' | 'secondary' | 'outline' | 'ghost';
49
+ variant?: ButtonVariant;
49
50
  /** Size of the close button */
50
- size?: 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg';
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
- export type DrawerHeaderProps = React.HTMLAttributes<HTMLDivElement>;
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
- export type DrawerContentProps = React.HTMLAttributes<HTMLDivElement>;
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
- export type DrawerFooterProps = React.HTMLAttributes<HTMLDivElement>;
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;AAQ9B,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAA;AAE1E,QAAA,MAAM,UAAU;YAAW,eAAe;;CAEzC,CAAA;AAwCD,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,GAAG;IACjF,2BAA2B;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAA;IACvD,iCAAiC;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,S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6B,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
- export type ScrollAreaRootProps = React.ComponentProps<typeof BaseScrollArea.Root>;
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
- export type ScrollAreaViewportProps = React.ComponentProps<typeof BaseScrollArea.Viewport>;
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
- export type ScrollAreaContentProps = React.ComponentProps<typeof BaseScrollArea.Content>;
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
- export type ScrollAreaScrollbarProps = React.ComponentProps<typeof BaseScrollArea.Scrollbar>;
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
- export type ScrollAreaThumbProps = React.ComponentProps<typeof BaseScrollArea.Thumb>;
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
- export type ScrollAreaCornerProps = React.ComponentProps<typeof BaseScrollArea.Corner>;
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,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cA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AA,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
- export type TabsRootProps = React.ComponentProps<typeof BaseTabs.Root>;
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
- export type TabsListProps = React.ComponentProps<typeof BaseTabs.List> & {
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
- export type TabsTabProps = React.ComponentProps<typeof BaseTabs.Tab> & {
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
- export type TabsIndicatorProps = React.ComponentProps<typeof BaseTabs.Indicator> & {
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
- export type TabsPanelProps = React.ComponentProps<typeof BaseTabs.Panel>;
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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ACf,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
@@ -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 a, jsxs as w, Fragment as N } from "react/jsx-runtime";
3
- import { Button as D } from "@base-ui/react/button";
4
- import { cva as i } from "class-variance-authority";
5
- import { clsx as k } from "clsx";
6
- import { twMerge as z } from "tailwind-merge";
7
- import { forwardRef as b, createElement as m } from "react";
8
- import { ScrollArea as d } from "@base-ui/react/scroll-area";
9
- import { Tabs as u } from "@base-ui/react/tabs";
10
- import { Dialog as s } from "@base-ui/react/dialog";
11
- const T = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => e.replace(
12
- /^([A-Z])|[\s-_]+(\w)/g,
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-50 [&_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"
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
- ), L = ({
41
+ );
42
+ function r(...e) {
43
+ return w(x(e));
44
+ }
45
+ const D = ({
111
46
  className: e,
112
- variant: r,
113
- size: t,
114
- loading: n = !1,
115
- loadingText: c,
116
- disabled: l,
47
+ variant: a,
48
+ size: o,
49
+ loading: s = !1,
50
+ loadingText: p,
51
+ disabled: f,
117
52
  children: g,
118
- ...p
119
- }) => /* @__PURE__ */ a(
120
- D,
53
+ ...b
54
+ }) => /* @__PURE__ */ t(
55
+ v,
121
56
  {
122
- className: o(j({ variant: r, size: t }), e),
123
- disabled: l || n,
124
- ...p,
125
- children: n ? /* @__PURE__ */ w(N, { children: [
126
- /* @__PURE__ */ a(B, { className: "animate-spin" }),
127
- c ?? g
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
- L.displayName = "Button";
132
- const I = ({ className: e, ...r }) => /* @__PURE__ */ a(d.Root, { className: o("relative", e), ...r });
133
- I.displayName = "ScrollArea.Root";
134
- const _ = ({ className: e, ...r }) => /* @__PURE__ */ a(
135
- d.Viewport,
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: o("h-full overscroll-contain pr-3", e),
138
- ...r
72
+ className: r("h-full overscroll-contain pr-3", e),
73
+ ...a
139
74
  }
140
75
  );
141
- _.displayName = "ScrollArea.Viewport";
142
- const F = ({ className: e, ...r }) => /* @__PURE__ */ a(d.Content, { className: o("min-w-full", e), ...r });
143
- F.displayName = "ScrollArea.Content";
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: r = "vertical",
147
- ...t
148
- }) => /* @__PURE__ */ a(
149
- d.Scrollbar,
81
+ orientation: a = "vertical",
82
+ ...o
83
+ }) => /* @__PURE__ */ t(
84
+ l.Scrollbar,
150
85
  {
151
- className: o(
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
- r === "vertical" && "h-full w-2.5",
155
- r === "horizontal" && "h-2.5 w-full flex-col",
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: r,
159
- ...t
93
+ orientation: a,
94
+ ...o
160
95
  }
161
96
  );
162
- $.displayName = "ScrollArea.Scrollbar";
163
- const H = ({ className: e, ...r }) => /* @__PURE__ */ a(
164
- d.Thumb,
97
+ z.displayName = "ScrollAreaScrollbar";
98
+ const P = ({ className: e, ...a }) => /* @__PURE__ */ t(
99
+ l.Thumb,
165
100
  {
166
- className: o(
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
- ...r
106
+ ...a
172
107
  }
173
108
  );
174
- H.displayName = "ScrollArea.Thumb";
175
- const M = ({ className: e, ...r }) => /* @__PURE__ */ a(d.Corner, { className: o("bg-muted/50", e), ...r });
176
- M.displayName = "ScrollArea.Corner";
177
- const U = ({ className: e, ...r }) => /* @__PURE__ */ a(u.Root, { className: o("flex flex-col", e), ...r });
178
- U.displayName = "Tabs.Root";
179
- const W = i(
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
- ), Z = ({ className: e, orientation: r = "horizontal", ...t }) => /* @__PURE__ */ a(
193
- u.List,
127
+ ), V = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
128
+ d.List,
194
129
  {
195
- className: o(W({ orientation: r }), e),
196
- ...t
130
+ className: r(R({ orientation: a }), e),
131
+ ...o
197
132
  }
198
133
  );
199
- Z.displayName = "Tabs.List";
200
- const E = i(
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
- ), K = ({ className: e, size: r, ...t }) => /* @__PURE__ */ a(u.Tab, { className: o(E({ size: r }), e), ...t });
224
- K.displayName = "Tabs.Tab";
225
- const O = i(
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
- ), q = ({
173
+ ), j = ({
239
174
  className: e,
240
- orientation: r = "horizontal",
241
- ...t
242
- }) => /* @__PURE__ */ a(
243
- u.Indicator,
175
+ orientation: a = "horizontal",
176
+ ...o
177
+ }) => /* @__PURE__ */ t(
178
+ d.Indicator,
244
179
  {
245
- className: o(O({ orientation: r }), e),
246
- ...t
180
+ className: r(I({ orientation: a }), e),
181
+ ...o
247
182
  }
248
183
  );
249
- q.displayName = "Tabs.Indicator";
250
- const G = ({ className: e, ...r }) => /* @__PURE__ */ a(
251
- u.Panel,
184
+ j.displayName = "TabsIndicator";
185
+ const F = ({ className: e, ...a }) => /* @__PURE__ */ t(
186
+ d.Panel,
252
187
  {
253
- className: o(
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
- ...r
193
+ ...a
259
194
  }
260
195
  );
261
- G.displayName = "Tabs.Panel";
262
- const J = (e) => /* @__PURE__ */ a(s.Root, { ...e });
263
- J.displayName = "Dialog.Root";
264
- const Q = i(
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
- variants: {
273
- variant: {
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
- X.displayName = "Dialog.Trigger";
298
- const Y = (e) => /* @__PURE__ */ a(s.Portal, { ...e });
299
- Y.displayName = "Dialog.Portal";
300
- const ee = ({ className: e, ...r }) => /* @__PURE__ */ a(
301
- s.Backdrop,
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: o(
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
- ...r
218
+ ...a
310
219
  }
311
220
  );
312
- ee.displayName = "Dialog.Backdrop";
313
- const re = i(
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
- ), ae = ({ className: e, size: r, ...t }) => /* @__PURE__ */ a(
339
- s.Popup,
247
+ ), E = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
248
+ i.Popup,
340
249
  {
341
- className: o(re({ size: r }), e),
342
- ...t
250
+ className: r(q({ size: a }), e),
251
+ ...o
343
252
  }
344
253
  );
345
- ae.displayName = "Dialog.Popup";
346
- const te = ({ className: e, ...r }) => /* @__PURE__ */ a(
347
- s.Title,
254
+ E.displayName = "DialogPopup";
255
+ const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
256
+ i.Title,
348
257
  {
349
- className: o("text-lg font-semibold leading-none tracking-tight", e),
350
- ...r
258
+ className: r("text-lg font-semibold leading-none tracking-tight", e),
259
+ ...a
351
260
  }
352
261
  );
353
- te.displayName = "Dialog.Title";
354
- const oe = ({ className: e, ...r }) => /* @__PURE__ */ a(s.Description, { className: o("mt-2", e), ...r });
355
- oe.displayName = "Dialog.Description";
356
- const ne = i(
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: o(ne({ variant: r, size: t }), e),
386
- ...n
268
+ className: r(u({ variant: a ?? "outline", size: o }), e),
269
+ ...s
387
270
  }
388
271
  );
389
- se.displayName = "Dialog.Close";
390
- const ie = ({ className: e, ...r }) => /* @__PURE__ */ a("div", { className: o("flex flex-col space-y-1 mb-5", e), ...r });
391
- ie.displayName = "Dialog.Header";
392
- const le = ({ className: e, ...r }) => /* @__PURE__ */ a(
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: o(
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
- ...r
282
+ ...a
400
283
  }
401
284
  );
402
- le.displayName = "Dialog.Footer";
403
- const de = (e) => /* @__PURE__ */ a(s.Root, { ...e });
404
- de.displayName = "Drawer.Root";
405
- const ce = i(
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
- variants: {
414
- variant: {
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
- ue.displayName = "Drawer.Trigger";
442
- const ge = (e) => /* @__PURE__ */ a(s.Portal, { ...e });
443
- ge.displayName = "Drawer.Portal";
444
- const pe = ({ className: e, ...r }) => /* @__PURE__ */ a(
445
- s.Backdrop,
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: o(
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
- ...r
307
+ ...a
454
308
  }
455
309
  );
456
- pe.displayName = "Drawer.Backdrop";
457
- const me = i(
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
- ), fe = ({ className: e, side: r, ...t }) => /* @__PURE__ */ a(
495
- s.Popup,
348
+ ), ee = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
349
+ i.Popup,
496
350
  {
497
- className: o(me({ side: r }), e),
498
- ...t
351
+ className: r(Z({ side: a }), e),
352
+ ...o
499
353
  }
500
354
  );
501
- fe.displayName = "Drawer.Popup";
502
- const be = ({ className: e, ...r }) => /* @__PURE__ */ a(
503
- s.Title,
355
+ ee.displayName = "DrawerPopup";
356
+ const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
357
+ i.Title,
504
358
  {
505
- className: o("text-lg font-semibold leading-none tracking-tight", e),
506
- ...r
359
+ className: r("text-lg font-semibold leading-none tracking-tight", e),
360
+ ...a
507
361
  }
508
362
  );
509
- be.displayName = "Drawer.Title";
510
- const ve = ({ className: e, ...r }) => /* @__PURE__ */ a(s.Description, { className: o("", e), ...r });
511
- ve.displayName = "Drawer.Description";
512
- const ye = i(
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
- variants: {
521
- variant: {
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
- ), he = ({ className: e, variant: r, size: t, ...n }) => /* @__PURE__ */ a(
542
- s.Close,
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: o(ye({ variant: r, size: t }), e),
545
- ...n
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
- he.displayName = "Drawer.Close";
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
- L as Button,
557
- ee as DialogBackdrop,
558
- se as DialogClose,
559
- oe as DialogDescription,
560
- le as DialogFooter,
561
- ie as DialogHeader,
562
- ae as DialogPopup,
563
- Y as DialogPortal,
564
- J as DialogRoot,
565
- te as DialogTitle,
566
- X as DialogTrigger,
567
- pe as DrawerBackdrop,
568
- he as DrawerClose,
569
- we as DrawerContent,
570
- ve as DrawerDescription,
571
- Ne as DrawerFooter,
572
- xe as DrawerHeader,
573
- fe as DrawerPopup,
574
- ge as DrawerPortal,
575
- de as DrawerRoot,
576
- be as DrawerTitle,
577
- ue as DrawerTrigger,
578
- F as ScrollAreaContent,
579
- M as ScrollAreaCorner,
580
- I as ScrollAreaRoot,
581
- $ as ScrollAreaScrollbar,
582
- H as ScrollAreaThumb,
583
- _ as ScrollAreaViewport,
584
- q as TabsIndicator,
585
- Z as TabsList,
586
- G as TabsPanel,
587
- U as TabsRoot,
588
- K as TabsTab
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"}
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lglab/compose-ui",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A collection of components built with Base UI & Tailwind CSS",
5
5
  "author": "LGLab",
6
6
  "license": "MIT",