@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.
Files changed (92) hide show
  1. package/dist/api/index.js +4 -6
  2. package/dist/app/index.css +384 -0
  3. package/dist/app/index.d.ts +108 -0
  4. package/dist/app/index.js +17 -27
  5. package/dist/auth/index.css +659 -0
  6. package/dist/auth/index.js +19 -6
  7. package/dist/charts/index.css +533 -0
  8. package/dist/charts/index.js +18 -15
  9. package/dist/{chunk-RXH4D6TY.js → chunk-5M4HSHQ5.js} +631 -2
  10. package/dist/{chunk-TE4P6OSJ.js → chunk-7FJI76OH.js} +1 -1
  11. package/dist/chunk-GMXGDO3I.js +244 -0
  12. package/dist/{chunk-CXY7FMUM.js → chunk-GUKY77FJ.js} +50 -4
  13. package/dist/{chunk-5JYKCULK.js → chunk-NZ2F5RQ4.js} +44 -2
  14. package/dist/{chunk-WF7CONXF.js → chunk-OJJK27GC.js} +658 -6
  15. package/dist/{chunk-RX6RSKWC.js → chunk-QDXTIQT4.js} +29255 -18312
  16. package/dist/{chunk-73EWE2EW.js → chunk-V5HWC5EW.js} +1 -1
  17. package/dist/components/chat/index.js +1 -2
  18. package/dist/components/index.css +149 -149
  19. package/dist/components/index.js +13 -37
  20. package/dist/components/navigation/index.css +659 -0
  21. package/dist/components/navigation/index.js +25 -4
  22. package/dist/features/auth/index.js +14 -38
  23. package/dist/features/clients/index.css +149 -149
  24. package/dist/features/clients/index.js +13 -37
  25. package/dist/features/crm/index.js +13 -37
  26. package/dist/features/dashboard/index.js +13 -37
  27. package/dist/features/delivery/index.js +13 -37
  28. package/dist/features/knowledge/index.css +659 -0
  29. package/dist/features/knowledge/index.js +25 -248
  30. package/dist/features/lead-gen/index.d.ts +81 -0
  31. package/dist/features/lead-gen/index.js +13 -37
  32. package/dist/features/monitoring/index.js +13 -37
  33. package/dist/features/monitoring/requests/index.d.ts +69 -7
  34. package/dist/features/monitoring/requests/index.js +32 -41
  35. package/dist/features/operations/index.d.ts +79 -0
  36. package/dist/features/operations/index.js +13 -37
  37. package/dist/features/seo/index.js +1 -4
  38. package/dist/features/settings/index.js +13 -37
  39. package/dist/hooks/access/index.css +659 -0
  40. package/dist/hooks/access/index.js +19 -5
  41. package/dist/hooks/delivery/index.js +13 -37
  42. package/dist/hooks/index.d.ts +18 -6
  43. package/dist/hooks/index.js +13 -37
  44. package/dist/hooks/published.d.ts +18 -6
  45. package/dist/hooks/published.js +13 -37
  46. package/dist/index.d.ts +151 -7
  47. package/dist/index.js +14 -38
  48. package/dist/initialization/index.js +1 -1
  49. package/dist/knowledge/index.css +659 -0
  50. package/dist/knowledge/index.d.ts +81 -0
  51. package/dist/knowledge/index.js +25 -15
  52. package/dist/layout/index.css +659 -0
  53. package/dist/layout/index.d.ts +18 -2
  54. package/dist/layout/index.js +24 -7
  55. package/dist/organization/index.js +13 -37
  56. package/dist/provider/index.css +384 -0
  57. package/dist/provider/index.d.ts +120 -1
  58. package/dist/provider/index.js +18 -22
  59. package/dist/provider/published.css +533 -0
  60. package/dist/provider/published.d.ts +121 -2
  61. package/dist/provider/published.js +18 -17
  62. package/dist/test-utils/index.js +4 -6
  63. package/dist/theme/index.js +2 -5
  64. package/dist/theme/presets/index.js +1 -2
  65. package/dist/utils/index.js +1 -3
  66. package/package.json +3 -3
  67. package/dist/chunk-3KMDHCAR.js +0 -52
  68. package/dist/chunk-4DRI3G36.js +0 -1016
  69. package/dist/chunk-5EYJ2GIN.js +0 -122
  70. package/dist/chunk-66U7JOWV.js +0 -425
  71. package/dist/chunk-6D4LCJ52.js +0 -10
  72. package/dist/chunk-6EV47QQW.js +0 -340
  73. package/dist/chunk-6ROXVZ3L.js +0 -9
  74. package/dist/chunk-7MTWRSUZ.js +0 -357
  75. package/dist/chunk-7PHY5ONQ.js +0 -85
  76. package/dist/chunk-B2DZLPDL.js +0 -39
  77. package/dist/chunk-CLDCYJQT.js +0 -1
  78. package/dist/chunk-CTJBPF3Z.js +0 -734
  79. package/dist/chunk-DT3QYZVU.js +0 -23
  80. package/dist/chunk-IIMU5YAJ.js +0 -53
  81. package/dist/chunk-IUQAP4IO.js +0 -2131
  82. package/dist/chunk-J3FLIZY4.js +0 -423
  83. package/dist/chunk-K7GKKETO.js +0 -3157
  84. package/dist/chunk-L7GXUSCV.js +0 -215
  85. package/dist/chunk-LJDYY3XB.js +0 -133
  86. package/dist/chunk-NYBEU5TE.js +0 -118
  87. package/dist/chunk-RH5VWWSC.js +0 -624
  88. package/dist/chunk-SJNIOGVX.js +0 -112
  89. package/dist/chunk-TYRUKGGD.js +0 -46
  90. package/dist/chunk-WLOQ4IBG.js +0 -654
  91. package/dist/chunk-X4WBGKJQ.js +0 -138
  92. package/dist/chunk-X7D6SUKR.js +0 -1234
@@ -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 };