@hexclave/dashboard-ui-components 1.0.74 → 1.0.75
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/components/button.d.ts +2 -2
- package/dist/components/chart-legend.d.ts +1 -1
- package/dist/dashboard-ui-components.global.js +43 -43
- package/dist/dashboard-ui-components.global.js.map +4 -4
- package/dist/esm/components/button.d.ts +2 -2
- package/dist/esm/components/chart-legend.d.ts +1 -1
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
4
4
|
//#region src/components/button.d.ts
|
|
5
5
|
declare const designButtonVariants: (props?: ({
|
|
6
6
|
variant?: "plain" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
type DesignOriginalButtonProps = {
|
|
10
10
|
asChild?: boolean;
|
|
@@ -36,7 +36,7 @@ declare const DesignButton: React.FC<{
|
|
|
36
36
|
asChild?: boolean;
|
|
37
37
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
38
38
|
variant?: "plain" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
39
|
-
size?: "
|
|
39
|
+
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
40
40
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
41
41
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
42
42
|
}>;
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import * as RechartsPrimitive from "recharts";
|
|
3
3
|
|
|
4
4
|
//#region src/components/chart-legend.d.ts
|
|
5
|
-
declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "
|
|
5
|
+
declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
6
6
|
hideIcon?: boolean;
|
|
7
7
|
nameKey?: string;
|
|
8
8
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -4665,49 +4665,6 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
4665
4665
|
return Object.assign(Result.error(new RetryError(errors)), { attempts: totalAttempts });
|
|
4666
4666
|
}
|
|
4667
4667
|
|
|
4668
|
-
// ../shared/dist/esm/utils/bytes.js
|
|
4669
|
-
function decodeBase64(input) {
|
|
4670
|
-
return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
|
|
4671
|
-
}
|
|
4672
|
-
function isBase64(input) {
|
|
4673
|
-
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
|
|
4674
|
-
}
|
|
4675
|
-
|
|
4676
|
-
// ../shared/dist/esm/utils/urls.js
|
|
4677
|
-
function createUrlIfValid(...args) {
|
|
4678
|
-
try {
|
|
4679
|
-
return new URL(...args);
|
|
4680
|
-
} catch (e40) {
|
|
4681
|
-
return null;
|
|
4682
|
-
}
|
|
4683
|
-
}
|
|
4684
|
-
function isValidUrl(url) {
|
|
4685
|
-
return !!createUrlIfValid(url);
|
|
4686
|
-
}
|
|
4687
|
-
function isValidHostname(hostname) {
|
|
4688
|
-
if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
|
|
4689
|
-
const url = createUrlIfValid(`https://${hostname}`);
|
|
4690
|
-
if (!url) return false;
|
|
4691
|
-
return url.hostname === hostname;
|
|
4692
|
-
}
|
|
4693
|
-
function isValidHostnameWithWildcards(hostname) {
|
|
4694
|
-
if (!hostname) return false;
|
|
4695
|
-
if (!hostname.includes("*")) return isValidHostname(hostname);
|
|
4696
|
-
if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
|
|
4697
|
-
if (hostname.includes("..")) return false;
|
|
4698
|
-
const testHostname = hostname.replace(/\*+/g, "wildcard");
|
|
4699
|
-
if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
|
|
4700
|
-
const segments = hostname.split(/\*+/);
|
|
4701
|
-
for (let i = 0; i < segments.length; i++) {
|
|
4702
|
-
const segment = segments[i];
|
|
4703
|
-
if (segment === "") continue;
|
|
4704
|
-
if (i === 0 && segment.startsWith(".")) return false;
|
|
4705
|
-
if (i === segments.length - 1 && segment.endsWith(".")) return false;
|
|
4706
|
-
if (segment.includes("..")) return false;
|
|
4707
|
-
}
|
|
4708
|
-
return true;
|
|
4709
|
-
}
|
|
4710
|
-
|
|
4711
4668
|
// ../shared/dist/esm/known-errors.js
|
|
4712
4669
|
var KnownError = class extends StatusError {
|
|
4713
4670
|
constructor(statusCode, humanReadableMessage, details) {
|
|
@@ -5464,6 +5421,49 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
5464
5421
|
knownErrorCodes.add(KnownError2.errorCode);
|
|
5465
5422
|
}
|
|
5466
5423
|
|
|
5424
|
+
// ../shared/dist/esm/utils/bytes.js
|
|
5425
|
+
function decodeBase64(input) {
|
|
5426
|
+
return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
|
|
5427
|
+
}
|
|
5428
|
+
function isBase64(input) {
|
|
5429
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
|
|
5430
|
+
}
|
|
5431
|
+
|
|
5432
|
+
// ../shared/dist/esm/utils/urls.js
|
|
5433
|
+
function createUrlIfValid(...args) {
|
|
5434
|
+
try {
|
|
5435
|
+
return new URL(...args);
|
|
5436
|
+
} catch (e40) {
|
|
5437
|
+
return null;
|
|
5438
|
+
}
|
|
5439
|
+
}
|
|
5440
|
+
function isValidUrl(url) {
|
|
5441
|
+
return !!createUrlIfValid(url);
|
|
5442
|
+
}
|
|
5443
|
+
function isValidHostname(hostname) {
|
|
5444
|
+
if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
|
|
5445
|
+
const url = createUrlIfValid(`https://${hostname}`);
|
|
5446
|
+
if (!url) return false;
|
|
5447
|
+
return url.hostname === hostname;
|
|
5448
|
+
}
|
|
5449
|
+
function isValidHostnameWithWildcards(hostname) {
|
|
5450
|
+
if (!hostname) return false;
|
|
5451
|
+
if (!hostname.includes("*")) return isValidHostname(hostname);
|
|
5452
|
+
if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
|
|
5453
|
+
if (hostname.includes("..")) return false;
|
|
5454
|
+
const testHostname = hostname.replace(/\*+/g, "wildcard");
|
|
5455
|
+
if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
|
|
5456
|
+
const segments = hostname.split(/\*+/);
|
|
5457
|
+
for (let i = 0; i < segments.length; i++) {
|
|
5458
|
+
const segment = segments[i];
|
|
5459
|
+
if (segment === "") continue;
|
|
5460
|
+
if (i === 0 && segment.startsWith(".")) return false;
|
|
5461
|
+
if (i === segments.length - 1 && segment.endsWith(".")) return false;
|
|
5462
|
+
if (segment.includes("..")) return false;
|
|
5463
|
+
}
|
|
5464
|
+
return true;
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
5467
|
// ../../node_modules/.pnpm/yup@1.7.1/node_modules/yup/index.esm.js
|
|
5468
5468
|
var import_property_expr = __toESM(require_property_expr());
|
|
5469
5469
|
var import_tiny_case = __toESM(require_tiny_case());
|