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.
- package/dist/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/components/Accordion/Accordion.js +40 -37
- package/dist/components/Button/Button.js +10 -9
- package/dist/components/Button/CustomButton.js +6 -5
- package/dist/components/Card/Card.js +7 -6
- package/dist/components/Checkbox/Checkbox.js +35 -30
- package/dist/components/CustomIcon/Icons/CadastroFacil.js +15 -5
- package/dist/components/CustomIcon/Icons/LogoLecom.js +15 -12
- package/dist/components/CustomIcon/Icons/LogoLecomBrand.js +8 -5
- package/dist/components/CustomIcon/Icons/ModoTeste.js +13 -5
- package/dist/components/CustomIcon/Icons/Rpa.js +17 -5
- package/dist/components/DataTable/DataTable.js +33 -127
- package/dist/components/Dialog/Dialog.js +40 -31
- package/dist/components/DropdownMenu/DropdownMenu.js +55 -46
- package/dist/components/Header/Header.js +51 -35
- package/dist/components/Header/HelpMenu.js +52 -41
- package/dist/components/Header/ImgBrand.js +5 -8
- package/dist/components/Header/ModulesMenu.js +63 -50
- package/dist/components/Header/SocialMenu.js +5 -6
- package/dist/components/Header/UserMenu.js +81 -51
- package/dist/components/Input/Input.js +11 -2
- package/dist/components/Layout/Layout.js +62 -45
- package/dist/components/Notification/Notification.js +9 -8
- package/dist/components/Notification/NotificationBase.js +5 -5
- package/dist/components/Notification/NotificationCallout.js +33 -27
- package/dist/components/Notification/NotificationCloseButton.js +4 -3
- package/dist/components/Notification/NotificationContent.js +24 -18
- package/dist/components/Notification/NotificationIcon.js +9 -6
- package/dist/components/Notification/NotificationInline.js +23 -20
- package/dist/components/Notification/NotificationToast.js +28 -25
- package/dist/components/Notification/useNotificationToast.js +0 -1
- package/dist/components/Popover/Popover.js +8 -7
- package/dist/components/ScrollArea/ScrollArea.js +18 -15
- package/dist/components/Select/Select.js +63 -54
- package/dist/components/Separator/Separator.js +5 -4
- package/dist/components/Sheet/Sheet.js +35 -26
- package/dist/components/Sidebar/Sidebar.js +112 -95
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/Table/Table.js +15 -26
- package/dist/components/Tag/Tag.js +6 -5
- package/dist/components/Tooltip/Tooltip.js +17 -15
- package/dist/components/Typography/Typography.js +6 -7
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/i18n/index.js +4 -53
- package/dist/i18n/locales/en_us.js +4 -3
- package/dist/i18n/locales/es_es.js +4 -3
- package/dist/i18n/locales/index.js +4 -4
- package/dist/i18n/locales/pt_br.js +4 -3
- package/dist/index.d.ts +108 -304
- package/dist/index.js +1 -12
- package/dist/lib/utils.js +2 -2
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +806 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +726 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +347 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +154 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +136 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +303 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +157 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +144 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +79 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +319 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +211 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +265 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +207 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +831 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +296 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +278 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +130 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +220 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +718 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1143 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +30 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +81 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +476 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +46 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +40 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +74 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +3023 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +136 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +44 -0
- package/dist/node_modules/clsx/dist/clsx.js +3 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
- package/dist/node_modules/hex-color-opacity/lib/index.js +22 -0
- package/dist/node_modules/i18next/dist/esm/i18next.js +2228 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +44 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-help.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minus.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panel-left.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +13 -0
- package/dist/node_modules/react-i18next/dist/es/context.js +18 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.js +21 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +7 -0
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +12 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.js +27 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +112 -0
- package/dist/node_modules/react-i18next/dist/es/utils.js +63 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +160 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +38 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +109 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +56 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2493 -0
- package/dist/node_modules/tslib/tslib.es6.js +56 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/node_modules/use-color-luminance/index.es.js +105 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +77 -0
- package/dist/plugin/typographies.ts +146 -152
- package/dist/style.min.css +1 -1
- package/dist/utils/cookie.js +9 -6
- 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/
|
|
9
|
+
import { useIsMobile } from '../../hooks/use-mobile.js';
|
|
9
10
|
import { cn } from '../../lib/utils.js';
|
|
10
|
-
import { Slot } from '
|
|
11
|
-
import { cva } from 'class-variance-authority';
|
|
12
|
-
import
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
123
|
+
...props,
|
|
124
|
+
children
|
|
125
|
+
}
|
|
123
126
|
);
|
|
124
127
|
}
|
|
125
128
|
if (isMobile) {
|
|
126
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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__ */
|
|
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
|
-
|
|
191
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
551
|
+
return /* @__PURE__ */ jsx(
|
|
535
552
|
Comp,
|
|
536
553
|
{
|
|
537
554
|
ref,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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
|
|
42
|
+
"border-b transition-colors data-[state=selected]:bg-muted",
|
|
51
43
|
className
|
|
52
44
|
),
|
|
53
45
|
...props
|
|
54
46
|
}
|
|
55
47
|
));
|
|
56
|
-
|
|
57
|
-
const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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,
|
|
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__ */
|
|
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
|
-
|
|
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
|
|
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 =
|
|
7
|
-
const Tooltip =
|
|
8
|
-
const TooltipTrigger =
|
|
9
|
-
const TooltipArrow =
|
|
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__ */
|
|
49
|
-
|
|
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
|
-
|
|
60
|
-
|
|
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 =
|
|
65
|
+
TooltipContent.displayName = Content2.displayName;
|
|
64
66
|
|
|
65
|
-
export { Tooltip, TooltipArrow, TooltipContent,
|
|
67
|
+
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
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__ */
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
46
45
|
Comp,
|
|
47
46
|
{
|
|
48
47
|
className: cn(typographyVariants({ variant, className }), textColor, ""),
|
|
49
|
-
...props
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
...props,
|
|
49
|
+
children
|
|
50
|
+
}
|
|
52
51
|
);
|
|
53
52
|
};
|
|
54
53
|
Typography.displayName = "Typography";
|