@elevasis/ui 2.33.2 → 2.35.0
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.d.ts +9 -2
- package/dist/api/index.js +3 -3
- package/dist/app/index.css +452 -0
- package/dist/app/index.d.ts +1255 -8
- package/dist/app/index.js +151 -13
- package/dist/charts/index.js +3 -6
- package/dist/chunk-26HFM4MH.js +41449 -0
- package/dist/{chunk-52K5RFDH.js → chunk-4U3XAWCN.js} +1328 -2492
- package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
- package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
- package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
- package/dist/chunk-AUDNF2Q7.js +2050 -0
- package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
- package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
- package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
- package/dist/chunk-SIQ3P4OR.js +1764 -0
- package/dist/{chunk-Z2K2EAPL.js → chunk-VDOOGGBA.js} +5 -6
- package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
- package/dist/chunk-YYX7OPZQ.js +25 -0
- package/dist/components/index.d.ts +69 -92
- package/dist/components/index.js +20 -3216
- package/dist/components/navigation/index.js +25 -7
- package/dist/execution/index.d.ts +9 -9
- package/dist/execution/index.js +1 -2
- package/dist/features/auth/index.js +23 -2
- package/dist/features/clients/index.js +20 -31
- package/dist/features/crm/index.js +20 -35
- package/dist/features/dashboard/index.d.ts +68 -91
- package/dist/features/dashboard/index.js +20 -33
- package/dist/features/delivery/index.js +20 -35
- package/dist/features/knowledge/index.js +25 -11
- package/dist/features/lead-gen/index.d.ts +9 -9
- package/dist/features/lead-gen/index.js +20 -36
- package/dist/features/monitoring/index.js +20 -35
- package/dist/features/monitoring/requests/index.js +20 -30
- package/dist/features/operations/index.d.ts +197 -188
- package/dist/features/operations/index.js +18 -42
- package/dist/features/seo/index.js +3 -4
- package/dist/features/settings/index.js +20 -32
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.js +30 -2
- package/dist/hooks/index.d.ts +105 -112
- package/dist/hooks/index.js +20 -26
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +55 -62
- package/dist/hooks/published.d.ts +105 -112
- package/dist/hooks/published.js +20 -25
- package/dist/index.css +532 -532
- package/dist/index.d.ts +10261 -6793
- package/dist/index.js +22 -31
- package/dist/knowledge/index.d.ts +51 -59
- package/dist/knowledge/index.js +40 -211
- package/dist/{knowledge-search-index-VMAW7FLR.js → knowledge-search-index-ORIJCEZX.js} +3 -3
- package/dist/layout/index.js +4 -10
- package/dist/organization/index.js +27 -2
- package/dist/provider/index.d.ts +71 -52
- package/dist/provider/index.js +20 -20
- package/dist/provider/published.d.ts +39 -47
- package/dist/provider/published.js +20 -15
- package/dist/test-utils/index.d.ts +2 -0
- package/dist/test-utils/index.js +16 -4
- package/dist/test-utils/setup.js +38 -0
- package/dist/theme/index.js +2 -3
- package/dist/theme/presets/index.d.ts +28 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -2049
- package/dist/types/index.d.ts +88 -95
- package/dist/utils/index.d.ts +46 -69
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +21 -8
- package/dist/zustand/index.js +32 -1
- package/package.json +5 -5
- package/dist/chunk-2ZZ72TAB.js +0 -2281
- package/dist/chunk-32I2RCGC.js +0 -85
- package/dist/chunk-3MEXPLWT.js +0 -265
- package/dist/chunk-3ZMAGTWF.js +0 -18
- package/dist/chunk-44I4LOH6.js +0 -1593
- package/dist/chunk-4DYOXEH6.js +0 -951
- package/dist/chunk-7M2VOCYN.js +0 -1
- package/dist/chunk-A4VDJJCV.js +0 -1864
- package/dist/chunk-BZZCNLT6.js +0 -12
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-E565XMTQ.js +0 -17
- package/dist/chunk-EPTHX4VZ.js +0 -749
- package/dist/chunk-GWGQI6V4.js +0 -447
- package/dist/chunk-HUJCU55S.js +0 -159
- package/dist/chunk-IBWMR4TI.js +0 -469
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IOXOPMYS.js +0 -145
- package/dist/chunk-J2UD7BOH.js +0 -347
- package/dist/chunk-JA5ECJJB.js +0 -387
- package/dist/chunk-JFL3GRD4.js +0 -39
- package/dist/chunk-KW7ZNQD7.js +0 -126
- package/dist/chunk-LGKLC5MG.js +0 -44
- package/dist/chunk-N55DVMAG.js +0 -14
- package/dist/chunk-O56ESZCQ.js +0 -1874
- package/dist/chunk-OIBHQH5Q.js +0 -96
- package/dist/chunk-PDHTXPSF.js +0 -12
- package/dist/chunk-QDFJSUG3.js +0 -13
- package/dist/chunk-R2XR4FCV.js +0 -48
- package/dist/chunk-R66W5UDG.js +0 -26
- package/dist/chunk-RYTEQBAO.js +0 -37
- package/dist/chunk-SZHARWKU.js +0 -15
- package/dist/chunk-T3J6U77J.js +0 -12056
- package/dist/chunk-TBVLQRXT.js +0 -68
- package/dist/chunk-TGVAIWIL.js +0 -1778
- package/dist/chunk-TKAYX2SP.js +0 -204
- package/dist/chunk-TUMSNGTX.js +0 -35
- package/dist/chunk-VGU4ZFYZ.js +0 -4752
- package/dist/chunk-VNAZTCHA.js +0 -65
- package/dist/chunk-VNFR57DF.js +0 -87
- package/dist/chunk-WKW6B5ID.js +0 -29
- package/dist/chunk-XCYKC6OZ.js +0 -1
- package/dist/chunk-XZGSCABI.js +0 -383
- package/dist/chunk-ZMK5Z6KE.js +0 -5198
- /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
- /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
package/dist/chunk-TKAYX2SP.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { topbarHeight, sidebarTransitionDuration, sidebarBottomSectionHeight } from './chunk-DT3QYZVU.js';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { useState } from 'react';
|
|
4
|
-
|
|
5
|
-
var SubshellContainer = ({ children, className }) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
"div",
|
|
8
|
-
{
|
|
9
|
-
className,
|
|
10
|
-
style: {
|
|
11
|
-
display: "flex",
|
|
12
|
-
height: "100%",
|
|
13
|
-
width: "100%",
|
|
14
|
-
position: "relative"
|
|
15
|
-
},
|
|
16
|
-
children
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
var SubshellRightSideContainer = ({ children, className }) => {
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
"div",
|
|
23
|
-
{
|
|
24
|
-
className,
|
|
25
|
-
style: {
|
|
26
|
-
flex: 1,
|
|
27
|
-
minWidth: 0,
|
|
28
|
-
display: "flex",
|
|
29
|
-
flexDirection: "column",
|
|
30
|
-
overflow: "hidden"
|
|
31
|
-
},
|
|
32
|
-
children
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
var mdSpacing = 16;
|
|
37
|
-
var SubshellContentContainer = ({ children, className }) => {
|
|
38
|
-
return /* @__PURE__ */ jsx(
|
|
39
|
-
"div",
|
|
40
|
-
{
|
|
41
|
-
className,
|
|
42
|
-
style: {
|
|
43
|
-
display: "flex",
|
|
44
|
-
flexDirection: "column",
|
|
45
|
-
flex: 1,
|
|
46
|
-
overflowX: "clip",
|
|
47
|
-
overflowY: "auto",
|
|
48
|
-
minWidth: 0,
|
|
49
|
-
minHeight: 0,
|
|
50
|
-
padding: "var(--mantine-spacing-md)",
|
|
51
|
-
paddingTop: `${topbarHeight + mdSpacing}px`
|
|
52
|
-
},
|
|
53
|
-
children
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
};
|
|
57
|
-
var SubshellSidebar = ({
|
|
58
|
-
children,
|
|
59
|
-
className,
|
|
60
|
-
width,
|
|
61
|
-
collapsible = true,
|
|
62
|
-
defaultOpen = true
|
|
63
|
-
}) => {
|
|
64
|
-
const [isOpen, setIsOpen] = useState(defaultOpen);
|
|
65
|
-
const effectiveWidth = collapsible && !isOpen ? 0 : width;
|
|
66
|
-
if (!collapsible) {
|
|
67
|
-
return /* @__PURE__ */ jsx(
|
|
68
|
-
"aside",
|
|
69
|
-
{
|
|
70
|
-
className,
|
|
71
|
-
style: {
|
|
72
|
-
width: `${width}px`,
|
|
73
|
-
flexShrink: 0,
|
|
74
|
-
display: "flex",
|
|
75
|
-
flexDirection: "column",
|
|
76
|
-
backgroundColor: "color-mix(in srgb, var(--glass-background) 80%, transparent)",
|
|
77
|
-
backdropFilter: "var(--glass-blur)",
|
|
78
|
-
WebkitBackdropFilter: "var(--glass-blur)",
|
|
79
|
-
borderRight: "1px solid var(--color-border)",
|
|
80
|
-
boxShadow: "var(--card-shadow)",
|
|
81
|
-
clipPath: "inset(-100px -100px -100px 0)",
|
|
82
|
-
height: `calc(100vh - ${topbarHeight}px)`,
|
|
83
|
-
minHeight: 0,
|
|
84
|
-
marginTop: `${topbarHeight}px`,
|
|
85
|
-
fontFamily: "var(--elevasis-font-family-subtitle)",
|
|
86
|
-
overflow: "hidden"
|
|
87
|
-
},
|
|
88
|
-
children
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
return /* @__PURE__ */ jsxs(
|
|
93
|
-
"div",
|
|
94
|
-
{
|
|
95
|
-
style: {
|
|
96
|
-
position: "relative",
|
|
97
|
-
flexShrink: 0,
|
|
98
|
-
marginTop: `${topbarHeight}px`,
|
|
99
|
-
height: `calc(100vh - ${topbarHeight}px)`,
|
|
100
|
-
minHeight: 0
|
|
101
|
-
},
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ jsx(
|
|
104
|
-
"aside",
|
|
105
|
-
{
|
|
106
|
-
className,
|
|
107
|
-
style: {
|
|
108
|
-
width: `${effectiveWidth}px`,
|
|
109
|
-
flexShrink: 0,
|
|
110
|
-
display: "flex",
|
|
111
|
-
flexDirection: "column",
|
|
112
|
-
backgroundColor: "color-mix(in srgb, var(--glass-background) 80%, transparent)",
|
|
113
|
-
backdropFilter: "var(--glass-blur)",
|
|
114
|
-
WebkitBackdropFilter: "var(--glass-blur)",
|
|
115
|
-
borderRight: isOpen ? "1px solid var(--color-border)" : "none",
|
|
116
|
-
boxShadow: isOpen ? "var(--card-shadow)" : "none",
|
|
117
|
-
clipPath: isOpen ? "inset(-100px -100px -100px 0)" : "none",
|
|
118
|
-
height: "100%",
|
|
119
|
-
fontFamily: "var(--elevasis-font-family-subtitle)",
|
|
120
|
-
overflow: "hidden",
|
|
121
|
-
transition: `width ${sidebarTransitionDuration}ms var(--easing)`
|
|
122
|
-
},
|
|
123
|
-
children: /* @__PURE__ */ jsx(
|
|
124
|
-
"div",
|
|
125
|
-
{
|
|
126
|
-
style: {
|
|
127
|
-
width: `${width}px`,
|
|
128
|
-
flexShrink: 0,
|
|
129
|
-
height: "100%",
|
|
130
|
-
minHeight: 0,
|
|
131
|
-
display: "flex",
|
|
132
|
-
flexDirection: "column",
|
|
133
|
-
opacity: isOpen ? 1 : 0,
|
|
134
|
-
transition: `opacity var(--duration-fast) var(--easing)`
|
|
135
|
-
},
|
|
136
|
-
children
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
/* @__PURE__ */ jsx(
|
|
142
|
-
"button",
|
|
143
|
-
{
|
|
144
|
-
onClick: () => setIsOpen((prev) => !prev),
|
|
145
|
-
style: {
|
|
146
|
-
position: "absolute",
|
|
147
|
-
right: 0,
|
|
148
|
-
bottom: 0,
|
|
149
|
-
transform: "translateX(100%)",
|
|
150
|
-
width: "20px",
|
|
151
|
-
// Match the live height of the outer Sidebar's bottom profile section.
|
|
152
|
-
// SidebarBottomSection publishes --elevasis-sidebar-bottom-section-height
|
|
153
|
-
// via ResizeObserver so this follows its actual height through
|
|
154
|
-
// collapse/expand transitions. Falls back to the expanded-state
|
|
155
|
-
// constant when rendered outside a Sidebar layout.
|
|
156
|
-
height: `var(--elevasis-sidebar-bottom-section-height, ${sidebarBottomSectionHeight}px)`,
|
|
157
|
-
display: "flex",
|
|
158
|
-
alignItems: "center",
|
|
159
|
-
justifyContent: "center",
|
|
160
|
-
backgroundColor: "color-mix(in srgb, var(--glass-background) 80%, transparent)",
|
|
161
|
-
backdropFilter: "var(--glass-blur)",
|
|
162
|
-
WebkitBackdropFilter: "var(--glass-blur)",
|
|
163
|
-
border: "1px solid var(--color-border)",
|
|
164
|
-
borderLeft: "none",
|
|
165
|
-
borderBottom: "none",
|
|
166
|
-
borderRadius: "0 4px 0 0",
|
|
167
|
-
cursor: "pointer",
|
|
168
|
-
color: "var(--color-text-subtle)",
|
|
169
|
-
padding: 0,
|
|
170
|
-
zIndex: 10,
|
|
171
|
-
transition: `color var(--duration-fast) var(--easing)`
|
|
172
|
-
},
|
|
173
|
-
"aria-label": isOpen ? "Collapse sidebar" : "Expand sidebar",
|
|
174
|
-
children: /* @__PURE__ */ jsx(
|
|
175
|
-
"svg",
|
|
176
|
-
{
|
|
177
|
-
width: "6",
|
|
178
|
-
height: "10",
|
|
179
|
-
viewBox: "0 0 8 12",
|
|
180
|
-
fill: "none",
|
|
181
|
-
style: {
|
|
182
|
-
transform: isOpen ? void 0 : "rotate(180deg)",
|
|
183
|
-
transition: `transform var(--duration-fast) var(--easing)`
|
|
184
|
-
},
|
|
185
|
-
children: /* @__PURE__ */ jsx(
|
|
186
|
-
"path",
|
|
187
|
-
{
|
|
188
|
-
d: "M6 1L1 6L6 11",
|
|
189
|
-
stroke: "currentColor",
|
|
190
|
-
strokeWidth: "1.5",
|
|
191
|
-
strokeLinecap: "round",
|
|
192
|
-
strokeLinejoin: "round"
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
}
|
|
196
|
-
)
|
|
197
|
-
}
|
|
198
|
-
)
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
export { SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar };
|
package/dist/chunk-TUMSNGTX.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Table, Group, Text, Button } from '@mantine/core';
|
|
2
|
-
import { IconChevronUp, IconChevronDown, IconSelector, IconTrash } from '@tabler/icons-react';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
// src/components/table/SortableHeader.tsx
|
|
6
|
-
function SortableHeader({ column, children, sort, onToggle, style, w }) {
|
|
7
|
-
const isActive = sort.column === column;
|
|
8
|
-
return /* @__PURE__ */ jsx(Table.Th, { style: { ...style, cursor: "pointer", userSelect: "none" }, w, onClick: () => onToggle(column), children: /* @__PURE__ */ jsxs(Group, { gap: 4, wrap: "nowrap", children: [
|
|
9
|
-
children,
|
|
10
|
-
isActive ? sort.direction === "asc" ? /* @__PURE__ */ jsx(IconChevronUp, { size: 14 }) : /* @__PURE__ */ jsx(IconChevronDown, { size: 14 }) : /* @__PURE__ */ jsx(IconSelector, { size: 14, style: { opacity: 0.3 } })
|
|
11
|
-
] }) });
|
|
12
|
-
}
|
|
13
|
-
function TableSelectionToolbar({ selectedCount, onDelete, isDeleting }) {
|
|
14
|
-
if (selectedCount === 0) return null;
|
|
15
|
-
return /* @__PURE__ */ jsxs(Group, { gap: "sm", children: [
|
|
16
|
-
/* @__PURE__ */ jsxs(Text, { size: "sm", fw: 600, c: "blue", children: [
|
|
17
|
-
selectedCount,
|
|
18
|
-
" selected"
|
|
19
|
-
] }),
|
|
20
|
-
onDelete && /* @__PURE__ */ jsx(
|
|
21
|
-
Button,
|
|
22
|
-
{
|
|
23
|
-
size: "sm",
|
|
24
|
-
color: "red",
|
|
25
|
-
variant: "light",
|
|
26
|
-
leftSection: /* @__PURE__ */ jsx(IconTrash, { size: 16 }),
|
|
27
|
-
loading: isDeleting,
|
|
28
|
-
onClick: onDelete,
|
|
29
|
-
children: "Delete"
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
] });
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { SortableHeader, TableSelectionToolbar };
|