@elevasis/ui 2.9.0 → 2.10.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/app/index.css +137 -0
- package/dist/app/index.d.ts +223 -0
- package/dist/app/index.js +95 -0
- package/dist/charts/index.js +3 -2
- package/dist/{chunk-NYMKWGKN.js → chunk-4BF74JVD.js} +110 -7
- package/dist/{chunk-YCHZ4U5V.js → chunk-5VBR74ZS.js} +5 -13
- package/dist/chunk-ADSSLKKP.js +10 -0
- package/dist/{chunk-C2OFFC7J.js → chunk-AL23U6C3.js} +3 -2
- package/dist/{chunk-27COZ5AH.js → chunk-CEWTOKE7.js} +3 -50
- package/dist/{chunk-AQQYVAFK.js → chunk-CLXMNMIS.js} +8 -7
- package/dist/{chunk-4PHPENKX.js → chunk-E3IFHX6A.js} +27 -377
- package/dist/{chunk-4JPW5U5I.js → chunk-E4W7LB37.js} +53 -54
- package/dist/{chunk-CYXZHBP4.js → chunk-F4TPY6YL.js} +14 -3
- package/dist/chunk-G2TDX3W6.js +5 -0
- package/dist/chunk-IIMU5YAJ.js +53 -0
- package/dist/{chunk-W4VYXIN7.js → chunk-L4XXM55J.js} +3 -142
- package/dist/{chunk-KGEYEUR5.js → chunk-MOHVG62K.js} +7 -6
- package/dist/{chunk-F5QSLYUB.js → chunk-N47Z6LD4.js} +317 -1060
- package/dist/{chunk-47YILFON.js → chunk-OS5GFW2O.js} +156 -141
- package/dist/chunk-P5VHGY5P.js +13 -0
- package/dist/chunk-R7WLWGPO.js +126 -0
- package/dist/{chunk-Y3D3WFJG.js → chunk-SQQGLGHW.js} +2 -11
- package/dist/{chunk-KFICYU6S.js → chunk-STZJ7SY5.js} +1 -1
- package/dist/chunk-SZHARWKU.js +15 -0
- package/dist/{chunk-7PDDPNQS.js → chunk-TSX4I3NW.js} +3 -3
- package/dist/{chunk-CTWYIRKW.js → chunk-U23TW6NP.js} +24 -34
- package/dist/{chunk-OPT74SGF.js → chunk-USVBMGMP.js} +26 -172
- package/dist/chunk-V7XHGJQZ.js +145 -0
- package/dist/{chunk-UE5QQDCR.js → chunk-WHQXDETX.js} +5 -5
- package/dist/{chunk-ZZ35VSNF.js → chunk-YQLE5HR5.js} +4 -4
- package/dist/{chunk-VNUOQQNY.js → chunk-Z3OWD3A4.js} +2 -2
- package/dist/components/index.d.ts +6 -253
- package/dist/components/index.js +31 -25
- package/dist/features/auth/index.d.ts +0 -107
- package/dist/features/auth/index.js +0 -1
- package/dist/features/crm/index.d.ts +3 -136
- package/dist/features/crm/index.js +14 -9
- package/dist/features/dashboard/index.js +13 -9
- package/dist/features/delivery/index.d.ts +3 -137
- package/dist/features/delivery/index.js +15 -9
- package/dist/features/lead-gen/index.d.ts +3 -29
- package/dist/features/lead-gen/index.js +20 -14
- package/dist/features/monitoring/index.d.ts +3 -30
- package/dist/features/monitoring/index.js +14 -10
- package/dist/features/operations/index.d.ts +18 -1323
- package/dist/features/operations/index.js +18 -13
- package/dist/features/seo/index.d.ts +3 -30
- package/dist/features/seo/index.js +3 -2
- package/dist/features/settings/index.d.ts +6 -146
- package/dist/features/settings/index.js +13 -9
- package/dist/hooks/index.d.ts +10 -1403
- package/dist/hooks/index.js +11 -7
- package/dist/hooks/published.d.ts +10 -1403
- package/dist/hooks/published.js +11 -7
- package/dist/index.d.ts +96 -1510
- package/dist/index.js +12 -8
- package/dist/initialization/index.d.ts +3 -117
- package/dist/layout/index.d.ts +12 -2
- package/dist/layout/index.js +5 -4
- package/dist/organization/index.d.ts +3 -10
- package/dist/organization/index.js +2 -1
- package/dist/profile/index.d.ts +0 -107
- package/dist/provider/index.d.ts +44 -65
- package/dist/provider/index.js +10 -6
- package/dist/provider/published.d.ts +44 -65
- package/dist/provider/published.js +6 -3
- package/dist/supabase/index.d.ts +0 -209
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/typeform/index.js +10 -10
- package/dist/types/index.d.ts +68 -1738
- package/package.json +20 -4
- package/src/app/README.md +24 -0
- package/src/provider/README.md +8 -7
- package/dist/chunk-IDACMRGQ.js +0 -115
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -142,6 +142,22 @@
|
|
|
142
142
|
"./zustand": {
|
|
143
143
|
"types": "./dist/zustand/index.d.ts",
|
|
144
144
|
"import": "./dist/zustand/index.js"
|
|
145
|
+
},
|
|
146
|
+
"./app": {
|
|
147
|
+
"types": "./dist/app/index.d.ts",
|
|
148
|
+
"import": "./dist/app/index.js"
|
|
149
|
+
},
|
|
150
|
+
"./provider/ElevasisServiceContext": {
|
|
151
|
+
"types": "./dist/provider/ElevasisServiceContext.d.ts",
|
|
152
|
+
"import": "./dist/provider/ElevasisServiceContext.js"
|
|
153
|
+
},
|
|
154
|
+
"./hooks/delivery": {
|
|
155
|
+
"types": "./dist/hooks/delivery/index.d.ts",
|
|
156
|
+
"import": "./dist/hooks/delivery/index.js"
|
|
157
|
+
},
|
|
158
|
+
"./hooks/operations/command-view/utils/transformCommandViewData": {
|
|
159
|
+
"types": "./dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts",
|
|
160
|
+
"import": "./dist/hooks/operations/command-view/utils/transformCommandViewData.js"
|
|
145
161
|
}
|
|
146
162
|
},
|
|
147
163
|
"peerDependencies": {
|
|
@@ -186,9 +202,9 @@
|
|
|
186
202
|
"tsup": "^8.0.0",
|
|
187
203
|
"typescript": "5.9.2",
|
|
188
204
|
"vite": "^7.0.0",
|
|
189
|
-
"@repo/core": "0.
|
|
190
|
-
"@repo/
|
|
191
|
-
"@repo/
|
|
205
|
+
"@repo/core": "0.3.0",
|
|
206
|
+
"@repo/eslint-config": "0.0.0",
|
|
207
|
+
"@repo/typescript-config": "0.0.0"
|
|
192
208
|
},
|
|
193
209
|
"dependencies": {
|
|
194
210
|
"@dagrejs/dagre": "^1.1.4",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# App
|
|
2
|
+
|
|
3
|
+
Published app factory for downstream applications.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `createElevasisApp(config)` -- factory that composes providers, router, auth, and theme into a mountable React app
|
|
8
|
+
- `ElevasisAppConfig` -- configuration interface (router, query client, theme, store hooks, error handling)
|
|
9
|
+
- `ElevasisAppStoreConfig` -- store integration hooks for theme state
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { createElevasisApp } from '@elevasis/ui/app'
|
|
15
|
+
|
|
16
|
+
const { App } = createElevasisApp({
|
|
17
|
+
router,
|
|
18
|
+
queryClient,
|
|
19
|
+
store: { useThemePreset, useThemeColorScheme, useSetTheme },
|
|
20
|
+
themeConfig: { presets, defaultPreset },
|
|
21
|
+
})
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Consumers must import CSS separately in their entry point.
|
package/src/provider/README.md
CHANGED
|
@@ -4,6 +4,8 @@ The provider surface composes the shared Elevasis service, feature, appearance,
|
|
|
4
4
|
|
|
5
5
|
## Exports
|
|
6
6
|
|
|
7
|
+
The following are exported from `published.ts`, which is the external consumer surface for `@elevasis/ui/provider`:
|
|
8
|
+
|
|
7
9
|
- `ElevasisCoreProvider`
|
|
8
10
|
- `ElevasisFeaturesProvider`
|
|
9
11
|
- `useElevasisFeatures`
|
|
@@ -15,17 +17,16 @@ The provider surface composes the shared Elevasis service, feature, appearance,
|
|
|
15
17
|
- `useElevasisServices`
|
|
16
18
|
- `NotificationProvider`
|
|
17
19
|
- `useNotificationAdapter`
|
|
18
|
-
- `ElevasisUIProvider`
|
|
19
20
|
- Related provider and service types
|
|
20
21
|
|
|
22
|
+
Note: `ElevasisUIProvider` (the Mantine-facing visual layer) is available internally via `@repo/ui` but is NOT exported from the published `@elevasis/ui/provider` subpath. It is only available via the internal `./provider/ui` monorepo subpath.
|
|
23
|
+
|
|
21
24
|
## Related Published Subpaths
|
|
22
25
|
|
|
23
|
-
- `./provider`
|
|
24
|
-
- `./provider/ui`
|
|
25
|
-
- `./provider/ElevasisServiceContext`
|
|
26
|
+
- `./provider` - headless providers (points to `published.ts`; no Mantine dependency)
|
|
27
|
+
- `./provider/ui` - full provider including Mantine-dependent `ElevasisUIProvider` (internal monorepo use; also published for consumers that opt in)
|
|
26
28
|
|
|
27
29
|
## Notes
|
|
28
30
|
|
|
29
|
-
- `published.ts` is the external consumer surface
|
|
30
|
-
- `ElevasisUIProvider` is
|
|
31
|
-
|
|
31
|
+
- `published.ts` is the external consumer surface for `@elevasis/ui/provider`.
|
|
32
|
+
- `ElevasisUIProvider` is Mantine-dependent and available only via `@repo/ui` internally or `@elevasis/ui/provider/ui`; it is not included in the headless `./provider` published export.
|
package/dist/chunk-IDACMRGQ.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { useAppearance } from './chunk-QJ2KCHKX.js';
|
|
2
|
-
import { sidebarGroupChevronSize, sidebarIconInnerSize } from './chunk-DT3QYZVU.js';
|
|
3
|
-
import { Center, Box, UnstyledButton, Group, Text, Collapse, Stack } from '@mantine/core';
|
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
import { IconChevronDown, IconChevronRight } from '@tabler/icons-react';
|
|
6
|
-
|
|
7
|
-
function SubshellLoader() {
|
|
8
|
-
const { loader } = useAppearance();
|
|
9
|
-
return /* @__PURE__ */ jsx(Center, { mih: "calc(100vh - 70px)", children: loader });
|
|
10
|
-
}
|
|
11
|
-
var activeColor = "var(--color-primary)";
|
|
12
|
-
var defaultTextColor = "var(--color-text)";
|
|
13
|
-
var subtleColor = "var(--color-text-subtle)";
|
|
14
|
-
var activeBg = `color-mix(in srgb, ${activeColor} 10%, transparent)`;
|
|
15
|
-
var CollapsibleSidebarGroup = ({
|
|
16
|
-
icon: Icon,
|
|
17
|
-
label,
|
|
18
|
-
isExpanded,
|
|
19
|
-
onToggle,
|
|
20
|
-
isActive = false,
|
|
21
|
-
badge,
|
|
22
|
-
children,
|
|
23
|
-
onLabelClick,
|
|
24
|
-
emptyMessage = "No items",
|
|
25
|
-
isEmpty = false,
|
|
26
|
-
isLoading = false,
|
|
27
|
-
loadingComponent
|
|
28
|
-
}) => {
|
|
29
|
-
const showActiveStyle = !isExpanded && isActive;
|
|
30
|
-
const iconColor = showActiveStyle ? activeColor : subtleColor;
|
|
31
|
-
const textColor = showActiveStyle ? activeColor : defaultTextColor;
|
|
32
|
-
const fontWeight = showActiveStyle ? 600 : 500;
|
|
33
|
-
const handleLabelClick = (e) => {
|
|
34
|
-
if (onLabelClick) {
|
|
35
|
-
e.stopPropagation();
|
|
36
|
-
onLabelClick();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
41
|
-
UnstyledButton,
|
|
42
|
-
{
|
|
43
|
-
onClick: onToggle,
|
|
44
|
-
style: {
|
|
45
|
-
display: "flex",
|
|
46
|
-
alignItems: "center",
|
|
47
|
-
width: "100%",
|
|
48
|
-
padding: "var(--mantine-spacing-xs)",
|
|
49
|
-
color: textColor,
|
|
50
|
-
backgroundColor: showActiveStyle ? activeBg : "transparent",
|
|
51
|
-
transition: `all var(--duration-fast) var(--easing)`,
|
|
52
|
-
cursor: "pointer",
|
|
53
|
-
overflow: "hidden"
|
|
54
|
-
},
|
|
55
|
-
onMouseEnter: (e) => {
|
|
56
|
-
if (!showActiveStyle) {
|
|
57
|
-
e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
onMouseLeave: (e) => {
|
|
61
|
-
if (!showActiveStyle) {
|
|
62
|
-
e.currentTarget.style.backgroundColor = "transparent";
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
children: /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", style: { width: "100%" }, children: [
|
|
66
|
-
/* @__PURE__ */ jsx(Box, { style: { flexShrink: 0, color: iconColor }, children: isExpanded ? /* @__PURE__ */ jsx(IconChevronDown, { size: sidebarGroupChevronSize }) : /* @__PURE__ */ jsx(IconChevronRight, { size: sidebarGroupChevronSize }) }),
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
68
|
-
Box,
|
|
69
|
-
{
|
|
70
|
-
style: { flexShrink: 0, color: iconColor, cursor: onLabelClick ? "pointer" : "inherit" },
|
|
71
|
-
onClick: onLabelClick ? handleLabelClick : void 0,
|
|
72
|
-
children: /* @__PURE__ */ jsx(Icon, { size: sidebarIconInnerSize, color: activeColor })
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
/* @__PURE__ */ jsx(
|
|
76
|
-
Text,
|
|
77
|
-
{
|
|
78
|
-
size: "sm",
|
|
79
|
-
fw: fontWeight,
|
|
80
|
-
style: {
|
|
81
|
-
fontFamily: "var(--elevasis-font-family-subtitle)",
|
|
82
|
-
color: textColor,
|
|
83
|
-
transition: `color var(--duration-fast) var(--easing)`,
|
|
84
|
-
overflow: "hidden",
|
|
85
|
-
textOverflow: "ellipsis",
|
|
86
|
-
whiteSpace: "nowrap",
|
|
87
|
-
flex: 1,
|
|
88
|
-
cursor: onLabelClick ? "pointer" : "inherit"
|
|
89
|
-
},
|
|
90
|
-
onClick: onLabelClick ? handleLabelClick : void 0,
|
|
91
|
-
children: label
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
badge && /* @__PURE__ */ jsx(Box, { style: { flexShrink: 0 }, children: badge })
|
|
95
|
-
] })
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
/* @__PURE__ */ jsx(Collapse, { in: isExpanded, children: /* @__PURE__ */ jsx(
|
|
99
|
-
Stack,
|
|
100
|
-
{
|
|
101
|
-
gap: 0,
|
|
102
|
-
mt: "xs",
|
|
103
|
-
ml: "xs",
|
|
104
|
-
style: {
|
|
105
|
-
borderLeft: `1px solid color-mix(in srgb, var(--color-primary) 40%, transparent)`,
|
|
106
|
-
marginLeft: "calc(var(--mantine-spacing-xs) + 6px)",
|
|
107
|
-
paddingLeft: "calc(var(--mantine-spacing-xs) - 2px)"
|
|
108
|
-
},
|
|
109
|
-
children: isLoading ? loadingComponent : isEmpty ? /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", style: { padding: "6px 8px" }, children: emptyMessage }) : children
|
|
110
|
-
}
|
|
111
|
-
) })
|
|
112
|
-
] });
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export { CollapsibleSidebarGroup, SubshellLoader };
|