lecom-ui 4.3.8 → 4.4.1
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/components/Accordion/Accordion.js +10 -10
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CustomButton.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +6 -7
- package/dist/components/DataTable/DataTable.js +1 -2
- package/dist/components/DataTable/DataTable.utils.js +2 -2
- package/dist/components/Dialog/Dialog.js +15 -15
- package/dist/components/DropdownMenu/DropdownMenu.js +27 -29
- package/dist/components/Header/Header.js +4 -4
- package/dist/components/Header/HelpMenu.js +3 -3
- package/dist/components/Header/ModulesMenu.js +1 -1
- package/dist/components/Header/SocialMenu.js +1 -1
- package/dist/components/Header/UserMenu.js +4 -4
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/NotificationCallout.js +2 -2
- package/dist/components/Notification/NotificationCloseButton.js +2 -2
- package/dist/components/Notification/NotificationIcon.js +5 -8
- package/dist/components/Pagination/Pagination.js +4 -9
- package/dist/components/Popover/Popover.js +6 -6
- package/dist/components/RadioGroup/RadioGroup.js +7 -7
- package/dist/components/ScrollArea/ScrollArea.js +8 -8
- package/dist/components/Select/Select.js +23 -25
- package/dist/components/Separator/Separator.js +3 -3
- package/dist/components/Sheet/Sheet.js +15 -15
- package/dist/components/Sidebar/Sidebar.js +3 -4
- package/dist/components/Switch/Switch.js +3 -3
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +9 -9
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/i18n/index.js +9 -7
- package/dist/index.js +2 -3
- package/dist/lib/utils.js +2 -2
- package/package.json +8 -23
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import { cva } from '
|
|
5
|
-
import ChevronDown from '
|
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { ChevronDown } from 'lucide-react';
|
|
6
6
|
|
|
7
7
|
const accordionVariants = cva(
|
|
8
8
|
"flex flex-1 items-start justify-between gap-4 transition-all text-left [&[data-state=open]>svg]:rotate-180 w-full text-center",
|
|
@@ -23,11 +23,11 @@ const accordionVariants = cva(
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
|
-
const Accordion =
|
|
27
|
-
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(Item, { ref, className: cn(className), ...props }));
|
|
26
|
+
const Accordion = AccordionPrimitive.Root;
|
|
27
|
+
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
|
|
28
28
|
AccordionItem.displayName = "AccordionItem";
|
|
29
|
-
const AccordionTrigger = React.forwardRef(({ className, children, variant, size, disabled, ...props }, ref) => /* @__PURE__ */ React.createElement(Header, { className: "" }, /* @__PURE__ */ React.createElement(
|
|
30
|
-
|
|
29
|
+
const AccordionTrigger = React.forwardRef(({ className, children, variant, size, disabled, ...props }, ref) => /* @__PURE__ */ React.createElement(AccordionPrimitive.Header, { className: "" }, /* @__PURE__ */ React.createElement(
|
|
30
|
+
AccordionPrimitive.Trigger,
|
|
31
31
|
{
|
|
32
32
|
ref,
|
|
33
33
|
className: cn(accordionVariants({ variant, size, className })),
|
|
@@ -45,9 +45,9 @@ const AccordionTrigger = React.forwardRef(({ className, children, variant, size,
|
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
)));
|
|
48
|
-
AccordionTrigger.displayName =
|
|
48
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
49
49
|
const AccordionContent = React.forwardRef(({ className, children, disabled = false, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
50
|
-
|
|
50
|
+
AccordionPrimitive.Content,
|
|
51
51
|
{
|
|
52
52
|
"aria-disabled": disabled,
|
|
53
53
|
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
@@ -66,6 +66,6 @@ const AccordionContent = React.forwardRef(({ className, children, disabled = fal
|
|
|
66
66
|
children
|
|
67
67
|
)
|
|
68
68
|
));
|
|
69
|
-
AccordionContent.displayName =
|
|
69
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
70
70
|
|
|
71
71
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, accordionVariants };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import { cva } from '
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { CustomButton } from './CustomButton.js';
|
|
5
5
|
|
|
6
6
|
const buttonVariants = cva(
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import { cva } from '
|
|
5
|
-
import Minus from '
|
|
6
|
-
import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
|
|
3
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { Minus, Check } from 'lucide-react';
|
|
7
6
|
|
|
8
7
|
const checkboxVariants = cva(
|
|
9
8
|
"peer relative h-5 w-5 shrink-0 rounded border-2 border-grey-400 transition-all hover:border-grey-500 active:border-grey-700 disabled:cursor-not-allowed disabled:border-grey-300 focus-visible:outline-none focus-visible:before:absolute focus-visible:before:-z-10 focus-visible:before:top-1/2 focus-visible:before:left-1/2 focus-visible:before:transform focus-visible:before:-translate-x-1/2 focus-visible:before:-translate-y-1/2 focus-visible:before:w-10 focus-visible:before:h-10 focus-visible:before:rounded-full focus-visible:before:bg-blue-100",
|
|
@@ -30,7 +29,7 @@ const Checkbox = React.forwardRef(
|
|
|
30
29
|
}, ref) => {
|
|
31
30
|
const id = React.useId();
|
|
32
31
|
return /* @__PURE__ */ React.createElement("div", { className: "flex items-center space-x-2" }, /* @__PURE__ */ React.createElement(
|
|
33
|
-
Root,
|
|
32
|
+
CheckboxPrimitive.Root,
|
|
34
33
|
{
|
|
35
34
|
ref,
|
|
36
35
|
className: cn(
|
|
@@ -43,7 +42,7 @@ const Checkbox = React.forwardRef(
|
|
|
43
42
|
id
|
|
44
43
|
},
|
|
45
44
|
/* @__PURE__ */ React.createElement(
|
|
46
|
-
Indicator,
|
|
45
|
+
CheckboxPrimitive.Indicator,
|
|
47
46
|
{
|
|
48
47
|
className: cn("flex items-center justify-center")
|
|
49
48
|
},
|
|
@@ -59,6 +58,6 @@ const Checkbox = React.forwardRef(
|
|
|
59
58
|
));
|
|
60
59
|
}
|
|
61
60
|
);
|
|
62
|
-
Checkbox.displayName = Root.displayName;
|
|
61
|
+
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
63
62
|
|
|
64
63
|
export { Checkbox };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useReactTable, flexRender } from '
|
|
2
|
+
import { useReactTable, getSortedRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
3
3
|
import { Pagination } from '../Pagination/Pagination.js';
|
|
4
4
|
import { ScrollArea, ScrollBar } from '../ScrollArea/ScrollArea.js';
|
|
5
5
|
import { Skeleton } from '../Skeleton/Skeleton.js';
|
|
6
6
|
import { buildColumns } from './DataTable.utils.js';
|
|
7
|
-
import { getSortedRowModel, getCoreRowModel } from '../../node_modules/@tanstack/table-core/build/lib/index.js';
|
|
8
7
|
|
|
9
8
|
function DataTable({
|
|
10
9
|
isLoading,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { clsx } from '
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import { ArrowUpDown } from 'lucide-react';
|
|
3
4
|
import { Checkbox } from '../Checkbox/Checkbox.js';
|
|
4
5
|
import { Typography } from '../Typography/Typography.js';
|
|
5
|
-
import ArrowUpDown from '../../node_modules/lucide-react/dist/esm/icons/arrow-up-down.js';
|
|
6
6
|
|
|
7
7
|
function buildHeaderSelect({
|
|
8
8
|
table,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import X from '
|
|
3
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
import { X } from 'lucide-react';
|
|
5
5
|
|
|
6
|
-
const Dialog = Root;
|
|
7
|
-
const DialogTrigger = Trigger;
|
|
8
|
-
const DialogPortal = Portal;
|
|
9
|
-
const DialogClose = Close;
|
|
6
|
+
const Dialog = SheetPrimitive.Root;
|
|
7
|
+
const DialogTrigger = SheetPrimitive.Trigger;
|
|
8
|
+
const DialogPortal = SheetPrimitive.Portal;
|
|
9
|
+
const DialogClose = SheetPrimitive.Close;
|
|
10
10
|
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
11
|
-
Overlay,
|
|
11
|
+
SheetPrimitive.Overlay,
|
|
12
12
|
{
|
|
13
13
|
ref,
|
|
14
14
|
className: cn(
|
|
@@ -18,9 +18,9 @@ const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
18
18
|
...props
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
|
-
DialogOverlay.displayName = Overlay.displayName;
|
|
21
|
+
DialogOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
22
22
|
const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
|
|
23
|
-
Content,
|
|
23
|
+
SheetPrimitive.Content,
|
|
24
24
|
{
|
|
25
25
|
ref,
|
|
26
26
|
className: cn(
|
|
@@ -30,9 +30,9 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
30
30
|
...props
|
|
31
31
|
},
|
|
32
32
|
children,
|
|
33
|
-
/* @__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-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ React.createElement(X, { className: "h-4 w-4" }), /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"))
|
|
33
|
+
/* @__PURE__ */ React.createElement(SheetPrimitive.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-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ React.createElement(X, { className: "h-4 w-4" }), /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"))
|
|
34
34
|
)));
|
|
35
|
-
DialogContent.displayName = Content.displayName;
|
|
35
|
+
DialogContent.displayName = SheetPrimitive.Content.displayName;
|
|
36
36
|
const DialogHeader = ({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
@@ -62,7 +62,7 @@ const DialogFooter = ({
|
|
|
62
62
|
);
|
|
63
63
|
DialogFooter.displayName = "DialogFooter";
|
|
64
64
|
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
65
|
-
Title,
|
|
65
|
+
SheetPrimitive.Title,
|
|
66
66
|
{
|
|
67
67
|
ref,
|
|
68
68
|
className: cn(
|
|
@@ -72,15 +72,15 @@ const DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
72
72
|
...props
|
|
73
73
|
}
|
|
74
74
|
));
|
|
75
|
-
DialogTitle.displayName = Title.displayName;
|
|
75
|
+
DialogTitle.displayName = SheetPrimitive.Title.displayName;
|
|
76
76
|
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
77
|
-
Description,
|
|
77
|
+
SheetPrimitive.Description,
|
|
78
78
|
{
|
|
79
79
|
ref,
|
|
80
80
|
className: cn("text-sm text-muted-foreground", className),
|
|
81
81
|
...props
|
|
82
82
|
}
|
|
83
83
|
));
|
|
84
|
-
DialogDescription.displayName = Description.displayName;
|
|
84
|
+
DialogDescription.displayName = SheetPrimitive.Description.displayName;
|
|
85
85
|
|
|
86
86
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import ChevronRight from '
|
|
5
|
-
import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
|
|
6
|
-
import Circle from '../../node_modules/lucide-react/dist/esm/icons/circle.js';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
import { ChevronRight, Check, Circle } from 'lucide-react';
|
|
7
5
|
|
|
8
|
-
const DropdownMenu =
|
|
9
|
-
const DropdownMenuTrigger = Trigger;
|
|
10
|
-
const DropdownMenuGroup =
|
|
11
|
-
const DropdownMenuPortal =
|
|
12
|
-
const DropdownMenuSub =
|
|
13
|
-
const DropdownMenuRadioGroup =
|
|
6
|
+
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
7
|
+
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
8
|
+
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
9
|
+
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
10
|
+
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
11
|
+
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
14
12
|
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
15
|
-
|
|
13
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
16
14
|
{
|
|
17
15
|
ref,
|
|
18
16
|
className: cn(
|
|
@@ -25,9 +23,9 @@ const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, .
|
|
|
25
23
|
children,
|
|
26
24
|
/* @__PURE__ */ React.createElement(ChevronRight, { className: "ml-auto" })
|
|
27
25
|
));
|
|
28
|
-
DropdownMenuSubTrigger.displayName =
|
|
26
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
29
27
|
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
30
|
-
|
|
28
|
+
DropdownMenuPrimitive.SubContent,
|
|
31
29
|
{
|
|
32
30
|
ref,
|
|
33
31
|
className: cn(
|
|
@@ -37,9 +35,9 @@ const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) =
|
|
|
37
35
|
...props
|
|
38
36
|
}
|
|
39
37
|
));
|
|
40
|
-
DropdownMenuSubContent.displayName =
|
|
41
|
-
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
42
|
-
|
|
38
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
39
|
+
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
|
|
40
|
+
DropdownMenuPrimitive.Content,
|
|
43
41
|
{
|
|
44
42
|
ref,
|
|
45
43
|
sideOffset,
|
|
@@ -50,9 +48,9 @@ const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
50
48
|
...props
|
|
51
49
|
}
|
|
52
50
|
)));
|
|
53
|
-
DropdownMenuContent.displayName =
|
|
51
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
54
52
|
const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
55
|
-
|
|
53
|
+
DropdownMenuPrimitive.Item,
|
|
56
54
|
{
|
|
57
55
|
ref,
|
|
58
56
|
className: cn(
|
|
@@ -63,9 +61,9 @@ const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref)
|
|
|
63
61
|
...props
|
|
64
62
|
}
|
|
65
63
|
));
|
|
66
|
-
DropdownMenuItem.displayName =
|
|
64
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
67
65
|
const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
68
|
-
|
|
66
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
69
67
|
{
|
|
70
68
|
ref,
|
|
71
69
|
className: cn(
|
|
@@ -75,12 +73,12 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checke
|
|
|
75
73
|
checked,
|
|
76
74
|
...props
|
|
77
75
|
},
|
|
78
|
-
/* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(
|
|
76
|
+
/* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(Check, { className: "h-4 w-4" }))),
|
|
79
77
|
children
|
|
80
78
|
));
|
|
81
|
-
DropdownMenuCheckboxItem.displayName =
|
|
79
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
82
80
|
const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
83
|
-
|
|
81
|
+
DropdownMenuPrimitive.RadioItem,
|
|
84
82
|
{
|
|
85
83
|
ref,
|
|
86
84
|
className: cn(
|
|
@@ -89,12 +87,12 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props
|
|
|
89
87
|
),
|
|
90
88
|
...props
|
|
91
89
|
},
|
|
92
|
-
/* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(
|
|
90
|
+
/* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(Circle, { className: "h-2 w-2 fill-current" }))),
|
|
93
91
|
children
|
|
94
92
|
));
|
|
95
|
-
DropdownMenuRadioItem.displayName =
|
|
93
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
96
94
|
const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
97
|
-
|
|
95
|
+
DropdownMenuPrimitive.Label,
|
|
98
96
|
{
|
|
99
97
|
ref,
|
|
100
98
|
className: cn(
|
|
@@ -105,16 +103,16 @@ const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref)
|
|
|
105
103
|
...props
|
|
106
104
|
}
|
|
107
105
|
));
|
|
108
|
-
DropdownMenuLabel.displayName =
|
|
106
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
109
107
|
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
110
|
-
|
|
108
|
+
DropdownMenuPrimitive.Separator,
|
|
111
109
|
{
|
|
112
110
|
ref,
|
|
113
111
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
114
112
|
...props
|
|
115
113
|
}
|
|
116
114
|
));
|
|
117
|
-
DropdownMenuSeparator.displayName =
|
|
115
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
118
116
|
const DropdownMenuShortcut = ({
|
|
119
117
|
className,
|
|
120
118
|
...props
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import { Typography } from '../Typography/Typography.js';
|
|
3
4
|
import { cn } from '../../lib/utils.js';
|
|
4
|
-
import { cva } from '
|
|
5
|
-
import {
|
|
5
|
+
import { cva } from 'class-variance-authority';
|
|
6
|
+
import { Menu } from 'lucide-react';
|
|
7
|
+
import { colorLuminance } from 'use-color-luminance';
|
|
6
8
|
import { useSidebar } from '../Sidebar/Sidebar.js';
|
|
7
9
|
import { Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
|
|
8
10
|
import { HelpMenu } from './HelpMenu.js';
|
|
@@ -10,8 +12,6 @@ import { ImgBrand } from './ImgBrand.js';
|
|
|
10
12
|
import { ModulesMenu } from './ModulesMenu.js';
|
|
11
13
|
import { SocialMenu } from './SocialMenu.js';
|
|
12
14
|
import { UserMenu } from './UserMenu.js';
|
|
13
|
-
import { useTranslation } from '../../node_modules/react-i18next/dist/es/useTranslation.js';
|
|
14
|
-
import Menu from '../../node_modules/lucide-react/dist/esm/icons/menu.js';
|
|
15
15
|
|
|
16
16
|
const headerVariants = cva(
|
|
17
17
|
"w-full h-12 bg-blue-800 flex items-center justify-center gap-4 px-4",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import { Button } from '../Button/Button.js';
|
|
3
4
|
import { Popover, PopoverContent, PopoverTrigger } from '../Popover/Popover.js';
|
|
4
5
|
import { ScrollArea } from '../ScrollArea/ScrollArea.js';
|
|
5
6
|
import { cn } from '../../lib/utils.js';
|
|
7
|
+
import { HelpCircle } from 'lucide-react';
|
|
6
8
|
import { Tooltip, TooltipTrigger, TooltipPortal, TooltipContent } from '../Tooltip/Tooltip.js';
|
|
7
|
-
import { useTranslation } from '../../node_modules/react-i18next/dist/es/useTranslation.js';
|
|
8
|
-
import CircleHelp from '../../node_modules/lucide-react/dist/esm/icons/circle-help.js';
|
|
9
9
|
|
|
10
10
|
const Item = ({
|
|
11
11
|
description,
|
|
@@ -56,7 +56,7 @@ const HelpMenu = ({
|
|
|
56
56
|
className: "flex-shrink-0 max-md:hidden",
|
|
57
57
|
isActive: isOpen
|
|
58
58
|
},
|
|
59
|
-
/* @__PURE__ */ React.createElement(
|
|
59
|
+
/* @__PURE__ */ React.createElement(HelpCircle, null)
|
|
60
60
|
))), /* @__PURE__ */ React.createElement(TooltipPortal, null, /* @__PURE__ */ React.createElement(
|
|
61
61
|
TooltipContent,
|
|
62
62
|
{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import { Button } from '../Button/Button.js';
|
|
3
4
|
import '../CustomIcon/Icons/CadastroFacil.js';
|
|
4
5
|
import { LogoLecom } from '../CustomIcon/Icons/LogoLecom.js';
|
|
@@ -9,7 +10,6 @@ import { Popover, PopoverContent, PopoverTrigger } from '../Popover/Popover.js';
|
|
|
9
10
|
import { ScrollArea } from '../ScrollArea/ScrollArea.js';
|
|
10
11
|
import { cn } from '../../lib/utils.js';
|
|
11
12
|
import { Tooltip, TooltipTrigger, TooltipPortal, TooltipContent } from '../Tooltip/Tooltip.js';
|
|
12
|
-
import { useTranslation } from '../../node_modules/react-i18next/dist/es/useTranslation.js';
|
|
13
13
|
|
|
14
14
|
const Icon = ({
|
|
15
15
|
icon,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import { Button } from '../Button/Button.js';
|
|
3
4
|
import { Popover, PopoverContent, PopoverTrigger } from '../Popover/Popover.js';
|
|
4
5
|
import { ScrollArea } from '../ScrollArea/ScrollArea.js';
|
|
5
6
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../Select/Select.js';
|
|
6
7
|
import { useIsMobile } from '../../hooks/useIsMobile.js';
|
|
7
|
-
import
|
|
8
|
+
import { User } from 'lucide-react';
|
|
9
|
+
import i18n from 'i18next';
|
|
8
10
|
import { Tooltip, TooltipTrigger, TooltipPortal, TooltipContent } from '../Tooltip/Tooltip.js';
|
|
9
|
-
import { useTranslation } from '../../node_modules/react-i18next/dist/es/useTranslation.js';
|
|
10
|
-
import User from '../../node_modules/lucide-react/dist/esm/icons/user.js';
|
|
11
11
|
|
|
12
12
|
const UserMenu = ({
|
|
13
13
|
customStyles,
|
|
@@ -27,7 +27,7 @@ const UserMenu = ({
|
|
|
27
27
|
return language.render;
|
|
28
28
|
}
|
|
29
29
|
const handleValueChange = (value) => {
|
|
30
|
-
|
|
30
|
+
i18n.changeLanguage(value);
|
|
31
31
|
language.select?.onChange?.(value);
|
|
32
32
|
};
|
|
33
33
|
return /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-4 p-2 rounded-md hover:bg-grey-200/70 hover:cursor-pointer transition-all duration-300" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-center gap-2 body-large-400 [&>svg]:!w-5 [&>svg]:!h-5" }, language.icon, language.label), /* @__PURE__ */ React.createElement(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import { cva } from '
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
const inputVariants = cva(
|
|
6
6
|
`flex h-8 w-full rounded-md border border-input bg-background px-3 py-2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import { cva } from '
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { NotificationCallout } from './NotificationCallout.js';
|
|
5
5
|
import { NotificationInline } from './NotificationInline.js';
|
|
6
6
|
import { MemoizedNotificationToast } from './NotificationToast.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
+
import { ChevronUpIcon } from 'lucide-react';
|
|
3
4
|
import { NotificationBase } from './NotificationBase.js';
|
|
4
5
|
import { NotificationContent } from './NotificationContent.js';
|
|
5
6
|
import { NotificationIcon } from './NotificationIcon.js';
|
|
6
|
-
import ChevronUp from '../../node_modules/lucide-react/dist/esm/icons/chevron-up.js';
|
|
7
7
|
|
|
8
8
|
const NotificationCallout = ({ ...props }) => {
|
|
9
9
|
const defaultCollapsed = props.isCollapsed ?? false;
|
|
@@ -68,7 +68,7 @@ const NotificationCallout = ({ ...props }) => {
|
|
|
68
68
|
}
|
|
69
69
|
), props.action),
|
|
70
70
|
/* @__PURE__ */ React.createElement(
|
|
71
|
-
|
|
71
|
+
ChevronUpIcon,
|
|
72
72
|
{
|
|
73
73
|
"data-testid": "collapse-icon",
|
|
74
74
|
onClick: handleCollapse,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { cn } from '../../lib/utils.js';
|
|
2
|
-
import
|
|
2
|
+
import { XIcon } from 'lucide-react';
|
|
3
3
|
|
|
4
4
|
const NotificationCloseButton = ({
|
|
5
5
|
onClose,
|
|
6
6
|
enableClose
|
|
7
7
|
}) => /* @__PURE__ */ React.createElement(
|
|
8
|
-
|
|
8
|
+
XIcon,
|
|
9
9
|
{
|
|
10
10
|
className: cn(
|
|
11
11
|
enableClose ? "opacity-100 size-5 text-grey-800 cursor-pointer hover:text-foreground group-hover:opacity-100" : "opacity-0 pointer-events-none h-0 w-0 absolute"
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Info from '../../node_modules/lucide-react/dist/esm/icons/info.js';
|
|
4
|
-
import CircleAlert from '../../node_modules/lucide-react/dist/esm/icons/circle-alert.js';
|
|
5
|
-
import CircleCheck from '../../node_modules/lucide-react/dist/esm/icons/circle-check.js';
|
|
2
|
+
import { TriangleAlertIcon, InfoIcon, CircleAlertIcon, CircleCheckIcon } from 'lucide-react';
|
|
6
3
|
|
|
7
4
|
const iconMap = {
|
|
8
|
-
success: /* @__PURE__ */ React.createElement(
|
|
9
|
-
error: /* @__PURE__ */ React.createElement(
|
|
10
|
-
information: /* @__PURE__ */ React.createElement(
|
|
11
|
-
warning: /* @__PURE__ */ React.createElement(
|
|
5
|
+
success: /* @__PURE__ */ React.createElement(CircleCheckIcon, { className: "text-green-600 size-5" }),
|
|
6
|
+
error: /* @__PURE__ */ React.createElement(CircleAlertIcon, { className: "text-red-600 size-5" }),
|
|
7
|
+
information: /* @__PURE__ */ React.createElement(InfoIcon, { className: "text-blue-600 size-5" }),
|
|
8
|
+
warning: /* @__PURE__ */ React.createElement(TriangleAlertIcon, { className: "size-5 text-yellow-600" })
|
|
12
9
|
};
|
|
13
10
|
const NotificationIcon = ({
|
|
14
11
|
variant
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import { Button } from '../Button/Button.js';
|
|
3
4
|
import { cn } from '../../lib/utils.js';
|
|
5
|
+
import { ChevronDown, MoreHorizontal, ChevronRight, ChevronLeft, ChevronFirst, ChevronLast } from 'lucide-react';
|
|
4
6
|
import { initializeI18n } from '../../i18n/index.js';
|
|
5
7
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from '../DropdownMenu/DropdownMenu.js';
|
|
6
8
|
import { Typography } from '../Typography/Typography.js';
|
|
7
|
-
import { useTranslation } from '../../node_modules/react-i18next/dist/es/useTranslation.js';
|
|
8
|
-
import ChevronDown from '../../node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
9
|
-
import Ellipsis from '../../node_modules/lucide-react/dist/esm/icons/ellipsis.js';
|
|
10
|
-
import ChevronRight from '../../node_modules/lucide-react/dist/esm/icons/chevron-right.js';
|
|
11
|
-
import ChevronLeft from '../../node_modules/lucide-react/dist/esm/icons/chevron-left.js';
|
|
12
|
-
import ChevronFirst from '../../node_modules/lucide-react/dist/esm/icons/chevron-first.js';
|
|
13
|
-
import ChevronLast from '../../node_modules/lucide-react/dist/esm/icons/chevron-last.js';
|
|
14
9
|
|
|
15
10
|
initializeI18n();
|
|
16
11
|
const PaginationContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
@@ -108,7 +103,7 @@ const PaginationEllipsis = ({
|
|
|
108
103
|
onClick
|
|
109
104
|
}) => {
|
|
110
105
|
if (asChild) {
|
|
111
|
-
return /* @__PURE__ */ React.createElement("div", { className: "w-8 h-8 flex items-center justify-center" }, /* @__PURE__ */ React.createElement(
|
|
106
|
+
return /* @__PURE__ */ React.createElement("div", { className: "w-8 h-8 flex items-center justify-center" }, /* @__PURE__ */ React.createElement(MoreHorizontal, { size: 20, className: "text-grey-800" }));
|
|
112
107
|
}
|
|
113
108
|
return /* @__PURE__ */ React.createElement(
|
|
114
109
|
Button,
|
|
@@ -121,7 +116,7 @@ const PaginationEllipsis = ({
|
|
|
121
116
|
onClick,
|
|
122
117
|
className: cn(isActive && "bg-white", className)
|
|
123
118
|
},
|
|
124
|
-
/* @__PURE__ */ React.createElement(
|
|
119
|
+
/* @__PURE__ */ React.createElement(MoreHorizontal, { size: 20 })
|
|
125
120
|
);
|
|
126
121
|
};
|
|
127
122
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
3
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
4
4
|
|
|
5
|
-
const Popover =
|
|
6
|
-
const PopoverTrigger = Trigger;
|
|
7
|
-
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(Portal, null, /* @__PURE__ */ React.createElement(
|
|
8
|
-
|
|
5
|
+
const Popover = PopoverPrimitive.Root;
|
|
6
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
|
|
8
|
+
PopoverPrimitive.Content,
|
|
9
9
|
{
|
|
10
10
|
ref,
|
|
11
11
|
align,
|
|
@@ -17,6 +17,6 @@ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffs
|
|
|
17
17
|
...props
|
|
18
18
|
}
|
|
19
19
|
)));
|
|
20
|
-
PopoverContent.displayName =
|
|
20
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
21
21
|
|
|
22
22
|
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import Circle from '
|
|
3
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
4
|
+
import { Circle } from 'lucide-react';
|
|
5
5
|
|
|
6
6
|
const RadioGroup = React.forwardRef(({ className, disabled, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
7
|
-
|
|
7
|
+
RadioGroupPrimitive.Root,
|
|
8
8
|
{
|
|
9
9
|
className: cn("grid gap-2", className),
|
|
10
10
|
disabled,
|
|
@@ -12,11 +12,11 @@ const RadioGroup = React.forwardRef(({ className, disabled, ...props }, ref) =>
|
|
|
12
12
|
ref
|
|
13
13
|
}
|
|
14
14
|
));
|
|
15
|
-
RadioGroup.displayName =
|
|
15
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
16
16
|
const RadioGroupItem = React.forwardRef(({ className, children, disabled, ...props }, ref) => {
|
|
17
17
|
const id = React.useId();
|
|
18
18
|
return /* @__PURE__ */ React.createElement("div", { className: "flex items-center space-x-2" }, /* @__PURE__ */ React.createElement(
|
|
19
|
-
|
|
19
|
+
RadioGroupPrimitive.Item,
|
|
20
20
|
{
|
|
21
21
|
ref,
|
|
22
22
|
className: cn(
|
|
@@ -27,7 +27,7 @@ const RadioGroupItem = React.forwardRef(({ className, children, disabled, ...pro
|
|
|
27
27
|
...props,
|
|
28
28
|
id
|
|
29
29
|
},
|
|
30
|
-
/* @__PURE__ */ React.createElement(Indicator, { className: "flex items-center justify-center" }, /* @__PURE__ */ React.createElement(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }))
|
|
30
|
+
/* @__PURE__ */ React.createElement(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center" }, /* @__PURE__ */ React.createElement(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }))
|
|
31
31
|
), /* @__PURE__ */ React.createElement(
|
|
32
32
|
"label",
|
|
33
33
|
{
|
|
@@ -37,6 +37,6 @@ const RadioGroupItem = React.forwardRef(({ className, children, disabled, ...pro
|
|
|
37
37
|
children
|
|
38
38
|
));
|
|
39
39
|
});
|
|
40
|
-
RadioGroupItem.displayName =
|
|
40
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
41
41
|
|
|
42
42
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
3
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
4
4
|
|
|
5
5
|
const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
6
|
-
Root,
|
|
6
|
+
ScrollAreaPrimitive.Root,
|
|
7
7
|
{
|
|
8
8
|
ref,
|
|
9
9
|
className: cn("relative overflow-hidden", className),
|
|
10
10
|
...props
|
|
11
11
|
},
|
|
12
|
-
/* @__PURE__ */ React.createElement(Viewport, { className: "h-full w-full rounded-[inherit]" }, children),
|
|
12
|
+
/* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]" }, children),
|
|
13
13
|
/* @__PURE__ */ React.createElement(ScrollBar, null),
|
|
14
|
-
/* @__PURE__ */ React.createElement(Corner, null)
|
|
14
|
+
/* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Corner, null)
|
|
15
15
|
));
|
|
16
|
-
ScrollArea.displayName = Root.displayName;
|
|
16
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
17
17
|
const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
18
|
-
ScrollAreaScrollbar,
|
|
18
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
19
19
|
{
|
|
20
20
|
ref,
|
|
21
21
|
orientation,
|
|
@@ -27,8 +27,8 @@ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
27
27
|
),
|
|
28
28
|
...props
|
|
29
29
|
},
|
|
30
|
-
/* @__PURE__ */ React.createElement(ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
30
|
+
/* @__PURE__ */ React.createElement(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
31
31
|
));
|
|
32
|
-
ScrollBar.displayName = ScrollAreaScrollbar.displayName;
|
|
32
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
33
33
|
|
|
34
34
|
export { ScrollArea, ScrollBar };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import ChevronDown from '
|
|
5
|
-
import ChevronUp from '../../node_modules/lucide-react/dist/esm/icons/chevron-up.js';
|
|
6
|
-
import Check from '../../node_modules/lucide-react/dist/esm/icons/check.js';
|
|
3
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
|
+
import { ChevronDown, ChevronUp, Check } from 'lucide-react';
|
|
7
5
|
|
|
8
|
-
const Select =
|
|
9
|
-
const SelectValue = Value;
|
|
6
|
+
const Select = SelectPrimitive.Root;
|
|
7
|
+
const SelectValue = SelectPrimitive.Value;
|
|
10
8
|
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
11
|
-
Trigger,
|
|
9
|
+
SelectPrimitive.Trigger,
|
|
12
10
|
{
|
|
13
11
|
ref,
|
|
14
12
|
className: cn(
|
|
@@ -18,11 +16,11 @@ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
18
16
|
...props
|
|
19
17
|
},
|
|
20
18
|
children,
|
|
21
|
-
/* @__PURE__ */ React.createElement(Icon, { asChild: true }, /* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4 opacity-50" }))
|
|
19
|
+
/* @__PURE__ */ React.createElement(SelectPrimitive.Icon, { asChild: true }, /* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4 opacity-50" }))
|
|
22
20
|
));
|
|
23
|
-
SelectTrigger.displayName = Trigger.displayName;
|
|
21
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
24
22
|
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
25
|
-
ScrollUpButton,
|
|
23
|
+
SelectPrimitive.ScrollUpButton,
|
|
26
24
|
{
|
|
27
25
|
ref,
|
|
28
26
|
className: cn(
|
|
@@ -33,9 +31,9 @@ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
33
31
|
},
|
|
34
32
|
/* @__PURE__ */ React.createElement(ChevronUp, { className: "h-4 w-4" })
|
|
35
33
|
));
|
|
36
|
-
SelectScrollUpButton.displayName = ScrollUpButton.displayName;
|
|
34
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
37
35
|
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
38
|
-
ScrollDownButton,
|
|
36
|
+
SelectPrimitive.ScrollDownButton,
|
|
39
37
|
{
|
|
40
38
|
ref,
|
|
41
39
|
className: cn(
|
|
@@ -46,9 +44,9 @@ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) =
|
|
|
46
44
|
},
|
|
47
45
|
/* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4" })
|
|
48
46
|
));
|
|
49
|
-
SelectScrollDownButton.displayName = ScrollDownButton.displayName;
|
|
50
|
-
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ React.createElement(Portal, null, /* @__PURE__ */ React.createElement(
|
|
51
|
-
|
|
47
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
48
|
+
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ React.createElement(SelectPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
|
|
49
|
+
SelectPrimitive.Content,
|
|
52
50
|
{
|
|
53
51
|
ref,
|
|
54
52
|
className: cn(
|
|
@@ -61,7 +59,7 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
61
59
|
},
|
|
62
60
|
/* @__PURE__ */ React.createElement(SelectScrollUpButton, null),
|
|
63
61
|
/* @__PURE__ */ React.createElement(
|
|
64
|
-
Viewport,
|
|
62
|
+
SelectPrimitive.Viewport,
|
|
65
63
|
{
|
|
66
64
|
className: cn(
|
|
67
65
|
"p-1",
|
|
@@ -72,18 +70,18 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
72
70
|
),
|
|
73
71
|
/* @__PURE__ */ React.createElement(SelectScrollDownButton, null)
|
|
74
72
|
)));
|
|
75
|
-
SelectContent.displayName =
|
|
73
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
76
74
|
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
77
|
-
Label,
|
|
75
|
+
SelectPrimitive.Label,
|
|
78
76
|
{
|
|
79
77
|
ref,
|
|
80
78
|
className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
|
|
81
79
|
...props
|
|
82
80
|
}
|
|
83
81
|
));
|
|
84
|
-
SelectLabel.displayName = Label.displayName;
|
|
82
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
85
83
|
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
86
|
-
Item,
|
|
84
|
+
SelectPrimitive.Item,
|
|
87
85
|
{
|
|
88
86
|
ref,
|
|
89
87
|
className: cn(
|
|
@@ -92,18 +90,18 @@ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
92
90
|
),
|
|
93
91
|
...props
|
|
94
92
|
},
|
|
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)
|
|
93
|
+
/* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(SelectPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(Check, { className: "h-4 w-4" }))),
|
|
94
|
+
/* @__PURE__ */ React.createElement(SelectPrimitive.ItemText, null, children)
|
|
97
95
|
));
|
|
98
|
-
SelectItem.displayName = Item.displayName;
|
|
96
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
99
97
|
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
100
|
-
Separator,
|
|
98
|
+
SelectPrimitive.Separator,
|
|
101
99
|
{
|
|
102
100
|
ref,
|
|
103
101
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
104
102
|
...props
|
|
105
103
|
}
|
|
106
104
|
));
|
|
107
|
-
SelectSeparator.displayName = Separator.displayName;
|
|
105
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
108
106
|
|
|
109
107
|
export { Select, SelectContent, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
3
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
4
4
|
|
|
5
5
|
const Separator = React.forwardRef(
|
|
6
6
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
7
|
-
Root,
|
|
7
|
+
SeparatorPrimitive.Root,
|
|
8
8
|
{
|
|
9
9
|
ref,
|
|
10
10
|
decorative,
|
|
@@ -18,6 +18,6 @@ const Separator = React.forwardRef(
|
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
|
-
Separator.displayName = Root.displayName;
|
|
21
|
+
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
22
22
|
|
|
23
23
|
export { Separator };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import { cva } from '
|
|
5
|
-
import X from '
|
|
3
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { X } from 'lucide-react';
|
|
6
6
|
|
|
7
|
-
const Sheet = Root;
|
|
8
|
-
const SheetPortal = Portal;
|
|
7
|
+
const Sheet = SheetPrimitive.Root;
|
|
8
|
+
const SheetPortal = SheetPrimitive.Portal;
|
|
9
9
|
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
10
|
-
Overlay,
|
|
10
|
+
SheetPrimitive.Overlay,
|
|
11
11
|
{
|
|
12
12
|
className: cn(
|
|
13
13
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -17,7 +17,7 @@ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
17
17
|
ref
|
|
18
18
|
}
|
|
19
19
|
));
|
|
20
|
-
SheetOverlay.displayName = Overlay.displayName;
|
|
20
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
21
21
|
const sheetVariants = cva(
|
|
22
22
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
23
23
|
{
|
|
@@ -35,34 +35,34 @@ const sheetVariants = cva(
|
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
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,
|
|
38
|
+
SheetPrimitive.Content,
|
|
39
39
|
{
|
|
40
40
|
ref,
|
|
41
41
|
className: cn(sheetVariants({ side }), className),
|
|
42
42
|
...props
|
|
43
43
|
},
|
|
44
|
-
/* @__PURE__ */ React.createElement(DialogTitle, null),
|
|
44
|
+
/* @__PURE__ */ React.createElement(SheetPrimitive.DialogTitle, null),
|
|
45
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"))
|
|
46
|
+
/* @__PURE__ */ React.createElement(SheetPrimitive.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
47
|
)));
|
|
48
|
-
SheetContent.displayName = Content.displayName;
|
|
48
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
49
49
|
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
50
|
-
Title,
|
|
50
|
+
SheetPrimitive.Title,
|
|
51
51
|
{
|
|
52
52
|
ref,
|
|
53
53
|
className: cn("text-lg font-semibold text-foreground", className),
|
|
54
54
|
...props
|
|
55
55
|
}
|
|
56
56
|
));
|
|
57
|
-
SheetTitle.displayName = Title.displayName;
|
|
57
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
58
58
|
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
59
|
-
Description,
|
|
59
|
+
SheetPrimitive.Description,
|
|
60
60
|
{
|
|
61
61
|
ref,
|
|
62
62
|
className: cn("text-sm text-muted-foreground", className),
|
|
63
63
|
...props
|
|
64
64
|
}
|
|
65
65
|
));
|
|
66
|
-
SheetDescription.displayName = Description.displayName;
|
|
66
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
67
67
|
|
|
68
68
|
export { Sheet, SheetContent, SheetDescription, SheetOverlay, SheetPortal, SheetTitle };
|
|
@@ -7,10 +7,9 @@ import { Skeleton } from '../Skeleton/Skeleton.js';
|
|
|
7
7
|
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
|
|
8
8
|
import { useIsMobile } from '../../hooks/useIsMobile.js';
|
|
9
9
|
import { cn } from '../../lib/utils.js';
|
|
10
|
-
import { Slot } from '
|
|
11
|
-
import { cva } from '
|
|
12
|
-
import X from '
|
|
13
|
-
import PanelLeft from '../../node_modules/lucide-react/dist/esm/icons/panel-left.js';
|
|
10
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
11
|
+
import { cva } from 'class-variance-authority';
|
|
12
|
+
import { X, PanelLeft } from 'lucide-react';
|
|
14
13
|
|
|
15
14
|
const SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
16
15
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
3
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
4
4
|
|
|
5
5
|
const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
6
|
-
Root,
|
|
6
|
+
SwitchPrimitives.Root,
|
|
7
7
|
{
|
|
8
8
|
className: cn(
|
|
9
9
|
"peer flex items-center shrink-0 h-6 w-12 p-[2px] group rounded-full cursor-pointer bg-transparent focus:outline-none transition-colors data-[state=unchecked]:border-2 data-[state=unchecked]:border-grey-400 data-[state=unchecked]:hover:border-grey-500 data-[state=unchecked]:active:border-grey-700 data-[state=unchecked]:disabled:border-grey-300 data-[state=checked]:bg-blue-600 data-[state=checked]:hover:bg-blue-700 data-[state=checked]:active:bg-blue-800 data-[state=checked]:disabled:bg-blue-200 disabled:cursor-not-allowed",
|
|
@@ -13,7 +13,7 @@ const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
13
13
|
...props
|
|
14
14
|
},
|
|
15
15
|
/* @__PURE__ */ React.createElement(
|
|
16
|
-
Thumb,
|
|
16
|
+
SwitchPrimitives.Thumb,
|
|
17
17
|
{
|
|
18
18
|
className: cn(
|
|
19
19
|
"pointer-events-none rounded-full shadow-sm transition-all h-4 w-4 data-[state=unchecked]:bg-grey-400 data-[state=unchecked]:translate-x-1 group-hover:data-[state=unchecked]:bg-grey-500 group-focus:ring-8 group-focus:ring-blue-200 group-focus:ring-opacity-50 group-active:group-enabled:h-5 group-active:group-enabled:w-5 group-active:data-[state=unchecked]:bg-grey-700 group-active:group-enabled:data-[state=unchecked]:translate-x-[-2px] group-disabled:data-[state=unchecked]:bg-grey-300 group-disabled:data-[state=unchecked]:bg-opacity-65 data-[state=checked]:bg-white data-[state=checked]:translate-x-6"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import { cva } from '
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
const tagVariants = cva(
|
|
6
6
|
"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",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import
|
|
4
|
-
import { cva } from '
|
|
3
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
5
|
|
|
6
|
-
const TooltipProvider = Provider;
|
|
7
|
-
const Tooltip =
|
|
8
|
-
const TooltipTrigger = Trigger;
|
|
9
|
-
const TooltipArrow =
|
|
10
|
-
const TooltipPortal = Portal;
|
|
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;
|
|
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
|
{
|
|
@@ -46,7 +46,7 @@ const TooltipContent = React.forwardRef(
|
|
|
46
46
|
children,
|
|
47
47
|
...props
|
|
48
48
|
}, ref) => /* @__PURE__ */ React.createElement(
|
|
49
|
-
|
|
49
|
+
TooltipPrimitive.Content,
|
|
50
50
|
{
|
|
51
51
|
ref,
|
|
52
52
|
side,
|
|
@@ -60,6 +60,6 @@ const TooltipContent = React.forwardRef(
|
|
|
60
60
|
arrow && /* @__PURE__ */ React.createElement(TooltipArrow, { className: "tooltip-arrow", width: 12, height: 6 })
|
|
61
61
|
)
|
|
62
62
|
);
|
|
63
|
-
TooltipContent.displayName =
|
|
63
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
64
64
|
|
|
65
65
|
export { Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
|
-
import { cva } from '
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
const typographyVariants = cva("text-grey-950", {
|
|
6
6
|
variants: {
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { initReactI18next } from 'react-i18next';
|
|
2
|
+
export { Translation, useTranslation } from 'react-i18next';
|
|
3
|
+
import i18n from 'i18next';
|
|
4
|
+
export { default as i18n } from 'i18next';
|
|
2
5
|
import { translations } from './locales/index.js';
|
|
3
|
-
import { initReactI18next } from '../node_modules/react-i18next/dist/es/initReactI18next.js';
|
|
4
6
|
|
|
5
7
|
var Translations = /* @__PURE__ */ ((Translations2) => {
|
|
6
8
|
Translations2["PT_BR"] = "pt_BR";
|
|
@@ -26,7 +28,7 @@ const initializeI18n = (options) => {
|
|
|
26
28
|
"en_US" /* EN_US */,
|
|
27
29
|
"es_ES" /* ES_ES */
|
|
28
30
|
];
|
|
29
|
-
if (!
|
|
31
|
+
if (!i18n.isInitialized) {
|
|
30
32
|
const mappedResources = {
|
|
31
33
|
resources: {}
|
|
32
34
|
};
|
|
@@ -41,15 +43,15 @@ const initializeI18n = (options) => {
|
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
45
|
});
|
|
44
|
-
|
|
46
|
+
i18n.use(initReactI18next).init({
|
|
45
47
|
...i18nConfig,
|
|
46
48
|
...mappedResources,
|
|
47
49
|
lng
|
|
48
50
|
});
|
|
49
51
|
} else if (resources) {
|
|
50
|
-
|
|
52
|
+
i18n.changeLanguage(lng);
|
|
51
53
|
languages.forEach((language) => {
|
|
52
|
-
|
|
54
|
+
i18n.addResourceBundle(
|
|
53
55
|
language,
|
|
54
56
|
"translations",
|
|
55
57
|
resources?.[language]?.translations ?? {},
|
|
@@ -60,4 +62,4 @@ const initializeI18n = (options) => {
|
|
|
60
62
|
}
|
|
61
63
|
};
|
|
62
64
|
|
|
63
|
-
export { Translations,
|
|
65
|
+
export { Translations, initializeI18n };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,5 @@ export { usePagination } from './hooks/usePagination.js';
|
|
|
31
31
|
export { Translations, initializeI18n } from './i18n/index.js';
|
|
32
32
|
export { colors } from './tokens/colors.js';
|
|
33
33
|
export { fonts } from './tokens/fonts.js';
|
|
34
|
-
export { default as i18n } from '
|
|
35
|
-
export { useTranslation } from '
|
|
36
|
-
export { Translation } from './node_modules/react-i18next/dist/es/Translation.js';
|
|
34
|
+
export { default as i18n } from 'i18next';
|
|
35
|
+
export { Translation, useTranslation } from 'react-i18next';
|
package/dist/lib/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { clsx } from '
|
|
2
|
-
import { twMerge } from '
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
|
|
4
4
|
function cn(...inputs) {
|
|
5
5
|
return twMerge(clsx(inputs));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lecom-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -43,21 +43,19 @@
|
|
|
43
43
|
"i18next": "^24.2.2",
|
|
44
44
|
"lucide-react": "^0.468.0",
|
|
45
45
|
"next": "^15.1.4",
|
|
46
|
+
"react": "^18.0.0",
|
|
47
|
+
"react-dom": "^18.0.0",
|
|
46
48
|
"react-i18next": "^15.4.0",
|
|
47
49
|
"tailwind-merge": "^2.5.5",
|
|
48
50
|
"tailwindcss-animate": "^1.0.7",
|
|
49
51
|
"use-color-luminance": "^1.3.0",
|
|
50
|
-
"use-luminance": "^0.1.3"
|
|
51
|
-
"react": "^18.2.0",
|
|
52
|
-
"react-dom": "^18.2.0"
|
|
52
|
+
"use-luminance": "^0.1.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@chromatic-com/storybook": "3.2.2",
|
|
56
56
|
"@eslint/eslintrc": "^3",
|
|
57
57
|
"@rollup/plugin-alias": "^5.1.1",
|
|
58
|
-
"@rollup/plugin-commonjs": "^28.0.3",
|
|
59
58
|
"@rollup/plugin-image": "^3.0.3",
|
|
60
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
61
59
|
"@storybook/addon-essentials": "8.4.7",
|
|
62
60
|
"@storybook/addon-interactions": "8.4.7",
|
|
63
61
|
"@storybook/addon-onboarding": "8.4.7",
|
|
@@ -69,9 +67,8 @@
|
|
|
69
67
|
"@testing-library/jest-dom": "^6.6.3",
|
|
70
68
|
"@testing-library/react": "^16.1.0",
|
|
71
69
|
"@types/node": "^20",
|
|
72
|
-
"@types/react": "^18.
|
|
73
|
-
"@types/react-dom": "^18.
|
|
74
|
-
"@types/rollup-plugin-peer-deps-external": "^2.2.4",
|
|
70
|
+
"@types/react": "^18.0.0",
|
|
71
|
+
"@types/react-dom": "^18.0.0",
|
|
75
72
|
"eslint": "^9",
|
|
76
73
|
"eslint-config-next": "15.1.0",
|
|
77
74
|
"eslint-plugin-import-helpers": "^2.0.1",
|
|
@@ -90,20 +87,8 @@
|
|
|
90
87
|
"typescript": "^5"
|
|
91
88
|
},
|
|
92
89
|
"peerDependencies": {
|
|
93
|
-
"react": "
|
|
94
|
-
"react-dom": "
|
|
95
|
-
},
|
|
96
|
-
"peerDependenciesMeta": {
|
|
97
|
-
"react": {
|
|
98
|
-
"optional": true
|
|
99
|
-
},
|
|
100
|
-
"react-dom": {
|
|
101
|
-
"optional": true
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"resolutions": {
|
|
105
|
-
"react": "^19.0.0",
|
|
106
|
-
"react-dom": "^19.0.0"
|
|
90
|
+
"react": "^18.0.0",
|
|
91
|
+
"react-dom": "^18.0.0"
|
|
107
92
|
},
|
|
108
93
|
"eslintConfig": {
|
|
109
94
|
"extends": [
|