highsoft-ui 1.0.53 → 1.0.54

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,19 +1,19 @@
1
1
  import { jsx as n, jsxs as l } from "react/jsx-runtime";
2
- import { useRef as h, useState as b, useLayoutEffect as x } from "react";
3
- import { c as y } from "../../clsx-OuTLNxxd.js";
4
- import j from "../icons/Bubble.js";
5
- import g from "../icons/Plane.js";
6
- const C = "_inputContainer_4jy94_270", v = "_bottomFade_4jy94_273", S = "_inputWrap_4jy94_276", K = "_textarea_4jy94_279", P = "_button_4jy94_345", N = "_primary_4jy94_380", W = "_secondary_4jy94_389", k = "_disclaimer_4jy94_395", r = {
7
- inputContainer: C,
8
- bottomFade: v,
9
- inputWrap: S,
10
- textarea: K,
11
- button: P,
12
- primary: N,
13
- secondary: W,
14
- disclaimer: k
2
+ import { useRef as y, useState as g, useLayoutEffect as b } from "react";
3
+ import { c as h } from "../../clsx-OuTLNxxd.js";
4
+ import x from "../icons/Bubble.js";
5
+ import C from "../icons/Plane.js";
6
+ const v = "_inputContainer_h398g_300", S = "_bottomFade_h398g_303", K = "_inputWrap_h398g_306", P = "_textarea_h398g_309", N = "_button_h398g_375", W = "_primary_h398g_410", k = "_secondary_h398g_419", D = "_disclaimer_h398g_425", r = {
7
+ inputContainer: v,
8
+ bottomFade: S,
9
+ inputWrap: K,
10
+ textarea: P,
11
+ button: N,
12
+ primary: W,
13
+ secondary: k,
14
+ disclaimer: D
15
15
  };
16
- function D({
16
+ function F({
17
17
  variant: a = "primary",
18
18
  className: s,
19
19
  children: e,
@@ -22,7 +22,7 @@ function D({
22
22
  return /* @__PURE__ */ n(
23
23
  "button",
24
24
  {
25
- className: y(r.button, r[a], s),
25
+ className: h(r.button, r[a], s),
26
26
  ...o,
27
27
  children: /* @__PURE__ */ n("span", { children: e })
28
28
  }
@@ -32,8 +32,8 @@ function I({
32
32
  autoFocus: a,
33
33
  onSubmit: s
34
34
  }) {
35
- const e = h(null), [o, i] = b(""), c = o.trim(), u = !!c;
36
- x(() => {
35
+ const e = y(null), [o, i] = g(""), c = o.trim(), u = !!c;
36
+ b(() => {
37
37
  a && e.current?.focus();
38
38
  }, [a]);
39
39
  const p = () => {
@@ -51,11 +51,11 @@ function I({
51
51
  return /* @__PURE__ */ l(
52
52
  "form",
53
53
  {
54
- className: y(r.inputWrap, { [r.active]: u }),
54
+ className: h(r.inputWrap, { [r.active]: u }),
55
55
  onKeyDown: d,
56
56
  onSubmit: m,
57
57
  children: [
58
- /* @__PURE__ */ n(j, {}),
58
+ /* @__PURE__ */ n(x, {}),
59
59
  /* @__PURE__ */ n(
60
60
  "textarea",
61
61
  {
@@ -66,12 +66,12 @@ function I({
66
66
  }
67
67
  ),
68
68
  /* @__PURE__ */ l(
69
- D,
69
+ F,
70
70
  {
71
71
  variant: u ? "primary" : "secondary",
72
72
  onClick: f,
73
73
  children: [
74
- /* @__PURE__ */ n(g, {}),
74
+ /* @__PURE__ */ n(C, {}),
75
75
  /* @__PURE__ */ n("span", { className: "sr-only", children: "Send message" })
76
76
  ]
77
77
  }
@@ -82,5 +82,5 @@ function I({
82
82
  }
83
83
  export {
84
84
  I as GPTInput,
85
- D as default
85
+ F as default
86
86
  };
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as o, Fragment as V } from "react/jsx-runtime";
2
2
  import { useState as S, useEffect as q } from "react";
3
3
  import { a as M, J as z } from "../../utils-CzQFvGG2.js";
4
- import { _ as m } from "../../extends-hS2Bh-Yp.js";
5
- import { N as J, X as A } from "../../index-CUjEIxqY.js";
6
- import { c as v } from "../../clsx-OuTLNxxd.js";
4
+ import { _ as d } from "../../extends-hS2Bh-Yp.js";
5
+ import { N as J, X as A } from "../../index-DvBbx2s8.js";
6
+ import { c as p } from "../../clsx-OuTLNxxd.js";
7
7
  import { Button as l } from "../Button/index.js";
8
8
  import { Container as I } from "../Container/index.js";
9
9
  import { ThemedLogo as L } from "../Logo/index.js";
10
10
  import { PrefPanel as T } from "../PrefPanel/index.js";
11
11
  var G = function(n) {
12
- return /* @__PURE__ */ e("svg", m({
12
+ return /* @__PURE__ */ e("svg", d({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: 24,
15
15
  height: 24,
@@ -25,7 +25,7 @@ var G = function(n) {
25
25
  })
26
26
  }));
27
27
  }, F = function(n) {
28
- return /* @__PURE__ */ e("svg", m({
28
+ return /* @__PURE__ */ e("svg", d({
29
29
  xmlns: "http://www.w3.org/2000/svg",
30
30
  width: 24,
31
31
  height: 24,
@@ -41,7 +41,7 @@ var G = function(n) {
41
41
  })
42
42
  }));
43
43
  }, Q = function(n) {
44
- return /* @__PURE__ */ e("svg", m({
44
+ return /* @__PURE__ */ e("svg", d({
45
45
  xmlns: "http://www.w3.org/2000/svg",
46
46
  width: 24,
47
47
  height: 24,
@@ -57,7 +57,7 @@ var G = function(n) {
57
57
  })
58
58
  }));
59
59
  }, R = function(n) {
60
- return /* @__PURE__ */ e("svg", m({
60
+ return /* @__PURE__ */ e("svg", d({
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  width: 24,
63
63
  height: 24,
@@ -73,7 +73,7 @@ var G = function(n) {
73
73
  })
74
74
  }));
75
75
  }, X = function(n) {
76
- return /* @__PURE__ */ e("svg", m({
76
+ return /* @__PURE__ */ e("svg", d({
77
77
  xmlns: "http://www.w3.org/2000/svg",
78
78
  width: 24,
79
79
  height: 24,
@@ -89,7 +89,7 @@ var G = function(n) {
89
89
  })
90
90
  }));
91
91
  }, $ = function(n) {
92
- return /* @__PURE__ */ e("svg", m({
92
+ return /* @__PURE__ */ e("svg", d({
93
93
  xmlns: "http://www.w3.org/2000/svg",
94
94
  width: 24,
95
95
  height: 24,
@@ -105,7 +105,7 @@ var G = function(n) {
105
105
  })
106
106
  }));
107
107
  }, D = function(n) {
108
- return /* @__PURE__ */ e("svg", m({
108
+ return /* @__PURE__ */ e("svg", d({
109
109
  xmlns: "http://www.w3.org/2000/svg",
110
110
  width: 24,
111
111
  height: 24,
@@ -121,7 +121,7 @@ var G = function(n) {
121
121
  })
122
122
  }));
123
123
  }, B = function(n) {
124
- return /* @__PURE__ */ e("svg", m({
124
+ return /* @__PURE__ */ e("svg", d({
125
125
  xmlns: "http://www.w3.org/2000/svg",
126
126
  width: 24,
127
127
  height: 24,
@@ -137,7 +137,7 @@ var G = function(n) {
137
137
  })
138
138
  }));
139
139
  }, H = function(n) {
140
- return /* @__PURE__ */ e("svg", m({
140
+ return /* @__PURE__ */ e("svg", d({
141
141
  xmlns: "http://www.w3.org/2000/svg",
142
142
  width: 24,
143
143
  height: 24,
@@ -153,7 +153,7 @@ var G = function(n) {
153
153
  })
154
154
  }));
155
155
  }, W = function(n) {
156
- return /* @__PURE__ */ e("svg", m({
156
+ return /* @__PURE__ */ e("svg", d({
157
157
  xmlns: "http://www.w3.org/2000/svg",
158
158
  width: 24,
159
159
  height: 24,
@@ -169,7 +169,7 @@ var G = function(n) {
169
169
  })
170
170
  }));
171
171
  }, j = function(n) {
172
- return /* @__PURE__ */ e("svg", m({
172
+ return /* @__PURE__ */ e("svg", d({
173
173
  xmlns: "http://www.w3.org/2000/svg",
174
174
  width: 24,
175
175
  height: 24,
@@ -185,7 +185,7 @@ var G = function(n) {
185
185
  })
186
186
  }));
187
187
  };
188
- const E = "_header_1mm0v_270", K = "_outer_1mm0v_281", Y = "_main_1mm0v_290", Z = "_container_1mm0v_294", e1 = "_links_1mm0v_300", t1 = "_buttons_1mm0v_301", n1 = "_menu_1mm0v_309", r1 = "_logo_1mm0v_314", o1 = "_subContainer_1mm0v_326", s1 = "_selected_1mm0v_354", i1 = "_icons_1mm0v_357", c1 = "_subTag_1mm0v_377", a1 = "_selectedIcon_1mm0v_390", l1 = "_selectableIcon_1mm0v_394", h1 = "_icon_1mm0v_357", m1 = "_mobileOverlay_1mm0v_408", d1 = "_show_1mm0v_1", u1 = "_open_1mm0v_420", w1 = "_mobile_1mm0v_408", p1 = "_slideUp_1mm0v_1", v1 = "_sub_1mm0v_326", g1 = "_gpt_1mm0v_484", t = {
188
+ const E = "_header_1vg4i_300", K = "_outer_1vg4i_311", Y = "_main_1vg4i_320", Z = "_container_1vg4i_324", e1 = "_links_1vg4i_330", t1 = "_buttons_1vg4i_331", n1 = "_menu_1vg4i_339", r1 = "_logo_1vg4i_344", o1 = "_subContainer_1vg4i_356", s1 = "_selected_1vg4i_384", i1 = "_icons_1vg4i_387", c1 = "_subTag_1vg4i_407", a1 = "_selectedIcon_1vg4i_420", l1 = "_selectableIcon_1vg4i_424", h1 = "_icon_1vg4i_387", d1 = "_mobileOverlay_1vg4i_438", u1 = "_show_1vg4i_1", m1 = "_open_1vg4i_450", g1 = "_mobile_1vg4i_438", w1 = "_slideUp_1vg4i_1", p1 = "_sub_1vg4i_356", v1 = "_gpt_1vg4i_514", t = {
189
189
  header: E,
190
190
  outer: K,
191
191
  main: Y,
@@ -198,18 +198,18 @@ const E = "_header_1mm0v_270", K = "_outer_1mm0v_281", Y = "_main_1mm0v_290", Z
198
198
  selected: s1,
199
199
  icons: i1,
200
200
  subTag: c1,
201
- "subTag-success": "_subTag-success_1mm0v_382",
202
- "subTag-brand": "_subTag-brand_1mm0v_386",
201
+ "subTag-success": "_subTag-success_1vg4i_412",
202
+ "subTag-brand": "_subTag-brand_1vg4i_416",
203
203
  selectedIcon: a1,
204
204
  selectableIcon: l1,
205
205
  icon: h1,
206
- mobileOverlay: m1,
207
- show: d1,
208
- open: u1,
209
- mobile: w1,
210
- slideUp: p1,
211
- sub: v1,
212
- gpt: g1
206
+ mobileOverlay: d1,
207
+ show: u1,
208
+ open: m1,
209
+ mobile: g1,
210
+ slideUp: w1,
211
+ sub: p1,
212
+ gpt: v1
213
213
  }, y = [
214
214
  {
215
215
  title: "Products",
@@ -248,17 +248,17 @@ function h(r, n) {
248
248
  function f1({
249
249
  items: r,
250
250
  link: n = "a",
251
- host: w = "https://www.highcharts.com",
251
+ host: g = "https://www.highcharts.com",
252
252
  pathname: i = typeof window < "u" ? window.location.pathname : ""
253
253
  }) {
254
- return /* @__PURE__ */ e("div", { className: v(t.sub, t.outer), children: /* @__PURE__ */ e(I, { className: t.subContainer, as: "ul", children: r.map(
255
- ({ title: c, url: f, icon: _, selectedIcon: k, tag: C, tagVariant: u = "success" }, x) => {
256
- const g = typeof window < "u" && window.location.origin || "http://example.com", p = new URL(f, g), b = p.origin === g && p.pathname === i;
254
+ return /* @__PURE__ */ e("div", { className: p(t.sub, t.outer), children: /* @__PURE__ */ e(I, { className: t.subContainer, as: "ul", children: r.map(
255
+ ({ title: c, url: f, icon: _, selectedIcon: k, tag: C, tagVariant: m = "success" }, x) => {
256
+ const v = typeof window < "u" && window.location.origin || "http://example.com", w = new URL(f, v), b = w.origin === v && w.pathname === i;
257
257
  return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
258
258
  n,
259
259
  {
260
- href: h(f, w),
261
- className: v({
260
+ href: h(f, g),
261
+ className: p({
262
262
  [t.selectableIcon]: k,
263
263
  [t.selected]: b
264
264
  }),
@@ -272,9 +272,9 @@ function f1({
272
272
  C && /* @__PURE__ */ e(
273
273
  "span",
274
274
  {
275
- className: v(
275
+ className: p(
276
276
  t.subTag,
277
- t[`subTag-${u}`]
277
+ t[`subTag-${m}`]
278
278
  ),
279
279
  children: C
280
280
  }
@@ -289,34 +289,34 @@ function f1({
289
289
  function B1({
290
290
  subItems: r,
291
291
  children: n,
292
- notifications: w = [],
292
+ notifications: g = [],
293
293
  // TODO: Fetch these from the internets
294
294
  link: i = "a",
295
295
  host: c = "https://www.highcharts.com",
296
296
  pathname: f = typeof window < "u" ? window.location.pathname : ""
297
297
  }) {
298
- const _ = M("(max-width: 374px)"), k = M("(max-width: 849px)"), C = M("(min-width: 850px) and (max-width: 999px)"), [u, x] = S(!1), [g, p] = S([]);
298
+ const _ = M("(max-width: 374px)"), k = M("(max-width: 849px)"), C = M("(min-width: 850px) and (max-width: 999px)"), [m, x] = S(!1), [v, w] = S([]);
299
299
  q(() => {
300
- if (w.length) {
300
+ if (g.length) {
301
301
  const a = localStorage.getItem("notifications");
302
302
  if (a) {
303
- const d = JSON.parse(a);
304
- p(
305
- w.filter(
306
- (s) => !s.id || !d.closed.includes(s.id)
303
+ const u = JSON.parse(a);
304
+ w(
305
+ g.filter(
306
+ (s) => !s.id || !u.closed.includes(s.id)
307
307
  )
308
308
  );
309
309
  } else
310
- p(w);
310
+ w(g);
311
311
  }
312
- }, [w]);
312
+ }, [g]);
313
313
  const b = () => {
314
- x(!u);
314
+ x(!m);
315
315
  }, O = (a) => {
316
- p(g.filter((s) => !s.id || s.id !== a));
317
- const d = localStorage.getItem("notifications");
318
- if (d) {
319
- const s = JSON.parse(d);
316
+ w(v.filter((s) => !s.id || s.id !== a));
317
+ const u = localStorage.getItem("notifications");
318
+ if (u) {
319
+ const s = JSON.parse(u);
320
320
  s.closed.includes(a) || (s.closed.push(a), localStorage.setItem("notifications", JSON.stringify(s)));
321
321
  } else
322
322
  localStorage.setItem(
@@ -327,20 +327,20 @@ function B1({
327
327
  );
328
328
  };
329
329
  return /* @__PURE__ */ e(z, { children: /* @__PURE__ */ o("header", { className: t.header, children: [
330
- g?.map(
331
- ({ id: a, title: d, description: s, variant: N, closable: P }, U) => /* @__PURE__ */ e(
330
+ v?.map(
331
+ ({ id: a, title: u, description: s, variant: N, closable: P }, U) => /* @__PURE__ */ e(
332
332
  J,
333
333
  {
334
334
  description: s,
335
335
  variant: N,
336
336
  closable: P,
337
337
  onClose: () => O(a),
338
- children: d
338
+ children: u
339
339
  },
340
340
  U
341
341
  )
342
342
  ),
343
- /* @__PURE__ */ e("div", { className: v(t.main, t.outer), children: /* @__PURE__ */ o(I, { as: "nav", className: t.container, children: [
343
+ /* @__PURE__ */ e("div", { className: p(t.main, t.outer), children: /* @__PURE__ */ o(I, { as: "nav", className: t.container, children: [
344
344
  /* @__PURE__ */ e(
345
345
  i,
346
346
  {
@@ -349,13 +349,13 @@ function B1({
349
349
  children: /* @__PURE__ */ e(L, { showText: !C && !_ })
350
350
  }
351
351
  ),
352
- /* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: d }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
352
+ /* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: u }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
353
353
  l,
354
354
  {
355
355
  variant: "plain",
356
356
  size: 300,
357
357
  as: i,
358
- href: h(d, c),
358
+ href: h(u, c),
359
359
  children: a
360
360
  }
361
361
  ) }, s)) }),
@@ -405,12 +405,12 @@ function B1({
405
405
  /* @__PURE__ */ o(
406
406
  l,
407
407
  {
408
- variant: u ? "white" : "transparent",
408
+ variant: m ? "white" : "transparent",
409
409
  className: t.menu,
410
410
  onClick: b,
411
411
  children: [
412
- u ? "Close" : "Menu",
413
- u ? /* @__PURE__ */ e(A, {}) : /* @__PURE__ */ e(X, {})
412
+ m ? "Close" : "Menu",
413
+ m ? /* @__PURE__ */ e(A, {}) : /* @__PURE__ */ e(X, {})
414
414
  ]
415
415
  }
416
416
  )
@@ -430,15 +430,15 @@ function B1({
430
430
  /* @__PURE__ */ e(
431
431
  "div",
432
432
  {
433
- className: v(t.mobileOverlay, { [t.open]: u }),
433
+ className: p(t.mobileOverlay, { [t.open]: m }),
434
434
  onClick: b
435
435
  }
436
436
  ),
437
437
  /* @__PURE__ */ o(
438
438
  "nav",
439
439
  {
440
- className: v(t.mobile, {
441
- [t.open]: u
440
+ className: p(t.mobile, {
441
+ [t.open]: m
442
442
  }),
443
443
  children: [
444
444
  /* @__PURE__ */ o("div", { className: t.container, children: [
@@ -504,14 +504,14 @@ function B1({
504
504
  }
505
505
  )
506
506
  ] }),
507
- /* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: d, icon: s }, N) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
507
+ /* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: u, icon: s }, N) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
508
508
  l,
509
509
  {
510
510
  variant: "plain",
511
511
  size: 500,
512
512
  fullWidth: !0,
513
513
  as: i,
514
- href: h(d, c),
514
+ href: h(u, c),
515
515
  children: [
516
516
  s,
517
517
  a
@@ -1,16 +1,16 @@
1
- import { jsx as n, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { _ as a } from "../../extends-hS2Bh-Yp.js";
4
4
  import { c as _ } from "../../clsx-OuTLNxxd.js";
5
- var i = function(s) {
6
- return /* @__PURE__ */ n("svg", a({
5
+ var i = function(t) {
6
+ return /* @__PURE__ */ r("svg", a({
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
8
  width: 24,
9
9
  height: 24,
10
10
  fill: "none",
11
11
  viewBox: "0 0 24 24"
12
- }, s, {
13
- children: /* @__PURE__ */ n("path", {
12
+ }, t, {
13
+ children: /* @__PURE__ */ r("path", {
14
14
  stroke: "currentColor",
15
15
  strokeLinecap: "round",
16
16
  strokeLinejoin: "round",
@@ -19,31 +19,31 @@ var i = function(s) {
19
19
  })
20
20
  }));
21
21
  };
22
- const m = "_tag_1wvsm_270", d = "_icon_1wvsm_287", l = "_border_1wvsm_293", w = "_neutral_1wvsm_303", u = "_success_1wvsm_309", v = "_attention_1wvsm_315", g = "_brand_1wvsm_321", h = "_danger_1wvsm_327", t = {
23
- tag: m,
24
- icon: d,
25
- border: l,
26
- neutral: w,
27
- success: u,
28
- attention: v,
29
- brand: g,
30
- danger: h
22
+ const d = "_tag_15x3t_300", l = "_icon_15x3t_317", u = "_border_15x3t_323", x = "_neutral_15x3t_333", g = "_success_15x3t_339", m = "_attention_15x3t_345", h = "_brand_15x3t_351", p = "_danger_15x3t_357", n = {
23
+ tag: d,
24
+ icon: l,
25
+ border: u,
26
+ neutral: x,
27
+ success: g,
28
+ attention: m,
29
+ brand: h,
30
+ danger: p
31
31
  };
32
32
  function L({
33
- variant: r = "success",
34
- icon: s = !0,
33
+ variant: s = "success",
34
+ icon: t = !0,
35
35
  border: o,
36
36
  className: e
37
37
  }) {
38
38
  return /* @__PURE__ */ c(
39
39
  "span",
40
40
  {
41
- className: _(e, t.tag, t[r], {
42
- [t.icon]: s,
43
- [t.border]: o
41
+ className: _(e, n.tag, n[s], {
42
+ [n.icon]: t,
43
+ [n.border]: o
44
44
  }),
45
45
  children: [
46
- s && /* @__PURE__ */ n(i, {}),
46
+ t && /* @__PURE__ */ r(i, {}),
47
47
  "New"
48
48
  ]
49
49
  }
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { N as f } from "../../index-CUjEIxqY.js";
3
+ import { N as f } from "../../index-DvBbx2s8.js";
4
4
  import "../../clsx-OuTLNxxd.js";
5
5
  import "../Button/index.js";
6
6
  import "../Container/index.js";