highsoft-ui 1.0.153 → 1.0.155
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/CLAUDE.md +83 -6
- package/dist/{Button-BGsqFCRW.js → Button-DSGsV45k.js} +1 -1
- package/dist/{ButtonGroup-DKfaXOeS.js → ButtonGroup-DNTpDU-E.js} +1 -1
- package/dist/{Checkbox-CniRhVkQ.js → Checkbox-imALf2_N.js} +1 -1
- package/dist/{CodeBlock-BKiZQpA5.js → CodeBlock-7BTXXf30.js} +4 -4
- package/dist/{CookiePolicyModal-k89sCBEJ.js → CookiePolicyModal-DulwuSp4.js} +2 -2
- package/dist/{CopyCode-_yeXCeeq.js → CopyCode-PbZbRLn-.js} +2 -2
- package/dist/{Dropdown-B_Ib6i1c.js → Dropdown-c_EhnzqC.js} +1 -1
- package/dist/{Footer-ZdzuxuhY.js → Footer-C6a3PeJq.js} +8 -8
- package/dist/{FooterBottom-CqpN8Wky.js → FooterBottom-DADUJdzz.js} +1 -1
- package/dist/{FooterHelp-Cb5sraAE.js → FooterHelp-DN7Mdy40.js} +1 -1
- package/dist/{FooterLinks-HGxMx6Xz.js → FooterLinks-rrtsCIdv.js} +2 -2
- package/dist/{Header-CVKH_INR.js → Header-BokKjfF7.js} +38 -38
- package/dist/{InputGrouped-CHGCMmsK.js → InputGrouped-BJEodhml.js} +11 -11
- package/dist/{Label-CgiWi1v6.js → Label-BhFeSC8Z.js} +1 -1
- package/dist/{NewsletterSignup-DrcPfdrg.js → NewsletterSignup-mPKBEpYq.js} +2 -2
- package/dist/{Notification-B3skQvZE.js → Notification-JovL5anc.js} +3 -3
- package/dist/{PrefPanel-BGw72I_D.js → PrefPanel-DxSIkYDF.js} +8 -8
- package/dist/{ProductIcon-DFLAYWbu.js → ProductIcon-CKtF7AWy.js} +1 -0
- package/dist/{RoadmapDetails-XS0OylnP.js → RoadmapDetails-ZnyXG2j7.js} +6 -6
- package/dist/{Search-UPVxQliM.js → Search-Cc9ZJgGx.js} +13 -13
- package/dist/{SearchDropdown-L_rQz1vn.js → SearchDropdown-B5CFwNib.js} +1 -1
- package/dist/{VideoCover-DqMDvzvA.js → VideoCover-BkbLsmQ_.js} +1 -1
- package/dist/{VideoPlayer-Cq_garSg.js → VideoPlayer-CY63501h.js} +7 -7
- package/dist/{VideoPlayerModal-D1v1O2kW.js → VideoPlayerModal-DIHMoFgS.js} +2 -2
- package/dist/{YoutubeModal-BBYdQil8.js → YoutubeModal-DqBis8Cm.js} +2 -2
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/CopyCode/index.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Footer/CookiePolicyModal.js +1 -1
- package/dist/components/Footer/FooterBottom.js +1 -1
- package/dist/components/Footer/FooterHelp.js +1 -1
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/YoutubeModal.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/components/InputGrouped/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Modal/ModalContactFooter.js +2 -2
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/NewsletterSignup/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/ProductIcon/icons/grayscale/Orbit.js +25 -0
- package/dist/components/ProductIcon/icons/grayscale/index.js +12 -10
- package/dist/components/ProductIcon/icons/line/Orbit.js +25 -0
- package/dist/components/ProductIcon/icons/line/index.js +12 -10
- package/dist/components/ProductIcon/icons/monochrome/Orbit.js +25 -0
- package/dist/components/ProductIcon/icons/monochrome/index.js +12 -10
- package/dist/components/ProductIcon/icons/multi/Orbit.js +25 -0
- package/dist/components/ProductIcon/icons/multi/index.js +12 -10
- package/dist/components/ProductIcon/index.js +1 -1
- package/dist/components/RoadmapDetails/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/components/SearchDropdown/index.js +1 -1
- package/dist/components/Sidebar/NavDisclosure.js +26 -31
- package/dist/components/Sidebar/NavGroup.js +69 -56
- package/dist/components/Sidebar/NavItem.js +23 -16
- package/dist/components/Sidebar/Sidebar.js +115 -82
- package/dist/components/Sidebar/SidebarLayout.js +109 -69
- package/dist/components/Sidebar/SidebarResizer.js +1 -1
- package/dist/components/Sidebar/navPath.js +12 -0
- package/dist/components/VideoCover/index.js +1 -1
- package/dist/components/VideoPlayer/VideoPlayerModal.js +1 -1
- package/dist/components/VideoPlayer/index.js +1 -1
- package/dist/{create-element-CDnUGrhg.js → create-element-C3ORyDVw.js} +1 -1
- package/dist/{esm-BnxclXHW.js → esm-C4Ybr9s4.js} +85 -43
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Orbit.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/grayscale/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/icons/line/Orbit.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/line/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/icons/monochrome/Orbit.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/monochrome/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/icons/multi/Orbit.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/multi/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/index.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.d.ts +10 -5
- package/dist/lib/components/Sidebar/SidebarLayout.d.ts +37 -5
- package/dist/lib/components/Sidebar/context.d.ts +30 -2
- package/dist/lib/components/Sidebar/navPath.d.ts +17 -0
- package/dist/main.js +19 -19
- package/dist/{prism-light-COlcVrfu.js → prism-light-BLaY8zo6.js} +1 -1
- package/dist/{styles.module-Bd4HbnpA.js → styles.module-DGKft2EO.js} +12 -1
- package/package.json +1 -1
|
@@ -1,95 +1,135 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { a as e } from "../../utils-K9S_6_Eq.js";
|
|
3
|
+
import { t } from "../../clsx-BWCAbrjV.js";
|
|
4
|
+
import { G as n } from "../../esm-C4Ybr9s4.js";
|
|
5
|
+
import { t as r } from "../../Typography-AvvBRu-u.js";
|
|
6
|
+
import { SidebarLayoutContext as i } from "./context.js";
|
|
7
|
+
import { t as a } from "../../styles.module-DGKft2EO.js";
|
|
8
|
+
import { useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
10
|
//#region lib/components/Sidebar/SidebarLayout.tsx
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (
|
|
12
|
-
|
|
11
|
+
var f = "(max-width: 760px)";
|
|
12
|
+
function p({ children: p, defaultWidth: m = 320, minWidth: h = 230, maxWidth: g = 460, resizable: _ = !0, storageKey: v, mobileTriggerLabel: y = "Navigation", mobileTriggerValue: b, mobileTriggerIcon: x, mobileTriggerAction: S, mobileBar: C = !0, fill: w = !0, className: T, style: E }) {
|
|
13
|
+
let [D, O] = l(m), [k, A] = l(!1), [j, M] = l("sheet"), [N, P] = l(""), F = e(f), I = c(null), L = c(null), R = o((e, t) => {
|
|
14
|
+
if (t === null) {
|
|
15
|
+
L.current === e && (L.current = null, P(""));
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
L.current = e, P(t);
|
|
19
|
+
}, []), z = o((e) => {
|
|
20
|
+
let t = Math.min(Math.max(Math.round(e), h), g);
|
|
21
|
+
if (O(t), v) try {
|
|
22
|
+
localStorage.setItem(v, String(t));
|
|
13
23
|
} catch {}
|
|
14
24
|
}, [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
h,
|
|
26
|
+
g,
|
|
27
|
+
v
|
|
18
28
|
]);
|
|
19
|
-
|
|
20
|
-
if (
|
|
21
|
-
let e = localStorage.getItem(
|
|
22
|
-
e &&
|
|
29
|
+
s(() => {
|
|
30
|
+
if (v) try {
|
|
31
|
+
let e = localStorage.getItem(v);
|
|
32
|
+
e && z(Number(e) || m);
|
|
23
33
|
} catch {}
|
|
24
34
|
}, []);
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
}, []),
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
let B = o(() => {
|
|
36
|
+
A(!1), I.current?.focus();
|
|
37
|
+
}, []), V = o((e) => {
|
|
38
|
+
M(e?.focus === "search" ? "search" : "sheet"), A(!0);
|
|
39
|
+
}, []);
|
|
40
|
+
s(() => {
|
|
41
|
+
F || A(!1);
|
|
42
|
+
}, [F]), s(() => {
|
|
43
|
+
if (!k) return;
|
|
30
44
|
let e = (e) => {
|
|
31
|
-
e.key === "Escape" &&
|
|
45
|
+
e.key === "Escape" && B();
|
|
32
46
|
};
|
|
33
47
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
34
|
-
}, [
|
|
48
|
+
}, [k, B]), s(() => {
|
|
49
|
+
if (!k || !F) return;
|
|
50
|
+
let { body: e } = document, t = e.style.overflow, n = e.style.paddingRight, r = window.innerWidth - document.documentElement.clientWidth;
|
|
51
|
+
return e.style.overflow = "hidden", r > 0 && (e.style.paddingRight = `${r}px`), () => {
|
|
52
|
+
e.style.overflow = t, e.style.paddingRight = n;
|
|
53
|
+
};
|
|
54
|
+
}, [k, F]);
|
|
55
|
+
let H = b === !1 ? null : (b ?? N) || null;
|
|
56
|
+
return /* @__PURE__ */ u(i.Provider, {
|
|
35
57
|
value: {
|
|
36
|
-
resizable:
|
|
37
|
-
width:
|
|
38
|
-
setWidth:
|
|
39
|
-
minWidth:
|
|
40
|
-
maxWidth:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
58
|
+
resizable: _,
|
|
59
|
+
width: D,
|
|
60
|
+
setWidth: z,
|
|
61
|
+
minWidth: h,
|
|
62
|
+
maxWidth: g,
|
|
63
|
+
isMobile: F,
|
|
64
|
+
mobileOpen: k,
|
|
65
|
+
openMobile: V,
|
|
66
|
+
closeMobile: B,
|
|
67
|
+
openFocus: j,
|
|
68
|
+
activePage: N,
|
|
69
|
+
reportActivePage: R
|
|
44
70
|
},
|
|
45
|
-
children: /* @__PURE__ */
|
|
46
|
-
className:
|
|
71
|
+
children: /* @__PURE__ */ d("div", {
|
|
72
|
+
className: t(a.layout, w && a.fill, C && a.hasMobileBar, T),
|
|
47
73
|
style: {
|
|
48
|
-
"--hs-sidebar-w": `${
|
|
49
|
-
...
|
|
74
|
+
"--hs-sidebar-w": `${D}px`,
|
|
75
|
+
...E
|
|
50
76
|
},
|
|
51
77
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
className:
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
ref:
|
|
78
|
+
C ? /* @__PURE__ */ d("div", {
|
|
79
|
+
className: a.mobileBar,
|
|
80
|
+
children: [/* @__PURE__ */ d("button", {
|
|
81
|
+
ref: I,
|
|
56
82
|
type: "button",
|
|
57
|
-
className:
|
|
58
|
-
"aria-expanded":
|
|
83
|
+
className: a.trigger,
|
|
84
|
+
"aria-expanded": k,
|
|
59
85
|
"aria-controls": "hs-sidebar-drawer",
|
|
60
|
-
onClick:
|
|
61
|
-
children: [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
86
|
+
onClick: () => V(),
|
|
87
|
+
children: [
|
|
88
|
+
x == null ? null : /* @__PURE__ */ u("span", {
|
|
89
|
+
className: a.triggerIcon,
|
|
90
|
+
children: x
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ d("span", {
|
|
93
|
+
className: a.triggerText,
|
|
94
|
+
children: [/* @__PURE__ */ u(r, {
|
|
95
|
+
size: H ? 75 : 100,
|
|
96
|
+
weight: "semi",
|
|
97
|
+
color: H ? "tertiary" : "primary",
|
|
98
|
+
className: t(a.triggerLine, H && a.triggerOverline),
|
|
99
|
+
children: y
|
|
100
|
+
}), H ? /* @__PURE__ */ u(r, {
|
|
101
|
+
size: 100,
|
|
102
|
+
weight: "semi",
|
|
103
|
+
className: a.triggerLine,
|
|
104
|
+
children: H
|
|
105
|
+
}) : null]
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ u(n, {
|
|
108
|
+
className: a.triggerChevron,
|
|
109
|
+
"aria-hidden": "true"
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
}), S == null ? null : /* @__PURE__ */ u("div", {
|
|
113
|
+
className: a.mobileBarAction,
|
|
114
|
+
children: S
|
|
115
|
+
})]
|
|
116
|
+
}) : null,
|
|
117
|
+
p,
|
|
118
|
+
/* @__PURE__ */ u("div", {
|
|
119
|
+
className: t(a.backdrop, k && a.backdropOpen),
|
|
120
|
+
onClick: B,
|
|
68
121
|
"aria-hidden": "true"
|
|
69
122
|
})
|
|
70
123
|
]
|
|
71
124
|
})
|
|
72
125
|
});
|
|
73
126
|
}
|
|
74
|
-
function
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
-
className:
|
|
77
|
-
...
|
|
78
|
-
children:
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function d() {
|
|
82
|
-
return /* @__PURE__ */ s("svg", {
|
|
83
|
-
width: "18",
|
|
84
|
-
height: "18",
|
|
85
|
-
viewBox: "0 0 24 24",
|
|
86
|
-
fill: "none",
|
|
87
|
-
stroke: "currentColor",
|
|
88
|
-
strokeWidth: "2",
|
|
89
|
-
strokeLinecap: "round",
|
|
90
|
-
"aria-hidden": "true",
|
|
91
|
-
children: /* @__PURE__ */ s("path", { d: "M3 6h18M3 12h18M3 18h18" })
|
|
127
|
+
function m({ children: e, className: n, ...r }) {
|
|
128
|
+
return /* @__PURE__ */ u("main", {
|
|
129
|
+
className: t(a.main, n),
|
|
130
|
+
...r,
|
|
131
|
+
children: e
|
|
92
132
|
});
|
|
93
133
|
}
|
|
94
134
|
//#endregion
|
|
95
|
-
export {
|
|
135
|
+
export { p as SidebarLayout, m as SidebarMain };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useSidebarLayout as e } from "./context.js";
|
|
3
|
-
import { t } from "../../styles.module-
|
|
3
|
+
import { t } from "../../styles.module-DGKft2EO.js";
|
|
4
4
|
import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
5
5
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/Sidebar/SidebarResizer.tsx
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as e, isValidElement as t, useContext as n } from "react";
|
|
3
|
+
//#region lib/components/Sidebar/navPath.ts
|
|
4
|
+
var r = e([]);
|
|
5
|
+
function i() {
|
|
6
|
+
return n(r);
|
|
7
|
+
}
|
|
8
|
+
function a(e) {
|
|
9
|
+
return e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(a).join("") : t(e) ? a(e.props.children) : "";
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as NavPathContext, a as textOf, i as useNavPath };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../VideoCover-
|
|
1
|
+
import { t as e } from "../../VideoCover-BkbLsmQ_.js";
|
|
2
2
|
export { e as VideoCover };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../VideoPlayerModal-
|
|
1
|
+
import { t as e } from "../../VideoPlayerModal-DIHMoFgS.js";
|
|
2
2
|
export { e as VideoPlayerModal };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../VideoPlayer-
|
|
1
|
+
import { t as e } from "../../VideoPlayer-CY63501h.js";
|
|
2
2
|
export { e as VideoPlayer };
|