highsoft-ui 1.0.47 → 1.0.49

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.
@@ -1,14 +1,13 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
- import { z as h } from "../../index-DAWHN3cH.js";
3
- import { useMounted as d } from "../../utils.js";
4
- function n({
5
- title: s = "Highcharts",
6
- light: l,
7
- showText: o = !0,
8
- withLink: e = !1,
9
- ...f
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import { u as h } from "../../utils-CzQFvGG2.js";
3
+ function d({
4
+ title: o = "Highcharts",
5
+ light: r,
6
+ showText: s = !0,
7
+ withLink: f = !1,
8
+ ...e
10
9
  }) {
11
- const i = l ? "#18171c" : "#f7f7f8", r = /* @__PURE__ */ c(
10
+ const i = r ? "#18171c" : "#f7f7f8", l = /* @__PURE__ */ c(
12
11
  "svg",
13
12
  {
14
13
  version: "1.1",
@@ -19,11 +18,11 @@ function n({
19
18
  xmlnsXlink: "http://www.w3.org/1999/xlink",
20
19
  x: "0px",
21
20
  y: "0px",
22
- viewBox: o ? "10 10 384 65" : "10 10 69 65",
21
+ viewBox: s ? "10 10 384 65" : "10 10 69 65",
23
22
  xmlSpace: "preserve",
24
- ...f,
23
+ ...e,
25
24
  children: [
26
- /* @__PURE__ */ t("title", { id: "logo-highcharts-title", children: s }),
25
+ /* @__PURE__ */ t("title", { id: "logo-highcharts-title", children: o }),
27
26
  /* @__PURE__ */ c("g", { id: "symbol", transform: "translate(10, 10) scale(1)", children: [
28
27
  /* @__PURE__ */ t(
29
28
  "polygon",
@@ -110,7 +109,7 @@ function n({
110
109
  }
111
110
  )
112
111
  ] }),
113
- o && /* @__PURE__ */ c(
112
+ s && /* @__PURE__ */ c(
114
113
  "g",
115
114
  {
116
115
  id: "text-highcharts",
@@ -244,13 +243,10 @@ function n({
244
243
  ]
245
244
  }
246
245
  );
247
- return e ? /* @__PURE__ */ t("a", { href: "https://www.highcharts.com", children: r }) : r;
248
- }
249
- function a(s) {
250
- const { resolvedTheme: l } = h(), o = d();
251
- return /* @__PURE__ */ t(n, { light: !o || l === "light", ...s });
246
+ return f ? /* @__PURE__ */ t("a", { href: "https://www.highcharts.com", children: l }) : l;
252
247
  }
248
+ const k = (o) => /* @__PURE__ */ t(d, { light: h() === "light", ...o });
253
249
  export {
254
- n as Logo,
255
- a as ThemedLogo
250
+ d as Logo,
251
+ k as ThemedLogo
256
252
  };
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type NewTagVariant = 'neutral' | 'success' | 'attention' | 'brand' | 'danger';
3
+ export interface NewTagProps extends HTMLAttributes<HTMLSpanElement> {
4
+ variant?: NewTagVariant;
5
+ icon?: boolean;
6
+ border?: boolean;
7
+ }
8
+ export declare function NewTag({ variant, icon, border, className }: NewTagProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import "react";
3
+ import { _ as a } from "../../extends-hS2Bh-Yp.js";
4
+ import { c as _ } from "../../clsx-OuTLNxxd.js";
5
+ var i = function(n) {
6
+ return /* @__PURE__ */ r("svg", a({
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ width: 24,
9
+ height: 24,
10
+ fill: "none",
11
+ viewBox: "0 0 24 24"
12
+ }, n, {
13
+ children: /* @__PURE__ */ r("path", {
14
+ stroke: "currentColor",
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round",
17
+ strokeWidth: 2,
18
+ d: "M4.5 22v-5m0-10V2M2 4.5h5m-5 15h5M13 3l-1.7342 4.5089c-.282.7332-.423 1.0998-.6423 1.4082a3 3 0 0 1-.7064.7064c-.3084.2193-.675.3603-1.4082.6423L4 12l4.5089 1.7342c.7332.282 1.0998.423 1.4082.6423.2733.1943.5121.4331.7064.7064.2193.3084.3603.675.6423 1.4082L13 21l1.7342-4.5089c.282-.7332.423-1.0998.6423-1.4082a3 3 0 0 1 .7064-.7064c.3084-.2193.675-.3603 1.4082-.6423L22 12l-4.5089-1.7342c-.7332-.282-1.0998-.423-1.4082-.6423a3 3 0 0 1-.7064-.7064c-.2193-.3084-.3603-.675-.6423-1.4082z"
19
+ })
20
+ }));
21
+ };
22
+ const d = "_tag_pnk41_270", p = "_icon_pnk41_287", l = "_border_pnk41_293", u = "_neutral_pnk41_303", g = "_success_pnk41_309", k = "_attention_pnk41_315", m = "_brand_pnk41_321", h = "_danger_pnk41_327", t = {
23
+ tag: d,
24
+ icon: p,
25
+ border: l,
26
+ neutral: u,
27
+ success: g,
28
+ attention: k,
29
+ brand: m,
30
+ danger: h
31
+ };
32
+ function v({
33
+ variant: s = "success",
34
+ icon: n = !0,
35
+ border: o,
36
+ className: e
37
+ }) {
38
+ return /* @__PURE__ */ c(
39
+ "span",
40
+ {
41
+ className: _(e, t.tag, t[s], {
42
+ [t.icon]: n,
43
+ [t.border]: o
44
+ }),
45
+ children: [
46
+ n && /* @__PURE__ */ r(i, {}),
47
+ "New"
48
+ ]
49
+ }
50
+ );
51
+ }
52
+ export {
53
+ v as NewTag
54
+ };
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { N as f } from "../../index-CRjV8IBy.js";
3
+ import { N as f } from "../../index-CUjEIxqY.js";
4
4
  import "../../clsx-OuTLNxxd.js";
5
- import "../../index-DKE1ODpv.js";
5
+ import "../Button/index.js";
6
6
  import "../Container/index.js";
7
7
  export {
8
8
  f as Notification