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
@@ -1,255 +1,2 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { c as d } from "../../clsx-OuTLNxxd.js";
3
- const n = "xkIiMq_logo", p = {
4
- logo: n
5
- };
6
- function a({
7
- title: r = "Highcharts",
8
- light: c,
9
- showText: s = !0,
10
- withLink: f = !1,
11
- className: e,
12
- ...h
13
- }) {
14
- const o = c === void 0 ? "currentColor" : c ? "#18171c" : "#f7f7f8", l = /* @__PURE__ */ i(
15
- "svg",
16
- {
17
- version: "1.1",
18
- id: "logo-highcharts",
19
- "aria-labelledby": "logo-highcharts-title",
20
- role: "img",
21
- xmlns: "http://www.w3.org/2000/svg",
22
- xmlnsXlink: "http://www.w3.org/1999/xlink",
23
- x: "0px",
24
- y: "0px",
25
- viewBox: s ? "10 10 384 65" : "10 10 69 65",
26
- xmlSpace: "preserve",
27
- className: d(p.logo, e),
28
- ...h,
29
- children: [
30
- /* @__PURE__ */ t("title", { id: "logo-highcharts-title", children: r }),
31
- /* @__PURE__ */ i("g", { id: "symbol", transform: "translate(10, 10) scale(1)", children: [
32
- /* @__PURE__ */ t(
33
- "polygon",
34
- {
35
- fill: "#8087E8",
36
- points: "41.53900146484375,0 30.315000534057617,26.209999084472656 15.566999435424805,60.650997161865234 49.85900115966797,46.16499710083008 68.02299499511719,38.49300003051758 ",
37
- id: "svg_2",
38
- strokeWidth: "0",
39
- stroke: "#f0f0f0",
40
- fillOpacity: "1",
41
- strokeLinejoin: "round"
42
- }
43
- ),
44
- /* @__PURE__ */ t(
45
- "polygon",
46
- {
47
- fill: "#30426B",
48
- points: "47.25799560546875,31.729999542236328 49.86000061035156,46.16499710083008 68.02400207519531,38.49300003051758 ",
49
- id: "svg_3",
50
- strokeWidth: "0",
51
- stroke: "#f0f0f0",
52
- fillOpacity: "1",
53
- strokeLinejoin: "round"
54
- }
55
- ),
56
- /* @__PURE__ */ t(
57
- "polygon",
58
- {
59
- fill: "#6699A1",
60
- points: "41.53900146484375,0 47.25799560546875,31.730998992919922 68.02299499511719,38.49300003051758 ",
61
- id: "svg_4",
62
- strokeWidth: "0",
63
- stroke: "#f0f0f0",
64
- fillOpacity: "1",
65
- strokeLinejoin: "round"
66
- }
67
- ),
68
- /* @__PURE__ */ t(
69
- "polygon",
70
- {
71
- fill: "#78758C",
72
- points: "47.25799560546875,31.729999542236328 68.02400207519531,38.49300003051758 30.31599998474121,26.208999633789062 15.566999435424805,60.650997161865234 49.86000061035156,46.16499710083008 ",
73
- id: "svg_5",
74
- strokeWidth: "0",
75
- stroke: "#f0f0f0",
76
- fillOpacity: "1",
77
- strokeLinejoin: "round"
78
- }
79
- ),
80
- /* @__PURE__ */ t(
81
- "polygon",
82
- {
83
- fill: "#A3EDBA",
84
- points: "15.566999435424805,60.650997161865234 30.315000534057617,26.209999084472656 0,16.334999084472656 ",
85
- id: "svg_6",
86
- strokeWidth: "0",
87
- stroke: "#f0f0f0",
88
- fillOpacity: "1",
89
- strokeLinejoin: "round"
90
- }
91
- ),
92
- /* @__PURE__ */ t(
93
- "polygon",
94
- {
95
- fill: "#6699A1",
96
- points: "49.86000061035156,46.16499710083008 53.185997009277344,64.6099967956543 68.02400207519531,38.49300003051758 ",
97
- id: "svg_7",
98
- strokeWidth: "0",
99
- stroke: "#f0f0f0",
100
- fillOpacity: "1",
101
- strokeLinejoin: "round"
102
- }
103
- ),
104
- /* @__PURE__ */ t(
105
- "polygon",
106
- {
107
- fill: "#8087E8",
108
- points: "41.53900146484375,0 30.315000534057617,26.209999084472656 47.25799560546875,31.730998992919922 ",
109
- id: "svg_8",
110
- strokeWidth: "0",
111
- stroke: "#f0f0f0",
112
- fillOpacity: "1",
113
- strokeLinejoin: "round"
114
- }
115
- )
116
- ] }),
117
- s && /* @__PURE__ */ i(
118
- "g",
119
- {
120
- id: "text-highcharts",
121
- transform: "translate(108.02400207519531,31.291051292419436) scale(1)",
122
- children: [
123
- /* @__PURE__ */ t(
124
- "path",
125
- {
126
- fill: o,
127
- d: "M20.7189956665039,14.058000671386722 h-17.02 v9.77 c0,1.037 -0.8130000000000002,1.851 -1.8490000000000002,1.851 c-1.037,0 -1.85,-0.8130000000000002 -1.85,-1.851 V2.07100067138672 c0,-1.037 0.8130000000000002,-1.852 1.85,-1.852 c1.036,0 1.8490000000000002,0.8130000000000002 1.8490000000000002,1.852 v8.436 h17.02 v-8.436 c0,-1.037 0.8140000000000002,-1.852 1.85,-1.852 c1.036,0 1.85,0.8130000000000002 1.85,1.852 v21.754 c0,1.037 -0.8140000000000002,1.851 -1.85,1.851 c-1.036,0 -1.85,-0.8130000000000002 -1.85,-1.851 V14.058000671386722 z",
128
- id: "svg_2",
129
- strokeWidth: "0px",
130
- stroke: "#f0f0f0"
131
- }
132
- ),
133
- /* @__PURE__ */ t(
134
- "path",
135
- {
136
- fill: o,
137
- d: "M39.21699566650392,23.825000671386718 c0,1.037 -0.8140000000000002,1.851 -1.852,1.851 s-1.852,-0.8130000000000002 -1.852,-1.851 V2.07100067138672 c0,-1.037 0.8140000000000002,-1.852 1.852,-1.852 s1.852,0.8130000000000002 1.852,1.852 V23.825000671386718 z",
138
- id: "svg_3",
139
- strokeWidth: "0px",
140
- stroke: "#f0f0f0"
141
- }
142
- ),
143
- /* @__PURE__ */ t(
144
- "path",
145
- {
146
- fill: o,
147
- d: "M66.3689956665039,14.724000671386719 c0,-1.036 0.8140000000000002,-1.774 1.852,-1.774 c1.034,0 1.852,0.8130000000000002 1.852,1.8490000000000002 v5.847 c0,0.4440000000000001 -0.22600000000000006,1.109 -0.5950000000000002,1.479 c-2.367,2.369 -5.549,3.773 -9.176,3.773 c-7.178,0 -12.949,-5.771 -12.949,-12.948 c0,-7.181 5.771,-12.949 12.949,-12.949 c3.6270000000000002,0 6.809,1.405 9.176,3.771 c0.7380000000000002,0.7400000000000002 0.7380000000000002,1.852 0,2.592 c-0.7410000000000002,0.7380000000000002 -1.9220000000000002,0.8130000000000002 -2.6630000000000003,0.07200000000000002 c-1.702,-1.6990000000000005 -3.923,-2.736 -6.513,-2.736 c-5.104,0 -9.249,4.144 -9.249,9.25 c0,5.104 4.146,9.25 9.249,9.25 c2.367,0 4.441,-0.8130000000000002 6.067,-2.222 V14.724000671386719 z",
148
- id: "svg_4",
149
- strokeWidth: "0px",
150
- stroke: "#f0f0f0"
151
- }
152
- ),
153
- /* @__PURE__ */ t(
154
- "path",
155
- {
156
- fill: o,
157
- d: "M100.40599566650391,14.058000671386722 h-17.019 v9.77 c0,1.037 -0.8170000000000002,1.851 -1.852,1.851 c-1.037,0 -1.8490000000000002,-0.8130000000000002 -1.8490000000000002,-1.851 V2.07100067138672 c0,-1.037 0.812,-1.852 1.8490000000000002,-1.852 c1.034,0 1.852,0.8130000000000002 1.852,1.852 v8.436 h17.019 v-8.436 c0,-1.037 0.8130000000000002,-1.852 1.8490000000000002,-1.852 c1.037,0 1.852,0.8130000000000002 1.852,1.852 v21.754 c0,1.037 -0.8130000000000002,1.851 -1.852,1.851 c-1.033,0 -1.8490000000000002,-0.8130000000000002 -1.8490000000000002,-1.851 V14.058000671386722 z",
158
- id: "svg_5",
159
- strokeWidth: "0px",
160
- stroke: "#f0f0f0"
161
- }
162
- ),
163
- /* @__PURE__ */ t(
164
- "path",
165
- {
166
- fill: o,
167
- d: "M125.19199566650391,25.898000671386725 c-7.182,0 -12.949,-5.771 -12.949,-12.948 c0,-7.181 5.77,-12.949 12.949,-12.949 c3.6270000000000002,0 6.809,1.405 9.176,3.771 c0.7380000000000002,0.7400000000000002 0.7380000000000002,1.852 0,2.592 c-0.7410000000000002,0.7380000000000002 -1.925,0.8130000000000002 -2.6660000000000004,0.07200000000000002 c-1.6990000000000005,-1.6990000000000005 -3.92,-2.736 -6.51,-2.736 c-5.106,0 -9.249,4.144 -9.249,9.25 c0,5.104 4.143,9.25 9.249,9.25 c2.59,0 4.884,-0.9620000000000002 6.586,-2.664 c0.7400000000000002,-0.7410000000000002 1.8490000000000002,-0.7410000000000002 2.59,0 c0.7380000000000002,0.7380000000000002 0.7380000000000002,1.85 0,2.589 C131.9999956665039,24.49200067138672 128.81799566650392,25.898000671386725 125.19199566650391,25.898000671386725 z",
168
- id: "svg_6",
169
- strokeWidth: "0px",
170
- stroke: "#f0f0f0"
171
- }
172
- ),
173
- /* @__PURE__ */ t(
174
- "path",
175
- {
176
- fill: o,
177
- d: "M163.81299566650392,14.058000671386722 h-17.02 v9.77 c0,1.037 -0.8130000000000002,1.851 -1.852,1.851 c-1.034,0 -1.85,-0.8130000000000002 -1.85,-1.851 V2.07100067138672 c0,-1.037 0.8130000000000002,-1.852 1.85,-1.852 c1.035,0 1.852,0.8130000000000002 1.852,1.852 v8.436 h17.02 v-8.436 c0,-1.037 0.8130000000000002,-1.852 1.8530000000000002,-1.852 c1.034,0 1.8490000000000002,0.8130000000000002 1.8490000000000002,1.852 v21.754 c0,1.037 -0.8130000000000002,1.851 -1.8490000000000002,1.851 c-1.037,0 -1.8530000000000002,-0.8130000000000002 -1.8530000000000002,-1.851 V14.058000671386722 z",
178
- id: "svg_7",
179
- strokeWidth: "0px",
180
- stroke: "#f0f0f0"
181
- }
182
- ),
183
- /* @__PURE__ */ t(
184
- "path",
185
- {
186
- fill: o,
187
- d: "M191.0019956665039,1.8490006713867189 l10.507,20.646 c0.22300000000000006,0.4430000000000001 0.4450000000000001,1.036 0.4450000000000001,1.554 c0,1.036 -0.6680000000000003,1.6280000000000001 -1.702,1.6280000000000001 c-0.7410000000000002,0 -1.481,-0.22200000000000006 -2.001,-1.258 l-3.253,-6.438 h-13.547 l-3.183,6.438 c-0.517,1.036 -1.256,1.258 -1.994,1.258 c-1.037,0 -1.702,-0.5930000000000002 -1.702,-1.6280000000000001 c0,-0.519 0.22000000000000006,-1.109 0.4420000000000001,-1.554 l10.506,-20.646 c0.6680000000000003,-1.405 2.002,-1.6280000000000001 2.74,-1.6280000000000001 C189.0039956665039,0.22100067138671875 190.33399566650388,0.4420006713867153 191.0019956665039,1.8490006713867189 zM183.22899566650392,14.429000671386717 h9.988 l-4.957,-9.99 L183.22899566650392,14.429000671386717 z",
188
- id: "svg_8",
189
- strokeWidth: "0px",
190
- stroke: "#f0f0f0"
191
- }
192
- ),
193
- /* @__PURE__ */ t(
194
- "path",
195
- {
196
- fill: o,
197
- d: "M222.4029956665039,0.369000671386722 c4.441,0 8.064,3.255 8.064,7.694 c0,3.923 -2.813,6.884 -6.511,7.549 l6.731,7.104 c0.6640000000000003,0.6660000000000003 0.8890000000000002,1.85 0.14600000000000005,2.516 c-0.7360000000000002,0.7410000000000002 -2.145,0.521 -2.886,-0.2960000000000001 l-8.729,-9.176 h-6.511 v8.142 c0,1.034 -0.8150000000000002,1.774 -1.854,1.774 c-1.033,0 -1.85,-0.8130000000000002 -1.85,-1.851 V2.2190006713867163 c0,-1.035 0.8140000000000002,-1.85 1.85,-1.85 H222.4029956665039 zM212.71199566650392,3.9210006713867216 v8.288 h9.691 c2.59,0 4.367,-1.776 4.367,-4.146 c0,-2.365 -1.7770000000000001,-4.144 -4.367,-4.144 L212.71199566650392,3.9210006713867216 L212.71199566650392,3.9210006713867216 z",
198
- id: "svg_9",
199
- strokeWidth: "0px",
200
- stroke: "#f0f0f0"
201
- }
202
- ),
203
- /* @__PURE__ */ t(
204
- "path",
205
- {
206
- fill: o,
207
- d: "M247.29099566650393,3.9210006713867216 h-9.249 c-1.033,0 -1.8490000000000002,-0.7400000000000002 -1.8490000000000002,-1.776 c0,-1.034 0.8130000000000002,-1.7730000000000001 1.8490000000000002,-1.7730000000000001 h22.201 c1.037,0 1.852,0.7400000000000002 1.852,1.7730000000000001 c0,1.037 -0.8130000000000002,1.776 -1.852,1.776 h-9.249 V23.826000671386723 c0,1.037 -0.8130000000000002,1.851 -1.8490000000000002,1.851 c-1.037,0 -1.854,-0.8130000000000002 -1.854,-1.851 V3.9210006713867216 z",
208
- id: "svg_10",
209
- strokeWidth: "0px",
210
- stroke: "#f0f0f0"
211
- }
212
- ),
213
- /* @__PURE__ */ t(
214
- "path",
215
- {
216
- fill: o,
217
- d: "M270.9679956665039,10.359000671386724 c0,-9.25 5.698,-10.359 9.99,-10.359 c1.035,0 1.85,0.8130000000000002 1.85,1.85 c0,1.036 -0.8130000000000002,1.851 -1.85,1.851 c-3.479,0 -6.29,0.7380000000000002 -6.29,6.66 v5.18 c0,9.25 -5.698,10.358 -9.989,10.358 c-1.035,0 -1.85,-0.8130000000000002 -1.85,-1.85 s0.8140000000000002,-1.85 1.85,-1.85 c3.479,0 6.289,-0.7400000000000002 6.289,-6.66 V10.359000671386724 z",
218
- id: "svg_11",
219
- strokeWidth: "0px",
220
- stroke: "#f0f0f0"
221
- }
222
- ),
223
- /* @__PURE__ */ i("g", { transform: "translate(280, 20) scale(0.03)", children: [
224
- /* @__PURE__ */ t(
225
- "circle",
226
- {
227
- cx: "100",
228
- cy: "100",
229
- r: "88.5",
230
- fill: "none",
231
- stroke: o,
232
- strokeWidth: "20"
233
- }
234
- ),
235
- /* @__PURE__ */ t(
236
- "path",
237
- {
238
- d: "M94.6 92C100.1 92 104.1 90.9 106.5 88.8C108.9 86.8 110.2 83.4 110.2 78.6C110.2 73.9 108.9 70.6 106.5 68.5C104.1 66.5 100.1 65.5 94.6 65.5L83.4 65.5L83.4 92L94.6 92M83.4 110.3L83.4 149.3L56.8 149.3L56.8 46.2L97.4 46.2C111 46.2 120.9 48.5 127.2 53.1C133.6 57.6 136.7 64.8 136.7 74.7C136.7 81.5 135.1 87.1 131.8 91.5C128.5 95.8 123.6 99.1 116.9 101.1C120.6 102 123.8 103.9 126.7 106.8C129.6 109.7 132.5 114.1 135.4 120.1L149.9 149.3L121.6 149.3L109 123.7C106.5 118.6 103.9 115 101.3 113.2C98.7 111.3 95.2 110.3 90.9 110.3L83.4 110.3",
239
- strokeWidth: "0px",
240
- stroke: "#f0f0f0",
241
- fill: o
242
- }
243
- )
244
- ] })
245
- ]
246
- }
247
- )
248
- ]
249
- }
250
- );
251
- return f ? /* @__PURE__ */ t("a", { href: "https://www.highcharts.com", children: l }) : l;
252
- }
253
- export {
254
- a as Logo
255
- };
1
+ import { t as e } from "../../Logo-CZ5LYqub.js";
2
+ export { e as Logo };
@@ -1,54 +1,2 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import "react";
3
- import { _ as a } from "../../extends-hS2Bh-Yp.js";
4
- import { c as i } from "../../clsx-OuTLNxxd.js";
5
- var m = function(t) {
6
- return /* @__PURE__ */ r("svg", a({
7
- xmlns: "http://www.w3.org/2000/svg",
8
- width: 24,
9
- height: 24,
10
- fill: "none",
11
- viewBox: "0 0 24 24"
12
- }, t, {
13
- children: /* @__PURE__ */ r("path", {
14
- stroke: "currentColor",
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round",
17
- strokeWidth: 2,
18
- d: "M4.5 22v-5m0-10V2M2 4.5h5m-5 15h5M13 3l-1.7342 4.5089c-.282.7332-.423 1.0998-.6423 1.4082a3 3 0 0 1-.7064.7064c-.3084.2193-.675.3603-1.4082.6423L4 12l4.5089 1.7342c.7332.282 1.0998.423 1.4082.6423.2733.1943.5121.4331.7064.7064.2193.3084.3603.675.6423 1.4082L13 21l1.7342-4.5089c.282-.7332.423-1.0998.6423-1.4082a3 3 0 0 1 .7064-.7064c.3084-.2193.675-.3603 1.4082-.6423L22 12l-4.5089-1.7342c-.7332-.282-1.0998-.423-1.4082-.6423a3 3 0 0 1-.7064-.7064c-.2193-.3084-.3603-.675-.6423-1.4082z"
19
- })
20
- }));
21
- };
22
- const d = "zmzqxW_attention", z = "zmzqxW_border", l = "zmzqxW_brand", u = "zmzqxW_danger", x = "zmzqxW_icon", g = "zmzqxW_neutral", h = "zmzqxW_success", _ = "zmzqxW_tag", n = {
23
- attention: d,
24
- border: z,
25
- brand: l,
26
- danger: u,
27
- icon: x,
28
- neutral: g,
29
- success: h,
30
- tag: _
31
- };
32
- function b({
33
- variant: s = "success",
34
- icon: t = !0,
35
- border: o,
36
- className: e
37
- }) {
38
- return /* @__PURE__ */ c(
39
- "span",
40
- {
41
- className: i(e, n.tag, n[s], {
42
- [n.icon]: t,
43
- [n.border]: o
44
- }),
45
- children: [
46
- t && /* @__PURE__ */ r(m, {}),
47
- "New"
48
- ]
49
- }
50
- );
51
- }
52
- export {
53
- b as NewTag
54
- };
1
+ import { t as e } from "../../NewTag-C-3mRyvV.js";
2
+ export { e as NewTag };
@@ -1,100 +1,2 @@
1
- import { jsx as s, jsxs as l, Fragment as w } from "react/jsx-runtime";
2
- import { useState as d, useEffect as C } from "react";
3
- import { X as F } from "../../XClose-CCu1vrNS.js";
4
- import { c as p } from "../../clsx-OuTLNxxd.js";
5
- import { Button as y } from "../Button/index.js";
6
- import { Container as A } from "../Container/index.js";
7
- import { NewTag as B } from "../NewTag/index.js";
8
- const E = "MhRkRW_active", j = "MhRkRW_attention", H = "MhRkRW_brand", L = "MhRkRW_carousel", P = "MhRkRW_close", X = "MhRkRW_container", $ = "MhRkRW_content", z = "MhRkRW_danger", D = "MhRkRW_description", S = "MhRkRW_notification", U = "MhRkRW_slide", q = "MhRkRW_success", G = "MhRkRW_title", J = "MhRkRW_titleText", e = {
9
- active: E,
10
- attention: j,
11
- brand: H,
12
- carousel: L,
13
- close: P,
14
- container: X,
15
- content: $,
16
- danger: z,
17
- description: D,
18
- notification: S,
19
- slide: U,
20
- success: q,
21
- title: G,
22
- titleText: J
23
- };
24
- function nt({
25
- id: M,
26
- content: i,
27
- variant: r = "brand",
28
- closable: g = !0,
29
- onClose: k
30
- }) {
31
- const n = Array.isArray(i) ? i : [i], [h, v] = d(
32
- () => n.length > 1 ? Math.floor(Math.random() * n.length) : 0
33
- ), [W, u] = d(!1), [_, R] = d(!1), f = W || _, c = n[h]?.url, N = c ? "a" : "div";
34
- C(() => {
35
- if (n.length <= 1 || f) return;
36
- const t = window.setInterval(() => {
37
- v((o) => (o + 1) % n.length);
38
- }, 15e3);
39
- return () => window.clearInterval(t);
40
- }, [n.length, f]);
41
- const b = () => u(!0), x = (t) => {
42
- t.currentTarget.contains(t.relatedTarget) || u(!1);
43
- }, I = () => R(!0), T = () => R(!1), m = (t, o = !0) => {
44
- const a = /* @__PURE__ */ l(w, { children: [
45
- t.title && /* @__PURE__ */ l("span", { className: e.title, children: [
46
- t.tag === "new" && /* @__PURE__ */ s(B, { variant: r, icon: !1 }),
47
- /* @__PURE__ */ s("span", { className: e.titleText, children: t.title })
48
- ] }),
49
- t.description && /* @__PURE__ */ s("span", { className: e.description, children: t.description })
50
- ] });
51
- return /* @__PURE__ */ s("div", { className: e.content, "aria-hidden": !o, children: a });
52
- };
53
- return n.length ? /* @__PURE__ */ s(
54
- N,
55
- {
56
- className: p(e.notification, e[r]),
57
- "data-theme": "light",
58
- ...c ? {
59
- href: c,
60
- "data-track": "header-banner",
61
- "data-track-action": "click",
62
- "data-track-label": M || c
63
- } : {},
64
- onFocus: b,
65
- onBlur: x,
66
- onMouseEnter: I,
67
- onMouseLeave: T,
68
- children: /* @__PURE__ */ l(A, { className: e.container, children: [
69
- n.length > 1 ? /* @__PURE__ */ s("div", { className: e.carousel, children: n.map((t, o) => {
70
- const a = o === h;
71
- return /* @__PURE__ */ s(
72
- "div",
73
- {
74
- className: p(e.slide, { [e.active]: a }),
75
- "aria-hidden": !a,
76
- children: m(t, a)
77
- },
78
- `${t.title ?? t.description ?? "item"}-${o}`
79
- );
80
- }) }) : m(n[0]),
81
- g && /* @__PURE__ */ s(
82
- y,
83
- {
84
- variant: r === "brand" ? "brand" : "transparent",
85
- size: 100,
86
- className: e.close,
87
- "aria-label": "Close notification",
88
- onClick: (t) => {
89
- t.preventDefault(), t.stopPropagation(), k?.();
90
- },
91
- children: /* @__PURE__ */ s(F, {})
92
- }
93
- )
94
- ] })
95
- }
96
- ) : null;
97
- }
98
- export {
99
- nt as Notification
100
- };
1
+ import { t as e } from "../../Notification-_vWBqFiA.js";
2
+ export { e as Notification };