highsoft-ui 1.0.111 → 1.0.113

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.
Files changed (68) hide show
  1. package/dist/Button-Bbc4vmW_.js +45 -0
  2. package/dist/Container-LAkF4ShX.js +11 -0
  3. package/dist/CookiePolicyModal-BH2uHybE.js +90 -0
  4. package/dist/Footer-DY0QJnxb.js +783 -0
  5. package/dist/GPTInput-DRFGKJ2u.js +66 -0
  6. package/dist/Header-DbSqXuvO.js +383 -0
  7. package/dist/Logo-CZ5LYqub.js +194 -0
  8. package/dist/NewTag-C-3mRyvV.js +26 -0
  9. package/dist/Notification-_vWBqFiA.js +96 -0
  10. package/dist/PrefPanel-DmiRZs1n.js +1548 -0
  11. package/dist/Search-D_fsZ-hm.js +4673 -0
  12. package/dist/clsx-ROFf4vs9.js +16 -0
  13. package/dist/components/Button/index.js +2 -81
  14. package/dist/components/Container/index.js +2 -11
  15. package/dist/components/Footer/CookiePolicyModal.js +2 -9
  16. package/dist/components/Footer/index.js +2 -833
  17. package/dist/components/GPTInput/index.js +2 -86
  18. package/dist/components/Header/index.js +2 -611
  19. package/dist/components/Logo/index.js +2 -255
  20. package/dist/components/NewTag/index.js +2 -54
  21. package/dist/components/Notification/index.js +2 -100
  22. package/dist/components/PrefPanel/index.js +2 -1945
  23. package/dist/components/Search/index.js +2 -9
  24. package/dist/components/ThemeLoader/index.js +6 -34
  25. package/dist/components/icons/Bubble.js +37 -52
  26. package/dist/components/icons/MadeInNorway.js +110 -145
  27. package/dist/components/icons/Plane.js +17 -23
  28. package/dist/dist-0f0-S8_q.js +211 -0
  29. package/dist/dist-CjrKJb_1.js +27 -0
  30. package/dist/es2015-CzBBLWyD.js +1140 -0
  31. package/dist/esm-C1TDRARf.js +479 -0
  32. package/dist/highsoft-ui.css +2 -1
  33. package/dist/main.js +12 -28
  34. package/dist/php-client.js +9 -9
  35. package/dist/php.js +10 -16
  36. package/dist/utils-C4QGLbxr.js +162 -0
  37. package/dist/utils.js +2 -11
  38. package/package.json +14 -8
  39. package/dist/Announcement03-obPaH4LK.js +0 -23
  40. package/dist/Check-Cm4roSEj.js +0 -23
  41. package/dist/CookiePolicyModal-C5FOuvB-.js +0 -82
  42. package/dist/XClose-CCu1vrNS.js +0 -23
  43. package/dist/clsx-OuTLNxxd.js +0 -16
  44. package/dist/extends-hS2Bh-Yp.js +0 -12
  45. package/dist/index-CUCGgBGk.js +0 -5654
  46. package/dist/index-CYz8LhDn.js +0 -1110
  47. package/dist/index-DThcOQDt.js +0 -234
  48. package/dist/index-hYJmp-0x.js +0 -30
  49. package/dist/utils-BKDJp1i0.js +0 -140
  50. /package/dist/{components → lib/components}/Button/index.d.ts +0 -0
  51. /package/dist/{components → lib/components}/Container/index.d.ts +0 -0
  52. /package/dist/{components → lib/components}/Footer/CookiePolicyModal.d.ts +0 -0
  53. /package/dist/{components → lib/components}/Footer/index.d.ts +0 -0
  54. /package/dist/{components → lib/components}/GPTInput/index.d.ts +0 -0
  55. /package/dist/{components → lib/components}/Header/index.d.ts +0 -0
  56. /package/dist/{components → lib/components}/Logo/index.d.ts +0 -0
  57. /package/dist/{components → lib/components}/NewTag/index.d.ts +0 -0
  58. /package/dist/{components → lib/components}/Notification/index.d.ts +0 -0
  59. /package/dist/{components → lib/components}/PrefPanel/index.d.ts +0 -0
  60. /package/dist/{components → lib/components}/Search/index.d.ts +0 -0
  61. /package/dist/{components → lib/components}/ThemeLoader/index.d.ts +0 -0
  62. /package/dist/{components → lib/components}/icons/Bubble.d.ts +0 -0
  63. /package/dist/{components → lib/components}/icons/MadeInNorway.d.ts +0 -0
  64. /package/dist/{components → lib/components}/icons/Plane.d.ts +0 -0
  65. /package/dist/{main.d.ts → lib/main.d.ts} +0 -0
  66. /package/dist/{php-client.d.ts → lib/php-client.d.ts} +0 -0
  67. /package/dist/{php.d.ts → lib/php.d.ts} +0 -0
  68. /package/dist/{utils.d.ts → lib/utils.d.ts} +0 -0
@@ -0,0 +1,211 @@
1
+ import { _ as e, a as t, c as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, t as p, u as m } from "./es2015-CzBBLWyD.js";
2
+ import * as h from "react";
3
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
4
+ //#region node_modules/@radix-ui/react-dialog/dist/index.mjs
5
+ var y = "Dialog", [b, ee] = c(y), [x, S] = b(y), C = (e) => {
6
+ let { __scopeDialog: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = h.useRef(null), l = h.useRef(null), [u, d] = m({
7
+ prop: i,
8
+ defaultProp: a ?? !1,
9
+ onChange: o,
10
+ caller: y
11
+ });
12
+ return /* @__PURE__ */ _(x, {
13
+ scope: t,
14
+ triggerRef: c,
15
+ contentRef: l,
16
+ contentId: n(),
17
+ titleId: n(),
18
+ descriptionId: n(),
19
+ open: u,
20
+ onOpenChange: d,
21
+ onOpenToggle: h.useCallback(() => d((e) => !e), [d]),
22
+ modal: s,
23
+ children: r
24
+ });
25
+ };
26
+ C.displayName = y;
27
+ var w = "DialogTrigger", T = h.forwardRef((t, n) => {
28
+ let { __scopeDialog: i, ...o } = t, s = S(w, i), c = e(n, s.triggerRef);
29
+ return /* @__PURE__ */ _(a.button, {
30
+ type: "button",
31
+ "aria-haspopup": "dialog",
32
+ "aria-expanded": s.open,
33
+ "aria-controls": s.contentId,
34
+ "data-state": G(s.open),
35
+ ...o,
36
+ ref: c,
37
+ onClick: r(t.onClick, s.onOpenToggle)
38
+ });
39
+ });
40
+ T.displayName = w;
41
+ var E = "DialogPortal", [D, O] = b(E, { forceMount: void 0 }), k = (e) => {
42
+ let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = S(E, t);
43
+ return /* @__PURE__ */ _(D, {
44
+ scope: t,
45
+ forceMount: n,
46
+ children: h.Children.map(r, (e) => /* @__PURE__ */ _(s, {
47
+ present: n || a.open,
48
+ children: /* @__PURE__ */ _(o, {
49
+ asChild: !0,
50
+ container: i,
51
+ children: e
52
+ })
53
+ }))
54
+ });
55
+ };
56
+ k.displayName = E;
57
+ var A = "DialogOverlay", j = h.forwardRef((e, t) => {
58
+ let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
59
+ return a.modal ? /* @__PURE__ */ _(s, {
60
+ present: r || a.open,
61
+ children: /* @__PURE__ */ _(N, {
62
+ ...i,
63
+ ref: t
64
+ })
65
+ }) : null;
66
+ });
67
+ j.displayName = A;
68
+ var M = i("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
69
+ let { __scopeDialog: n, ...r } = e, i = S(A, n);
70
+ return /* @__PURE__ */ _(l, {
71
+ as: M,
72
+ allowPinchZoom: !0,
73
+ shards: [i.contentRef],
74
+ children: /* @__PURE__ */ _(a.div, {
75
+ "data-state": G(i.open),
76
+ ...r,
77
+ ref: t,
78
+ style: {
79
+ pointerEvents: "auto",
80
+ ...r.style
81
+ }
82
+ })
83
+ });
84
+ }), P = "DialogContent", F = h.forwardRef((e, t) => {
85
+ let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
86
+ return /* @__PURE__ */ _(s, {
87
+ present: r || a.open,
88
+ children: a.modal ? /* @__PURE__ */ _(I, {
89
+ ...i,
90
+ ref: t
91
+ }) : /* @__PURE__ */ _(L, {
92
+ ...i,
93
+ ref: t
94
+ })
95
+ });
96
+ });
97
+ F.displayName = P;
98
+ var I = h.forwardRef((t, n) => {
99
+ let i = S(P, t.__scopeDialog), a = h.useRef(null), o = e(n, i.contentRef, a);
100
+ return h.useEffect(() => {
101
+ let e = a.current;
102
+ if (e) return p(e);
103
+ }, []), /* @__PURE__ */ _(R, {
104
+ ...t,
105
+ ref: o,
106
+ trapFocus: i.open,
107
+ disableOutsidePointerEvents: !0,
108
+ onCloseAutoFocus: r(t.onCloseAutoFocus, (e) => {
109
+ e.preventDefault(), i.triggerRef.current?.focus();
110
+ }),
111
+ onPointerDownOutside: r(t.onPointerDownOutside, (e) => {
112
+ let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
113
+ (t.button === 2 || n) && e.preventDefault();
114
+ }),
115
+ onFocusOutside: r(t.onFocusOutside, (e) => e.preventDefault())
116
+ });
117
+ }), L = h.forwardRef((e, t) => {
118
+ let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
119
+ return /* @__PURE__ */ _(R, {
120
+ ...e,
121
+ ref: t,
122
+ trapFocus: !1,
123
+ disableOutsidePointerEvents: !1,
124
+ onCloseAutoFocus: (t) => {
125
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
126
+ },
127
+ onInteractOutside: (t) => {
128
+ e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
129
+ let a = t.target;
130
+ n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
131
+ }
132
+ });
133
+ }), R = h.forwardRef((n, r) => {
134
+ let { __scopeDialog: i, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = n, l = S(P, i), d = h.useRef(null), p = e(r, d);
135
+ return f(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(t, {
136
+ asChild: !0,
137
+ loop: !0,
138
+ trapped: a,
139
+ onMountAutoFocus: o,
140
+ onUnmountAutoFocus: s,
141
+ children: /* @__PURE__ */ _(u, {
142
+ role: "dialog",
143
+ id: l.contentId,
144
+ "aria-describedby": l.descriptionId,
145
+ "aria-labelledby": l.titleId,
146
+ "data-state": G(l.open),
147
+ ...c,
148
+ ref: p,
149
+ onDismiss: () => l.onOpenChange(!1)
150
+ })
151
+ }), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(J, { titleId: l.titleId }), /* @__PURE__ */ _(X, {
152
+ contentRef: d,
153
+ descriptionId: l.descriptionId
154
+ })] })] });
155
+ }), z = "DialogTitle", B = h.forwardRef((e, t) => {
156
+ let { __scopeDialog: n, ...r } = e, i = S(z, n);
157
+ return /* @__PURE__ */ _(a.h2, {
158
+ id: i.titleId,
159
+ ...r,
160
+ ref: t
161
+ });
162
+ });
163
+ B.displayName = z;
164
+ var V = "DialogDescription", H = h.forwardRef((e, t) => {
165
+ let { __scopeDialog: n, ...r } = e, i = S(V, n);
166
+ return /* @__PURE__ */ _(a.p, {
167
+ id: i.descriptionId,
168
+ ...r,
169
+ ref: t
170
+ });
171
+ });
172
+ H.displayName = V;
173
+ var U = "DialogClose", W = h.forwardRef((e, t) => {
174
+ let { __scopeDialog: n, ...i } = e, o = S(U, n);
175
+ return /* @__PURE__ */ _(a.button, {
176
+ type: "button",
177
+ ...i,
178
+ ref: t,
179
+ onClick: r(e.onClick, () => o.onOpenChange(!1))
180
+ });
181
+ });
182
+ W.displayName = U;
183
+ function G(e) {
184
+ return e ? "open" : "closed";
185
+ }
186
+ var K = "DialogTitleWarning", [te, q] = d(K, {
187
+ contentName: P,
188
+ titleName: z,
189
+ docsSlug: "dialog"
190
+ }), J = ({ titleId: e }) => {
191
+ let t = q(K), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
192
+
193
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
194
+
195
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
196
+ return h.useEffect(() => {
197
+ e && (document.getElementById(e) || console.error(n));
198
+ }, [n, e]), null;
199
+ }, Y = "DialogDescriptionWarning", X = ({ contentRef: e, descriptionId: t }) => {
200
+ let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q(Y).contentName}}.`;
201
+ return h.useEffect(() => {
202
+ let r = e.current?.getAttribute("aria-describedby");
203
+ t && r && (document.getElementById(t) || console.warn(n));
204
+ }, [
205
+ n,
206
+ e,
207
+ t
208
+ ]), null;
209
+ }, Z = C, Q = T, $ = k, ne = j, re = F, ie = B, ae = W;
210
+ //#endregion
211
+ export { Z as a, $ as i, re as n, ie as o, ne as r, Q as s, ae as t };
@@ -0,0 +1,27 @@
1
+ import { h as e } from "./es2015-CzBBLWyD.js";
2
+ import * as t from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
5
+ var r = Object.freeze({
6
+ position: "absolute",
7
+ border: 0,
8
+ width: 1,
9
+ height: 1,
10
+ padding: 0,
11
+ margin: -1,
12
+ overflow: "hidden",
13
+ clip: "rect(0, 0, 0, 0)",
14
+ whiteSpace: "nowrap",
15
+ wordWrap: "normal"
16
+ }), i = "VisuallyHidden", a = t.forwardRef((t, i) => /* @__PURE__ */ n(e.span, {
17
+ ...t,
18
+ ref: i,
19
+ style: {
20
+ ...r,
21
+ ...t.style
22
+ }
23
+ }));
24
+ a.displayName = i;
25
+ var o = a;
26
+ //#endregion
27
+ export { o as t };