@codefast/ui 0.3.11-canary.1 → 0.3.11

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.
Files changed (149) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +34 -14
  3. package/dist/components/accordion.d.ts +29 -10
  4. package/dist/components/accordion.js +38 -37
  5. package/dist/components/alert-dialog.d.ts +60 -24
  6. package/dist/components/alert-dialog.js +69 -72
  7. package/dist/components/alert.d.ts +27 -15
  8. package/dist/components/alert.js +29 -31
  9. package/dist/components/aspect-ratio.d.ts +8 -4
  10. package/dist/components/aspect-ratio.js +7 -5
  11. package/dist/components/avatar.d.ts +17 -6
  12. package/dist/components/avatar.js +19 -17
  13. package/dist/components/badge.d.ts +21 -14
  14. package/dist/components/badge.js +19 -22
  15. package/dist/components/breadcrumb.d.ts +35 -12
  16. package/dist/components/breadcrumb.js +48 -54
  17. package/dist/components/button-group.d.ts +29 -14
  18. package/dist/components/button-group.js +27 -32
  19. package/dist/components/button.d.ts +35 -25
  20. package/dist/components/button.js +50 -48
  21. package/dist/components/calendar.d.ts +24 -9
  22. package/dist/components/calendar.js +92 -98
  23. package/dist/components/card.d.ts +34 -10
  24. package/dist/components/card.js +39 -37
  25. package/dist/components/carousel.d.ts +55 -24
  26. package/dist/components/carousel.js +113 -130
  27. package/dist/components/chart.d.ts +72 -36
  28. package/dist/components/chart.js +154 -166
  29. package/dist/components/checkbox-cards.d.ts +15 -8
  30. package/dist/components/checkbox-cards.js +22 -25
  31. package/dist/components/checkbox-group.d.ts +16 -8
  32. package/dist/components/checkbox-group.js +19 -19
  33. package/dist/components/checkbox.d.ts +9 -4
  34. package/dist/components/checkbox.js +14 -14
  35. package/dist/components/collapsible.d.ts +14 -6
  36. package/dist/components/collapsible.js +18 -16
  37. package/dist/components/command.d.ts +55 -23
  38. package/dist/components/command.js +70 -85
  39. package/dist/components/context-menu.d.ts +72 -22
  40. package/dist/components/context-menu.js +88 -109
  41. package/dist/components/dialog.d.ts +53 -22
  42. package/dist/components/dialog.js +71 -85
  43. package/dist/components/drawer.d.ts +60 -28
  44. package/dist/components/drawer.js +59 -67
  45. package/dist/components/dropdown-menu.d.ts +73 -22
  46. package/dist/components/dropdown-menu.js +95 -112
  47. package/dist/components/empty.d.ts +37 -15
  48. package/dist/components/empty.js +43 -45
  49. package/dist/components/field.d.ts +63 -25
  50. package/dist/components/field.js +88 -104
  51. package/dist/components/form.d.ts +37 -15
  52. package/dist/components/form.js +65 -70
  53. package/dist/components/hover-card.d.ts +21 -7
  54. package/dist/components/hover-card.js +24 -24
  55. package/dist/components/input-group.d.ts +53 -28
  56. package/dist/components/input-group.js +63 -77
  57. package/dist/components/input-number.d.ts +28 -7
  58. package/dist/components/input-number.js +55 -59
  59. package/dist/components/input-otp.d.ts +24 -10
  60. package/dist/components/input-otp.js +33 -37
  61. package/dist/components/input-password.d.ts +12 -5
  62. package/dist/components/input-password.js +31 -32
  63. package/dist/components/input-search.d.ts +18 -8
  64. package/dist/components/input-search.js +43 -41
  65. package/dist/components/input.d.ts +10 -4
  66. package/dist/components/input.js +9 -7
  67. package/dist/components/item.d.ts +69 -32
  68. package/dist/components/item.js +89 -92
  69. package/dist/components/kbd.d.ts +13 -5
  70. package/dist/components/kbd.js +13 -11
  71. package/dist/components/label.d.ts +9 -4
  72. package/dist/components/label.js +9 -7
  73. package/dist/components/menubar.d.ts +80 -23
  74. package/dist/components/menubar.js +97 -118
  75. package/dist/components/native-select.d.ts +16 -6
  76. package/dist/components/native-select.js +25 -26
  77. package/dist/components/navigation-menu.d.ts +36 -12
  78. package/dist/components/navigation-menu.js +60 -75
  79. package/dist/components/pagination.d.ts +35 -14
  80. package/dist/components/pagination.js +54 -69
  81. package/dist/components/popover.d.ts +24 -8
  82. package/dist/components/popover.js +28 -28
  83. package/dist/components/progress-circle.d.ts +106 -88
  84. package/dist/components/progress-circle.js +106 -138
  85. package/dist/components/progress.d.ts +10 -4
  86. package/dist/components/progress.js +14 -14
  87. package/dist/components/radio-cards.d.ts +10 -4
  88. package/dist/components/radio-cards.js +22 -23
  89. package/dist/components/radio-group.d.ts +13 -5
  90. package/dist/components/radio-group.js +18 -16
  91. package/dist/components/radio.d.ts +12 -5
  92. package/dist/components/radio.js +10 -8
  93. package/dist/components/resizable.d.ts +18 -7
  94. package/dist/components/resizable.js +22 -22
  95. package/dist/components/scroll-area.d.ts +33 -20
  96. package/dist/components/scroll-area.js +84 -88
  97. package/dist/components/select.d.ts +50 -16
  98. package/dist/components/select.js +77 -96
  99. package/dist/components/separator.d.ts +29 -19
  100. package/dist/components/separator.js +36 -34
  101. package/dist/components/sheet.d.ts +62 -29
  102. package/dist/components/sheet.js +79 -100
  103. package/dist/components/sidebar.d.ts +160 -66
  104. package/dist/components/sidebar.js +294 -336
  105. package/dist/components/skeleton.d.ts +9 -4
  106. package/dist/components/skeleton.js +8 -6
  107. package/dist/components/slider.d.ts +13 -4
  108. package/dist/components/slider.js +34 -40
  109. package/dist/components/sonner.d.ts +10 -7
  110. package/dist/components/sonner.js +16 -14
  111. package/dist/components/spinner.d.ts +12 -5
  112. package/dist/components/spinner.js +33 -35
  113. package/dist/components/switch.d.ts +9 -4
  114. package/dist/components/switch.js +13 -11
  115. package/dist/components/table.d.ts +37 -11
  116. package/dist/components/table.js +47 -45
  117. package/dist/components/tabs.d.ts +21 -7
  118. package/dist/components/tabs.js +24 -22
  119. package/dist/components/textarea.d.ts +9 -4
  120. package/dist/components/textarea.js +8 -6
  121. package/dist/components/toggle-group.d.ts +24 -9
  122. package/dist/components/toggle-group.js +41 -42
  123. package/dist/components/toggle.d.ts +25 -17
  124. package/dist/components/toggle.js +30 -28
  125. package/dist/components/tooltip.d.ts +24 -8
  126. package/dist/components/tooltip.js +29 -32
  127. package/dist/hooks/use-animated-value.d.ts +4 -1
  128. package/dist/hooks/use-animated-value.js +57 -36
  129. package/dist/hooks/use-copy-to-clipboard.d.ts +11 -5
  130. package/dist/hooks/use-copy-to-clipboard.js +39 -20
  131. package/dist/hooks/use-is-mobile.d.ts +4 -1
  132. package/dist/hooks/use-is-mobile.js +21 -1
  133. package/dist/hooks/use-media-query.d.ts +4 -1
  134. package/dist/hooks/use-media-query.js +45 -18
  135. package/dist/hooks/use-mutation-observer.d.ts +6 -2
  136. package/dist/hooks/use-mutation-observer.js +34 -16
  137. package/dist/hooks/use-pagination.d.ts +22 -14
  138. package/dist/hooks/use-pagination.js +100 -49
  139. package/dist/index.d.ts +69 -130
  140. package/dist/index.js +11 -11
  141. package/dist/primitives/checkbox-group.d.ts +105 -83
  142. package/dist/primitives/checkbox-group.js +111 -84
  143. package/dist/primitives/input-number.d.ts +51 -40
  144. package/dist/primitives/input-number.js +483 -350
  145. package/dist/primitives/input.d.ts +48 -42
  146. package/dist/primitives/input.js +65 -43
  147. package/dist/primitives/progress-circle.d.ts +79 -48
  148. package/dist/primitives/progress-circle.js +154 -105
  149. package/package.json +6 -7
@@ -1,119 +1,116 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { Separator } from "./separator.js";
2
2
  import { cn, tv } from "@codefast/tailwind-variants";
3
3
  import { Slot } from "@radix-ui/react-slot";
4
- import { Separator } from "./separator.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/item.tsx
5
6
  const itemVariants = tv({
6
- base: cn("group/item flex flex-wrap items-center rounded-lg border border-transparent text-sm outline-hidden transition-colors duration-100", "[a]:transition-colors [a]:hover:bg-accent/50", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50"),
7
- defaultVariants: {
8
- size: "default",
9
- variant: "default"
10
- },
11
- variants: {
12
- size: {
13
- default: "gap-4 p-4",
14
- sm: "gap-2.5 px-4 py-3"
15
- },
16
- variant: {
17
- default: "bg-transparent",
18
- muted: "bg-muted/50",
19
- outline: "border-border"
20
- }
21
- }
7
+ base: cn("group/item flex flex-wrap items-center rounded-lg border border-transparent text-sm outline-hidden transition-colors duration-100", "[a]:transition-colors [a]:hover:bg-accent/50", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50"),
8
+ defaultVariants: {
9
+ size: "default",
10
+ variant: "default"
11
+ },
12
+ variants: {
13
+ size: {
14
+ default: "gap-4 p-4",
15
+ sm: "gap-2.5 px-4 py-3"
16
+ },
17
+ variant: {
18
+ default: "bg-transparent",
19
+ muted: "bg-muted/50",
20
+ outline: "border-border"
21
+ }
22
+ }
22
23
  });
23
24
  const itemMediaVariants = tv({
24
- base: cn("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start", "group-has-[[data-slot=item-description]]/item:translate-y-0.5 [&_svg]:pointer-events-none"),
25
- defaultVariants: {
26
- variant: "default"
27
- },
28
- variants: {
29
- variant: {
30
- default: "bg-transparent",
31
- icon: "size-8 shrink-0 rounded-md border bg-muted [&_svg:not([class*='size-'])]:size-4",
32
- image: "size-10 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover"
33
- }
34
- }
25
+ base: cn("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start", "group-has-[[data-slot=item-description]]/item:translate-y-0.5 [&_svg]:pointer-events-none"),
26
+ defaultVariants: { variant: "default" },
27
+ variants: { variant: {
28
+ default: "bg-transparent",
29
+ icon: "size-8 shrink-0 rounded-md border bg-muted [&_svg:not([class*='size-'])]:size-4",
30
+ image: "size-10 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover"
31
+ } }
35
32
  });
36
33
  function ItemGroup({ className, ...props }) {
37
- return /*#__PURE__*/ jsx("div", {
38
- className: cn("group/item-group flex flex-col", className),
39
- "data-slot": "item-group",
40
- role: "list",
41
- ...props
42
- });
34
+ return /* @__PURE__ */ jsx("div", {
35
+ className: cn("group/item-group flex flex-col", className),
36
+ "data-slot": "item-group",
37
+ role: "list",
38
+ ...props
39
+ });
43
40
  }
44
41
  function ItemSeparator({ className, ...props }) {
45
- return /*#__PURE__*/ jsx(Separator, {
46
- className: cn("my-0", className),
47
- "data-slot": "item-separator",
48
- orientation: "horizontal",
49
- ...props
50
- });
42
+ return /* @__PURE__ */ jsx(Separator, {
43
+ className: cn("my-0", className),
44
+ "data-slot": "item-separator",
45
+ orientation: "horizontal",
46
+ ...props
47
+ });
51
48
  }
52
49
  function Item({ asChild = false, className, size = "default", variant = "default", ...props }) {
53
- const Component = asChild ? Slot : "div";
54
- return /*#__PURE__*/ jsx(Component, {
55
- className: itemVariants({
56
- className,
57
- size,
58
- variant
59
- }),
60
- "data-size": size,
61
- "data-slot": "item",
62
- "data-variant": variant,
63
- ...props
64
- });
50
+ return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
51
+ className: itemVariants({
52
+ className,
53
+ size,
54
+ variant
55
+ }),
56
+ "data-size": size,
57
+ "data-slot": "item",
58
+ "data-variant": variant,
59
+ ...props
60
+ });
65
61
  }
66
62
  function ItemMedia({ className, variant = "default", ...props }) {
67
- return /*#__PURE__*/ jsx("div", {
68
- className: itemMediaVariants({
69
- className,
70
- variant
71
- }),
72
- "data-slot": "item-media",
73
- "data-variant": variant,
74
- ...props
75
- });
63
+ return /* @__PURE__ */ jsx("div", {
64
+ className: itemMediaVariants({
65
+ className,
66
+ variant
67
+ }),
68
+ "data-slot": "item-media",
69
+ "data-variant": variant,
70
+ ...props
71
+ });
76
72
  }
77
73
  function ItemContent({ className, ...props }) {
78
- return /*#__PURE__*/ jsx("div", {
79
- className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
80
- "data-slot": "item-content",
81
- ...props
82
- });
74
+ return /* @__PURE__ */ jsx("div", {
75
+ className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
76
+ "data-slot": "item-content",
77
+ ...props
78
+ });
83
79
  }
84
80
  function ItemTitle({ className, ...props }) {
85
- return /*#__PURE__*/ jsx("div", {
86
- className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
87
- "data-slot": "item-title",
88
- ...props
89
- });
81
+ return /* @__PURE__ */ jsx("div", {
82
+ className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
83
+ "data-slot": "item-title",
84
+ ...props
85
+ });
90
86
  }
91
87
  function ItemDescription({ className, ...props }) {
92
- return /*#__PURE__*/ jsx("p", {
93
- className: cn("line-clamp-2 text-sm leading-normal font-normal text-balance text-muted-foreground", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
94
- "data-slot": "item-description",
95
- ...props
96
- });
88
+ return /* @__PURE__ */ jsx("p", {
89
+ className: cn("line-clamp-2 text-sm leading-normal font-normal text-balance text-muted-foreground", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
90
+ "data-slot": "item-description",
91
+ ...props
92
+ });
97
93
  }
98
94
  function ItemActions({ className, ...props }) {
99
- return /*#__PURE__*/ jsx("div", {
100
- className: cn("flex items-center gap-2", className),
101
- "data-slot": "item-actions",
102
- ...props
103
- });
95
+ return /* @__PURE__ */ jsx("div", {
96
+ className: cn("flex items-center gap-2", className),
97
+ "data-slot": "item-actions",
98
+ ...props
99
+ });
104
100
  }
105
101
  function ItemHeader({ className, ...props }) {
106
- return /*#__PURE__*/ jsx("div", {
107
- className: cn("flex basis-full items-center justify-between gap-2", className),
108
- "data-slot": "item-header",
109
- ...props
110
- });
102
+ return /* @__PURE__ */ jsx("div", {
103
+ className: cn("flex basis-full items-center justify-between gap-2", className),
104
+ "data-slot": "item-header",
105
+ ...props
106
+ });
111
107
  }
112
108
  function ItemFooter({ className, ...props }) {
113
- return /*#__PURE__*/ jsx("div", {
114
- className: cn("flex basis-full items-center justify-between gap-2", className),
115
- "data-slot": "item-footer",
116
- ...props
117
- });
109
+ return /* @__PURE__ */ jsx("div", {
110
+ className: cn("flex basis-full items-center justify-between gap-2", className),
111
+ "data-slot": "item-footer",
112
+ ...props
113
+ });
118
114
  }
115
+ //#endregion
119
116
  export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
@@ -1,7 +1,15 @@
1
- import type { ComponentProps, JSX } from "react";
1
+ import { ComponentProps, JSX } from "react";
2
+
3
+ //#region src/components/kbd.d.ts
2
4
  type KbdProps = ComponentProps<"kbd">;
3
- declare function Kbd({ className, ...props }: KbdProps): JSX.Element;
5
+ declare function Kbd({
6
+ className,
7
+ ...props
8
+ }: KbdProps): JSX.Element;
4
9
  type KbdGroupProps = ComponentProps<"kbd">;
5
- declare function KbdGroup({ className, ...props }: KbdGroupProps): JSX.Element;
6
- export { Kbd, KbdGroup };
7
- export type { KbdGroupProps, KbdProps };
10
+ declare function KbdGroup({
11
+ className,
12
+ ...props
13
+ }: KbdGroupProps): JSX.Element;
14
+ //#endregion
15
+ export { Kbd, KbdGroup, type KbdGroupProps, type KbdProps };
@@ -1,17 +1,19 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  import { cn } from "@codefast/tailwind-variants";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/components/kbd.tsx
3
4
  function Kbd({ className, ...props }) {
4
- return /*#__PURE__*/ jsx("kbd", {
5
- className: cn("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10", className),
6
- "data-slot": "kbd",
7
- ...props
8
- });
5
+ return /* @__PURE__ */ jsx("kbd", {
6
+ className: cn("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10", className),
7
+ "data-slot": "kbd",
8
+ ...props
9
+ });
9
10
  }
10
11
  function KbdGroup({ className, ...props }) {
11
- return /*#__PURE__*/ jsx("kbd", {
12
- className: cn("inline-flex items-center gap-1", className),
13
- "data-slot": "kbd-group",
14
- ...props
15
- });
12
+ return /* @__PURE__ */ jsx("kbd", {
13
+ className: cn("inline-flex items-center gap-1", className),
14
+ "data-slot": "kbd-group",
15
+ ...props
16
+ });
16
17
  }
18
+ //#endregion
17
19
  export { Kbd, KbdGroup };
@@ -1,6 +1,11 @@
1
- import type { ComponentProps, JSX } from "react";
1
+ import { ComponentProps, JSX } from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
+
4
+ //#region src/components/label.d.ts
3
5
  type LabelProps = ComponentProps<typeof LabelPrimitive.Root>;
4
- declare function Label({ className, ...props }: LabelProps): JSX.Element;
5
- export { Label };
6
- export type { LabelProps };
6
+ declare function Label({
7
+ className,
8
+ ...props
9
+ }: LabelProps): JSX.Element;
10
+ //#endregion
11
+ export { Label, type LabelProps };
@@ -1,12 +1,14 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { cn } from "@codefast/tailwind-variants";
4
- import { Root } from "@radix-ui/react-label";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import * as LabelPrimitive from "@radix-ui/react-label";
5
+ //#region src/components/label.tsx
5
6
  function Label({ className, ...props }) {
6
- return /*#__PURE__*/ jsx(Root, {
7
- className: cn("inline-block text-sm leading-none font-medium group-data-disabled:opacity-50 peer-disabled:opacity-50 peer-aria-invalid:text-destructive peer-data-disabled:opacity-50 data-invalid:text-destructive", className),
8
- "data-slot": "label",
9
- ...props
10
- });
7
+ return /* @__PURE__ */ jsx(LabelPrimitive.Root, {
8
+ className: cn("inline-block text-sm leading-none font-medium group-data-disabled:opacity-50 peer-disabled:opacity-50 peer-aria-invalid:text-destructive peer-data-disabled:opacity-50 data-invalid:text-destructive", className),
9
+ "data-slot": "label",
10
+ ...props
11
+ });
11
12
  }
13
+ //#endregion
12
14
  export { Label };
@@ -1,43 +1,100 @@
1
- import type { ComponentProps, JSX } from "react";
1
+ import { ComponentProps, JSX } from "react";
2
2
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
3
+
4
+ //#region src/components/menubar.d.ts
3
5
  type MenubarProps = ComponentProps<typeof MenubarPrimitive.Root>;
4
- declare function Menubar({ className, ...props }: MenubarProps): JSX.Element;
6
+ declare function Menubar({
7
+ className,
8
+ ...props
9
+ }: MenubarProps): JSX.Element;
5
10
  type MenubarMenuProps = ComponentProps<typeof MenubarPrimitive.Menu>;
6
- declare function MenubarMenu({ ...props }: MenubarMenuProps): JSX.Element;
11
+ declare function MenubarMenu({
12
+ ...props
13
+ }: MenubarMenuProps): JSX.Element;
7
14
  type MenubarGroupProps = ComponentProps<typeof MenubarPrimitive.Group>;
8
- declare function MenubarGroup({ ...props }: MenubarGroupProps): JSX.Element;
15
+ declare function MenubarGroup({
16
+ ...props
17
+ }: MenubarGroupProps): JSX.Element;
9
18
  type MenubarSubProps = ComponentProps<typeof MenubarPrimitive.Sub>;
10
- declare function MenubarSub({ ...props }: MenubarSubProps): JSX.Element;
19
+ declare function MenubarSub({
20
+ ...props
21
+ }: MenubarSubProps): JSX.Element;
11
22
  type MenubarRadioGroupProps = ComponentProps<typeof MenubarPrimitive.RadioGroup>;
12
- declare function MenubarRadioGroup({ ...props }: MenubarRadioGroupProps): JSX.Element;
23
+ declare function MenubarRadioGroup({
24
+ ...props
25
+ }: MenubarRadioGroupProps): JSX.Element;
13
26
  type MenubarTriggerProps = ComponentProps<typeof MenubarPrimitive.Trigger>;
14
- declare function MenubarTrigger({ className, ...props }: MenubarTriggerProps): JSX.Element;
27
+ declare function MenubarTrigger({
28
+ className,
29
+ ...props
30
+ }: MenubarTriggerProps): JSX.Element;
15
31
  interface MenubarSubTriggerProps extends ComponentProps<typeof MenubarPrimitive.SubTrigger> {
16
- inset?: boolean;
32
+ inset?: boolean;
17
33
  }
18
- declare function MenubarSubTrigger({ children, className, inset, ...props }: MenubarSubTriggerProps): JSX.Element;
34
+ declare function MenubarSubTrigger({
35
+ children,
36
+ className,
37
+ inset,
38
+ ...props
39
+ }: MenubarSubTriggerProps): JSX.Element;
19
40
  type MenubarSubContentProps = ComponentProps<typeof MenubarPrimitive.SubContent>;
20
- declare function MenubarSubContent({ className, ...props }: MenubarSubContentProps): JSX.Element;
41
+ declare function MenubarSubContent({
42
+ className,
43
+ ...props
44
+ }: MenubarSubContentProps): JSX.Element;
21
45
  type MenubarContentProps = ComponentProps<typeof MenubarPrimitive.Content>;
22
- declare function MenubarContent({ align, alignOffset, className, sideOffset, ...props }: MenubarContentProps): JSX.Element;
46
+ declare function MenubarContent({
47
+ align,
48
+ alignOffset,
49
+ className,
50
+ sideOffset,
51
+ ...props
52
+ }: MenubarContentProps): JSX.Element;
23
53
  interface MenubarItemProps extends ComponentProps<typeof MenubarPrimitive.Item> {
24
- inset?: boolean;
25
- variant?: "default" | "destructive";
54
+ inset?: boolean;
55
+ variant?: "default" | "destructive";
26
56
  }
27
- declare function MenubarItem({ className, inset, variant, ...props }: MenubarItemProps): JSX.Element;
57
+ declare function MenubarItem({
58
+ className,
59
+ inset,
60
+ variant,
61
+ ...props
62
+ }: MenubarItemProps): JSX.Element;
28
63
  type MenubarCheckboxItemProps = ComponentProps<typeof MenubarPrimitive.CheckboxItem>;
29
- declare function MenubarCheckboxItem({ checked, children, className, ...props }: MenubarCheckboxItemProps): JSX.Element;
64
+ declare function MenubarCheckboxItem({
65
+ checked,
66
+ children,
67
+ className,
68
+ ...props
69
+ }: MenubarCheckboxItemProps): JSX.Element;
30
70
  type MenubarRadioItemProps = ComponentProps<typeof MenubarPrimitive.RadioItem>;
31
- declare function MenubarRadioItem({ children, className, ...props }: MenubarRadioItemProps): JSX.Element;
71
+ declare function MenubarRadioItem({
72
+ children,
73
+ className,
74
+ ...props
75
+ }: MenubarRadioItemProps): JSX.Element;
32
76
  interface MenubarLabelProps extends ComponentProps<typeof MenubarPrimitive.Label> {
33
- inset?: boolean;
77
+ inset?: boolean;
34
78
  }
35
- declare function MenubarLabel({ className, inset, ...props }: MenubarLabelProps): JSX.Element;
79
+ declare function MenubarLabel({
80
+ className,
81
+ inset,
82
+ ...props
83
+ }: MenubarLabelProps): JSX.Element;
36
84
  type MenubarSeparatorProps = ComponentProps<typeof MenubarPrimitive.Separator>;
37
- declare function MenubarSeparator({ className, ...props }: MenubarSeparatorProps): JSX.Element;
85
+ declare function MenubarSeparator({
86
+ className,
87
+ ...props
88
+ }: MenubarSeparatorProps): JSX.Element;
38
89
  type MenubarShortcutProps = ComponentProps<"span">;
39
- declare function MenubarShortcut({ className, ...props }: MenubarShortcutProps): JSX.Element;
90
+ declare function MenubarShortcut({
91
+ className,
92
+ ...props
93
+ }: MenubarShortcutProps): JSX.Element;
40
94
  type MenubarArrowProps = ComponentProps<typeof MenubarPrimitive.Arrow>;
41
- declare function MenubarArrow({ className, ...props }: MenubarArrowProps): JSX.Element;
42
- export { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };
43
- export type { MenubarArrowProps, MenubarCheckboxItemProps, MenubarContentProps, MenubarGroupProps, MenubarItemProps, MenubarLabelProps, MenubarMenuProps, MenubarProps, MenubarRadioGroupProps, MenubarRadioItemProps, MenubarSeparatorProps, MenubarShortcutProps, MenubarSubContentProps, MenubarSubProps, MenubarSubTriggerProps, MenubarTriggerProps, };
95
+ declare function MenubarArrow({
96
+ className,
97
+ ...props
98
+ }: MenubarArrowProps): JSX.Element;
99
+ //#endregion
100
+ export { Menubar, MenubarArrow, type MenubarArrowProps, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarShortcut, type MenubarShortcutProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps };