lecom-ui 5.2.71 → 5.2.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/components/Combobox/Combobox.js +5 -19
  2. package/dist/components/CustomDivider/CustomDivider.js +18 -36
  3. package/dist/components/DataTable/DataTable.utils.js +1 -5
  4. package/dist/components/DataTable/Table.js +40 -60
  5. package/dist/components/Sheet/Sheet.js +1 -31
  6. package/dist/components/Steps/{StepsTimeline.js → Steps.js} +1 -0
  7. package/dist/components/Switch/Switch.js +20 -5
  8. package/dist/components/TagInput/TagInput.js +55 -58
  9. package/dist/index.d.ts +47 -93
  10. package/dist/index.js +2 -4
  11. package/dist/style.min.css +1 -1
  12. package/package.json +4 -3
  13. package/dist/badge.js +0 -26
  14. package/dist/button-dropdown.js +0 -117
  15. package/dist/button.js +0 -104
  16. package/dist/calendar.js +0 -62
  17. package/dist/card.js +0 -56
  18. package/dist/checkbox.js +0 -55
  19. package/dist/collapse.js +0 -60
  20. package/dist/collapsible.js +0 -7
  21. package/dist/command.js +0 -107
  22. package/dist/components/Collapse/Collapse.js +0 -94
  23. package/dist/components/DataTable/useOptimizedTable.js +0 -75
  24. package/dist/data-table/data-table.js +0 -490
  25. package/dist/date-picker.js +0 -92
  26. package/dist/dialog.js +0 -95
  27. package/dist/dropdown-menu.js +0 -138
  28. package/dist/fonts/Montserrat-Bold.otf +0 -0
  29. package/dist/fonts/Montserrat-Medium.otf +0 -0
  30. package/dist/fonts/Montserrat-Regular.otf +0 -0
  31. package/dist/fonts/Roboto-Bold.otf +0 -0
  32. package/dist/fonts/Roboto-Light.otf +0 -0
  33. package/dist/fonts/Roboto-Medium.otf +0 -0
  34. package/dist/fonts/Roboto-Regular.otf +0 -0
  35. package/dist/form.js +0 -102
  36. package/dist/header.js +0 -90
  37. package/dist/hook/useDebounce.js +0 -16
  38. package/dist/icon-handler.js +0 -72
  39. package/dist/icons/brandModules.js +0 -27
  40. package/dist/icons/companyLogo.js +0 -61
  41. package/dist/icons/createUseAuxiliary.js +0 -107
  42. package/dist/icons/footerInfo.js +0 -25
  43. package/dist/icons/logo_lecom.svg.js +0 -3
  44. package/dist/icons/newUpdate.js +0 -23
  45. package/dist/icons/robertyRPA.js +0 -30
  46. package/dist/ilustrations/access_denied.js +0 -252
  47. package/dist/ilustrations/page_not_found.js +0 -188
  48. package/dist/input.js +0 -42
  49. package/dist/label.js +0 -20
  50. package/dist/modal.js +0 -27
  51. package/dist/pagination.js +0 -474
  52. package/dist/plugin/extend.ts +0 -78
  53. package/dist/plugin/fontFaces.ts +0 -172
  54. package/dist/plugin/general.ts +0 -12
  55. package/dist/plugin/pluginDev.js +0 -5
  56. package/dist/plugin/pluginNext.js +0 -5
  57. package/dist/plugin/pluginVite.js +0 -5
  58. package/dist/plugin/template.ts +0 -31
  59. package/dist/plugin/typographies.ts +0 -152
  60. package/dist/plugin/varsTheme.ts +0 -79
  61. package/dist/plugin.cjs +0 -298
  62. package/dist/popover.js +0 -24
  63. package/dist/radio-group.js +0 -74
  64. package/dist/range-picker.js +0 -99
  65. package/dist/scroll-area.js +0 -37
  66. package/dist/search-bar.js +0 -151
  67. package/dist/select.js +0 -156
  68. package/dist/separator.js +0 -24
  69. package/dist/sheet.js +0 -106
  70. package/dist/sidebar.js +0 -188
  71. package/dist/skeleton.js +0 -17
  72. package/dist/slider.js +0 -23
  73. package/dist/status-screen.js +0 -71
  74. package/dist/switch.js +0 -27
  75. package/dist/table.js +0 -83
  76. package/dist/tabs.js +0 -44
  77. package/dist/tag.js +0 -33
  78. package/dist/textarea.js +0 -22
  79. package/dist/toast.js +0 -105
  80. package/dist/toaster.js +0 -23
  81. package/dist/tooltip.js +0 -133
  82. package/dist/use-toast.js +0 -121
package/dist/select.js DELETED
@@ -1,156 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { CaretSortIcon, ChevronUpIcon, ChevronDownIcon, CheckIcon } from '@radix-ui/react-icons';
4
- import * as SelectPrimitive from '@radix-ui/react-select';
5
- import { Database } from 'lucide-react';
6
- import { cn } from './lib/utils.js';
7
- import { Input } from './input.js';
8
-
9
- const Select = SelectPrimitive.Root;
10
- const SelectGroup = SelectPrimitive.Group;
11
- const SelectValue = SelectPrimitive.Value;
12
- const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
13
- SelectPrimitive.Trigger,
14
- {
15
- ref,
16
- className: cn(
17
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
18
- className
19
- ),
20
- ...props,
21
- children: [
22
- children,
23
- /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
24
- ]
25
- }
26
- ));
27
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
28
- const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
29
- SelectPrimitive.ScrollUpButton,
30
- {
31
- ref,
32
- className: cn(
33
- "flex cursor-default items-center justify-center py-1",
34
- className
35
- ),
36
- ...props,
37
- children: /* @__PURE__ */ jsx(ChevronUpIcon, {})
38
- }
39
- ));
40
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
41
- const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
42
- SelectPrimitive.ScrollDownButton,
43
- {
44
- ref,
45
- className: cn(
46
- "flex cursor-default items-center justify-center py-1",
47
- className
48
- ),
49
- ...props,
50
- children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
51
- }
52
- ));
53
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
54
- const SelectContent = React.forwardRef(
55
- ({ className, children, position = "popper", isSearch = false, ...props }, ref) => {
56
- const [search, setSearch] = React.useState("");
57
- const [filteredChildren, setFilteredChildren] = React.useState([children]);
58
- const inputRef = React.useRef(null);
59
- React.useEffect(() => {
60
- const filtered = React.Children.toArray(children).filter((child) => {
61
- if (React.isValidElement(child) && child.props.children) {
62
- return child.props.children.toLowerCase().includes(search.toLowerCase());
63
- }
64
- return false;
65
- });
66
- setFilteredChildren(filtered);
67
- }, [search, children]);
68
- React.useEffect(() => {
69
- if (inputRef.current) {
70
- inputRef.current.focus();
71
- }
72
- }, [search, filteredChildren]);
73
- return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
74
- SelectPrimitive.Content,
75
- {
76
- ref,
77
- className: cn(
78
- "relative z-50 max-h-96 min-w-[8rem] overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",
79
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
80
- className
81
- ),
82
- position,
83
- ...props,
84
- children: [
85
- isSearch && /* @__PURE__ */ jsx("div", { className: "p-2", children: /* @__PURE__ */ jsx(
86
- Input,
87
- {
88
- type: "text",
89
- ref: inputRef,
90
- placeholder: "Search...",
91
- className: "w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm focus:outline-none focus:ring-1 focus:ring-ring",
92
- value: search,
93
- onChange: (e) => setSearch(e.target.value)
94
- }
95
- ) }),
96
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
97
- filteredChildren.length > 0 ? /* @__PURE__ */ jsx(
98
- SelectPrimitive.Viewport,
99
- {
100
- className: cn(
101
- "p-1",
102
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
103
- ),
104
- children: React.Children.toArray(
105
- filteredChildren
106
- )
107
- }
108
- ) : /* @__PURE__ */ jsxs(SelectPrimitive.Viewport, { className: "flex flex-col items-center gap-2 p-3 text-gray-400", children: [
109
- /* @__PURE__ */ jsx(Database, { className: "w-5 h-5" }),
110
- "No Data"
111
- ] }),
112
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
113
- ]
114
- }
115
- ) });
116
- }
117
- );
118
- SelectContent.displayName = SelectPrimitive.Content.displayName;
119
- const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
120
- SelectPrimitive.Label,
121
- {
122
- ref,
123
- className: cn("px-2 py-1.5 text-sm font-semibold", className),
124
- ...props
125
- }
126
- ));
127
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
128
- const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => {
129
- return /* @__PURE__ */ jsxs(
130
- SelectPrimitive.Item,
131
- {
132
- ref,
133
- className: cn(
134
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
135
- className
136
- ),
137
- ...props,
138
- children: [
139
- /* @__PURE__ */ jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "h-4 w-4" }) }) }),
140
- /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
141
- ]
142
- }
143
- );
144
- });
145
- SelectItem.displayName = SelectPrimitive.Item.displayName;
146
- const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
147
- SelectPrimitive.Separator,
148
- {
149
- ref,
150
- className: cn("-mx-1 my-1 h-px bg-muted", className),
151
- ...props
152
- }
153
- ));
154
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
155
-
156
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
package/dist/separator.js DELETED
@@ -1,24 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
4
- import { cn } from './lib/utils.js';
5
-
6
- const Separator = React.forwardRef(
7
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
8
- SeparatorPrimitive.Root,
9
- {
10
- ref,
11
- decorative,
12
- orientation,
13
- className: cn(
14
- "shrink-0 bg-border",
15
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
16
- className
17
- ),
18
- ...props
19
- }
20
- )
21
- );
22
- Separator.displayName = SeparatorPrimitive.Root.displayName;
23
-
24
- export { Separator };
package/dist/sheet.js DELETED
@@ -1,106 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import * as DialogPrimitive from '@radix-ui/react-dialog';
4
- import { Cross2Icon } from '@radix-ui/react-icons';
5
- import { cva } from 'class-variance-authority';
6
- import { cn } from './lib/utils.js';
7
-
8
- const Sheet = DialogPrimitive.Root;
9
- const SheetTrigger = DialogPrimitive.Trigger;
10
- const SheetClose = DialogPrimitive.Close;
11
- const SheetPortal = DialogPrimitive.Portal;
12
- const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
13
- DialogPrimitive.Overlay,
14
- {
15
- className: cn(
16
- "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
- className
18
- ),
19
- ...props,
20
- ref
21
- }
22
- ));
23
- SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
24
- const sheetVariants = cva(
25
- "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",
26
- {
27
- variants: {
28
- side: {
29
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
30
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
31
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
32
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
33
- }
34
- },
35
- defaultVariants: {
36
- side: "right"
37
- }
38
- }
39
- );
40
- const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
41
- /* @__PURE__ */ jsx(SheetOverlay, {}),
42
- /* @__PURE__ */ jsxs(
43
- DialogPrimitive.Content,
44
- {
45
- ref,
46
- className: cn(sheetVariants({ side }), className),
47
- ...props,
48
- children: [
49
- children,
50
- /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
51
- /* @__PURE__ */ jsx(Cross2Icon, { className: "h-4 w-4" }),
52
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
53
- ] })
54
- ]
55
- }
56
- )
57
- ] }));
58
- SheetContent.displayName = DialogPrimitive.Content.displayName;
59
- const SheetHeader = ({
60
- className,
61
- ...props
62
- }) => /* @__PURE__ */ jsx(
63
- "div",
64
- {
65
- className: cn(
66
- "flex flex-col space-y-2 text-center sm:text-left",
67
- className
68
- ),
69
- ...props
70
- }
71
- );
72
- SheetHeader.displayName = "SheetHeader";
73
- const SheetFooter = ({
74
- className,
75
- ...props
76
- }) => /* @__PURE__ */ jsx(
77
- "div",
78
- {
79
- className: cn(
80
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
81
- className
82
- ),
83
- ...props
84
- }
85
- );
86
- SheetFooter.displayName = "SheetFooter";
87
- const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
88
- DialogPrimitive.Title,
89
- {
90
- ref,
91
- className: cn("text-lg font-semibold text-foreground", className),
92
- ...props
93
- }
94
- ));
95
- SheetTitle.displayName = DialogPrimitive.Title.displayName;
96
- const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
97
- DialogPrimitive.Description,
98
- {
99
- ref,
100
- className: cn("text-sm text-muted-foreground", className),
101
- ...props
102
- }
103
- ));
104
- SheetDescription.displayName = DialogPrimitive.Description.displayName;
105
-
106
- export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
package/dist/sidebar.js DELETED
@@ -1,188 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { createContext, forwardRef, useState, useEffect, Children, isValidElement, cloneElement, useContext } from 'react';
3
- import { ReactSVG } from 'react-svg';
4
- import { cn } from './lib/utils.js';
5
- import { Skeleton } from './skeleton.js';
6
- import { Tooltip, TooltipTrigger } from './tooltip.js';
7
-
8
- const SideBarContext = createContext({
9
- isCollapsed: false,
10
- isLoading: false
11
- });
12
- function useSideBarContext() {
13
- const context = useContext(SideBarContext);
14
- if (!context) {
15
- throw new Error("Erro ao renderizar SideBar.");
16
- }
17
- return context;
18
- }
19
- const SideBarProvider = ({
20
- isCollapsed,
21
- isLoading,
22
- children
23
- }) => {
24
- return /* @__PURE__ */ jsx(SideBarContext.Provider, { value: { isCollapsed, isLoading }, children });
25
- };
26
- const Sidebar = forwardRef(
27
- ({
28
- isCollapsed,
29
- isLoading = false,
30
- children,
31
- className,
32
- shouldHideOnResize = true
33
- }, ref) => {
34
- const [isHidden, setIsHidden] = useState(false);
35
- useEffect(() => {
36
- const handleResize = () => {
37
- if (shouldHideOnResize && window.innerWidth <= 768 && isCollapsed) {
38
- setIsHidden(true);
39
- } else {
40
- setIsHidden(false);
41
- }
42
- };
43
- window.addEventListener("resize", handleResize);
44
- handleResize();
45
- return () => {
46
- window.removeEventListener("resize", handleResize);
47
- };
48
- }, [shouldHideOnResize, isCollapsed]);
49
- return /* @__PURE__ */ jsx(SideBarProvider, { isCollapsed, isLoading, children: /* @__PURE__ */ jsx(
50
- "aside",
51
- {
52
- ref,
53
- className: cn(
54
- `bg-white h-screen fixed left-0 top-[50px] z-[9998] shadow border-r-1 transition-all duration-200 ease-in-out`,
55
- {
56
- "w-[50px]": isCollapsed,
57
- "w-[300px]": !isCollapsed,
58
- hidden: isHidden
59
- },
60
- className
61
- ),
62
- id: "sidebar",
63
- children: /* @__PURE__ */ jsx(
64
- "nav",
65
- {
66
- className: `flex h-auto pt-6 w-full items-center overflow-hidden`,
67
- children: Children.map(children, (child) => {
68
- if (isValidElement(child)) {
69
- return cloneElement(child, {
70
- isCollapsed,
71
- isLoading
72
- });
73
- } else {
74
- return child;
75
- }
76
- })
77
- }
78
- )
79
- }
80
- ) });
81
- }
82
- );
83
- Sidebar.displayName = "Sidebar";
84
- const SidebarItem = forwardRef(
85
- ({ currentPath, menuItems = [], className, target, side }, ref) => {
86
- const { isCollapsed, isLoading } = useSideBarContext();
87
- const [selectedItem, setSelectedItem] = useState(() => currentPath);
88
- return /* @__PURE__ */ jsx("ul", { className: cn(`flex flex-col w-full gap-2 items-center`), children: isLoading ? /* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-2 w-full"), children: Array.from({ length: menuItems.length }, (_, index) => /* @__PURE__ */ jsx(
89
- "li",
90
- {
91
- className: "flex items-center justify-center h-10 rounded-sm w-full",
92
- children: /* @__PURE__ */ jsx(
93
- Skeleton,
94
- {
95
- className: cn(
96
- "relative flex justify-center items-center w-full h-10 overflow-hidden",
97
- {
98
- "m-2": !isCollapsed,
99
- "m-1": isCollapsed
100
- }
101
- ),
102
- children: /* @__PURE__ */ jsx(
103
- Skeleton,
104
- {
105
- className: cn(
106
- "absolut h-6 rounded-sm w-11/12 animate-loading drop-shadow-2xl",
107
- {
108
- "m-2": !isCollapsed,
109
- "m-1": isCollapsed
110
- }
111
- )
112
- }
113
- )
114
- }
115
- )
116
- },
117
- index
118
- )) }) : menuItems.map((item, index) => {
119
- const IconComponent = item.icon;
120
- return /* @__PURE__ */ jsx(
121
- "li",
122
- {
123
- ref,
124
- className: cn(
125
- `flex items-center justify-center text-gray-500 rounded-sm transition-colors duration-200 h-10 leading-8 px-2`,
126
- {
127
- "bg-dodgerblue hover:bg-electricblue": selectedItem === item.href,
128
- "hover:bg-gray-scale12": selectedItem !== item.href
129
- },
130
- className
131
- ),
132
- onClick: () => setSelectedItem(item.href),
133
- style: { width: "calc(100% - 10px)" },
134
- children: isCollapsed ? /* @__PURE__ */ jsx(Tooltip, { title: item.label, side, className: "ml-3", children: /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
135
- "a",
136
- {
137
- className: cn(
138
- `flex items-center w-full font-semibold leading-4`,
139
- {
140
- "text-letterblue": selectedItem === item.href,
141
- "text-gray-scale60 hover:text-black": selectedItem !== item.href
142
- }
143
- ),
144
- href: item.href,
145
- "aria-label": item.label,
146
- target,
147
- children: /* @__PURE__ */ jsx("div", { className: "flex items-center w-6 justify-center", children: typeof item.icon === "string" ? /* @__PURE__ */ jsx(ReactSVG, { src: item.icon, className: "w-6 h-6" }) : /* @__PURE__ */ jsx(IconComponent, { className: "w-6 h-6" }) })
148
- }
149
- ) }) }) : /* @__PURE__ */ jsxs(
150
- "a",
151
- {
152
- className: cn(
153
- `flex items-center w-full font-semibold leading-4`,
154
- {
155
- "text-letterblue": selectedItem === item.href,
156
- "text-gray-scale60 hover:text-black": selectedItem !== item.href
157
- }
158
- ),
159
- href: item.href,
160
- "aria-label": item.label,
161
- target,
162
- children: [
163
- /* @__PURE__ */ jsx("div", { className: "flex items-center w-6 justify-center", children: typeof item.icon === "string" ? /* @__PURE__ */ jsx(ReactSVG, { src: item.icon, className: "w-6 h-6" }) : /* @__PURE__ */ jsx(IconComponent, { className: "w-6 h-6" }) }),
164
- /* @__PURE__ */ jsx(
165
- "span",
166
- {
167
- className: cn(
168
- "ml-6 transition-opacity duration-1 ease-in-out text-[#7A7A7A]",
169
- {
170
- "opacity-0 duration-75": isCollapsed,
171
- "opacity-100 duration-500": !isCollapsed
172
- }
173
- ),
174
- children: item.label
175
- }
176
- )
177
- ]
178
- }
179
- )
180
- },
181
- index
182
- );
183
- }) });
184
- }
185
- );
186
- SidebarItem.displayName = "SidebarItem";
187
-
188
- export { SideBarProvider, Sidebar, SidebarItem };
package/dist/skeleton.js DELETED
@@ -1,17 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { cn } from './lib/utils.js';
3
-
4
- function Skeleton({
5
- className,
6
- ...props
7
- }) {
8
- return /* @__PURE__ */ jsx(
9
- "div",
10
- {
11
- className: cn("animate-pulse rounded-md bg-primary/10", className),
12
- ...props
13
- }
14
- );
15
- }
16
-
17
- export { Skeleton };
package/dist/slider.js DELETED
@@ -1,23 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import * as SliderPrimitive from '@radix-ui/react-slider';
4
- import { cn } from './lib/utils.js';
5
-
6
- const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
7
- SliderPrimitive.Root,
8
- {
9
- ref,
10
- className: cn(
11
- "relative flex w-full touch-none select-none items-center",
12
- className
13
- ),
14
- ...props,
15
- children: [
16
- /* @__PURE__ */ jsx(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
17
- /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
18
- ]
19
- }
20
- ));
21
- Slider.displayName = SliderPrimitive.Root.displayName;
22
-
23
- export { Slider };
@@ -1,71 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { LogOutIcon } from 'lucide-react';
3
- import { AccessDenied } from './ilustrations/access_denied.js';
4
- import { PageNotFound } from './ilustrations/page_not_found.js';
5
- import { cn } from './lib/utils.js';
6
- import { Button } from './button.js';
7
- import { IconHandler } from './icon-handler.js';
8
-
9
- const StatusScreen = ({
10
- imageUrl = "",
11
- title,
12
- paragraf_one,
13
- paragraf_two,
14
- type,
15
- buttonText = "",
16
- buttonIcon,
17
- onActionClick,
18
- className,
19
- children
20
- }) => {
21
- const defaultImage = {
22
- "403": {
23
- imageUrl: AccessDenied
24
- },
25
- "404": {
26
- imageUrl: PageNotFound
27
- }
28
- };
29
- const errorMessage = type ? defaultImage[type] : void 0;
30
- const buttonBack = () => /* @__PURE__ */ jsxs(
31
- Button,
32
- {
33
- className: "flex gap-2 mt-8 p-6 bg-buttonblue text-white rounded transition duration-300 ease-in-out hover:brightness-150 hover:delay-150",
34
- onClick: onActionClick,
35
- children: [
36
- buttonIcon ? buttonIcon : /* @__PURE__ */ jsx(LogOutIcon, { className: "transform rotate-180 w-5 h-5" }),
37
- /* @__PURE__ */ jsx("span", { className: "text-[18px]", children: buttonText })
38
- ]
39
- }
40
- );
41
- return /* @__PURE__ */ jsxs(
42
- "div",
43
- {
44
- className: cn(
45
- "flex flex-col justify-center items-center gap-10 bg-white pt-[calc(75px+59px)] max-h-full max-w-full",
46
- className
47
- ),
48
- children: [
49
- !imageUrl && errorMessage && errorMessage.imageUrl ? /* @__PURE__ */ jsx(
50
- IconHandler,
51
- {
52
- icon: errorMessage.imageUrl,
53
- className: "w-auto h-full",
54
- width: "600px",
55
- height: "550px"
56
- }
57
- ) : imageUrl,
58
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center w-full max-w-8xl text-gray-scale29 font-normal", children: [
59
- /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold", children: title }),
60
- /* @__PURE__ */ jsx("p", { className: "mt-4 text-[20px] flex flex-wrap", children: paragraf_one }),
61
- paragraf_two !== "" && /* @__PURE__ */ jsx("p", { className: "text-[20px] flex flex-wrap", children: paragraf_two }),
62
- type && (type === "403" || type === "404") && buttonBack(),
63
- children
64
- ] })
65
- ]
66
- }
67
- );
68
- };
69
- StatusScreen.displayName = "StatusScreen";
70
-
71
- export { StatusScreen };
package/dist/switch.js DELETED
@@ -1,27 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import * as SwitchPrimitives from '@radix-ui/react-switch';
4
- import { cn } from './lib/utils.js';
5
-
6
- const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7
- SwitchPrimitives.Root,
8
- {
9
- className: cn(
10
- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
11
- className
12
- ),
13
- ...props,
14
- ref,
15
- children: /* @__PURE__ */ jsx(
16
- SwitchPrimitives.Thumb,
17
- {
18
- className: cn(
19
- "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
20
- )
21
- }
22
- )
23
- }
24
- ));
25
- Switch.displayName = SwitchPrimitives.Root.displayName;
26
-
27
- export { Switch };