@zimyo/ui 1.0.1 → 1.0.2

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 (101) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/ui/accordion.d.ts +5 -4
  3. package/dist/components/ui/accordion.js +21 -16
  4. package/dist/components/ui/alert-dialog.d.ts +12 -11
  5. package/dist/components/ui/alert-dialog.js +17 -16
  6. package/dist/components/ui/alert.d.ts +4 -3
  7. package/dist/components/ui/alert.js +4 -5
  8. package/dist/components/ui/aspect-ratio.d.ts +2 -2
  9. package/dist/components/ui/aspect-ratio.js +2 -2
  10. package/dist/components/ui/avatar.d.ts +4 -3
  11. package/dist/components/ui/avatar.js +4 -5
  12. package/dist/components/ui/badge.d.ts +3 -2
  13. package/dist/components/ui/badge.js +2 -3
  14. package/dist/components/ui/breadcrumb.d.ts +8 -7
  15. package/dist/components/ui/breadcrumb.js +19 -15
  16. package/dist/components/ui/button.d.ts +3 -2
  17. package/dist/components/ui/button.js +2 -3
  18. package/dist/components/ui/calendar.d.ts +3 -2
  19. package/dist/components/ui/calendar.js +13 -10
  20. package/dist/components/ui/card.d.ts +8 -7
  21. package/dist/components/ui/card.js +8 -9
  22. package/dist/components/ui/carousel.d.ts +6 -5
  23. package/dist/components/ui/carousel.js +34 -24
  24. package/dist/components/ui/chart.d.ts +5 -4
  25. package/dist/components/ui/chart.js +81 -65
  26. package/dist/components/ui/checkbox.d.ts +2 -1
  27. package/dist/components/ui/checkbox.js +11 -9
  28. package/dist/components/ui/collapsible.d.ts +4 -4
  29. package/dist/components/ui/collapsible.js +4 -4
  30. package/dist/components/ui/command.d.ts +10 -9
  31. package/dist/components/ui/command.js +34 -25
  32. package/dist/components/ui/context-menu.d.ts +16 -15
  33. package/dist/components/ui/context-menu.js +45 -32
  34. package/dist/components/ui/dialog.d.ts +11 -10
  35. package/dist/components/ui/dialog.js +26 -22
  36. package/dist/components/ui/drawer.d.ts +11 -10
  37. package/dist/components/ui/drawer.js +21 -19
  38. package/dist/components/ui/dropdown-menu.d.ts +16 -15
  39. package/dist/components/ui/dropdown-menu.js +46 -33
  40. package/dist/components/ui/form.d.ts +7 -6
  41. package/dist/components/ui/form.js +19 -15
  42. package/dist/components/ui/hover-card.d.ts +4 -3
  43. package/dist/components/ui/hover-card.js +12 -12
  44. package/dist/components/ui/input-otp.d.ts +5 -4
  45. package/dist/components/ui/input-otp.js +16 -11
  46. package/dist/components/ui/input.d.ts +2 -1
  47. package/dist/components/ui/input.js +2 -3
  48. package/dist/components/ui/label.d.ts +2 -1
  49. package/dist/components/ui/label.js +2 -3
  50. package/dist/components/ui/menubar.d.ts +17 -16
  51. package/dist/components/ui/menubar.js +49 -36
  52. package/dist/components/ui/navigation-menu.d.ts +9 -8
  53. package/dist/components/ui/navigation-menu.js +27 -21
  54. package/dist/components/ui/pagination.d.ts +8 -7
  55. package/dist/components/ui/pagination.js +28 -20
  56. package/dist/components/ui/popover.d.ts +5 -4
  57. package/dist/components/ui/popover.js +12 -11
  58. package/dist/components/ui/progress.d.ts +2 -1
  59. package/dist/components/ui/progress.js +11 -10
  60. package/dist/components/ui/radio-group.d.ts +3 -2
  61. package/dist/components/ui/radio-group.js +12 -10
  62. package/dist/components/ui/resizable.d.ts +4 -3
  63. package/dist/components/ui/resizable.js +12 -10
  64. package/dist/components/ui/scroll-area.d.ts +3 -2
  65. package/dist/components/ui/scroll-area.js +15 -11
  66. package/dist/components/ui/select.d.ts +11 -10
  67. package/dist/components/ui/select.js +50 -32
  68. package/dist/components/ui/separator.d.ts +2 -1
  69. package/dist/components/ui/separator.js +2 -3
  70. package/dist/components/ui/sheet.d.ts +9 -8
  71. package/dist/components/ui/sheet.js +26 -21
  72. package/dist/components/ui/sidebar.d.ts +24 -23
  73. package/dist/components/ui/sidebar.js +112 -85
  74. package/dist/components/ui/skeleton.d.ts +2 -2
  75. package/dist/components/ui/skeleton.js +2 -2
  76. package/dist/components/ui/slider.d.ts +2 -1
  77. package/dist/components/ui/slider.js +17 -15
  78. package/dist/components/ui/sonner.d.ts +2 -2
  79. package/dist/components/ui/sonner.js +2 -2
  80. package/dist/components/ui/switch.d.ts +2 -1
  81. package/dist/components/ui/switch.js +7 -6
  82. package/dist/components/ui/table.d.ts +9 -8
  83. package/dist/components/ui/table.js +15 -15
  84. package/dist/components/ui/tabs.d.ts +5 -4
  85. package/dist/components/ui/tabs.js +5 -6
  86. package/dist/components/ui/textarea.d.ts +2 -1
  87. package/dist/components/ui/textarea.js +2 -3
  88. package/dist/components/ui/toggle-group.d.ts +3 -2
  89. package/dist/components/ui/toggle-group.js +15 -10
  90. package/dist/components/ui/toggle.d.ts +2 -1
  91. package/dist/components/ui/toggle.js +2 -3
  92. package/dist/components/ui/tooltip.d.ts +5 -4
  93. package/dist/components/ui/tooltip.js +19 -14
  94. package/dist/index.d.ts +3 -1
  95. package/dist/index.js +1 -0
  96. package/dist/providers/ThemeProvider.d.ts +12 -0
  97. package/dist/providers/ThemeProvider.js +27 -0
  98. package/dist/providers/index.d.ts +3 -0
  99. package/dist/styles.css +1 -1
  100. package/package.json +5 -1
  101. package/dist/_virtual/_rollupPluginBabelHelpers.js +0 -11
@@ -1,4 +1,5 @@
1
1
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
3
  import { VariantProps } from 'class-variance-authority';
3
4
  import * as React from 'react';
4
5
  import { Button } from './button.js';
@@ -21,30 +22,30 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
21
22
  defaultOpen?: boolean;
22
23
  open?: boolean;
23
24
  onOpenChange?: (open: boolean) => void;
24
- }): React.JSX.Element;
25
+ }): react_jsx_runtime.JSX.Element;
25
26
  declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
26
27
  side?: "left" | "right";
27
28
  variant?: "sidebar" | "floating" | "inset";
28
29
  collapsible?: "offcanvas" | "icon" | "none";
29
- }): React.JSX.Element;
30
- declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
31
- declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): React.JSX.Element;
32
- declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): React.JSX.Element;
33
- declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
34
- declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
35
- declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
36
- declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
37
- declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
38
- declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
30
+ }): react_jsx_runtime.JSX.Element;
31
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
32
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
33
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
34
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
35
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
36
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
37
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
38
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
39
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
39
40
  declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
40
41
  asChild?: boolean;
41
- }): React.JSX.Element;
42
+ }): react_jsx_runtime.JSX.Element;
42
43
  declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
43
44
  asChild?: boolean;
44
- }): React.JSX.Element;
45
- declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
46
- declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
47
- declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
45
+ }): react_jsx_runtime.JSX.Element;
46
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
47
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
48
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
48
49
  declare const sidebarMenuButtonVariants: (props?: ({
49
50
  variant?: "default" | "outline" | null | undefined;
50
51
  size?: "default" | "sm" | "lg" | null | undefined;
@@ -53,21 +54,21 @@ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip,
53
54
  asChild?: boolean;
54
55
  isActive?: boolean;
55
56
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
56
- } & VariantProps<typeof sidebarMenuButtonVariants>): React.JSX.Element;
57
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
57
58
  declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
58
59
  asChild?: boolean;
59
60
  showOnHover?: boolean;
60
- }): React.JSX.Element;
61
- declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
61
+ }): react_jsx_runtime.JSX.Element;
62
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
62
63
  declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
63
64
  showIcon?: boolean;
64
- }): React.JSX.Element;
65
- declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
66
- declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
65
+ }): react_jsx_runtime.JSX.Element;
66
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
67
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
67
68
  declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
68
69
  asChild?: boolean;
69
70
  size?: "sm" | "md";
70
71
  isActive?: boolean;
71
- }): React.JSX.Element;
72
+ }): react_jsx_runtime.JSX.Element;
72
73
 
73
74
  export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
@@ -1,5 +1,5 @@
1
- import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
1
  import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
4
4
  import { PanelLeftIcon } from 'lucide-react';
5
5
  import { Slot } from 'radix-ui';
@@ -79,18 +79,22 @@ function SidebarProvider(_a) {
79
79
  setOpenMobile,
80
80
  toggleSidebar
81
81
  }), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
82
- return /*#__PURE__*/React.createElement(SidebarContext.Provider, {
83
- value: contextValue
84
- }, /*#__PURE__*/React.createElement(TooltipProvider, {
85
- delayDuration: 0
86
- }, /*#__PURE__*/React.createElement("div", _extends({
87
- "data-slot": "sidebar-wrapper",
88
- style: Object.assign({
89
- "--sidebar-width": SIDEBAR_WIDTH,
90
- "--sidebar-width-icon": SIDEBAR_WIDTH_ICON
91
- }, style),
92
- className: cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className)
93
- }, props), children)));
82
+ return jsx(SidebarContext.Provider, {
83
+ value: contextValue,
84
+ children: jsx(TooltipProvider, {
85
+ delayDuration: 0,
86
+ children: jsx("div", Object.assign({
87
+ "data-slot": "sidebar-wrapper",
88
+ style: Object.assign({
89
+ "--sidebar-width": SIDEBAR_WIDTH,
90
+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON
91
+ }, style),
92
+ className: cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className)
93
+ }, props, {
94
+ children: children
95
+ }))
96
+ })
97
+ });
94
98
  }
95
99
  function Sidebar(_a) {
96
100
  var {
@@ -108,50 +112,65 @@ function Sidebar(_a) {
108
112
  setOpenMobile
109
113
  } = useSidebar();
110
114
  if (collapsible === "none") {
111
- return /*#__PURE__*/React.createElement("div", _extends({
115
+ return jsx("div", Object.assign({
112
116
  "data-slot": "sidebar",
113
117
  className: cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className)
114
- }, props), children);
118
+ }, props, {
119
+ children: children
120
+ }));
115
121
  }
116
122
  if (isMobile) {
117
- return /*#__PURE__*/React.createElement(Sheet, _extends({
123
+ return jsx(Sheet, Object.assign({
118
124
  open: openMobile,
119
125
  onOpenChange: setOpenMobile
120
- }, props), /*#__PURE__*/React.createElement(SheetContent, {
121
- "data-sidebar": "sidebar",
122
- "data-slot": "sidebar",
123
- "data-mobile": "true",
124
- className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
125
- style: {
126
- "--sidebar-width": SIDEBAR_WIDTH_MOBILE
127
- },
128
- side: side
129
- }, /*#__PURE__*/React.createElement(SheetHeader, {
130
- className: "sr-only"
131
- }, /*#__PURE__*/React.createElement(SheetTitle, null, "Sidebar"), /*#__PURE__*/React.createElement(SheetDescription, null, "Displays the mobile sidebar.")), /*#__PURE__*/React.createElement("div", {
132
- className: "flex h-full w-full flex-col"
133
- }, children)));
126
+ }, props, {
127
+ children: jsxs(SheetContent, {
128
+ "data-sidebar": "sidebar",
129
+ "data-slot": "sidebar",
130
+ "data-mobile": "true",
131
+ className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
132
+ style: {
133
+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE
134
+ },
135
+ side: side,
136
+ children: [jsxs(SheetHeader, {
137
+ className: "sr-only",
138
+ children: [jsx(SheetTitle, {
139
+ children: "Sidebar"
140
+ }), jsx(SheetDescription, {
141
+ children: "Displays the mobile sidebar."
142
+ })]
143
+ }), jsx("div", {
144
+ className: "flex h-full w-full flex-col",
145
+ children: children
146
+ })]
147
+ })
148
+ }));
134
149
  }
135
- return /*#__PURE__*/React.createElement("div", {
150
+ return jsxs("div", {
136
151
  className: "group peer text-sidebar-foreground hidden md:block",
137
152
  "data-state": state,
138
153
  "data-collapsible": state === "collapsed" ? collapsible : "",
139
154
  "data-variant": variant,
140
155
  "data-side": side,
141
- "data-slot": "sidebar"
142
- }, /*#__PURE__*/React.createElement("div", {
143
- "data-slot": "sidebar-gap",
144
- className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
145
- }), /*#__PURE__*/React.createElement("div", _extends({
146
- "data-slot": "sidebar-container",
147
- className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
148
- // Adjust the padding for floating and inset variants.
149
- variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className)
150
- }, props), /*#__PURE__*/React.createElement("div", {
151
- "data-sidebar": "sidebar",
152
- "data-slot": "sidebar-inner",
153
- className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
154
- }, children)));
156
+ "data-slot": "sidebar",
157
+ children: [jsx("div", {
158
+ "data-slot": "sidebar-gap",
159
+ className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
160
+ }), jsx("div", Object.assign({
161
+ "data-slot": "sidebar-container",
162
+ className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
163
+ // Adjust the padding for floating and inset variants.
164
+ variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className)
165
+ }, props, {
166
+ children: jsx("div", {
167
+ "data-sidebar": "sidebar",
168
+ "data-slot": "sidebar-inner",
169
+ className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
170
+ children: children
171
+ })
172
+ }))]
173
+ });
155
174
  }
156
175
  function SidebarTrigger(_a) {
157
176
  var {
@@ -162,7 +181,7 @@ function SidebarTrigger(_a) {
162
181
  const {
163
182
  toggleSidebar
164
183
  } = useSidebar();
165
- return /*#__PURE__*/React.createElement(Button, _extends({
184
+ return jsxs(Button, Object.assign({
166
185
  "data-sidebar": "trigger",
167
186
  "data-slot": "sidebar-trigger",
168
187
  variant: "ghost",
@@ -172,9 +191,12 @@ function SidebarTrigger(_a) {
172
191
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
173
192
  toggleSidebar();
174
193
  }
175
- }, props), /*#__PURE__*/React.createElement(PanelLeftIcon, null), /*#__PURE__*/React.createElement("span", {
176
- className: "sr-only"
177
- }, "Toggle Sidebar"));
194
+ }, props, {
195
+ children: [jsx(PanelLeftIcon, {}), jsx("span", {
196
+ className: "sr-only",
197
+ children: "Toggle Sidebar"
198
+ })]
199
+ }));
178
200
  }
179
201
  function SidebarRail(_a) {
180
202
  var {
@@ -184,7 +206,7 @@ function SidebarRail(_a) {
184
206
  const {
185
207
  toggleSidebar
186
208
  } = useSidebar();
187
- return /*#__PURE__*/React.createElement("button", _extends({
209
+ return jsx("button", Object.assign({
188
210
  "data-sidebar": "rail",
189
211
  "data-slot": "sidebar-rail",
190
212
  "aria-label": "Toggle Sidebar",
@@ -199,7 +221,7 @@ function SidebarInset(_a) {
199
221
  className
200
222
  } = _a,
201
223
  props = __rest(_a, ["className"]);
202
- return /*#__PURE__*/React.createElement("main", _extends({
224
+ return jsx("main", Object.assign({
203
225
  "data-slot": "sidebar-inset",
204
226
  className: cn("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", className)
205
227
  }, props));
@@ -209,7 +231,7 @@ function SidebarInput(_a) {
209
231
  className
210
232
  } = _a,
211
233
  props = __rest(_a, ["className"]);
212
- return /*#__PURE__*/React.createElement(Input, _extends({
234
+ return jsx(Input, Object.assign({
213
235
  "data-slot": "sidebar-input",
214
236
  "data-sidebar": "input",
215
237
  className: cn("bg-background h-8 w-full shadow-none", className)
@@ -220,7 +242,7 @@ function SidebarHeader(_a) {
220
242
  className
221
243
  } = _a,
222
244
  props = __rest(_a, ["className"]);
223
- return /*#__PURE__*/React.createElement("div", _extends({
245
+ return jsx("div", Object.assign({
224
246
  "data-slot": "sidebar-header",
225
247
  "data-sidebar": "header",
226
248
  className: cn("flex flex-col gap-2 p-2", className)
@@ -231,7 +253,7 @@ function SidebarFooter(_a) {
231
253
  className
232
254
  } = _a,
233
255
  props = __rest(_a, ["className"]);
234
- return /*#__PURE__*/React.createElement("div", _extends({
256
+ return jsx("div", Object.assign({
235
257
  "data-slot": "sidebar-footer",
236
258
  "data-sidebar": "footer",
237
259
  className: cn("flex flex-col gap-2 p-2", className)
@@ -242,7 +264,7 @@ function SidebarSeparator(_a) {
242
264
  className
243
265
  } = _a,
244
266
  props = __rest(_a, ["className"]);
245
- return /*#__PURE__*/React.createElement(Separator, _extends({
267
+ return jsx(Separator, Object.assign({
246
268
  "data-slot": "sidebar-separator",
247
269
  "data-sidebar": "separator",
248
270
  className: cn("bg-sidebar-border mx-2 w-auto", className)
@@ -253,7 +275,7 @@ function SidebarContent(_a) {
253
275
  className
254
276
  } = _a,
255
277
  props = __rest(_a, ["className"]);
256
- return /*#__PURE__*/React.createElement("div", _extends({
278
+ return jsx("div", Object.assign({
257
279
  "data-slot": "sidebar-content",
258
280
  "data-sidebar": "content",
259
281
  className: cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className)
@@ -264,7 +286,7 @@ function SidebarGroup(_a) {
264
286
  className
265
287
  } = _a,
266
288
  props = __rest(_a, ["className"]);
267
- return /*#__PURE__*/React.createElement("div", _extends({
289
+ return jsx("div", Object.assign({
268
290
  "data-slot": "sidebar-group",
269
291
  "data-sidebar": "group",
270
292
  className: cn("relative flex w-full min-w-0 flex-col p-2", className)
@@ -277,7 +299,7 @@ function SidebarGroupLabel(_a) {
277
299
  } = _a,
278
300
  props = __rest(_a, ["className", "asChild"]);
279
301
  const Comp = asChild ? Slot.Slot : "div";
280
- return /*#__PURE__*/React.createElement(Comp, _extends({
302
+ return jsx(Comp, Object.assign({
281
303
  "data-slot": "sidebar-group-label",
282
304
  "data-sidebar": "group-label",
283
305
  className: cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", className)
@@ -290,7 +312,7 @@ function SidebarGroupAction(_a) {
290
312
  } = _a,
291
313
  props = __rest(_a, ["className", "asChild"]);
292
314
  const Comp = asChild ? Slot.Slot : "button";
293
- return /*#__PURE__*/React.createElement(Comp, _extends({
315
+ return jsx(Comp, Object.assign({
294
316
  "data-slot": "sidebar-group-action",
295
317
  "data-sidebar": "group-action",
296
318
  className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
@@ -303,7 +325,7 @@ function SidebarGroupContent(_a) {
303
325
  className
304
326
  } = _a,
305
327
  props = __rest(_a, ["className"]);
306
- return /*#__PURE__*/React.createElement("div", _extends({
328
+ return jsx("div", Object.assign({
307
329
  "data-slot": "sidebar-group-content",
308
330
  "data-sidebar": "group-content",
309
331
  className: cn("w-full text-sm", className)
@@ -314,7 +336,7 @@ function SidebarMenu(_a) {
314
336
  className
315
337
  } = _a,
316
338
  props = __rest(_a, ["className"]);
317
- return /*#__PURE__*/React.createElement("ul", _extends({
339
+ return jsx("ul", Object.assign({
318
340
  "data-slot": "sidebar-menu",
319
341
  "data-sidebar": "menu",
320
342
  className: cn("flex w-full min-w-0 flex-col gap-1", className)
@@ -325,7 +347,7 @@ function SidebarMenuItem(_a) {
325
347
  className
326
348
  } = _a,
327
349
  props = __rest(_a, ["className"]);
328
- return /*#__PURE__*/React.createElement("li", _extends({
350
+ return jsx("li", Object.assign({
329
351
  "data-slot": "sidebar-menu-item",
330
352
  "data-sidebar": "menu-item",
331
353
  className: cn("group/menu-item relative", className)
@@ -363,7 +385,7 @@ function SidebarMenuButton(_a) {
363
385
  isMobile,
364
386
  state
365
387
  } = useSidebar();
366
- const button = /*#__PURE__*/React.createElement(Comp, _extends({
388
+ const button = jsx(Comp, Object.assign({
367
389
  "data-slot": "sidebar-menu-button",
368
390
  "data-sidebar": "menu-button",
369
391
  "data-size": size,
@@ -381,13 +403,16 @@ function SidebarMenuButton(_a) {
381
403
  children: tooltip
382
404
  };
383
405
  }
384
- return /*#__PURE__*/React.createElement(Tooltip, null, /*#__PURE__*/React.createElement(TooltipTrigger, {
385
- asChild: true
386
- }, button), /*#__PURE__*/React.createElement(TooltipContent, _extends({
387
- side: "right",
388
- align: "center",
389
- hidden: state !== "collapsed" || isMobile
390
- }, tooltip)));
406
+ return jsxs(Tooltip, {
407
+ children: [jsx(TooltipTrigger, {
408
+ asChild: true,
409
+ children: button
410
+ }), jsx(TooltipContent, Object.assign({
411
+ side: "right",
412
+ align: "center",
413
+ hidden: state !== "collapsed" || isMobile
414
+ }, tooltip))]
415
+ });
391
416
  }
392
417
  function SidebarMenuAction(_a) {
393
418
  var {
@@ -397,7 +422,7 @@ function SidebarMenuAction(_a) {
397
422
  } = _a,
398
423
  props = __rest(_a, ["className", "asChild", "showOnHover"]);
399
424
  const Comp = asChild ? Slot.Slot : "button";
400
- return /*#__PURE__*/React.createElement(Comp, _extends({
425
+ return jsx(Comp, Object.assign({
401
426
  "data-slot": "sidebar-menu-action",
402
427
  "data-sidebar": "menu-action",
403
428
  className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
@@ -410,7 +435,7 @@ function SidebarMenuBadge(_a) {
410
435
  className
411
436
  } = _a,
412
437
  props = __rest(_a, ["className"]);
413
- return /*#__PURE__*/React.createElement("div", _extends({
438
+ return jsx("div", Object.assign({
414
439
  "data-slot": "sidebar-menu-badge",
415
440
  "data-sidebar": "menu-badge",
416
441
  className: cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", className)
@@ -426,19 +451,21 @@ function SidebarMenuSkeleton(_a) {
426
451
  const width = React.useMemo(() => {
427
452
  return `${Math.floor(Math.random() * 40) + 50}%`;
428
453
  }, []);
429
- return /*#__PURE__*/React.createElement("div", _extends({
454
+ return jsxs("div", Object.assign({
430
455
  "data-slot": "sidebar-menu-skeleton",
431
456
  "data-sidebar": "menu-skeleton",
432
457
  className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
433
- }, props), showIcon && /*#__PURE__*/React.createElement(Skeleton, {
434
- className: "size-4 rounded-md",
435
- "data-sidebar": "menu-skeleton-icon"
436
- }), /*#__PURE__*/React.createElement(Skeleton, {
437
- className: "h-4 max-w-(--skeleton-width) flex-1",
438
- "data-sidebar": "menu-skeleton-text",
439
- style: {
440
- "--skeleton-width": width
441
- }
458
+ }, props, {
459
+ children: [showIcon && jsx(Skeleton, {
460
+ className: "size-4 rounded-md",
461
+ "data-sidebar": "menu-skeleton-icon"
462
+ }), jsx(Skeleton, {
463
+ className: "h-4 max-w-(--skeleton-width) flex-1",
464
+ "data-sidebar": "menu-skeleton-text",
465
+ style: {
466
+ "--skeleton-width": width
467
+ }
468
+ })]
442
469
  }));
443
470
  }
444
471
  function SidebarMenuSub(_a) {
@@ -446,7 +473,7 @@ function SidebarMenuSub(_a) {
446
473
  className
447
474
  } = _a,
448
475
  props = __rest(_a, ["className"]);
449
- return /*#__PURE__*/React.createElement("ul", _extends({
476
+ return jsx("ul", Object.assign({
450
477
  "data-slot": "sidebar-menu-sub",
451
478
  "data-sidebar": "menu-sub",
452
479
  className: cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", className)
@@ -457,7 +484,7 @@ function SidebarMenuSubItem(_a) {
457
484
  className
458
485
  } = _a,
459
486
  props = __rest(_a, ["className"]);
460
- return /*#__PURE__*/React.createElement("li", _extends({
487
+ return jsx("li", Object.assign({
461
488
  "data-slot": "sidebar-menu-sub-item",
462
489
  "data-sidebar": "menu-sub-item",
463
490
  className: cn("group/menu-sub-item relative", className)
@@ -472,7 +499,7 @@ function SidebarMenuSubButton(_a) {
472
499
  } = _a,
473
500
  props = __rest(_a, ["asChild", "size", "isActive", "className"]);
474
501
  const Comp = asChild ? Slot.Slot : "a";
475
- return /*#__PURE__*/React.createElement(Comp, _extends({
502
+ return jsx(Comp, Object.assign({
476
503
  "data-slot": "sidebar-menu-sub-button",
477
504
  "data-sidebar": "menu-sub-button",
478
505
  "data-size": size,
@@ -1,5 +1,5 @@
1
- import * as React$1 from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
3
+ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
4
4
 
5
5
  export { Skeleton };
@@ -1,5 +1,5 @@
1
- import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
1
  import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
3
  import { cn } from '../../lib/utils.js';
4
4
 
5
5
  function Skeleton(_a) {
@@ -7,7 +7,7 @@ function Skeleton(_a) {
7
7
  className
8
8
  } = _a,
9
9
  props = __rest(_a, ["className"]);
10
- return /*#__PURE__*/React.createElement("div", _extends({
10
+ return jsx("div", Object.assign({
11
11
  "data-slot": "skeleton",
12
12
  className: cn("bg-accent animate-pulse rounded-md", className)
13
13
  }, props));
@@ -1,6 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import { Slider as Slider$1 } from 'radix-ui';
2
3
  import * as React from 'react';
3
4
 
4
- declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof Slider$1.Root>): React.JSX.Element;
5
+ declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime.JSX.Element;
5
6
 
6
7
  export { Slider };
@@ -1,5 +1,5 @@
1
- import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
1
  import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { Slider as Slider$1 } from 'radix-ui';
4
4
  import * as React from 'react';
5
5
  import { cn } from '../../lib/utils.js';
@@ -14,26 +14,28 @@ function Slider(_a) {
14
14
  } = _a,
15
15
  props = __rest(_a, ["className", "defaultValue", "value", "min", "max"]);
16
16
  const _values = React.useMemo(() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max], [value, defaultValue, min, max]);
17
- return /*#__PURE__*/React.createElement(Slider$1.Root, _extends({
17
+ return jsxs(Slider$1.Root, Object.assign({
18
18
  "data-slot": "slider",
19
19
  defaultValue: defaultValue,
20
20
  value: value,
21
21
  min: min,
22
22
  max: max,
23
23
  className: cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", className)
24
- }, props), /*#__PURE__*/React.createElement(Slider$1.Track, {
25
- "data-slot": "slider-track",
26
- className: cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5")
27
- }, /*#__PURE__*/React.createElement(Slider$1.Range, {
28
- "data-slot": "slider-range",
29
- className: cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
30
- })), Array.from({
31
- length: _values.length
32
- }, (_, index) => /*#__PURE__*/React.createElement(Slider$1.Thumb, {
33
- "data-slot": "slider-thumb",
34
- key: index,
35
- className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
36
- })));
24
+ }, props, {
25
+ children: [jsx(Slider$1.Track, {
26
+ "data-slot": "slider-track",
27
+ className: cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
28
+ children: jsx(Slider$1.Range, {
29
+ "data-slot": "slider-range",
30
+ className: cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
31
+ })
32
+ }), Array.from({
33
+ length: _values.length
34
+ }, (_, index) => jsx(Slider$1.Thumb, {
35
+ "data-slot": "slider-thumb",
36
+ className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
37
+ }, index))]
38
+ }));
37
39
  }
38
40
 
39
41
  export { Slider };
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ToasterProps } from 'sonner';
3
3
 
4
- declare const Toaster: ({ ...props }: ToasterProps) => React.JSX.Element;
4
+ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
5
5
 
6
6
  export { Toaster };
@@ -1,10 +1,10 @@
1
- import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
1
  import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
3
  import { Toaster as Toaster$1 } from '../../node_modules/sonner/dist/index.js';
4
4
 
5
5
  const Toaster = _a => {
6
6
  var props = __rest(_a, []);
7
- return /*#__PURE__*/React.createElement(Toaster$1, _extends({
7
+ return jsx(Toaster$1, Object.assign({
8
8
  theme: "light",
9
9
  className: "toaster group",
10
10
  style: {
@@ -1,6 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import { Switch as Switch$1 } from 'radix-ui';
2
3
  import * as React from 'react';
3
4
 
4
- declare function Switch({ className, ...props }: React.ComponentProps<typeof Switch$1.Root>): React.JSX.Element;
5
+ declare function Switch({ className, ...props }: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime.JSX.Element;
5
6
 
6
7
  export { Switch };
@@ -1,7 +1,6 @@
1
- import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
1
  import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
3
  import { Switch as Switch$1 } from 'radix-ui';
4
- import * as React from 'react';
5
4
  import { cn } from '../../lib/utils.js';
6
5
 
7
6
  function Switch(_a) {
@@ -9,12 +8,14 @@ function Switch(_a) {
9
8
  className
10
9
  } = _a,
11
10
  props = __rest(_a, ["className"]);
12
- return /*#__PURE__*/React.createElement(Switch$1.Root, _extends({
11
+ return jsx(Switch$1.Root, Object.assign({
13
12
  "data-slot": "switch",
14
13
  className: cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className)
15
- }, props), /*#__PURE__*/React.createElement(Switch$1.Thumb, {
16
- "data-slot": "switch-thumb",
17
- className: cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
14
+ }, props, {
15
+ children: jsx(Switch$1.Thumb, {
16
+ "data-slot": "switch-thumb",
17
+ className: cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
18
+ })
18
19
  }));
19
20
  }
20
21