lecom-ui 4.1.8 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +5 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/components/Accordion/Accordion.js +40 -37
  4. package/dist/components/Button/Button.js +10 -9
  5. package/dist/components/Button/CustomButton.js +6 -5
  6. package/dist/components/Card/Card.js +7 -6
  7. package/dist/components/Checkbox/Checkbox.js +35 -30
  8. package/dist/components/CustomIcon/Icons/CadastroFacil.js +15 -5
  9. package/dist/components/CustomIcon/Icons/LogoLecom.js +15 -12
  10. package/dist/components/CustomIcon/Icons/LogoLecomBrand.js +8 -5
  11. package/dist/components/CustomIcon/Icons/ModoTeste.js +13 -5
  12. package/dist/components/CustomIcon/Icons/Rpa.js +17 -5
  13. package/dist/components/DataTable/DataTable.js +33 -127
  14. package/dist/components/Dialog/Dialog.js +40 -31
  15. package/dist/components/DropdownMenu/DropdownMenu.js +55 -46
  16. package/dist/components/Header/Header.js +51 -35
  17. package/dist/components/Header/HelpMenu.js +52 -41
  18. package/dist/components/Header/ImgBrand.js +5 -8
  19. package/dist/components/Header/ModulesMenu.js +63 -50
  20. package/dist/components/Header/SocialMenu.js +5 -6
  21. package/dist/components/Header/UserMenu.js +81 -51
  22. package/dist/components/Input/Input.js +11 -2
  23. package/dist/components/Layout/Layout.js +62 -45
  24. package/dist/components/Notification/Notification.js +9 -8
  25. package/dist/components/Notification/NotificationBase.js +5 -5
  26. package/dist/components/Notification/NotificationCallout.js +33 -27
  27. package/dist/components/Notification/NotificationCloseButton.js +4 -3
  28. package/dist/components/Notification/NotificationContent.js +24 -18
  29. package/dist/components/Notification/NotificationIcon.js +9 -6
  30. package/dist/components/Notification/NotificationInline.js +23 -20
  31. package/dist/components/Notification/NotificationToast.js +28 -25
  32. package/dist/components/Notification/useNotificationToast.js +0 -1
  33. package/dist/components/Popover/Popover.js +8 -7
  34. package/dist/components/ScrollArea/ScrollArea.js +18 -15
  35. package/dist/components/Select/Select.js +63 -54
  36. package/dist/components/Separator/Separator.js +5 -4
  37. package/dist/components/Sheet/Sheet.js +35 -26
  38. package/dist/components/Sidebar/Sidebar.js +112 -95
  39. package/dist/components/Skeleton/Skeleton.js +2 -2
  40. package/dist/components/Table/Table.js +15 -26
  41. package/dist/components/Tag/Tag.js +6 -5
  42. package/dist/components/Tooltip/Tooltip.js +17 -15
  43. package/dist/components/Typography/Typography.js +6 -7
  44. package/dist/hooks/use-mobile.js +1 -1
  45. package/dist/i18n/index.js +4 -53
  46. package/dist/i18n/locales/en_us.js +4 -3
  47. package/dist/i18n/locales/es_es.js +4 -3
  48. package/dist/i18n/locales/index.js +4 -4
  49. package/dist/i18n/locales/pt_br.js +4 -3
  50. package/dist/index.d.ts +108 -304
  51. package/dist/index.js +1 -12
  52. package/dist/lib/utils.js +2 -2
  53. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +806 -0
  54. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +726 -0
  55. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
  56. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +154 -0
  57. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +136 -0
  58. package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
  59. package/dist/node_modules/@radix-ui/primitive/dist/index.js +11 -0
  60. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +303 -0
  61. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
  62. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +157 -0
  63. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +144 -0
  64. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
  65. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
  66. package/dist/node_modules/@radix-ui/react-context/dist/index.js +79 -0
  67. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +319 -0
  68. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
  69. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
  70. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +265 -0
  71. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
  72. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
  73. package/dist/node_modules/@radix-ui/react-id/dist/index.js +15 -0
  74. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +831 -0
  75. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +296 -0
  76. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
  77. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
  78. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
  79. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
  80. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +220 -0
  81. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +718 -0
  82. package/dist/node_modules/@radix-ui/react-select/dist/index.js +1143 -0
  83. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +30 -0
  84. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +81 -0
  85. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
  86. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
  87. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
  88. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
  89. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  90. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
  91. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
  92. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
  93. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +74 -0
  94. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +3023 -0
  95. package/dist/node_modules/aria-hidden/dist/es2015/index.js +136 -0
  96. package/dist/node_modules/class-variance-authority/dist/index.js +44 -0
  97. package/dist/node_modules/clsx/dist/clsx.js +3 -0
  98. package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
  99. package/dist/node_modules/hex-color-opacity/lib/index.js +22 -0
  100. package/dist/node_modules/i18next/dist/esm/i18next.js +2228 -0
  101. package/dist/node_modules/lucide-react/dist/esm/Icon.js +44 -0
  102. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +26 -0
  103. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
  104. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
  105. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +15 -0
  106. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +15 -0
  107. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +13 -0
  108. package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +17 -0
  109. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +16 -0
  110. package/dist/node_modules/lucide-react/dist/esm/icons/circle-help.js +17 -0
  111. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +15 -0
  112. package/dist/node_modules/lucide-react/dist/esm/icons/info.js +17 -0
  113. package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +17 -0
  114. package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +15 -0
  115. package/dist/node_modules/lucide-react/dist/esm/icons/minus.js +13 -0
  116. package/dist/node_modules/lucide-react/dist/esm/icons/panel-left.js +16 -0
  117. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +23 -0
  118. package/dist/node_modules/lucide-react/dist/esm/icons/user.js +16 -0
  119. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +16 -0
  120. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +13 -0
  121. package/dist/node_modules/react-i18next/dist/es/context.js +18 -0
  122. package/dist/node_modules/react-i18next/dist/es/defaults.js +21 -0
  123. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +7 -0
  124. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +12 -0
  125. package/dist/node_modules/react-i18next/dist/es/unescape.js +27 -0
  126. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +112 -0
  127. package/dist/node_modules/react-i18next/dist/es/utils.js +63 -0
  128. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
  129. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
  130. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
  131. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
  132. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
  133. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  134. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  135. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
  136. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
  137. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
  138. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
  139. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
  140. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
  141. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2493 -0
  142. package/dist/node_modules/tslib/tslib.es6.js +56 -0
  143. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
  144. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
  145. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
  146. package/dist/node_modules/use-color-luminance/index.es.js +105 -0
  147. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
  148. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
  149. package/dist/plugin/typographies.ts +146 -152
  150. package/dist/style.min.css +1 -1
  151. package/dist/utils/cookie.js +9 -6
  152. package/package.json +11 -3
@@ -1,3 +1,4 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { Button } from '../Button/Button.js';
3
4
  import { Input } from '../Input/Input.js';
@@ -5,11 +6,12 @@ import { Separator } from '../Separator/Separator.js';
5
6
  import { Sheet, SheetContent } from '../Sheet/Sheet.js';
6
7
  import { Skeleton } from '../Skeleton/Skeleton.js';
7
8
  import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
8
- import { useIsMobile } from '../../hooks/useIsMobile.js';
9
+ import { useIsMobile } from '../../hooks/use-mobile.js';
9
10
  import { cn } from '../../lib/utils.js';
10
- import { Slot } from '@radix-ui/react-slot';
11
- import { cva } from 'class-variance-authority';
12
- import { X, PanelLeft } from 'lucide-react';
11
+ import { Slot } from '../../node_modules/@radix-ui/react-slot/dist/index.js';
12
+ import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
13
+ import X from '../../node_modules/lucide-react/dist/esm/icons/x.js';
14
+ import PanelLeft from '../../node_modules/lucide-react/dist/esm/icons/panel-left.js';
13
15
 
14
16
  const SIDEBAR_COOKIE_NAME = "sidebar:state";
15
17
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -78,7 +80,7 @@ const SidebarProvider = React.forwardRef(
78
80
  }),
79
81
  [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
80
82
  );
81
- return /* @__PURE__ */ React.createElement(SidebarContext.Provider, { value: contextValue }, /* @__PURE__ */ React.createElement(TooltipProvider, { delayDuration: 0 }, /* @__PURE__ */ React.createElement(
83
+ return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx(
82
84
  "div",
83
85
  {
84
86
  style: {
@@ -91,14 +93,15 @@ const SidebarProvider = React.forwardRef(
91
93
  className
92
94
  ),
93
95
  ref,
94
- ...props
95
- },
96
- children
97
- )));
96
+ ...props,
97
+ children
98
+ }
99
+ ) }) });
98
100
  }
99
101
  );
100
102
  SidebarProvider.displayName = "SidebarProvider";
101
103
  const Sidebar = React.forwardRef(
104
+ // eslint-disable-next-line complexity
102
105
  ({
103
106
  side = "left",
104
107
  variant = "sidebar",
@@ -109,7 +112,7 @@ const Sidebar = React.forwardRef(
109
112
  }, ref) => {
110
113
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
111
114
  if (collapsible === "none") {
112
- return /* @__PURE__ */ React.createElement(
115
+ return /* @__PURE__ */ jsx(
113
116
  "div",
114
117
  {
115
118
  className: cn(
@@ -117,13 +120,13 @@ const Sidebar = React.forwardRef(
117
120
  className
118
121
  ),
119
122
  ref,
120
- ...props
121
- },
122
- children
123
+ ...props,
124
+ children
125
+ }
123
126
  );
124
127
  }
125
128
  if (isMobile) {
126
- return /* @__PURE__ */ React.createElement(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props }, /* @__PURE__ */ React.createElement(
129
+ return /* @__PURE__ */ jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsx(
127
130
  SheetContent,
128
131
  {
129
132
  "data-sidebar": "sidebar",
@@ -132,12 +135,18 @@ const Sidebar = React.forwardRef(
132
135
  style: {
133
136
  "--sidebar-width": SIDEBAR_WIDTH_MOBILE
134
137
  },
135
- side
136
- },
137
- /* @__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)
138
- ));
138
+ side,
139
+ children: /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col", children: [
140
+ /* @__PURE__ */ jsx("div", { className: "p-3 pb-0", children: /* @__PURE__ */ jsx(SidebarMenuButton, { asChild: true, children: /* @__PURE__ */ jsxs("div", { onClick: () => setOpenMobile(false), children: [
141
+ /* @__PURE__ */ jsx(X, {}),
142
+ /* @__PURE__ */ jsx("span", { children: "Fechar menu" })
143
+ ] }) }) }),
144
+ children
145
+ ] })
146
+ }
147
+ ) });
139
148
  }
140
- return /* @__PURE__ */ React.createElement(
149
+ return /* @__PURE__ */ jsx(
141
150
  "div",
142
151
  {
143
152
  ref,
@@ -145,36 +154,36 @@ const Sidebar = React.forwardRef(
145
154
  "data-state": state,
146
155
  "data-collapsible": state === "collapsed" ? collapsible : "",
147
156
  "data-variant": variant,
148
- "data-side": side
149
- },
150
- /* @__PURE__ */ React.createElement(
151
- "div",
152
- {
153
- className: cn(
154
- "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",
155
- 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)]",
156
- // Adjust the padding for floating and inset variants.
157
- 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",
158
- className
159
- ),
160
- ...props
161
- },
162
- /* @__PURE__ */ React.createElement(
157
+ "data-side": side,
158
+ children: /* @__PURE__ */ jsx(
163
159
  "div",
164
160
  {
165
- "data-sidebar": "sidebar",
166
- 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"
167
- },
168
- children
161
+ className: cn(
162
+ "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",
163
+ 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)]",
164
+ // Adjust the padding for floating and inset variants.
165
+ 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",
166
+ className
167
+ ),
168
+ ...props,
169
+ children: /* @__PURE__ */ jsx(
170
+ "div",
171
+ {
172
+ "data-sidebar": "sidebar",
173
+ 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",
174
+ children
175
+ }
176
+ )
177
+ }
169
178
  )
170
- )
179
+ }
171
180
  );
172
181
  }
173
182
  );
174
183
  Sidebar.displayName = "Sidebar";
175
184
  const SidebarTrigger = React.forwardRef(({ className, onClick, ...props }, ref) => {
176
185
  const { toggleSidebar } = useSidebar();
177
- return /* @__PURE__ */ React.createElement(
186
+ return /* @__PURE__ */ jsxs(
178
187
  Button,
179
188
  {
180
189
  ref,
@@ -185,16 +194,18 @@ const SidebarTrigger = React.forwardRef(({ className, onClick, ...props }, ref)
185
194
  onClick?.(event);
186
195
  toggleSidebar();
187
196
  },
188
- ...props
189
- },
190
- /* @__PURE__ */ React.createElement(PanelLeft, null),
191
- /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Toggle Sidebar")
197
+ ...props,
198
+ children: [
199
+ /* @__PURE__ */ jsx(PanelLeft, {}),
200
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
201
+ ]
202
+ }
192
203
  );
193
204
  });
194
205
  SidebarTrigger.displayName = "SidebarTrigger";
195
206
  const SidebarRail = React.forwardRef(({ className, ...props }, ref) => {
196
207
  const { toggleSidebar } = useSidebar();
197
- return /* @__PURE__ */ React.createElement(
208
+ return /* @__PURE__ */ jsx(
198
209
  "button",
199
210
  {
200
211
  ref,
@@ -217,7 +228,7 @@ const SidebarRail = React.forwardRef(({ className, ...props }, ref) => {
217
228
  );
218
229
  });
219
230
  SidebarRail.displayName = "SidebarRail";
220
- const SidebarInset = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
231
+ const SidebarInset = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
221
232
  "main",
222
233
  {
223
234
  ref,
@@ -230,7 +241,7 @@ const SidebarInset = React.forwardRef(({ className, ...props }, ref) => /* @__PU
230
241
  }
231
242
  ));
232
243
  SidebarInset.displayName = "SidebarInset";
233
- const SidebarInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
244
+ const SidebarInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
234
245
  Input,
235
246
  {
236
247
  ref,
@@ -243,7 +254,7 @@ const SidebarInput = React.forwardRef(({ className, ...props }, ref) => /* @__PU
243
254
  }
244
255
  ));
245
256
  SidebarInput.displayName = "SidebarInput";
246
- const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
257
+ const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
247
258
  "div",
248
259
  {
249
260
  ref,
@@ -253,20 +264,20 @@ const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => /* @__P
253
264
  }
254
265
  ));
255
266
  SidebarHeader.displayName = "SidebarHeader";
256
- const SidebarFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
267
+ const SidebarFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
257
268
  "div",
258
269
  {
259
270
  ref,
260
271
  "data-sidebar": "footer",
261
272
  className: cn(
262
- "flex flex-col gap-2 p-2 group-data-[state=collapsed]:opacity-0 transition-all overflow-hidden select-none",
273
+ "flex flex-col gap-2 p-2 group-data-[state=collapsed]:opacity-0 transition-all truncate",
263
274
  className
264
275
  ),
265
276
  ...props
266
277
  }
267
278
  ));
268
279
  SidebarFooter.displayName = "SidebarFooter";
269
- const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
280
+ const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
270
281
  Separator,
271
282
  {
272
283
  ref,
@@ -276,7 +287,7 @@ const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @
276
287
  }
277
288
  ));
278
289
  SidebarSeparator.displayName = "SidebarSeparator";
279
- const SidebarContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
290
+ const SidebarContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
280
291
  "div",
281
292
  {
282
293
  ref,
@@ -289,7 +300,7 @@ const SidebarContent = React.forwardRef(({ className, ...props }, ref) => /* @__
289
300
  }
290
301
  ));
291
302
  SidebarContent.displayName = "SidebarContent";
292
- const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
303
+ const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
293
304
  "div",
294
305
  {
295
306
  ref,
@@ -301,7 +312,7 @@ const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PU
301
312
  SidebarGroup.displayName = "SidebarGroup";
302
313
  const SidebarGroupLabel = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
303
314
  const Comp = asChild ? Slot : "div";
304
- return /* @__PURE__ */ React.createElement(
315
+ return /* @__PURE__ */ jsx(
305
316
  Comp,
306
317
  {
307
318
  ref,
@@ -318,7 +329,7 @@ const SidebarGroupLabel = React.forwardRef(({ className, asChild = false, ...pro
318
329
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
319
330
  const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
320
331
  const Comp = asChild ? Slot : "button";
321
- return /* @__PURE__ */ React.createElement(
332
+ return /* @__PURE__ */ jsx(
322
333
  Comp,
323
334
  {
324
335
  ref,
@@ -335,7 +346,7 @@ const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...pr
335
346
  );
336
347
  });
337
348
  SidebarGroupAction.displayName = "SidebarGroupAction";
338
- const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
349
+ const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
339
350
  "div",
340
351
  {
341
352
  ref,
@@ -345,7 +356,7 @@ const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => /
345
356
  }
346
357
  ));
347
358
  SidebarGroupContent.displayName = "SidebarGroupContent";
348
- const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
359
+ const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
349
360
  "ul",
350
361
  {
351
362
  ref,
@@ -355,7 +366,7 @@ const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
355
366
  }
356
367
  ));
357
368
  SidebarMenu.displayName = "SidebarMenu";
358
- const SidebarMenuItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
369
+ const SidebarMenuItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
359
370
  "li",
360
371
  {
361
372
  ref,
@@ -395,6 +406,7 @@ const sidebarMenuButtonVariants = cva(
395
406
  }
396
407
  );
397
408
  const SidebarMenuButton = React.forwardRef(
409
+ // eslint-disable-next-line complexity
398
410
  ({
399
411
  asChild = false,
400
412
  isActive = false,
@@ -406,7 +418,7 @@ const SidebarMenuButton = React.forwardRef(
406
418
  }, ref) => {
407
419
  const Comp = asChild ? Slot : "button";
408
420
  const { isMobile, state } = useSidebar();
409
- const button = /* @__PURE__ */ React.createElement(
421
+ const button = /* @__PURE__ */ jsx(
410
422
  Comp,
411
423
  {
412
424
  ref,
@@ -425,23 +437,26 @@ const SidebarMenuButton = React.forwardRef(
425
437
  children: tooltip
426
438
  };
427
439
  }
428
- return /* @__PURE__ */ React.createElement(Tooltip, null, /* @__PURE__ */ React.createElement(TooltipTrigger, { asChild: true }, button), /* @__PURE__ */ React.createElement(
429
- TooltipContent,
430
- {
431
- sideOffset: 16,
432
- side: "right",
433
- align: "center",
434
- color: "black",
435
- hidden: state !== "collapsed" || isMobile,
436
- ...tooltip
437
- }
438
- ));
440
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [
441
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: button }),
442
+ /* @__PURE__ */ jsx(
443
+ TooltipContent,
444
+ {
445
+ sideOffset: 16,
446
+ side: "right",
447
+ align: "center",
448
+ color: "black",
449
+ hidden: state !== "collapsed" || isMobile,
450
+ ...tooltip
451
+ }
452
+ )
453
+ ] });
439
454
  }
440
455
  );
441
456
  SidebarMenuButton.displayName = "SidebarMenuButton";
442
457
  const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
443
458
  const Comp = asChild ? Slot : "button";
444
- return /* @__PURE__ */ React.createElement(
459
+ return /* @__PURE__ */ jsx(
445
460
  Comp,
446
461
  {
447
462
  ref,
@@ -462,7 +477,7 @@ const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOn
462
477
  );
463
478
  });
464
479
  SidebarMenuAction.displayName = "SidebarMenuAction";
465
- const SidebarMenuBadge = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
480
+ const SidebarMenuBadge = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
466
481
  "div",
467
482
  {
468
483
  ref,
@@ -485,35 +500,37 @@ const SidebarMenuSkeleton = React.forwardRef(({ className, showIcon = false, ...
485
500
  () => `${Math.floor(Math.random() * 40) + 50}%`,
486
501
  []
487
502
  );
488
- return /* @__PURE__ */ React.createElement(
503
+ return /* @__PURE__ */ jsxs(
489
504
  "div",
490
505
  {
491
506
  ref,
492
507
  "data-sidebar": "menu-skeleton",
493
508
  className: cn("rounded-md h-8 flex gap-2 px-2 items-center", className),
494
- ...props
495
- },
496
- showIcon && /* @__PURE__ */ React.createElement(
497
- Skeleton,
498
- {
499
- className: "size-4 rounded-md",
500
- "data-sidebar": "menu-skeleton-icon"
501
- }
502
- ),
503
- /* @__PURE__ */ React.createElement(
504
- Skeleton,
505
- {
506
- className: "h-4 flex-1 max-w-[--skeleton-width]",
507
- "data-sidebar": "menu-skeleton-text",
508
- style: {
509
- "--skeleton-width": width
510
- }
511
- }
512
- )
509
+ ...props,
510
+ children: [
511
+ showIcon && /* @__PURE__ */ jsx(
512
+ Skeleton,
513
+ {
514
+ className: "size-4 rounded-md",
515
+ "data-sidebar": "menu-skeleton-icon"
516
+ }
517
+ ),
518
+ /* @__PURE__ */ jsx(
519
+ Skeleton,
520
+ {
521
+ className: "h-4 flex-1 max-w-[--skeleton-width]",
522
+ "data-sidebar": "menu-skeleton-text",
523
+ style: {
524
+ "--skeleton-width": width
525
+ }
526
+ }
527
+ )
528
+ ]
529
+ }
513
530
  );
514
531
  });
515
532
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
516
- const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
533
+ const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
517
534
  "ul",
518
535
  {
519
536
  ref,
@@ -527,11 +544,11 @@ const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => /* @__
527
544
  }
528
545
  ));
529
546
  SidebarMenuSub.displayName = "SidebarMenuSub";
530
- const SidebarMenuSubItem = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React.createElement("li", { ref, ...props }));
547
+ const SidebarMenuSubItem = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
531
548
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
532
549
  const SidebarMenuSubButton = React.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
533
550
  const Comp = asChild ? Slot : "a";
534
- return /* @__PURE__ */ React.createElement(
551
+ return /* @__PURE__ */ jsx(
535
552
  Comp,
536
553
  {
537
554
  ref,
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { cn } from '../../lib/utils.js';
3
3
 
4
4
  const Skeleton = ({
5
5
  className,
6
6
  ...props
7
- }) => /* @__PURE__ */ React.createElement(
7
+ }) => /* @__PURE__ */ jsx(
8
8
  "div",
9
9
  {
10
10
  className: cn("animate-pulse rounded-md bg-muted", className),
@@ -1,18 +1,19 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { cn } from '../../lib/utils.js';
3
4
 
4
- const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
5
+ const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
5
6
  "table",
6
7
  {
7
8
  ref,
8
9
  className: cn("w-full caption-bottom text-sm", className),
9
10
  ...props
10
11
  }
11
- ));
12
+ ) }));
12
13
  Table.displayName = "Table";
13
- const TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("thead", { ref, className: cn("", className), ...props }));
14
+ const TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
14
15
  TableHeader.displayName = "TableHeader";
15
- const TableBody = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
16
+ const TableBody = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
16
17
  "tbody",
17
18
  {
18
19
  ref,
@@ -21,7 +22,7 @@ const TableBody = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
21
22
  }
22
23
  ));
23
24
  TableBody.displayName = "TableBody";
24
- const TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
25
+ const TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
25
26
  "tfoot",
26
27
  {
27
28
  ref,
@@ -33,52 +34,40 @@ const TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
33
34
  }
34
35
  ));
35
36
  TableFooter.displayName = "TableFooter";
36
- const TableRowHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
37
- "tr",
38
- {
39
- ref,
40
- className: cn("border-b-[1.5px] border-grey-400", className),
41
- ...props
42
- }
43
- ));
44
- TableRowHeader.displayName = "TableRowHeader";
45
- const TableRowBody = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
37
+ const TableRow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
46
38
  "tr",
47
39
  {
48
40
  ref,
49
41
  className: cn(
50
- "border-b-[0.5px] [&_td]:hover:bg-grey-100 [&_td]:data-[state=selected]:bg-grey-100",
42
+ "border-b transition-colors data-[state=selected]:bg-muted",
51
43
  className
52
44
  ),
53
45
  ...props
54
46
  }
55
47
  ));
56
- TableRowBody.displayName = "TableRowBody";
57
- const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
48
+ TableRow.displayName = "TableRow";
49
+ const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
58
50
  "th",
59
51
  {
60
52
  ref,
61
53
  className: cn(
62
- "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 bg-white",
54
+ "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
63
55
  className
64
56
  ),
65
57
  ...props
66
58
  }
67
59
  ));
68
60
  TableHead.displayName = "TableHead";
69
- const TableCell = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
61
+ const TableCell = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
70
62
  "td",
71
63
  {
72
64
  ref,
73
- className: cn(
74
- "p-4 py-0 h-10 align-middle [&:has([role=checkbox])]:pr-0 transition-colors bg-white",
75
- className
76
- ),
65
+ className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
77
66
  ...props
78
67
  }
79
68
  ));
80
69
  TableCell.displayName = "TableCell";
81
- const TableCaption = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
70
+ const TableCaption = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
82
71
  "caption",
83
72
  {
84
73
  ref,
@@ -88,4 +77,4 @@ const TableCaption = React.forwardRef(({ className, ...props }, ref) => /* @__PU
88
77
  ));
89
78
  TableCaption.displayName = "TableCaption";
90
79
 
91
- export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRowBody, TableRowHeader };
80
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
@@ -1,6 +1,7 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { cn } from '../../lib/utils.js';
3
- import { cva } from 'class-variance-authority';
4
+ import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
4
5
 
5
6
  const tagVariants = cva(
6
7
  "h-6 gap-1 py-1 px-2 body-small-400 inline-flex items-center rounded-full transition-colors focus:outline-none focus:ring-4",
@@ -26,15 +27,15 @@ const tagVariants = cva(
26
27
  const Tag = React.forwardRef(
27
28
  ({ className, color, children, ...props }, ref) => {
28
29
  const Comp = "div";
29
- return /* @__PURE__ */ React.createElement(
30
+ return /* @__PURE__ */ jsx(
30
31
  Comp,
31
32
  {
32
33
  tabIndex: 0,
33
34
  className: cn(tagVariants({ color }), className),
34
35
  ref,
35
- ...props
36
- },
37
- children
36
+ ...props,
37
+ children
38
+ }
38
39
  );
39
40
  }
40
41
  );
@@ -1,13 +1,13 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { cn } from '../../lib/utils.js';
3
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
- import { cva } from 'class-variance-authority';
4
+ import { Content as Content2, Arrow as Arrow2, Provider, Root as Root3, Trigger } from '../../node_modules/@radix-ui/react-tooltip/dist/index.js';
5
+ import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
5
6
 
6
- const TooltipProvider = TooltipPrimitive.Provider;
7
- const Tooltip = TooltipPrimitive.Root;
8
- const TooltipTrigger = TooltipPrimitive.Trigger;
9
- const TooltipArrow = TooltipPrimitive.Arrow;
10
- const TooltipPortal = TooltipPrimitive.Portal;
7
+ const TooltipProvider = Provider;
8
+ const Tooltip = Root3;
9
+ const TooltipTrigger = Trigger;
10
+ const TooltipArrow = Arrow2;
11
11
  const tooltipContentVariants = cva(
12
12
  "z-50 overflow-hidden rounded-lg px-3 py-2 max-w-80 body-small-500 shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
13
13
  {
@@ -45,8 +45,8 @@ const TooltipContent = React.forwardRef(
45
45
  className,
46
46
  children,
47
47
  ...props
48
- }, ref) => /* @__PURE__ */ React.createElement(
49
- TooltipPrimitive.Content,
48
+ }, ref) => /* @__PURE__ */ jsxs(
49
+ Content2,
50
50
  {
51
51
  ref,
52
52
  side,
@@ -54,12 +54,14 @@ const TooltipContent = React.forwardRef(
54
54
  sideOffset,
55
55
  alignOffset,
56
56
  className: cn(tooltipContentVariants({ color, arrow, className })),
57
- ...props
58
- },
59
- children,
60
- arrow && /* @__PURE__ */ React.createElement(TooltipArrow, { className: "tooltip-arrow", width: 12, height: 6 })
57
+ ...props,
58
+ children: [
59
+ children,
60
+ arrow && /* @__PURE__ */ jsx(TooltipArrow, { className: "tooltip-arrow", width: 12, height: 6 })
61
+ ]
62
+ }
61
63
  )
62
64
  );
63
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
65
+ TooltipContent.displayName = Content2.displayName;
64
66
 
65
- export { Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger };
67
+ export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { cn } from '../../lib/utils.js';
3
- import { cva } from 'class-variance-authority';
3
+ import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
4
4
 
5
5
  const typographyVariants = cva("text-grey-950", {
6
6
  variants: {
@@ -15,7 +15,6 @@ const typographyVariants = cva("text-grey-950", {
15
15
  "heading-small-500": "heading-small-500",
16
16
  "heading-xsmall-600": "heading-xsmall-600",
17
17
  "heading-xsmall-500": "heading-xsmall-500",
18
- "heading-xxsmall-600": "heading-xxsmall-600",
19
18
  "heading-xxsmall-500": "heading-xxsmall-500",
20
19
  "body-large-700": "body-large-700",
21
20
  "body-large-500": "body-large-500",
@@ -42,13 +41,13 @@ const Typography = ({
42
41
  ...props
43
42
  }) => {
44
43
  const Comp = tag || "span";
45
- return /* @__PURE__ */ React.createElement(
44
+ return /* @__PURE__ */ jsx(
46
45
  Comp,
47
46
  {
48
47
  className: cn(typographyVariants({ variant, className }), textColor, ""),
49
- ...props
50
- },
51
- children
48
+ ...props,
49
+ children
50
+ }
52
51
  );
53
52
  };
54
53
  Typography.displayName = "Typography";