highsoft-ui 1.0.77 → 1.0.79
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/Check-Cm4roSEj.js +23 -0
- package/dist/CookiePolicyModal-B0UcoKfp.js +310 -0
- package/dist/XClose-CCu1vrNS.js +23 -0
- package/dist/components/Footer/CookiePolicyModal.d.ts +1 -0
- package/dist/components/Footer/CookiePolicyModal.js +8 -0
- package/dist/components/Footer/index.js +302 -537
- package/dist/components/Header/index.js +8 -7
- package/dist/components/Notification/index.js +47 -6
- package/dist/components/PrefPanel/index.js +28 -27
- package/dist/highsoft-ui.css +1 -1
- package/dist/{index-CM3YgRXK.js → index-DdHkr4BN.js} +205 -224
- package/dist/main.js +10 -10
- package/package.json +1 -1
- package/dist/index-pnL-sAld.js +0 -68
|
@@ -3,12 +3,13 @@ import { useRef as U, useState as T, useEffect as H } from "react";
|
|
|
3
3
|
import { a as Q, J as F, b as G } from "../../utils-C7rfowvr.js";
|
|
4
4
|
import { A as R } from "../../Announcement03-obPaH4LK.js";
|
|
5
5
|
import { _ as m } from "../../extends-hS2Bh-Yp.js";
|
|
6
|
-
import {
|
|
6
|
+
import { X as $ } from "../../XClose-CCu1vrNS.js";
|
|
7
7
|
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
8
8
|
import { Button as h } from "../Button/index.js";
|
|
9
9
|
import { Container as z } from "../Container/index.js";
|
|
10
10
|
import { ThemedLogo as I } from "../Logo/index.js";
|
|
11
|
-
import { NewTag as
|
|
11
|
+
import { NewTag as Y } from "../NewTag/index.js";
|
|
12
|
+
import { Notification as D } from "../Notification/index.js";
|
|
12
13
|
import { PrefPanel as W } from "../PrefPanel/index.js";
|
|
13
14
|
var K = function(o) {
|
|
14
15
|
return /* @__PURE__ */ e("svg", m({
|
|
@@ -254,7 +255,7 @@ function Be({
|
|
|
254
255
|
] }),
|
|
255
256
|
/* @__PURE__ */ i("span", { className: t.subTitle, children: [
|
|
256
257
|
v,
|
|
257
|
-
M && /* @__PURE__ */ e(
|
|
258
|
+
M && /* @__PURE__ */ e(Y, { variant: f, icon: !1 })
|
|
258
259
|
] })
|
|
259
260
|
]
|
|
260
261
|
}
|
|
@@ -262,7 +263,7 @@ function Be({
|
|
|
262
263
|
}
|
|
263
264
|
) }) });
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
+
function Ee({
|
|
266
267
|
subItems: c,
|
|
267
268
|
children: o,
|
|
268
269
|
notifications: p = [],
|
|
@@ -324,7 +325,7 @@ function Pe({
|
|
|
324
325
|
return /* @__PURE__ */ e(F, { children: /* @__PURE__ */ i("header", { className: t.header, ref: f, children: [
|
|
325
326
|
k?.map(
|
|
326
327
|
({ id: r, title: n, description: s, variant: g, closable: S }, q) => /* @__PURE__ */ e(
|
|
327
|
-
|
|
328
|
+
D,
|
|
328
329
|
{
|
|
329
330
|
description: s,
|
|
330
331
|
variant: g,
|
|
@@ -417,7 +418,7 @@ function Pe({
|
|
|
417
418
|
onClick: y,
|
|
418
419
|
children: [
|
|
419
420
|
u ? "Close" : "Menu",
|
|
420
|
-
u ? /* @__PURE__ */ e(
|
|
421
|
+
u ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(ee, {})
|
|
421
422
|
]
|
|
422
423
|
}
|
|
423
424
|
)
|
|
@@ -533,6 +534,6 @@ function Pe({
|
|
|
533
534
|
] }) });
|
|
534
535
|
}
|
|
535
536
|
export {
|
|
536
|
-
|
|
537
|
+
Ee as Header,
|
|
537
538
|
Be as SubHeader
|
|
538
539
|
};
|
|
@@ -1,9 +1,50 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
1
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import "../Button/index.js";
|
|
6
|
-
import "../Container/index.js";
|
|
3
|
+
import { X as r } from "../../XClose-CCu1vrNS.js";
|
|
4
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { Button as R } from "../Button/index.js";
|
|
6
|
+
import { Container as d } from "../Container/index.js";
|
|
7
|
+
const m = "MhRkRW_attention", f = "MhRkRW_close", h = "MhRkRW_container", p = "MhRkRW_danger", u = "MhRkRW_description", k = "MhRkRW_notification", M = "MhRkRW_success", W = "MhRkRW_title", t = {
|
|
8
|
+
attention: m,
|
|
9
|
+
close: f,
|
|
10
|
+
container: h,
|
|
11
|
+
danger: p,
|
|
12
|
+
default: "MhRkRW_default",
|
|
13
|
+
description: u,
|
|
14
|
+
notification: k,
|
|
15
|
+
success: M,
|
|
16
|
+
title: W
|
|
17
|
+
};
|
|
18
|
+
function j({
|
|
19
|
+
children: e,
|
|
20
|
+
variant: o = "default",
|
|
21
|
+
description: i,
|
|
22
|
+
closable: s = !0,
|
|
23
|
+
onClose: c
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ n(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: l(t.notification, t[o]),
|
|
29
|
+
"data-theme": "light",
|
|
30
|
+
children: /* @__PURE__ */ a(d, { className: t.container, children: [
|
|
31
|
+
/* @__PURE__ */ n("span", { className: t.title, children: e }),
|
|
32
|
+
i && /* @__PURE__ */ n("span", { className: t.description, children: i }),
|
|
33
|
+
s && /* @__PURE__ */ n(
|
|
34
|
+
R,
|
|
35
|
+
{
|
|
36
|
+
variant: o === "default" ? "brand" : "transparent",
|
|
37
|
+
size: 100,
|
|
38
|
+
className: t.close,
|
|
39
|
+
"aria-label": "Close notification",
|
|
40
|
+
onClick: () => c?.(),
|
|
41
|
+
children: /* @__PURE__ */ n(r, {})
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] })
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
7
48
|
export {
|
|
8
|
-
|
|
49
|
+
j as Notification
|
|
9
50
|
};
|
|
@@ -2,13 +2,14 @@ import { jsx as w, jsxs as q, Fragment as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { z as Qe, b as qe } from "../../utils-C7rfowvr.js";
|
|
3
3
|
import * as g from "react";
|
|
4
4
|
import { useLayoutEffect as Ge } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
import { c as
|
|
8
|
-
import { Button as
|
|
5
|
+
import { C as Ue } from "../../Check-Cm4roSEj.js";
|
|
6
|
+
import { _ as yt } from "../../extends-hS2Bh-Yp.js";
|
|
7
|
+
import { c as Ze } from "../../clsx-OuTLNxxd.js";
|
|
8
|
+
import { Button as Je } from "../Button/index.js";
|
|
9
|
+
import { u as Mt, P as ft, c as oe, a as bt, b as tn, d as en, e as nn, f as st, g as re, h as on, i as rn, R as sn, j as cn, k as an, F as ln, D as fn } from "../../index-DdHkr4BN.js";
|
|
9
10
|
import * as un from "react-dom";
|
|
10
11
|
var dn = function(e) {
|
|
11
|
-
return /* @__PURE__ */ w("svg",
|
|
12
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
12
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
14
|
width: 24,
|
|
14
15
|
height: 24,
|
|
@@ -24,7 +25,7 @@ var dn = function(e) {
|
|
|
24
25
|
})
|
|
25
26
|
}));
|
|
26
27
|
}, pn = function(e) {
|
|
27
|
-
return /* @__PURE__ */ w("svg",
|
|
28
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
28
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
30
|
width: 24,
|
|
30
31
|
height: 24,
|
|
@@ -40,7 +41,7 @@ var dn = function(e) {
|
|
|
40
41
|
})
|
|
41
42
|
}));
|
|
42
43
|
}, hn = function(e) {
|
|
43
|
-
return /* @__PURE__ */ w("svg",
|
|
44
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
44
45
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
46
|
width: 24,
|
|
46
47
|
height: 24,
|
|
@@ -56,7 +57,7 @@ var dn = function(e) {
|
|
|
56
57
|
})
|
|
57
58
|
}));
|
|
58
59
|
}, mn = function(e) {
|
|
59
|
-
return /* @__PURE__ */ w("svg",
|
|
60
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
60
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
61
62
|
width: 24,
|
|
62
63
|
height: 24,
|
|
@@ -1427,7 +1428,7 @@ var ko = ge, It = "Popper", [we, ve] = oe(It), [Mo, xe] = we(It), ye = (t) => {
|
|
|
1427
1428
|
ye.displayName = It;
|
|
1428
1429
|
var be = "PopperAnchor", Ae = g.forwardRef(
|
|
1429
1430
|
(t, e) => {
|
|
1430
|
-
const { __scopePopper: n, virtualRef: o, ...r } = t, i = xe(be, n), s = g.useRef(null), c =
|
|
1431
|
+
const { __scopePopper: n, virtualRef: o, ...r } = t, i = xe(be, n), s = g.useRef(null), c = bt(e, s), a = g.useRef(null);
|
|
1431
1432
|
return g.useEffect(() => {
|
|
1432
1433
|
const l = a.current;
|
|
1433
1434
|
a.current = o?.current || s.current, l !== a.current && i.onAnchorChange(a.current);
|
|
@@ -1452,7 +1453,7 @@ var Bt = "PopperContent", [Do, Lo] = we(Bt), Pe = g.forwardRef(
|
|
|
1452
1453
|
updatePositionStrategy: d = "optimized",
|
|
1453
1454
|
onPlaced: h,
|
|
1454
1455
|
...m
|
|
1455
|
-
} = t, x = xe(Bt, n), [v, y] = g.useState(null), P =
|
|
1456
|
+
} = t, x = xe(Bt, n), [v, y] = g.useState(null), P = bt(e, (it) => y(it)), [b, A] = g.useState(null), O = gn(b), R = O?.width ?? 0, L = O?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, T = Array.isArray(l) ? l : [l], N = T.length > 0, E = {
|
|
1456
1457
|
padding: D,
|
|
1457
1458
|
boundary: T.filter(To),
|
|
1458
1459
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -1487,7 +1488,7 @@ var Bt = "PopperContent", [Do, Lo] = we(Bt), Pe = g.forwardRef(
|
|
|
1487
1488
|
No({ arrowWidth: R, arrowHeight: L }),
|
|
1488
1489
|
p && Oo({ strategy: "referenceHidden", ...E })
|
|
1489
1490
|
]
|
|
1490
|
-
}), [_, z] = Oe(k), Vt =
|
|
1491
|
+
}), [_, z] = Oe(k), Vt = tn(h);
|
|
1491
1492
|
Mt(() => {
|
|
1492
1493
|
M && Vt?.();
|
|
1493
1494
|
}, [M, Vt]);
|
|
@@ -1626,7 +1627,7 @@ var Fo = ye, Se = Ae, $o = Pe, Wo = Re, Ot = "Popover", [Ee] = oe(Ot, [
|
|
|
1626
1627
|
defaultOpen: r,
|
|
1627
1628
|
onOpenChange: i,
|
|
1628
1629
|
modal: s = !1
|
|
1629
|
-
} = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] =
|
|
1630
|
+
} = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] = en({
|
|
1630
1631
|
prop: o,
|
|
1631
1632
|
defaultProp: r ?? !1,
|
|
1632
1633
|
onChange: i,
|
|
@@ -1636,7 +1637,7 @@ var Fo = ye, Se = Ae, $o = Pe, Wo = Re, Ot = "Popover", [Ee] = oe(Ot, [
|
|
|
1636
1637
|
Ho,
|
|
1637
1638
|
{
|
|
1638
1639
|
scope: e,
|
|
1639
|
-
contentId:
|
|
1640
|
+
contentId: nn(),
|
|
1640
1641
|
triggerRef: a,
|
|
1641
1642
|
open: u,
|
|
1642
1643
|
onOpenChange: p,
|
|
@@ -1659,7 +1660,7 @@ var Me = "PopoverAnchor", De = g.forwardRef(
|
|
|
1659
1660
|
De.displayName = Me;
|
|
1660
1661
|
var Le = "PopoverTrigger", _e = g.forwardRef(
|
|
1661
1662
|
(t, e) => {
|
|
1662
|
-
const { __scopePopover: n, ...o } = t, r = Z(Le, n), i = dt(n), s =
|
|
1663
|
+
const { __scopePopover: n, ...o } = t, r = Z(Le, n), i = dt(n), s = bt(e, r.triggerRef), c = /* @__PURE__ */ w(
|
|
1663
1664
|
ft.button,
|
|
1664
1665
|
{
|
|
1665
1666
|
type: "button",
|
|
@@ -1680,7 +1681,7 @@ var zt = "PopoverPortal", [Io, Bo] = Ee(zt, {
|
|
|
1680
1681
|
forceMount: void 0
|
|
1681
1682
|
}), Te = (t) => {
|
|
1682
1683
|
const { __scopePopover: e, forceMount: n, children: o, container: r } = t, i = Z(zt, e);
|
|
1683
|
-
return /* @__PURE__ */ w(Io, { scope: e, forceMount: n, children: /* @__PURE__ */ w(re, { present: n || i.open, children: /* @__PURE__ */ w(
|
|
1684
|
+
return /* @__PURE__ */ w(Io, { scope: e, forceMount: n, children: /* @__PURE__ */ w(re, { present: n || i.open, children: /* @__PURE__ */ w(on, { asChild: !0, container: r, children: o }) }) });
|
|
1684
1685
|
};
|
|
1685
1686
|
Te.displayName = zt;
|
|
1686
1687
|
var nt = "PopoverContent", Ne = g.forwardRef(
|
|
@@ -1690,13 +1691,13 @@ var nt = "PopoverContent", Ne = g.forwardRef(
|
|
|
1690
1691
|
}
|
|
1691
1692
|
);
|
|
1692
1693
|
Ne.displayName = nt;
|
|
1693
|
-
var zo =
|
|
1694
|
+
var zo = cn("PopoverContent.RemoveScroll"), Vo = g.forwardRef(
|
|
1694
1695
|
(t, e) => {
|
|
1695
|
-
const n = Z(nt, t.__scopePopover), o = g.useRef(null), r =
|
|
1696
|
+
const n = Z(nt, t.__scopePopover), o = g.useRef(null), r = bt(e, o), i = g.useRef(!1);
|
|
1696
1697
|
return g.useEffect(() => {
|
|
1697
1698
|
const s = o.current;
|
|
1698
|
-
if (s) return
|
|
1699
|
-
}, []), /* @__PURE__ */ w(
|
|
1699
|
+
if (s) return rn(s);
|
|
1700
|
+
}, []), /* @__PURE__ */ w(sn, { as: zo, allowPinchZoom: !0, children: /* @__PURE__ */ w(
|
|
1700
1701
|
Fe,
|
|
1701
1702
|
{
|
|
1702
1703
|
...t,
|
|
@@ -1757,8 +1758,8 @@ var zo = on("PopoverContent.RemoveScroll"), Vo = g.forwardRef(
|
|
|
1757
1758
|
onInteractOutside: f,
|
|
1758
1759
|
...u
|
|
1759
1760
|
} = t, p = Z(nt, n), d = dt(n);
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1761
|
+
return an(), /* @__PURE__ */ w(
|
|
1762
|
+
ln,
|
|
1762
1763
|
{
|
|
1763
1764
|
asChild: !0,
|
|
1764
1765
|
loop: !0,
|
|
@@ -1766,7 +1767,7 @@ var zo = on("PopoverContent.RemoveScroll"), Vo = g.forwardRef(
|
|
|
1766
1767
|
onMountAutoFocus: r,
|
|
1767
1768
|
onUnmountAutoFocus: i,
|
|
1768
1769
|
children: /* @__PURE__ */ w(
|
|
1769
|
-
|
|
1770
|
+
fn,
|
|
1770
1771
|
{
|
|
1771
1772
|
asChild: !0,
|
|
1772
1773
|
disableOutsidePointerEvents: s,
|
|
@@ -1839,20 +1840,20 @@ function kt({ children: t, id: e, ...n }) {
|
|
|
1839
1840
|
{
|
|
1840
1841
|
type: "radio",
|
|
1841
1842
|
id: e,
|
|
1842
|
-
className:
|
|
1843
|
+
className: Ze(ct.radioInput, "sr-only"),
|
|
1843
1844
|
...n
|
|
1844
1845
|
}
|
|
1845
1846
|
),
|
|
1846
1847
|
/* @__PURE__ */ q("label", { htmlFor: e, className: ct.radio, children: [
|
|
1847
1848
|
t,
|
|
1848
|
-
/* @__PURE__ */ w(
|
|
1849
|
+
/* @__PURE__ */ w(Ue, { className: ct.check })
|
|
1849
1850
|
] })
|
|
1850
1851
|
] });
|
|
1851
1852
|
}
|
|
1852
|
-
function
|
|
1853
|
+
function dr() {
|
|
1853
1854
|
const { theme: t, systemTheme: e, setTheme: n } = Qe(), o = qe();
|
|
1854
1855
|
return /* @__PURE__ */ q(Qo, { children: [
|
|
1855
|
-
/* @__PURE__ */ w(Go, { asChild: !0, children: /* @__PURE__ */ q(
|
|
1856
|
+
/* @__PURE__ */ w(Go, { asChild: !0, children: /* @__PURE__ */ q(Je, { variant: "transparent", "aria-label": "Preferences", children: [
|
|
1856
1857
|
/* @__PURE__ */ w(hn, {}),
|
|
1857
1858
|
/* @__PURE__ */ w(qo, { className: ct.anchor })
|
|
1858
1859
|
] }) }),
|
|
@@ -1911,6 +1912,6 @@ function ur() {
|
|
|
1911
1912
|
] });
|
|
1912
1913
|
}
|
|
1913
1914
|
export {
|
|
1914
|
-
|
|
1915
|
+
dr as PrefPanel,
|
|
1915
1916
|
kt as PrefRadio
|
|
1916
1917
|
};
|