lecom-ui 4.3.6 → 4.3.7

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 (47) hide show
  1. package/dist/components/Accordion/Accordion.js +29 -32
  2. package/dist/components/Button/Button.js +8 -9
  3. package/dist/components/Button/CustomButton.js +4 -5
  4. package/dist/components/Card/Card.js +6 -7
  5. package/dist/components/Checkbox/Checkbox.js +26 -30
  6. package/dist/components/CustomIcon/Icons/CadastroFacil.js +5 -15
  7. package/dist/components/CustomIcon/Icons/LogoLecom.js +12 -15
  8. package/dist/components/CustomIcon/Icons/LogoLecomBrand.js +5 -8
  9. package/dist/components/CustomIcon/Icons/ModoTeste.js +5 -13
  10. package/dist/components/CustomIcon/Icons/Rpa.js +5 -17
  11. package/dist/components/DataTable/DataTable.js +70 -80
  12. package/dist/components/DataTable/DataTable.utils.js +15 -17
  13. package/dist/components/Dialog/Dialog.js +18 -27
  14. package/dist/components/DropdownMenu/DropdownMenu.js +22 -29
  15. package/dist/components/ErrorEmptyDisplay/ErrorEmptyDisplay.js +15 -20
  16. package/dist/components/Header/Header.js +30 -46
  17. package/dist/components/Header/HelpMenu.js +38 -49
  18. package/dist/components/Header/ImgBrand.js +1 -2
  19. package/dist/components/Header/ModulesMenu.js +48 -62
  20. package/dist/components/Header/SocialMenu.js +5 -5
  21. package/dist/components/Header/UserMenu.js +45 -74
  22. package/dist/components/Input/Input.js +1 -10
  23. package/dist/components/Layout/Layout.js +42 -68
  24. package/dist/components/Notification/Notification.js +7 -8
  25. package/dist/components/Notification/NotificationBase.js +5 -5
  26. package/dist/components/Notification/NotificationCallout.js +26 -32
  27. package/dist/components/Notification/NotificationCloseButton.js +1 -2
  28. package/dist/components/Notification/NotificationContent.js +18 -24
  29. package/dist/components/Notification/NotificationIcon.js +5 -5
  30. package/dist/components/Notification/NotificationInline.js +20 -23
  31. package/dist/components/Notification/NotificationToast.js +25 -28
  32. package/dist/components/Pagination/Pagination.js +42 -61
  33. package/dist/components/Popover/Popover.js +2 -3
  34. package/dist/components/RadioGroup/RadioGroup.js +22 -26
  35. package/dist/components/ScrollArea/ScrollArea.js +10 -13
  36. package/dist/components/Select/Select.js +36 -43
  37. package/dist/components/Separator/Separator.js +1 -2
  38. package/dist/components/Sheet/Sheet.js +14 -23
  39. package/dist/components/Sidebar/Sidebar.js +90 -104
  40. package/dist/components/Skeleton/Skeleton.js +2 -2
  41. package/dist/components/Spin/Spin.js +22 -25
  42. package/dist/components/Switch/Switch.js +11 -12
  43. package/dist/components/Tag/Tag.js +4 -5
  44. package/dist/components/Tooltip/Tooltip.js +5 -8
  45. package/dist/components/Typography/Typography.js +5 -5
  46. package/dist/index.d.ts +15 -16
  47. package/package.json +1 -1
@@ -1,23 +1,20 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
1
  import * as React from 'react';
3
2
  import { cn } from '../../lib/utils.js';
4
3
  import { Root, Viewport, Corner, ScrollAreaScrollbar, ScrollAreaThumb } from '../../node_modules/@radix-ui/react-scroll-area/dist/index.js';
5
4
 
6
- const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
5
+ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
7
6
  Root,
8
7
  {
9
8
  ref,
10
9
  className: cn("relative overflow-hidden", className),
11
- ...props,
12
- children: [
13
- /* @__PURE__ */ jsx(Viewport, { className: "h-full w-full rounded-[inherit]", children }),
14
- /* @__PURE__ */ jsx(ScrollBar, {}),
15
- /* @__PURE__ */ jsx(Corner, {})
16
- ]
17
- }
10
+ ...props
11
+ },
12
+ /* @__PURE__ */ React.createElement(Viewport, { className: "h-full w-full rounded-[inherit]" }, children),
13
+ /* @__PURE__ */ React.createElement(ScrollBar, null),
14
+ /* @__PURE__ */ React.createElement(Corner, null)
18
15
  ));
19
16
  ScrollArea.displayName = Root.displayName;
20
- const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
17
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
21
18
  ScrollAreaScrollbar,
22
19
  {
23
20
  ref,
@@ -28,9 +25,9 @@ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...pr
28
25
  orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
29
26
  className
30
27
  ),
31
- ...props,
32
- children: /* @__PURE__ */ jsx(ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
33
- }
28
+ ...props
29
+ },
30
+ /* @__PURE__ */ React.createElement(ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
34
31
  ));
35
32
  ScrollBar.displayName = ScrollAreaScrollbar.displayName;
36
33
 
@@ -1,4 +1,3 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
1
  import * as React from 'react';
3
2
  import { cn } from '../../lib/utils.js';
4
3
  import { Trigger, Icon, ScrollUpButton, ScrollDownButton, Portal, Content as Content2, Viewport, Label, Item, ItemIndicator, ItemText, Separator, Root as Root2, Value } from '../../node_modules/@radix-ui/react-select/dist/index.js';
@@ -8,7 +7,7 @@ import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
8
7
 
9
8
  const Select = Root2;
10
9
  const SelectValue = Value;
11
- const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
10
+ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
12
11
  Trigger,
13
12
  {
14
13
  ref,
@@ -16,15 +15,13 @@ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref)
16
15
  "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
17
16
  className
18
17
  ),
19
- ...props,
20
- children: [
21
- children,
22
- /* @__PURE__ */ jsx(Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
23
- ]
24
- }
18
+ ...props
19
+ },
20
+ children,
21
+ /* @__PURE__ */ React.createElement(Icon, { asChild: true }, /* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4 opacity-50" }))
25
22
  ));
26
23
  SelectTrigger.displayName = Trigger.displayName;
27
- const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
24
+ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
28
25
  ScrollUpButton,
29
26
  {
30
27
  ref,
@@ -32,12 +29,12 @@ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
32
29
  "flex cursor-default items-center justify-center py-1",
33
30
  className
34
31
  ),
35
- ...props,
36
- children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
37
- }
32
+ ...props
33
+ },
34
+ /* @__PURE__ */ React.createElement(ChevronUp, { className: "h-4 w-4" })
38
35
  ));
39
36
  SelectScrollUpButton.displayName = ScrollUpButton.displayName;
40
- const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
37
+ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
41
38
  ScrollDownButton,
42
39
  {
43
40
  ref,
@@ -45,12 +42,12 @@ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) =
45
42
  "flex cursor-default items-center justify-center py-1",
46
43
  className
47
44
  ),
48
- ...props,
49
- children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
50
- }
45
+ ...props
46
+ },
47
+ /* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4" })
51
48
  ));
52
49
  SelectScrollDownButton.displayName = ScrollDownButton.displayName;
53
- const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsxs(
50
+ const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ React.createElement(Portal, null, /* @__PURE__ */ React.createElement(
54
51
  Content2,
55
52
  {
56
53
  ref,
@@ -60,25 +57,23 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
60
57
  className
61
58
  ),
62
59
  position,
63
- ...props,
64
- children: [
65
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
66
- /* @__PURE__ */ jsx(
67
- Viewport,
68
- {
69
- className: cn(
70
- "p-1",
71
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
72
- ),
73
- children
74
- }
75
- ),
76
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
77
- ]
78
- }
79
- ) }));
60
+ ...props
61
+ },
62
+ /* @__PURE__ */ React.createElement(SelectScrollUpButton, null),
63
+ /* @__PURE__ */ React.createElement(
64
+ Viewport,
65
+ {
66
+ className: cn(
67
+ "p-1",
68
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
69
+ )
70
+ },
71
+ children
72
+ ),
73
+ /* @__PURE__ */ React.createElement(SelectScrollDownButton, null)
74
+ )));
80
75
  SelectContent.displayName = Content2.displayName;
81
- const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
76
+ const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
82
77
  Label,
83
78
  {
84
79
  ref,
@@ -87,7 +82,7 @@ const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
87
82
  }
88
83
  ));
89
84
  SelectLabel.displayName = Label.displayName;
90
- const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
85
+ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
91
86
  Item,
92
87
  {
93
88
  ref,
@@ -95,15 +90,13 @@ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
95
90
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
96
91
  className
97
92
  ),
98
- ...props,
99
- children: [
100
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
101
- /* @__PURE__ */ jsx(ItemText, { children })
102
- ]
103
- }
93
+ ...props
94
+ },
95
+ /* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(ItemIndicator, null, /* @__PURE__ */ React.createElement(Check, { className: "h-4 w-4" }))),
96
+ /* @__PURE__ */ React.createElement(ItemText, null, children)
104
97
  ));
105
98
  SelectItem.displayName = Item.displayName;
106
- const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
99
+ const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
107
100
  Separator,
108
101
  {
109
102
  ref,
@@ -1,10 +1,9 @@
1
- import { jsx } from 'react/jsx-runtime';
2
1
  import * as React from 'react';
3
2
  import { cn } from '../../lib/utils.js';
4
3
  import { Root } from '../../node_modules/@radix-ui/react-separator/dist/index.js';
5
4
 
6
5
  const Separator = React.forwardRef(
7
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
6
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React.createElement(
8
7
  Root,
9
8
  {
10
9
  ref,
@@ -1,4 +1,3 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
1
  import * as React from 'react';
3
2
  import { cn } from '../../lib/utils.js';
4
3
  import { Overlay, Portal, Content, DialogTitle, Close, Title, Description, Root } from '../../node_modules/@radix-ui/react-dialog/dist/index.js';
@@ -7,7 +6,7 @@ import X from '../../node_modules/lucide-react/dist/esm/icons/x.js';
7
6
 
8
7
  const Sheet = Root;
9
8
  const SheetPortal = Portal;
10
- const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
9
+ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
11
10
  Overlay,
12
11
  {
13
12
  className: cn(
@@ -35,27 +34,19 @@ const sheetVariants = cva(
35
34
  }
36
35
  }
37
36
  );
38
- const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
39
- /* @__PURE__ */ jsx(SheetOverlay, {}),
40
- /* @__PURE__ */ jsxs(
41
- Content,
42
- {
43
- ref,
44
- className: cn(sheetVariants({ side }), className),
45
- ...props,
46
- children: [
47
- /* @__PURE__ */ jsx(DialogTitle, {}),
48
- children,
49
- /* @__PURE__ */ jsxs(Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
50
- /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
51
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
52
- ] })
53
- ]
54
- }
55
- )
56
- ] }));
37
+ const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(SheetPortal, null, /* @__PURE__ */ React.createElement(SheetOverlay, null), /* @__PURE__ */ React.createElement(
38
+ Content,
39
+ {
40
+ ref,
41
+ className: cn(sheetVariants({ side }), className),
42
+ ...props
43
+ },
44
+ /* @__PURE__ */ React.createElement(DialogTitle, null),
45
+ children,
46
+ /* @__PURE__ */ React.createElement(Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary" }, /* @__PURE__ */ React.createElement(X, { className: "h-4 w-4" }), /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"))
47
+ )));
57
48
  SheetContent.displayName = Content.displayName;
58
- const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
49
+ const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
59
50
  Title,
60
51
  {
61
52
  ref,
@@ -64,7 +55,7 @@ const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
64
55
  }
65
56
  ));
66
57
  SheetTitle.displayName = Title.displayName;
67
- const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
58
+ const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
68
59
  Description,
69
60
  {
70
61
  ref,
@@ -1,4 +1,3 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
1
  import * as React from 'react';
3
2
  import { Button } from '../Button/Button.js';
4
3
  import { Input } from '../Input/Input.js';
@@ -80,7 +79,7 @@ const SidebarProvider = React.forwardRef(
80
79
  }),
81
80
  [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
82
81
  );
83
- return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx(
82
+ return /* @__PURE__ */ React.createElement(SidebarContext.Provider, { value: contextValue }, /* @__PURE__ */ React.createElement(TooltipProvider, { delayDuration: 0 }, /* @__PURE__ */ React.createElement(
84
83
  "div",
85
84
  {
86
85
  style: {
@@ -93,10 +92,10 @@ const SidebarProvider = React.forwardRef(
93
92
  className
94
93
  ),
95
94
  ref,
96
- ...props,
97
- children
98
- }
99
- ) }) });
95
+ ...props
96
+ },
97
+ children
98
+ )));
100
99
  }
101
100
  );
102
101
  SidebarProvider.displayName = "SidebarProvider";
@@ -111,7 +110,7 @@ const Sidebar = React.forwardRef(
111
110
  }, ref) => {
112
111
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
113
112
  if (collapsible === "none") {
114
- return /* @__PURE__ */ jsx(
113
+ return /* @__PURE__ */ React.createElement(
115
114
  "div",
116
115
  {
117
116
  className: cn(
@@ -119,13 +118,13 @@ const Sidebar = React.forwardRef(
119
118
  className
120
119
  ),
121
120
  ref,
122
- ...props,
123
- children
124
- }
121
+ ...props
122
+ },
123
+ children
125
124
  );
126
125
  }
127
126
  if (isMobile) {
128
- return /* @__PURE__ */ jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsx(
127
+ return /* @__PURE__ */ React.createElement(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props }, /* @__PURE__ */ React.createElement(
129
128
  SheetContent,
130
129
  {
131
130
  "data-sidebar": "sidebar",
@@ -134,18 +133,12 @@ const Sidebar = React.forwardRef(
134
133
  style: {
135
134
  "--sidebar-width": SIDEBAR_WIDTH_MOBILE
136
135
  },
137
- side,
138
- children: /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col", children: [
139
- /* @__PURE__ */ jsx("div", { className: "p-3 pb-0", children: /* @__PURE__ */ jsx(SidebarMenuButton, { asChild: true, children: /* @__PURE__ */ jsxs("div", { onClick: () => setOpenMobile(false), children: [
140
- /* @__PURE__ */ jsx(X, {}),
141
- /* @__PURE__ */ jsx("span", { children: "Fechar menu" })
142
- ] }) }) }),
143
- children
144
- ] })
145
- }
146
- ) });
136
+ side
137
+ },
138
+ /* @__PURE__ */ React.createElement("div", { className: "flex h-full w-full flex-col" }, /* @__PURE__ */ React.createElement("div", { className: "p-3 pb-0" }, /* @__PURE__ */ React.createElement(SidebarMenuButton, { asChild: true }, /* @__PURE__ */ React.createElement("div", { onClick: () => setOpenMobile(false) }, /* @__PURE__ */ React.createElement(X, null), /* @__PURE__ */ React.createElement("span", null, "Fechar menu")))), children)
139
+ ));
147
140
  }
148
- return /* @__PURE__ */ jsx(
141
+ return /* @__PURE__ */ React.createElement(
149
142
  "div",
150
143
  {
151
144
  ref,
@@ -153,36 +146,36 @@ const Sidebar = React.forwardRef(
153
146
  "data-state": state,
154
147
  "data-collapsible": state === "collapsed" ? collapsible : "",
155
148
  "data-variant": variant,
156
- "data-side": side,
157
- children: /* @__PURE__ */ jsx(
149
+ "data-side": side
150
+ },
151
+ /* @__PURE__ */ React.createElement(
152
+ "div",
153
+ {
154
+ className: cn(
155
+ "duration-200 relative inset-y-0 z-10 hidden h-full w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex border-grey-400",
156
+ 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)]",
157
+ // Adjust the padding for floating and inset variants.
158
+ variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
159
+ className
160
+ ),
161
+ ...props
162
+ },
163
+ /* @__PURE__ */ React.createElement(
158
164
  "div",
159
165
  {
160
- className: cn(
161
- "duration-200 relative inset-y-0 z-10 hidden h-full w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex border-grey-400",
162
- 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)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
165
- className
166
- ),
167
- ...props,
168
- children: /* @__PURE__ */ jsx(
169
- "div",
170
- {
171
- "data-sidebar": "sidebar",
172
- className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
173
- children
174
- }
175
- )
176
- }
166
+ "data-sidebar": "sidebar",
167
+ className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow"
168
+ },
169
+ children
177
170
  )
178
- }
171
+ )
179
172
  );
180
173
  }
181
174
  );
182
175
  Sidebar.displayName = "Sidebar";
183
176
  const SidebarTrigger = React.forwardRef(({ className, onClick, ...props }, ref) => {
184
177
  const { toggleSidebar } = useSidebar();
185
- return /* @__PURE__ */ jsxs(
178
+ return /* @__PURE__ */ React.createElement(
186
179
  Button,
187
180
  {
188
181
  ref,
@@ -193,18 +186,16 @@ const SidebarTrigger = React.forwardRef(({ className, onClick, ...props }, ref)
193
186
  onClick?.(event);
194
187
  toggleSidebar();
195
188
  },
196
- ...props,
197
- children: [
198
- /* @__PURE__ */ jsx(PanelLeft, {}),
199
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
200
- ]
201
- }
189
+ ...props
190
+ },
191
+ /* @__PURE__ */ React.createElement(PanelLeft, null),
192
+ /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Toggle Sidebar")
202
193
  );
203
194
  });
204
195
  SidebarTrigger.displayName = "SidebarTrigger";
205
196
  const SidebarRail = React.forwardRef(({ className, ...props }, ref) => {
206
197
  const { toggleSidebar } = useSidebar();
207
- return /* @__PURE__ */ jsx(
198
+ return /* @__PURE__ */ React.createElement(
208
199
  "button",
209
200
  {
210
201
  ref,
@@ -227,7 +218,7 @@ const SidebarRail = React.forwardRef(({ className, ...props }, ref) => {
227
218
  );
228
219
  });
229
220
  SidebarRail.displayName = "SidebarRail";
230
- const SidebarInset = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
221
+ const SidebarInset = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
231
222
  "main",
232
223
  {
233
224
  ref,
@@ -240,7 +231,7 @@ const SidebarInset = React.forwardRef(({ className, ...props }, ref) => /* @__PU
240
231
  }
241
232
  ));
242
233
  SidebarInset.displayName = "SidebarInset";
243
- const SidebarInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
234
+ const SidebarInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
244
235
  Input,
245
236
  {
246
237
  ref,
@@ -253,7 +244,7 @@ const SidebarInput = React.forwardRef(({ className, ...props }, ref) => /* @__PU
253
244
  }
254
245
  ));
255
246
  SidebarInput.displayName = "SidebarInput";
256
- const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
247
+ const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
257
248
  "div",
258
249
  {
259
250
  ref,
@@ -263,7 +254,7 @@ const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => /* @__P
263
254
  }
264
255
  ));
265
256
  SidebarHeader.displayName = "SidebarHeader";
266
- const SidebarFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
257
+ const SidebarFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
267
258
  "div",
268
259
  {
269
260
  ref,
@@ -276,7 +267,7 @@ const SidebarFooter = React.forwardRef(({ className, ...props }, ref) => /* @__P
276
267
  }
277
268
  ));
278
269
  SidebarFooter.displayName = "SidebarFooter";
279
- const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
270
+ const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
280
271
  Separator,
281
272
  {
282
273
  ref,
@@ -286,7 +277,7 @@ const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @
286
277
  }
287
278
  ));
288
279
  SidebarSeparator.displayName = "SidebarSeparator";
289
- const SidebarContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
280
+ const SidebarContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
290
281
  "div",
291
282
  {
292
283
  ref,
@@ -299,7 +290,7 @@ const SidebarContent = React.forwardRef(({ className, ...props }, ref) => /* @__
299
290
  }
300
291
  ));
301
292
  SidebarContent.displayName = "SidebarContent";
302
- const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
293
+ const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
303
294
  "div",
304
295
  {
305
296
  ref,
@@ -311,7 +302,7 @@ const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PU
311
302
  SidebarGroup.displayName = "SidebarGroup";
312
303
  const SidebarGroupLabel = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
313
304
  const Comp = asChild ? Slot : "div";
314
- return /* @__PURE__ */ jsx(
305
+ return /* @__PURE__ */ React.createElement(
315
306
  Comp,
316
307
  {
317
308
  ref,
@@ -328,7 +319,7 @@ const SidebarGroupLabel = React.forwardRef(({ className, asChild = false, ...pro
328
319
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
329
320
  const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
330
321
  const Comp = asChild ? Slot : "button";
331
- return /* @__PURE__ */ jsx(
322
+ return /* @__PURE__ */ React.createElement(
332
323
  Comp,
333
324
  {
334
325
  ref,
@@ -345,7 +336,7 @@ const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...pr
345
336
  );
346
337
  });
347
338
  SidebarGroupAction.displayName = "SidebarGroupAction";
348
- const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
339
+ const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
349
340
  "div",
350
341
  {
351
342
  ref,
@@ -355,7 +346,7 @@ const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => /
355
346
  }
356
347
  ));
357
348
  SidebarGroupContent.displayName = "SidebarGroupContent";
358
- const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
349
+ const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
359
350
  "ul",
360
351
  {
361
352
  ref,
@@ -365,7 +356,7 @@ const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
365
356
  }
366
357
  ));
367
358
  SidebarMenu.displayName = "SidebarMenu";
368
- const SidebarMenuItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
359
+ const SidebarMenuItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
369
360
  "li",
370
361
  {
371
362
  ref,
@@ -416,7 +407,7 @@ const SidebarMenuButton = React.forwardRef(
416
407
  }, ref) => {
417
408
  const Comp = asChild ? Slot : "button";
418
409
  const { isMobile, state } = useSidebar();
419
- const button = /* @__PURE__ */ jsx(
410
+ const button = /* @__PURE__ */ React.createElement(
420
411
  Comp,
421
412
  {
422
413
  ref,
@@ -435,26 +426,23 @@ const SidebarMenuButton = React.forwardRef(
435
426
  children: tooltip
436
427
  };
437
428
  }
438
- return /* @__PURE__ */ jsxs(Tooltip, { children: [
439
- /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: button }),
440
- /* @__PURE__ */ jsx(
441
- TooltipContent,
442
- {
443
- sideOffset: 16,
444
- side: "right",
445
- align: "center",
446
- color: "black",
447
- hidden: state !== "collapsed" || isMobile,
448
- ...tooltip
449
- }
450
- )
451
- ] });
429
+ return /* @__PURE__ */ React.createElement(Tooltip, null, /* @__PURE__ */ React.createElement(TooltipTrigger, { asChild: true }, button), /* @__PURE__ */ React.createElement(
430
+ TooltipContent,
431
+ {
432
+ sideOffset: 16,
433
+ side: "right",
434
+ align: "center",
435
+ color: "black",
436
+ hidden: state !== "collapsed" || isMobile,
437
+ ...tooltip
438
+ }
439
+ ));
452
440
  }
453
441
  );
454
442
  SidebarMenuButton.displayName = "SidebarMenuButton";
455
443
  const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
456
444
  const Comp = asChild ? Slot : "button";
457
- return /* @__PURE__ */ jsx(
445
+ return /* @__PURE__ */ React.createElement(
458
446
  Comp,
459
447
  {
460
448
  ref,
@@ -475,7 +463,7 @@ const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOn
475
463
  );
476
464
  });
477
465
  SidebarMenuAction.displayName = "SidebarMenuAction";
478
- const SidebarMenuBadge = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
466
+ const SidebarMenuBadge = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
479
467
  "div",
480
468
  {
481
469
  ref,
@@ -498,37 +486,35 @@ const SidebarMenuSkeleton = React.forwardRef(({ className, showIcon = false, ...
498
486
  () => `${Math.floor(Math.random() * 40) + 50}%`,
499
487
  []
500
488
  );
501
- return /* @__PURE__ */ jsxs(
489
+ return /* @__PURE__ */ React.createElement(
502
490
  "div",
503
491
  {
504
492
  ref,
505
493
  "data-sidebar": "menu-skeleton",
506
494
  className: cn("rounded-md h-8 flex gap-2 px-2 items-center", className),
507
- ...props,
508
- children: [
509
- showIcon && /* @__PURE__ */ jsx(
510
- Skeleton,
511
- {
512
- className: "size-4 rounded-md",
513
- "data-sidebar": "menu-skeleton-icon"
514
- }
515
- ),
516
- /* @__PURE__ */ jsx(
517
- Skeleton,
518
- {
519
- className: "h-4 flex-1 max-w-[--skeleton-width]",
520
- "data-sidebar": "menu-skeleton-text",
521
- style: {
522
- "--skeleton-width": width
523
- }
524
- }
525
- )
526
- ]
527
- }
495
+ ...props
496
+ },
497
+ showIcon && /* @__PURE__ */ React.createElement(
498
+ Skeleton,
499
+ {
500
+ className: "size-4 rounded-md",
501
+ "data-sidebar": "menu-skeleton-icon"
502
+ }
503
+ ),
504
+ /* @__PURE__ */ React.createElement(
505
+ Skeleton,
506
+ {
507
+ className: "h-4 flex-1 max-w-[--skeleton-width]",
508
+ "data-sidebar": "menu-skeleton-text",
509
+ style: {
510
+ "--skeleton-width": width
511
+ }
512
+ }
513
+ )
528
514
  );
529
515
  });
530
516
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
531
- const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
517
+ const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
532
518
  "ul",
533
519
  {
534
520
  ref,
@@ -542,11 +528,11 @@ const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => /* @__
542
528
  }
543
529
  ));
544
530
  SidebarMenuSub.displayName = "SidebarMenuSub";
545
- const SidebarMenuSubItem = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
531
+ const SidebarMenuSubItem = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React.createElement("li", { ref, ...props }));
546
532
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
547
533
  const SidebarMenuSubButton = React.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
548
534
  const Comp = asChild ? Slot : "a";
549
- return /* @__PURE__ */ jsx(
535
+ return /* @__PURE__ */ React.createElement(
550
536
  Comp,
551
537
  {
552
538
  ref,