@hexclave/dashboard-ui-components 1.0.89 → 1.0.90

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.
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
3
3
 
4
4
  //#region src/components/button.d.ts
5
5
  declare const designButtonVariants: (props?: ({
6
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "plain" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  type DesignOriginalButtonProps = {
@@ -35,7 +35,7 @@ declare const DesignButton: React.FC<{
35
35
  } & {
36
36
  asChild?: boolean;
37
37
  } & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
38
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
38
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "plain" | null | undefined;
39
39
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
40
40
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
41
41
  ref?: React.Ref<HTMLButtonElement> | undefined;
@@ -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, "verticalAlign" | "payload"> & {
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>>;
@@ -4676,49 +4676,6 @@ ${currentIndent}`);
4676
4676
  return Object.assign(Result.error(new RetryError(errors)), { attempts: totalAttempts });
4677
4677
  }
4678
4678
 
4679
- // ../shared/dist/esm/utils/bytes.js
4680
- function decodeBase64(input) {
4681
- return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
4682
- }
4683
- function isBase64(input) {
4684
- return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
4685
- }
4686
-
4687
- // ../shared/dist/esm/utils/urls.js
4688
- function createUrlIfValid(...args) {
4689
- try {
4690
- return new URL(...args);
4691
- } catch (e40) {
4692
- return null;
4693
- }
4694
- }
4695
- function isValidUrl(url) {
4696
- return !!createUrlIfValid(url);
4697
- }
4698
- function isValidHostname(hostname) {
4699
- if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
4700
- const url = createUrlIfValid(`https://${hostname}`);
4701
- if (!url) return false;
4702
- return url.hostname === hostname;
4703
- }
4704
- function isValidHostnameWithWildcards(hostname) {
4705
- if (!hostname) return false;
4706
- if (!hostname.includes("*")) return isValidHostname(hostname);
4707
- if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
4708
- if (hostname.includes("..")) return false;
4709
- const testHostname = hostname.replace(/\*+/g, "wildcard");
4710
- if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
4711
- const segments = hostname.split(/\*+/);
4712
- for (let i = 0; i < segments.length; i++) {
4713
- const segment = segments[i];
4714
- if (segment === "") continue;
4715
- if (i === 0 && segment.startsWith(".")) return false;
4716
- if (i === segments.length - 1 && segment.endsWith(".")) return false;
4717
- if (segment.includes("..")) return false;
4718
- }
4719
- return true;
4720
- }
4721
-
4722
4679
  // ../shared/dist/esm/known-errors.js
4723
4680
  var KnownError = class extends StatusError {
4724
4681
  constructor(statusCode, humanReadableMessage, details) {
@@ -5475,6 +5432,49 @@ ${currentIndent}`);
5475
5432
  knownErrorCodes.add(KnownError2.errorCode);
5476
5433
  }
5477
5434
 
5435
+ // ../shared/dist/esm/utils/bytes.js
5436
+ function decodeBase64(input) {
5437
+ return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
5438
+ }
5439
+ function isBase64(input) {
5440
+ return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
5441
+ }
5442
+
5443
+ // ../shared/dist/esm/utils/urls.js
5444
+ function createUrlIfValid(...args) {
5445
+ try {
5446
+ return new URL(...args);
5447
+ } catch (e40) {
5448
+ return null;
5449
+ }
5450
+ }
5451
+ function isValidUrl(url) {
5452
+ return !!createUrlIfValid(url);
5453
+ }
5454
+ function isValidHostname(hostname) {
5455
+ if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
5456
+ const url = createUrlIfValid(`https://${hostname}`);
5457
+ if (!url) return false;
5458
+ return url.hostname === hostname;
5459
+ }
5460
+ function isValidHostnameWithWildcards(hostname) {
5461
+ if (!hostname) return false;
5462
+ if (!hostname.includes("*")) return isValidHostname(hostname);
5463
+ if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
5464
+ if (hostname.includes("..")) return false;
5465
+ const testHostname = hostname.replace(/\*+/g, "wildcard");
5466
+ if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
5467
+ const segments = hostname.split(/\*+/);
5468
+ for (let i = 0; i < segments.length; i++) {
5469
+ const segment = segments[i];
5470
+ if (segment === "") continue;
5471
+ if (i === 0 && segment.startsWith(".")) return false;
5472
+ if (i === segments.length - 1 && segment.endsWith(".")) return false;
5473
+ if (segment.includes("..")) return false;
5474
+ }
5475
+ return true;
5476
+ }
5477
+
5478
5478
  // ../../node_modules/.pnpm/yup@1.7.1/node_modules/yup/index.esm.js
5479
5479
  var import_property_expr = __toESM(require_property_expr());
5480
5480
  var import_tiny_case = __toESM(require_tiny_case());