prometeo-design-system 4.3.1 → 4.3.3
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/Avatar.es.js +40 -41
- package/dist/CardProfile.es.js +291 -3
- package/dist/CheckBox.es.js +24 -21
- package/dist/DialogModal.es.js +52 -46
- package/dist/Icons/ArrowDownward.d.ts +2 -0
- package/dist/Icons/ArrowDownward.es.js +9 -0
- package/dist/Icons/ArrowUpward.d.ts +2 -0
- package/dist/Icons/ArrowUpward.es.js +9 -0
- package/dist/Icons/UserAvatar.es.js +4 -4
- package/dist/Icons/components/ArrowDownward.d.ts +3 -0
- package/dist/Icons/components/ArrowUpward.d.ts +3 -0
- package/dist/Icons/index.d.ts +2 -0
- package/dist/Icons/types.d.ts +4 -0
- package/dist/Icons.es.js +124 -120
- package/dist/Input.es.js +73 -72
- package/dist/NotificationCard.es.js +28 -21
- package/dist/PlainTooltip.es.js +19 -19
- package/dist/PyrionLayout.es.js +916 -810
- package/dist/Scrollable.es.js +322 -177
- package/dist/Select.es.js +47 -47
- package/dist/SelectSearch.es.js +107 -103
- package/dist/TabLinks-DxqprStp.js +147 -0
- package/dist/TabLinks.es.js +2 -121
- package/dist/TicketCard.es.js +2 -2
- package/dist/Toast.es.js +95 -51
- package/dist/UserCard.d.ts +6 -0
- package/dist/UserCard.es.js +28 -0
- package/dist/badge-BEx-0Q-K.js +35 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -4
- package/dist/components/CardProfile/CardProfile.d.ts +7 -4
- package/dist/components/DropZone/useFileDropzone.d.ts +9 -1
- package/dist/components/NotificationCard/NotificationCard.d.ts +3 -2
- package/dist/components/PyrionNavigationDrawer/PLNotificationsList.d.ts +5 -2
- package/dist/components/PyrionNavigationDrawer/PLSidebar.d.ts +3 -1
- package/dist/components/PyrionNavigationDrawer/PLSidebarContent.d.ts +2 -0
- package/dist/components/PyrionNavigationDrawer/PLayoutBase.d.ts +2 -0
- package/dist/components/PyrionNavigationDrawer/PyrionLayout.d.ts +4 -1
- package/dist/components/Scrollable/Scrollable.d.ts +29 -0
- package/dist/components/TabLinks/TabLinks.d.ts +19 -0
- package/dist/components/Toaster/Toaster.d.ts +13 -1
- package/dist/components/UserCard/UserCard.d.ts +3 -2
- package/dist/exports/UserCard.d.ts +2 -0
- package/dist/hooks/useLabelBackground.d.ts +1 -0
- package/dist/index.d.ts +0 -16
- package/dist/prometeo-design-system.es.js +119 -2906
- package/dist/styles.css +1 -1
- package/dist/useLabelBackground-D5SzHhl_.js +32 -0
- package/package.json +1 -2
- package/dist/CardProfile-C1F83KJV.js +0 -280
- package/dist/badge-CbqYNrl4.js +0 -87
- package/dist/components/Layout/LayoutGeneric.d.ts +0 -6
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +0 -32
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +0 -2
- package/dist/components/Sidebar/SecondaryBar/index.d.ts +0 -1
- package/dist/components/Sidebar/SidebarComposable.d.ts +0 -43
- package/dist/components/Sidebar/components/NavigationLink.d.ts +0 -11
- package/dist/components/Sidebar/components/company-logo.d.ts +0 -5
- package/dist/components/Sidebar/components/nav-actions.d.ts +0 -7
- package/dist/components/Sidebar/components/nav-links.d.ts +0 -7
- package/dist/components/Sidebar/context/SidebarContext.d.ts +0 -13
- package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +0 -3
- package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +0 -9
- package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +0 -4
- package/dist/components/Sidebar/hooks/useNavLinks.d.ts +0 -32
- package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +0 -13
- package/dist/components/Sidebar/index.d.ts +0 -12
- package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +0 -2
- package/dist/useLabelBackground-BDIHUdND.js +0 -26
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { j as r } from "../jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { m as i } from "../iconUtils-D0lVAgGT.js";
|
|
3
|
+
const l = i(({ size: s = 24, className: t, ...e }) => /* @__PURE__ */ r.jsxs("svg", { ...e, width: s, height: s, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: t, children: [
|
|
4
|
+
/* @__PURE__ */ r.jsx("mask", { id: "mask0_2325_2813", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20", children: /* @__PURE__ */ r.jsx("rect", { width: "20", height: "20", fill: "currentColor" }) }),
|
|
5
|
+
/* @__PURE__ */ r.jsx("g", { mask: "url(#mask0_2325_2813)", children: /* @__PURE__ */ r.jsx("path", { d: "M9.16667 15V7.33332L6.16667 10.3333L5 9.16666L10 4.16666L15 9.16666L13.8333 10.3333L10.8333 7.33332V15H9.16667Z", fill: "currentColor" }) })
|
|
6
|
+
] }));
|
|
7
|
+
export {
|
|
8
|
+
l as ArrowUpward
|
|
9
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as r } from "../jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { m as o } from "../iconUtils-D0lVAgGT.js";
|
|
3
3
|
const s = o(
|
|
4
|
-
({ size: t = 24, className: e, ...l }) => /* @__PURE__ */ r.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24", fill: "
|
|
5
|
-
/* @__PURE__ */ r.jsx("rect", { width: "24", height: "24", rx: "12", fill: "
|
|
6
|
-
/* @__PURE__ */ r.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15.6001 9.6C15.6001 11.5882 13.9884 13.2 12.0001 13.2C10.0119 13.2 8.40015 11.5882 8.40015 9.6C8.40015 7.61177 10.0119 6 12.0001 6C13.9884 6 15.6001 7.61177 15.6001 9.6ZM14.4001 9.6C14.4001 10.9255 13.3256 12 12.0001 12C10.6747 12 9.60015 10.9255 9.60015 9.6C9.60015 8.27452 10.6747 7.2 12.0001 7.2C13.3256 7.2 14.4001 8.27452 14.4001 9.6Z", fill: "
|
|
7
|
-
/* @__PURE__ */ r.jsx("path", { d: "M12.0001 15C8.11552 15 4.80571 17.297 3.54492 20.5152C3.85206 20.8202 4.1756 21.1087 4.51412 21.3792C5.45296 18.4246 8.39818 16.2 12.0001 16.2C15.6021 16.2 18.5473 18.4246 19.4862 21.3792C19.8247 21.1087 20.1482 20.8202 20.4554 20.5152C19.1946 17.2971 15.8848 15 12.0001 15Z", fill: "
|
|
4
|
+
({ size: t = 24, className: e, ...l }) => /* @__PURE__ */ r.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24", fill: "currentColor", ...l, className: e, children: [
|
|
5
|
+
/* @__PURE__ */ r.jsx("rect", { width: "24", height: "24", rx: "12", fill: "" }),
|
|
6
|
+
/* @__PURE__ */ r.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15.6001 9.6C15.6001 11.5882 13.9884 13.2 12.0001 13.2C10.0119 13.2 8.40015 11.5882 8.40015 9.6C8.40015 7.61177 10.0119 6 12.0001 6C13.9884 6 15.6001 7.61177 15.6001 9.6ZM14.4001 9.6C14.4001 10.9255 13.3256 12 12.0001 12C10.6747 12 9.60015 10.9255 9.60015 9.6C9.60015 8.27452 10.6747 7.2 12.0001 7.2C13.3256 7.2 14.4001 8.27452 14.4001 9.6Z", fill: "currentColor" }),
|
|
7
|
+
/* @__PURE__ */ r.jsx("path", { d: "M12.0001 15C8.11552 15 4.80571 17.297 3.54492 20.5152C3.85206 20.8202 4.1756 21.1087 4.51412 21.3792C5.45296 18.4246 8.39818 16.2 12.0001 16.2C15.6021 16.2 18.5473 18.4246 19.4862 21.3792C19.8247 21.1087 20.1482 20.8202 20.4554 20.5152C19.1946 17.2971 15.8848 15 12.0001 15Z", fill: "currentColor" })
|
|
8
8
|
] })
|
|
9
9
|
);
|
|
10
10
|
export {
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export { Settings } from './components/Settings';
|
|
|
7
7
|
export { CrevronLeft } from './components/CrevronLeft';
|
|
8
8
|
export { CrevronRight } from './components/CrevronRight';
|
|
9
9
|
export { ArrowLeft } from './components/ArrowLeft';
|
|
10
|
+
export { ArrowDownward } from './components/ArrowDownward';
|
|
11
|
+
export { ArrowUpward } from './components/ArrowUpward';
|
|
10
12
|
export { Shared } from './components/Shared';
|
|
11
13
|
export { ChevronDown } from './components/ChevronDown';
|
|
12
14
|
export { Collapse } from './components/Collapse';
|
package/dist/Icons/types.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import { UserPerson } from './components/UserPerson';
|
|
|
16
16
|
import { UserAvatar } from './components/UserAvatar';
|
|
17
17
|
import { Logout } from './components/Logout';
|
|
18
18
|
import { ArrowUpDown } from './components/ArrowUpDown';
|
|
19
|
+
import { ArrowDownward } from './components/ArrowDownward';
|
|
20
|
+
import { ArrowUpward } from './components/ArrowUpward';
|
|
19
21
|
import { Filter } from './components/Filter';
|
|
20
22
|
import { Search } from './components/Search';
|
|
21
23
|
import { Stars } from './components/Stars';
|
|
@@ -81,6 +83,8 @@ export type IconsMap = {
|
|
|
81
83
|
UserPerson: typeof UserPerson;
|
|
82
84
|
Logout: typeof Logout;
|
|
83
85
|
ArrowUpDown: typeof ArrowUpDown;
|
|
86
|
+
ArrowDownward: typeof ArrowDownward;
|
|
87
|
+
ArrowUpward: typeof ArrowUpward;
|
|
84
88
|
Filter: typeof Filter;
|
|
85
89
|
Search: typeof Search;
|
|
86
90
|
Stars: typeof Stars;
|
package/dist/Icons.es.js
CHANGED
|
@@ -1,132 +1,136 @@
|
|
|
1
1
|
import { Ticket as e } from "./Icons/Ticket.es.js";
|
|
2
2
|
import { Home as p } from "./Icons/Home.es.js";
|
|
3
3
|
import { Boards as f } from "./Icons/Boards.es.js";
|
|
4
|
-
import { Notifications as
|
|
5
|
-
import { Help as
|
|
6
|
-
import { Settings as
|
|
4
|
+
import { Notifications as a } from "./Icons/Notifications.es.js";
|
|
5
|
+
import { Help as i } from "./Icons/Help.es.js";
|
|
6
|
+
import { Settings as d } from "./Icons/Settings.es.js";
|
|
7
7
|
import { CrevronLeft as C } from "./Icons/CrevronLeft.es.js";
|
|
8
8
|
import { CrevronRight as F } from "./Icons/CrevronRight.es.js";
|
|
9
|
-
import { ArrowLeft as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
9
|
+
import { ArrowLeft as h } from "./Icons/ArrowLeft.es.js";
|
|
10
|
+
import { ArrowDownward as S } from "./Icons/ArrowDownward.es.js";
|
|
11
|
+
import { ArrowUpward as k } from "./Icons/ArrowUpward.es.js";
|
|
12
|
+
import { Shared as U } from "./Icons/Shared.es.js";
|
|
13
|
+
import { ChevronDown as v } from "./Icons/ChevronDown.es.js";
|
|
14
|
+
import { Collapse as E } from "./Icons/Collapse.es.js";
|
|
15
|
+
import { Calendar as T } from "./Icons/Calendar.es.js";
|
|
16
|
+
import { Close as H } from "./Icons/Close.es.js";
|
|
17
|
+
import { UserPerson as V } from "./Icons/UserPerson.es.js";
|
|
18
|
+
import { UserAvatar as q } from "./Icons/UserAvatar.es.js";
|
|
19
|
+
import { Logout as I } from "./Icons/Logout.es.js";
|
|
20
|
+
import { ArrowUpDown as P } from "./Icons/ArrowUpDown.es.js";
|
|
21
|
+
import { Filter as W } from "./Icons/Filter.es.js";
|
|
22
|
+
import { Search as z } from "./Icons/Search.es.js";
|
|
23
|
+
import { Stars as J } from "./Icons/Stars.es.js";
|
|
24
|
+
import { MoreVert as Q } from "./Icons/MoreVert.es.js";
|
|
25
|
+
import { Add as Y } from "./Icons/Add.es.js";
|
|
26
|
+
import { Edit as _ } from "./Icons/Edit.es.js";
|
|
27
|
+
import { Upload as rr } from "./Icons/Upload.es.js";
|
|
28
|
+
import { Copy as er } from "./Icons/Copy.es.js";
|
|
29
|
+
import { FaLock as pr } from "./Icons/FaLock.es.js";
|
|
30
|
+
import { AccountCircle as fr } from "./Icons/AccountCircle.es.js";
|
|
31
|
+
import { UserAdd as ar } from "./Icons/UserAdd.es.js";
|
|
32
|
+
import { AttachFile as ir } from "./Icons/AttachFile.es.js";
|
|
33
|
+
import { HistoryActivity as dr } from "./Icons/HistoryActivity.es.js";
|
|
34
|
+
import { MessageSquare as Cr } from "./Icons/MessageSquare.es.js";
|
|
35
|
+
import { CloseNavBarDesktop as Fr } from "./Icons/CloseNavBarDesktop.es.js";
|
|
36
|
+
import { EyeVisibility as hr } from "./Icons/EyeVisibility.es.js";
|
|
37
|
+
import { EyeVisibilityOff as Sr } from "./Icons/EyeVisibilityOff.es.js";
|
|
38
|
+
import { Check as kr } from "./Icons/Check.es.js";
|
|
39
|
+
import { Info as Ur } from "./Icons/Info.es.js";
|
|
40
|
+
import { Error as vr } from "./Icons/Error.es.js";
|
|
41
|
+
import { TicketFilled as Er } from "./Icons/TicketFilled.es.js";
|
|
42
|
+
import { UploadCloud as Tr } from "./Icons/UploadCloud.es.js";
|
|
43
|
+
import { Clock as Hr } from "./Icons/Clock.es.js";
|
|
44
|
+
import { Pause as Vr } from "./Icons/Pause.es.js";
|
|
45
|
+
import { FastForward as qr } from "./Icons/FastForward.es.js";
|
|
46
|
+
import { Trash as Ir } from "./Icons/Trash.es.js";
|
|
47
|
+
import { Sort as Pr } from "./Icons/Sort.es.js";
|
|
48
|
+
import { Cancel as Wr } from "./Icons/Cancel.es.js";
|
|
49
|
+
import { CheckCircle as zr } from "./Icons/CheckCircle.es.js";
|
|
50
|
+
import { FormatColorText as Jr } from "./Icons/FormatColorText.es.js";
|
|
51
|
+
import { CheckList as Qr } from "./Icons/CheckList.es.js";
|
|
52
|
+
import { WhatsApp as Yr } from "./Icons/WhatsApp.es.js";
|
|
53
|
+
import { File as _r } from "./Icons/File.es.js";
|
|
54
|
+
import { Email as ro } from "./Icons/Email.es.js";
|
|
55
|
+
import { Download as eo } from "./Icons/Download.es.js";
|
|
56
|
+
import { Reload as po } from "./Icons/Reload.es.js";
|
|
57
|
+
import { Image as fo } from "./Icons/Image.es.js";
|
|
58
|
+
import { DocumentFill as ao } from "./Icons/DocumentFill.es.js";
|
|
59
|
+
import { Company as io } from "./Icons/Company.es.js";
|
|
60
|
+
import { EditFill as no } from "./Icons/EditFill.es.js";
|
|
61
|
+
import { TrashFill as co } from "./Icons/TrashFill.es.js";
|
|
62
|
+
import { MessageSquareFill as Ao } from "./Icons/MessageSquareFill.es.js";
|
|
63
|
+
import { UserAddFill as wo } from "./Icons/UserAddFill.es.js";
|
|
64
|
+
import { Reassignment as go } from "./Icons/Reassignment.es.js";
|
|
65
|
+
import { ReassignmentFill as yo } from "./Icons/ReassignmentFill.es.js";
|
|
66
|
+
import { Send as uo } from "./Icons/Send.es.js";
|
|
67
|
+
import { StarFill as Do } from "./Icons/StarFill.es.js";
|
|
66
68
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
fr as AccountCircle,
|
|
70
|
+
Y as Add,
|
|
71
|
+
S as ArrowDownward,
|
|
72
|
+
h as ArrowLeft,
|
|
73
|
+
P as ArrowUpDown,
|
|
74
|
+
k as ArrowUpward,
|
|
75
|
+
ir as AttachFile,
|
|
72
76
|
f as Boards,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
T as Calendar,
|
|
78
|
+
Wr as Cancel,
|
|
79
|
+
kr as Check,
|
|
80
|
+
zr as CheckCircle,
|
|
81
|
+
Qr as CheckList,
|
|
82
|
+
v as ChevronDown,
|
|
83
|
+
Hr as Clock,
|
|
84
|
+
H as Close,
|
|
85
|
+
Fr as CloseNavBarDesktop,
|
|
86
|
+
E as Collapse,
|
|
87
|
+
io as Company,
|
|
88
|
+
er as Copy,
|
|
85
89
|
C as CrevronLeft,
|
|
86
90
|
F as CrevronRight,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
ao as DocumentFill,
|
|
92
|
+
eo as Download,
|
|
93
|
+
_ as Edit,
|
|
94
|
+
no as EditFill,
|
|
95
|
+
ro as Email,
|
|
96
|
+
vr as Error,
|
|
97
|
+
hr as EyeVisibility,
|
|
98
|
+
Sr as EyeVisibilityOff,
|
|
99
|
+
pr as FaLock,
|
|
100
|
+
qr as FastForward,
|
|
101
|
+
_r as File,
|
|
102
|
+
W as Filter,
|
|
103
|
+
Jr as FormatColorText,
|
|
104
|
+
i as Help,
|
|
105
|
+
dr as HistoryActivity,
|
|
102
106
|
p as Home,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
107
|
+
fo as Image,
|
|
108
|
+
Ur as Info,
|
|
109
|
+
I as Logout,
|
|
110
|
+
Cr as MessageSquare,
|
|
111
|
+
Ao as MessageSquareFill,
|
|
112
|
+
Q as MoreVert,
|
|
113
|
+
a as Notifications,
|
|
114
|
+
Vr as Pause,
|
|
115
|
+
go as Reassignment,
|
|
116
|
+
yo as ReassignmentFill,
|
|
117
|
+
po as Reload,
|
|
118
|
+
z as Search,
|
|
119
|
+
uo as Send,
|
|
120
|
+
d as Settings,
|
|
121
|
+
U as Shared,
|
|
122
|
+
Pr as Sort,
|
|
123
|
+
Do as StarFill,
|
|
124
|
+
J as Stars,
|
|
121
125
|
e as Ticket,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
Er as TicketFilled,
|
|
127
|
+
Ir as Trash,
|
|
128
|
+
co as TrashFill,
|
|
129
|
+
rr as Upload,
|
|
130
|
+
Tr as UploadCloud,
|
|
131
|
+
ar as UserAdd,
|
|
132
|
+
wo as UserAddFill,
|
|
133
|
+
q as UserAvatar,
|
|
134
|
+
V as UserPerson,
|
|
135
|
+
Yr as WhatsApp
|
|
132
136
|
};
|
package/dist/Input.es.js
CHANGED
|
@@ -2,13 +2,13 @@ import { j as t } from "./jsx-runtime-GkKLlHH4.js";
|
|
|
2
2
|
import { c as e } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { memo as q, forwardRef as V, useState as F } from "react";
|
|
4
4
|
import ee from "./Spinner.es.js";
|
|
5
|
-
import { u as te } from "./useLabelBackground-
|
|
5
|
+
import { u as te } from "./useLabelBackground-D5SzHhl_.js";
|
|
6
6
|
import { H as re } from "./HelperComponent-ljsn0xD6.js";
|
|
7
7
|
import { EyeVisibility as oe } from "./Icons/EyeVisibility.es.js";
|
|
8
8
|
import { EyeVisibilityOff as se } from "./Icons/EyeVisibilityOff.es.js";
|
|
9
9
|
import le from "./Button.es.js";
|
|
10
10
|
import { Close as ae } from "./Icons/Close.es.js";
|
|
11
|
-
const
|
|
11
|
+
const x = {
|
|
12
12
|
default: {
|
|
13
13
|
container: "",
|
|
14
14
|
input: e(
|
|
@@ -44,45 +44,45 @@ const m = {
|
|
|
44
44
|
}
|
|
45
45
|
}, $ = V(
|
|
46
46
|
({
|
|
47
|
-
label:
|
|
48
|
-
icon:
|
|
49
|
-
iconPosition:
|
|
47
|
+
label: h,
|
|
48
|
+
icon: o,
|
|
49
|
+
iconPosition: l = "left",
|
|
50
50
|
onChange: I,
|
|
51
51
|
value: S,
|
|
52
|
-
name:
|
|
52
|
+
name: b,
|
|
53
53
|
width: i = "100%",
|
|
54
|
-
height:
|
|
55
|
-
variant:
|
|
56
|
-
labelVariant:
|
|
54
|
+
height: a,
|
|
55
|
+
variant: u = "default",
|
|
56
|
+
labelVariant: s = "default",
|
|
57
57
|
size: E = "medium",
|
|
58
|
-
disabled:
|
|
58
|
+
disabled: f = !1,
|
|
59
59
|
type: r = "text",
|
|
60
60
|
isFetching: n,
|
|
61
|
-
errorComponent:
|
|
62
|
-
helperComponent:
|
|
61
|
+
errorComponent: g,
|
|
62
|
+
helperComponent: w,
|
|
63
63
|
placeholder: L,
|
|
64
|
-
required:
|
|
65
|
-
onFocus:
|
|
66
|
-
onBlur:
|
|
67
|
-
onKeyDown:
|
|
68
|
-
onKeyUp:
|
|
69
|
-
className:
|
|
70
|
-
style:
|
|
71
|
-
readOnly:
|
|
72
|
-
onClear:
|
|
64
|
+
required: N = !1,
|
|
65
|
+
onFocus: R,
|
|
66
|
+
onBlur: k,
|
|
67
|
+
onKeyDown: B,
|
|
68
|
+
onKeyUp: D,
|
|
69
|
+
className: P,
|
|
70
|
+
style: M,
|
|
71
|
+
readOnly: O = !1,
|
|
72
|
+
onClear: m,
|
|
73
73
|
onClickIcon: z,
|
|
74
74
|
...v
|
|
75
|
-
},
|
|
76
|
-
const [
|
|
77
|
-
let
|
|
78
|
-
|
|
75
|
+
}, T) => {
|
|
76
|
+
const [y, A] = F(!1), { ref: C } = te();
|
|
77
|
+
let p = E;
|
|
78
|
+
a && (p = "customHeight");
|
|
79
79
|
const c = {
|
|
80
80
|
small: {
|
|
81
81
|
container: "text-sm",
|
|
82
82
|
input: "h-10 px-3 text-[1rem] prometeo-fonts-body-large",
|
|
83
83
|
label: ` prometeo-fonts-label-large
|
|
84
84
|
peer-focus:prometeo-fonts-label-large
|
|
85
|
-
peer-placeholder-shown:${
|
|
85
|
+
peer-placeholder-shown:${s === "default" ? "prometeo-fonts-body-large" : "prometeo-fonts-label-large"} peer-placeholder-shown:text-neutral-medium-default peer-focus:text-neutral-medium-default `,
|
|
86
86
|
icon: "w-4 h-4 right-3"
|
|
87
87
|
},
|
|
88
88
|
medium: {
|
|
@@ -90,7 +90,7 @@ const m = {
|
|
|
90
90
|
input: "h-12 px-3 prometeo-fonts-body-large",
|
|
91
91
|
label: ` prometeo-fonts-label-large
|
|
92
92
|
peer-focus:prometeo-fonts-label-large
|
|
93
|
-
peer-placeholder-shown:${
|
|
93
|
+
peer-placeholder-shown:${s === "default" ? "prometeo-fonts-body-large" : "prometeo-fonts-label-large"} peer-placeholder-shown:text-neutral-medium-default text-neutral-medium-default peer-focus:text-neutral-medium-default `,
|
|
94
94
|
icon: "w-5 h-5 right-3"
|
|
95
95
|
},
|
|
96
96
|
large: {
|
|
@@ -106,112 +106,113 @@ const m = {
|
|
|
106
106
|
icon: "w-6 h-6 right-3"
|
|
107
107
|
}
|
|
108
108
|
}, G = () => {
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
i && i !== "100%" && (
|
|
112
|
-
const H =
|
|
109
|
+
A(!y);
|
|
110
|
+
}, j = {};
|
|
111
|
+
i && i !== "100%" && (j.width = i), a && (j.height = a);
|
|
112
|
+
const H = u === "error" && g, J = !H && w, K = r === "password", Q = () => s === "static" ? "-top-1 -translate-y-full left-0 pl-3" : o ? `${d ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1 peer-focus:ml-0 peer-focus:mr-0 ${l === "left" ? "peer-placeholder-shown:ml-6" : "peer-placeholder-shown:mr-6"}` : `${d ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1`, U = () => a ? c.customHeight.label : c[p].label, W = () => a ? { height: a } : {}, X = () => s === "default" ? h : L || h || "", Y = () => K ? !o && !m ? "pr-10" : l === "left" ? "pl-10 pr-10" : "pr-16" : m ? o ? l === "left" ? "pl-10 pr-7" : "pr-10 pl-3" : "pr-7" : o ? l === "left" ? "pl-10 pr-3" : "pr-10 pl-3" : "", Z = s === "default" && "transition-all duration-200 ease-in-out", d = g || w;
|
|
113
113
|
return /* @__PURE__ */ t.jsxs(
|
|
114
114
|
"div",
|
|
115
115
|
{
|
|
116
116
|
className: e(
|
|
117
117
|
"relative",
|
|
118
|
-
c[
|
|
118
|
+
c[p].container,
|
|
119
119
|
!i && "w-full",
|
|
120
120
|
"bg-inherit",
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
s === "static" && "mt-2",
|
|
122
|
+
P
|
|
123
123
|
),
|
|
124
|
-
style: { ...
|
|
124
|
+
style: { ...M, ...j },
|
|
125
125
|
children: [
|
|
126
126
|
/* @__PURE__ */ t.jsx(
|
|
127
127
|
"input",
|
|
128
128
|
{
|
|
129
|
-
id:
|
|
130
|
-
name:
|
|
131
|
-
ref:
|
|
129
|
+
id: b,
|
|
130
|
+
name: b,
|
|
131
|
+
ref: T,
|
|
132
132
|
value: S,
|
|
133
133
|
placeholder: X(),
|
|
134
|
-
type: r === "password" &&
|
|
134
|
+
type: r === "password" && y ? "text" : r,
|
|
135
135
|
className: e(
|
|
136
136
|
"peer w-full border rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out",
|
|
137
137
|
"focus:outline-none px-3",
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
c[
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
s === "default" && "placeholder:text-transparent",
|
|
139
|
+
s === "static" && "placeholder:text-neutral-medium-default ",
|
|
140
|
+
x[u].input,
|
|
141
|
+
c[p].input,
|
|
142
|
+
o && "pr-10",
|
|
143
|
+
f && "bg-transparent opacity-60 border-neutral-strong-default text-neutral-medium-disabled",
|
|
144
|
+
x[u].container,
|
|
145
145
|
Y()
|
|
146
146
|
),
|
|
147
147
|
style: W(),
|
|
148
148
|
onChange: I,
|
|
149
|
-
onFocus:
|
|
150
|
-
onBlur:
|
|
151
|
-
disabled:
|
|
152
|
-
required:
|
|
153
|
-
onKeyDown:
|
|
154
|
-
onKeyUp:
|
|
149
|
+
onFocus: R,
|
|
150
|
+
onBlur: k,
|
|
151
|
+
disabled: f,
|
|
152
|
+
required: N,
|
|
153
|
+
onKeyDown: B,
|
|
154
|
+
onKeyUp: D,
|
|
155
155
|
defaultValue: v.defaultValue,
|
|
156
|
-
readOnly:
|
|
156
|
+
readOnly: O,
|
|
157
157
|
...v
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
160
|
/* @__PURE__ */ t.jsx(
|
|
161
161
|
"label",
|
|
162
162
|
{
|
|
163
|
-
ref:
|
|
164
|
-
htmlFor:
|
|
163
|
+
ref: C,
|
|
164
|
+
htmlFor: b,
|
|
165
165
|
className: e(
|
|
166
166
|
"absolute left-3 pointer-events-none px-1 z-10",
|
|
167
167
|
Z,
|
|
168
168
|
U(),
|
|
169
|
-
|
|
169
|
+
x[u].label,
|
|
170
170
|
Q(),
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
N && "after:content-['*'] after:text-error-default after:ml-1",
|
|
172
|
+
f && "text-neutral-medium-disabled prometeo-fonts-label-large"
|
|
173
173
|
),
|
|
174
|
-
children:
|
|
174
|
+
children: h
|
|
175
175
|
}
|
|
176
176
|
),
|
|
177
|
-
(
|
|
177
|
+
(o || r === "password" || n) && /* @__PURE__ */ t.jsx(
|
|
178
178
|
"button",
|
|
179
179
|
{
|
|
180
180
|
tabIndex: -1,
|
|
181
181
|
type: "button",
|
|
182
182
|
className: e(
|
|
183
|
-
`absolute ${
|
|
184
|
-
c[
|
|
185
|
-
|
|
183
|
+
`absolute ${d ? "top-[calc(50%-12px)]" : "top-1/2"} -translate-y-1/2 flex items-center justify-center z-10`,
|
|
184
|
+
c[p].icon,
|
|
185
|
+
x[u].icon,
|
|
186
186
|
(r === "password" || z) && !n ? "cursor-pointer" : "pointer-events-none",
|
|
187
|
-
|
|
187
|
+
l === "right" ? "right-3" : "left-3"
|
|
188
188
|
),
|
|
189
189
|
onClick: n ? void 0 : r === "password" ? G : z,
|
|
190
190
|
onMouseDown: (_) => r === "password" && !n && _.preventDefault(),
|
|
191
191
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
192
|
-
n && r !== "password" ? /* @__PURE__ */ t.jsx(ee, { variant: "sync", size: "small", className: "size-5" }) :
|
|
193
|
-
r === "password" && (
|
|
192
|
+
n && r !== "password" ? /* @__PURE__ */ t.jsx(ee, { variant: "sync", size: "small", className: "size-5" }) : o,
|
|
193
|
+
r === "password" && (y ? /* @__PURE__ */ t.jsx(oe, { size: 24, className: "" }) : /* @__PURE__ */ t.jsx(se, { size: 24, className: "" }))
|
|
194
194
|
] })
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
|
-
|
|
197
|
+
m && /* @__PURE__ */ t.jsx(
|
|
198
198
|
le,
|
|
199
199
|
{
|
|
200
200
|
type: "button",
|
|
201
201
|
className: e(
|
|
202
|
-
`absolute ${
|
|
202
|
+
`absolute ${d ? "top-[calc(50%-12px)]" : "top-1/2"} -translate-y-1/2 flex items-center justify-center z-10 right-1`,
|
|
203
203
|
"size-6 p-1 rounded-full",
|
|
204
204
|
"hover:bg-neutral-medium-hover transition-colors",
|
|
205
|
-
|
|
205
|
+
f && "opacity-50 cursor-not-allowed",
|
|
206
|
+
(o && l === "right" || r === "password" || n) && "mr-9"
|
|
206
207
|
),
|
|
207
|
-
disabled:
|
|
208
|
-
onClick:
|
|
208
|
+
disabled: f,
|
|
209
|
+
onClick: m,
|
|
209
210
|
variant: "text",
|
|
210
211
|
color: "secondary",
|
|
211
212
|
icon: /* @__PURE__ */ t.jsx(ae, { size: 20, className: "" })
|
|
212
213
|
}
|
|
213
214
|
),
|
|
214
|
-
|
|
215
|
+
d && /* @__PURE__ */ t.jsx("div", { className: "min-h-6", children: (H || J) && /* @__PURE__ */ t.jsx(re, { className: "absolute ", variant: u, children: g || w }) })
|
|
215
216
|
]
|
|
216
217
|
}
|
|
217
218
|
);
|