@lglab/compose-ui 0.0.0 → 0.1.1

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.
@@ -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,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K,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
- 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,OAA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jF,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
- 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,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,CAAA;AAElF,QAAA,MAAM,cAAc;8BAA6B,mBAAmB;;CAEnE,CAAA;AAID,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAA;AAE1F,QAAA,MAAM,kBAAkB;8BAA6B,uBAAuB;;CAO3E,CAAA;AAID,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,CAAA;AAExF,QAAA,MAAM,iBAAiB;8BAA6B,sBAAsB;;CAEzE,CAAA;AAID,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CACzD,OAAO,cAAc,CAAC,SAAS,CAChC,CAAA;AAED,QAAA,MAAM,mBAAmB;2CAItB,wBAAwB;;CAc1B,CAAA;AAID,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAAA;AAEpF,QAAA,MAAM,eAAe;8BAA6B,oBAAoB;;CAWrE,CAAA;AAID,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAA;AAEtF,QAAA,MAAM,gBAAgB;8BAA6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BAAmB,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":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAA;AAEtE,QAAA,MAAM,QAAQ;8BAA6B,aAAa;;CAEvD,CAAA;AAuBD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG;IACvE,mCAAmC;IACnC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;CACxC,CAAA;AAED,QAAA,MAAM,QAAQ;2CAAyD,aAAa;;CAOnF,CAAA;AAiCD,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG,CAAC,GAAG;IACrE,sBAAsB;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,QAAA,MAAM,OAAO;oCAAmC,YAAY;;CAE3D,CAAA;AAyBD,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,SAAS,CAAC,GAAG;IACjF,4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E,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,9 @@ 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 type { ButtonProps } from './components/button';
7
+ export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaContentProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, } from './components/scroll-area';
8
+ export type { TabsRootProps, TabsListProps, TabsTabProps, TabsIndicatorProps, TabsPanelProps, } from './components/tabs';
9
+ export type { DialogRootProps, DialogTriggerProps, DialogPortalProps, DialogBackdropProps, DialogPopupProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogHeaderProps, DialogFooterProps, } from './components/dialog';
10
+ export type { DrawerRootProps, DrawerTriggerProps, DrawerPortalProps, DrawerBackdropProps, DrawerPopupProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerContentProps, DrawerFooterProps, } from './components/drawer';
6
11
  //# 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;AAE5B,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"}
package/dist/index.es.js CHANGED
@@ -1,87 +1,17 @@
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";
2
+ import { jsx as t, jsxs as f, Fragment as b } from "react/jsx-runtime";
3
+ import { Button as v } from "@base-ui/react/button";
4
+ import { LoaderCircle as y } from "lucide-react";
5
+ import { cva as l } from "class-variance-authority";
6
+ import { clsx as x } from "clsx";
7
+ import { twMerge as N } from "tailwind-merge";
8
+ import { ScrollArea as n } from "@base-ui/react/scroll-area";
9
+ import { Tabs as d } from "@base-ui/react/tabs";
10
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(
11
+ const c = l(
82
12
  // Base styles
83
13
  [
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"
14
+ "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
15
  ],
86
16
  {
87
17
  variants: {
@@ -107,76 +37,80 @@ const j = i(
107
37
  size: "default"
108
38
  }
109
39
  }
110
- ), L = ({
40
+ );
41
+ function r(...e) {
42
+ return N(x(e));
43
+ }
44
+ const h = ({
111
45
  className: e,
112
- variant: r,
113
- size: t,
114
- loading: n = !1,
115
- loadingText: c,
116
- disabled: l,
117
- children: g,
118
- ...p
119
- }) => /* @__PURE__ */ a(
120
- D,
46
+ variant: a,
47
+ size: o,
48
+ loading: i = !1,
49
+ loadingText: g,
50
+ disabled: p,
51
+ children: u,
52
+ ...m
53
+ }) => /* @__PURE__ */ t(
54
+ v,
121
55
  {
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
128
- ] }) : g
56
+ className: r(c({ variant: a, size: o }), e),
57
+ disabled: p || i,
58
+ ...m,
59
+ children: i ? /* @__PURE__ */ f(b, { children: [
60
+ /* @__PURE__ */ t(y, { className: "animate-spin" }),
61
+ g ?? u
62
+ ] }) : u
129
63
  }
130
64
  );
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,
65
+ h.displayName = "Button";
66
+ const w = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Root, { className: r("relative", e), ...a });
67
+ w.displayName = "ScrollAreaRoot";
68
+ const D = ({ className: e, ...a }) => /* @__PURE__ */ t(
69
+ n.Viewport,
136
70
  {
137
- className: o("h-full overscroll-contain pr-3", e),
138
- ...r
71
+ className: r("h-full overscroll-contain pr-3", e),
72
+ ...a
139
73
  }
140
74
  );
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 $ = ({
75
+ D.displayName = "ScrollAreaViewport";
76
+ const T = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Content, { className: r("min-w-full", e), ...a });
77
+ T.displayName = "ScrollAreaContent";
78
+ const k = ({
145
79
  className: e,
146
- orientation: r = "vertical",
147
- ...t
148
- }) => /* @__PURE__ */ a(
149
- d.Scrollbar,
80
+ orientation: a = "vertical",
81
+ ...o
82
+ }) => /* @__PURE__ */ t(
83
+ n.Scrollbar,
150
84
  {
151
- className: o(
85
+ className: r(
152
86
  "flex touch-none select-none p-0.5 transition-colors duration-150 ease-out",
153
87
  "data-hovering:bg-muted/50",
154
- r === "vertical" && "h-full w-2.5",
155
- r === "horizontal" && "h-2.5 w-full flex-col",
88
+ a === "vertical" && "h-full w-2.5",
89
+ a === "horizontal" && "h-2.5 w-full flex-col",
156
90
  e
157
91
  ),
158
- orientation: r,
159
- ...t
92
+ orientation: a,
93
+ ...o
160
94
  }
161
95
  );
162
- $.displayName = "ScrollArea.Scrollbar";
163
- const H = ({ className: e, ...r }) => /* @__PURE__ */ a(
164
- d.Thumb,
96
+ k.displayName = "ScrollAreaScrollbar";
97
+ const z = ({ className: e, ...a }) => /* @__PURE__ */ t(
98
+ n.Thumb,
165
99
  {
166
- className: o(
100
+ className: r(
167
101
  "relative flex-1 rounded-full bg-border transition-colors",
168
102
  "hover:bg-muted-foreground/50",
169
103
  e
170
104
  ),
171
- ...r
105
+ ...a
172
106
  }
173
107
  );
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(
108
+ z.displayName = "ScrollAreaThumb";
109
+ const P = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Corner, { className: r("bg-muted/50", e), ...a });
110
+ P.displayName = "ScrollAreaCorner";
111
+ const S = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Root, { className: r("flex flex-col", e), ...a });
112
+ S.displayName = "TabsRoot";
113
+ const C = l(
180
114
  ["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
181
115
  {
182
116
  variants: {
@@ -189,15 +123,15 @@ const W = i(
189
123
  orientation: "horizontal"
190
124
  }
191
125
  }
192
- ), Z = ({ className: e, orientation: r = "horizontal", ...t }) => /* @__PURE__ */ a(
193
- u.List,
126
+ ), V = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
127
+ d.List,
194
128
  {
195
- className: o(W({ orientation: r }), e),
196
- ...t
129
+ className: r(C({ orientation: a }), e),
130
+ ...o
197
131
  }
198
132
  );
199
- Z.displayName = "Tabs.List";
200
- const E = i(
133
+ V.displayName = "TabsList";
134
+ const A = l(
201
135
  [
202
136
  "relative z-10 inline-flex items-center justify-center whitespace-nowrap",
203
137
  "rounded-md px-3 py-1.5 text-sm font-medium",
@@ -220,9 +154,9 @@ const E = i(
220
154
  size: "default"
221
155
  }
222
156
  }
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(
157
+ ), R = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(d.Tab, { className: r(A({ size: a }), e), ...o });
158
+ R.displayName = "TabsTab";
159
+ const B = l(
226
160
  ["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
227
161
  {
228
162
  variants: {
@@ -235,82 +169,56 @@ const O = i(
235
169
  orientation: "horizontal"
236
170
  }
237
171
  }
238
- ), q = ({
172
+ ), j = ({
239
173
  className: e,
240
- orientation: r = "horizontal",
241
- ...t
242
- }) => /* @__PURE__ */ a(
243
- u.Indicator,
174
+ orientation: a = "horizontal",
175
+ ...o
176
+ }) => /* @__PURE__ */ t(
177
+ d.Indicator,
244
178
  {
245
- className: o(O({ orientation: r }), e),
246
- ...t
179
+ className: r(B({ orientation: a }), e),
180
+ ...o
247
181
  }
248
182
  );
249
- q.displayName = "Tabs.Indicator";
250
- const G = ({ className: e, ...r }) => /* @__PURE__ */ a(
251
- u.Panel,
183
+ j.displayName = "TabsIndicator";
184
+ const F = ({ className: e, ...a }) => /* @__PURE__ */ t(
185
+ d.Panel,
252
186
  {
253
- className: o(
187
+ className: r(
254
188
  "mt-2 ring-offset-background",
255
189
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
256
190
  e
257
191
  ),
258
- ...r
192
+ ...a
259
193
  }
260
194
  );
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
- ],
271
- {
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(
195
+ F.displayName = "TabsPanel";
196
+ const L = (e) => /* @__PURE__ */ t(s.Root, { ...e });
197
+ L.displayName = "DialogRoot";
198
+ const H = ({ className: e, variant: a, size: o, ...i }) => /* @__PURE__ */ t(
291
199
  s.Trigger,
292
200
  {
293
- className: o(Q({ variant: r, size: t }), e),
294
- ...n
201
+ className: r(c({ variant: a, size: o }), e),
202
+ ...i
295
203
  }
296
204
  );
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(
205
+ H.displayName = "DialogTrigger";
206
+ const I = (e) => /* @__PURE__ */ t(s.Portal, { ...e });
207
+ I.displayName = "DialogPortal";
208
+ const _ = ({ className: e, ...a }) => /* @__PURE__ */ t(
301
209
  s.Backdrop,
302
210
  {
303
- className: o(
211
+ className: r(
304
212
  "fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
305
213
  "transition-opacity duration-200",
306
214
  "data-starting-style:opacity-0 data-ending-style:opacity-0",
307
215
  e
308
216
  ),
309
- ...r
217
+ ...a
310
218
  }
311
219
  );
312
- ee.displayName = "Dialog.Backdrop";
313
- const re = i(
220
+ _.displayName = "DialogBackdrop";
221
+ const M = l(
314
222
  [
315
223
  "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
316
224
  "w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
@@ -335,126 +243,71 @@ const re = i(
335
243
  size: "default"
336
244
  }
337
245
  }
338
- ), ae = ({ className: e, size: r, ...t }) => /* @__PURE__ */ a(
246
+ ), $ = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
339
247
  s.Popup,
340
248
  {
341
- className: o(re({ size: r }), e),
342
- ...t
249
+ className: r(M({ size: a }), e),
250
+ ...o
343
251
  }
344
252
  );
345
- ae.displayName = "Dialog.Popup";
346
- const te = ({ className: e, ...r }) => /* @__PURE__ */ a(
253
+ $.displayName = "DialogPopup";
254
+ const q = ({ className: e, ...a }) => /* @__PURE__ */ t(
347
255
  s.Title,
348
256
  {
349
- className: o("text-lg font-semibold leading-none tracking-tight", e),
350
- ...r
257
+ className: r("text-lg font-semibold leading-none tracking-tight", e),
258
+ ...a
351
259
  }
352
260
  );
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(
261
+ q.displayName = "DialogTitle";
262
+ const E = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Description, { className: r("mt-2", e), ...a });
263
+ E.displayName = "DialogDescription";
264
+ const G = ({ className: e, variant: a, size: o, ...i }) => /* @__PURE__ */ t(
383
265
  s.Close,
384
266
  {
385
- className: o(ne({ variant: r, size: t }), e),
386
- ...n
267
+ className: r(c({ variant: a ?? "outline", size: o }), e),
268
+ ...i
387
269
  }
388
270
  );
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(
271
+ G.displayName = "DialogClose";
272
+ const J = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
273
+ J.displayName = "DialogHeader";
274
+ const K = ({ className: e, ...a }) => /* @__PURE__ */ t(
393
275
  "div",
394
276
  {
395
- className: o(
277
+ className: r(
396
278
  "mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
397
279
  e
398
280
  ),
399
- ...r
281
+ ...a
400
282
  }
401
283
  );
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
- ],
412
- {
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(
284
+ K.displayName = "DialogFooter";
285
+ const O = (e) => /* @__PURE__ */ t(s.Root, { ...e });
286
+ O.displayName = "DrawerRoot";
287
+ const Q = ({ className: e, variant: a, size: o, ...i }) => /* @__PURE__ */ t(
435
288
  s.Trigger,
436
289
  {
437
- className: o(ce({ variant: r, size: t }), e),
438
- ...n
290
+ className: r(c({ variant: a, size: o }), e),
291
+ ...i
439
292
  }
440
293
  );
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(
294
+ Q.displayName = "DrawerTrigger";
295
+ const U = (e) => /* @__PURE__ */ t(s.Portal, { ...e });
296
+ U.displayName = "DrawerPortal";
297
+ const W = ({ className: e, ...a }) => /* @__PURE__ */ t(
445
298
  s.Backdrop,
446
299
  {
447
- className: o(
300
+ className: r(
448
301
  "fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
449
302
  "transition-opacity duration-300",
450
303
  "data-starting-style:opacity-0 data-ending-style:opacity-0",
451
304
  e
452
305
  ),
453
- ...r
306
+ ...a
454
307
  }
455
308
  );
456
- pe.displayName = "Drawer.Backdrop";
457
- const me = i(
309
+ W.displayName = "DrawerBackdrop";
310
+ const X = l(
458
311
  [
459
312
  "fixed z-50 flex flex-col bg-background p-6 shadow-lg",
460
313
  "outline-none",
@@ -491,99 +344,70 @@ const me = i(
491
344
  side: "right"
492
345
  }
493
346
  }
494
- ), fe = ({ className: e, side: r, ...t }) => /* @__PURE__ */ a(
347
+ ), Y = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
495
348
  s.Popup,
496
349
  {
497
- className: o(me({ side: r }), e),
498
- ...t
350
+ className: r(X({ side: a }), e),
351
+ ...o
499
352
  }
500
353
  );
501
- fe.displayName = "Drawer.Popup";
502
- const be = ({ className: e, ...r }) => /* @__PURE__ */ a(
354
+ Y.displayName = "DrawerPopup";
355
+ const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
503
356
  s.Title,
504
357
  {
505
- className: o("text-lg font-semibold leading-none tracking-tight", e),
506
- ...r
358
+ className: r("text-lg font-semibold leading-none tracking-tight", e),
359
+ ...a
507
360
  }
508
361
  );
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
- ],
519
- {
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
- }
540
- }
541
- ), he = ({ className: e, variant: r, size: t, ...n }) => /* @__PURE__ */ a(
362
+ Z.displayName = "DrawerTitle";
363
+ const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(s.Description, { className: r("", e), ...a });
364
+ ee.displayName = "DrawerDescription";
365
+ const ae = ({ className: e, variant: a, size: o, ...i }) => /* @__PURE__ */ t(
542
366
  s.Close,
543
367
  {
544
- className: o(ye({ variant: r, size: t }), e),
545
- ...n
368
+ className: r(c({ variant: a ?? "outline", size: o }), e),
369
+ ...i
546
370
  }
547
371
  );
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";
372
+ ae.displayName = "DrawerClose";
373
+ const te = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
374
+ te.displayName = "DrawerHeader";
375
+ const re = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
376
+ re.displayName = "DrawerContent";
377
+ const oe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
378
+ oe.displayName = "DrawerFooter";
555
379
  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
380
+ h as Button,
381
+ _ as DialogBackdrop,
382
+ G as DialogClose,
383
+ E as DialogDescription,
384
+ K as DialogFooter,
385
+ J as DialogHeader,
386
+ $ as DialogPopup,
387
+ I as DialogPortal,
388
+ L as DialogRoot,
389
+ q as DialogTitle,
390
+ H as DialogTrigger,
391
+ W as DrawerBackdrop,
392
+ ae as DrawerClose,
393
+ re as DrawerContent,
394
+ ee as DrawerDescription,
395
+ oe as DrawerFooter,
396
+ te as DrawerHeader,
397
+ Y as DrawerPopup,
398
+ U as DrawerPortal,
399
+ O as DrawerRoot,
400
+ Z as DrawerTitle,
401
+ Q as DrawerTrigger,
402
+ T as ScrollAreaContent,
403
+ P as ScrollAreaCorner,
404
+ w as ScrollAreaRoot,
405
+ k as ScrollAreaScrollbar,
406
+ z as ScrollAreaThumb,
407
+ D as ScrollAreaViewport,
408
+ j as TabsIndicator,
409
+ V as TabsList,
410
+ F as TabsPanel,
411
+ S as TabsRoot,
412
+ R as TabsTab
589
413
  };
@@ -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,10 +1,7 @@
1
1
  {
2
2
  "name": "@lglab/compose-ui",
3
- "version": "0.0.0",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "description": "compose-ui library",
3
+ "version": "0.1.1",
4
+ "description": "A collection of components built with Base UI & Tailwind CSS",
8
5
  "author": "LGLab",
9
6
  "license": "MIT",
10
7
  "repository": {
@@ -14,14 +11,11 @@
14
11
  },
15
12
  "homepage": "https://compose-ui.dev",
16
13
  "keywords": [
17
- "compose-ui",
18
14
  "react",
15
+ "react-component",
19
16
  "base-ui",
20
17
  "tailwind",
21
- "library",
22
- "typescript",
23
- "open-source",
24
- "accessible"
18
+ "a11y"
25
19
  ],
26
20
  "type": "module",
27
21
  "types": "./dist/index.d.ts",