@elevasis/ui 2.40.1 → 2.41.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/api/index.js +4 -6
- package/dist/app/index.css +384 -0
- package/dist/app/index.d.ts +108 -0
- package/dist/app/index.js +17 -27
- package/dist/auth/index.css +659 -0
- package/dist/auth/index.js +19 -6
- package/dist/charts/index.css +533 -0
- package/dist/charts/index.js +18 -15
- package/dist/{chunk-RXH4D6TY.js → chunk-5M4HSHQ5.js} +631 -2
- package/dist/{chunk-TE4P6OSJ.js → chunk-7FJI76OH.js} +1 -1
- package/dist/chunk-GMXGDO3I.js +244 -0
- package/dist/{chunk-CXY7FMUM.js → chunk-GUKY77FJ.js} +50 -4
- package/dist/{chunk-5JYKCULK.js → chunk-NZ2F5RQ4.js} +44 -2
- package/dist/{chunk-WF7CONXF.js → chunk-OJJK27GC.js} +658 -6
- package/dist/{chunk-RX6RSKWC.js → chunk-QDXTIQT4.js} +29255 -18312
- package/dist/{chunk-73EWE2EW.js → chunk-V5HWC5EW.js} +1 -1
- package/dist/components/chat/index.js +1 -2
- package/dist/components/index.css +149 -149
- package/dist/components/index.js +13 -37
- package/dist/components/navigation/index.css +659 -0
- package/dist/components/navigation/index.js +25 -4
- package/dist/features/auth/index.js +14 -38
- package/dist/features/clients/index.css +149 -149
- package/dist/features/clients/index.js +13 -37
- package/dist/features/crm/index.js +13 -37
- package/dist/features/dashboard/index.js +13 -37
- package/dist/features/delivery/index.js +13 -37
- package/dist/features/knowledge/index.css +659 -0
- package/dist/features/knowledge/index.js +25 -248
- package/dist/features/lead-gen/index.d.ts +81 -0
- package/dist/features/lead-gen/index.js +13 -37
- package/dist/features/monitoring/index.js +13 -37
- package/dist/features/monitoring/requests/index.d.ts +69 -7
- package/dist/features/monitoring/requests/index.js +32 -41
- package/dist/features/operations/index.d.ts +79 -0
- package/dist/features/operations/index.js +13 -37
- package/dist/features/seo/index.js +1 -4
- package/dist/features/settings/index.js +13 -37
- package/dist/hooks/access/index.css +659 -0
- package/dist/hooks/access/index.js +19 -5
- package/dist/hooks/delivery/index.js +13 -37
- package/dist/hooks/index.d.ts +18 -6
- package/dist/hooks/index.js +13 -37
- package/dist/hooks/published.d.ts +18 -6
- package/dist/hooks/published.js +13 -37
- package/dist/index.d.ts +151 -7
- package/dist/index.js +14 -38
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.css +659 -0
- package/dist/knowledge/index.d.ts +81 -0
- package/dist/knowledge/index.js +25 -15
- package/dist/layout/index.css +659 -0
- package/dist/layout/index.d.ts +18 -2
- package/dist/layout/index.js +24 -7
- package/dist/organization/index.js +13 -37
- package/dist/provider/index.css +384 -0
- package/dist/provider/index.d.ts +120 -1
- package/dist/provider/index.js +18 -22
- package/dist/provider/published.css +533 -0
- package/dist/provider/published.d.ts +121 -2
- package/dist/provider/published.js +18 -17
- package/dist/test-utils/index.js +4 -6
- package/dist/theme/index.js +2 -5
- package/dist/theme/presets/index.js +1 -2
- package/dist/utils/index.js +1 -3
- package/package.json +3 -3
- package/dist/chunk-3KMDHCAR.js +0 -52
- package/dist/chunk-4DRI3G36.js +0 -1016
- package/dist/chunk-5EYJ2GIN.js +0 -122
- package/dist/chunk-66U7JOWV.js +0 -425
- package/dist/chunk-6D4LCJ52.js +0 -10
- package/dist/chunk-6EV47QQW.js +0 -340
- package/dist/chunk-6ROXVZ3L.js +0 -9
- package/dist/chunk-7MTWRSUZ.js +0 -357
- package/dist/chunk-7PHY5ONQ.js +0 -85
- package/dist/chunk-B2DZLPDL.js +0 -39
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-CTJBPF3Z.js +0 -734
- package/dist/chunk-DT3QYZVU.js +0 -23
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IUQAP4IO.js +0 -2131
- package/dist/chunk-J3FLIZY4.js +0 -423
- package/dist/chunk-K7GKKETO.js +0 -3157
- package/dist/chunk-L7GXUSCV.js +0 -215
- package/dist/chunk-LJDYY3XB.js +0 -133
- package/dist/chunk-NYBEU5TE.js +0 -118
- package/dist/chunk-RH5VWWSC.js +0 -624
- package/dist/chunk-SJNIOGVX.js +0 -112
- package/dist/chunk-TYRUKGGD.js +0 -46
- package/dist/chunk-WLOQ4IBG.js +0 -654
- package/dist/chunk-X4WBGKJQ.js +0 -138
- package/dist/chunk-X7D6SUKR.js +0 -1234
package/dist/chunk-X4WBGKJQ.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { subshellNavItemIconSize } from './chunk-DT3QYZVU.js';
|
|
2
|
-
import { UnstyledButton, Stack, Group, Text } from '@mantine/core';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var activeColor = "var(--color-primary)";
|
|
6
|
-
var defaultColor = "var(--color-text-subtle)";
|
|
7
|
-
var hoverColor = "var(--color-text)";
|
|
8
|
-
var activeBg = `color-mix(in srgb, ${activeColor} 10%, transparent)`;
|
|
9
|
-
var SubshellNavItem = ({
|
|
10
|
-
icon: Icon,
|
|
11
|
-
label,
|
|
12
|
-
isActive = false,
|
|
13
|
-
onClick,
|
|
14
|
-
description,
|
|
15
|
-
badge,
|
|
16
|
-
disabled = false,
|
|
17
|
-
href
|
|
18
|
-
}) => {
|
|
19
|
-
const handleAnchorClick = disabled ? void 0 : (event) => {
|
|
20
|
-
if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.button !== 0) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
event.preventDefault();
|
|
24
|
-
onClick();
|
|
25
|
-
};
|
|
26
|
-
const sharedStyle = {
|
|
27
|
-
width: "100%",
|
|
28
|
-
padding: "var(--mantine-spacing-xs)",
|
|
29
|
-
backgroundColor: isActive ? activeBg : "transparent",
|
|
30
|
-
borderRadius: "var(--mantine-radius-default)",
|
|
31
|
-
transition: `all var(--duration-fast) var(--easing)`,
|
|
32
|
-
cursor: disabled ? "not-allowed" : "pointer",
|
|
33
|
-
opacity: disabled ? 0.5 : 1,
|
|
34
|
-
color: "inherit",
|
|
35
|
-
textDecoration: "none",
|
|
36
|
-
display: "block"
|
|
37
|
-
};
|
|
38
|
-
const handleMouseEnter = (e) => {
|
|
39
|
-
if (!isActive && !disabled) {
|
|
40
|
-
e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
|
|
41
|
-
const textElements = e.currentTarget.querySelectorAll("[data-text-element]");
|
|
42
|
-
textElements.forEach((el) => {
|
|
43
|
-
el.style.color = hoverColor;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const handleMouseLeave = (e) => {
|
|
48
|
-
if (!isActive && !disabled) {
|
|
49
|
-
e.currentTarget.style.backgroundColor = "transparent";
|
|
50
|
-
const textElements = e.currentTarget.querySelectorAll("[data-text-element]");
|
|
51
|
-
textElements.forEach((el) => {
|
|
52
|
-
el.style.color = defaultColor;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const inner = /* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
|
|
57
|
-
/* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
|
|
58
|
-
/* @__PURE__ */ jsx(
|
|
59
|
-
Icon,
|
|
60
|
-
{
|
|
61
|
-
size: subshellNavItemIconSize,
|
|
62
|
-
style: {
|
|
63
|
-
flexShrink: 0,
|
|
64
|
-
opacity: isActive ? 1 : 0.6,
|
|
65
|
-
color: isActive ? activeColor : defaultColor
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
Text,
|
|
71
|
-
{
|
|
72
|
-
size: "sm",
|
|
73
|
-
fw: isActive ? 600 : 400,
|
|
74
|
-
style: {
|
|
75
|
-
overflow: "hidden",
|
|
76
|
-
textOverflow: "ellipsis",
|
|
77
|
-
whiteSpace: "nowrap",
|
|
78
|
-
flex: 1,
|
|
79
|
-
fontFamily: "var(--elevasis-font-family-subtitle)",
|
|
80
|
-
color: isActive ? activeColor : defaultColor,
|
|
81
|
-
transition: `color var(--duration-fast) var(--easing)`
|
|
82
|
-
},
|
|
83
|
-
"data-text-element": true,
|
|
84
|
-
children: label
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
badge && /* @__PURE__ */ jsx("div", { style: { flexShrink: 0 }, children: badge })
|
|
88
|
-
] }),
|
|
89
|
-
description && /* @__PURE__ */ jsx(
|
|
90
|
-
Text,
|
|
91
|
-
{
|
|
92
|
-
size: "xs",
|
|
93
|
-
c: "dimmed",
|
|
94
|
-
style: {
|
|
95
|
-
paddingLeft: "22px",
|
|
96
|
-
lineHeight: 1.2,
|
|
97
|
-
color: isActive ? activeColor : defaultColor,
|
|
98
|
-
opacity: isActive ? 0.8 : 0.6,
|
|
99
|
-
transition: `all var(--duration-fast) var(--easing)`,
|
|
100
|
-
display: "-webkit-box",
|
|
101
|
-
WebkitLineClamp: 2,
|
|
102
|
-
WebkitBoxOrient: "vertical",
|
|
103
|
-
overflow: "hidden",
|
|
104
|
-
textOverflow: "ellipsis"
|
|
105
|
-
},
|
|
106
|
-
"data-text-element": true,
|
|
107
|
-
children: description
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
] });
|
|
111
|
-
if (href) {
|
|
112
|
-
return /* @__PURE__ */ jsx(
|
|
113
|
-
UnstyledButton,
|
|
114
|
-
{
|
|
115
|
-
component: "a",
|
|
116
|
-
href,
|
|
117
|
-
onClick: handleAnchorClick,
|
|
118
|
-
style: sharedStyle,
|
|
119
|
-
onMouseEnter: handleMouseEnter,
|
|
120
|
-
onMouseLeave: handleMouseLeave,
|
|
121
|
-
children: inner
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
return /* @__PURE__ */ jsx(
|
|
126
|
-
UnstyledButton,
|
|
127
|
-
{
|
|
128
|
-
onClick: disabled ? void 0 : onClick,
|
|
129
|
-
disabled,
|
|
130
|
-
style: sharedStyle,
|
|
131
|
-
onMouseEnter: handleMouseEnter,
|
|
132
|
-
onMouseLeave: handleMouseLeave,
|
|
133
|
-
children: inner
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export { SubshellNavItem };
|