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,253 @@
|
|
|
1
|
+
import { d as e, o as t } from "./utils-BCI5dixg.js";
|
|
2
|
+
import { t as n } from "./clsx-D7D_XZ_-.js";
|
|
3
|
+
import { F as r, _ as i, g as a, i as o, u as s } from "./esm-vjQoQCu2.js";
|
|
4
|
+
import { t as c } from "./Button-FtTHXgq3.js";
|
|
5
|
+
import { _ as l, a as u, c as d, f, h as p, i as m, l as h, m as g, n as ee, o as _, r as v, t as y, u as b, y as x } from "./es2015-CJyFgdNb.js";
|
|
6
|
+
import { a as S, i as C, n as w, r as te, t as T } from "./dist-MBZ50zVE.js";
|
|
7
|
+
import * as E from "react";
|
|
8
|
+
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
9
|
+
//#region node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
10
|
+
var A = "Popover", [j, ne] = g(A, [S]), M = S(), [N, P] = j(A), F = (e) => {
|
|
11
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = M(t), c = E.useRef(null), [l, u] = E.useState(!1), [f, p] = b({
|
|
12
|
+
prop: r,
|
|
13
|
+
defaultProp: i ?? !1,
|
|
14
|
+
onChange: a,
|
|
15
|
+
caller: A
|
|
16
|
+
});
|
|
17
|
+
return /* @__PURE__ */ O(C, {
|
|
18
|
+
...s,
|
|
19
|
+
children: /* @__PURE__ */ O(N, {
|
|
20
|
+
scope: t,
|
|
21
|
+
contentId: d(),
|
|
22
|
+
triggerRef: c,
|
|
23
|
+
open: f,
|
|
24
|
+
onOpenChange: p,
|
|
25
|
+
onOpenToggle: E.useCallback(() => p((e) => !e), [p]),
|
|
26
|
+
hasCustomAnchor: l,
|
|
27
|
+
onCustomAnchorAdd: E.useCallback(() => u(!0), []),
|
|
28
|
+
onCustomAnchorRemove: E.useCallback(() => u(!1), []),
|
|
29
|
+
modal: o,
|
|
30
|
+
children: n
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
F.displayName = A;
|
|
35
|
+
var I = "PopoverAnchor", L = E.forwardRef((e, t) => {
|
|
36
|
+
let { __scopePopover: n, ...r } = e, i = P(I, n), a = M(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
37
|
+
return E.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ O(T, {
|
|
38
|
+
...a,
|
|
39
|
+
...r,
|
|
40
|
+
ref: t
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
L.displayName = I;
|
|
44
|
+
var R = "PopoverTrigger", z = E.forwardRef((e, t) => {
|
|
45
|
+
let { __scopePopover: n, ...r } = e, i = P(R, n), a = M(n), o = x(t, i.triggerRef), s = /* @__PURE__ */ O(p.button, {
|
|
46
|
+
type: "button",
|
|
47
|
+
"aria-haspopup": "dialog",
|
|
48
|
+
"aria-expanded": i.open,
|
|
49
|
+
"aria-controls": i.contentId,
|
|
50
|
+
"data-state": Z(i.open),
|
|
51
|
+
...r,
|
|
52
|
+
ref: o,
|
|
53
|
+
onClick: f(e.onClick, i.onOpenToggle)
|
|
54
|
+
});
|
|
55
|
+
return i.hasCustomAnchor ? s : /* @__PURE__ */ O(T, {
|
|
56
|
+
asChild: !0,
|
|
57
|
+
...a,
|
|
58
|
+
children: s
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
z.displayName = R;
|
|
62
|
+
var B = "PopoverPortal", [V, H] = j(B, { forceMount: void 0 }), U = (e) => {
|
|
63
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = P(B, t);
|
|
64
|
+
return /* @__PURE__ */ O(V, {
|
|
65
|
+
scope: t,
|
|
66
|
+
forceMount: n,
|
|
67
|
+
children: /* @__PURE__ */ O(h, {
|
|
68
|
+
present: n || a.open,
|
|
69
|
+
children: /* @__PURE__ */ O(m, {
|
|
70
|
+
asChild: !0,
|
|
71
|
+
container: i,
|
|
72
|
+
children: r
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
U.displayName = B;
|
|
78
|
+
var W = "PopoverContent", G = E.forwardRef((e, t) => {
|
|
79
|
+
let n = H(W, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = P(W, e.__scopePopover);
|
|
80
|
+
return /* @__PURE__ */ O(h, {
|
|
81
|
+
present: r || a.open,
|
|
82
|
+
children: a.modal ? /* @__PURE__ */ O(q, {
|
|
83
|
+
...i,
|
|
84
|
+
ref: t
|
|
85
|
+
}) : /* @__PURE__ */ O(J, {
|
|
86
|
+
...i,
|
|
87
|
+
ref: t
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
G.displayName = W;
|
|
92
|
+
var K = l("PopoverContent.RemoveScroll"), q = E.forwardRef((e, t) => {
|
|
93
|
+
let n = P(W, e.__scopePopover), r = E.useRef(null), i = x(t, r), a = E.useRef(!1);
|
|
94
|
+
return E.useEffect(() => {
|
|
95
|
+
let e = r.current;
|
|
96
|
+
if (e) return y(e);
|
|
97
|
+
}, []), /* @__PURE__ */ O(ee, {
|
|
98
|
+
as: K,
|
|
99
|
+
allowPinchZoom: !0,
|
|
100
|
+
children: /* @__PURE__ */ O(Y, {
|
|
101
|
+
...e,
|
|
102
|
+
ref: i,
|
|
103
|
+
trapFocus: n.open,
|
|
104
|
+
disableOutsidePointerEvents: !0,
|
|
105
|
+
onCloseAutoFocus: f(e.onCloseAutoFocus, (e) => {
|
|
106
|
+
e.preventDefault(), a.current || n.triggerRef.current?.focus();
|
|
107
|
+
}),
|
|
108
|
+
onPointerDownOutside: f(e.onPointerDownOutside, (e) => {
|
|
109
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
110
|
+
a.current = t.button === 2 || n;
|
|
111
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
112
|
+
onFocusOutside: f(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
}), J = E.forwardRef((e, t) => {
|
|
116
|
+
let n = P(W, e.__scopePopover), r = E.useRef(!1), i = E.useRef(!1);
|
|
117
|
+
return /* @__PURE__ */ O(Y, {
|
|
118
|
+
...e,
|
|
119
|
+
ref: t,
|
|
120
|
+
trapFocus: !1,
|
|
121
|
+
disableOutsidePointerEvents: !1,
|
|
122
|
+
onCloseAutoFocus: (t) => {
|
|
123
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
124
|
+
},
|
|
125
|
+
onInteractOutside: (t) => {
|
|
126
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
127
|
+
let a = t.target;
|
|
128
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}), Y = E.forwardRef((e, t) => {
|
|
132
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: d, ...f } = e, p = P(W, n), m = M(n);
|
|
133
|
+
return v(), /* @__PURE__ */ O(u, {
|
|
134
|
+
asChild: !0,
|
|
135
|
+
loop: !0,
|
|
136
|
+
trapped: r,
|
|
137
|
+
onMountAutoFocus: i,
|
|
138
|
+
onUnmountAutoFocus: a,
|
|
139
|
+
children: /* @__PURE__ */ O(_, {
|
|
140
|
+
asChild: !0,
|
|
141
|
+
disableOutsidePointerEvents: o,
|
|
142
|
+
onInteractOutside: d,
|
|
143
|
+
onEscapeKeyDown: s,
|
|
144
|
+
onPointerDownOutside: c,
|
|
145
|
+
onFocusOutside: l,
|
|
146
|
+
onDismiss: () => p.onOpenChange(!1),
|
|
147
|
+
children: /* @__PURE__ */ O(te, {
|
|
148
|
+
"data-state": Z(p.open),
|
|
149
|
+
role: "dialog",
|
|
150
|
+
id: p.contentId,
|
|
151
|
+
...m,
|
|
152
|
+
...f,
|
|
153
|
+
ref: t,
|
|
154
|
+
style: {
|
|
155
|
+
...f.style,
|
|
156
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
157
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
158
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
159
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
160
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
})
|
|
164
|
+
});
|
|
165
|
+
}), X = "PopoverClose", re = E.forwardRef((e, t) => {
|
|
166
|
+
let { __scopePopover: n, ...r } = e, i = P(X, n);
|
|
167
|
+
return /* @__PURE__ */ O(p.button, {
|
|
168
|
+
type: "button",
|
|
169
|
+
...r,
|
|
170
|
+
ref: t,
|
|
171
|
+
onClick: f(e.onClick, () => i.onOpenChange(!1))
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
re.displayName = X;
|
|
175
|
+
var ie = "PopoverArrow", ae = E.forwardRef((e, t) => {
|
|
176
|
+
let { __scopePopover: n, ...r } = e;
|
|
177
|
+
return /* @__PURE__ */ O(w, {
|
|
178
|
+
...M(n),
|
|
179
|
+
...r,
|
|
180
|
+
ref: t
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
ae.displayName = ie;
|
|
184
|
+
function Z(e) {
|
|
185
|
+
return e ? "open" : "closed";
|
|
186
|
+
}
|
|
187
|
+
var oe = F, se = L, ce = z, le = U, ue = G, Q = {
|
|
188
|
+
anchor: "gQIKVa_anchor",
|
|
189
|
+
check: "gQIKVa_check",
|
|
190
|
+
container: "gQIKVa_container",
|
|
191
|
+
radio: "gQIKVa_radio",
|
|
192
|
+
radioInput: "gQIKVa_radioInput"
|
|
193
|
+
};
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region lib/components/PrefPanel/index.tsx
|
|
196
|
+
function $({ children: e, id: t, ...i }) {
|
|
197
|
+
return /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("input", {
|
|
198
|
+
type: "radio",
|
|
199
|
+
id: t,
|
|
200
|
+
className: n(Q.radioInput, "sr-only"),
|
|
201
|
+
...i
|
|
202
|
+
}), /* @__PURE__ */ k("label", {
|
|
203
|
+
htmlFor: t,
|
|
204
|
+
className: Q.radio,
|
|
205
|
+
children: [e, /* @__PURE__ */ O(r, { className: Q.check })]
|
|
206
|
+
})] });
|
|
207
|
+
}
|
|
208
|
+
function de() {
|
|
209
|
+
let { theme: n, systemTheme: r, setTheme: l } = e(), u = t();
|
|
210
|
+
return /* @__PURE__ */ k(oe, { children: [/* @__PURE__ */ O(ce, {
|
|
211
|
+
asChild: !0,
|
|
212
|
+
children: /* @__PURE__ */ k(c, {
|
|
213
|
+
variant: "transparent",
|
|
214
|
+
"aria-label": "Preferences",
|
|
215
|
+
children: [/* @__PURE__ */ O(s, {}), /* @__PURE__ */ O(se, { className: Q.anchor })]
|
|
216
|
+
})
|
|
217
|
+
}), /* @__PURE__ */ O(le, { children: /* @__PURE__ */ O(ue, {
|
|
218
|
+
sideOffset: 8,
|
|
219
|
+
hideWhenDetached: !0,
|
|
220
|
+
className: Q.container,
|
|
221
|
+
children: u && /* @__PURE__ */ k(D, { children: [
|
|
222
|
+
/* @__PURE__ */ O("span", { children: "Appearance" }),
|
|
223
|
+
/* @__PURE__ */ k($, {
|
|
224
|
+
id: "system",
|
|
225
|
+
name: "theme",
|
|
226
|
+
checked: n === "system",
|
|
227
|
+
onChange: () => l("system"),
|
|
228
|
+
children: [
|
|
229
|
+
/* @__PURE__ */ O(i, {}),
|
|
230
|
+
"Auto (",
|
|
231
|
+
r,
|
|
232
|
+
")"
|
|
233
|
+
]
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ k($, {
|
|
236
|
+
id: "light",
|
|
237
|
+
name: "theme",
|
|
238
|
+
checked: n === "light",
|
|
239
|
+
onChange: () => l("light"),
|
|
240
|
+
children: [/* @__PURE__ */ O(o, {}), "Light"]
|
|
241
|
+
}),
|
|
242
|
+
/* @__PURE__ */ k($, {
|
|
243
|
+
id: "dark",
|
|
244
|
+
name: "theme",
|
|
245
|
+
checked: n === "dark",
|
|
246
|
+
onChange: () => l("dark"),
|
|
247
|
+
children: [/* @__PURE__ */ O(a, {}), "Dark"]
|
|
248
|
+
})
|
|
249
|
+
] })
|
|
250
|
+
}) })] });
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
export { $ as n, de as t };
|