@contentmunch/contentmunch-ui 1.1.3 → 1.1.5
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 +22 -0
- package/lib/index.cjs.js +3 -3
- package/lib/index.es.js +696 -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" }),
|
|
@@ -372,6 +372,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
372
372
|
/* @__PURE__ */ e.jsx("line", { x1: "3", y1: "15", x2: "21", y2: "15" }),
|
|
373
373
|
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "3", x2: "12", y2: "21" })
|
|
374
374
|
] }),
|
|
375
|
+
"split-view": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
376
|
+
/* @__PURE__ */ e.jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
377
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "3", x2: "12", y2: "21" })
|
|
378
|
+
] }),
|
|
375
379
|
undo: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
376
380
|
/* @__PURE__ */ e.jsx("polyline", { points: "2 10 2 16 8 16" }),
|
|
377
381
|
/* @__PURE__ */ e.jsx("path", { d: "m22 16c-1.8136-6.5424-9.5593-9.4823-15.36-4.36l-4.64 4.36" })
|
|
@@ -412,6 +416,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
412
416
|
/* @__PURE__ */ e.jsx("polyline", { points: "16 12 12 8 8 12" }),
|
|
413
417
|
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "16", x2: "12", y2: "8" })
|
|
414
418
|
] }),
|
|
419
|
+
anchor: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
420
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "5", r: "3" }),
|
|
421
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "22", x2: "12", y2: "8" }),
|
|
422
|
+
/* @__PURE__ */ e.jsx("path", { d: "M5 12H2a10 10 0 0 0 20 0h-3" })
|
|
423
|
+
] }),
|
|
415
424
|
hamburger: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
416
425
|
/* @__PURE__ */ e.jsx("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
|
417
426
|
/* @__PURE__ */ e.jsx("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
|
@@ -471,6 +480,15 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
471
480
|
/* @__PURE__ */ e.jsx("polyline", { points: "12 6 12 12 16 14" })
|
|
472
481
|
] }),
|
|
473
482
|
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" }) }),
|
|
483
|
+
"cloud-drizzle": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
484
|
+
/* @__PURE__ */ e.jsx("line", { x1: "8", y1: "19", x2: "8", y2: "21" }),
|
|
485
|
+
/* @__PURE__ */ e.jsx("line", { x1: "8", y1: "13", x2: "8", y2: "15" }),
|
|
486
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16", y1: "19", x2: "16", y2: "21" }),
|
|
487
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16", y1: "13", x2: "16", y2: "15" }),
|
|
488
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
|
|
489
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "15", x2: "12", y2: "17" }),
|
|
490
|
+
/* @__PURE__ */ e.jsx("path", { d: "M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25" })
|
|
491
|
+
] }),
|
|
474
492
|
"cloud-lightning": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
475
493
|
/* @__PURE__ */ e.jsx("path", { d: "M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9" }),
|
|
476
494
|
/* @__PURE__ */ e.jsx("polyline", { points: "13 11 9 17 15 17 11 23" })
|
|
@@ -488,6 +506,86 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
488
506
|
}
|
|
489
507
|
)
|
|
490
508
|
] }),
|
|
509
|
+
coffee: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
510
|
+
/* @__PURE__ */ e.jsx("path", { d: "M18 8h1a4 4 0 0 1 0 8h-1" }),
|
|
511
|
+
/* @__PURE__ */ e.jsx("path", { d: "M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z" }),
|
|
512
|
+
/* @__PURE__ */ e.jsx("line", { x1: "6", y1: "1", x2: "6", y2: "4" }),
|
|
513
|
+
/* @__PURE__ */ e.jsx("line", { x1: "10", y1: "1", x2: "10", y2: "4" }),
|
|
514
|
+
/* @__PURE__ */ e.jsx("line", { x1: "14", y1: "1", x2: "14", y2: "4" })
|
|
515
|
+
] }),
|
|
516
|
+
compass: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
517
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
518
|
+
/* @__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" })
|
|
519
|
+
] }),
|
|
520
|
+
eye: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
521
|
+
/* @__PURE__ */ e.jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
522
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
523
|
+
] }),
|
|
524
|
+
feather: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
525
|
+
/* @__PURE__ */ e.jsx("path", { d: "M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z" }),
|
|
526
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16", y1: "8", x2: "2", y2: "22" }),
|
|
527
|
+
/* @__PURE__ */ e.jsx("line", { x1: "17.5", y1: "15", x2: "9", y2: "15" })
|
|
528
|
+
] }),
|
|
529
|
+
globe: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
530
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
531
|
+
/* @__PURE__ */ e.jsx("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
|
|
532
|
+
/* @__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" })
|
|
533
|
+
] }),
|
|
534
|
+
headphone: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
535
|
+
/* @__PURE__ */ e.jsx("path", { d: "M3 18v-6a9 9 0 0 1 18 0v6" }),
|
|
536
|
+
/* @__PURE__ */ e.jsx(
|
|
537
|
+
"path",
|
|
538
|
+
{
|
|
539
|
+
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"
|
|
540
|
+
}
|
|
541
|
+
)
|
|
542
|
+
] }),
|
|
543
|
+
hexagon: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
|
|
544
|
+
"path",
|
|
545
|
+
{
|
|
546
|
+
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"
|
|
547
|
+
}
|
|
548
|
+
) }),
|
|
549
|
+
package: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
550
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16.5", y1: "9.4", x2: "7.5", y2: "4.21" }),
|
|
551
|
+
/* @__PURE__ */ e.jsx(
|
|
552
|
+
"path",
|
|
553
|
+
{
|
|
554
|
+
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"
|
|
555
|
+
}
|
|
556
|
+
),
|
|
557
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "3.27 6.96 12 12.01 20.73 6.96" }),
|
|
558
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "22.08", x2: "12", y2: "12" })
|
|
559
|
+
] }),
|
|
560
|
+
"paper-clip": /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
|
|
561
|
+
"path",
|
|
562
|
+
{
|
|
563
|
+
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"
|
|
564
|
+
}
|
|
565
|
+
) }),
|
|
566
|
+
"pen-tool": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
567
|
+
/* @__PURE__ */ e.jsx("path", { d: "M12 19l7-7 3 3-7 7-3-3z" }),
|
|
568
|
+
/* @__PURE__ */ e.jsx("path", { d: "M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z" }),
|
|
569
|
+
/* @__PURE__ */ e.jsx("path", { d: "M2 2l7.586 7.586" }),
|
|
570
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "11", cy: "11", r: "2" })
|
|
571
|
+
] }),
|
|
572
|
+
pocket: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
573
|
+
/* @__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" }),
|
|
574
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "8 10 12 14 16 10" })
|
|
575
|
+
] }),
|
|
576
|
+
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" }) }),
|
|
577
|
+
watch: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
578
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "7" }),
|
|
579
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "12 9 12 12 13.5 13.5" }),
|
|
580
|
+
/* @__PURE__ */ e.jsx(
|
|
581
|
+
"path",
|
|
582
|
+
{
|
|
583
|
+
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"
|
|
584
|
+
}
|
|
585
|
+
)
|
|
586
|
+
] }),
|
|
587
|
+
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" }) }),
|
|
588
|
+
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
589
|
video: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
492
590
|
/* @__PURE__ */ e.jsx("polygon", { points: "23 7 16 12 23 17 23 7" }),
|
|
493
591
|
/* @__PURE__ */ e.jsx("rect", { x: "1", y: "5", width: "15", height: "14", rx: "2", ry: "2" })
|
|
@@ -804,6 +902,23 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
804
902
|
/* @__PURE__ */ e.jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
805
903
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "7", r: "4" })
|
|
806
904
|
] }),
|
|
905
|
+
"user-plus": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
906
|
+
/* @__PURE__ */ e.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
907
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "8.5", cy: "7", r: "4" }),
|
|
908
|
+
/* @__PURE__ */ e.jsx("line", { x1: "20", y1: "8", x2: "20", y2: "14" }),
|
|
909
|
+
/* @__PURE__ */ e.jsx("line", { x1: "23", y1: "11", x2: "17", y2: "11" })
|
|
910
|
+
] }),
|
|
911
|
+
"user-minus": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
912
|
+
/* @__PURE__ */ e.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
913
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "8.5", cy: "7", r: "4" }),
|
|
914
|
+
/* @__PURE__ */ e.jsx("line", { x1: "23", y1: "11", x2: "17", y2: "11" })
|
|
915
|
+
] }),
|
|
916
|
+
users: /* @__PURE__ */ e.jsxs(s, { children: [
|
|
917
|
+
/* @__PURE__ */ e.jsx("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
918
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "9", cy: "7", r: "4" }),
|
|
919
|
+
/* @__PURE__ */ e.jsx("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
|
|
920
|
+
/* @__PURE__ */ e.jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
|
|
921
|
+
] }),
|
|
807
922
|
"log-in": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
808
923
|
/* @__PURE__ */ e.jsx("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
|
|
809
924
|
/* @__PURE__ */ e.jsx("polyline", { points: "10 17 15 12 10 7" }),
|
|
@@ -1054,6 +1169,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1054
1169
|
/* @__PURE__ */ e.jsx("circle", { cx: "20", cy: "21", r: "1" }),
|
|
1055
1170
|
/* @__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
1171
|
] }),
|
|
1172
|
+
"bar-chart": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
1173
|
+
/* @__PURE__ */ e.jsx("line", { x1: "18", y1: "20", x2: "18", y2: "10" }),
|
|
1174
|
+
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "20", x2: "12", y2: "4" }),
|
|
1175
|
+
/* @__PURE__ */ e.jsx("line", { x1: "6", y1: "20", x2: "6", y2: "14" })
|
|
1176
|
+
] }),
|
|
1057
1177
|
"pie-chart": /* @__PURE__ */ e.jsxs(s, { children: [
|
|
1058
1178
|
/* @__PURE__ */ e.jsx("path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83" }),
|
|
1059
1179
|
/* @__PURE__ */ e.jsx("path", { d: "M22 12A10 10 0 0 0 12 2v10z" })
|
|
@@ -1080,10 +1200,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1080
1200
|
/* @__PURE__ */ e.jsx("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }),
|
|
1081
1201
|
/* @__PURE__ */ e.jsx("text", { x: "6", y: "14", fontSize: "6", fontFamily: "'Lucida Grande', sans-serif", children: "360" })
|
|
1082
1202
|
] })
|
|
1083
|
-
},
|
|
1203
|
+
}, w = ({ color: n, name: l, size: r = "small", weight: i = 2, onClick: c, iconString: x, orientation: o, children: a }) => {
|
|
1084
1204
|
const j = r ? "muncher-icon--" + r : "muncher-icon--small";
|
|
1085
1205
|
return /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon", children: [
|
|
1086
|
-
|
|
1206
|
+
a && o && o === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: a }) : "",
|
|
1087
1207
|
/* @__PURE__ */ e.jsx(
|
|
1088
1208
|
"svg",
|
|
1089
1209
|
{
|
|
@@ -1096,14 +1216,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1096
1216
|
strokeLinecap: "round",
|
|
1097
1217
|
strokeLinejoin: "round",
|
|
1098
1218
|
onClick: c,
|
|
1099
|
-
children:
|
|
1219
|
+
children: l ? x1[l] : x ? Object(x1)[x] : ""
|
|
1100
1220
|
}
|
|
1101
1221
|
),
|
|
1102
|
-
|
|
1222
|
+
a && (!o || o === "left") ? /* @__PURE__ */ e.jsx("span", { className: "content-right", children: a }) : ""
|
|
1103
1223
|
] });
|
|
1104
|
-
},
|
|
1224
|
+
}, z1 = ({
|
|
1105
1225
|
variant: n = "primary",
|
|
1106
|
-
icon:
|
|
1226
|
+
icon: l = "bell",
|
|
1107
1227
|
text: r,
|
|
1108
1228
|
onClick: i,
|
|
1109
1229
|
...c
|
|
@@ -1114,82 +1234,82 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1114
1234
|
onClick: i,
|
|
1115
1235
|
...c,
|
|
1116
1236
|
children: [
|
|
1117
|
-
/* @__PURE__ */ e.jsx(
|
|
1118
|
-
r === "" ? "" : /* @__PURE__ */ e.jsx(
|
|
1237
|
+
/* @__PURE__ */ e.jsx(w, { name: l }),
|
|
1238
|
+
r === "" ? "" : /* @__PURE__ */ e.jsx(f1, { variant: n, children: r })
|
|
1119
1239
|
]
|
|
1120
1240
|
}
|
|
1121
|
-
),
|
|
1241
|
+
), V = ({
|
|
1122
1242
|
type: n = "button",
|
|
1123
|
-
variant:
|
|
1243
|
+
variant: l,
|
|
1124
1244
|
size: r = "medium",
|
|
1125
1245
|
title: i,
|
|
1126
1246
|
active: c,
|
|
1127
|
-
disabled:
|
|
1247
|
+
disabled: x,
|
|
1128
1248
|
rounded: o,
|
|
1129
|
-
onClick:
|
|
1249
|
+
onClick: a,
|
|
1130
1250
|
onMouseDown: j,
|
|
1131
|
-
onMouseEnter:
|
|
1251
|
+
onMouseEnter: y,
|
|
1132
1252
|
onMouseLeave: d,
|
|
1133
1253
|
children: h,
|
|
1134
1254
|
...p
|
|
1135
1255
|
}) => {
|
|
1136
|
-
const
|
|
1256
|
+
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
1257
|
return /* @__PURE__ */ e.jsx(
|
|
1138
1258
|
"button",
|
|
1139
1259
|
{
|
|
1140
1260
|
type: n && n !== "nav" ? n : "button",
|
|
1141
|
-
className:
|
|
1142
|
-
disabled: !!
|
|
1261
|
+
className: v,
|
|
1262
|
+
disabled: !!x,
|
|
1143
1263
|
title: i,
|
|
1144
|
-
onClick:
|
|
1264
|
+
onClick: a,
|
|
1145
1265
|
onMouseDown: j,
|
|
1146
|
-
onMouseEnter:
|
|
1266
|
+
onMouseEnter: y,
|
|
1147
1267
|
onMouseLeave: d,
|
|
1148
1268
|
...p,
|
|
1149
1269
|
children: h
|
|
1150
1270
|
}
|
|
1151
1271
|
);
|
|
1152
|
-
},
|
|
1272
|
+
}, v1 = ({
|
|
1153
1273
|
variant: n,
|
|
1154
|
-
size:
|
|
1274
|
+
size: l = "medium",
|
|
1155
1275
|
title: r,
|
|
1156
1276
|
active: i,
|
|
1157
1277
|
disabled: c,
|
|
1158
|
-
element:
|
|
1278
|
+
element: x,
|
|
1159
1279
|
onMouseDown: o,
|
|
1160
|
-
rounded:
|
|
1280
|
+
rounded: a,
|
|
1161
1281
|
drop: j,
|
|
1162
|
-
onClick:
|
|
1282
|
+
onClick: y,
|
|
1163
1283
|
onClose: d,
|
|
1164
1284
|
showContent: h,
|
|
1165
1285
|
setShowContent: p,
|
|
1166
|
-
withDropIcon:
|
|
1167
|
-
children:
|
|
1168
|
-
...
|
|
1286
|
+
withDropIcon: v,
|
|
1287
|
+
children: N,
|
|
1288
|
+
...g
|
|
1169
1289
|
}) => {
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1172
|
-
},
|
|
1290
|
+
const _ = d1(null), f = (b) => {
|
|
1291
|
+
b.preventDefault(), y && y(b), p && p(!0);
|
|
1292
|
+
}, E = G(() => {
|
|
1173
1293
|
p(!1), d && d();
|
|
1174
|
-
}, [d, p]),
|
|
1175
|
-
|
|
1176
|
-
}, [
|
|
1294
|
+
}, [d, p]), C = G((b) => {
|
|
1295
|
+
b.keyCode === 27 && E();
|
|
1296
|
+
}, [E]);
|
|
1177
1297
|
Q(() => {
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1298
|
+
const b = (H) => {
|
|
1299
|
+
_ && _.current && H.target instanceof HTMLElement && !_.current.contains(H.target) && E();
|
|
1180
1300
|
};
|
|
1181
|
-
return document.addEventListener("keydown",
|
|
1182
|
-
document.removeEventListener("keydown",
|
|
1301
|
+
return document.addEventListener("keydown", C, !1), document.addEventListener("mousedown", b), () => {
|
|
1302
|
+
document.removeEventListener("keydown", C, !1);
|
|
1183
1303
|
};
|
|
1184
|
-
}, [
|
|
1185
|
-
const
|
|
1304
|
+
}, [C, E]);
|
|
1305
|
+
const A = () => {
|
|
1186
1306
|
var P;
|
|
1187
|
-
const
|
|
1188
|
-
if (
|
|
1189
|
-
if (
|
|
1190
|
-
if (H -
|
|
1191
|
-
if (H -
|
|
1192
|
-
const m = Math.round((H -
|
|
1307
|
+
const b = (P = _.current) == null ? void 0 : P.offsetLeft, H = window.innerWidth;
|
|
1308
|
+
if (b) {
|
|
1309
|
+
if (b < 100) return "muncher-dropdown--content";
|
|
1310
|
+
if (H - b < 150) return "muncher-dropdown--content drop-left";
|
|
1311
|
+
if (H - b < 250) {
|
|
1312
|
+
const m = Math.round((H - b) / H * 100);
|
|
1193
1313
|
if (m > 40 || m < 60) return "muncher-dropdown--content drop-middle";
|
|
1194
1314
|
}
|
|
1195
1315
|
}
|
|
@@ -1202,21 +1322,21 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1202
1322
|
return "muncher-dropdown--content";
|
|
1203
1323
|
}
|
|
1204
1324
|
};
|
|
1205
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref:
|
|
1325
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref: _, children: [
|
|
1206
1326
|
/* @__PURE__ */ e.jsxs(
|
|
1207
|
-
|
|
1327
|
+
V,
|
|
1208
1328
|
{
|
|
1209
|
-
onMouseDown:
|
|
1329
|
+
onMouseDown: f,
|
|
1210
1330
|
title: r,
|
|
1211
1331
|
disabled: c,
|
|
1212
|
-
rounded:
|
|
1332
|
+
rounded: a,
|
|
1213
1333
|
active: i,
|
|
1214
1334
|
variant: n,
|
|
1215
|
-
size:
|
|
1216
|
-
...
|
|
1335
|
+
size: l,
|
|
1336
|
+
...g,
|
|
1217
1337
|
children: [
|
|
1218
|
-
|
|
1219
|
-
|
|
1338
|
+
x,
|
|
1339
|
+
v ? /* @__PURE__ */ e.jsx(
|
|
1220
1340
|
"span",
|
|
1221
1341
|
{
|
|
1222
1342
|
className: "small",
|
|
@@ -1226,157 +1346,157 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1226
1346
|
]
|
|
1227
1347
|
}
|
|
1228
1348
|
),
|
|
1229
|
-
h ? /* @__PURE__ */ e.jsx("div", { className:
|
|
1349
|
+
h ? /* @__PURE__ */ e.jsx("div", { className: A(), children: N }) : ""
|
|
1230
1350
|
] });
|
|
1231
|
-
},
|
|
1351
|
+
}, R1 = ({
|
|
1232
1352
|
title: n,
|
|
1233
|
-
active:
|
|
1353
|
+
active: l,
|
|
1234
1354
|
disabled: r,
|
|
1235
1355
|
element: i,
|
|
1236
1356
|
rounded: c,
|
|
1237
|
-
dropLeft:
|
|
1357
|
+
dropLeft: x,
|
|
1238
1358
|
children: o,
|
|
1239
|
-
...
|
|
1240
|
-
}) => /* @__PURE__ */ e.jsxs("div", { className: `muncher-dropdown-nav ${
|
|
1359
|
+
...a
|
|
1360
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: `muncher-dropdown-nav ${x ? "drop-left" : ""}`, children: [
|
|
1241
1361
|
/* @__PURE__ */ e.jsx(
|
|
1242
|
-
|
|
1362
|
+
V,
|
|
1243
1363
|
{
|
|
1244
1364
|
type: "nav",
|
|
1245
1365
|
title: n,
|
|
1246
1366
|
disabled: r,
|
|
1247
1367
|
rounded: c,
|
|
1248
|
-
active:
|
|
1249
|
-
...
|
|
1368
|
+
active: l,
|
|
1369
|
+
...a,
|
|
1250
1370
|
children: i
|
|
1251
1371
|
}
|
|
1252
1372
|
),
|
|
1253
1373
|
/* @__PURE__ */ e.jsx("div", { className: "muncher-dropdown-nav--content", children: o })
|
|
1254
|
-
] }),
|
|
1374
|
+
] }), g1 = (n) => {
|
|
1255
1375
|
navigator.clipboard.writeText(n);
|
|
1256
|
-
},
|
|
1376
|
+
}, b1 = ({
|
|
1257
1377
|
text: n,
|
|
1258
|
-
variant:
|
|
1378
|
+
variant: l = "secondary",
|
|
1259
1379
|
size: r = "small"
|
|
1260
1380
|
}) => {
|
|
1261
|
-
const [i, c] = S(), [
|
|
1262
|
-
|
|
1381
|
+
const [i, c] = S(), [x, o] = S("copy"), [a, j] = S("copy link"), y = () => {
|
|
1382
|
+
g1(n), c("green"), o("check"), j("copied!"), setTimeout(function() {
|
|
1263
1383
|
c(""), o("copy");
|
|
1264
1384
|
}, 2e3);
|
|
1265
1385
|
};
|
|
1266
1386
|
return /* @__PURE__ */ e.jsx(
|
|
1267
|
-
|
|
1387
|
+
V,
|
|
1268
1388
|
{
|
|
1269
1389
|
size: r,
|
|
1270
|
-
variant:
|
|
1271
|
-
title:
|
|
1272
|
-
onClick:
|
|
1273
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1390
|
+
variant: l,
|
|
1391
|
+
title: a,
|
|
1392
|
+
onClick: y,
|
|
1393
|
+
children: /* @__PURE__ */ e.jsx(w, { name: x, color: i })
|
|
1274
1394
|
}
|
|
1275
1395
|
);
|
|
1276
|
-
},
|
|
1396
|
+
}, T1 = ({
|
|
1277
1397
|
variant: n = "secondary",
|
|
1278
|
-
size:
|
|
1398
|
+
size: l = "medium",
|
|
1279
1399
|
title: r
|
|
1280
1400
|
}) => {
|
|
1281
1401
|
const [i, c] = S(!1);
|
|
1282
1402
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ e.jsxs(
|
|
1283
|
-
|
|
1403
|
+
v1,
|
|
1284
1404
|
{
|
|
1285
1405
|
title: "Share to Social Media",
|
|
1286
1406
|
showContent: i,
|
|
1287
1407
|
setShowContent: c,
|
|
1288
1408
|
variant: n,
|
|
1289
|
-
size:
|
|
1290
|
-
element: /* @__PURE__ */ e.jsx(
|
|
1409
|
+
size: l,
|
|
1410
|
+
element: /* @__PURE__ */ e.jsx(w, { name: "share", orientation: "right", children: "Share" }),
|
|
1291
1411
|
children: [
|
|
1292
|
-
/* @__PURE__ */ e.jsx(
|
|
1412
|
+
/* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
1293
1413
|
"a",
|
|
1294
1414
|
{
|
|
1295
1415
|
href: "https://twitter.com/share?url=" + window.location.href + "&text=" + r,
|
|
1296
1416
|
target: "_blank",
|
|
1297
1417
|
title: "Share link to Twitter",
|
|
1298
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1418
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "twitter" })
|
|
1299
1419
|
}
|
|
1300
1420
|
) }),
|
|
1301
|
-
/* @__PURE__ */ e.jsx(
|
|
1421
|
+
/* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
1302
1422
|
"a",
|
|
1303
1423
|
{
|
|
1304
1424
|
href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
|
|
1305
1425
|
target: "_blank",
|
|
1306
1426
|
title: "Share link to Facebook",
|
|
1307
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1427
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "facebook" })
|
|
1308
1428
|
}
|
|
1309
1429
|
) }),
|
|
1310
|
-
/* @__PURE__ */ e.jsx(
|
|
1430
|
+
/* @__PURE__ */ e.jsx(V, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
1311
1431
|
"a",
|
|
1312
1432
|
{
|
|
1313
1433
|
href: "mailto:?subject=" + r + "&body=" + window.location.href,
|
|
1314
1434
|
target: "_blank",
|
|
1315
1435
|
title: "share link by Email",
|
|
1316
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1436
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "mail" })
|
|
1317
1437
|
}
|
|
1318
1438
|
) }),
|
|
1319
|
-
/* @__PURE__ */ e.jsx(
|
|
1439
|
+
/* @__PURE__ */ e.jsx(b1, { text: window.location.href })
|
|
1320
1440
|
]
|
|
1321
1441
|
}
|
|
1322
1442
|
) });
|
|
1323
|
-
},
|
|
1443
|
+
}, M1 = ({
|
|
1324
1444
|
header: n,
|
|
1325
|
-
data:
|
|
1445
|
+
data: l,
|
|
1326
1446
|
filename: r,
|
|
1327
1447
|
variant: i,
|
|
1328
1448
|
size: c,
|
|
1329
|
-
title:
|
|
1449
|
+
title: x,
|
|
1330
1450
|
active: o,
|
|
1331
|
-
disabled:
|
|
1451
|
+
disabled: a,
|
|
1332
1452
|
rounded: j
|
|
1333
1453
|
}) => {
|
|
1334
|
-
const
|
|
1335
|
-
` +
|
|
1454
|
+
const y = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
|
|
1455
|
+
` + l.map((d) => d.join(",")).join(`
|
|
1336
1456
|
`));
|
|
1337
|
-
return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(
|
|
1338
|
-
},
|
|
1457
|
+
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" }) }) }) });
|
|
1458
|
+
}, w1 = ({
|
|
1339
1459
|
variant: n = "transparent",
|
|
1340
|
-
size:
|
|
1460
|
+
size: l = "small",
|
|
1341
1461
|
title: r,
|
|
1342
1462
|
sortAsc: i = "true",
|
|
1343
1463
|
active: c,
|
|
1344
|
-
rounded:
|
|
1464
|
+
rounded: x,
|
|
1345
1465
|
onClick: o,
|
|
1346
|
-
children:
|
|
1466
|
+
children: a
|
|
1347
1467
|
}) => {
|
|
1348
|
-
const [j,
|
|
1468
|
+
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
1469
|
return /* @__PURE__ */ e.jsxs(
|
|
1350
|
-
|
|
1470
|
+
V,
|
|
1351
1471
|
{
|
|
1352
1472
|
variant: n,
|
|
1353
|
-
size:
|
|
1473
|
+
size: l,
|
|
1354
1474
|
title: r,
|
|
1355
|
-
rounded:
|
|
1475
|
+
rounded: x,
|
|
1356
1476
|
onMouseEnter: () => {
|
|
1357
|
-
|
|
1477
|
+
y(!0);
|
|
1358
1478
|
},
|
|
1359
1479
|
onMouseLeave: () => {
|
|
1360
|
-
|
|
1480
|
+
y(!1);
|
|
1361
1481
|
},
|
|
1362
1482
|
onClick: o,
|
|
1363
1483
|
children: [
|
|
1364
|
-
|
|
1484
|
+
a,
|
|
1365
1485
|
c || j ? /* @__PURE__ */ e.jsx(d, {}) : ""
|
|
1366
1486
|
]
|
|
1367
1487
|
}
|
|
1368
1488
|
);
|
|
1369
|
-
},
|
|
1489
|
+
}, a1 = ({
|
|
1370
1490
|
direction: n,
|
|
1371
|
-
size:
|
|
1491
|
+
size: l = "small",
|
|
1372
1492
|
weight: r,
|
|
1373
1493
|
isDisabled: i,
|
|
1374
1494
|
variant: c = "primary",
|
|
1375
|
-
navIcon:
|
|
1495
|
+
navIcon: x = "chevron",
|
|
1376
1496
|
onClick: o
|
|
1377
1497
|
}) => {
|
|
1378
|
-
const
|
|
1379
|
-
switch (
|
|
1498
|
+
const a = () => {
|
|
1499
|
+
switch (x) {
|
|
1380
1500
|
case "arrow":
|
|
1381
1501
|
return n === "left" ? "arrow-left" : "arrow-right";
|
|
1382
1502
|
case "skip":
|
|
@@ -1392,30 +1512,30 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1392
1512
|
{
|
|
1393
1513
|
className: n === "left" ? "muncher-button--navigate muncher-button--navigate-left" : "muncher-button--navigate muncher-button--navigate-right",
|
|
1394
1514
|
children: /* @__PURE__ */ e.jsx(
|
|
1395
|
-
|
|
1515
|
+
V,
|
|
1396
1516
|
{
|
|
1397
1517
|
onClick: o,
|
|
1398
1518
|
disabled: i,
|
|
1399
1519
|
size: "small",
|
|
1400
1520
|
variant: c,
|
|
1401
1521
|
title: n === "left" ? "Navigate Left" : "Navigate Right",
|
|
1402
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1522
|
+
children: /* @__PURE__ */ e.jsx(w, { name: a(), size: l, weight: r })
|
|
1403
1523
|
}
|
|
1404
1524
|
)
|
|
1405
1525
|
}
|
|
1406
1526
|
);
|
|
1407
|
-
}, q = ({ label: n, onClick:
|
|
1527
|
+
}, q = ({ label: n, onClick: l, id: r, required: i = !1 }) => /* @__PURE__ */ e.jsxs("label", { htmlFor: r, onClick: l, children: [
|
|
1408
1528
|
n,
|
|
1409
1529
|
i ? /* @__PURE__ */ e.jsx("span", { className: "required", children: "*" }) : ""
|
|
1410
|
-
] }),
|
|
1530
|
+
] }), _1 = ({
|
|
1411
1531
|
name: n,
|
|
1412
|
-
required:
|
|
1532
|
+
required: l = !1,
|
|
1413
1533
|
onChange: r,
|
|
1414
1534
|
checked: i = !1,
|
|
1415
1535
|
label: c,
|
|
1416
|
-
...
|
|
1536
|
+
...x
|
|
1417
1537
|
}) => {
|
|
1418
|
-
const [o,
|
|
1538
|
+
const [o, a] = S(i || !1);
|
|
1419
1539
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-checkbox", children: [
|
|
1420
1540
|
/* @__PURE__ */ e.jsx(
|
|
1421
1541
|
"input",
|
|
@@ -1424,54 +1544,54 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1424
1544
|
id: n,
|
|
1425
1545
|
name: n,
|
|
1426
1546
|
onChange: (j) => {
|
|
1427
|
-
|
|
1547
|
+
a(j.target.checked), r && r();
|
|
1428
1548
|
},
|
|
1429
1549
|
checked: o,
|
|
1430
|
-
required:
|
|
1431
|
-
...
|
|
1550
|
+
required: l,
|
|
1551
|
+
...x
|
|
1432
1552
|
}
|
|
1433
1553
|
),
|
|
1434
1554
|
c ? /* @__PURE__ */ e.jsx(
|
|
1435
1555
|
q,
|
|
1436
1556
|
{
|
|
1437
1557
|
label: c,
|
|
1438
|
-
required:
|
|
1558
|
+
required: l,
|
|
1439
1559
|
id: n,
|
|
1440
1560
|
onClick: (j) => {
|
|
1441
|
-
j.preventDefault(),
|
|
1561
|
+
j.preventDefault(), a(!o), r && r();
|
|
1442
1562
|
}
|
|
1443
1563
|
}
|
|
1444
1564
|
) : ""
|
|
1445
1565
|
] }) });
|
|
1446
|
-
},
|
|
1566
|
+
}, h1 = ({ size: n, ...l }) => /* @__PURE__ */ e.jsx(
|
|
1447
1567
|
"div",
|
|
1448
1568
|
{
|
|
1449
1569
|
className: n ? "muncher-spinner muncher-spinner-" + n : "muncher-spinner",
|
|
1450
|
-
...
|
|
1570
|
+
...l
|
|
1451
1571
|
}
|
|
1452
|
-
),
|
|
1572
|
+
), N1 = ({
|
|
1453
1573
|
name: n,
|
|
1454
|
-
label:
|
|
1574
|
+
label: l,
|
|
1455
1575
|
variant: r = "secondary",
|
|
1456
1576
|
size: i = "medium",
|
|
1457
1577
|
required: c,
|
|
1458
|
-
active:
|
|
1578
|
+
active: x,
|
|
1459
1579
|
isUploading: o,
|
|
1460
|
-
handleOnChange:
|
|
1580
|
+
handleOnChange: a,
|
|
1461
1581
|
warningMessage: j,
|
|
1462
|
-
successMessage:
|
|
1582
|
+
successMessage: y,
|
|
1463
1583
|
...d
|
|
1464
1584
|
}) => {
|
|
1465
|
-
const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (
|
|
1466
|
-
|
|
1585
|
+
const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (x ? " muncher-button--active" : ""), p = (v) => {
|
|
1586
|
+
a && a(v.currentTarget.files[0]);
|
|
1467
1587
|
};
|
|
1468
1588
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
|
|
1469
1589
|
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: h, children: [
|
|
1470
|
-
/* @__PURE__ */ e.jsx(
|
|
1590
|
+
/* @__PURE__ */ e.jsx(w, { name: "upload" }),
|
|
1471
1591
|
" ",
|
|
1472
|
-
|
|
1592
|
+
l || "Upload CSV",
|
|
1473
1593
|
c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
|
|
1474
|
-
o ? /* @__PURE__ */ e.jsx(
|
|
1594
|
+
o ? /* @__PURE__ */ e.jsx(h1, { size: "tiny" }) : ""
|
|
1475
1595
|
] }),
|
|
1476
1596
|
/* @__PURE__ */ e.jsx(
|
|
1477
1597
|
"input",
|
|
@@ -1486,34 +1606,34 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1486
1606
|
}
|
|
1487
1607
|
),
|
|
1488
1608
|
j && j !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: j }) : "",
|
|
1489
|
-
|
|
1609
|
+
y && y !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: y }) : ""
|
|
1490
1610
|
] }) });
|
|
1491
|
-
},
|
|
1611
|
+
}, S1 = ({
|
|
1492
1612
|
name: n,
|
|
1493
|
-
label:
|
|
1613
|
+
label: l,
|
|
1494
1614
|
variant: r = "secondary",
|
|
1495
1615
|
size: i = "large",
|
|
1496
1616
|
required: c,
|
|
1497
|
-
active:
|
|
1617
|
+
active: x,
|
|
1498
1618
|
setFiles: o,
|
|
1499
|
-
error:
|
|
1619
|
+
error: a,
|
|
1500
1620
|
multiple: j = !1,
|
|
1501
|
-
maxFiles:
|
|
1621
|
+
maxFiles: y,
|
|
1502
1622
|
...d
|
|
1503
1623
|
}) => {
|
|
1504
|
-
const [h, p] = S(""), [
|
|
1624
|
+
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
1625
|
if (j) {
|
|
1506
|
-
let
|
|
1507
|
-
|
|
1626
|
+
let A = Array.from(C.currentTarget.files);
|
|
1627
|
+
A.length > g && (A = A.slice(0, g), N("Only first " + g + " files included")), o(A), p(A.map((b) => b.name).join(", "));
|
|
1508
1628
|
} else
|
|
1509
|
-
o(Array.from(
|
|
1510
|
-
},
|
|
1629
|
+
o(Array.from(C.currentTarget.files[0])), p(C.currentTarget.files[0].name);
|
|
1630
|
+
}, E = () => a && a !== "";
|
|
1511
1631
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-file-input--div", children: [
|
|
1512
1632
|
/* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
|
|
1513
|
-
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className:
|
|
1514
|
-
/* @__PURE__ */ e.jsx(
|
|
1633
|
+
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: _, children: [
|
|
1634
|
+
/* @__PURE__ */ e.jsx(w, { name: "image" }),
|
|
1515
1635
|
" ",
|
|
1516
|
-
|
|
1636
|
+
l,
|
|
1517
1637
|
c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
|
|
1518
1638
|
] }),
|
|
1519
1639
|
/* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: h }),
|
|
@@ -1524,53 +1644,53 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1524
1644
|
type: "file",
|
|
1525
1645
|
className: "muncher-file-input",
|
|
1526
1646
|
name: n,
|
|
1527
|
-
onChange:
|
|
1647
|
+
onChange: f,
|
|
1528
1648
|
multiple: j,
|
|
1529
1649
|
accept: "image/*",
|
|
1530
1650
|
...d
|
|
1531
1651
|
}
|
|
1532
1652
|
)
|
|
1533
1653
|
] }),
|
|
1534
|
-
|
|
1535
|
-
|
|
1654
|
+
v !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: v }) : "",
|
|
1655
|
+
E() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: a }) }) : ""
|
|
1536
1656
|
] });
|
|
1537
|
-
},
|
|
1657
|
+
}, k1 = ({
|
|
1538
1658
|
name: n,
|
|
1539
|
-
label:
|
|
1659
|
+
label: l,
|
|
1540
1660
|
required: r,
|
|
1541
1661
|
readOnly: i,
|
|
1542
1662
|
icon: c,
|
|
1543
|
-
hoverIcon:
|
|
1663
|
+
hoverIcon: x,
|
|
1544
1664
|
onHoverIconClick: o,
|
|
1545
|
-
type:
|
|
1665
|
+
type: a = "text",
|
|
1546
1666
|
list: j,
|
|
1547
|
-
onBlur:
|
|
1667
|
+
onBlur: y,
|
|
1548
1668
|
labelPosition: d = "top",
|
|
1549
1669
|
onKeyDown: h,
|
|
1550
1670
|
error: p,
|
|
1551
|
-
focus:
|
|
1552
|
-
placeholder:
|
|
1553
|
-
onChange:
|
|
1554
|
-
step:
|
|
1555
|
-
value:
|
|
1556
|
-
maxLength:
|
|
1557
|
-
onEnterPress:
|
|
1558
|
-
displayLoader:
|
|
1559
|
-
...
|
|
1671
|
+
focus: v = !1,
|
|
1672
|
+
placeholder: N,
|
|
1673
|
+
onChange: g,
|
|
1674
|
+
step: _,
|
|
1675
|
+
value: f,
|
|
1676
|
+
maxLength: E,
|
|
1677
|
+
onEnterPress: C,
|
|
1678
|
+
displayLoader: A,
|
|
1679
|
+
...b
|
|
1560
1680
|
}) => {
|
|
1561
1681
|
const H = () => p && p !== "", P = () => {
|
|
1562
|
-
let
|
|
1563
|
-
return (c ||
|
|
1564
|
-
}, m = () =>
|
|
1565
|
-
|
|
1682
|
+
let z = "muncher-input";
|
|
1683
|
+
return (c || x) && (z += " muncher-input-icon"), H() && (z += " muncher-input-error"), d === "side" && (z += " muncher-label-side"), z;
|
|
1684
|
+
}, m = () => l ? /* @__PURE__ */ e.jsx(q, { label: l, required: r, id: n }) : "", k = (z) => {
|
|
1685
|
+
z.key === "Enter" && C && C(), h && h(z);
|
|
1566
1686
|
};
|
|
1567
1687
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1568
1688
|
d !== "side" ? m() : "",
|
|
1569
1689
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-input-element", children: [
|
|
1570
1690
|
d === "side" ? m() : "",
|
|
1571
|
-
c ? /* @__PURE__ */ e.jsx(
|
|
1572
|
-
|
|
1573
|
-
/* @__PURE__ */ e.jsx(
|
|
1691
|
+
c ? /* @__PURE__ */ e.jsx(w, { name: c }) : "",
|
|
1692
|
+
x ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
|
|
1693
|
+
/* @__PURE__ */ e.jsx(w, { name: x, onClick: o }),
|
|
1574
1694
|
" "
|
|
1575
1695
|
] }) : "",
|
|
1576
1696
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-input-wrapper", children: [
|
|
@@ -1580,28 +1700,28 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1580
1700
|
id: n,
|
|
1581
1701
|
className: P(),
|
|
1582
1702
|
name: n,
|
|
1583
|
-
autoFocus:
|
|
1584
|
-
value:
|
|
1585
|
-
type:
|
|
1703
|
+
autoFocus: v,
|
|
1704
|
+
value: f,
|
|
1705
|
+
type: a || "text",
|
|
1586
1706
|
autoComplete: "off",
|
|
1587
|
-
placeholder:
|
|
1588
|
-
onChange:
|
|
1707
|
+
placeholder: N,
|
|
1708
|
+
onChange: g,
|
|
1589
1709
|
required: r,
|
|
1590
1710
|
readOnly: i,
|
|
1591
1711
|
list: j,
|
|
1592
|
-
onKeyDown:
|
|
1593
|
-
onBlur:
|
|
1594
|
-
step:
|
|
1595
|
-
maxLength:
|
|
1596
|
-
...
|
|
1712
|
+
onKeyDown: k,
|
|
1713
|
+
onBlur: y,
|
|
1714
|
+
step: _,
|
|
1715
|
+
maxLength: E,
|
|
1716
|
+
...b
|
|
1597
1717
|
}
|
|
1598
1718
|
),
|
|
1599
|
-
|
|
1719
|
+
A ? /* @__PURE__ */ e.jsx(h1, { size: "tiny" }) : ""
|
|
1600
1720
|
] })
|
|
1601
1721
|
] }),
|
|
1602
|
-
H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(
|
|
1722
|
+
H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: p }) }) : ""
|
|
1603
1723
|
] });
|
|
1604
|
-
},
|
|
1724
|
+
}, 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
1725
|
/* @__PURE__ */ e.jsx(
|
|
1606
1726
|
"input",
|
|
1607
1727
|
{
|
|
@@ -1609,33 +1729,33 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1609
1729
|
name: n,
|
|
1610
1730
|
onChange: r,
|
|
1611
1731
|
checked: i,
|
|
1612
|
-
...
|
|
1732
|
+
...x
|
|
1613
1733
|
}
|
|
1614
1734
|
),
|
|
1615
1735
|
c ? /* @__PURE__ */ e.jsx(
|
|
1616
1736
|
q,
|
|
1617
1737
|
{
|
|
1618
1738
|
label: c,
|
|
1619
|
-
required:
|
|
1739
|
+
required: l,
|
|
1620
1740
|
onClick: () => {
|
|
1621
1741
|
r && r();
|
|
1622
1742
|
}
|
|
1623
1743
|
}
|
|
1624
1744
|
) : ""
|
|
1625
|
-
] }) }),
|
|
1745
|
+
] }) }), C1 = ({
|
|
1626
1746
|
name: n,
|
|
1627
|
-
options:
|
|
1747
|
+
options: l,
|
|
1628
1748
|
label: r,
|
|
1629
1749
|
required: i,
|
|
1630
1750
|
multiple: c,
|
|
1631
|
-
error:
|
|
1751
|
+
error: x,
|
|
1632
1752
|
onChange: o,
|
|
1633
|
-
value:
|
|
1753
|
+
value: a,
|
|
1634
1754
|
...j
|
|
1635
1755
|
}) => {
|
|
1636
|
-
const
|
|
1756
|
+
const y = () => x && x !== "", d = () => {
|
|
1637
1757
|
let h = "muncher-input";
|
|
1638
|
-
return
|
|
1758
|
+
return y() && (h += " muncher-input-error"), h;
|
|
1639
1759
|
};
|
|
1640
1760
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1641
1761
|
r ? /* @__PURE__ */ e.jsx(q, { label: r, required: i, id: n }) : "",
|
|
@@ -1645,133 +1765,134 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1645
1765
|
id: n,
|
|
1646
1766
|
className: d(),
|
|
1647
1767
|
name: n,
|
|
1648
|
-
value:
|
|
1768
|
+
value: a,
|
|
1649
1769
|
onChange: o,
|
|
1650
1770
|
required: i,
|
|
1651
1771
|
multiple: c,
|
|
1652
1772
|
...j,
|
|
1653
1773
|
children: [
|
|
1654
1774
|
i ? /* @__PURE__ */ e.jsx("option", { value: "", children: "-- Select --" }) : "",
|
|
1655
|
-
|
|
1775
|
+
l.map(
|
|
1656
1776
|
(h, p) => /* @__PURE__ */ e.jsx("option", { value: h.value, children: h.label }, `select-option-${p}`)
|
|
1657
1777
|
)
|
|
1658
1778
|
]
|
|
1659
1779
|
}
|
|
1660
1780
|
) }),
|
|
1661
|
-
|
|
1781
|
+
y() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: x }) }) : ""
|
|
1662
1782
|
] });
|
|
1663
|
-
},
|
|
1783
|
+
}, V1 = ({
|
|
1664
1784
|
name: n,
|
|
1665
|
-
label:
|
|
1785
|
+
label: l,
|
|
1666
1786
|
required: r,
|
|
1667
1787
|
readOnly: i = !1,
|
|
1668
1788
|
rows: c = 6,
|
|
1669
|
-
maxLength:
|
|
1789
|
+
maxLength: x = 1e3,
|
|
1670
1790
|
focus: o = !1,
|
|
1671
|
-
placeholder:
|
|
1791
|
+
placeholder: a,
|
|
1672
1792
|
onChange: j,
|
|
1673
|
-
value:
|
|
1793
|
+
value: y,
|
|
1674
1794
|
...d
|
|
1675
1795
|
}) => {
|
|
1676
|
-
const [h, p] = S(
|
|
1677
|
-
p(
|
|
1796
|
+
const [h, p] = S(y), v = (N) => {
|
|
1797
|
+
p(N.target.value), j && j(N);
|
|
1678
1798
|
};
|
|
1679
1799
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1680
|
-
|
|
1800
|
+
l ? /* @__PURE__ */ e.jsx(q, { label: l, required: r, id: n }) : "",
|
|
1681
1801
|
/* @__PURE__ */ e.jsx(
|
|
1682
1802
|
"textarea",
|
|
1683
1803
|
{
|
|
1684
1804
|
id: n,
|
|
1685
1805
|
className: "muncher-textarea",
|
|
1686
1806
|
rows: c,
|
|
1687
|
-
maxLength:
|
|
1807
|
+
maxLength: x,
|
|
1688
1808
|
name: n,
|
|
1689
1809
|
autoFocus: o,
|
|
1690
|
-
value:
|
|
1691
|
-
placeholder:
|
|
1692
|
-
onChange:
|
|
1810
|
+
value: y,
|
|
1811
|
+
placeholder: a,
|
|
1812
|
+
onChange: v,
|
|
1693
1813
|
required: r,
|
|
1694
1814
|
readOnly: i,
|
|
1695
1815
|
...d
|
|
1696
1816
|
}
|
|
1697
1817
|
),
|
|
1698
1818
|
/* @__PURE__ */ e.jsxs("p", { children: [
|
|
1699
|
-
h ?
|
|
1819
|
+
h ? x ? x - h.length : 1e3 : x,
|
|
1700
1820
|
" characters left"
|
|
1701
1821
|
] })
|
|
1702
1822
|
] });
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1823
|
+
}, L1 = ({
|
|
1824
|
+
name: n = "query",
|
|
1825
|
+
focus: l = !1,
|
|
1826
|
+
inputPlaceHolder: r,
|
|
1827
|
+
handleInputChange: i,
|
|
1828
|
+
showContent: c = !1,
|
|
1829
|
+
setShowContent: x,
|
|
1830
|
+
readOnly: o,
|
|
1831
|
+
value: a,
|
|
1832
|
+
label: j,
|
|
1833
|
+
error: y,
|
|
1834
|
+
required: d,
|
|
1835
|
+
onEnterPress: h,
|
|
1836
|
+
list: p,
|
|
1837
|
+
displayLoader: v,
|
|
1838
|
+
children: N
|
|
1718
1839
|
}) => {
|
|
1719
|
-
const g =
|
|
1720
|
-
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1723
|
-
}, [
|
|
1724
|
-
|
|
1725
|
-
}, [
|
|
1840
|
+
const g = d1(null), _ = (C) => {
|
|
1841
|
+
x(!0), i(C.target.value);
|
|
1842
|
+
}, f = G(() => {
|
|
1843
|
+
x(!1);
|
|
1844
|
+
}, [x]), E = G((C) => {
|
|
1845
|
+
C.keyCode === 27 && f();
|
|
1846
|
+
}, [f]);
|
|
1726
1847
|
return Q(() => {
|
|
1727
|
-
const
|
|
1848
|
+
const C = (A) => {
|
|
1728
1849
|
if (g && g !== null) {
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1850
|
+
const b = g.current;
|
|
1851
|
+
b && !b.contains(A.target) && f();
|
|
1731
1852
|
}
|
|
1732
1853
|
};
|
|
1733
|
-
return document.addEventListener("keydown",
|
|
1734
|
-
document.removeEventListener("keydown",
|
|
1854
|
+
return document.addEventListener("keydown", E, !1), document.addEventListener("mousedown", C), () => {
|
|
1855
|
+
document.removeEventListener("keydown", E, !1);
|
|
1735
1856
|
};
|
|
1736
|
-
}, [
|
|
1857
|
+
}, [E, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: g, children: [
|
|
1737
1858
|
/* @__PURE__ */ e.jsx(
|
|
1738
|
-
|
|
1859
|
+
k1,
|
|
1739
1860
|
{
|
|
1740
|
-
focus:
|
|
1741
|
-
placeholder:
|
|
1742
|
-
name:
|
|
1743
|
-
onChange:
|
|
1744
|
-
onEnterPress:
|
|
1745
|
-
list:
|
|
1746
|
-
displayLoader:
|
|
1747
|
-
readOnly:
|
|
1748
|
-
value:
|
|
1749
|
-
label:
|
|
1750
|
-
required:
|
|
1751
|
-
error:
|
|
1861
|
+
focus: l,
|
|
1862
|
+
placeholder: r,
|
|
1863
|
+
name: n,
|
|
1864
|
+
onChange: _,
|
|
1865
|
+
onEnterPress: h,
|
|
1866
|
+
list: p,
|
|
1867
|
+
displayLoader: v,
|
|
1868
|
+
readOnly: o,
|
|
1869
|
+
value: a,
|
|
1870
|
+
label: j,
|
|
1871
|
+
required: d,
|
|
1872
|
+
error: y
|
|
1752
1873
|
}
|
|
1753
1874
|
),
|
|
1754
|
-
|
|
1875
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: N }) : ""
|
|
1755
1876
|
] });
|
|
1756
|
-
},
|
|
1757
|
-
|
|
1877
|
+
}, 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(
|
|
1878
|
+
w,
|
|
1758
1879
|
{
|
|
1759
|
-
name:
|
|
1880
|
+
name: l,
|
|
1760
1881
|
weight: r,
|
|
1761
1882
|
size: i,
|
|
1762
1883
|
color: c,
|
|
1763
|
-
children:
|
|
1884
|
+
children: x
|
|
1764
1885
|
}
|
|
1765
|
-
) }),
|
|
1766
|
-
const c = G((
|
|
1767
|
-
|
|
1768
|
-
}, [
|
|
1886
|
+
) }), D1 = ({ show: n = !1, setShow: l, children: r, ...i }) => {
|
|
1887
|
+
const c = G((x) => {
|
|
1888
|
+
x.keyCode === 27 && l(!1);
|
|
1889
|
+
}, [l]);
|
|
1769
1890
|
return Q(() => (document.addEventListener("keydown", c, !1), () => {
|
|
1770
1891
|
document.removeEventListener("keydown", c, !1);
|
|
1771
1892
|
}), [c]), Q(() => {
|
|
1772
1893
|
n ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset";
|
|
1773
|
-
}, [n]), /* @__PURE__ */ e.jsxs(
|
|
1774
|
-
/* @__PURE__ */ e.jsx(
|
|
1894
|
+
}, [n]), /* @__PURE__ */ e.jsxs(o1.Fragment, { children: [
|
|
1895
|
+
/* @__PURE__ */ e.jsx(m1, { show: n, backdropClickHandler: () => l(!1) }),
|
|
1775
1896
|
/* @__PURE__ */ e.jsx(
|
|
1776
1897
|
"div",
|
|
1777
1898
|
{
|
|
@@ -1785,102 +1906,102 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1785
1906
|
}
|
|
1786
1907
|
)
|
|
1787
1908
|
] });
|
|
1788
|
-
},
|
|
1909
|
+
}, F1 = ({ showHoverEffect: n, onClick: l, children: r }) => {
|
|
1789
1910
|
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(
|
|
1911
|
+
return /* @__PURE__ */ e.jsx("section", { className: i(), onClick: l, children: r });
|
|
1912
|
+
}, I1 = ({ pillCloseHandler: n, children: l, ...r }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-pill", ...r, children: [
|
|
1913
|
+
/* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(w, { name: "close" }) }),
|
|
1793
1914
|
/* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1794
1915
|
" ",
|
|
1795
|
-
|
|
1916
|
+
l
|
|
1796
1917
|
] })
|
|
1797
|
-
] }), $
|
|
1918
|
+
] }), $1 = ({ value: n, max: l, label: r }) => {
|
|
1798
1919
|
const i = () => {
|
|
1799
|
-
const c = Math.round(n /
|
|
1920
|
+
const c = Math.round(n / l * 100) + "%";
|
|
1800
1921
|
return r ? r + " " + c : c;
|
|
1801
1922
|
};
|
|
1802
1923
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-progress", children: [
|
|
1803
1924
|
/* @__PURE__ */ e.jsx("label", { htmlFor: "progress", children: i() }),
|
|
1804
|
-
/* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max:
|
|
1925
|
+
/* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max: l, children: i() })
|
|
1805
1926
|
] });
|
|
1806
|
-
},
|
|
1807
|
-
const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (
|
|
1927
|
+
}, Y1 = ({ variant: n, size: l, style: r }) => {
|
|
1928
|
+
const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (l ? " muncher-hr--" + l : "") + (r ? " muncher-hr--" + r : "");
|
|
1808
1929
|
return /* @__PURE__ */ e.jsx("hr", { className: i });
|
|
1809
|
-
},
|
|
1810
|
-
const [o,
|
|
1811
|
-
|
|
1930
|
+
}, U1 = ({ sliderItems: n, navButtonSize: l = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: x = "inside" }) => {
|
|
1931
|
+
const [o, a] = S(0), [j, y] = S(0), d = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
|
|
1932
|
+
a1,
|
|
1812
1933
|
{
|
|
1813
1934
|
direction: "left",
|
|
1814
|
-
size:
|
|
1935
|
+
size: l,
|
|
1815
1936
|
variant: i,
|
|
1816
1937
|
navIcon: c,
|
|
1817
1938
|
weight: r,
|
|
1818
1939
|
onClick: () => {
|
|
1819
|
-
o === 0 ? (
|
|
1940
|
+
o === 0 ? (y(-(n.length - 1) * 100), a(n.length - 1)) : (y(j + 100), a(o - 1));
|
|
1820
1941
|
}
|
|
1821
1942
|
}
|
|
1822
1943
|
) : "", h = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
|
|
1823
|
-
|
|
1944
|
+
a1,
|
|
1824
1945
|
{
|
|
1825
1946
|
direction: "right",
|
|
1826
|
-
size:
|
|
1947
|
+
size: l,
|
|
1827
1948
|
weight: r,
|
|
1828
1949
|
navIcon: c,
|
|
1829
1950
|
variant: i,
|
|
1830
1951
|
onClick: () => {
|
|
1831
|
-
o === n.length - 1 ? (
|
|
1952
|
+
o === n.length - 1 ? (a(0), y(0)) : (y(j - 100), a(o + 1));
|
|
1832
1953
|
}
|
|
1833
1954
|
}
|
|
1834
1955
|
) : "";
|
|
1835
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" +
|
|
1836
|
-
|
|
1956
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + x, children: [
|
|
1957
|
+
x === "outside" ? d() : "",
|
|
1837
1958
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
|
|
1838
|
-
|
|
1959
|
+
x === "inside" ? d() : "",
|
|
1839
1960
|
/* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
|
|
1840
|
-
(p,
|
|
1961
|
+
(p, v) => /* @__PURE__ */ e.jsx(
|
|
1841
1962
|
"div",
|
|
1842
1963
|
{
|
|
1843
1964
|
className: "slider-item",
|
|
1844
1965
|
style: { transform: `translateX(${j}%)` },
|
|
1845
1966
|
children: p
|
|
1846
1967
|
},
|
|
1847
|
-
"slider-item" +
|
|
1968
|
+
"slider-item" + v
|
|
1848
1969
|
)
|
|
1849
1970
|
) }),
|
|
1850
|
-
|
|
1971
|
+
x === "inside" ? h() : ""
|
|
1851
1972
|
] }),
|
|
1852
|
-
|
|
1973
|
+
x === "outside" ? h() : ""
|
|
1853
1974
|
] });
|
|
1854
|
-
},
|
|
1975
|
+
}, W1 = ({
|
|
1855
1976
|
min: n,
|
|
1856
|
-
max:
|
|
1977
|
+
max: l,
|
|
1857
1978
|
minValue: r,
|
|
1858
1979
|
maxValue: i,
|
|
1859
1980
|
setMinValue: c,
|
|
1860
|
-
setMaxValue:
|
|
1861
|
-
numberFormatter: o = (
|
|
1981
|
+
setMaxValue: x,
|
|
1982
|
+
numberFormatter: o = (a) => new Intl.NumberFormat("en-US", {
|
|
1862
1983
|
style: "currency",
|
|
1863
1984
|
currency: "USD"
|
|
1864
|
-
}).format(
|
|
1985
|
+
}).format(a)
|
|
1865
1986
|
}) => {
|
|
1866
|
-
const
|
|
1987
|
+
const a = (d) => {
|
|
1867
1988
|
const h = +d.target.value, p = h < i - 1 ? h : r;
|
|
1868
1989
|
c(p);
|
|
1869
1990
|
}, j = (d) => {
|
|
1870
1991
|
const h = +d.target.value, p = h > r + 1 ? h : i;
|
|
1871
|
-
|
|
1872
|
-
},
|
|
1992
|
+
x(p);
|
|
1993
|
+
}, y = (d) => o && d ? o(d) : d;
|
|
1873
1994
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
|
|
1874
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children:
|
|
1995
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: y(r) + " - " + y(i) }) }),
|
|
1875
1996
|
/* @__PURE__ */ e.jsx(
|
|
1876
1997
|
"input",
|
|
1877
1998
|
{
|
|
1878
1999
|
className: "muncher-range",
|
|
1879
2000
|
type: "range",
|
|
1880
2001
|
min: n,
|
|
1881
|
-
max:
|
|
2002
|
+
max: l,
|
|
1882
2003
|
value: r,
|
|
1883
|
-
onChange:
|
|
2004
|
+
onChange: a
|
|
1884
2005
|
}
|
|
1885
2006
|
),
|
|
1886
2007
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1889,158 +2010,158 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1889
2010
|
className: "muncher-range",
|
|
1890
2011
|
type: "range",
|
|
1891
2012
|
min: n,
|
|
1892
|
-
max:
|
|
2013
|
+
max: l,
|
|
1893
2014
|
value: i,
|
|
1894
2015
|
onChange: j
|
|
1895
2016
|
}
|
|
1896
2017
|
),
|
|
1897
2018
|
/* @__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:
|
|
2019
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children: y(n) }),
|
|
2020
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children: y(l) })
|
|
1900
2021
|
] })
|
|
1901
2022
|
] });
|
|
1902
|
-
},
|
|
2023
|
+
}, B1 = ({
|
|
1903
2024
|
min: n,
|
|
1904
|
-
max:
|
|
2025
|
+
max: l,
|
|
1905
2026
|
value: r,
|
|
1906
2027
|
setValue: i,
|
|
1907
|
-
numberFormatter: c = (
|
|
2028
|
+
numberFormatter: c = (x) => new Intl.NumberFormat("en-US", {
|
|
1908
2029
|
style: "currency",
|
|
1909
2030
|
currency: "USD"
|
|
1910
|
-
}).format(
|
|
2031
|
+
}).format(x)
|
|
1911
2032
|
}) => {
|
|
1912
|
-
const
|
|
1913
|
-
const j = +
|
|
2033
|
+
const x = (a) => c ? c(a) : a, o = (a) => {
|
|
2034
|
+
const j = +a.target.value;
|
|
1914
2035
|
i(j);
|
|
1915
2036
|
};
|
|
1916
2037
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
|
|
1917
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children:
|
|
2038
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: x(r) }) }),
|
|
1918
2039
|
/* @__PURE__ */ e.jsx(
|
|
1919
2040
|
"input",
|
|
1920
2041
|
{
|
|
1921
2042
|
className: "muncher-range",
|
|
1922
2043
|
type: "range",
|
|
1923
2044
|
min: n,
|
|
1924
|
-
max:
|
|
2045
|
+
max: l,
|
|
1925
2046
|
value: r,
|
|
1926
2047
|
onChange: o
|
|
1927
2048
|
}
|
|
1928
2049
|
),
|
|
1929
2050
|
/* @__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:
|
|
2051
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children: x(n) }),
|
|
2052
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children: x(l) })
|
|
1932
2053
|
] })
|
|
1933
2054
|
] });
|
|
1934
|
-
},
|
|
2055
|
+
}, 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
2056
|
const c = {
|
|
1936
2057
|
"--r": n
|
|
1937
|
-
},
|
|
2058
|
+
}, x = () => {
|
|
1938
2059
|
let o = "muncher-star";
|
|
1939
|
-
return
|
|
2060
|
+
return l && (o += " star-" + l), r && (o += " star-" + r), o;
|
|
1940
2061
|
};
|
|
1941
|
-
return /* @__PURE__ */ e.jsx("span", { className:
|
|
1942
|
-
},
|
|
1943
|
-
const [r, i] = S(0), { tabs: c } =
|
|
2062
|
+
return /* @__PURE__ */ e.jsx("span", { className: x(), style: c, ...i });
|
|
2063
|
+
}, q1 = ({ handleTabSelected: n, children: l }) => {
|
|
2064
|
+
const [r, i] = S(0), { tabs: c } = l, x = (o) => {
|
|
1944
2065
|
i(o), n && n(o);
|
|
1945
2066
|
};
|
|
1946
2067
|
return /* @__PURE__ */ e.jsxs("section", { className: "muncher-tabs", children: [
|
|
1947
2068
|
/* @__PURE__ */ e.jsx("header", { children: c.map(
|
|
1948
|
-
(o,
|
|
2069
|
+
(o, a) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-tab-header--item", children: [
|
|
1949
2070
|
/* @__PURE__ */ e.jsx(
|
|
1950
|
-
|
|
2071
|
+
V,
|
|
1951
2072
|
{
|
|
1952
2073
|
variant: "transparent",
|
|
1953
|
-
active: r ===
|
|
2074
|
+
active: r === a,
|
|
1954
2075
|
size: "small",
|
|
1955
2076
|
title: o.headerTitle,
|
|
1956
2077
|
onClick: () => {
|
|
1957
|
-
a
|
|
2078
|
+
x(a);
|
|
1958
2079
|
},
|
|
1959
2080
|
children: o.header
|
|
1960
2081
|
}
|
|
1961
2082
|
),
|
|
1962
|
-
|
|
1963
|
-
] }, "muncher-tab-header" +
|
|
2083
|
+
a !== c.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
|
|
2084
|
+
] }, "muncher-tab-header" + a)
|
|
1964
2085
|
) }),
|
|
1965
2086
|
c.map(
|
|
1966
|
-
(o,
|
|
2087
|
+
(o, a) => /* @__PURE__ */ e.jsx(
|
|
1967
2088
|
"section",
|
|
1968
2089
|
{
|
|
1969
|
-
className: r ===
|
|
2090
|
+
className: r === a ? "muncher-tab muncher-tab--active" : "muncher-tab",
|
|
1970
2091
|
children: o.body
|
|
1971
2092
|
},
|
|
1972
|
-
"muncher-tab-" +
|
|
2093
|
+
"muncher-tab-" + a
|
|
1973
2094
|
)
|
|
1974
2095
|
)
|
|
1975
2096
|
] });
|
|
1976
|
-
},
|
|
2097
|
+
}, X1 = ({
|
|
1977
2098
|
fileName: n,
|
|
1978
|
-
defaultPageSize:
|
|
2099
|
+
defaultPageSize: l = 50,
|
|
1979
2100
|
skeleton: r,
|
|
1980
2101
|
handleOnUpload: i,
|
|
1981
2102
|
sortBy: c,
|
|
1982
|
-
excludeDownload:
|
|
2103
|
+
excludeDownload: x,
|
|
1983
2104
|
includeUpload: o,
|
|
1984
|
-
isUploading:
|
|
2105
|
+
isUploading: a,
|
|
1985
2106
|
uploadWarningMessage: j,
|
|
1986
|
-
uploadSuccessMessage:
|
|
2107
|
+
uploadSuccessMessage: y,
|
|
1987
2108
|
excludePagination: d,
|
|
1988
2109
|
footer: h,
|
|
1989
2110
|
children: p
|
|
1990
2111
|
}) => {
|
|
1991
|
-
const { header:
|
|
1992
|
-
|
|
1993
|
-
(
|
|
2112
|
+
const { header: v, rows: N } = p, [g, _] = S(c ?? { index: 0 }), [f, E] = S({ num: 0, size: l }), C = (m) => {
|
|
2113
|
+
_(
|
|
2114
|
+
(k) => k.index === m ? { ...k, desc: !k.desc } : { index: m }
|
|
1994
2115
|
);
|
|
1995
|
-
},
|
|
1996
|
-
var
|
|
1997
|
-
const m = [...
|
|
1998
|
-
return
|
|
2116
|
+
}, A = l1(() => {
|
|
2117
|
+
var z;
|
|
2118
|
+
const m = [...N], k = (z = v[g.index]) == null ? void 0 : z.sort;
|
|
2119
|
+
return k ? m.sort(k) : m.sort((O, X) => {
|
|
1999
2120
|
var $, Y, U, W;
|
|
2000
|
-
const Z = ((Y = ($ =
|
|
2121
|
+
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
2122
|
return Z.localeCompare(I);
|
|
2002
|
-
}),
|
|
2003
|
-
}, [
|
|
2004
|
-
() =>
|
|
2005
|
-
[
|
|
2006
|
-
), H =
|
|
2007
|
-
(m) => m.filter((
|
|
2123
|
+
}), g.desc ? m.reverse() : m;
|
|
2124
|
+
}, [N, g, v]), b = l1(
|
|
2125
|
+
() => A.slice(f.num * f.size, (f.num + 1) * f.size),
|
|
2126
|
+
[A, f]
|
|
2127
|
+
), H = v.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P = N.map(
|
|
2128
|
+
(m) => m.filter((k, z) => !v[z].csvExclude).map((k) => k.csv ?? k.value ?? "")
|
|
2008
2129
|
);
|
|
2009
2130
|
return /* @__PURE__ */ e.jsxs("section", { className: "muncher-table", children: [
|
|
2010
|
-
/* @__PURE__ */ e.jsx("div", { className: "row head", children:
|
|
2011
|
-
(m,
|
|
2131
|
+
/* @__PURE__ */ e.jsx("div", { className: "row head", children: v.map(
|
|
2132
|
+
(m, k) => m.visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
|
|
2012
2133
|
"div",
|
|
2013
2134
|
{
|
|
2014
2135
|
title: m.title,
|
|
2015
2136
|
className: m.visibility ? "col main" : "col",
|
|
2016
2137
|
children: typeof m.name == "string" ? /* @__PURE__ */ e.jsx("div", { className: "sort-button", children: /* @__PURE__ */ e.jsx(
|
|
2017
|
-
|
|
2138
|
+
w1,
|
|
2018
2139
|
{
|
|
2019
|
-
onClick: () =>
|
|
2020
|
-
active:
|
|
2021
|
-
sortAsc: !
|
|
2140
|
+
onClick: () => C(k),
|
|
2141
|
+
active: g.index === k,
|
|
2142
|
+
sortAsc: !g.desc,
|
|
2022
2143
|
children: m.name
|
|
2023
2144
|
}
|
|
2024
2145
|
) }) : m.name
|
|
2025
2146
|
},
|
|
2026
|
-
`row-head-${
|
|
2147
|
+
`row-head-${k}`
|
|
2027
2148
|
)
|
|
2028
2149
|
) }),
|
|
2029
|
-
r ||
|
|
2030
|
-
(
|
|
2150
|
+
r || b.map((m, k) => /* @__PURE__ */ e.jsx("div", { className: "row", children: m.map(
|
|
2151
|
+
(z, O) => v[O].visibility === "hidden" ? null : /* @__PURE__ */ e.jsx(
|
|
2031
2152
|
"div",
|
|
2032
2153
|
{
|
|
2033
|
-
className:
|
|
2034
|
-
children:
|
|
2154
|
+
className: v[O].visibility ? "col main" : "col",
|
|
2155
|
+
children: z.content
|
|
2035
2156
|
},
|
|
2036
|
-
`row-col-${
|
|
2157
|
+
`row-col-${k}-${O}`
|
|
2037
2158
|
)
|
|
2038
|
-
) }, `row-${
|
|
2159
|
+
) }, `row-${k}`)),
|
|
2039
2160
|
h ?? null,
|
|
2040
2161
|
/* @__PURE__ */ e.jsxs("div", { className: "row-footer", children: [
|
|
2041
2162
|
/* @__PURE__ */ e.jsxs("div", { className: "row-footer-buttons", children: [
|
|
2042
|
-
!
|
|
2043
|
-
|
|
2163
|
+
!x && /* @__PURE__ */ e.jsx(
|
|
2164
|
+
M1,
|
|
2044
2165
|
{
|
|
2045
2166
|
filename: n ?? "download",
|
|
2046
2167
|
variant: "secondary",
|
|
@@ -2050,13 +2171,13 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2050
2171
|
}
|
|
2051
2172
|
),
|
|
2052
2173
|
o && /* @__PURE__ */ e.jsx(
|
|
2053
|
-
|
|
2174
|
+
N1,
|
|
2054
2175
|
{
|
|
2055
2176
|
name: "csv-input-file",
|
|
2056
2177
|
handleOnChange: i,
|
|
2057
|
-
isUploading:
|
|
2178
|
+
isUploading: a,
|
|
2058
2179
|
warningMessage: j,
|
|
2059
|
-
successMessage:
|
|
2180
|
+
successMessage: y
|
|
2060
2181
|
}
|
|
2061
2182
|
)
|
|
2062
2183
|
] }),
|
|
@@ -2064,7 +2185,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2064
2185
|
/* @__PURE__ */ e.jsxs("div", { className: "left", children: [
|
|
2065
2186
|
"Rows:",
|
|
2066
2187
|
/* @__PURE__ */ e.jsx(
|
|
2067
|
-
|
|
2188
|
+
C1,
|
|
2068
2189
|
{
|
|
2069
2190
|
name: "pageSize",
|
|
2070
2191
|
options: [
|
|
@@ -2072,37 +2193,37 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2072
2193
|
{ label: "100", value: "100" },
|
|
2073
2194
|
{ label: "500", value: "500" }
|
|
2074
2195
|
],
|
|
2075
|
-
value: String(
|
|
2076
|
-
onChange: (m) =>
|
|
2196
|
+
value: String(f.size),
|
|
2197
|
+
onChange: (m) => E({ num: 0, size: parseInt(m.target.value, 10) })
|
|
2077
2198
|
}
|
|
2078
2199
|
)
|
|
2079
2200
|
] }),
|
|
2080
2201
|
/* @__PURE__ */ e.jsxs("div", { className: "center", children: [
|
|
2081
|
-
|
|
2202
|
+
f.num * f.size + 1,
|
|
2082
2203
|
" -",
|
|
2083
|
-
Math.min((
|
|
2204
|
+
Math.min((f.num + 1) * f.size, N.length),
|
|
2084
2205
|
" of ",
|
|
2085
|
-
|
|
2206
|
+
N.length
|
|
2086
2207
|
] }),
|
|
2087
2208
|
/* @__PURE__ */ e.jsxs("div", { className: "right", children: [
|
|
2088
2209
|
/* @__PURE__ */ e.jsx(
|
|
2089
|
-
|
|
2210
|
+
V,
|
|
2090
2211
|
{
|
|
2091
2212
|
variant: "transparent",
|
|
2092
|
-
disabled:
|
|
2213
|
+
disabled: f.num === 0,
|
|
2093
2214
|
size: "small",
|
|
2094
|
-
onClick: () =>
|
|
2095
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2215
|
+
onClick: () => E({ ...f, num: f.num - 1 }),
|
|
2216
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "chevron-left" })
|
|
2096
2217
|
}
|
|
2097
2218
|
),
|
|
2098
2219
|
/* @__PURE__ */ e.jsx(
|
|
2099
|
-
|
|
2220
|
+
V,
|
|
2100
2221
|
{
|
|
2101
2222
|
variant: "transparent",
|
|
2102
|
-
disabled: (
|
|
2223
|
+
disabled: (f.num + 1) * f.size >= N.length,
|
|
2103
2224
|
size: "small",
|
|
2104
|
-
onClick: () =>
|
|
2105
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2225
|
+
onClick: () => E({ ...f, num: f.num + 1 }),
|
|
2226
|
+
children: /* @__PURE__ */ e.jsx(w, { name: "chevron-right" })
|
|
2106
2227
|
}
|
|
2107
2228
|
)
|
|
2108
2229
|
] })
|
|
@@ -2111,42 +2232,42 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2111
2232
|
] });
|
|
2112
2233
|
};
|
|
2113
2234
|
export {
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2235
|
+
A1 as Accordion,
|
|
2236
|
+
m1 as Backdrop,
|
|
2237
|
+
f1 as Badge,
|
|
2238
|
+
V as Button,
|
|
2239
|
+
_1 as Checkbox,
|
|
2240
|
+
b1 as CopyButton,
|
|
2241
|
+
M1 as CsvButton,
|
|
2242
|
+
N1 as CsvInput,
|
|
2243
|
+
v1 as DropdownButton,
|
|
2244
|
+
R1 as DropdownNavButton,
|
|
2245
|
+
J1 as Featured,
|
|
2246
|
+
Y1 as Hr,
|
|
2247
|
+
w as Icon,
|
|
2248
|
+
z1 as IconBadge,
|
|
2249
|
+
S1 as ImageInput,
|
|
2250
|
+
k1 as Input,
|
|
2251
|
+
U1 as ItemSlider,
|
|
2131
2252
|
q as Label,
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
$
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2253
|
+
P1 as Li,
|
|
2254
|
+
D1 as Modal,
|
|
2255
|
+
a1 as NavigateButton,
|
|
2256
|
+
F1 as Paper,
|
|
2257
|
+
I1 as Pill,
|
|
2258
|
+
$1 as Progress,
|
|
2259
|
+
H1 as Radio,
|
|
2260
|
+
W1 as RangeSlider,
|
|
2261
|
+
C1 as Select,
|
|
2262
|
+
T1 as ShareButton,
|
|
2263
|
+
B1 as Slider,
|
|
2264
|
+
w1 as SortButton,
|
|
2265
|
+
h1 as Spinner,
|
|
2266
|
+
G1 as Star,
|
|
2267
|
+
X1 as Table,
|
|
2268
|
+
q1 as Tabs,
|
|
2269
|
+
L1 as TextInputDropdown,
|
|
2270
|
+
V1 as Textarea,
|
|
2271
|
+
O1 as Ul,
|
|
2272
|
+
g1 as copyToClipboard
|
|
2152
2273
|
};
|