@hanzo/ui 8.0.7 → 8.0.8
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/ThemeToggleNext-7727UR5W.js +4 -0
- package/dist/ThemeToggleNext-7727UR5W.js.map +1 -0
- package/dist/ThemeToggleNext-ICB5KL5J.cjs +19 -0
- package/dist/ThemeToggleNext-ICB5KL5J.cjs.map +1 -0
- package/dist/billing.cjs +15 -0
- package/dist/billing.cjs.map +1 -0
- package/{types → dist}/billing.d.ts +0 -1
- package/dist/billing.js +4 -0
- package/dist/billing.js.map +1 -0
- package/dist/canvas.cjs +15 -0
- package/dist/canvas.cjs.map +1 -0
- package/dist/canvas.d.ts +1 -0
- package/dist/canvas.js +4 -0
- package/dist/canvas.js.map +1 -0
- package/{types → dist}/cd/layout.d.ts +0 -1
- package/{types → dist}/cd/status.d.ts +0 -1
- package/{types → dist}/cd/time.d.ts +0 -1
- package/{types → dist}/cd/types.d.ts +0 -1
- package/dist/chunk-42CU5GSF.js +98 -0
- package/dist/chunk-42CU5GSF.js.map +1 -0
- package/dist/chunk-GDGVXU7W.js +1999 -0
- package/dist/chunk-GDGVXU7W.js.map +1 -0
- package/dist/chunk-HSPMQQVJ.cjs +2066 -0
- package/dist/chunk-HSPMQQVJ.cjs.map +1 -0
- package/dist/chunk-YBXVUV7P.cjs +103 -0
- package/dist/chunk-YBXVUV7P.cjs.map +1 -0
- package/dist/dashboard.cjs +15 -0
- package/dist/dashboard.cjs.map +1 -0
- package/dist/dashboard.d.ts +1 -0
- package/dist/dashboard.js +4 -0
- package/dist/dashboard.js.map +1 -0
- package/dist/data.cjs +15 -0
- package/dist/data.cjs.map +1 -0
- package/dist/data.d.ts +1 -0
- package/dist/data.js +4 -0
- package/dist/data.js.map +1 -0
- package/dist/gitops.cjs +15 -0
- package/dist/gitops.cjs.map +1 -0
- package/dist/gitops.d.ts +1 -0
- package/dist/gitops.js +4 -0
- package/dist/gitops.js.map +1 -0
- package/dist/index.cjs +291 -0
- package/dist/index.cjs.map +1 -0
- package/{types → dist}/index.d.ts +0 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/network.cjs +15 -0
- package/dist/network.cjs.map +1 -0
- package/{types → dist}/network.d.ts +0 -1
- package/dist/network.js +4 -0
- package/dist/network.js.map +1 -0
- package/dist/primitives/bases/data/index.cjs +15 -0
- package/dist/primitives/bases/data/index.cjs.map +1 -0
- package/dist/primitives/bases/data/index.d.ts +1 -0
- package/dist/primitives/bases/data/index.js +4 -0
- package/dist/primitives/bases/data/index.js.map +1 -0
- package/{types → dist}/product/AppHeader.d.ts +0 -1
- package/{types → dist}/product/BrandMark.d.ts +0 -1
- package/{types → dist}/product/Charts.d.ts +0 -1
- package/{types → dist}/product/ComboBox.d.ts +0 -1
- package/{types → dist}/product/DataTable.d.ts +0 -1
- package/{types → dist}/product/Donut.d.ts +0 -1
- package/{types → dist}/product/EmptyState.d.ts +0 -1
- package/{types → dist}/product/FadeIn.d.ts +0 -1
- package/{types → dist}/product/Field.d.ts +0 -1
- package/{types → dist}/product/HanzoMark.d.ts +0 -1
- package/{types → dist}/product/Metric.d.ts +0 -1
- package/{types → dist}/product/OrgSwitcher.d.ts +0 -1
- package/{types → dist}/product/PageHeader.d.ts +0 -1
- package/{types → dist}/product/PrimaryButton.d.ts +0 -1
- package/{types → dist}/product/ProductIcon.d.ts +0 -1
- package/{types → dist}/product/ProviderLogo.d.ts +0 -1
- package/{types → dist}/product/Reorder.d.ts +0 -1
- package/{types → dist}/product/SelectMenu.d.ts +6 -8
- package/{types → dist}/product/SlideOver.d.ts +0 -1
- package/{types → dist}/product/StatusTag.d.ts +0 -1
- package/{types → dist}/product/ThemeToggle.d.ts +0 -1
- package/{types → dist}/product/ThemeToggleNext.d.ts +0 -1
- package/{types → dist}/product/Toast.d.ts +0 -1
- package/{types → dist}/product/color.d.ts +0 -1
- package/{types → dist}/product/combobox/filter.d.ts +0 -1
- package/dist/product/index.cjs +278 -0
- package/dist/product/index.cjs.map +1 -0
- package/{types → dist}/product/index.d.ts +0 -1
- package/dist/product/index.js +5 -0
- package/dist/product/index.js.map +1 -0
- package/{types → dist}/product/menu/ContextMenu.d.ts +3 -6
- package/dist/product/menu/DropdownMenu.d.ts +29 -0
- package/dist/product/menu/FloatingMenu.d.ts +36 -0
- package/{types → dist}/product/menu/index.d.ts +1 -1
- package/{types → dist}/product/menu/items.d.ts +0 -1
- package/{types → dist}/product/menu/portal-theme.d.ts +0 -1
- package/{types → dist}/product/menu/roving.d.ts +0 -1
- package/{types → dist}/product/scope.d.ts +0 -1
- package/{types → dist}/product/surfaces.data.d.ts +0 -1
- package/dist/usage.cjs +15 -0
- package/dist/usage.cjs.map +1 -0
- package/dist/usage.d.ts +1 -0
- package/dist/usage.js +4 -0
- package/dist/usage.js.map +1 -0
- package/dist/wallet.cjs +15 -0
- package/dist/wallet.cjs.map +1 -0
- package/{types → dist}/wallet.d.ts +0 -1
- package/dist/wallet.js +4 -0
- package/dist/wallet.js.map +1 -0
- package/package.json +54 -32
- package/src/billing.ts +0 -9
- package/src/canvas.ts +0 -11
- package/src/cd/layout.ts +0 -184
- package/src/cd/status.ts +0 -158
- package/src/cd/time.ts +0 -52
- package/src/cd/types.ts +0 -318
- package/src/dashboard.ts +0 -8
- package/src/data.ts +0 -12
- package/src/gitops.ts +0 -5
- package/src/gui-env.d.ts +0 -27
- package/src/index.ts +0 -22
- package/src/network.ts +0 -11
- package/src/primitives/bases/data/index.ts +0 -13
- package/src/product/AppHeader.tsx +0 -183
- package/src/product/BrandMark.tsx +0 -27
- package/src/product/Charts.tsx +0 -471
- package/src/product/ComboBox.tsx +0 -127
- package/src/product/DataTable.tsx +0 -99
- package/src/product/Donut.tsx +0 -83
- package/src/product/EmptyState.tsx +0 -129
- package/src/product/FadeIn.tsx +0 -38
- package/src/product/Field.tsx +0 -160
- package/src/product/HanzoMark.tsx +0 -31
- package/src/product/Metric.tsx +0 -253
- package/src/product/OrgSwitcher.tsx +0 -332
- package/src/product/PageHeader.tsx +0 -31
- package/src/product/PrimaryButton.tsx +0 -17
- package/src/product/ProductIcon.tsx +0 -61
- package/src/product/ProviderLogo.tsx +0 -137
- package/src/product/Reorder.test.ts +0 -41
- package/src/product/Reorder.tsx +0 -110
- package/src/product/SelectMenu.tsx +0 -80
- package/src/product/SlideOver.tsx +0 -197
- package/src/product/StatusTag.tsx +0 -49
- package/src/product/ThemeToggle.tsx +0 -135
- package/src/product/ThemeToggleNext.tsx +0 -27
- package/src/product/Toast.tsx +0 -166
- package/src/product/color.ts +0 -17
- package/src/product/combobox/filter.test.ts +0 -51
- package/src/product/combobox/filter.ts +0 -39
- package/src/product/index.ts +0 -76
- package/src/product/menu/ContextMenu.tsx +0 -114
- package/src/product/menu/DropdownMenu.tsx +0 -76
- package/src/product/menu/index.ts +0 -15
- package/src/product/menu/items.tsx +0 -230
- package/src/product/menu/portal-theme.tsx +0 -33
- package/src/product/menu/roving.ts +0 -34
- package/src/product/scope.test.ts +0 -92
- package/src/product/scope.ts +0 -123
- package/src/product/surfaces.data.ts +0 -42
- package/src/usage.ts +0 -8
- package/src/wallet.ts +0 -11
- package/types/billing.d.ts.map +0 -1
- package/types/canvas.d.ts +0 -2
- package/types/canvas.d.ts.map +0 -1
- package/types/cd/layout.d.ts.map +0 -1
- package/types/cd/status.d.ts.map +0 -1
- package/types/cd/time.d.ts.map +0 -1
- package/types/cd/types.d.ts.map +0 -1
- package/types/dashboard.d.ts +0 -2
- package/types/dashboard.d.ts.map +0 -1
- package/types/data.d.ts +0 -2
- package/types/data.d.ts.map +0 -1
- package/types/gitops.d.ts +0 -2
- package/types/gitops.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/network.d.ts.map +0 -1
- package/types/primitives/bases/data/index.d.ts +0 -2
- package/types/primitives/bases/data/index.d.ts.map +0 -1
- package/types/product/AppHeader.d.ts.map +0 -1
- package/types/product/BrandMark.d.ts.map +0 -1
- package/types/product/Charts.d.ts.map +0 -1
- package/types/product/ComboBox.d.ts.map +0 -1
- package/types/product/DataTable.d.ts.map +0 -1
- package/types/product/Donut.d.ts.map +0 -1
- package/types/product/EmptyState.d.ts.map +0 -1
- package/types/product/FadeIn.d.ts.map +0 -1
- package/types/product/Field.d.ts.map +0 -1
- package/types/product/HanzoMark.d.ts.map +0 -1
- package/types/product/Metric.d.ts.map +0 -1
- package/types/product/OrgSwitcher.d.ts.map +0 -1
- package/types/product/PageHeader.d.ts.map +0 -1
- package/types/product/PrimaryButton.d.ts.map +0 -1
- package/types/product/ProductIcon.d.ts.map +0 -1
- package/types/product/ProviderLogo.d.ts.map +0 -1
- package/types/product/Reorder.d.ts.map +0 -1
- package/types/product/SelectMenu.d.ts.map +0 -1
- package/types/product/SlideOver.d.ts.map +0 -1
- package/types/product/StatusTag.d.ts.map +0 -1
- package/types/product/ThemeToggle.d.ts.map +0 -1
- package/types/product/ThemeToggleNext.d.ts.map +0 -1
- package/types/product/Toast.d.ts.map +0 -1
- package/types/product/color.d.ts.map +0 -1
- package/types/product/combobox/filter.d.ts.map +0 -1
- package/types/product/index.d.ts.map +0 -1
- package/types/product/menu/ContextMenu.d.ts.map +0 -1
- package/types/product/menu/DropdownMenu.d.ts +0 -34
- package/types/product/menu/DropdownMenu.d.ts.map +0 -1
- package/types/product/menu/index.d.ts.map +0 -1
- package/types/product/menu/items.d.ts.map +0 -1
- package/types/product/menu/portal-theme.d.ts.map +0 -1
- package/types/product/menu/roving.d.ts.map +0 -1
- package/types/product/scope.d.ts.map +0 -1
- package/types/product/surfaces.data.d.ts.map +0 -1
- package/types/usage.d.ts +0 -2
- package/types/usage.d.ts.map +0 -1
- package/types/wallet.d.ts.map +0 -1
- /package/{src → dist}/styles/hanzo-motion.css +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var nextTheme = require('@hanzogui/next-theme');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var gui = require('@hanzo/gui');
|
|
7
|
+
var lucideIcons2 = require('@hanzogui/lucide-icons-2');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
// src/product/ThemeToggleNext.tsx
|
|
11
|
+
var STORAGE_KEY = "theme";
|
|
12
|
+
function readDomTheme() {
|
|
13
|
+
if (typeof document === "undefined") return void 0;
|
|
14
|
+
const el = document.documentElement;
|
|
15
|
+
if (el.classList.contains("dark")) return "dark";
|
|
16
|
+
if (el.classList.contains("light")) return "light";
|
|
17
|
+
try {
|
|
18
|
+
const ls = window.localStorage.getItem(STORAGE_KEY);
|
|
19
|
+
if (ls === "light" || ls === "dark") return ls;
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
function applyDomTheme(next) {
|
|
25
|
+
if (typeof document === "undefined") return;
|
|
26
|
+
const el = document.documentElement;
|
|
27
|
+
el.classList.toggle("dark", next === "dark");
|
|
28
|
+
el.classList.toggle("light", next === "light");
|
|
29
|
+
el.style.colorScheme = next;
|
|
30
|
+
try {
|
|
31
|
+
window.localStorage.setItem(STORAGE_KEY, next);
|
|
32
|
+
} catch {
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function AgnosticThemeToggle({
|
|
36
|
+
theme,
|
|
37
|
+
defaultTheme,
|
|
38
|
+
onToggle,
|
|
39
|
+
onThemeChange,
|
|
40
|
+
size = "$2",
|
|
41
|
+
label
|
|
42
|
+
}) {
|
|
43
|
+
const controlled = theme !== void 0;
|
|
44
|
+
const [internal, setInternal] = react.useState(() => theme ?? defaultTheme ?? readDomTheme() ?? "dark");
|
|
45
|
+
const current = controlled ? theme : internal;
|
|
46
|
+
const isDark = current === "dark";
|
|
47
|
+
const toggle = () => {
|
|
48
|
+
const next = isDark ? "light" : "dark";
|
|
49
|
+
if (!controlled) {
|
|
50
|
+
setInternal(next);
|
|
51
|
+
applyDomTheme(next);
|
|
52
|
+
}
|
|
53
|
+
onToggle?.(next);
|
|
54
|
+
onThemeChange?.(next);
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57
|
+
gui.Button,
|
|
58
|
+
{
|
|
59
|
+
size,
|
|
60
|
+
chromeless: true,
|
|
61
|
+
icon: isDark ? /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Sun, { size: 16 }) : /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Moon, { size: 16 }),
|
|
62
|
+
onPress: toggle,
|
|
63
|
+
"aria-label": label ?? (isDark ? "Switch to light theme" : "Switch to dark theme")
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
var NextThemeToggle = react.lazy(() => import('./ThemeToggleNext-ICB5KL5J.cjs'));
|
|
68
|
+
var NextThemeBoundary = class extends react.Component {
|
|
69
|
+
state = { failed: false };
|
|
70
|
+
static getDerivedStateFromError() {
|
|
71
|
+
return { failed: true };
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
return this.state.failed ? this.props.fallback : this.props.children;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function ThemeToggle(props) {
|
|
78
|
+
const injected = props.theme !== void 0 || props.onToggle !== void 0 || props.onThemeChange !== void 0;
|
|
79
|
+
if (injected) return /* @__PURE__ */ jsxRuntime.jsx(AgnosticThemeToggle, { ...props });
|
|
80
|
+
const fallback = /* @__PURE__ */ jsxRuntime.jsx(AgnosticThemeToggle, { ...props });
|
|
81
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NextThemeBoundary, { fallback, children: /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback, children: /* @__PURE__ */ jsxRuntime.jsx(NextThemeToggle, { size: props.size, label: props.label }) }) });
|
|
82
|
+
}
|
|
83
|
+
function ThemeToggleNext({ size, label }) {
|
|
84
|
+
const { current, resolvedTheme, set } = nextTheme.useThemeSetting();
|
|
85
|
+
const isDark = (resolvedTheme ?? current ?? "dark") !== "light";
|
|
86
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
87
|
+
AgnosticThemeToggle,
|
|
88
|
+
{
|
|
89
|
+
theme: isDark ? "dark" : "light",
|
|
90
|
+
onToggle: (next) => set(next),
|
|
91
|
+
size,
|
|
92
|
+
label
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
var ThemeToggleNext_default = ThemeToggleNext;
|
|
97
|
+
|
|
98
|
+
exports.AgnosticThemeToggle = AgnosticThemeToggle;
|
|
99
|
+
exports.ThemeToggle = ThemeToggle;
|
|
100
|
+
exports.ThemeToggleNext = ThemeToggleNext;
|
|
101
|
+
exports.ThemeToggleNext_default = ThemeToggleNext_default;
|
|
102
|
+
//# sourceMappingURL=chunk-YBXVUV7P.cjs.map
|
|
103
|
+
//# sourceMappingURL=chunk-YBXVUV7P.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/product/ThemeToggle.tsx","../src/product/ThemeToggleNext.tsx"],"names":["useState","jsx","Button","Sun","Moon","lazy","Component","Suspense","useThemeSetting"],"mappings":";;;;;;;;;AAqCA,IAAM,WAAA,GAAc,OAAA;AAEpB,SAAS,YAAA,GAAsC;AAC7C,EAAA,IAAI,OAAO,QAAA,KAAa,WAAA,EAAa,OAAO,MAAA;AAC5C,EAAA,MAAM,KAAK,QAAA,CAAS,eAAA;AACpB,EAAA,IAAI,EAAA,CAAG,SAAA,CAAU,QAAA,CAAS,MAAM,GAAG,OAAO,MAAA;AAC1C,EAAA,IAAI,EAAA,CAAG,SAAA,CAAU,QAAA,CAAS,OAAO,GAAG,OAAO,OAAA;AAC3C,EAAA,IAAI;AACF,IAAA,MAAM,EAAA,GAAK,MAAA,CAAO,YAAA,CAAa,OAAA,CAAQ,WAAW,CAAA;AAClD,IAAA,IAAI,EAAA,KAAO,OAAA,IAAW,EAAA,KAAO,MAAA,EAAQ,OAAO,EAAA;AAAA,EAC9C,CAAA,CAAA,MAAQ;AAAA,EAER;AACA,EAAA,OAAO,MAAA;AACT;AAEA,SAAS,cAAc,IAAA,EAAuB;AAC5C,EAAA,IAAI,OAAO,aAAa,WAAA,EAAa;AACrC,EAAA,MAAM,KAAK,QAAA,CAAS,eAAA;AACpB,EAAA,EAAA,CAAG,SAAA,CAAU,MAAA,CAAO,MAAA,EAAQ,IAAA,KAAS,MAAM,CAAA;AAC3C,EAAA,EAAA,CAAG,SAAA,CAAU,MAAA,CAAO,OAAA,EAAS,IAAA,KAAS,OAAO,CAAA;AAC7C,EAAA,EAAA,CAAG,MAAM,WAAA,GAAc,IAAA;AACvB,EAAA,IAAI;AACF,IAAA,MAAA,CAAO,YAAA,CAAa,OAAA,CAAQ,WAAA,EAAa,IAAI,CAAA;AAAA,EAC/C,CAAA,CAAA,MAAQ;AAAA,EAER;AACF;AAMO,SAAS,mBAAA,CAAoB;AAAA,EAClC,KAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,aAAA;AAAA,EACA,IAAA,GAAO,IAAA;AAAA,EACP;AACF,CAAA,EAAqB;AACnB,EAAA,MAAM,aAAa,KAAA,KAAU,MAAA;AAC7B,EAAA,MAAM,CAAC,QAAA,EAAU,WAAW,CAAA,GAAIA,cAAA,CAAoB,MAAM,KAAA,IAAS,YAAA,IAAgB,YAAA,EAAa,IAAK,MAAM,CAAA;AAC3G,EAAA,MAAM,OAAA,GAAqB,aAAc,KAAA,GAAsB,QAAA;AAC/D,EAAA,MAAM,SAAS,OAAA,KAAY,MAAA;AAE3B,EAAA,MAAM,SAAS,MAAM;AACnB,IAAA,MAAM,IAAA,GAAkB,SAAS,OAAA,GAAU,MAAA;AAC3C,IAAA,IAAI,CAAC,UAAA,EAAY;AACf,MAAA,WAAA,CAAY,IAAI,CAAA;AAChB,MAAA,aAAA,CAAc,IAAI,CAAA;AAAA,IACpB;AACA,IAAA,QAAA,GAAW,IAAI,CAAA;AACf,IAAA,aAAA,GAAgB,IAAI,CAAA;AAAA,EACtB,CAAA;AAEA,EAAA,uBACEC,cAAA;AAAA,IAACC,UAAA;AAAA,IAAA;AAAA,MACC,IAAA;AAAA,MACA,UAAA,EAAU,IAAA;AAAA,MACV,IAAA,EAAM,MAAA,mBAASD,cAAA,CAACE,gBAAA,EAAA,EAAI,IAAA,EAAM,IAAI,CAAA,mBAAKF,cAAA,CAACG,iBAAA,EAAA,EAAK,IAAA,EAAM,EAAA,EAAI,CAAA;AAAA,MACnD,OAAA,EAAS,MAAA;AAAA,MACT,YAAA,EAAY,KAAA,KAAU,MAAA,GAAS,uBAAA,GAA0B,sBAAA;AAAA;AAAA,GAC3D;AAEJ;AAKA,IAAM,eAAA,GAAkBC,UAAA,CAAK,MAAM,OAAO,gCAAmB,CAAC,CAAA;AAE9D,IAAM,iBAAA,GAAN,cAAgCC,eAAA,CAA6E;AAAA,EAC3G,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,EAAM;AAAA,EACxB,OAAO,wBAAA,GAA2B;AAChC,IAAA,OAAO,EAAE,QAAQ,IAAA,EAAK;AAAA,EACxB;AAAA,EACA,MAAA,GAAS;AACP,IAAA,OAAO,KAAK,KAAA,CAAM,MAAA,GAAS,KAAK,KAAA,CAAM,QAAA,GAAW,KAAK,KAAA,CAAM,QAAA;AAAA,EAC9D;AACF,CAAA;AAEO,SAAS,YAAY,KAAA,EAAyB;AACnD,EAAA,MAAM,QAAA,GACJ,MAAM,KAAA,KAAU,MAAA,IAAa,MAAM,QAAA,KAAa,MAAA,IAAa,MAAM,aAAA,KAAkB,MAAA;AACvF,EAAA,IAAI,QAAA,EAAU,uBAAOL,cAAA,CAAC,mBAAA,EAAA,EAAqB,GAAG,KAAA,EAAO,CAAA;AAIrD,EAAA,MAAM,QAAA,mBAAWA,cAAA,CAAC,mBAAA,EAAA,EAAqB,GAAG,KAAA,EAAO,CAAA;AACjD,EAAA,uBACEA,cAAA,CAAC,iBAAA,EAAA,EAAkB,QAAA,EACjB,QAAA,kBAAAA,cAAA,CAACM,kBAAS,QAAA,EACR,QAAA,kBAAAN,cAAA,CAAC,eAAA,EAAA,EAAgB,IAAA,EAAM,MAAM,IAAA,EAAM,KAAA,EAAO,KAAA,CAAM,KAAA,EAAO,GACzD,CAAA,EACF,CAAA;AAEJ;AC1HA,SAAS,eAAA,CAAgB,EAAE,IAAA,EAAM,KAAA,EAAM,EAA6C;AAClF,EAAA,MAAM,EAAE,OAAA,EAAS,aAAA,EAAe,GAAA,KAAQO,yBAAA,EAAgB;AACxD,EAAA,MAAM,MAAA,GAAA,CAAU,aAAA,IAAiB,OAAA,IAAW,MAAA,MAAY,OAAA;AACxD,EAAA,uBACEP,cAAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,SAAS,MAAA,GAAS,OAAA;AAAA,MACzB,QAAA,EAAU,CAAC,IAAA,KAAS,GAAA,CAAI,IAAI,CAAA;AAAA,MAC5B,IAAA;AAAA,MACA;AAAA;AAAA,GACF;AAEJ;AAEA,IAAO,uBAAA,GAAQ","file":"chunk-YBXVUV7P.cjs","sourcesContent":["'use client'\n\n/**\n * ThemeToggle — flips between dark and light. Framework-agnostic by default so\n * Vite / Tauri / Express hosts can use it with NO Next dependency:\n *\n * • Controlled: <ThemeToggle theme={theme} onToggle={setTheme} /> (host owns theme)\n * • Uncontrolled (agnostic): <ThemeToggle onThemeChange={fn} /> (toggles the DOM\n * `.dark` class + persists to localStorage)\n * • Uncontrolled (no props): <ThemeToggle /> (console/Next —\n * falls back to the OPTIONAL @hanzogui/next-theme path;\n * if it cannot load, degrades to the agnostic DOM toggle)\n *\n * Shows the action's target icon (a sun in dark mode, a moon in light mode).\n */\nimport type { ReactNode } from 'react'\nimport { Component, Suspense, lazy, useState } from 'react'\nimport { Button } from '@hanzo/gui'\nimport { Moon, Sun } from '@hanzogui/lucide-icons-2'\n\nexport type ThemeMode = 'light' | 'dark'\n\nexport type ThemeToggleProps = {\n /** Controlled theme. Pair with `onToggle`/`onThemeChange` to fully control it. */\n theme?: ThemeMode\n /** Seed for uncontrolled mode (default: read from the DOM `.dark` class, else 'dark'). */\n defaultTheme?: ThemeMode\n /** Called with the next theme on toggle (alias of `onThemeChange`). */\n onToggle?: (next: ThemeMode) => void\n /** Called with the next theme on toggle. */\n onThemeChange?: (next: ThemeMode) => void\n /** @hanzo/gui Button size token (default \"$2\"). */\n size?: string\n /** aria-label override. */\n label?: string\n}\n\nconst STORAGE_KEY = 'theme'\n\nfunction readDomTheme(): ThemeMode | undefined {\n if (typeof document === 'undefined') return undefined\n const el = document.documentElement\n if (el.classList.contains('dark')) return 'dark'\n if (el.classList.contains('light')) return 'light'\n try {\n const ls = window.localStorage.getItem(STORAGE_KEY)\n if (ls === 'light' || ls === 'dark') return ls\n } catch {\n /* localStorage may be unavailable */\n }\n return undefined\n}\n\nfunction applyDomTheme(next: ThemeMode): void {\n if (typeof document === 'undefined') return\n const el = document.documentElement\n el.classList.toggle('dark', next === 'dark')\n el.classList.toggle('light', next === 'light')\n el.style.colorScheme = next\n try {\n window.localStorage.setItem(STORAGE_KEY, next)\n } catch {\n /* ignore */\n }\n}\n\n/**\n * The framework-agnostic toggle button. Controlled when `theme` is provided; otherwise\n * self-managed via the DOM `.dark` class. No framework dependency — safe on any host.\n */\nexport function AgnosticThemeToggle({\n theme,\n defaultTheme,\n onToggle,\n onThemeChange,\n size = '$2',\n label,\n}: ThemeToggleProps) {\n const controlled = theme !== undefined\n const [internal, setInternal] = useState<ThemeMode>(() => theme ?? defaultTheme ?? readDomTheme() ?? 'dark')\n const current: ThemeMode = controlled ? (theme as ThemeMode) : internal\n const isDark = current === 'dark'\n\n const toggle = () => {\n const next: ThemeMode = isDark ? 'light' : 'dark'\n if (!controlled) {\n setInternal(next)\n applyDomTheme(next)\n }\n onToggle?.(next)\n onThemeChange?.(next)\n }\n\n return (\n <Button\n size={size as never}\n chromeless\n icon={isDark ? <Sun size={16} /> : <Moon size={16} />}\n onPress={toggle}\n aria-label={label ?? (isDark ? 'Switch to light theme' : 'Switch to dark theme')}\n />\n )\n}\n\n// @hanzogui/next-theme is an OPTIONAL dependency — loaded only on the uncontrolled,\n// no-props path (console/Next). Lazily code-split so non-Next hosts never need it at\n// runtime; if it fails to load, the boundary below degrades to the agnostic toggle.\nconst NextThemeToggle = lazy(() => import('./ThemeToggleNext'))\n\nclass NextThemeBoundary extends Component<{ fallback: ReactNode; children: ReactNode }, { failed: boolean }> {\n state = { failed: false }\n static getDerivedStateFromError() {\n return { failed: true }\n }\n render() {\n return this.state.failed ? this.props.fallback : this.props.children\n }\n}\n\nexport function ThemeToggle(props: ThemeToggleProps) {\n const injected =\n props.theme !== undefined || props.onToggle !== undefined || props.onThemeChange !== undefined\n if (injected) return <AgnosticThemeToggle {...props} />\n\n // No props → keep the existing console/Next behaviour via the optional next-theme\n // path, degrading to the agnostic DOM toggle if it is not installed.\n const fallback = <AgnosticThemeToggle {...props} />\n return (\n <NextThemeBoundary fallback={fallback}>\n <Suspense fallback={fallback}>\n <NextThemeToggle size={props.size} label={props.label} />\n </Suspense>\n </NextThemeBoundary>\n )\n}\n","'use client'\n\n/**\n * ThemeToggleNext — the @hanzogui/next-theme binding (console / Next). This is the ONLY\n * module that imports @hanzogui/next-theme, so it stays an OPTIONAL dependency: the base\n * ThemeToggle lazy-loads it (default export) and non-Next hosts never pull it in unless\n * they import this component directly. UI is delegated to the framework-agnostic button\n * in controlled mode, so every toggle looks identical.\n */\nimport { useThemeSetting } from '@hanzogui/next-theme'\nimport { AgnosticThemeToggle, type ThemeToggleProps } from './ThemeToggle'\n\nfunction ThemeToggleNext({ size, label }: Pick<ThemeToggleProps, 'size' | 'label'>) {\n const { current, resolvedTheme, set } = useThemeSetting()\n const isDark = (resolvedTheme ?? current ?? 'dark') !== 'light'\n return (\n <AgnosticThemeToggle\n theme={isDark ? 'dark' : 'light'}\n onToggle={(next) => set(next)}\n size={size}\n label={label}\n />\n )\n}\n\nexport default ThemeToggleNext\nexport { ThemeToggleNext }\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var dashboard = require('@hanzo/dashboard');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.keys(dashboard).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return dashboard[k]; }
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=dashboard.cjs.map
|
|
15
|
+
//# sourceMappingURL=dashboard.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dashboard.cjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@hanzo/dashboard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dashboard.js","sourcesContent":[]}
|
package/dist/data.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var data = require('@hanzo/data');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.keys(data).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return data[k]; }
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=data.cjs.map
|
|
15
|
+
//# sourceMappingURL=data.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"data.cjs","sourcesContent":[]}
|
package/dist/data.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@hanzo/data';
|
package/dist/data.js
ADDED
package/dist/data.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"data.js","sourcesContent":[]}
|
package/dist/gitops.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var gitops = require('@hanzo/gitops');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.keys(gitops).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return gitops[k]; }
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=gitops.cjs.map
|
|
15
|
+
//# sourceMappingURL=gitops.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"gitops.cjs","sourcesContent":[]}
|
package/dist/gitops.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@hanzo/gitops';
|
package/dist/gitops.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"gitops.js","sourcesContent":[]}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var chunkHSPMQQVJ_cjs = require('./chunk-HSPMQQVJ.cjs');
|
|
5
|
+
var chunkYBXVUV7P_cjs = require('./chunk-YBXVUV7P.cjs');
|
|
6
|
+
var data = require('@hanzo/data');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "AppHeader", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkHSPMQQVJ_cjs.AppHeader; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "BarChart", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkHSPMQQVJ_cjs.BarChart; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "BarRows", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkHSPMQQVJ_cjs.BarRows; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "BrandMark", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkHSPMQQVJ_cjs.BrandMark; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "CHART_OTHER", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkHSPMQQVJ_cjs.CHART_OTHER; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "CHART_PALETTE", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkHSPMQQVJ_cjs.CHART_PALETTE; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "ComboBox", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkHSPMQQVJ_cjs.ComboBox; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "ContextMenu", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkHSPMQQVJ_cjs.ContextMenu; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "CustomModelMark", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkHSPMQQVJ_cjs.Boxes; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "DataTable", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkHSPMQQVJ_cjs.DataTable; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "Donut", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkHSPMQQVJ_cjs.Donut; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "DonutRing", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkHSPMQQVJ_cjs.Donut2; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "DropdownMenu", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkHSPMQQVJ_cjs.DropdownMenu; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "EmptyState", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunkHSPMQQVJ_cjs.EmptyState; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "FadeIn", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunkHSPMQQVJ_cjs.FadeIn; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "FieldRow", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunkHSPMQQVJ_cjs.FieldRow; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "FieldSelect", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunkHSPMQQVJ_cjs.FieldSelect; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "FieldSlider", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkHSPMQQVJ_cjs.FieldSlider; }
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "FieldSwitch", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () { return chunkHSPMQQVJ_cjs.FieldSwitch; }
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "FieldText", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () { return chunkHSPMQQVJ_cjs.FieldText; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "FieldTextArea", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunkHSPMQQVJ_cjs.FieldTextArea; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "FloatingMenu", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunkHSPMQQVJ_cjs.FloatingMenu; }
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "GenericLogo", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () { return chunkHSPMQQVJ_cjs.GenericLogo; }
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "HanzoMark", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return chunkHSPMQQVJ_cjs.HanzoMark; }
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "HintButton", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return chunkHSPMQQVJ_cjs.HintButton; }
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "LegendDot", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return chunkHSPMQQVJ_cjs.LegendDot; }
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "LineChart", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () { return chunkHSPMQQVJ_cjs.LineChart; }
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "MenuItemView", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () { return chunkHSPMQQVJ_cjs.MenuItemView; }
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "MenuLabelView", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () { return chunkHSPMQQVJ_cjs.MenuLabelView; }
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "MenuPanel", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () { return chunkHSPMQQVJ_cjs.MenuPanel; }
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "MenuSeparatorView", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () { return chunkHSPMQQVJ_cjs.MenuSeparatorView; }
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(exports, "MetricCard", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () { return chunkHSPMQQVJ_cjs.MetricCard; }
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "MetricSparkline", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () { return chunkHSPMQQVJ_cjs.Sparkline2; }
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(exports, "MiniBars", {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () { return chunkHSPMQQVJ_cjs.MiniBars; }
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(exports, "OrgSwitcher", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function () { return chunkHSPMQQVJ_cjs.OrgSwitcher; }
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "PageHeader", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunkHSPMQQVJ_cjs.PageHeader; }
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "Panel", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () { return chunkHSPMQQVJ_cjs.Panel; }
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "PortalTheme", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function () { return chunkHSPMQQVJ_cjs.PortalTheme; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "PrimaryButton", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkHSPMQQVJ_cjs.PrimaryButton; }
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "ProductIcon", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return chunkHSPMQQVJ_cjs.ProductIcon; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "ProviderLogo", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return chunkHSPMQQVJ_cjs.ProviderLogo; }
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "Reorder", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () { return chunkHSPMQQVJ_cjs.Reorder; }
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "SERIES", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () { return chunkHSPMQQVJ_cjs.SERIES; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "SLIDEOVER_LG", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return chunkHSPMQQVJ_cjs.LG; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "SURFACES", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunkHSPMQQVJ_cjs.SURFACES; }
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, "SelectMenu", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () { return chunkHSPMQQVJ_cjs.SelectMenu; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "SlideOver", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return chunkHSPMQQVJ_cjs.SlideOver; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "Sparkline", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return chunkHSPMQQVJ_cjs.Sparkline; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "StatusTag", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return chunkHSPMQQVJ_cjs.StatusTag; }
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "ToastProvider", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function () { return chunkHSPMQQVJ_cjs.ToastProvider; }
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "UtilBar", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () { return chunkHSPMQQVJ_cjs.UtilBar; }
|
|
213
|
+
});
|
|
214
|
+
Object.defineProperty(exports, "asColor", {
|
|
215
|
+
enumerable: true,
|
|
216
|
+
get: function () { return chunkHSPMQQVJ_cjs.asColor; }
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "colorForIndex", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () { return chunkHSPMQQVJ_cjs.colorForIndex; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "filterOptions", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return chunkHSPMQQVJ_cjs.filterOptions; }
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, "filterOrgs", {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function () { return chunkHSPMQQVJ_cjs.filterOrgs; }
|
|
229
|
+
});
|
|
230
|
+
Object.defineProperty(exports, "isKnownOption", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return chunkHSPMQQVJ_cjs.isKnownOption; }
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "orgScope", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () { return chunkHSPMQQVJ_cjs.orgScope; }
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "otherSurfaces", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function () { return chunkHSPMQQVJ_cjs.otherSurfaces; }
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(exports, "providerInitials", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function () { return chunkHSPMQQVJ_cjs.providerInitials; }
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "renderMenuItems", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () { return chunkHSPMQQVJ_cjs.renderMenuItems; }
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(exports, "rowShift", {
|
|
251
|
+
enumerable: true,
|
|
252
|
+
get: function () { return chunkHSPMQQVJ_cjs.rowShift; }
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(exports, "targetIndex", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: function () { return chunkHSPMQQVJ_cjs.targetIndex; }
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "useToast", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () { return chunkHSPMQQVJ_cjs.useToast; }
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(exports, "utilColor", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () { return chunkHSPMQQVJ_cjs.utilColor; }
|
|
265
|
+
});
|
|
266
|
+
Object.defineProperty(exports, "AgnosticThemeToggle", {
|
|
267
|
+
enumerable: true,
|
|
268
|
+
get: function () { return chunkYBXVUV7P_cjs.AgnosticThemeToggle; }
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "ThemeToggle", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () { return chunkYBXVUV7P_cjs.ThemeToggle; }
|
|
273
|
+
});
|
|
274
|
+
Object.defineProperty(exports, "ThemeToggleNext", {
|
|
275
|
+
enumerable: true,
|
|
276
|
+
get: function () { return chunkYBXVUV7P_cjs.ThemeToggleNext; }
|
|
277
|
+
});
|
|
278
|
+
Object.defineProperty(exports, "TAG_TONES", {
|
|
279
|
+
enumerable: true,
|
|
280
|
+
get: function () { return data.TAG_TONES; }
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "tagTone", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () { return data.tagTone; }
|
|
285
|
+
});
|
|
286
|
+
Object.defineProperty(exports, "tokens", {
|
|
287
|
+
enumerable: true,
|
|
288
|
+
get: function () { return data.tokens; }
|
|
289
|
+
});
|
|
290
|
+
//# sourceMappingURL=index.cjs.map
|
|
291
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
export { AppHeader, BarChart, BarRows, BrandMark, CHART_OTHER, CHART_PALETTE, ComboBox, ContextMenu, Boxes as CustomModelMark, DataTable, Donut, Donut2 as DonutRing, DropdownMenu, EmptyState, FadeIn, FieldRow, FieldSelect, FieldSlider, FieldSwitch, FieldText, FieldTextArea, FloatingMenu, GenericLogo, HanzoMark, HintButton, LegendDot, LineChart, MenuItemView, MenuLabelView, MenuPanel, MenuSeparatorView, MetricCard, Sparkline2 as MetricSparkline, MiniBars, OrgSwitcher, PageHeader, Panel, PortalTheme, PrimaryButton, ProductIcon, ProviderLogo, Reorder, SERIES, LG as SLIDEOVER_LG, SURFACES, SelectMenu, SlideOver, Sparkline, StatusTag, ToastProvider, UtilBar, asColor, colorForIndex, filterOptions, filterOrgs, isKnownOption, orgScope, otherSurfaces, providerInitials, renderMenuItems, rowShift, targetIndex, useToast, utilColor } from './chunk-GDGVXU7W.js';
|
|
3
|
+
export { AgnosticThemeToggle, ThemeToggle, ThemeToggleNext } from './chunk-42CU5GSF.js';
|
|
4
|
+
export { TAG_TONES, tagTone, tokens } from '@hanzo/data';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
package/dist/network.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var network = require('@hanzo/ui-shadcn/network');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.keys(network).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return network[k]; }
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=network.cjs.map
|
|
15
|
+
//# sourceMappingURL=network.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"network.cjs","sourcesContent":[]}
|
package/dist/network.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"network.js","sourcesContent":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var data = require('@hanzo/data');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.keys(data).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return data[k]; }
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=index.cjs.map
|
|
15
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@hanzo/data';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -40,4 +40,3 @@ export type AppHeaderProps = {
|
|
|
40
40
|
onSignOut?: () => void;
|
|
41
41
|
};
|
|
42
42
|
export declare function AppHeader({ brand, wordmark, onBrand, org, children, current, surfaces, open, user, menu, theme, onProfile, onTeam, onBilling, onSignOut, }: AppHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
//# sourceMappingURL=AppHeader.d.ts.map
|
|
@@ -34,4 +34,3 @@ export declare function EmptyState({ icon: Icon, title, description, bullets, pr
|
|
|
34
34
|
/** An optional lower-emphasis action (Docs / CLI / Learn more). */
|
|
35
35
|
secondary?: EmptyAction;
|
|
36
36
|
}): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
//# sourceMappingURL=EmptyState.d.ts.map
|