highsoft-ui 1.0.126 → 1.0.128
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/{Button-CJp__tle.js → Button-FtTHXgq3.js} +1 -1
- package/dist/{ButtonGroup-CfNp_xXf.js → ButtonGroup-eZng2GQy.js} +1 -1
- package/dist/Checkbox-CMWwWnbI.js +153 -0
- package/dist/{CookiePolicyModal-BN_AXefZ.js → CookiePolicyModal-_zwtaOvm.js} +3 -3
- package/dist/{CopyCode-BLXf0o74.js → CopyCode-C7iHMVIg.js} +2 -2
- package/dist/Dropdown-B6J7ph3w.js +817 -0
- package/dist/{Footer-BsddrH6J.js → Footer-Q3Z-Synu.js} +8 -8
- package/dist/{FooterBottom-ybvI6wyw.js → FooterBottom-Dbr8oMdf.js} +1 -1
- package/dist/{FooterHelp-D88w95D4.js → FooterHelp-BsApOrYf.js} +1 -1
- package/dist/{FooterLinks-B8QP6uKP.js → FooterLinks-Dx7GBu-X.js} +2 -2
- package/dist/{Header-B8todalU.js → Header-DxauB1pI.js} +41 -41
- package/dist/{InputGrouped-jbMns5qa.js → InputGrouped-B9jyncxb.js} +13 -13
- package/dist/{Label-bbLlUYRM.js → Label-BHGkcLu9.js} +1 -1
- package/dist/{NewsletterSignup-DEgL93rH.js → NewsletterSignup-jPKQLKvl.js} +4 -4
- package/dist/{Notification-CuVjbJzV.js → Notification-CO-mX_7b.js} +3 -3
- package/dist/PrefPanel-D-xcKbcr.js +253 -0
- package/dist/{Search-BcX6xtAY.js → Search-DokUD0o9.js} +972 -1171
- package/dist/{YoutubeModal-C58qsc27.js → YoutubeModal-T25hkIhQ.js} +3 -3
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/CopyCode/index.js +1 -1
- package/dist/components/Dropdown/index.js +2 -0
- 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/GPTInput/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 +37 -0
- package/dist/components/Modal/index.js +94 -0
- 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/RadioBox/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/{dist-O77K9Ele.js → dist-9h8Pur86.js} +62 -62
- package/dist/dist-BMBUb7XY.js +208 -0
- package/dist/dist-MBZ50zVE.js +1303 -0
- package/dist/{dist-D4rcQ6qo.js → dist-SfVqm611.js} +1 -1
- package/dist/{es2015-BE1Gei7w.js → es2015-CJyFgdNb.js} +1 -1
- package/dist/{esm-T3Xn_ZHF.js → esm-vjQoQCu2.js} +46 -18
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/Checkbox/index.d.ts +54 -0
- package/dist/lib/components/Dropdown/index.d.ts +67 -0
- package/dist/lib/components/Modal/ModalContactFooter.d.ts +21 -0
- package/dist/lib/components/Modal/index.d.ts +41 -0
- package/dist/lib/main.d.ts +8 -0
- package/dist/main.js +19 -15
- package/dist/scss/variables.scss +84 -0
- package/dist/styles.module-BZplfYRW.js +17 -0
- package/package.json +1 -1
- package/dist/PrefPanel-CPWoS-hm.js +0 -1548
- /package/dist/{GPTInput-CZF0-SfI.js → GPTInput-Cgu6_F53.js} +0 -0
- /package/dist/{RadioBox-C_KZn7fw.js → RadioBox-B9rLrNTK.js} +0 -0
- /package/dist/{Tabs-CNkFaolf.js → Tabs-DanjfIHP.js} +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { _ as e, c as t, f as n, h as r, m as i, s as a, u as o, y as s } from "./es2015-CJyFgdNb.js";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
//#region node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
6
|
+
function d(t) {
|
|
7
|
+
let n = t + "CollectionProvider", [r, a] = i(n), [o, c] = r(n, {
|
|
8
|
+
collectionRef: { current: null },
|
|
9
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
10
|
+
}), d = (e) => {
|
|
11
|
+
let { scope: t, children: n } = e, r = l.useRef(null), i = l.useRef(/* @__PURE__ */ new Map()).current;
|
|
12
|
+
return /* @__PURE__ */ u(o, {
|
|
13
|
+
scope: t,
|
|
14
|
+
itemMap: i,
|
|
15
|
+
collectionRef: r,
|
|
16
|
+
children: n
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
d.displayName = n;
|
|
20
|
+
let f = t + "CollectionSlot", p = e(f), m = l.forwardRef((e, t) => {
|
|
21
|
+
let { scope: n, children: r } = e;
|
|
22
|
+
return /* @__PURE__ */ u(p, {
|
|
23
|
+
ref: s(t, c(f, n).collectionRef),
|
|
24
|
+
children: r
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
m.displayName = f;
|
|
28
|
+
let h = t + "CollectionItemSlot", g = "data-radix-collection-item", _ = e(h), v = l.forwardRef((e, t) => {
|
|
29
|
+
let { scope: n, children: r, ...i } = e, a = l.useRef(null), o = s(t, a), d = c(h, n);
|
|
30
|
+
return l.useEffect(() => (d.itemMap.set(a, {
|
|
31
|
+
ref: a,
|
|
32
|
+
...i
|
|
33
|
+
}), () => void d.itemMap.delete(a))), /* @__PURE__ */ u(_, {
|
|
34
|
+
[g]: "",
|
|
35
|
+
ref: o,
|
|
36
|
+
children: r
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
v.displayName = h;
|
|
40
|
+
function y(e) {
|
|
41
|
+
let n = c(t + "CollectionConsumer", e);
|
|
42
|
+
return l.useCallback(() => {
|
|
43
|
+
let e = n.collectionRef.current;
|
|
44
|
+
if (!e) return [];
|
|
45
|
+
let t = Array.from(e.querySelectorAll(`[${g}]`));
|
|
46
|
+
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
47
|
+
}, [n.collectionRef, n.itemMap]);
|
|
48
|
+
}
|
|
49
|
+
return [
|
|
50
|
+
{
|
|
51
|
+
Provider: d,
|
|
52
|
+
Slot: m,
|
|
53
|
+
ItemSlot: v
|
|
54
|
+
},
|
|
55
|
+
y,
|
|
56
|
+
a
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
61
|
+
var f = c.createContext(void 0);
|
|
62
|
+
function p(e) {
|
|
63
|
+
let t = c.useContext(f);
|
|
64
|
+
return e || t || "ltr";
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
68
|
+
var m = "rovingFocusGroup.onEntryFocus", h = {
|
|
69
|
+
bubbles: !1,
|
|
70
|
+
cancelable: !0
|
|
71
|
+
}, g = "RovingFocusGroup", [_, v, y] = d(g), [b, x] = i(g, [y]), [S, C] = b(g), w = c.forwardRef((e, t) => /* @__PURE__ */ u(_.Provider, {
|
|
72
|
+
scope: e.__scopeRovingFocusGroup,
|
|
73
|
+
children: /* @__PURE__ */ u(_.Slot, {
|
|
74
|
+
scope: e.__scopeRovingFocusGroup,
|
|
75
|
+
children: /* @__PURE__ */ u(T, {
|
|
76
|
+
...e,
|
|
77
|
+
ref: t
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
}));
|
|
81
|
+
w.displayName = g;
|
|
82
|
+
var T = c.forwardRef((e, t) => {
|
|
83
|
+
let { __scopeRovingFocusGroup: i, orientation: l, loop: d = !1, dir: f, currentTabStopId: _, defaultCurrentTabStopId: y, onCurrentTabStopIdChange: b, onEntryFocus: x, preventScrollOnEntryFocus: C = !1, ...w } = e, T = c.useRef(null), E = s(t, T), D = p(f), [O, k] = o({
|
|
84
|
+
prop: _,
|
|
85
|
+
defaultProp: y ?? null,
|
|
86
|
+
onChange: b,
|
|
87
|
+
caller: g
|
|
88
|
+
}), [A, M] = c.useState(!1), N = a(x), P = v(i), F = c.useRef(!1), [I, L] = c.useState(0);
|
|
89
|
+
return c.useEffect(() => {
|
|
90
|
+
let e = T.current;
|
|
91
|
+
if (e) return e.addEventListener(m, N), () => e.removeEventListener(m, N);
|
|
92
|
+
}, [N]), /* @__PURE__ */ u(S, {
|
|
93
|
+
scope: i,
|
|
94
|
+
orientation: l,
|
|
95
|
+
dir: D,
|
|
96
|
+
loop: d,
|
|
97
|
+
currentTabStopId: O,
|
|
98
|
+
onItemFocus: c.useCallback((e) => k(e), [k]),
|
|
99
|
+
onItemShiftTab: c.useCallback(() => M(!0), []),
|
|
100
|
+
onFocusableItemAdd: c.useCallback(() => L((e) => e + 1), []),
|
|
101
|
+
onFocusableItemRemove: c.useCallback(() => L((e) => e - 1), []),
|
|
102
|
+
children: /* @__PURE__ */ u(r.div, {
|
|
103
|
+
tabIndex: A || I === 0 ? -1 : 0,
|
|
104
|
+
"data-orientation": l,
|
|
105
|
+
...w,
|
|
106
|
+
ref: E,
|
|
107
|
+
style: {
|
|
108
|
+
outline: "none",
|
|
109
|
+
...e.style
|
|
110
|
+
},
|
|
111
|
+
onMouseDown: n(e.onMouseDown, () => {
|
|
112
|
+
F.current = !0;
|
|
113
|
+
}),
|
|
114
|
+
onFocus: n(e.onFocus, (e) => {
|
|
115
|
+
let t = !F.current;
|
|
116
|
+
if (e.target === e.currentTarget && t && !A) {
|
|
117
|
+
let t = new CustomEvent(m, h);
|
|
118
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
119
|
+
let e = P().filter((e) => e.focusable);
|
|
120
|
+
j([
|
|
121
|
+
e.find((e) => e.active),
|
|
122
|
+
e.find((e) => e.id === O),
|
|
123
|
+
...e
|
|
124
|
+
].filter(Boolean).map((e) => e.ref.current), C);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
F.current = !1;
|
|
128
|
+
}),
|
|
129
|
+
onBlur: n(e.onBlur, () => M(!1))
|
|
130
|
+
})
|
|
131
|
+
});
|
|
132
|
+
}), E = "RovingFocusGroupItem", D = c.forwardRef((e, i) => {
|
|
133
|
+
let { __scopeRovingFocusGroup: a, focusable: o = !0, active: s = !1, tabStopId: l, children: d, ...f } = e, p = t(), m = l || p, h = C(E, a), g = h.currentTabStopId === m, y = v(a), { onFocusableItemAdd: b, onFocusableItemRemove: x, currentTabStopId: S } = h;
|
|
134
|
+
return c.useEffect(() => {
|
|
135
|
+
if (o) return b(), () => x();
|
|
136
|
+
}, [
|
|
137
|
+
o,
|
|
138
|
+
b,
|
|
139
|
+
x
|
|
140
|
+
]), /* @__PURE__ */ u(_.ItemSlot, {
|
|
141
|
+
scope: a,
|
|
142
|
+
id: m,
|
|
143
|
+
focusable: o,
|
|
144
|
+
active: s,
|
|
145
|
+
children: /* @__PURE__ */ u(r.span, {
|
|
146
|
+
tabIndex: g ? 0 : -1,
|
|
147
|
+
"data-orientation": h.orientation,
|
|
148
|
+
...f,
|
|
149
|
+
ref: i,
|
|
150
|
+
onMouseDown: n(e.onMouseDown, (e) => {
|
|
151
|
+
o ? h.onItemFocus(m) : e.preventDefault();
|
|
152
|
+
}),
|
|
153
|
+
onFocus: n(e.onFocus, () => h.onItemFocus(m)),
|
|
154
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
155
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
156
|
+
h.onItemShiftTab();
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (e.target !== e.currentTarget) return;
|
|
160
|
+
let t = A(e, h.orientation, h.dir);
|
|
161
|
+
if (t !== void 0) {
|
|
162
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
163
|
+
e.preventDefault();
|
|
164
|
+
let n = y().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
165
|
+
if (t === "last") n.reverse();
|
|
166
|
+
else if (t === "prev" || t === "next") {
|
|
167
|
+
t === "prev" && n.reverse();
|
|
168
|
+
let r = n.indexOf(e.currentTarget);
|
|
169
|
+
n = h.loop ? M(n, r + 1) : n.slice(r + 1);
|
|
170
|
+
}
|
|
171
|
+
setTimeout(() => j(n));
|
|
172
|
+
}
|
|
173
|
+
}),
|
|
174
|
+
children: typeof d == "function" ? d({
|
|
175
|
+
isCurrentTabStop: g,
|
|
176
|
+
hasTabStop: S != null
|
|
177
|
+
}) : d
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
D.displayName = E;
|
|
182
|
+
var O = {
|
|
183
|
+
ArrowLeft: "prev",
|
|
184
|
+
ArrowUp: "prev",
|
|
185
|
+
ArrowRight: "next",
|
|
186
|
+
ArrowDown: "next",
|
|
187
|
+
PageUp: "first",
|
|
188
|
+
Home: "first",
|
|
189
|
+
PageDown: "last",
|
|
190
|
+
End: "last"
|
|
191
|
+
};
|
|
192
|
+
function k(e, t) {
|
|
193
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
194
|
+
}
|
|
195
|
+
function A(e, t, n) {
|
|
196
|
+
let r = k(e.key, n);
|
|
197
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return O[r];
|
|
198
|
+
}
|
|
199
|
+
function j(e, t = !1) {
|
|
200
|
+
let n = document.activeElement;
|
|
201
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
202
|
+
}
|
|
203
|
+
function M(e, t) {
|
|
204
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
205
|
+
}
|
|
206
|
+
var N = w, P = D;
|
|
207
|
+
//#endregion
|
|
208
|
+
export { d as a, p as i, N as n, x as r, P as t };
|