@contentmunch/contentmunch-ui 1.1.3 → 1.1.4
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/lib/icon/Drawings.d.ts +21 -0
- package/lib/index.cjs.js +3 -3
- package/lib/index.es.js +692 -575
- package/lib/index.umd.js +4 -4
- package/lib/input/TextInputDropdown.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o1, { useState as S, Fragment as s, useRef as d1, useCallback as G, useEffect as Q, useMemo as l1 } from "react";
|
|
2
2
|
var K = { exports: {} }, B = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -9,27 +9,27 @@ var K = { exports: {} }, B = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var n = Symbol.for("react.transitional.element"),
|
|
17
|
-
function r(i, c,
|
|
12
|
+
var t1;
|
|
13
|
+
function y1() {
|
|
14
|
+
if (t1) return B;
|
|
15
|
+
t1 = 1;
|
|
16
|
+
var n = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
|
|
17
|
+
function r(i, c, x) {
|
|
18
18
|
var o = null;
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
for (var
|
|
22
|
-
|
|
23
|
-
} else
|
|
24
|
-
return c =
|
|
19
|
+
if (x !== void 0 && (o = "" + x), c.key !== void 0 && (o = "" + c.key), "key" in c) {
|
|
20
|
+
x = {};
|
|
21
|
+
for (var a in c)
|
|
22
|
+
a !== "key" && (x[a] = c[a]);
|
|
23
|
+
} else x = c;
|
|
24
|
+
return c = x.ref, {
|
|
25
25
|
$$typeof: n,
|
|
26
26
|
type: i,
|
|
27
27
|
key: o,
|
|
28
28
|
ref: c !== void 0 ? c : null,
|
|
29
|
-
props:
|
|
29
|
+
props: x
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return B.Fragment =
|
|
32
|
+
return B.Fragment = l, B.jsx = r, B.jsxs = r, B;
|
|
33
33
|
}
|
|
34
34
|
var J = {};
|
|
35
35
|
/**
|
|
@@ -41,255 +41,255 @@ var J = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
function n(
|
|
48
|
-
if (
|
|
49
|
-
if (typeof
|
|
50
|
-
return
|
|
51
|
-
if (typeof
|
|
52
|
-
switch (
|
|
53
|
-
case
|
|
44
|
+
var c1;
|
|
45
|
+
function u1() {
|
|
46
|
+
return c1 || (c1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function n(t) {
|
|
48
|
+
if (t == null) return null;
|
|
49
|
+
if (typeof t == "function")
|
|
50
|
+
return t.$$typeof === z ? null : t.displayName || t.name || null;
|
|
51
|
+
if (typeof t == "string") return t;
|
|
52
|
+
switch (t) {
|
|
53
|
+
case g:
|
|
54
54
|
return "Fragment";
|
|
55
|
-
case
|
|
55
|
+
case f:
|
|
56
56
|
return "Profiler";
|
|
57
|
-
case
|
|
57
|
+
case _:
|
|
58
58
|
return "StrictMode";
|
|
59
|
-
case
|
|
59
|
+
case b:
|
|
60
60
|
return "Suspense";
|
|
61
61
|
case H:
|
|
62
62
|
return "SuspenseList";
|
|
63
|
-
case
|
|
63
|
+
case k:
|
|
64
64
|
return "Activity";
|
|
65
65
|
}
|
|
66
|
-
if (typeof
|
|
67
|
-
switch (typeof
|
|
66
|
+
if (typeof t == "object")
|
|
67
|
+
switch (typeof t.tag == "number" && console.error(
|
|
68
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
-
),
|
|
70
|
-
case
|
|
69
|
+
), t.$$typeof) {
|
|
70
|
+
case N:
|
|
71
71
|
return "Portal";
|
|
72
|
-
case
|
|
73
|
-
return (
|
|
74
|
-
case
|
|
75
|
-
return (
|
|
76
|
-
case
|
|
77
|
-
var
|
|
78
|
-
return
|
|
72
|
+
case C:
|
|
73
|
+
return (t.displayName || "Context") + ".Provider";
|
|
74
|
+
case E:
|
|
75
|
+
return (t._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case A:
|
|
77
|
+
var u = t.render;
|
|
78
|
+
return t = t.displayName, t || (t = u.displayName || u.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
79
79
|
case P:
|
|
80
|
-
return
|
|
80
|
+
return u = t.displayName || null, u !== null ? u : n(t.type) || "Memo";
|
|
81
81
|
case m:
|
|
82
|
-
|
|
82
|
+
u = t._payload, t = t._init;
|
|
83
83
|
try {
|
|
84
|
-
return n(
|
|
84
|
+
return n(t(u));
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function t
|
|
91
|
-
return "" +
|
|
90
|
+
function l(t) {
|
|
91
|
+
return "" + t;
|
|
92
92
|
}
|
|
93
|
-
function r(
|
|
93
|
+
function r(t) {
|
|
94
94
|
try {
|
|
95
|
-
t
|
|
96
|
-
var
|
|
95
|
+
l(t);
|
|
96
|
+
var u = !1;
|
|
97
97
|
} catch {
|
|
98
|
-
|
|
98
|
+
u = !0;
|
|
99
99
|
}
|
|
100
|
-
if (
|
|
101
|
-
|
|
102
|
-
var
|
|
103
|
-
return
|
|
104
|
-
|
|
100
|
+
if (u) {
|
|
101
|
+
u = console;
|
|
102
|
+
var M = u.error, R = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
103
|
+
return M.call(
|
|
104
|
+
u,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
-
|
|
107
|
-
), t
|
|
106
|
+
R
|
|
107
|
+
), l(t);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function i(
|
|
111
|
-
if (
|
|
112
|
-
if (typeof
|
|
110
|
+
function i(t) {
|
|
111
|
+
if (t === g) return "<>";
|
|
112
|
+
if (typeof t == "object" && t !== null && t.$$typeof === m)
|
|
113
113
|
return "<...>";
|
|
114
114
|
try {
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var u = n(t);
|
|
116
|
+
return u ? "<" + u + ">" : "<...>";
|
|
117
117
|
} catch {
|
|
118
118
|
return "<...>";
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
function c() {
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var t = O.A;
|
|
123
|
+
return t === null ? null : t.getOwner();
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function x() {
|
|
126
126
|
return Error("react-stack-top-frame");
|
|
127
127
|
}
|
|
128
|
-
function o(
|
|
129
|
-
if (X.call(
|
|
130
|
-
var
|
|
131
|
-
if (
|
|
128
|
+
function o(t) {
|
|
129
|
+
if (X.call(t, "key")) {
|
|
130
|
+
var u = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
131
|
+
if (u && u.isReactWarning) return !1;
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return t.key !== void 0;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
function
|
|
135
|
+
function a(t, u) {
|
|
136
|
+
function M() {
|
|
137
137
|
$ || ($ = !0, console.error(
|
|
138
138
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
-
|
|
139
|
+
u
|
|
140
140
|
));
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
get:
|
|
142
|
+
M.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
143
|
+
get: M,
|
|
144
144
|
configurable: !0
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function j() {
|
|
148
|
-
var
|
|
149
|
-
return Y[
|
|
148
|
+
var t = n(this.type);
|
|
149
|
+
return Y[t] || (Y[t] = !0, console.error(
|
|
150
150
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
-
)),
|
|
151
|
+
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
155
|
-
$$typeof:
|
|
156
|
-
type:
|
|
157
|
-
key:
|
|
158
|
-
props:
|
|
153
|
+
function y(t, u, M, R, D, L, e1, s1) {
|
|
154
|
+
return M = L.ref, t = {
|
|
155
|
+
$$typeof: v,
|
|
156
|
+
type: t,
|
|
157
|
+
key: u,
|
|
158
|
+
props: L,
|
|
159
159
|
_owner: D
|
|
160
|
-
}, (
|
|
160
|
+
}, (M !== void 0 ? M : null) !== null ? Object.defineProperty(t, "ref", {
|
|
161
161
|
enumerable: !1,
|
|
162
162
|
get: j
|
|
163
|
-
}) : Object.defineProperty(
|
|
163
|
+
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
writable: !0,
|
|
167
167
|
value: 0
|
|
168
|
-
}), Object.defineProperty(
|
|
168
|
+
}), Object.defineProperty(t, "_debugInfo", {
|
|
169
169
|
configurable: !1,
|
|
170
170
|
enumerable: !1,
|
|
171
171
|
writable: !0,
|
|
172
172
|
value: null
|
|
173
|
-
}), Object.defineProperty(
|
|
173
|
+
}), Object.defineProperty(t, "_debugStack", {
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
|
-
value:
|
|
178
|
-
}), Object.defineProperty(
|
|
177
|
+
value: e1
|
|
178
|
+
}), Object.defineProperty(t, "_debugTask", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
183
|
-
}), Object.freeze && (Object.freeze(
|
|
182
|
+
value: s1
|
|
183
|
+
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
184
184
|
}
|
|
185
|
-
function d(
|
|
186
|
-
var
|
|
187
|
-
if (
|
|
188
|
-
if (
|
|
189
|
-
if (Z(
|
|
190
|
-
for (
|
|
191
|
-
h(
|
|
192
|
-
Object.freeze && Object.freeze(
|
|
185
|
+
function d(t, u, M, R, D, L, e1, s1) {
|
|
186
|
+
var T = u.children;
|
|
187
|
+
if (T !== void 0)
|
|
188
|
+
if (R)
|
|
189
|
+
if (Z(T)) {
|
|
190
|
+
for (R = 0; R < T.length; R++)
|
|
191
|
+
h(T[R]);
|
|
192
|
+
Object.freeze && Object.freeze(T);
|
|
193
193
|
} else
|
|
194
194
|
console.error(
|
|
195
195
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
196
|
);
|
|
197
|
-
else h(
|
|
198
|
-
if (X.call(
|
|
199
|
-
|
|
200
|
-
var F = Object.keys(
|
|
201
|
-
return
|
|
197
|
+
else h(T);
|
|
198
|
+
if (X.call(u, "key")) {
|
|
199
|
+
T = n(t);
|
|
200
|
+
var F = Object.keys(u).filter(function(j1) {
|
|
201
|
+
return j1 !== "key";
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
R = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", r1[T + R] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
204
|
`A props object containing a "key" prop is being spread into JSX:
|
|
205
205
|
let props = %s;
|
|
206
206
|
<%s {...props} />
|
|
207
207
|
React keys must be passed directly to JSX without using spread:
|
|
208
208
|
let props = %s;
|
|
209
209
|
<%s key={someKey} {...props} />`,
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
R,
|
|
211
|
+
T,
|
|
212
212
|
F,
|
|
213
|
-
|
|
214
|
-
),
|
|
213
|
+
T
|
|
214
|
+
), r1[T + R] = !0);
|
|
215
215
|
}
|
|
216
|
-
if (
|
|
217
|
-
|
|
218
|
-
for (var
|
|
219
|
-
|
|
220
|
-
} else
|
|
221
|
-
return
|
|
222
|
-
|
|
223
|
-
typeof
|
|
224
|
-
),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
216
|
+
if (T = null, M !== void 0 && (r(M), T = "" + M), o(u) && (r(u.key), T = "" + u.key), "key" in u) {
|
|
217
|
+
M = {};
|
|
218
|
+
for (var n1 in u)
|
|
219
|
+
n1 !== "key" && (M[n1] = u[n1]);
|
|
220
|
+
} else M = u;
|
|
221
|
+
return T && a(
|
|
222
|
+
M,
|
|
223
|
+
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
224
|
+
), y(
|
|
225
|
+
t,
|
|
226
|
+
T,
|
|
227
|
+
L,
|
|
228
228
|
D,
|
|
229
229
|
c(),
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
M,
|
|
231
|
+
e1,
|
|
232
|
+
s1
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function h(
|
|
236
|
-
typeof
|
|
235
|
+
function h(t) {
|
|
236
|
+
typeof t == "object" && t !== null && t.$$typeof === v && t._store && (t._store.validated = 1);
|
|
237
237
|
}
|
|
238
|
-
var p =
|
|
238
|
+
var p = o1, v = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), C = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), O = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, Z = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
239
239
|
return null;
|
|
240
240
|
};
|
|
241
241
|
p = {
|
|
242
|
-
"react-stack-bottom-frame": function(
|
|
243
|
-
return
|
|
242
|
+
"react-stack-bottom-frame": function(t) {
|
|
243
|
+
return t();
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
246
|
var $, Y = {}, U = p["react-stack-bottom-frame"].bind(
|
|
247
247
|
p,
|
|
248
|
-
|
|
249
|
-
)(), W = I(i(
|
|
250
|
-
J.Fragment =
|
|
251
|
-
var
|
|
248
|
+
x
|
|
249
|
+
)(), W = I(i(x)), r1 = {};
|
|
250
|
+
J.Fragment = g, J.jsx = function(t, u, M, R, D) {
|
|
251
|
+
var L = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
252
252
|
return d(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
t,
|
|
254
|
+
u,
|
|
255
|
+
M,
|
|
256
256
|
!1,
|
|
257
|
-
|
|
257
|
+
R,
|
|
258
258
|
D,
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
L ? Error("react-stack-top-frame") : U,
|
|
260
|
+
L ? I(i(t)) : W
|
|
261
261
|
);
|
|
262
|
-
}, J.jsxs = function(
|
|
263
|
-
var
|
|
262
|
+
}, J.jsxs = function(t, u, M, R, D) {
|
|
263
|
+
var L = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
264
264
|
return d(
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
t,
|
|
266
|
+
u,
|
|
267
|
+
M,
|
|
268
268
|
!0,
|
|
269
|
-
|
|
269
|
+
R,
|
|
270
270
|
D,
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
L ? Error("react-stack-top-frame") : U,
|
|
272
|
+
L ? I(i(t)) : W
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
275
|
}()), J;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
279
|
-
return
|
|
277
|
+
var i1;
|
|
278
|
+
function p1() {
|
|
279
|
+
return i1 || (i1 = 1, process.env.NODE_ENV === "production" ? K.exports = y1() : K.exports = u1()), K.exports;
|
|
280
280
|
}
|
|
281
|
-
var e =
|
|
282
|
-
const
|
|
283
|
-
const { folds: i } = r, [c,
|
|
281
|
+
var e = p1();
|
|
282
|
+
const A1 = ({ variant: n, collapsed: l, children: r }) => {
|
|
283
|
+
const { folds: i } = r, [c, x] = S(l ? -1 : 0), o = (d) => d === c ? "fold active" : "fold", a = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (i[d].foldColor ? " fold-button--primary fold-button--" + i[d].foldColor : ""), j = (d) => {
|
|
284
284
|
const h = d.which.toString(), p = d.ctrlKey && h.match(/33|34/);
|
|
285
285
|
if (h.match(/38|40/) || p) {
|
|
286
|
-
const
|
|
287
|
-
|
|
286
|
+
const v = h.match(/34|40/) ? 1 : -1, N = i.length, g = (c + N + v) % N;
|
|
287
|
+
x(g);
|
|
288
288
|
} else
|
|
289
|
-
h === "36" &&
|
|
289
|
+
h === "36" && x(0), h === "35" && x(i.length - 1);
|
|
290
290
|
d.preventDefault();
|
|
291
|
-
},
|
|
292
|
-
|
|
291
|
+
}, y = (d) => {
|
|
292
|
+
x(c === d ? -1 : d);
|
|
293
293
|
};
|
|
294
294
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children: i.map(
|
|
295
295
|
(d, h) => /* @__PURE__ */ e.jsxs(
|
|
@@ -301,9 +301,9 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
301
301
|
/* @__PURE__ */ e.jsx(
|
|
302
302
|
"button",
|
|
303
303
|
{
|
|
304
|
-
className:
|
|
304
|
+
className: a(h),
|
|
305
305
|
onKeyDown: j,
|
|
306
|
-
onClick: () =>
|
|
306
|
+
onClick: () => y(h),
|
|
307
307
|
children: /* @__PURE__ */ e.jsx("span", { children: d.heading })
|
|
308
308
|
}
|
|
309
309
|
),
|
|
@@ -313,14 +313,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
313
313
|
"muncher-accordion-fold-" + h
|
|
314
314
|
)
|
|
315
315
|
) });
|
|
316
|
-
},
|
|
316
|
+
}, m1 = ({
|
|
317
317
|
show: n = !1,
|
|
318
|
-
backdropClickHandler:
|
|
318
|
+
backdropClickHandler: l,
|
|
319
319
|
...r
|
|
320
|
-
}) => n ? /* @__PURE__ */ e.jsx("div", { className: "muncher-backdrop", onClick:
|
|
321
|
-
const
|
|
322
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
323
|
-
},
|
|
320
|
+
}) => n ? /* @__PURE__ */ e.jsx("div", { className: "muncher-backdrop", onClick: l, ...r }) : null, f1 = ({ variant: n, rounded: l, border: r, children: i, ...c }) => {
|
|
321
|
+
const x = "muncher-badge" + (n ? " muncher-badge--" + n : "") + (l ? " muncher-badge--rounded" : "") + (r ? " muncher-badge--border" : "");
|
|
322
|
+
return /* @__PURE__ */ e.jsx("div", { className: x, ...c, children: i });
|
|
323
|
+
}, x1 = {
|
|
324
324
|
"align-center": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
325
325
|
/* @__PURE__ */ e.jsx("line", { x1: "18", y1: "10", x2: "6", y2: "10" }),
|
|
326
326
|
/* @__PURE__ */ e.jsx("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
|
|
@@ -412,6 +412,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
412
412
|
/* @__PURE__ */ e.jsx("polyline", { points: "16 12 12 8 8 12" }),
|
|
413
413
|
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "16", x2: "12", y2: "8" })
|
|
414
414
|
] }),
|
|
415
|
+
anchor: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
416
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "5", r: "3" }),
|
|
417
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "22", x2: "12", y2: "8" }),
|
|
418
|
+
/* @__PURE__ */ e.jsx("path", { d: "M5 12H2a10 10 0 0 0 20 0h-3" })
|
|
419
|
+
] }),
|
|
415
420
|
hamburger: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
416
421
|
/* @__PURE__ */ e.jsx("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
|
417
422
|
/* @__PURE__ */ e.jsx("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
|
@@ -471,6 +476,15 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
471
476
|
/* @__PURE__ */ e.jsx("polyline", { points: "12 6 12 12 16 14" })
|
|
472
477
|
] }),
|
|
473
478
|
cloud: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("path", { d: "M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z" }) }),
|
|
479
|
+
"cloud-drizzle": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
480
|
+
/* @__PURE__ */ e.jsx("line", { x1: "8", y1: "19", x2: "8", y2: "21" }),
|
|
481
|
+
/* @__PURE__ */ e.jsx("line", { x1: "8", y1: "13", x2: "8", y2: "15" }),
|
|
482
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16", y1: "19", x2: "16", y2: "21" }),
|
|
483
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16", y1: "13", x2: "16", y2: "15" }),
|
|
484
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
|
|
485
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "15", x2: "12", y2: "17" }),
|
|
486
|
+
/* @__PURE__ */ e.jsx("path", { d: "M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25" })
|
|
487
|
+
] }),
|
|
474
488
|
"cloud-lightning": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
475
489
|
/* @__PURE__ */ e.jsx("path", { d: "M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9" }),
|
|
476
490
|
/* @__PURE__ */ e.jsx("polyline", { points: "13 11 9 17 15 17 11 23" })
|
|
@@ -488,6 +502,86 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
488
502
|
}
|
|
489
503
|
)
|
|
490
504
|
] }),
|
|
505
|
+
coffee: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
506
|
+
/* @__PURE__ */ e.jsx("path", { d: "M18 8h1a4 4 0 0 1 0 8h-1" }),
|
|
507
|
+
/* @__PURE__ */ e.jsx("path", { d: "M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z" }),
|
|
508
|
+
/* @__PURE__ */ e.jsx("line", { x1: "6", y1: "1", x2: "6", y2: "4" }),
|
|
509
|
+
/* @__PURE__ */ e.jsx("line", { x1: "10", y1: "1", x2: "10", y2: "4" }),
|
|
510
|
+
/* @__PURE__ */ e.jsx("line", { x1: "14", y1: "1", x2: "14", y2: "4" })
|
|
511
|
+
] }),
|
|
512
|
+
compass: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
513
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
514
|
+
/* @__PURE__ */ e.jsx("polygon", { points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76" })
|
|
515
|
+
] }),
|
|
516
|
+
eye: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
517
|
+
/* @__PURE__ */ e.jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
518
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
519
|
+
] }),
|
|
520
|
+
feather: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
521
|
+
/* @__PURE__ */ e.jsx("path", { d: "M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z" }),
|
|
522
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16", y1: "8", x2: "2", y2: "22" }),
|
|
523
|
+
/* @__PURE__ */ e.jsx("line", { x1: "17.5", y1: "15", x2: "9", y2: "15" })
|
|
524
|
+
] }),
|
|
525
|
+
globe: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
526
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
527
|
+
/* @__PURE__ */ e.jsx("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
|
|
528
|
+
/* @__PURE__ */ e.jsx("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
|
|
529
|
+
] }),
|
|
530
|
+
headphone: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
531
|
+
/* @__PURE__ */ e.jsx("path", { d: "M3 18v-6a9 9 0 0 1 18 0v6" }),
|
|
532
|
+
/* @__PURE__ */ e.jsx(
|
|
533
|
+
"path",
|
|
534
|
+
{
|
|
535
|
+
d: "M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"
|
|
536
|
+
}
|
|
537
|
+
)
|
|
538
|
+
] }),
|
|
539
|
+
hexagon: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
|
|
540
|
+
"path",
|
|
541
|
+
{
|
|
542
|
+
d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
|
|
543
|
+
}
|
|
544
|
+
) }),
|
|
545
|
+
package: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
546
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16.5", y1: "9.4", x2: "7.5", y2: "4.21" }),
|
|
547
|
+
/* @__PURE__ */ e.jsx(
|
|
548
|
+
"path",
|
|
549
|
+
{
|
|
550
|
+
d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
|
|
551
|
+
}
|
|
552
|
+
),
|
|
553
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }),
|
|
554
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "22.08", x2: "12", y2: "12" })
|
|
555
|
+
] }),
|
|
556
|
+
"paper-clip": /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
|
|
557
|
+
"path",
|
|
558
|
+
{
|
|
559
|
+
d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"
|
|
560
|
+
}
|
|
561
|
+
) }),
|
|
562
|
+
"pen-tool": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
563
|
+
/* @__PURE__ */ e.jsx("path", { d: "M12 19l7-7 3 3-7 7-3-3z" }),
|
|
564
|
+
/* @__PURE__ */ e.jsx("path", { d: "M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z" }),
|
|
565
|
+
/* @__PURE__ */ e.jsx("path", { d: "M2 2l7.586 7.586" }),
|
|
566
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "11", cy: "11", r: "2" })
|
|
567
|
+
] }),
|
|
568
|
+
pocket: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
569
|
+
/* @__PURE__ */ e.jsx("path", { d: "M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z" }),
|
|
570
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "8 10 12 14 16 10" })
|
|
571
|
+
] }),
|
|
572
|
+
shield: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }),
|
|
573
|
+
watch: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
574
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "7" }),
|
|
575
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "12 9 12 12 13.5 13.5" }),
|
|
576
|
+
/* @__PURE__ */ e.jsx(
|
|
577
|
+
"path",
|
|
578
|
+
{
|
|
579
|
+
d: "M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"
|
|
580
|
+
}
|
|
581
|
+
)
|
|
582
|
+
] }),
|
|
583
|
+
wind: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("path", { d: "M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2" }) }),
|
|
584
|
+
zap: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" }) }),
|
|
491
585
|
video: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
492
586
|
/* @__PURE__ */ e.jsx("polygon", { points: "23 7 16 12 23 17 23 7" }),
|
|
493
587
|
/* @__PURE__ */ e.jsx("rect", { x: "1", y: "5", width: "15", height: "14", rx: "2", ry: "2" })
|
|
@@ -804,6 +898,23 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
804
898
|
/* @__PURE__ */ e.jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
805
899
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "7", r: "4" })
|
|
806
900
|
] }),
|
|
901
|
+
"user-plus": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
902
|
+
/* @__PURE__ */ e.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
903
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "8.5", cy: "7", r: "4" }),
|
|
904
|
+
/* @__PURE__ */ e.jsx("line", { x1: "20", y1: "8", x2: "20", y2: "14" }),
|
|
905
|
+
/* @__PURE__ */ e.jsx("line", { x1: "23", y1: "11", x2: "17", y2: "11" })
|
|
906
|
+
] }),
|
|
907
|
+
"user-minus": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
908
|
+
/* @__PURE__ */ e.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
909
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "8.5", cy: "7", r: "4" }),
|
|
910
|
+
/* @__PURE__ */ e.jsx("line", { x1: "23", y1: "11", x2: "17", y2: "11" })
|
|
911
|
+
] }),
|
|
912
|
+
users: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
913
|
+
/* @__PURE__ */ e.jsx("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
914
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "9", cy: "7", r: "4" }),
|
|
915
|
+
/* @__PURE__ */ e.jsx("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
|
|
916
|
+
/* @__PURE__ */ e.jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
|
|
917
|
+
] }),
|
|
807
918
|
"log-in": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
808
919
|
/* @__PURE__ */ e.jsx("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
|
|
809
920
|
/* @__PURE__ */ e.jsx("polyline", { points: "10 17 15 12 10 7" }),
|
|
@@ -1054,6 +1165,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1054
1165
|
/* @__PURE__ */ e.jsx("circle", { cx: "20", cy: "21", r: "1" }),
|
|
1055
1166
|
/* @__PURE__ */ e.jsx("path", { d: "M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" })
|
|
1056
1167
|
] }),
|
|
1168
|
+
"bar-chart": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
1169
|
+
/* @__PURE__ */ e.jsx("line", { x1: "18", y1: "20", x2: "18", y2: "10" }),
|
|
1170
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "20", x2: "12", y2: "4" }),
|
|
1171
|
+
/* @__PURE__ */ e.jsx("line", { x1: "6", y1: "20", x2: "6", y2: "14" })
|
|
1172
|
+
] }),
|
|
1057
1173
|
"pie-chart": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
1058
1174
|
/* @__PURE__ */ e.jsx("path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83" }),
|
|
1059
1175
|
/* @__PURE__ */ e.jsx("path", { d: "M22 12A10 10 0 0 0 12 2v10z" })
|
|
@@ -1080,10 +1196,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1080
1196
|
/* @__PURE__ */ e.jsx("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }),
|
|
1081
1197
|
/* @__PURE__ */ e.jsx("text", { x: "6", y: "14", fontSize: "6", fontFamily: "'Lucida Grande', sans-serif", children: "360" })
|
|
1082
1198
|
] })
|
|
1083
|
-
},
|
|
1199
|
+
}, w = ({ color: n, name: l, size: r = "small", weight: i = 2, onClick: c, iconString: x, orientation: o, children: a }) => {
|
|
1084
1200
|
const j = r ? "muncher-icon--" + r : "muncher-icon--small";
|
|
1085
1201
|
return /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon", children: [
|
|
1086
|
-
|
|
1202
|
+
a && o && o === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: a }) : "",
|
|
1087
1203
|
/* @__PURE__ */ e.jsx(
|
|
1088
1204
|
"svg",
|
|
1089
1205
|
{
|
|
@@ -1096,14 +1212,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1096
1212
|
strokeLinecap: "round",
|
|
1097
1213
|
strokeLinejoin: "round",
|
|
1098
1214
|
onClick: c,
|
|
1099
|
-
children:
|
|
1215
|
+
children: l ? x1[l] : x ? Object(x1)[x] : ""
|
|
1100
1216
|
}
|
|
1101
1217
|
),
|
|
1102
|
-
|
|
1218
|
+
a && (!o || o === "left") ? /* @__PURE__ */ e.jsx("span", { className: "content-right", children: a }) : ""
|
|
1103
1219
|
] });
|
|
1104
|
-
},
|
|
1220
|
+
}, z1 = ({
|
|
1105
1221
|
variant: n = "primary",
|
|
1106
|
-
icon:
|
|
1222
|
+
icon: l = "bell",
|
|
1107
1223
|
text: r,
|
|
1108
1224
|
onClick: i,
|
|
1109
1225
|
...c
|
|
@@ -1114,82 +1230,82 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1114
1230
|
onClick: i,
|
|
1115
1231
|
...c,
|
|
1116
1232
|
children: [
|
|
1117
|
-
/* @__PURE__ */ e.jsx(
|
|
1118
|
-
r === "" ? "" : /* @__PURE__ */ e.jsx(
|
|
1233
|
+
/* @__PURE__ */ e.jsx(w, { name: l }),
|
|
1234
|
+
r === "" ? "" : /* @__PURE__ */ e.jsx(f1, { variant: n, children: r })
|
|
1119
1235
|
]
|
|
1120
1236
|
}
|
|
1121
|
-
),
|
|
1237
|
+
), V = ({
|
|
1122
1238
|
type: n = "button",
|
|
1123
|
-
variant:
|
|
1239
|
+
variant: l,
|
|
1124
1240
|
size: r = "medium",
|
|
1125
1241
|
title: i,
|
|
1126
1242
|
active: c,
|
|
1127
|
-
disabled:
|
|
1243
|
+
disabled: x,
|
|
1128
1244
|
rounded: o,
|
|
1129
|
-
onClick:
|
|
1245
|
+
onClick: a,
|
|
1130
1246
|
onMouseDown: j,
|
|
1131
|
-
onMouseEnter:
|
|
1247
|
+
onMouseEnter: y,
|
|
1132
1248
|
onMouseLeave: d,
|
|
1133
1249
|
children: h,
|
|
1134
1250
|
...p
|
|
1135
1251
|
}) => {
|
|
1136
|
-
const
|
|
1252
|
+
const v = "muncher-button" + (n && n === "nav" ? " muncher-button--nav" : "") + (l ? " muncher-button--" + l : "") + (r ? " muncher-button--" + r : "") + (c ? " muncher-button--active" : "") + (o ? " muncher-button--rounded" : "");
|
|
1137
1253
|
return /* @__PURE__ */ e.jsx(
|
|
1138
1254
|
"button",
|
|
1139
1255
|
{
|
|
1140
1256
|
type: n && n !== "nav" ? n : "button",
|
|
1141
|
-
className:
|
|
1142
|
-
disabled: !!
|
|
1257
|
+
className: v,
|
|
1258
|
+
disabled: !!x,
|
|
1143
1259
|
title: i,
|
|
1144
|
-
onClick:
|
|
1260
|
+
onClick: a,
|
|
1145
1261
|
onMouseDown: j,
|
|
1146
|
-
onMouseEnter:
|
|
1262
|
+
onMouseEnter: y,
|
|
1147
1263
|
onMouseLeave: d,
|
|
1148
1264
|
...p,
|
|
1149
1265
|
children: h
|
|
1150
1266
|
}
|
|
1151
1267
|
);
|
|
1152
|
-
},
|
|
1268
|
+
}, v1 = ({
|
|
1153
1269
|
variant: n,
|
|
1154
|
-
size:
|
|
1270
|
+
size: l = "medium",
|
|
1155
1271
|
title: r,
|
|
1156
1272
|
active: i,
|
|
1157
1273
|
disabled: c,
|
|
1158
|
-
element:
|
|
1274
|
+
element: x,
|
|
1159
1275
|
onMouseDown: o,
|
|
1160
|
-
rounded:
|
|
1276
|
+
rounded: a,
|
|
1161
1277
|
drop: j,
|
|
1162
|
-
onClick:
|
|
1278
|
+
onClick: y,
|
|
1163
1279
|
onClose: d,
|
|
1164
1280
|
showContent: h,
|
|
1165
1281
|
setShowContent: p,
|
|
1166
|
-
withDropIcon:
|
|
1167
|
-
children:
|
|
1168
|
-
...
|
|
1282
|
+
withDropIcon: v,
|
|
1283
|
+
children: N,
|
|
1284
|
+
...g
|
|
1169
1285
|
}) => {
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1172
|
-
},
|
|
1286
|
+
const _ = d1(null), f = (b) => {
|
|
1287
|
+
b.preventDefault(), y && y(b), p && p(!0);
|
|
1288
|
+
}, E = G(() => {
|
|
1173
1289
|
p(!1), d && d();
|
|
1174
|
-
}, [d, p]),
|
|
1175
|
-
|
|
1176
|
-
}, [
|
|
1290
|
+
}, [d, p]), C = G((b) => {
|
|
1291
|
+
b.keyCode === 27 && E();
|
|
1292
|
+
}, [E]);
|
|
1177
1293
|
Q(() => {
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1294
|
+
const b = (H) => {
|
|
1295
|
+
_ && _.current && H.target instanceof HTMLElement && !_.current.contains(H.target) && E();
|
|
1180
1296
|
};
|
|
1181
|
-
return document.addEventListener("keydown",
|
|
1182
|
-
document.removeEventListener("keydown",
|
|
1297
|
+
return document.addEventListener("keydown", C, !1), document.addEventListener("mousedown", b), () => {
|
|
1298
|
+
document.removeEventListener("keydown", C, !1);
|
|
1183
1299
|
};
|
|
1184
|
-
}, [
|
|
1185
|
-
const
|
|
1300
|
+
}, [C, E]);
|
|
1301
|
+
const A = () => {
|
|
1186
1302
|
var P;
|
|
1187
|
-
const
|
|
1188
|
-
if (
|
|
1189
|
-
if (
|
|
1190
|
-
if (H -
|
|
1191
|
-
if (H -
|
|
1192
|
-
const m = Math.round((H -
|
|
1303
|
+
const b = (P = _.current) == null ? void 0 : P.offsetLeft, H = window.innerWidth;
|
|
1304
|
+
if (b) {
|
|
1305
|
+
if (b < 100) return "muncher-dropdown--content";
|
|
1306
|
+
if (H - b < 150) return "muncher-dropdown--content drop-left";
|
|
1307
|
+
if (H - b < 250) {
|
|
1308
|
+
const m = Math.round((H - b) / H * 100);
|
|
1193
1309
|
if (m > 40 || m < 60) return "muncher-dropdown--content drop-middle";
|
|
1194
1310
|
}
|
|
1195
1311
|
}
|
|
@@ -1202,21 +1318,21 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1202
1318
|
return "muncher-dropdown--content";
|
|
1203
1319
|
}
|
|
1204
1320
|
};
|
|
1205
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref:
|
|
1321
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref: _, children: [
|
|
1206
1322
|
/* @__PURE__ */ e.jsxs(
|
|
1207
|
-
|
|
1323
|
+
V,
|
|
1208
1324
|
{
|
|
1209
|
-
onMouseDown:
|
|
1325
|
+
onMouseDown: f,
|
|
1210
1326
|
title: r,
|
|
1211
1327
|
disabled: c,
|
|
1212
|
-
rounded:
|
|
1328
|
+
rounded: a,
|
|
1213
1329
|
active: i,
|
|
1214
1330
|
variant: n,
|
|
1215
|
-
size:
|
|
1216
|
-
...
|
|
1331
|
+
size: l,
|
|
1332
|
+
...g,
|
|
1217
1333
|
children: [
|
|
1218
|
-
|
|
1219
|
-
|
|
1334
|
+
x,
|
|
1335
|
+
v ? /* @__PURE__ */ e.jsx(
|
|
1220
1336
|
"span",
|
|
1221
1337
|
{
|
|
1222
1338
|
className: "small",
|
|
@@ -1226,157 +1342,157 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1226
1342
|
]
|
|
1227
1343
|
}
|
|
1228
1344
|
),
|
|
1229
|
-
h ? /* @__PURE__ */ e.jsx("div", { className:
|
|
1345
|
+
h ? /* @__PURE__ */ e.jsx("div", { className: A(), children: N }) : ""
|
|
1230
1346
|
] });
|
|
1231
|
-
},
|
|
1347
|
+
}, R1 = ({
|
|
1232
1348
|
title: n,
|
|
1233
|
-
active:
|
|
1349
|
+
active: l,
|
|
1234
1350
|
disabled: r,
|
|
1235
1351
|
element: i,
|
|
1236
1352
|
rounded: c,
|
|
1237
|
-
dropLeft:
|
|
1353
|
+
dropLeft: x,
|
|
1238
1354
|
children: o,
|
|
1239
|
-
...
|
|
1240
|
-
}) => /* @__PURE__ */ e.jsxs("div", { className: `muncher-dropdown-nav ${
|
|
1355
|
+
...a
|
|
1356
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: `muncher-dropdown-nav ${x ? "drop-left" : ""}`, children: [
|
|
1241
1357
|
/* @__PURE__ */ e.jsx(
|
|
1242
|
-
|
|
1358
|
+
V,
|
|
1243
1359
|
{
|
|
1244
1360
|
type: "nav",
|
|
1245
1361
|
title: n,
|
|
1246
1362
|
disabled: r,
|
|
1247
1363
|
rounded: c,
|
|
1248
|
-
active:
|
|
1249
|
-
...
|
|
1364
|
+
active: l,
|
|
1365
|
+
...a,
|
|
1250
1366
|
children: i
|
|
1251
1367
|
}
|
|
1252
1368
|
),
|
|
1253
1369
|
/* @__PURE__ */ e.jsx("div", { className: "muncher-dropdown-nav--content", children: o })
|
|
1254
|
-
] }),
|
|
1370
|
+
] }), g1 = (n) => {
|
|
1255
1371
|
navigator.clipboard.writeText(n);
|
|
1256
|
-
},
|
|
1372
|
+
}, b1 = ({
|
|
1257
1373
|
text: n,
|
|
1258
|
-
variant:
|
|
1374
|
+
variant: l = "secondary",
|
|
1259
1375
|
size: r = "small"
|
|
1260
1376
|
}) => {
|
|
1261
|
-
const [i, c] = S(), [
|
|
1262
|
-
|
|
1377
|
+
const [i, c] = S(), [x, o] = S("copy"), [a, j] = S("copy link"), y = () => {
|
|
1378
|
+
g1(n), c("green"), o("check"), j("copied!"), setTimeout(function() {
|
|
1263
1379
|
c(""), o("copy");
|
|
1264
1380
|
}, 2e3);
|
|
1265
1381
|
};
|
|
1266
1382
|
return /* @__PURE__ */ e.jsx(
|
|
1267
|
-
|
|
1383
|
+
V,
|
|
1268
1384
|
{
|
|
1269
1385
|
size: r,
|
|
1270
|
-
variant:
|
|
1271
|
-
title:
|
|
1272
|
-
onClick:
|
|
1273
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1386
|
+
variant: l,
|
|
1387
|
+
title: a,
|
|
1388
|
+
onClick: y,
|
|
1389
|
+
children: /* @__PURE__ */ e.jsx(w, { name: x, color: i })
|
|
1274
1390
|
}
|
|
1275
1391
|
);
|
|
1276
|
-
},
|
|
1392
|
+
}, T1 = ({
|
|
1277
1393
|
variant: n = "secondary",
|
|
1278
|
-
size:
|
|
1394
|
+
size: l = "medium",
|
|
1279
1395
|
title: r
|
|
1280
1396
|
}) => {
|
|
1281
1397
|
const [i, c] = S(!1);
|
|
1282
1398
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ e.jsxs(
|
|
1283
|
-
|
|
1399
|
+
v1,
|
|
1284
1400
|
{
|
|
1285
1401
|
title: "Share to Social Media",
|
|
1286
1402
|
showContent: i,
|
|
1287
1403
|
setShowContent: c,
|
|
1288
1404
|
variant: n,
|
|
1289
|
-
size:
|
|
1290
|
-
element: /* @__PURE__ */ e.jsx(
|
|
1405
|
+
size: l,
|
|
1406
|
+
element: /* @__PURE__ */ e.jsx(w, { name: "share", orientation: "right", children: "Share" }),
|
|
1291
1407
|
children: [
|
|
1292
|
-
/* @__PURE__ */ e.jsx(
|
|
1408
|
+
/* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
1293
1409
|
"a",
|
|
1294
1410
|
{
|
|
1295
1411
|
href: "https://twitter.com/share?url=" + window.location.href + "&text=" + r,
|
|
1296
1412
|
target: "_blank",
|
|
1297
1413
|
title: "Share link to Twitter",
|
|
1298
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1414
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "twitter" })
|
|
1299
1415
|
}
|
|
1300
1416
|
) }),
|
|
1301
|
-
/* @__PURE__ */ e.jsx(
|
|
1417
|
+
/* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
1302
1418
|
"a",
|
|
1303
1419
|
{
|
|
1304
1420
|
href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
|
|
1305
1421
|
target: "_blank",
|
|
1306
1422
|
title: "Share link to Facebook",
|
|
1307
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1423
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "facebook" })
|
|
1308
1424
|
}
|
|
1309
1425
|
) }),
|
|
1310
|
-
/* @__PURE__ */ e.jsx(
|
|
1426
|
+
/* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
1311
1427
|
"a",
|
|
1312
1428
|
{
|
|
1313
1429
|
href: "mailto:?subject=" + r + "&body=" + window.location.href,
|
|
1314
1430
|
target: "_blank",
|
|
1315
1431
|
title: "share link by Email",
|
|
1316
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1432
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "mail" })
|
|
1317
1433
|
}
|
|
1318
1434
|
) }),
|
|
1319
|
-
/* @__PURE__ */ e.jsx(
|
|
1435
|
+
/* @__PURE__ */ e.jsx(b1, { text: window.location.href })
|
|
1320
1436
|
]
|
|
1321
1437
|
}
|
|
1322
1438
|
) });
|
|
1323
|
-
},
|
|
1439
|
+
}, M1 = ({
|
|
1324
1440
|
header: n,
|
|
1325
|
-
data:
|
|
1441
|
+
data: l,
|
|
1326
1442
|
filename: r,
|
|
1327
1443
|
variant: i,
|
|
1328
1444
|
size: c,
|
|
1329
|
-
title:
|
|
1445
|
+
title: x,
|
|
1330
1446
|
active: o,
|
|
1331
|
-
disabled:
|
|
1447
|
+
disabled: a,
|
|
1332
1448
|
rounded: j
|
|
1333
1449
|
}) => {
|
|
1334
|
-
const
|
|
1335
|
-
` +
|
|
1450
|
+
const y = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
|
|
1451
|
+
` + l.map((d) => d.join(",")).join(`
|
|
1336
1452
|
`));
|
|
1337
|
-
return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(
|
|
1338
|
-
},
|
|
1453
|
+
return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(V, { variant: i, size: c, active: o, disabled: a, rounded: j, children: /* @__PURE__ */ e.jsx("a", { href: y, download: r + ".csv", children: /* @__PURE__ */ e.jsx(w, { name: "download", children: x || "Download" }) }) }) });
|
|
1454
|
+
}, w1 = ({
|
|
1339
1455
|
variant: n = "transparent",
|
|
1340
|
-
size:
|
|
1456
|
+
size: l = "small",
|
|
1341
1457
|
title: r,
|
|
1342
1458
|
sortAsc: i = "true",
|
|
1343
1459
|
active: c,
|
|
1344
|
-
rounded:
|
|
1460
|
+
rounded: x,
|
|
1345
1461
|
onClick: o,
|
|
1346
|
-
children:
|
|
1462
|
+
children: a
|
|
1347
1463
|
}) => {
|
|
1348
|
-
const [j,
|
|
1464
|
+
const [j, y] = S(!1), d = () => !c || c && !j ? i ? /* @__PURE__ */ e.jsx(w, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : i ? /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-asc" });
|
|
1349
1465
|
return /* @__PURE__ */ e.jsxs(
|
|
1350
|
-
|
|
1466
|
+
V,
|
|
1351
1467
|
{
|
|
1352
1468
|
variant: n,
|
|
1353
|
-
size:
|
|
1469
|
+
size: l,
|
|
1354
1470
|
title: r,
|
|
1355
|
-
rounded:
|
|
1471
|
+
rounded: x,
|
|
1356
1472
|
onMouseEnter: () => {
|
|
1357
|
-
|
|
1473
|
+
y(!0);
|
|
1358
1474
|
},
|
|
1359
1475
|
onMouseLeave: () => {
|
|
1360
|
-
|
|
1476
|
+
y(!1);
|
|
1361
1477
|
},
|
|
1362
1478
|
onClick: o,
|
|
1363
1479
|
children: [
|
|
1364
|
-
|
|
1480
|
+
a,
|
|
1365
1481
|
c || j ? /* @__PURE__ */ e.jsx(d, {}) : ""
|
|
1366
1482
|
]
|
|
1367
1483
|
}
|
|
1368
1484
|
);
|
|
1369
|
-
},
|
|
1485
|
+
}, a1 = ({
|
|
1370
1486
|
direction: n,
|
|
1371
|
-
size:
|
|
1487
|
+
size: l = "small",
|
|
1372
1488
|
weight: r,
|
|
1373
1489
|
isDisabled: i,
|
|
1374
1490
|
variant: c = "primary",
|
|
1375
|
-
navIcon:
|
|
1491
|
+
navIcon: x = "chevron",
|
|
1376
1492
|
onClick: o
|
|
1377
1493
|
}) => {
|
|
1378
|
-
const
|
|
1379
|
-
switch (
|
|
1494
|
+
const a = () => {
|
|
1495
|
+
switch (x) {
|
|
1380
1496
|
case "arrow":
|
|
1381
1497
|
return n === "left" ? "arrow-left" : "arrow-right";
|
|
1382
1498
|
case "skip":
|
|
@@ -1392,30 +1508,30 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1392
1508
|
{
|
|
1393
1509
|
className: n === "left" ? "muncher-button--navigate muncher-button--navigate-left" : "muncher-button--navigate muncher-button--navigate-right",
|
|
1394
1510
|
children: /* @__PURE__ */ e.jsx(
|
|
1395
|
-
|
|
1511
|
+
V,
|
|
1396
1512
|
{
|
|
1397
1513
|
onClick: o,
|
|
1398
1514
|
disabled: i,
|
|
1399
1515
|
size: "small",
|
|
1400
1516
|
variant: c,
|
|
1401
1517
|
title: n === "left" ? "Navigate Left" : "Navigate Right",
|
|
1402
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1518
|
+
children: /* @__PURE__ */ e.jsx(w, { name: a(), size: l, weight: r })
|
|
1403
1519
|
}
|
|
1404
1520
|
)
|
|
1405
1521
|
}
|
|
1406
1522
|
);
|
|
1407
|
-
}, q = ({ label: n, onClick:
|
|
1523
|
+
}, q = ({ label: n, onClick: l, id: r, required: i = !1 }) => /* @__PURE__ */ e.jsxs("label", { htmlFor: r, onClick: l, children: [
|
|
1408
1524
|
n,
|
|
1409
1525
|
i ? /* @__PURE__ */ e.jsx("span", { className: "required", children: "*" }) : ""
|
|
1410
|
-
] }),
|
|
1526
|
+
] }), _1 = ({
|
|
1411
1527
|
name: n,
|
|
1412
|
-
required:
|
|
1528
|
+
required: l = !1,
|
|
1413
1529
|
onChange: r,
|
|
1414
1530
|
checked: i = !1,
|
|
1415
1531
|
label: c,
|
|
1416
|
-
...
|
|
1532
|
+
...x
|
|
1417
1533
|
}) => {
|
|
1418
|
-
const [o,
|
|
1534
|
+
const [o, a] = S(i || !1);
|
|
1419
1535
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-checkbox", children: [
|
|
1420
1536
|
/* @__PURE__ */ e.jsx(
|
|
1421
1537
|
"input",
|
|
@@ -1424,54 +1540,54 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1424
1540
|
id: n,
|
|
1425
1541
|
name: n,
|
|
1426
1542
|
onChange: (j) => {
|
|
1427
|
-
|
|
1543
|
+
a(j.target.checked), r && r();
|
|
1428
1544
|
},
|
|
1429
1545
|
checked: o,
|
|
1430
|
-
required:
|
|
1431
|
-
...
|
|
1546
|
+
required: l,
|
|
1547
|
+
...x
|
|
1432
1548
|
}
|
|
1433
1549
|
),
|
|
1434
1550
|
c ? /* @__PURE__ */ e.jsx(
|
|
1435
1551
|
q,
|
|
1436
1552
|
{
|
|
1437
1553
|
label: c,
|
|
1438
|
-
required:
|
|
1554
|
+
required: l,
|
|
1439
1555
|
id: n,
|
|
1440
1556
|
onClick: (j) => {
|
|
1441
|
-
j.preventDefault(),
|
|
1557
|
+
j.preventDefault(), a(!o), r && r();
|
|
1442
1558
|
}
|
|
1443
1559
|
}
|
|
1444
1560
|
) : ""
|
|
1445
1561
|
] }) });
|
|
1446
|
-
},
|
|
1562
|
+
}, h1 = ({ size: n, ...l }) => /* @__PURE__ */ e.jsx(
|
|
1447
1563
|
"div",
|
|
1448
1564
|
{
|
|
1449
1565
|
className: n ? "muncher-spinner muncher-spinner-" + n : "muncher-spinner",
|
|
1450
|
-
...
|
|
1566
|
+
...l
|
|
1451
1567
|
}
|
|
1452
|
-
),
|
|
1568
|
+
), N1 = ({
|
|
1453
1569
|
name: n,
|
|
1454
|
-
label:
|
|
1570
|
+
label: l,
|
|
1455
1571
|
variant: r = "secondary",
|
|
1456
1572
|
size: i = "medium",
|
|
1457
1573
|
required: c,
|
|
1458
|
-
active:
|
|
1574
|
+
active: x,
|
|
1459
1575
|
isUploading: o,
|
|
1460
|
-
handleOnChange:
|
|
1576
|
+
handleOnChange: a,
|
|
1461
1577
|
warningMessage: j,
|
|
1462
|
-
successMessage:
|
|
1578
|
+
successMessage: y,
|
|
1463
1579
|
...d
|
|
1464
1580
|
}) => {
|
|
1465
|
-
const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (
|
|
1466
|
-
|
|
1581
|
+
const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (x ? " muncher-button--active" : ""), p = (v) => {
|
|
1582
|
+
a && a(v.currentTarget.files[0]);
|
|
1467
1583
|
};
|
|
1468
1584
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
|
|
1469
1585
|
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: h, children: [
|
|
1470
|
-
/* @__PURE__ */ e.jsx(
|
|
1586
|
+
/* @__PURE__ */ e.jsx(w, { name: "upload" }),
|
|
1471
1587
|
" ",
|
|
1472
|
-
|
|
1588
|
+
l || "Upload CSV",
|
|
1473
1589
|
c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
|
|
1474
|
-
o ? /* @__PURE__ */ e.jsx(
|
|
1590
|
+
o ? /* @__PURE__ */ e.jsx(h1, { size: "tiny" }) : ""
|
|
1475
1591
|
] }),
|
|
1476
1592
|
/* @__PURE__ */ e.jsx(
|
|
1477
1593
|
"input",
|
|
@@ -1486,34 +1602,34 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1486
1602
|
}
|
|
1487
1603
|
),
|
|
1488
1604
|
j && j !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: j }) : "",
|
|
1489
|
-
|
|
1605
|
+
y && y !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: y }) : ""
|
|
1490
1606
|
] }) });
|
|
1491
|
-
},
|
|
1607
|
+
}, S1 = ({
|
|
1492
1608
|
name: n,
|
|
1493
|
-
label:
|
|
1609
|
+
label: l,
|
|
1494
1610
|
variant: r = "secondary",
|
|
1495
1611
|
size: i = "large",
|
|
1496
1612
|
required: c,
|
|
1497
|
-
active:
|
|
1613
|
+
active: x,
|
|
1498
1614
|
setFiles: o,
|
|
1499
|
-
error:
|
|
1615
|
+
error: a,
|
|
1500
1616
|
multiple: j = !1,
|
|
1501
|
-
maxFiles:
|
|
1617
|
+
maxFiles: y,
|
|
1502
1618
|
...d
|
|
1503
1619
|
}) => {
|
|
1504
|
-
const [h, p] = S(""), [
|
|
1620
|
+
const [h, p] = S(""), [v, N] = S(""), g = y || 3, _ = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (x ? " muncher-button--active" : ""), f = (C) => {
|
|
1505
1621
|
if (j) {
|
|
1506
|
-
let
|
|
1507
|
-
|
|
1622
|
+
let A = Array.from(C.currentTarget.files);
|
|
1623
|
+
A.length > g && (A = A.slice(0, g), N("Only first " + g + " files included")), o(A), p(A.map((b) => b.name).join(", "));
|
|
1508
1624
|
} else
|
|
1509
|
-
o(Array.from(
|
|
1510
|
-
},
|
|
1625
|
+
o(Array.from(C.currentTarget.files[0])), p(C.currentTarget.files[0].name);
|
|
1626
|
+
}, E = () => a && a !== "";
|
|
1511
1627
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-file-input--div", children: [
|
|
1512
1628
|
/* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
|
|
1513
|
-
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className:
|
|
1514
|
-
/* @__PURE__ */ e.jsx(
|
|
1629
|
+
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: _, children: [
|
|
1630
|
+
/* @__PURE__ */ e.jsx(w, { name: "image" }),
|
|
1515
1631
|
" ",
|
|
1516
|
-
|
|
1632
|
+
l,
|
|
1517
1633
|
c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
|
|
1518
1634
|
] }),
|
|
1519
1635
|
/* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: h }),
|
|
@@ -1524,53 +1640,53 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1524
1640
|
type: "file",
|
|
1525
1641
|
className: "muncher-file-input",
|
|
1526
1642
|
name: n,
|
|
1527
|
-
onChange:
|
|
1643
|
+
onChange: f,
|
|
1528
1644
|
multiple: j,
|
|
1529
1645
|
accept: "image/*",
|
|
1530
1646
|
...d
|
|
1531
1647
|
}
|
|
1532
1648
|
)
|
|
1533
1649
|
] }),
|
|
1534
|
-
|
|
1535
|
-
|
|
1650
|
+
v !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: v }) : "",
|
|
1651
|
+
E() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: a }) }) : ""
|
|
1536
1652
|
] });
|
|
1537
|
-
},
|
|
1653
|
+
}, k1 = ({
|
|
1538
1654
|
name: n,
|
|
1539
|
-
label:
|
|
1655
|
+
label: l,
|
|
1540
1656
|
required: r,
|
|
1541
1657
|
readOnly: i,
|
|
1542
1658
|
icon: c,
|
|
1543
|
-
hoverIcon:
|
|
1659
|
+
hoverIcon: x,
|
|
1544
1660
|
onHoverIconClick: o,
|
|
1545
|
-
type:
|
|
1661
|
+
type: a = "text",
|
|
1546
1662
|
list: j,
|
|
1547
|
-
onBlur:
|
|
1663
|
+
onBlur: y,
|
|
1548
1664
|
labelPosition: d = "top",
|
|
1549
1665
|
onKeyDown: h,
|
|
1550
1666
|
error: p,
|
|
1551
|
-
focus:
|
|
1552
|
-
placeholder:
|
|
1553
|
-
onChange:
|
|
1554
|
-
step:
|
|
1555
|
-
value:
|
|
1556
|
-
maxLength:
|
|
1557
|
-
onEnterPress:
|
|
1558
|
-
displayLoader:
|
|
1559
|
-
...
|
|
1667
|
+
focus: v = !1,
|
|
1668
|
+
placeholder: N,
|
|
1669
|
+
onChange: g,
|
|
1670
|
+
step: _,
|
|
1671
|
+
value: f,
|
|
1672
|
+
maxLength: E,
|
|
1673
|
+
onEnterPress: C,
|
|
1674
|
+
displayLoader: A,
|
|
1675
|
+
...b
|
|
1560
1676
|
}) => {
|
|
1561
1677
|
const H = () => p && p !== "", P = () => {
|
|
1562
|
-
let
|
|
1563
|
-
return (c ||
|
|
1564
|
-
}, m = () =>
|
|
1565
|
-
|
|
1678
|
+
let z = "muncher-input";
|
|
1679
|
+
return (c || x) && (z += " muncher-input-icon"), H() && (z += " muncher-input-error"), d === "side" && (z += " muncher-label-side"), z;
|
|
1680
|
+
}, m = () => l ? /* @__PURE__ */ e.jsx(q, { label: l, required: r, id: n }) : "", k = (z) => {
|
|
1681
|
+
z.key === "Enter" && C && C(), h && h(z);
|
|
1566
1682
|
};
|
|
1567
1683
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1568
1684
|
d !== "side" ? m() : "",
|
|
1569
1685
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-input-element", children: [
|
|
1570
1686
|
d === "side" ? m() : "",
|
|
1571
|
-
c ? /* @__PURE__ */ e.jsx(
|
|
1572
|
-
|
|
1573
|
-
/* @__PURE__ */ e.jsx(
|
|
1687
|
+
c ? /* @__PURE__ */ e.jsx(w, { name: c }) : "",
|
|
1688
|
+
x ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
|
|
1689
|
+
/* @__PURE__ */ e.jsx(w, { name: x, onClick: o }),
|
|
1574
1690
|
" "
|
|
1575
1691
|
] }) : "",
|
|
1576
1692
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-input-wrapper", children: [
|
|
@@ -1580,28 +1696,28 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1580
1696
|
id: n,
|
|
1581
1697
|
className: P(),
|
|
1582
1698
|
name: n,
|
|
1583
|
-
autoFocus:
|
|
1584
|
-
value:
|
|
1585
|
-
type:
|
|
1699
|
+
autoFocus: v,
|
|
1700
|
+
value: f,
|
|
1701
|
+
type: a || "text",
|
|
1586
1702
|
autoComplete: "off",
|
|
1587
|
-
placeholder:
|
|
1588
|
-
onChange:
|
|
1703
|
+
placeholder: N,
|
|
1704
|
+
onChange: g,
|
|
1589
1705
|
required: r,
|
|
1590
1706
|
readOnly: i,
|
|
1591
1707
|
list: j,
|
|
1592
|
-
onKeyDown:
|
|
1593
|
-
onBlur:
|
|
1594
|
-
step:
|
|
1595
|
-
maxLength:
|
|
1596
|
-
...
|
|
1708
|
+
onKeyDown: k,
|
|
1709
|
+
onBlur: y,
|
|
1710
|
+
step: _,
|
|
1711
|
+
maxLength: E,
|
|
1712
|
+
...b
|
|
1597
1713
|
}
|
|
1598
1714
|
),
|
|
1599
|
-
|
|
1715
|
+
A ? /* @__PURE__ */ e.jsx(h1, { size: "tiny" }) : ""
|
|
1600
1716
|
] })
|
|
1601
1717
|
] }),
|
|
1602
|
-
H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(
|
|
1718
|
+
H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: p }) }) : ""
|
|
1603
1719
|
] });
|
|
1604
|
-
},
|
|
1720
|
+
}, H1 = ({ name: n, required: l = !1, onChange: r, checked: i = !1, label: c, ...x }) => /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-radio", children: [
|
|
1605
1721
|
/* @__PURE__ */ e.jsx(
|
|
1606
1722
|
"input",
|
|
1607
1723
|
{
|
|
@@ -1609,33 +1725,33 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1609
1725
|
name: n,
|
|
1610
1726
|
onChange: r,
|
|
1611
1727
|
checked: i,
|
|
1612
|
-
...
|
|
1728
|
+
...x
|
|
1613
1729
|
}
|
|
1614
1730
|
),
|
|
1615
1731
|
c ? /* @__PURE__ */ e.jsx(
|
|
1616
1732
|
q,
|
|
1617
1733
|
{
|
|
1618
1734
|
label: c,
|
|
1619
|
-
required:
|
|
1735
|
+
required: l,
|
|
1620
1736
|
onClick: () => {
|
|
1621
1737
|
r && r();
|
|
1622
1738
|
}
|
|
1623
1739
|
}
|
|
1624
1740
|
) : ""
|
|
1625
|
-
] }) }),
|
|
1741
|
+
] }) }), C1 = ({
|
|
1626
1742
|
name: n,
|
|
1627
|
-
options:
|
|
1743
|
+
options: l,
|
|
1628
1744
|
label: r,
|
|
1629
1745
|
required: i,
|
|
1630
1746
|
multiple: c,
|
|
1631
|
-
error:
|
|
1747
|
+
error: x,
|
|
1632
1748
|
onChange: o,
|
|
1633
|
-
value:
|
|
1749
|
+
value: a,
|
|
1634
1750
|
...j
|
|
1635
1751
|
}) => {
|
|
1636
|
-
const
|
|
1752
|
+
const y = () => x && x !== "", d = () => {
|
|
1637
1753
|
let h = "muncher-input";
|
|
1638
|
-
return
|
|
1754
|
+
return y() && (h += " muncher-input-error"), h;
|
|
1639
1755
|
};
|
|
1640
1756
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1641
1757
|
r ? /* @__PURE__ */ e.jsx(q, { label: r, required: i, id: n }) : "",
|
|
@@ -1645,133 +1761,134 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1645
1761
|
id: n,
|
|
1646
1762
|
className: d(),
|
|
1647
1763
|
name: n,
|
|
1648
|
-
value:
|
|
1764
|
+
value: a,
|
|
1649
1765
|
onChange: o,
|
|
1650
1766
|
required: i,
|
|
1651
1767
|
multiple: c,
|
|
1652
1768
|
...j,
|
|
1653
1769
|
children: [
|
|
1654
1770
|
i ? /* @__PURE__ */ e.jsx("option", { value: "", children: "-- Select --" }) : "",
|
|
1655
|
-
|
|
1771
|
+
l.map(
|
|
1656
1772
|
(h, p) => /* @__PURE__ */ e.jsx("option", { value: h.value, children: h.label }, `select-option-${p}`)
|
|
1657
1773
|
)
|
|
1658
1774
|
]
|
|
1659
1775
|
}
|
|
1660
1776
|
) }),
|
|
1661
|
-
|
|
1777
|
+
y() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: x }) }) : ""
|
|
1662
1778
|
] });
|
|
1663
|
-
},
|
|
1779
|
+
}, V1 = ({
|
|
1664
1780
|
name: n,
|
|
1665
|
-
label:
|
|
1781
|
+
label: l,
|
|
1666
1782
|
required: r,
|
|
1667
1783
|
readOnly: i = !1,
|
|
1668
1784
|
rows: c = 6,
|
|
1669
|
-
maxLength:
|
|
1785
|
+
maxLength: x = 1e3,
|
|
1670
1786
|
focus: o = !1,
|
|
1671
|
-
placeholder:
|
|
1787
|
+
placeholder: a,
|
|
1672
1788
|
onChange: j,
|
|
1673
|
-
value:
|
|
1789
|
+
value: y,
|
|
1674
1790
|
...d
|
|
1675
1791
|
}) => {
|
|
1676
|
-
const [h, p] = S(
|
|
1677
|
-
p(
|
|
1792
|
+
const [h, p] = S(y), v = (N) => {
|
|
1793
|
+
p(N.target.value), j && j(N);
|
|
1678
1794
|
};
|
|
1679
1795
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1680
|
-
|
|
1796
|
+
l ? /* @__PURE__ */ e.jsx(q, { label: l, required: r, id: n }) : "",
|
|
1681
1797
|
/* @__PURE__ */ e.jsx(
|
|
1682
1798
|
"textarea",
|
|
1683
1799
|
{
|
|
1684
1800
|
id: n,
|
|
1685
1801
|
className: "muncher-textarea",
|
|
1686
1802
|
rows: c,
|
|
1687
|
-
maxLength:
|
|
1803
|
+
maxLength: x,
|
|
1688
1804
|
name: n,
|
|
1689
1805
|
autoFocus: o,
|
|
1690
|
-
value:
|
|
1691
|
-
placeholder:
|
|
1692
|
-
onChange:
|
|
1806
|
+
value: y,
|
|
1807
|
+
placeholder: a,
|
|
1808
|
+
onChange: v,
|
|
1693
1809
|
required: r,
|
|
1694
1810
|
readOnly: i,
|
|
1695
1811
|
...d
|
|
1696
1812
|
}
|
|
1697
1813
|
),
|
|
1698
1814
|
/* @__PURE__ */ e.jsxs("p", { children: [
|
|
1699
|
-
h ?
|
|
1815
|
+
h ? x ? x - h.length : 1e3 : x,
|
|
1700
1816
|
" characters left"
|
|
1701
1817
|
] })
|
|
1702
1818
|
] });
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1819
|
+
}, L1 = ({
|
|
1820
|
+
name: n = "query",
|
|
1821
|
+
focus: l = !1,
|
|
1822
|
+
inputPlaceHolder: r,
|
|
1823
|
+
handleInputChange: i,
|
|
1824
|
+
showContent: c = !1,
|
|
1825
|
+
setShowContent: x,
|
|
1826
|
+
readOnly: o,
|
|
1827
|
+
value: a,
|
|
1828
|
+
label: j,
|
|
1829
|
+
error: y,
|
|
1830
|
+
required: d,
|
|
1831
|
+
onEnterPress: h,
|
|
1832
|
+
list: p,
|
|
1833
|
+
displayLoader: v,
|
|
1834
|
+
children: N
|
|
1718
1835
|
}) => {
|
|
1719
|
-
const g =
|
|
1720
|
-
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1723
|
-
}, [
|
|
1724
|
-
|
|
1725
|
-
}, [
|
|
1836
|
+
const g = d1(null), _ = (C) => {
|
|
1837
|
+
x(!0), i(C.target.value);
|
|
1838
|
+
}, f = G(() => {
|
|
1839
|
+
x(!1);
|
|
1840
|
+
}, [x]), E = G((C) => {
|
|
1841
|
+
C.keyCode === 27 && f();
|
|
1842
|
+
}, [f]);
|
|
1726
1843
|
return Q(() => {
|
|
1727
|
-
const
|
|
1844
|
+
const C = (A) => {
|
|
1728
1845
|
if (g && g !== null) {
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1846
|
+
const b = g.current;
|
|
1847
|
+
b && !b.contains(A.target) && f();
|
|
1731
1848
|
}
|
|
1732
1849
|
};
|
|
1733
|
-
return document.addEventListener("keydown",
|
|
1734
|
-
document.removeEventListener("keydown",
|
|
1850
|
+
return document.addEventListener("keydown", E, !1), document.addEventListener("mousedown", C), () => {
|
|
1851
|
+
document.removeEventListener("keydown", E, !1);
|
|
1735
1852
|
};
|
|
1736
|
-
}, [
|
|
1853
|
+
}, [E, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: g, children: [
|
|
1737
1854
|
/* @__PURE__ */ e.jsx(
|
|
1738
|
-
|
|
1855
|
+
k1,
|
|
1739
1856
|
{
|
|
1740
|
-
focus:
|
|
1741
|
-
placeholder:
|
|
1742
|
-
name:
|
|
1743
|
-
onChange:
|
|
1744
|
-
onEnterPress:
|
|
1745
|
-
list:
|
|
1746
|
-
displayLoader:
|
|
1747
|
-
readOnly:
|
|
1748
|
-
value:
|
|
1749
|
-
label:
|
|
1750
|
-
required:
|
|
1751
|
-
error:
|
|
1857
|
+
focus: l,
|
|
1858
|
+
placeholder: r,
|
|
1859
|
+
name: n,
|
|
1860
|
+
onChange: _,
|
|
1861
|
+
onEnterPress: h,
|
|
1862
|
+
list: p,
|
|
1863
|
+
displayLoader: v,
|
|
1864
|
+
readOnly: o,
|
|
1865
|
+
value: a,
|
|
1866
|
+
label: j,
|
|
1867
|
+
required: d,
|
|
1868
|
+
error: y
|
|
1752
1869
|
}
|
|
1753
1870
|
),
|
|
1754
|
-
|
|
1871
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: N }) : ""
|
|
1755
1872
|
] });
|
|
1756
|
-
},
|
|
1757
|
-
|
|
1873
|
+
}, O1 = ({ children: n }) => /* @__PURE__ */ e.jsx("ul", { className: "muncher-ul", children: n }), P1 = ({ isFeatured: n, bulletIcon: l = "arrow-right", bulletWeight: r = 2, bulletSize: i = "small", bulletColor: c, children: x }) => /* @__PURE__ */ e.jsx("li", { className: n ? "muncher-li featured" : "muncher-li", children: /* @__PURE__ */ e.jsx(
|
|
1874
|
+
w,
|
|
1758
1875
|
{
|
|
1759
|
-
name:
|
|
1876
|
+
name: l,
|
|
1760
1877
|
weight: r,
|
|
1761
1878
|
size: i,
|
|
1762
1879
|
color: c,
|
|
1763
|
-
children:
|
|
1880
|
+
children: x
|
|
1764
1881
|
}
|
|
1765
|
-
) }),
|
|
1766
|
-
const c = G((
|
|
1767
|
-
|
|
1768
|
-
}, [
|
|
1882
|
+
) }), D1 = ({ show: n = !1, setShow: l, children: r, ...i }) => {
|
|
1883
|
+
const c = G((x) => {
|
|
1884
|
+
x.keyCode === 27 && l(!1);
|
|
1885
|
+
}, [l]);
|
|
1769
1886
|
return Q(() => (document.addEventListener("keydown", c, !1), () => {
|
|
1770
1887
|
document.removeEventListener("keydown", c, !1);
|
|
1771
1888
|
}), [c]), Q(() => {
|
|
1772
1889
|
n ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset";
|
|
1773
|
-
}, [n]), /* @__PURE__ */ e.jsxs(
|
|
1774
|
-
/* @__PURE__ */ e.jsx(
|
|
1890
|
+
}, [n]), /* @__PURE__ */ e.jsxs(o1.Fragment, { children: [
|
|
1891
|
+
/* @__PURE__ */ e.jsx(m1, { show: n, backdropClickHandler: () => l(!1) }),
|
|
1775
1892
|
/* @__PURE__ */ e.jsx(
|
|
1776
1893
|
"div",
|
|
1777
1894
|
{
|
|
@@ -1785,102 +1902,102 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1785
1902
|
}
|
|
1786
1903
|
)
|
|
1787
1904
|
] });
|
|
1788
|
-
},
|
|
1905
|
+
}, F1 = ({ showHoverEffect: n, onClick: l, children: r }) => {
|
|
1789
1906
|
const i = () => n ? "muncher-paper muncher-paper-hover" : "muncher-paper";
|
|
1790
|
-
return /* @__PURE__ */ e.jsx("section", { className: i(), onClick:
|
|
1791
|
-
},
|
|
1792
|
-
/* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(
|
|
1907
|
+
return /* @__PURE__ */ e.jsx("section", { className: i(), onClick: l, children: r });
|
|
1908
|
+
}, I1 = ({ pillCloseHandler: n, children: l, ...r }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-pill", ...r, children: [
|
|
1909
|
+
/* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(w, { name: "close" }) }),
|
|
1793
1910
|
/* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1794
1911
|
" ",
|
|
1795
|
-
|
|
1912
|
+
l
|
|
1796
1913
|
] })
|
|
1797
|
-
] }), $
|
|
1914
|
+
] }), $1 = ({ value: n, max: l, label: r }) => {
|
|
1798
1915
|
const i = () => {
|
|
1799
|
-
const c = Math.round(n /
|
|
1916
|
+
const c = Math.round(n / l * 100) + "%";
|
|
1800
1917
|
return r ? r + " " + c : c;
|
|
1801
1918
|
};
|
|
1802
1919
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-progress", children: [
|
|
1803
1920
|
/* @__PURE__ */ e.jsx("label", { htmlFor: "progress", children: i() }),
|
|
1804
|
-
/* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max:
|
|
1921
|
+
/* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max: l, children: i() })
|
|
1805
1922
|
] });
|
|
1806
|
-
},
|
|
1807
|
-
const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (
|
|
1923
|
+
}, Y1 = ({ variant: n, size: l, style: r }) => {
|
|
1924
|
+
const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (l ? " muncher-hr--" + l : "") + (r ? " muncher-hr--" + r : "");
|
|
1808
1925
|
return /* @__PURE__ */ e.jsx("hr", { className: i });
|
|
1809
|
-
},
|
|
1810
|
-
const [o,
|
|
1811
|
-
|
|
1926
|
+
}, U1 = ({ sliderItems: n, navButtonSize: l = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: x = "inside" }) => {
|
|
1927
|
+
const [o, a] = S(0), [j, y] = S(0), d = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
|
|
1928
|
+
a1,
|
|
1812
1929
|
{
|
|
1813
1930
|
direction: "left",
|
|
1814
|
-
size:
|
|
1931
|
+
size: l,
|
|
1815
1932
|
variant: i,
|
|
1816
1933
|
navIcon: c,
|
|
1817
1934
|
weight: r,
|
|
1818
1935
|
onClick: () => {
|
|
1819
|
-
o === 0 ? (
|
|
1936
|
+
o === 0 ? (y(-(n.length - 1) * 100), a(n.length - 1)) : (y(j + 100), a(o - 1));
|
|
1820
1937
|
}
|
|
1821
1938
|
}
|
|
1822
1939
|
) : "", h = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
|
|
1823
|
-
|
|
1940
|
+
a1,
|
|
1824
1941
|
{
|
|
1825
1942
|
direction: "right",
|
|
1826
|
-
size:
|
|
1943
|
+
size: l,
|
|
1827
1944
|
weight: r,
|
|
1828
1945
|
navIcon: c,
|
|
1829
1946
|
variant: i,
|
|
1830
1947
|
onClick: () => {
|
|
1831
|
-
o === n.length - 1 ? (
|
|
1948
|
+
o === n.length - 1 ? (a(0), y(0)) : (y(j - 100), a(o + 1));
|
|
1832
1949
|
}
|
|
1833
1950
|
}
|
|
1834
1951
|
) : "";
|
|
1835
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" +
|
|
1836
|
-
|
|
1952
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + x, children: [
|
|
1953
|
+
x === "outside" ? d() : "",
|
|
1837
1954
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
|
|
1838
|
-
|
|
1955
|
+
x === "inside" ? d() : "",
|
|
1839
1956
|
/* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
|
|
1840
|
-
(p,
|
|
1957
|
+
(p, v) => /* @__PURE__ */ e.jsx(
|
|
1841
1958
|
"div",
|
|
1842
1959
|
{
|
|
1843
1960
|
className: "slider-item",
|
|
1844
1961
|
style: { transform: `translateX(${j}%)` },
|
|
1845
1962
|
children: p
|
|
1846
1963
|
},
|
|
1847
|
-
"slider-item" +
|
|
1964
|
+
"slider-item" + v
|
|
1848
1965
|
)
|
|
1849
1966
|
) }),
|
|
1850
|
-
|
|
1967
|
+
x === "inside" ? h() : ""
|
|
1851
1968
|
] }),
|
|
1852
|
-
|
|
1969
|
+
x === "outside" ? h() : ""
|
|
1853
1970
|
] });
|
|
1854
|
-
},
|
|
1971
|
+
}, W1 = ({
|
|
1855
1972
|
min: n,
|
|
1856
|
-
max:
|
|
1973
|
+
max: l,
|
|
1857
1974
|
minValue: r,
|
|
1858
1975
|
maxValue: i,
|
|
1859
1976
|
setMinValue: c,
|
|
1860
|
-
setMaxValue:
|
|
1861
|
-
numberFormatter: o = (
|
|
1977
|
+
setMaxValue: x,
|
|
1978
|
+
numberFormatter: o = (a) => new Intl.NumberFormat("en-US", {
|
|
1862
1979
|
style: "currency",
|
|
1863
1980
|
currency: "USD"
|
|
1864
|
-
}).format(
|
|
1981
|
+
}).format(a)
|
|
1865
1982
|
}) => {
|
|
1866
|
-
const
|
|
1983
|
+
const a = (d) => {
|
|
1867
1984
|
const h = +d.target.value, p = h < i - 1 ? h : r;
|
|
1868
1985
|
c(p);
|
|
1869
1986
|
}, j = (d) => {
|
|
1870
1987
|
const h = +d.target.value, p = h > r + 1 ? h : i;
|
|
1871
|
-
|
|
1872
|
-
},
|
|
1988
|
+
x(p);
|
|
1989
|
+
}, y = (d) => o && d ? o(d) : d;
|
|
1873
1990
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
|
|
1874
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children:
|
|
1991
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: y(r) + " - " + y(i) }) }),
|
|
1875
1992
|
/* @__PURE__ */ e.jsx(
|
|
1876
1993
|
"input",
|
|
1877
1994
|
{
|
|
1878
1995
|
className: "muncher-range",
|
|
1879
1996
|
type: "range",
|
|
1880
1997
|
min: n,
|
|
1881
|
-
max:
|
|
1998
|
+
max: l,
|
|
1882
1999
|
value: r,
|
|
1883
|
-
onChange:
|
|
2000
|
+
onChange: a
|
|
1884
2001
|
}
|
|
1885
2002
|
),
|
|
1886
2003
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1889,158 +2006,158 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1889
2006
|
className: "muncher-range",
|
|
1890
2007
|
type: "range",
|
|
1891
2008
|
min: n,
|
|
1892
|
-
max:
|
|
2009
|
+
max: l,
|
|
1893
2010
|
value: i,
|
|
1894
2011
|
onChange: j
|
|
1895
2012
|
}
|
|
1896
2013
|
),
|
|
1897
2014
|
/* @__PURE__ */ e.jsxs("div", { className: "slider-values", children: [
|
|
1898
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children:
|
|
1899
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children:
|
|
2015
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children: y(n) }),
|
|
2016
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children: y(l) })
|
|
1900
2017
|
] })
|
|
1901
2018
|
] });
|
|
1902
|
-
},
|
|
2019
|
+
}, B1 = ({
|
|
1903
2020
|
min: n,
|
|
1904
|
-
max:
|
|
2021
|
+
max: l,
|
|
1905
2022
|
value: r,
|
|
1906
2023
|
setValue: i,
|
|
1907
|
-
numberFormatter: c = (
|
|
2024
|
+
numberFormatter: c = (x) => new Intl.NumberFormat("en-US", {
|
|
1908
2025
|
style: "currency",
|
|
1909
2026
|
currency: "USD"
|
|
1910
|
-
}).format(
|
|
2027
|
+
}).format(x)
|
|
1911
2028
|
}) => {
|
|
1912
|
-
const
|
|
1913
|
-
const j = +
|
|
2029
|
+
const x = (a) => c ? c(a) : a, o = (a) => {
|
|
2030
|
+
const j = +a.target.value;
|
|
1914
2031
|
i(j);
|
|
1915
2032
|
};
|
|
1916
2033
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
|
|
1917
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children:
|
|
2034
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: x(r) }) }),
|
|
1918
2035
|
/* @__PURE__ */ e.jsx(
|
|
1919
2036
|
"input",
|
|
1920
2037
|
{
|
|
1921
2038
|
className: "muncher-range",
|
|
1922
2039
|
type: "range",
|
|
1923
2040
|
min: n,
|
|
1924
|
-
max:
|
|
2041
|
+
max: l,
|
|
1925
2042
|
value: r,
|
|
1926
2043
|
onChange: o
|
|
1927
2044
|
}
|
|
1928
2045
|
),
|
|
1929
2046
|
/* @__PURE__ */ e.jsxs("div", { className: "slider-values", children: [
|
|
1930
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children:
|
|
1931
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children:
|
|
2047
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children: x(n) }),
|
|
2048
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children: x(l) })
|
|
1932
2049
|
] })
|
|
1933
2050
|
] });
|
|
1934
|
-
},
|
|
2051
|
+
}, J1 = ({ isFeatured: n, onClick: l }) => /* @__PURE__ */ e.jsx("span", { className: "span-featured", children: /* @__PURE__ */ e.jsx("span", { className: n ? "featured-star" : "un-featured-star", onClick: l }) }), G1 = ({ rating: n, color: l, size: r, ...i }) => {
|
|
1935
2052
|
const c = {
|
|
1936
2053
|
"--r": n
|
|
1937
|
-
},
|
|
2054
|
+
}, x = () => {
|
|
1938
2055
|
let o = "muncher-star";
|
|
1939
|
-
return
|
|
2056
|
+
return l && (o += " star-" + l), r && (o += " star-" + r), o;
|
|
1940
2057
|
};
|
|
1941
|
-
return /* @__PURE__ */ e.jsx("span", { className:
|
|
1942
|
-
},
|
|
1943
|
-
const [r, i] = S(0), { tabs: c } =
|
|
2058
|
+
return /* @__PURE__ */ e.jsx("span", { className: x(), style: c, ...i });
|
|
2059
|
+
}, q1 = ({ handleTabSelected: n, children: l }) => {
|
|
2060
|
+
const [r, i] = S(0), { tabs: c } = l, x = (o) => {
|
|
1944
2061
|
i(o), n && n(o);
|
|
1945
2062
|
};
|
|
1946
2063
|
return /* @__PURE__ */ e.jsxs("section", { className: "muncher-tabs", children: [
|
|
1947
2064
|
/* @__PURE__ */ e.jsx("header", { children: c.map(
|
|
1948
|
-
(o,
|
|
2065
|
+
(o, a) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-tab-header--item", children: [
|
|
1949
2066
|
/* @__PURE__ */ e.jsx(
|
|
1950
|
-
|
|
2067
|
+
V,
|
|
1951
2068
|
{
|
|
1952
2069
|
variant: "transparent",
|
|
1953
|
-
active: r ===
|
|
2070
|
+
active: r === a,
|
|
1954
2071
|
size: "small",
|
|
1955
2072
|
title: o.headerTitle,
|
|
1956
2073
|
onClick: () => {
|
|
1957
|
-
a
|
|
2074
|
+
x(a);
|
|
1958
2075
|
},
|
|
1959
2076
|
children: o.header
|
|
1960
2077
|
}
|
|
1961
2078
|
),
|
|
1962
|
-
|
|
1963
|
-
] }, "muncher-tab-header" +
|
|
2079
|
+
a !== c.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
|
|
2080
|
+
] }, "muncher-tab-header" + a)
|
|
1964
2081
|
) }),
|
|
1965
2082
|
c.map(
|
|
1966
|
-
(o,
|
|
2083
|
+
(o, a) => /* @__PURE__ */ e.jsx(
|
|
1967
2084
|
"section",
|
|
1968
2085
|
{
|
|
1969
|
-
className: r ===
|
|
2086
|
+
className: r === a ? "muncher-tab muncher-tab--active" : "muncher-tab",
|
|
1970
2087
|
children: o.body
|
|
1971
2088
|
},
|
|
1972
|
-
"muncher-tab-" +
|
|
2089
|
+
"muncher-tab-" + a
|
|
1973
2090
|
)
|
|
1974
2091
|
)
|
|
1975
2092
|
] });
|
|
1976
|
-
},
|
|
2093
|
+
}, X1 = ({
|
|
1977
2094
|
fileName: n,
|
|
1978
|
-
defaultPageSize:
|
|
2095
|
+
defaultPageSize: l = 50,
|
|
1979
2096
|
skeleton: r,
|
|
1980
2097
|
handleOnUpload: i,
|
|
1981
2098
|
sortBy: c,
|
|
1982
|
-
excludeDownload:
|
|
2099
|
+
excludeDownload: x,
|
|
1983
2100
|
includeUpload: o,
|
|
1984
|
-
isUploading:
|
|
2101
|
+
isUploading: a,
|
|
1985
2102
|
uploadWarningMessage: j,
|
|
1986
|
-
uploadSuccessMessage:
|
|
2103
|
+
uploadSuccessMessage: y,
|
|
1987
2104
|
excludePagination: d,
|
|
1988
2105
|
footer: h,
|
|
1989
2106
|
children: p
|
|
1990
2107
|
}) => {
|
|
1991
|
-
const { header:
|
|
1992
|
-
|
|
1993
|
-
(
|
|
2108
|
+
const { header: v, rows: N } = p, [g, _] = S(c ?? { index: 0 }), [f, E] = S({ num: 0, size: l }), C = (m) => {
|
|
2109
|
+
_(
|
|
2110
|
+
(k) => k.index === m ? { ...k, desc: !k.desc } : { index: m }
|
|
1994
2111
|
);
|
|
1995
|
-
},
|
|
1996
|
-
var
|
|
1997
|
-
const m = [...
|
|
1998
|
-
return
|
|
2112
|
+
}, A = l1(() => {
|
|
2113
|
+
var z;
|
|
2114
|
+
const m = [...N], k = (z = v[g.index]) == null ? void 0 : z.sort;
|
|
2115
|
+
return k ? m.sort(k) : m.sort((O, X) => {
|
|
1999
2116
|
var $, Y, U, W;
|
|
2000
|
-
const Z = ((Y = ($ =
|
|
2117
|
+
const Z = ((Y = ($ = O[g.index]) == null ? void 0 : $.value) == null ? void 0 : Y.toString().toLowerCase()) ?? "", I = ((W = (U = X[g.index]) == null ? void 0 : U.value) == null ? void 0 : W.toString().toLowerCase()) ?? "";
|
|
2001
2118
|
return Z.localeCompare(I);
|
|
2002
|
-
}),
|
|
2003
|
-
}, [
|
|
2004
|
-
() =>
|
|
2005
|
-
[
|
|
2006
|
-
), H =
|
|
2007
|
-
(m) => m.filter((
|
|
2119
|
+
}), g.desc ? m.reverse() : m;
|
|
2120
|
+
}, [N, g, v]), b = l1(
|
|
2121
|
+
() => A.slice(f.num * f.size, (f.num + 1) * f.size),
|
|
2122
|
+
[A, f]
|
|
2123
|
+
), H = v.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P = N.map(
|
|
2124
|
+
(m) => m.filter((k, z) => !v[z].csvExclude).map((k) => k.csv ?? k.value ?? "")
|
|
2008
2125
|
);
|
|
2009
2126
|
return /* @__PURE__ */ e.jsxs("section", { className: "muncher-table", children: [
|
|
2010
|
-
/* @__PURE__ */ e.jsx("div", { className: "row head", children:
|
|
2011
|
-
(m,
|
|
2127
|
+
/* @__PURE__ */ e.jsx("div", { className: "row head", children: v.map(
|
|
2128
|
+
(m, k) => m.visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
|
|
2012
2129
|
"div",
|
|
2013
2130
|
{
|
|
2014
2131
|
title: m.title,
|
|
2015
2132
|
className: m.visibility ? "col main" : "col",
|
|
2016
2133
|
children: typeof m.name == "string" ? /* @__PURE__ */ e.jsx("div", { className: "sort-button", children: /* @__PURE__ */ e.jsx(
|
|
2017
|
-
|
|
2134
|
+
w1,
|
|
2018
2135
|
{
|
|
2019
|
-
onClick: () =>
|
|
2020
|
-
active:
|
|
2021
|
-
sortAsc: !
|
|
2136
|
+
onClick: () => C(k),
|
|
2137
|
+
active: g.index === k,
|
|
2138
|
+
sortAsc: !g.desc,
|
|
2022
2139
|
children: m.name
|
|
2023
2140
|
}
|
|
2024
2141
|
) }) : m.name
|
|
2025
2142
|
},
|
|
2026
|
-
`row-head-${
|
|
2143
|
+
`row-head-${k}`
|
|
2027
2144
|
)
|
|
2028
2145
|
) }),
|
|
2029
|
-
r ||
|
|
2030
|
-
(
|
|
2146
|
+
r || b.map((m, k) => /* @__PURE__ */ e.jsx("div", { className: "row", children: m.map(
|
|
2147
|
+
(z, O) => v[O].visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
|
|
2031
2148
|
"div",
|
|
2032
2149
|
{
|
|
2033
|
-
className:
|
|
2034
|
-
children:
|
|
2150
|
+
className: v[O].visibility ? "col main" : "col",
|
|
2151
|
+
children: z.content
|
|
2035
2152
|
},
|
|
2036
|
-
`row-col-${
|
|
2153
|
+
`row-col-${k}-${O}`
|
|
2037
2154
|
)
|
|
2038
|
-
) }, `row-${
|
|
2155
|
+
) }, `row-${k}`)),
|
|
2039
2156
|
h ?? null,
|
|
2040
2157
|
/* @__PURE__ */ e.jsxs("div", { className: "row-footer", children: [
|
|
2041
2158
|
/* @__PURE__ */ e.jsxs("div", { className: "row-footer-buttons", children: [
|
|
2042
|
-
!
|
|
2043
|
-
|
|
2159
|
+
!x && /* @__PURE__ */ e.jsx(
|
|
2160
|
+
M1,
|
|
2044
2161
|
{
|
|
2045
2162
|
filename: n ?? "download",
|
|
2046
2163
|
variant: "secondary",
|
|
@@ -2050,13 +2167,13 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2050
2167
|
}
|
|
2051
2168
|
),
|
|
2052
2169
|
o && /* @__PURE__ */ e.jsx(
|
|
2053
|
-
|
|
2170
|
+
N1,
|
|
2054
2171
|
{
|
|
2055
2172
|
name: "csv-input-file",
|
|
2056
2173
|
handleOnChange: i,
|
|
2057
|
-
isUploading:
|
|
2174
|
+
isUploading: a,
|
|
2058
2175
|
warningMessage: j,
|
|
2059
|
-
successMessage:
|
|
2176
|
+
successMessage: y
|
|
2060
2177
|
}
|
|
2061
2178
|
)
|
|
2062
2179
|
] }),
|
|
@@ -2064,7 +2181,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2064
2181
|
/* @__PURE__ */ e.jsxs("div", { className: "left", children: [
|
|
2065
2182
|
"Rows:",
|
|
2066
2183
|
/* @__PURE__ */ e.jsx(
|
|
2067
|
-
|
|
2184
|
+
C1,
|
|
2068
2185
|
{
|
|
2069
2186
|
name: "pageSize",
|
|
2070
2187
|
options: [
|
|
@@ -2072,37 +2189,37 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2072
2189
|
{ label: "100", value: "100" },
|
|
2073
2190
|
{ label: "500", value: "500" }
|
|
2074
2191
|
],
|
|
2075
|
-
value: String(
|
|
2076
|
-
onChange: (m) =>
|
|
2192
|
+
value: String(f.size),
|
|
2193
|
+
onChange: (m) => E({ num: 0, size: parseInt(m.target.value, 10) })
|
|
2077
2194
|
}
|
|
2078
2195
|
)
|
|
2079
2196
|
] }),
|
|
2080
2197
|
/* @__PURE__ */ e.jsxs("div", { className: "center", children: [
|
|
2081
|
-
|
|
2198
|
+
f.num * f.size + 1,
|
|
2082
2199
|
" -",
|
|
2083
|
-
Math.min((
|
|
2200
|
+
Math.min((f.num + 1) * f.size, N.length),
|
|
2084
2201
|
" of ",
|
|
2085
|
-
|
|
2202
|
+
N.length
|
|
2086
2203
|
] }),
|
|
2087
2204
|
/* @__PURE__ */ e.jsxs("div", { className: "right", children: [
|
|
2088
2205
|
/* @__PURE__ */ e.jsx(
|
|
2089
|
-
|
|
2206
|
+
V,
|
|
2090
2207
|
{
|
|
2091
2208
|
variant: "transparent",
|
|
2092
|
-
disabled:
|
|
2209
|
+
disabled: f.num === 0,
|
|
2093
2210
|
size: "small",
|
|
2094
|
-
onClick: () =>
|
|
2095
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2211
|
+
onClick: () => E({ ...f, num: f.num - 1 }),
|
|
2212
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "chevron-left" })
|
|
2096
2213
|
}
|
|
2097
2214
|
),
|
|
2098
2215
|
/* @__PURE__ */ e.jsx(
|
|
2099
|
-
|
|
2216
|
+
V,
|
|
2100
2217
|
{
|
|
2101
2218
|
variant: "transparent",
|
|
2102
|
-
disabled: (
|
|
2219
|
+
disabled: (f.num + 1) * f.size >= N.length,
|
|
2103
2220
|
size: "small",
|
|
2104
|
-
onClick: () =>
|
|
2105
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2221
|
+
onClick: () => E({ ...f, num: f.num + 1 }),
|
|
2222
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "chevron-right" })
|
|
2106
2223
|
}
|
|
2107
2224
|
)
|
|
2108
2225
|
] })
|
|
@@ -2111,42 +2228,42 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2111
2228
|
] });
|
|
2112
2229
|
};
|
|
2113
2230
|
export {
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2231
|
+
A1 as Accordion,
|
|
2232
|
+
m1 as Backdrop,
|
|
2233
|
+
f1 as Badge,
|
|
2234
|
+
V as Button,
|
|
2235
|
+
_1 as Checkbox,
|
|
2236
|
+
b1 as CopyButton,
|
|
2237
|
+
M1 as CsvButton,
|
|
2238
|
+
N1 as CsvInput,
|
|
2239
|
+
v1 as DropdownButton,
|
|
2240
|
+
R1 as DropdownNavButton,
|
|
2241
|
+
J1 as Featured,
|
|
2242
|
+
Y1 as Hr,
|
|
2243
|
+
w as Icon,
|
|
2244
|
+
z1 as IconBadge,
|
|
2245
|
+
S1 as ImageInput,
|
|
2246
|
+
k1 as Input,
|
|
2247
|
+
U1 as ItemSlider,
|
|
2131
2248
|
q as Label,
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
$
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2249
|
+
P1 as Li,
|
|
2250
|
+
D1 as Modal,
|
|
2251
|
+
a1 as NavigateButton,
|
|
2252
|
+
F1 as Paper,
|
|
2253
|
+
I1 as Pill,
|
|
2254
|
+
$1 as Progress,
|
|
2255
|
+
H1 as Radio,
|
|
2256
|
+
W1 as RangeSlider,
|
|
2257
|
+
C1 as Select,
|
|
2258
|
+
T1 as ShareButton,
|
|
2259
|
+
B1 as Slider,
|
|
2260
|
+
w1 as SortButton,
|
|
2261
|
+
h1 as Spinner,
|
|
2262
|
+
G1 as Star,
|
|
2263
|
+
X1 as Table,
|
|
2264
|
+
q1 as Tabs,
|
|
2265
|
+
L1 as TextInputDropdown,
|
|
2266
|
+
V1 as Textarea,
|
|
2267
|
+
O1 as Ul,
|
|
2268
|
+
g1 as copyToClipboard
|
|
2152
2269
|
};
|