pallote-react 0.15.18 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion.d.ts +15 -0
- package/dist/components/AccordionItem.d.ts +12 -0
- package/dist/components/Alert.d.ts +16 -0
- package/dist/components/Breadcrumbs.d.ts +12 -0
- package/dist/components/Button.d.ts +21 -0
- package/dist/components/Buttons.d.ts +11 -0
- package/dist/components/Card.d.ts +17 -0
- package/dist/components/CardActions.d.ts +9 -0
- package/dist/components/CardContent.d.ts +7 -0
- package/dist/components/CardHeader.d.ts +12 -0
- package/dist/components/CardMedia.d.ts +9 -0
- package/dist/components/Checkbox.d.ts +13 -0
- package/dist/components/Checkboxes.d.ts +17 -0
- package/dist/components/Chip.d.ts +13 -0
- package/dist/components/Divider.d.ts +10 -0
- package/dist/components/Input.d.ts +20 -0
- package/dist/components/InputLabel.d.ts +10 -0
- package/dist/components/Link.d.ts +15 -0
- package/dist/components/List.d.ts +7 -0
- package/dist/components/ListItem.d.ts +11 -0
- package/dist/components/Nav.d.ts +10 -0
- package/dist/components/NavBar.d.ts +11 -0
- package/dist/components/NavItem.d.ts +13 -0
- package/dist/components/Radio.d.ts +14 -0
- package/dist/components/RadioButtons.d.ts +17 -0
- package/dist/components/Section.d.ts +13 -0
- package/dist/components/SectionContent.d.ts +9 -0
- package/dist/components/SectionHeader.d.ts +13 -0
- package/dist/components/Select.d.ts +16 -0
- package/dist/components/Snippet.d.ts +8 -0
- package/dist/components/Status.d.ts +10 -0
- package/dist/components/Step.d.ts +8 -0
- package/dist/components/Stepper.d.ts +17 -0
- package/dist/components/Switch.d.ts +9 -0
- package/dist/components/Tab.d.ts +6 -0
- package/dist/components/Table.d.ts +12 -0
- package/dist/components/TableBody.d.ts +6 -0
- package/dist/components/TableCell.d.ts +9 -0
- package/dist/components/TableFooter.d.ts +5 -0
- package/dist/components/TableHead.d.ts +7 -0
- package/dist/components/TableRow.d.ts +6 -0
- package/dist/components/Tabs.d.ts +17 -0
- package/dist/components/TabsControl.d.ts +6 -0
- package/dist/components/TabsPanel.d.ts +7 -0
- package/dist/components/Tag.d.ts +9 -0
- package/dist/components/Textarea.d.ts +16 -0
- package/dist/components/Tooltip.d.ts +9 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.js +1236 -2932
- package/dist/package.json +6 -3
- package/dist/utilities/Color.d.ts +18 -0
- package/dist/utilities/Display.d.ts +10 -0
- package/dist/utilities/Grid.d.ts +24 -0
- package/dist/utilities/Text.d.ts +23 -0
- package/package.json +10 -6
package/dist/index.js
CHANGED
|
@@ -1,1363 +1,137 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as e$9 from 'react';
|
|
2
|
+
import e__default, { useState, useEffect, createContext, Children, isValidElement, cloneElement, useContext, useRef, forwardRef, useId } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
4
5
|
import { createPortal } from 'react-dom';
|
|
5
6
|
import SyntaxHighlighter from 'react-syntax-highlighter';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
var propTypes = {exports: {}};
|
|
12
|
-
|
|
13
|
-
var reactIs = {exports: {}};
|
|
14
|
-
|
|
15
|
-
var reactIs_production_min = {};
|
|
16
|
-
|
|
17
|
-
/** @license React v16.13.1
|
|
18
|
-
* react-is.production.min.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/
|
|
25
|
-
var hasRequiredReactIs_production_min;
|
|
26
|
-
function requireReactIs_production_min() {
|
|
27
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
28
|
-
hasRequiredReactIs_production_min = 1;
|
|
29
|
-
var b = "function" === typeof Symbol && Symbol.for,
|
|
30
|
-
c = b ? Symbol.for("react.element") : 60103,
|
|
31
|
-
d = b ? Symbol.for("react.portal") : 60106,
|
|
32
|
-
e = b ? Symbol.for("react.fragment") : 60107,
|
|
33
|
-
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
34
|
-
g = b ? Symbol.for("react.profiler") : 60114,
|
|
35
|
-
h = b ? Symbol.for("react.provider") : 60109,
|
|
36
|
-
k = b ? Symbol.for("react.context") : 60110,
|
|
37
|
-
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
38
|
-
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
39
|
-
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
40
|
-
p = b ? Symbol.for("react.suspense") : 60113,
|
|
41
|
-
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
42
|
-
r = b ? Symbol.for("react.memo") : 60115,
|
|
43
|
-
t = b ? Symbol.for("react.lazy") : 60116,
|
|
44
|
-
v = b ? Symbol.for("react.block") : 60121,
|
|
45
|
-
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
46
|
-
x = b ? Symbol.for("react.responder") : 60118,
|
|
47
|
-
y = b ? Symbol.for("react.scope") : 60119;
|
|
48
|
-
function z(a) {
|
|
49
|
-
if ("object" === typeof a && null !== a) {
|
|
50
|
-
var u = a.$$typeof;
|
|
51
|
-
switch (u) {
|
|
52
|
-
case c:
|
|
53
|
-
switch (a = a.type, a) {
|
|
54
|
-
case l:
|
|
55
|
-
case m:
|
|
56
|
-
case e:
|
|
57
|
-
case g:
|
|
58
|
-
case f:
|
|
59
|
-
case p:
|
|
60
|
-
return a;
|
|
61
|
-
default:
|
|
62
|
-
switch (a = a && a.$$typeof, a) {
|
|
63
|
-
case k:
|
|
64
|
-
case n:
|
|
65
|
-
case t:
|
|
66
|
-
case r:
|
|
67
|
-
case h:
|
|
68
|
-
return a;
|
|
69
|
-
default:
|
|
70
|
-
return u;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
case d:
|
|
74
|
-
return u;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function A(a) {
|
|
79
|
-
return z(a) === m;
|
|
80
|
-
}
|
|
81
|
-
reactIs_production_min.AsyncMode = l;
|
|
82
|
-
reactIs_production_min.ConcurrentMode = m;
|
|
83
|
-
reactIs_production_min.ContextConsumer = k;
|
|
84
|
-
reactIs_production_min.ContextProvider = h;
|
|
85
|
-
reactIs_production_min.Element = c;
|
|
86
|
-
reactIs_production_min.ForwardRef = n;
|
|
87
|
-
reactIs_production_min.Fragment = e;
|
|
88
|
-
reactIs_production_min.Lazy = t;
|
|
89
|
-
reactIs_production_min.Memo = r;
|
|
90
|
-
reactIs_production_min.Portal = d;
|
|
91
|
-
reactIs_production_min.Profiler = g;
|
|
92
|
-
reactIs_production_min.StrictMode = f;
|
|
93
|
-
reactIs_production_min.Suspense = p;
|
|
94
|
-
reactIs_production_min.isAsyncMode = function (a) {
|
|
95
|
-
return A(a) || z(a) === l;
|
|
96
|
-
};
|
|
97
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
98
|
-
reactIs_production_min.isContextConsumer = function (a) {
|
|
99
|
-
return z(a) === k;
|
|
100
|
-
};
|
|
101
|
-
reactIs_production_min.isContextProvider = function (a) {
|
|
102
|
-
return z(a) === h;
|
|
103
|
-
};
|
|
104
|
-
reactIs_production_min.isElement = function (a) {
|
|
105
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
106
|
-
};
|
|
107
|
-
reactIs_production_min.isForwardRef = function (a) {
|
|
108
|
-
return z(a) === n;
|
|
109
|
-
};
|
|
110
|
-
reactIs_production_min.isFragment = function (a) {
|
|
111
|
-
return z(a) === e;
|
|
112
|
-
};
|
|
113
|
-
reactIs_production_min.isLazy = function (a) {
|
|
114
|
-
return z(a) === t;
|
|
115
|
-
};
|
|
116
|
-
reactIs_production_min.isMemo = function (a) {
|
|
117
|
-
return z(a) === r;
|
|
118
|
-
};
|
|
119
|
-
reactIs_production_min.isPortal = function (a) {
|
|
120
|
-
return z(a) === d;
|
|
121
|
-
};
|
|
122
|
-
reactIs_production_min.isProfiler = function (a) {
|
|
123
|
-
return z(a) === g;
|
|
124
|
-
};
|
|
125
|
-
reactIs_production_min.isStrictMode = function (a) {
|
|
126
|
-
return z(a) === f;
|
|
127
|
-
};
|
|
128
|
-
reactIs_production_min.isSuspense = function (a) {
|
|
129
|
-
return z(a) === p;
|
|
130
|
-
};
|
|
131
|
-
reactIs_production_min.isValidElementType = function (a) {
|
|
132
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
133
|
-
};
|
|
134
|
-
reactIs_production_min.typeOf = z;
|
|
135
|
-
return reactIs_production_min;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
var reactIs_development = {};
|
|
139
|
-
|
|
140
|
-
/** @license React v16.13.1
|
|
141
|
-
* react-is.development.js
|
|
142
|
-
*
|
|
143
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the MIT license found in the
|
|
146
|
-
* LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/
|
|
148
|
-
var hasRequiredReactIs_development;
|
|
149
|
-
function requireReactIs_development() {
|
|
150
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
151
|
-
hasRequiredReactIs_development = 1;
|
|
152
|
-
if (process.env.NODE_ENV !== "production") {
|
|
153
|
-
(function () {
|
|
154
|
-
|
|
155
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
156
|
-
// nor polyfill, then a plain number is used for performance.
|
|
157
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
158
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
159
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
160
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
161
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
162
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
163
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
164
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
165
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
166
|
-
|
|
167
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
168
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
169
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
170
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
171
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
172
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
173
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
174
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
175
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
176
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
177
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
178
|
-
function isValidElementType(type) {
|
|
179
|
-
return typeof type === 'string' || typeof type === 'function' ||
|
|
180
|
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
181
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
182
|
-
}
|
|
183
|
-
function typeOf(object) {
|
|
184
|
-
if (typeof object === 'object' && object !== null) {
|
|
185
|
-
var $$typeof = object.$$typeof;
|
|
186
|
-
switch ($$typeof) {
|
|
187
|
-
case REACT_ELEMENT_TYPE:
|
|
188
|
-
var type = object.type;
|
|
189
|
-
switch (type) {
|
|
190
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
191
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
192
|
-
case REACT_FRAGMENT_TYPE:
|
|
193
|
-
case REACT_PROFILER_TYPE:
|
|
194
|
-
case REACT_STRICT_MODE_TYPE:
|
|
195
|
-
case REACT_SUSPENSE_TYPE:
|
|
196
|
-
return type;
|
|
197
|
-
default:
|
|
198
|
-
var $$typeofType = type && type.$$typeof;
|
|
199
|
-
switch ($$typeofType) {
|
|
200
|
-
case REACT_CONTEXT_TYPE:
|
|
201
|
-
case REACT_FORWARD_REF_TYPE:
|
|
202
|
-
case REACT_LAZY_TYPE:
|
|
203
|
-
case REACT_MEMO_TYPE:
|
|
204
|
-
case REACT_PROVIDER_TYPE:
|
|
205
|
-
return $$typeofType;
|
|
206
|
-
default:
|
|
207
|
-
return $$typeof;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
case REACT_PORTAL_TYPE:
|
|
211
|
-
return $$typeof;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return undefined;
|
|
215
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
216
|
-
|
|
217
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
218
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
219
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
220
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
221
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
222
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
223
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
224
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
225
|
-
var Memo = REACT_MEMO_TYPE;
|
|
226
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
227
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
228
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
229
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
230
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
231
|
-
|
|
232
|
-
function isAsyncMode(object) {
|
|
233
|
-
{
|
|
234
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
235
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
236
|
-
|
|
237
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
241
|
-
}
|
|
242
|
-
function isConcurrentMode(object) {
|
|
243
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
244
|
-
}
|
|
245
|
-
function isContextConsumer(object) {
|
|
246
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
247
|
-
}
|
|
248
|
-
function isContextProvider(object) {
|
|
249
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
250
|
-
}
|
|
251
|
-
function isElement(object) {
|
|
252
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
253
|
-
}
|
|
254
|
-
function isForwardRef(object) {
|
|
255
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
256
|
-
}
|
|
257
|
-
function isFragment(object) {
|
|
258
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
259
|
-
}
|
|
260
|
-
function isLazy(object) {
|
|
261
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
262
|
-
}
|
|
263
|
-
function isMemo(object) {
|
|
264
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
265
|
-
}
|
|
266
|
-
function isPortal(object) {
|
|
267
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
268
|
-
}
|
|
269
|
-
function isProfiler(object) {
|
|
270
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
271
|
-
}
|
|
272
|
-
function isStrictMode(object) {
|
|
273
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
274
|
-
}
|
|
275
|
-
function isSuspense(object) {
|
|
276
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
277
|
-
}
|
|
278
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
279
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
280
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
281
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
282
|
-
reactIs_development.Element = Element;
|
|
283
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
284
|
-
reactIs_development.Fragment = Fragment;
|
|
285
|
-
reactIs_development.Lazy = Lazy;
|
|
286
|
-
reactIs_development.Memo = Memo;
|
|
287
|
-
reactIs_development.Portal = Portal;
|
|
288
|
-
reactIs_development.Profiler = Profiler;
|
|
289
|
-
reactIs_development.StrictMode = StrictMode;
|
|
290
|
-
reactIs_development.Suspense = Suspense;
|
|
291
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
292
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
293
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
294
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
295
|
-
reactIs_development.isElement = isElement;
|
|
296
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
297
|
-
reactIs_development.isFragment = isFragment;
|
|
298
|
-
reactIs_development.isLazy = isLazy;
|
|
299
|
-
reactIs_development.isMemo = isMemo;
|
|
300
|
-
reactIs_development.isPortal = isPortal;
|
|
301
|
-
reactIs_development.isProfiler = isProfiler;
|
|
302
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
303
|
-
reactIs_development.isSuspense = isSuspense;
|
|
304
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
305
|
-
reactIs_development.typeOf = typeOf;
|
|
306
|
-
})();
|
|
307
|
-
}
|
|
308
|
-
return reactIs_development;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
var hasRequiredReactIs;
|
|
312
|
-
function requireReactIs() {
|
|
313
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
314
|
-
hasRequiredReactIs = 1;
|
|
315
|
-
if (process.env.NODE_ENV === 'production') {
|
|
316
|
-
reactIs.exports = requireReactIs_production_min();
|
|
317
|
-
} else {
|
|
318
|
-
reactIs.exports = requireReactIs_development();
|
|
319
|
-
}
|
|
320
|
-
return reactIs.exports;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/*
|
|
324
|
-
object-assign
|
|
325
|
-
(c) Sindre Sorhus
|
|
326
|
-
@license MIT
|
|
327
|
-
*/
|
|
328
|
-
var objectAssign;
|
|
329
|
-
var hasRequiredObjectAssign;
|
|
330
|
-
function requireObjectAssign() {
|
|
331
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
332
|
-
hasRequiredObjectAssign = 1;
|
|
333
|
-
/* eslint-disable no-unused-vars */
|
|
334
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
335
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
336
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
337
|
-
function toObject(val) {
|
|
338
|
-
if (val === null || val === undefined) {
|
|
339
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
340
|
-
}
|
|
341
|
-
return Object(val);
|
|
342
|
-
}
|
|
343
|
-
function shouldUseNative() {
|
|
344
|
-
try {
|
|
345
|
-
if (!Object.assign) {
|
|
346
|
-
return false;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
350
|
-
|
|
351
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
352
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
353
|
-
test1[5] = 'de';
|
|
354
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
355
|
-
return false;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
359
|
-
var test2 = {};
|
|
360
|
-
for (var i = 0; i < 10; i++) {
|
|
361
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
362
|
-
}
|
|
363
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
364
|
-
return test2[n];
|
|
365
|
-
});
|
|
366
|
-
if (order2.join('') !== '0123456789') {
|
|
367
|
-
return false;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
371
|
-
var test3 = {};
|
|
372
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
373
|
-
test3[letter] = letter;
|
|
374
|
-
});
|
|
375
|
-
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
376
|
-
return false;
|
|
377
|
-
}
|
|
378
|
-
return true;
|
|
379
|
-
} catch (err) {
|
|
380
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
385
|
-
var from;
|
|
386
|
-
var to = toObject(target);
|
|
387
|
-
var symbols;
|
|
388
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
389
|
-
from = Object(arguments[s]);
|
|
390
|
-
for (var key in from) {
|
|
391
|
-
if (hasOwnProperty.call(from, key)) {
|
|
392
|
-
to[key] = from[key];
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
if (getOwnPropertySymbols) {
|
|
396
|
-
symbols = getOwnPropertySymbols(from);
|
|
397
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
398
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
399
|
-
to[symbols[i]] = from[symbols[i]];
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
return to;
|
|
405
|
-
};
|
|
406
|
-
return objectAssign;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
411
|
-
*
|
|
412
|
-
* This source code is licensed under the MIT license found in the
|
|
413
|
-
* LICENSE file in the root directory of this source tree.
|
|
414
|
-
*/
|
|
415
|
-
var ReactPropTypesSecret_1;
|
|
416
|
-
var hasRequiredReactPropTypesSecret;
|
|
417
|
-
function requireReactPropTypesSecret() {
|
|
418
|
-
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
419
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
420
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
421
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
422
|
-
return ReactPropTypesSecret_1;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
var has;
|
|
426
|
-
var hasRequiredHas;
|
|
427
|
-
function requireHas() {
|
|
428
|
-
if (hasRequiredHas) return has;
|
|
429
|
-
hasRequiredHas = 1;
|
|
430
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
431
|
-
return has;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
436
|
-
*
|
|
437
|
-
* This source code is licensed under the MIT license found in the
|
|
438
|
-
* LICENSE file in the root directory of this source tree.
|
|
439
|
-
*/
|
|
440
|
-
var checkPropTypes_1;
|
|
441
|
-
var hasRequiredCheckPropTypes;
|
|
442
|
-
function requireCheckPropTypes() {
|
|
443
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
444
|
-
hasRequiredCheckPropTypes = 1;
|
|
445
|
-
var printWarning = function () {};
|
|
446
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
447
|
-
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
|
|
448
|
-
var loggedTypeFailures = {};
|
|
449
|
-
var has = /*@__PURE__*/requireHas();
|
|
450
|
-
printWarning = function (text) {
|
|
451
|
-
var message = 'Warning: ' + text;
|
|
452
|
-
if (typeof console !== 'undefined') {
|
|
453
|
-
console.error(message);
|
|
454
|
-
}
|
|
455
|
-
try {
|
|
456
|
-
// --- Welcome to debugging React ---
|
|
457
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
458
|
-
// to find the callsite that caused this warning to fire.
|
|
459
|
-
throw new Error(message);
|
|
460
|
-
} catch (x) {/**/}
|
|
8
|
+
const Color = ({ fill, stroke, customFill, customStroke, className, children, ...props }) => {
|
|
9
|
+
const style = {
|
|
10
|
+
...(customFill ? { backgroundColor: customFill } : {}),
|
|
11
|
+
...(customStroke ? { border: `1px solid ${customStroke}` } : {})
|
|
461
12
|
};
|
|
462
|
-
|
|
13
|
+
const childClassName = classnames(children.props.className, className, {
|
|
14
|
+
[`fill-${fill}`]: fill,
|
|
15
|
+
[`stroke-${stroke}`]: stroke
|
|
16
|
+
});
|
|
17
|
+
return e__default.cloneElement(children, {
|
|
18
|
+
className: childClassName,
|
|
19
|
+
style: { ...children.props.style, ...style },
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
};
|
|
463
23
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
477
|
-
for (var typeSpecName in typeSpecs) {
|
|
478
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
479
|
-
var error;
|
|
480
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
481
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
482
|
-
// After these have been cleaned up, we'll let them throw.
|
|
483
|
-
try {
|
|
484
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
485
|
-
// behavior as without this statement except with a better message.
|
|
486
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
487
|
-
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
488
|
-
err.name = 'Invariant Violation';
|
|
489
|
-
throw err;
|
|
490
|
-
}
|
|
491
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
492
|
-
} catch (ex) {
|
|
493
|
-
error = ex;
|
|
494
|
-
}
|
|
495
|
-
if (error && !(error instanceof Error)) {
|
|
496
|
-
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
497
|
-
}
|
|
498
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
499
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
500
|
-
// same error.
|
|
501
|
-
loggedTypeFailures[error.message] = true;
|
|
502
|
-
var stack = getStack ? getStack() : '';
|
|
503
|
-
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
504
|
-
}
|
|
24
|
+
const viewportSizes = {
|
|
25
|
+
'mobile-sm': 375,
|
|
26
|
+
'mobile': 576,
|
|
27
|
+
'tablet': 768,
|
|
28
|
+
'laptop': 1024,
|
|
29
|
+
'desktop': 1280
|
|
30
|
+
};
|
|
31
|
+
const Display = ({ show, hide, children }) => {
|
|
32
|
+
const [isDisplayed, setDisplayed] = useState(false);
|
|
33
|
+
const updateMedia = () => {
|
|
34
|
+
if (show === 'touch') {
|
|
35
|
+
setDisplayed(navigator.maxTouchPoints > 0);
|
|
505
36
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Resets warning cache when testing.
|
|
512
|
-
*
|
|
513
|
-
* @private
|
|
514
|
-
*/
|
|
515
|
-
checkPropTypes.resetWarningCache = function () {
|
|
516
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
517
|
-
loggedTypeFailures = {};
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
checkPropTypes_1 = checkPropTypes;
|
|
521
|
-
return checkPropTypes_1;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
526
|
-
*
|
|
527
|
-
* This source code is licensed under the MIT license found in the
|
|
528
|
-
* LICENSE file in the root directory of this source tree.
|
|
529
|
-
*/
|
|
530
|
-
var factoryWithTypeCheckers;
|
|
531
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
532
|
-
function requireFactoryWithTypeCheckers() {
|
|
533
|
-
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
534
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
535
|
-
var ReactIs = requireReactIs();
|
|
536
|
-
var assign = requireObjectAssign();
|
|
537
|
-
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
|
|
538
|
-
var has = /*@__PURE__*/requireHas();
|
|
539
|
-
var checkPropTypes = /*@__PURE__*/requireCheckPropTypes();
|
|
540
|
-
var printWarning = function () {};
|
|
541
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
542
|
-
printWarning = function (text) {
|
|
543
|
-
var message = 'Warning: ' + text;
|
|
544
|
-
if (typeof console !== 'undefined') {
|
|
545
|
-
console.error(message);
|
|
546
|
-
}
|
|
547
|
-
try {
|
|
548
|
-
// --- Welcome to debugging React ---
|
|
549
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
550
|
-
// to find the callsite that caused this warning to fire.
|
|
551
|
-
throw new Error(message);
|
|
552
|
-
} catch (x) {}
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
function emptyFunctionThatReturnsNull() {
|
|
556
|
-
return null;
|
|
557
|
-
}
|
|
558
|
-
factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
559
|
-
/* global Symbol */
|
|
560
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
561
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* Returns the iterator method function contained on the iterable object.
|
|
565
|
-
*
|
|
566
|
-
* Be sure to invoke the function with the iterable as context:
|
|
567
|
-
*
|
|
568
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
569
|
-
* if (iteratorFn) {
|
|
570
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
571
|
-
* ...
|
|
572
|
-
* }
|
|
573
|
-
*
|
|
574
|
-
* @param {?object} maybeIterable
|
|
575
|
-
* @return {?function}
|
|
576
|
-
*/
|
|
577
|
-
function getIteratorFn(maybeIterable) {
|
|
578
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
579
|
-
if (typeof iteratorFn === 'function') {
|
|
580
|
-
return iteratorFn;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
586
|
-
* supplied to React components. Example usage:
|
|
587
|
-
*
|
|
588
|
-
* var Props = require('ReactPropTypes');
|
|
589
|
-
* var MyArticle = React.createClass({
|
|
590
|
-
* propTypes: {
|
|
591
|
-
* // An optional string prop named "description".
|
|
592
|
-
* description: Props.string,
|
|
593
|
-
*
|
|
594
|
-
* // A required enum prop named "category".
|
|
595
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
596
|
-
*
|
|
597
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
598
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
599
|
-
* },
|
|
600
|
-
* render: function() { ... }
|
|
601
|
-
* });
|
|
602
|
-
*
|
|
603
|
-
* A more formal specification of how these methods are used:
|
|
604
|
-
*
|
|
605
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
606
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
607
|
-
*
|
|
608
|
-
* Each and every declaration produces a function with the same signature. This
|
|
609
|
-
* allows the creation of custom validation functions. For example:
|
|
610
|
-
*
|
|
611
|
-
* var MyLink = React.createClass({
|
|
612
|
-
* propTypes: {
|
|
613
|
-
* // An optional string or URI prop named "href".
|
|
614
|
-
* href: function(props, propName, componentName) {
|
|
615
|
-
* var propValue = props[propName];
|
|
616
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
617
|
-
* !(propValue instanceof URI)) {
|
|
618
|
-
* return new Error(
|
|
619
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
620
|
-
* componentName
|
|
621
|
-
* );
|
|
622
|
-
* }
|
|
623
|
-
* }
|
|
624
|
-
* },
|
|
625
|
-
* render: function() {...}
|
|
626
|
-
* });
|
|
627
|
-
*
|
|
628
|
-
* @internal
|
|
629
|
-
*/
|
|
630
|
-
|
|
631
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
632
|
-
|
|
633
|
-
// Important!
|
|
634
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
635
|
-
var ReactPropTypes = {
|
|
636
|
-
array: createPrimitiveTypeChecker('array'),
|
|
637
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
638
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
639
|
-
func: createPrimitiveTypeChecker('function'),
|
|
640
|
-
number: createPrimitiveTypeChecker('number'),
|
|
641
|
-
object: createPrimitiveTypeChecker('object'),
|
|
642
|
-
string: createPrimitiveTypeChecker('string'),
|
|
643
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
644
|
-
any: createAnyTypeChecker(),
|
|
645
|
-
arrayOf: createArrayOfTypeChecker,
|
|
646
|
-
element: createElementTypeChecker(),
|
|
647
|
-
elementType: createElementTypeTypeChecker(),
|
|
648
|
-
instanceOf: createInstanceTypeChecker,
|
|
649
|
-
node: createNodeChecker(),
|
|
650
|
-
objectOf: createObjectOfTypeChecker,
|
|
651
|
-
oneOf: createEnumTypeChecker,
|
|
652
|
-
oneOfType: createUnionTypeChecker,
|
|
653
|
-
shape: createShapeTypeChecker,
|
|
654
|
-
exact: createStrictShapeTypeChecker
|
|
655
|
-
};
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
659
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
660
|
-
*/
|
|
661
|
-
/*eslint-disable no-self-compare*/
|
|
662
|
-
function is(x, y) {
|
|
663
|
-
// SameValue algorithm
|
|
664
|
-
if (x === y) {
|
|
665
|
-
// Steps 1-5, 7-10
|
|
666
|
-
// Steps 6.b-6.e: +0 != -0
|
|
667
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
668
|
-
} else {
|
|
669
|
-
// Step 6.a: NaN == NaN
|
|
670
|
-
return x !== x && y !== y;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
/*eslint-enable no-self-compare*/
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
677
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
678
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
679
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
680
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
681
|
-
*/
|
|
682
|
-
function PropTypeError(message, data) {
|
|
683
|
-
this.message = message;
|
|
684
|
-
this.data = data && typeof data === 'object' ? data : {};
|
|
685
|
-
this.stack = '';
|
|
686
|
-
}
|
|
687
|
-
// Make `instanceof Error` still work for returned errors.
|
|
688
|
-
PropTypeError.prototype = Error.prototype;
|
|
689
|
-
function createChainableTypeChecker(validate) {
|
|
690
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
691
|
-
var manualPropTypeCallCache = {};
|
|
692
|
-
var manualPropTypeWarningCount = 0;
|
|
693
|
-
}
|
|
694
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
695
|
-
componentName = componentName || ANONYMOUS;
|
|
696
|
-
propFullName = propFullName || propName;
|
|
697
|
-
if (secret !== ReactPropTypesSecret) {
|
|
698
|
-
if (throwOnDirectAccess) {
|
|
699
|
-
// New behavior only for users of `prop-types` package
|
|
700
|
-
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
701
|
-
err.name = 'Invariant Violation';
|
|
702
|
-
throw err;
|
|
703
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
704
|
-
// Old behavior for people using React.PropTypes
|
|
705
|
-
var cacheKey = componentName + ':' + propName;
|
|
706
|
-
if (!manualPropTypeCallCache[cacheKey] &&
|
|
707
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
708
|
-
manualPropTypeWarningCount < 3) {
|
|
709
|
-
printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
710
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
711
|
-
manualPropTypeWarningCount++;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
37
|
+
else if (hide === 'touch') {
|
|
38
|
+
setDisplayed(navigator.maxTouchPoints === 0);
|
|
714
39
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
if (
|
|
718
|
-
|
|
40
|
+
else {
|
|
41
|
+
const viewportValue = viewportSizes[(show || hide)];
|
|
42
|
+
if (show) {
|
|
43
|
+
setDisplayed(window.innerWidth <= viewportValue);
|
|
719
44
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
return null;
|
|
723
|
-
} else {
|
|
724
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
728
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
729
|
-
return chainedCheckType;
|
|
730
|
-
}
|
|
731
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
732
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
733
|
-
var propValue = props[propName];
|
|
734
|
-
var propType = getPropType(propValue);
|
|
735
|
-
if (propType !== expectedType) {
|
|
736
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
737
|
-
// check, but we can offer a more precise error message here rather than
|
|
738
|
-
// 'of type `object`'.
|
|
739
|
-
var preciseType = getPreciseType(propValue);
|
|
740
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
741
|
-
expectedType: expectedType
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
return null;
|
|
745
|
-
}
|
|
746
|
-
return createChainableTypeChecker(validate);
|
|
747
|
-
}
|
|
748
|
-
function createAnyTypeChecker() {
|
|
749
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
750
|
-
}
|
|
751
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
752
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
753
|
-
if (typeof typeChecker !== 'function') {
|
|
754
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
755
|
-
}
|
|
756
|
-
var propValue = props[propName];
|
|
757
|
-
if (!Array.isArray(propValue)) {
|
|
758
|
-
var propType = getPropType(propValue);
|
|
759
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
760
|
-
}
|
|
761
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
762
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
763
|
-
if (error instanceof Error) {
|
|
764
|
-
return error;
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
return null;
|
|
768
|
-
}
|
|
769
|
-
return createChainableTypeChecker(validate);
|
|
770
|
-
}
|
|
771
|
-
function createElementTypeChecker() {
|
|
772
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
773
|
-
var propValue = props[propName];
|
|
774
|
-
if (!isValidElement(propValue)) {
|
|
775
|
-
var propType = getPropType(propValue);
|
|
776
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
777
|
-
}
|
|
778
|
-
return null;
|
|
779
|
-
}
|
|
780
|
-
return createChainableTypeChecker(validate);
|
|
781
|
-
}
|
|
782
|
-
function createElementTypeTypeChecker() {
|
|
783
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
784
|
-
var propValue = props[propName];
|
|
785
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
786
|
-
var propType = getPropType(propValue);
|
|
787
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
788
|
-
}
|
|
789
|
-
return null;
|
|
790
|
-
}
|
|
791
|
-
return createChainableTypeChecker(validate);
|
|
792
|
-
}
|
|
793
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
794
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
795
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
796
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
797
|
-
var actualClassName = getClassName(props[propName]);
|
|
798
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
799
|
-
}
|
|
800
|
-
return null;
|
|
801
|
-
}
|
|
802
|
-
return createChainableTypeChecker(validate);
|
|
803
|
-
}
|
|
804
|
-
function createEnumTypeChecker(expectedValues) {
|
|
805
|
-
if (!Array.isArray(expectedValues)) {
|
|
806
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
807
|
-
if (arguments.length > 1) {
|
|
808
|
-
printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
809
|
-
} else {
|
|
810
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
return emptyFunctionThatReturnsNull;
|
|
814
|
-
}
|
|
815
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
816
|
-
var propValue = props[propName];
|
|
817
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
818
|
-
if (is(propValue, expectedValues[i])) {
|
|
819
|
-
return null;
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
823
|
-
var type = getPreciseType(value);
|
|
824
|
-
if (type === 'symbol') {
|
|
825
|
-
return String(value);
|
|
826
|
-
}
|
|
827
|
-
return value;
|
|
828
|
-
});
|
|
829
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
830
|
-
}
|
|
831
|
-
return createChainableTypeChecker(validate);
|
|
832
|
-
}
|
|
833
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
834
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
835
|
-
if (typeof typeChecker !== 'function') {
|
|
836
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
837
|
-
}
|
|
838
|
-
var propValue = props[propName];
|
|
839
|
-
var propType = getPropType(propValue);
|
|
840
|
-
if (propType !== 'object') {
|
|
841
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
842
|
-
}
|
|
843
|
-
for (var key in propValue) {
|
|
844
|
-
if (has(propValue, key)) {
|
|
845
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
846
|
-
if (error instanceof Error) {
|
|
847
|
-
return error;
|
|
45
|
+
else if (hide) {
|
|
46
|
+
setDisplayed(window.innerWidth > viewportValue);
|
|
848
47
|
}
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
return null;
|
|
852
|
-
}
|
|
853
|
-
return createChainableTypeChecker(validate);
|
|
854
|
-
}
|
|
855
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
856
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
857
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
858
|
-
return emptyFunctionThatReturnsNull;
|
|
859
|
-
}
|
|
860
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
861
|
-
var checker = arrayOfTypeCheckers[i];
|
|
862
|
-
if (typeof checker !== 'function') {
|
|
863
|
-
printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
864
|
-
return emptyFunctionThatReturnsNull;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
868
|
-
var expectedTypes = [];
|
|
869
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
870
|
-
var checker = arrayOfTypeCheckers[i];
|
|
871
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
872
|
-
if (checkerResult == null) {
|
|
873
|
-
return null;
|
|
874
|
-
}
|
|
875
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
876
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
877
|
-
}
|
|
878
48
|
}
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
if (!checker) {
|
|
932
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
933
|
-
}
|
|
934
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
935
|
-
if (error) {
|
|
936
|
-
return error;
|
|
937
|
-
}
|
|
49
|
+
};
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
updateMedia();
|
|
52
|
+
window.addEventListener('resize', updateMedia);
|
|
53
|
+
return () => window.removeEventListener('resize', updateMedia);
|
|
54
|
+
}, [show, hide]);
|
|
55
|
+
return jsx(Fragment, { children: isDisplayed ? children : null });
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const Grid = ({ item, wrap, direction, justify, items, self, gap, col, colxs, colsm, colmd, collg, colxl, className, children, ...props }) => {
|
|
59
|
+
return (jsx("div", { className: classnames('flex', {
|
|
60
|
+
'flex-wrap': wrap,
|
|
61
|
+
[`direction-${direction}`]: direction,
|
|
62
|
+
[`justify-${justify}`]: justify,
|
|
63
|
+
[`items-${items}`]: items,
|
|
64
|
+
[`slef-${self}`]: self,
|
|
65
|
+
[`col-${col}`]: col,
|
|
66
|
+
[`col-xs-${colxs}`]: colxs,
|
|
67
|
+
[`col-sm-${colsm}`]: colsm,
|
|
68
|
+
[`col-md-${colmd}`]: colmd,
|
|
69
|
+
[`col-lg-${collg}`]: collg,
|
|
70
|
+
[`col-xl-${colxl}`]: colxl,
|
|
71
|
+
[`gap-${gap}`]: gap
|
|
72
|
+
}, className), ...props, children: children }));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const Text = ({ variant, align, weight, transform, italic, underline, strikeThrough, code, color, component, className, children, ...props }) => {
|
|
76
|
+
const Component = component || 'p';
|
|
77
|
+
return (jsx(Component, { className: classnames([
|
|
78
|
+
{
|
|
79
|
+
[`${variant}`]: variant,
|
|
80
|
+
[`text-${align}`]: align,
|
|
81
|
+
[`text-${weight}`]: weight,
|
|
82
|
+
[`text-${transform}`]: transform,
|
|
83
|
+
[`text-${color}`]: color,
|
|
84
|
+
'text-italic': italic,
|
|
85
|
+
'text-underline': underline,
|
|
86
|
+
'text-strikeThrough': strikeThrough,
|
|
87
|
+
'text-code': code
|
|
88
|
+
},
|
|
89
|
+
className
|
|
90
|
+
]), ...props, children: children }));
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const AccordionContext = createContext({ size: 'md' });
|
|
94
|
+
const Accordion = ({ size = 'md', allowMultiple = false, transparent, className, children, ...props }) => {
|
|
95
|
+
const [activeIndices, setActiveIndices] = useState([]);
|
|
96
|
+
const handleToggle = (index) => {
|
|
97
|
+
if (allowMultiple) {
|
|
98
|
+
setActiveIndices(prev => prev.includes(index)
|
|
99
|
+
? prev.filter(i => i !== index)
|
|
100
|
+
: [...prev, index]);
|
|
938
101
|
}
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
return createChainableTypeChecker(validate);
|
|
942
|
-
}
|
|
943
|
-
function isNode(propValue) {
|
|
944
|
-
switch (typeof propValue) {
|
|
945
|
-
case 'number':
|
|
946
|
-
case 'string':
|
|
947
|
-
case 'undefined':
|
|
948
|
-
return true;
|
|
949
|
-
case 'boolean':
|
|
950
|
-
return !propValue;
|
|
951
|
-
case 'object':
|
|
952
|
-
if (Array.isArray(propValue)) {
|
|
953
|
-
return propValue.every(isNode);
|
|
954
|
-
}
|
|
955
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
956
|
-
return true;
|
|
957
|
-
}
|
|
958
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
959
|
-
if (iteratorFn) {
|
|
960
|
-
var iterator = iteratorFn.call(propValue);
|
|
961
|
-
var step;
|
|
962
|
-
if (iteratorFn !== propValue.entries) {
|
|
963
|
-
while (!(step = iterator.next()).done) {
|
|
964
|
-
if (!isNode(step.value)) {
|
|
965
|
-
return false;
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
} else {
|
|
969
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
970
|
-
while (!(step = iterator.next()).done) {
|
|
971
|
-
var entry = step.value;
|
|
972
|
-
if (entry) {
|
|
973
|
-
if (!isNode(entry[1])) {
|
|
974
|
-
return false;
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
} else {
|
|
980
|
-
return false;
|
|
981
|
-
}
|
|
982
|
-
return true;
|
|
983
|
-
default:
|
|
984
|
-
return false;
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
function isSymbol(propType, propValue) {
|
|
988
|
-
// Native Symbol.
|
|
989
|
-
if (propType === 'symbol') {
|
|
990
|
-
return true;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
// falsy value can't be a Symbol
|
|
994
|
-
if (!propValue) {
|
|
995
|
-
return false;
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
999
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
1000
|
-
return true;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
1004
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
1005
|
-
return true;
|
|
1006
|
-
}
|
|
1007
|
-
return false;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
1011
|
-
function getPropType(propValue) {
|
|
1012
|
-
var propType = typeof propValue;
|
|
1013
|
-
if (Array.isArray(propValue)) {
|
|
1014
|
-
return 'array';
|
|
1015
|
-
}
|
|
1016
|
-
if (propValue instanceof RegExp) {
|
|
1017
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1018
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1019
|
-
// passes PropTypes.object.
|
|
1020
|
-
return 'object';
|
|
1021
|
-
}
|
|
1022
|
-
if (isSymbol(propType, propValue)) {
|
|
1023
|
-
return 'symbol';
|
|
1024
|
-
}
|
|
1025
|
-
return propType;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
1029
|
-
// See `createPrimitiveTypeChecker`.
|
|
1030
|
-
function getPreciseType(propValue) {
|
|
1031
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
1032
|
-
return '' + propValue;
|
|
1033
|
-
}
|
|
1034
|
-
var propType = getPropType(propValue);
|
|
1035
|
-
if (propType === 'object') {
|
|
1036
|
-
if (propValue instanceof Date) {
|
|
1037
|
-
return 'date';
|
|
1038
|
-
} else if (propValue instanceof RegExp) {
|
|
1039
|
-
return 'regexp';
|
|
102
|
+
else {
|
|
103
|
+
setActiveIndices(prev => prev.includes(index) ? [] : [index]);
|
|
1040
104
|
}
|
|
1041
|
-
}
|
|
1042
|
-
return propType;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1046
|
-
// For example, "undefined" or "of type array"
|
|
1047
|
-
function getPostfixForTypeWarning(value) {
|
|
1048
|
-
var type = getPreciseType(value);
|
|
1049
|
-
switch (type) {
|
|
1050
|
-
case 'array':
|
|
1051
|
-
case 'object':
|
|
1052
|
-
return 'an ' + type;
|
|
1053
|
-
case 'boolean':
|
|
1054
|
-
case 'date':
|
|
1055
|
-
case 'regexp':
|
|
1056
|
-
return 'a ' + type;
|
|
1057
|
-
default:
|
|
1058
|
-
return type;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
// Returns class name of the object, if any.
|
|
1063
|
-
function getClassName(propValue) {
|
|
1064
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
1065
|
-
return ANONYMOUS;
|
|
1066
|
-
}
|
|
1067
|
-
return propValue.constructor.name;
|
|
1068
|
-
}
|
|
1069
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1070
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1071
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1072
|
-
return ReactPropTypes;
|
|
1073
|
-
};
|
|
1074
|
-
return factoryWithTypeCheckers;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
/**
|
|
1078
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1079
|
-
*
|
|
1080
|
-
* This source code is licensed under the MIT license found in the
|
|
1081
|
-
* LICENSE file in the root directory of this source tree.
|
|
1082
|
-
*/
|
|
1083
|
-
var factoryWithThrowingShims;
|
|
1084
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
1085
|
-
function requireFactoryWithThrowingShims() {
|
|
1086
|
-
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
1087
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
1088
|
-
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
|
|
1089
|
-
function emptyFunction() {}
|
|
1090
|
-
function emptyFunctionWithReset() {}
|
|
1091
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1092
|
-
factoryWithThrowingShims = function () {
|
|
1093
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1094
|
-
if (secret === ReactPropTypesSecret) {
|
|
1095
|
-
// It is still safe when called from React.
|
|
1096
|
-
return;
|
|
1097
|
-
}
|
|
1098
|
-
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
1099
|
-
err.name = 'Invariant Violation';
|
|
1100
|
-
throw err;
|
|
1101
|
-
}
|
|
1102
|
-
shim.isRequired = shim;
|
|
1103
|
-
function getShim() {
|
|
1104
|
-
return shim;
|
|
1105
|
-
}
|
|
1106
|
-
// Important!
|
|
1107
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1108
|
-
var ReactPropTypes = {
|
|
1109
|
-
array: shim,
|
|
1110
|
-
bigint: shim,
|
|
1111
|
-
bool: shim,
|
|
1112
|
-
func: shim,
|
|
1113
|
-
number: shim,
|
|
1114
|
-
object: shim,
|
|
1115
|
-
string: shim,
|
|
1116
|
-
symbol: shim,
|
|
1117
|
-
any: shim,
|
|
1118
|
-
arrayOf: getShim,
|
|
1119
|
-
element: shim,
|
|
1120
|
-
elementType: shim,
|
|
1121
|
-
instanceOf: getShim,
|
|
1122
|
-
node: shim,
|
|
1123
|
-
objectOf: getShim,
|
|
1124
|
-
oneOf: getShim,
|
|
1125
|
-
oneOfType: getShim,
|
|
1126
|
-
shape: getShim,
|
|
1127
|
-
exact: getShim,
|
|
1128
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1129
|
-
resetWarningCache: emptyFunction
|
|
1130
105
|
};
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
var ReactIs = requireReactIs();
|
|
1149
|
-
|
|
1150
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1151
|
-
// http://fb.me/prop-types-in-prod
|
|
1152
|
-
var throwOnDirectAccess = true;
|
|
1153
|
-
propTypes.exports = /*@__PURE__*/requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
1154
|
-
} else {
|
|
1155
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1156
|
-
// http://fb.me/prop-types-in-prod
|
|
1157
|
-
propTypes.exports = /*@__PURE__*/requireFactoryWithThrowingShims()();
|
|
1158
|
-
}
|
|
1159
|
-
return propTypes.exports;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
var propTypesExports = /*@__PURE__*/ requirePropTypes();
|
|
1163
|
-
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
1164
|
-
|
|
1165
|
-
const Color = ({
|
|
1166
|
-
fill,
|
|
1167
|
-
stroke,
|
|
1168
|
-
customFill,
|
|
1169
|
-
customStroke,
|
|
1170
|
-
className,
|
|
1171
|
-
children,
|
|
1172
|
-
...props
|
|
1173
|
-
}) => {
|
|
1174
|
-
const style = {
|
|
1175
|
-
...(customFill ? {
|
|
1176
|
-
backgroundColor: customFill
|
|
1177
|
-
} : {}),
|
|
1178
|
-
...(customStroke ? {
|
|
1179
|
-
border: `1px solid ${customStroke}`
|
|
1180
|
-
} : {})
|
|
1181
|
-
};
|
|
1182
|
-
const childClassName = classnames(children.props.className, className, {
|
|
1183
|
-
[`fill-${fill}`]: fill,
|
|
1184
|
-
[`stroke-${stroke}`]: stroke
|
|
1185
|
-
});
|
|
1186
|
-
return /*#__PURE__*/React__default.cloneElement(children, {
|
|
1187
|
-
className: childClassName,
|
|
1188
|
-
style: {
|
|
1189
|
-
...children.props.style,
|
|
1190
|
-
...style
|
|
1191
|
-
},
|
|
1192
|
-
...props
|
|
1193
|
-
});
|
|
1194
|
-
};
|
|
1195
|
-
Color.propTypes = {
|
|
1196
|
-
fill: PropTypes.oneOf(['main', 'contrast', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey5', 'default', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
1197
|
-
stroke: PropTypes.oneOf(['main', 'contrast', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey5', 'default', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
1198
|
-
customFill: PropTypes.string,
|
|
1199
|
-
customStroke: PropTypes.string,
|
|
1200
|
-
className: PropTypes.node,
|
|
1201
|
-
children: PropTypes.node
|
|
1202
|
-
};
|
|
1203
|
-
|
|
1204
|
-
const viewportSizes = {
|
|
1205
|
-
'mobile-sm': 375,
|
|
1206
|
-
'mobile': 576,
|
|
1207
|
-
'tablet': 768,
|
|
1208
|
-
'laptop': 1024,
|
|
1209
|
-
'desktop': 1280
|
|
1210
|
-
};
|
|
1211
|
-
const Display = ({
|
|
1212
|
-
show,
|
|
1213
|
-
hide,
|
|
1214
|
-
children
|
|
1215
|
-
}) => {
|
|
1216
|
-
const [isDisplayed, setDisplayed] = useState(false);
|
|
1217
|
-
const updateMedia = () => {
|
|
1218
|
-
if (show === 'touch') {
|
|
1219
|
-
setDisplayed(navigator.maxTouchPoints > 0);
|
|
1220
|
-
} else if (hide === 'touch') {
|
|
1221
|
-
setDisplayed(navigator.maxTouchPoints === 0);
|
|
1222
|
-
} else {
|
|
1223
|
-
const viewportValue = viewportSizes[show || hide];
|
|
1224
|
-
if (show) {
|
|
1225
|
-
setDisplayed(window.innerWidth <= viewportValue);
|
|
1226
|
-
} else if (hide) {
|
|
1227
|
-
setDisplayed(window.innerWidth > viewportValue);
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
};
|
|
1231
|
-
useEffect(() => {
|
|
1232
|
-
updateMedia();
|
|
1233
|
-
window.addEventListener('resize', updateMedia);
|
|
1234
|
-
return () => window.removeEventListener('resize', updateMedia);
|
|
1235
|
-
}, [show, hide]);
|
|
1236
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isDisplayed ? children : null);
|
|
1237
|
-
};
|
|
1238
|
-
Display.propTypes = {
|
|
1239
|
-
show: PropTypes.oneOf(['mobile-sm', 'mobile', 'tablet', 'laptop', 'desktop', 'touch']),
|
|
1240
|
-
hide: PropTypes.oneOf(['mobile-sm', 'mobile', 'tablet', 'laptop', 'desktop', 'touch']),
|
|
1241
|
-
children: PropTypes.node
|
|
1242
|
-
};
|
|
1243
|
-
|
|
1244
|
-
function _extends() {
|
|
1245
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
1246
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
1247
|
-
var t = arguments[e];
|
|
1248
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
1249
|
-
}
|
|
1250
|
-
return n;
|
|
1251
|
-
}, _extends.apply(null, arguments);
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
const Grid = ({
|
|
1255
|
-
item,
|
|
1256
|
-
wrap,
|
|
1257
|
-
direction,
|
|
1258
|
-
justify,
|
|
1259
|
-
items,
|
|
1260
|
-
self,
|
|
1261
|
-
gap,
|
|
1262
|
-
col,
|
|
1263
|
-
colxs,
|
|
1264
|
-
colsm,
|
|
1265
|
-
colmd,
|
|
1266
|
-
collg,
|
|
1267
|
-
colxl,
|
|
1268
|
-
className,
|
|
1269
|
-
children,
|
|
1270
|
-
...props
|
|
1271
|
-
}) => {
|
|
1272
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1273
|
-
className: classnames('flex', {
|
|
1274
|
-
'flex-wrap': wrap,
|
|
1275
|
-
[`direction-${direction}`]: direction,
|
|
1276
|
-
[`justify-${justify}`]: justify,
|
|
1277
|
-
[`items-${items}`]: items,
|
|
1278
|
-
[`slef-${self}`]: self,
|
|
1279
|
-
[`col-${col}`]: col,
|
|
1280
|
-
[`col-xs-${colxs}`]: colxs,
|
|
1281
|
-
[`col-sm-${colsm}`]: colsm,
|
|
1282
|
-
[`col-md-${colmd}`]: colmd,
|
|
1283
|
-
[`col-lg-${collg}`]: collg,
|
|
1284
|
-
[`col-xl-${colxl}`]: colxl,
|
|
1285
|
-
[`gap-${gap}`]: gap
|
|
1286
|
-
}, className)
|
|
1287
|
-
}, props), children);
|
|
1288
|
-
};
|
|
1289
|
-
Grid.propTypes = {
|
|
1290
|
-
item: PropTypes.bool,
|
|
1291
|
-
wrap: PropTypes.bool,
|
|
1292
|
-
direction: PropTypes.oneOf(['column', 'columnReverse', 'row', 'rowReverse']),
|
|
1293
|
-
justify: PropTypes.oneOf(['center', 'end', 'start', 'spaceAround', 'spaceBetween', 'spaceEvenly']),
|
|
1294
|
-
items: PropTypes.oneOf(['stretch', 'center', 'end', 'start', 'baseline']),
|
|
1295
|
-
self: PropTypes.oneOf(['stretch', 'center', 'end', 'start', 'baseline']),
|
|
1296
|
-
col: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
1297
|
-
colxs: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
1298
|
-
colsm: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
1299
|
-
colmd: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
1300
|
-
collg: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
1301
|
-
colxl: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
1302
|
-
gap: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
1303
|
-
className: PropTypes.node,
|
|
1304
|
-
children: PropTypes.node
|
|
1305
|
-
};
|
|
1306
|
-
|
|
1307
|
-
const Text = ({
|
|
1308
|
-
variant,
|
|
1309
|
-
align,
|
|
1310
|
-
weight,
|
|
1311
|
-
transform,
|
|
1312
|
-
italic,
|
|
1313
|
-
underline,
|
|
1314
|
-
strikeThrough,
|
|
1315
|
-
code,
|
|
1316
|
-
color,
|
|
1317
|
-
component,
|
|
1318
|
-
className,
|
|
1319
|
-
children,
|
|
1320
|
-
...props
|
|
1321
|
-
}) => {
|
|
1322
|
-
const Component = component || 'p';
|
|
1323
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1324
|
-
className: classnames([{
|
|
1325
|
-
[`${variant}`]: variant,
|
|
1326
|
-
[`text-${align}`]: align,
|
|
1327
|
-
[`text-${weight}`]: weight,
|
|
1328
|
-
[`text-${transform}`]: transform,
|
|
1329
|
-
[`text-${color}`]: color,
|
|
1330
|
-
'text-italic': italic,
|
|
1331
|
-
'text-underline': underline,
|
|
1332
|
-
'text-strikeThrough': strikeThrough,
|
|
1333
|
-
'text-code': code
|
|
1334
|
-
}, className])
|
|
1335
|
-
}, props), children);
|
|
1336
|
-
};
|
|
1337
|
-
Text.propTypes = {
|
|
1338
|
-
variant: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle', 'body', 'caption', 'overline']),
|
|
1339
|
-
align: PropTypes.oneOf(['left', 'center', 'right', 'justify']),
|
|
1340
|
-
weight: PropTypes.oneOf(['regular', 'bold']),
|
|
1341
|
-
transform: PropTypes.oneOf(['none', 'capitalize', 'uppercase', 'lowercase', 'initial', 'inherit']),
|
|
1342
|
-
italic: PropTypes.bool,
|
|
1343
|
-
underline: PropTypes.bool,
|
|
1344
|
-
strikeThrough: PropTypes.bool,
|
|
1345
|
-
code: PropTypes.bool,
|
|
1346
|
-
color: PropTypes.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
1347
|
-
component: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'span', 'label', 'legend']),
|
|
1348
|
-
className: PropTypes.node,
|
|
1349
|
-
children: PropTypes.node
|
|
106
|
+
return (jsx(AccordionContext.Provider, { value: { size }, children: jsx("div", { className: classnames([
|
|
107
|
+
'accordion',
|
|
108
|
+
{
|
|
109
|
+
[`accordion-${size}`]: size,
|
|
110
|
+
'accordion-transparent': transparent
|
|
111
|
+
},
|
|
112
|
+
className
|
|
113
|
+
]), ...props, children: Children.map(children, (child, index) => {
|
|
114
|
+
if (isValidElement(child)) {
|
|
115
|
+
return cloneElement(child, {
|
|
116
|
+
isOpen: activeIndices.includes(index),
|
|
117
|
+
onToggle: () => handleToggle(index),
|
|
118
|
+
index
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return null;
|
|
122
|
+
}) }) }));
|
|
1350
123
|
};
|
|
1351
124
|
|
|
1352
|
-
const o$
|
|
125
|
+
const o$4 = createContext({
|
|
1353
126
|
color: "currentColor",
|
|
1354
127
|
size: "1em",
|
|
1355
128
|
weight: "regular",
|
|
1356
129
|
mirrored: false
|
|
1357
130
|
});
|
|
1358
131
|
|
|
1359
|
-
const p =
|
|
1360
|
-
|
|
132
|
+
const p = e$9.forwardRef(
|
|
133
|
+
(s, a) => {
|
|
134
|
+
const {
|
|
1361
135
|
alt: n,
|
|
1362
136
|
color: r,
|
|
1363
137
|
size: t,
|
|
@@ -1366,1097 +140,680 @@ const p = /*#__PURE__*/React.forwardRef((s, a) => {
|
|
|
1366
140
|
children: i,
|
|
1367
141
|
weights: m,
|
|
1368
142
|
...x
|
|
1369
|
-
} = s,
|
|
1370
|
-
{
|
|
143
|
+
} = s, {
|
|
1371
144
|
color: d = "currentColor",
|
|
1372
145
|
size: l,
|
|
1373
146
|
weight: f = "regular",
|
|
1374
147
|
mirrored: g = false,
|
|
1375
148
|
...w
|
|
1376
|
-
} =
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
149
|
+
} = e$9.useContext(o$4);
|
|
150
|
+
return /* @__PURE__ */ e$9.createElement(
|
|
151
|
+
"svg",
|
|
152
|
+
{
|
|
153
|
+
ref: a,
|
|
154
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
155
|
+
width: t != null ? t : l,
|
|
156
|
+
height: t != null ? t : l,
|
|
157
|
+
fill: r != null ? r : d,
|
|
158
|
+
viewBox: "0 0 256 256",
|
|
159
|
+
transform: c || g ? "scale(-1, 1)" : void 0,
|
|
160
|
+
...w,
|
|
161
|
+
...x
|
|
162
|
+
},
|
|
163
|
+
!!n && /* @__PURE__ */ e$9.createElement("title", null, n),
|
|
164
|
+
i,
|
|
165
|
+
m.get(o != null ? o : f)
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
);
|
|
1389
169
|
p.displayName = "IconBase";
|
|
1390
170
|
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
}))
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
171
|
+
const t$2 = /* @__PURE__ */ new Map([
|
|
172
|
+
[
|
|
173
|
+
"bold",
|
|
174
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
"duotone",
|
|
178
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,96l-80,80L48,96Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z" }))
|
|
179
|
+
],
|
|
180
|
+
[
|
|
181
|
+
"fill",
|
|
182
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z" }))
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
"light",
|
|
186
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z" }))
|
|
187
|
+
],
|
|
188
|
+
[
|
|
189
|
+
"regular",
|
|
190
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
191
|
+
],
|
|
192
|
+
[
|
|
193
|
+
"thin",
|
|
194
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))
|
|
195
|
+
]
|
|
196
|
+
]);
|
|
197
|
+
|
|
198
|
+
const e$8 = e$9.forwardRef((r, t) => /* @__PURE__ */ e$9.createElement(p, { ref: t, ...r, weights: t$2 }));
|
|
199
|
+
e$8.displayName = "CaretDownIcon";
|
|
200
|
+
|
|
201
|
+
const AccordionItem = ({ icon, label, disabled, className, children, isOpen = false, onToggle, index = 0, ...props }) => {
|
|
202
|
+
const { size } = useContext(AccordionContext);
|
|
203
|
+
const contentRef = useRef(null);
|
|
204
|
+
const [maxHeight, setMaxHeight] = useState('0px');
|
|
205
|
+
const labelVariant = size === 'sm' ? 'caption' : size === 'lg' ? 'subtitle' : 'body';
|
|
206
|
+
const headerId = `accordion-header-${index}`;
|
|
207
|
+
const panelId = `accordion-panel-${index}`;
|
|
208
|
+
useEffect(() => {
|
|
209
|
+
if (isOpen && contentRef.current) {
|
|
210
|
+
setMaxHeight(`${contentRef.current.scrollHeight}px`);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
setMaxHeight('0px');
|
|
214
|
+
}
|
|
215
|
+
}, [isOpen]);
|
|
216
|
+
const handleClick = () => {
|
|
217
|
+
if (!disabled && onToggle) {
|
|
218
|
+
onToggle();
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
const handleKeyDown = (e) => {
|
|
222
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
223
|
+
e.preventDefault();
|
|
224
|
+
handleClick();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
return (jsxs("div", { className: classnames([
|
|
228
|
+
'accordion_item',
|
|
229
|
+
{
|
|
230
|
+
'accordion_item-active': isOpen,
|
|
231
|
+
'accordion_item-disabled': disabled
|
|
232
|
+
},
|
|
233
|
+
className
|
|
234
|
+
]), ...props, children: [jsxs("button", { type: "button", id: headerId, className: classnames('accordion_control'), onClick: handleClick, onKeyDown: handleKeyDown, "aria-expanded": isOpen, "aria-controls": panelId, "aria-disabled": disabled ? true : undefined, disabled: disabled, children: [icon ? jsx("span", { className: "accordion_icon", "aria-hidden": "true", children: icon }) : null, jsx(Text, { className: "accordion_header", variant: labelVariant, weight: "bold", children: label }), jsx(e$8, { className: "accordion_icon accordion_icon-arrow", "aria-hidden": "true" })] }), jsx("div", { id: panelId, ref: contentRef, role: "region", "aria-labelledby": headerId, className: classnames('accordion_content'), style: { maxHeight }, hidden: !isOpen, children: children })] }));
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
const a$6 = /* @__PURE__ */ new Map([
|
|
238
|
+
[
|
|
239
|
+
"bold",
|
|
240
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))
|
|
241
|
+
],
|
|
242
|
+
[
|
|
243
|
+
"duotone",
|
|
244
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement(
|
|
245
|
+
"path",
|
|
246
|
+
{
|
|
247
|
+
d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
|
|
248
|
+
opacity: "0.2"
|
|
249
|
+
}
|
|
250
|
+
), /* @__PURE__ */ e$9.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
251
|
+
],
|
|
252
|
+
[
|
|
253
|
+
"fill",
|
|
254
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
255
|
+
],
|
|
256
|
+
[
|
|
257
|
+
"light",
|
|
258
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z" }))
|
|
259
|
+
],
|
|
260
|
+
[
|
|
261
|
+
"regular",
|
|
262
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
|
|
263
|
+
],
|
|
264
|
+
[
|
|
265
|
+
"thin",
|
|
266
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))
|
|
267
|
+
]
|
|
268
|
+
]);
|
|
269
|
+
|
|
270
|
+
const e$7 = e$9.forwardRef((r, t) => /* @__PURE__ */ e$9.createElement(p, { ref: t, ...r, weights: a$6 }));
|
|
271
|
+
e$7.displayName = "XIcon";
|
|
272
|
+
|
|
273
|
+
const Alert = ({ color = 'success', variant = 'toast', title, subtitle, dense, noIcon, show, onClose, className, ...props }) => {
|
|
274
|
+
const [shouldRender, setRender] = useState(show);
|
|
275
|
+
const [container] = useState(() => {
|
|
276
|
+
let el = document.getElementById('alerts');
|
|
277
|
+
if (!el) {
|
|
278
|
+
el = document.createElement('div');
|
|
279
|
+
el.id = 'alerts';
|
|
280
|
+
document.body.appendChild(el);
|
|
281
|
+
}
|
|
282
|
+
return el;
|
|
283
|
+
});
|
|
284
|
+
useEffect(() => {
|
|
285
|
+
if (show)
|
|
286
|
+
setRender(true);
|
|
287
|
+
}, [show]);
|
|
288
|
+
const onAnimationEnd = () => {
|
|
289
|
+
if (!show)
|
|
290
|
+
setRender(false);
|
|
291
|
+
};
|
|
292
|
+
const alert = (jsxs("div", { role: "alert", "aria-live": variant === 'notice' ? undefined : 'polite', className: classnames([
|
|
293
|
+
'alert',
|
|
294
|
+
{
|
|
295
|
+
[`alert-${color}`]: color,
|
|
296
|
+
[`alert-${variant}`]: variant,
|
|
297
|
+
'alert-slideIn': show,
|
|
298
|
+
'alert-slideOut': !show,
|
|
299
|
+
'alert-dense': dense,
|
|
300
|
+
'alert-noIcon': noIcon
|
|
301
|
+
},
|
|
302
|
+
className
|
|
303
|
+
]), onAnimationEnd: onAnimationEnd, ...props, children: [jsxs("div", { className: classnames('alert_content'), children: [title ? jsx(Text, { className: classnames('alert_title'), variant: dense ? 'caption' : 'body', weight: 'bold', children: title }) : null, subtitle ? jsx(Text, { variant: dense ? 'overline' : 'caption', className: classnames('alert_subtitle'), children: subtitle }) : null] }), onClose ? (jsx("button", { type: "button", className: classnames('alert_close'), onClick: onClose, "aria-label": "Dismiss alert", children: jsx(e$7, { size: dense ? 14 : 16, "aria-hidden": "true" }) })) : null] }));
|
|
304
|
+
if (variant === 'notice') {
|
|
305
|
+
return jsx(Fragment, { children: alert });
|
|
1434
306
|
}
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
useEffect(() => {
|
|
1438
|
-
if (show) setRender(true);
|
|
1439
|
-
}, [show]);
|
|
1440
|
-
const onAnimationEnd = () => {
|
|
1441
|
-
if (!show) setRender(false);
|
|
1442
|
-
};
|
|
1443
|
-
let alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1444
|
-
className: classnames(['alert', {
|
|
1445
|
-
[`alert-${color}`]: color,
|
|
1446
|
-
[`alert-${variant}`]: variant,
|
|
1447
|
-
'alert-slideIn': show,
|
|
1448
|
-
'alert-slideOut': !show,
|
|
1449
|
-
'alert-dense': dense,
|
|
1450
|
-
'alert-noIcon': noIcon
|
|
1451
|
-
}, className]),
|
|
1452
|
-
onAnimationEnd: onAnimationEnd
|
|
1453
|
-
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
1454
|
-
className: classnames('alert_content')
|
|
1455
|
-
}, title ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1456
|
-
className: classnames('alert_title'),
|
|
1457
|
-
variant: dense ? 'caption' : 'body',
|
|
1458
|
-
weight: "bold"
|
|
1459
|
-
}, title) : null, subtitle ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1460
|
-
variant: dense ? 'overline' : 'caption',
|
|
1461
|
-
className: classnames('alert_subtitle')
|
|
1462
|
-
}, subtitle) : null), onClose ? /*#__PURE__*/React__default.createElement(e$6, {
|
|
1463
|
-
className: classnames('alert_close'),
|
|
1464
|
-
onClick: onClose,
|
|
1465
|
-
size: dense ? 14 : 16
|
|
1466
|
-
}) : null);
|
|
1467
|
-
if (variant === 'notice') {
|
|
1468
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, alert);
|
|
1469
|
-
} else {
|
|
1470
|
-
return /*#__PURE__*/createPortal(shouldRender && alert, container);
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
Alert.propTypes = {
|
|
1474
|
-
color: PropTypes.oneOf(['success', 'info', 'warning', 'error']),
|
|
1475
|
-
variant: PropTypes.oneOf(['bar', 'toast', 'notice']),
|
|
1476
|
-
title: PropTypes.string.isRequired,
|
|
1477
|
-
subtitle: PropTypes.string,
|
|
1478
|
-
dense: PropTypes.bool,
|
|
1479
|
-
noIcon: PropTypes.bool,
|
|
1480
|
-
show: PropTypes.bool,
|
|
1481
|
-
onClose: PropTypes.func,
|
|
1482
|
-
className: PropTypes.node
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
|
-
const Breadcrumbs = ({
|
|
1486
|
-
items,
|
|
1487
|
-
separator = "slash",
|
|
1488
|
-
className
|
|
1489
|
-
}) => /*#__PURE__*/React__default.createElement("nav", {
|
|
1490
|
-
"aria-label": "breadcrumbs",
|
|
1491
|
-
className: classnames(['breadcrumbs', {
|
|
1492
|
-
[`breadcrumbs-${separator}`]: separator
|
|
1493
|
-
}, className])
|
|
1494
|
-
}, /*#__PURE__*/React__default.createElement("ol", null, items.map((item, index) => /*#__PURE__*/React__default.createElement("li", {
|
|
1495
|
-
key: index,
|
|
1496
|
-
className: "breadcrumbs_item"
|
|
1497
|
-
}, index === items.length - 1 ? /*#__PURE__*/React__default.createElement("p", {
|
|
1498
|
-
"aria-current": "page"
|
|
1499
|
-
}, item.label) : /*#__PURE__*/React__default.createElement("a", {
|
|
1500
|
-
href: item.href
|
|
1501
|
-
}, item.label)))));
|
|
1502
|
-
Breadcrumbs.propTypes = {
|
|
1503
|
-
items: PropTypes.array.isRequired,
|
|
1504
|
-
separator: PropTypes.oneOf(['slash', 'arrow']),
|
|
1505
|
-
className: PropTypes.node
|
|
1506
|
-
};
|
|
1507
|
-
|
|
1508
|
-
const Button = /*#__PURE__*/React__default.forwardRef(({
|
|
1509
|
-
component = 'button',
|
|
1510
|
-
kind,
|
|
1511
|
-
variant = 'fill',
|
|
1512
|
-
size = 'md',
|
|
1513
|
-
color = 'primary',
|
|
1514
|
-
fullWidth,
|
|
1515
|
-
disabled,
|
|
1516
|
-
iconLeft,
|
|
1517
|
-
iconRight,
|
|
1518
|
-
className,
|
|
1519
|
-
children = 'button',
|
|
1520
|
-
type = 'button',
|
|
1521
|
-
...props
|
|
1522
|
-
}, ref) => {
|
|
1523
|
-
const Component = component || 'button';
|
|
1524
|
-
let content;
|
|
1525
|
-
if (kind === 'icon') {
|
|
1526
|
-
content = children;
|
|
1527
|
-
} else {
|
|
1528
|
-
content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, iconLeft && iconLeft, children, iconRight && iconRight);
|
|
1529
|
-
}
|
|
1530
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1531
|
-
className: classnames(['button', {
|
|
1532
|
-
[`button-${size}`]: size,
|
|
1533
|
-
[`button-${color}`]: color,
|
|
1534
|
-
[`button-${kind}`]: kind,
|
|
1535
|
-
[`button-${variant}`]: variant,
|
|
1536
|
-
'button-fullWidth': fullWidth,
|
|
1537
|
-
'button-disabled': disabled
|
|
1538
|
-
}, className]),
|
|
1539
|
-
ref: ref,
|
|
1540
|
-
disabled: Component === 'button' ? disabled : undefined
|
|
1541
|
-
}, Component === 'button' ? {
|
|
1542
|
-
type
|
|
1543
|
-
} : {}, props), content);
|
|
1544
|
-
});
|
|
1545
|
-
Button.displayName = 'Button';
|
|
1546
|
-
Button.propTypes = {
|
|
1547
|
-
component: PropTypes.oneOfType([PropTypes.oneOf(['button', 'a']), PropTypes.elementType]),
|
|
1548
|
-
kind: PropTypes.oneOf(['text', 'icon']),
|
|
1549
|
-
variant: PropTypes.oneOf(['fill', 'stroke', 'transparent']),
|
|
1550
|
-
size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg']),
|
|
1551
|
-
color: PropTypes.oneOf(['primary', 'secondary', 'grey', 'success', 'info', 'warning', 'error', 'main', 'contrast']),
|
|
1552
|
-
fullWidth: PropTypes.bool,
|
|
1553
|
-
disabled: PropTypes.bool,
|
|
1554
|
-
iconLeft: PropTypes.node,
|
|
1555
|
-
iconRight: PropTypes.node,
|
|
1556
|
-
className: PropTypes.node,
|
|
1557
|
-
type: PropTypes.oneOf(['button', 'submit', 'reset']),
|
|
1558
|
-
children: PropTypes.node.isRequired
|
|
1559
|
-
};
|
|
1560
|
-
|
|
1561
|
-
const Buttons = ({
|
|
1562
|
-
direction = 'landscape',
|
|
1563
|
-
fullWidth,
|
|
1564
|
-
wide,
|
|
1565
|
-
className,
|
|
1566
|
-
children,
|
|
1567
|
-
...props
|
|
1568
|
-
}) => {
|
|
1569
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1570
|
-
className: classnames(['buttons', {
|
|
1571
|
-
[`buttons-${direction}`]: direction,
|
|
1572
|
-
'buttons-fullWidth': fullWidth,
|
|
1573
|
-
'buttons-wide': wide
|
|
1574
|
-
}, className])
|
|
1575
|
-
}, props), children);
|
|
1576
|
-
};
|
|
1577
|
-
Buttons.propTypes = {
|
|
1578
|
-
direction: PropTypes.oneOf(['landscape', 'portrait']),
|
|
1579
|
-
fullWidth: PropTypes.bool,
|
|
1580
|
-
wide: PropTypes.bool,
|
|
1581
|
-
className: PropTypes.node,
|
|
1582
|
-
children: PropTypes.node.isRequired
|
|
1583
|
-
};
|
|
1584
|
-
|
|
1585
|
-
const Card = ({
|
|
1586
|
-
size = 'md',
|
|
1587
|
-
fill = 'paper',
|
|
1588
|
-
direction = 'portrait',
|
|
1589
|
-
align = 'left',
|
|
1590
|
-
hasShadow = false,
|
|
1591
|
-
transparent = false,
|
|
1592
|
-
className,
|
|
1593
|
-
children,
|
|
1594
|
-
...props
|
|
1595
|
-
}) => {
|
|
1596
|
-
return /*#__PURE__*/React__default.createElement(Color, {
|
|
1597
|
-
fill: transparent ? null : fill
|
|
1598
|
-
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1599
|
-
className: classnames(['card', {
|
|
1600
|
-
[`card-${size}`]: size,
|
|
1601
|
-
[`card-${direction}`]: direction,
|
|
1602
|
-
[`card-${align}`]: align,
|
|
1603
|
-
'card-hasShadow': hasShadow,
|
|
1604
|
-
'card-transparent': transparent
|
|
1605
|
-
}, className])
|
|
1606
|
-
}, props), children));
|
|
1607
|
-
};
|
|
1608
|
-
Card.propTypes = {
|
|
1609
|
-
size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
1610
|
-
fill: PropTypes.oneOf(['default', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
1611
|
-
direction: PropTypes.oneOf(['portrait', 'landscape']),
|
|
1612
|
-
align: PropTypes.oneOf(['left', 'center', 'right']),
|
|
1613
|
-
hasShadow: PropTypes.bool,
|
|
1614
|
-
transparent: PropTypes.bool,
|
|
1615
|
-
className: PropTypes.node,
|
|
1616
|
-
children: PropTypes.node.isRequired
|
|
1617
|
-
};
|
|
1618
|
-
|
|
1619
|
-
const CardActions = ({
|
|
1620
|
-
direction,
|
|
1621
|
-
className,
|
|
1622
|
-
children,
|
|
1623
|
-
...props
|
|
1624
|
-
}) => {
|
|
1625
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1626
|
-
className: classnames(['card_actions', {
|
|
1627
|
-
[`card_actions-${direction}`]: direction
|
|
1628
|
-
}, className])
|
|
1629
|
-
}, props), children);
|
|
1630
|
-
};
|
|
1631
|
-
CardActions.propTypes = {
|
|
1632
|
-
direction: PropTypes.oneOf(['portrait', 'landscape']),
|
|
1633
|
-
className: PropTypes.node,
|
|
1634
|
-
children: PropTypes.node.isRequired
|
|
1635
|
-
};
|
|
1636
|
-
|
|
1637
|
-
const CardContent = ({
|
|
1638
|
-
fullWidth,
|
|
1639
|
-
className,
|
|
1640
|
-
children,
|
|
1641
|
-
...props
|
|
1642
|
-
}) => {
|
|
1643
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1644
|
-
className: classnames(['card_content', {
|
|
1645
|
-
'card_content-fullWidth': fullWidth
|
|
1646
|
-
}, className])
|
|
1647
|
-
}, props), children);
|
|
1648
|
-
};
|
|
1649
|
-
CardContent.propTypes = {
|
|
1650
|
-
fullWidth: PropTypes.bool,
|
|
1651
|
-
className: PropTypes.node,
|
|
1652
|
-
children: PropTypes.node.isRequired
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
const CardHeader = ({
|
|
1656
|
-
icon,
|
|
1657
|
-
label,
|
|
1658
|
-
title,
|
|
1659
|
-
subtitle,
|
|
1660
|
-
actions,
|
|
1661
|
-
className,
|
|
1662
|
-
...props
|
|
1663
|
-
}) => {
|
|
1664
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1665
|
-
className: classnames(['card_header', className])
|
|
1666
|
-
}, props), actions && /*#__PURE__*/React__default.createElement("div", {
|
|
1667
|
-
className: "card_headerActions"
|
|
1668
|
-
}, actions), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
|
|
1669
|
-
className: `${icon.props.className ?? ''} card_icon`
|
|
1670
|
-
}) : null, label ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1671
|
-
className: classnames('card_label')
|
|
1672
|
-
}, label) : null, /*#__PURE__*/React__default.createElement(Text, {
|
|
1673
|
-
className: classnames('card_title')
|
|
1674
|
-
}, title), subtitle ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1675
|
-
className: classnames('card_subtitle')
|
|
1676
|
-
}, subtitle) : null);
|
|
1677
|
-
};
|
|
1678
|
-
CardHeader.propTypes = {
|
|
1679
|
-
icon: PropTypes.node,
|
|
1680
|
-
label: PropTypes.string,
|
|
1681
|
-
title: PropTypes.string.isRequired,
|
|
1682
|
-
subtitle: PropTypes.string,
|
|
1683
|
-
actions: PropTypes.node,
|
|
1684
|
-
className: PropTypes.node,
|
|
1685
|
-
children: PropTypes.node
|
|
1686
|
-
};
|
|
1687
|
-
|
|
1688
|
-
const CardMedia = ({
|
|
1689
|
-
width,
|
|
1690
|
-
height,
|
|
1691
|
-
image,
|
|
1692
|
-
fullWidth,
|
|
1693
|
-
className,
|
|
1694
|
-
...props
|
|
1695
|
-
}) => {
|
|
1696
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1697
|
-
className: classnames(['card_media', {
|
|
1698
|
-
'card_media-fullWidth': fullWidth
|
|
1699
|
-
}, className])
|
|
1700
|
-
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
1701
|
-
className: 'card_mediaInner',
|
|
1702
|
-
style: {
|
|
1703
|
-
width: width + 'px',
|
|
1704
|
-
paddingBottom: height,
|
|
1705
|
-
backgroundImage: `url(${image})`
|
|
307
|
+
else {
|
|
308
|
+
return createPortal(shouldRender && alert, container);
|
|
1706
309
|
}
|
|
1707
|
-
}));
|
|
1708
|
-
};
|
|
1709
|
-
CardMedia.propTypes = {
|
|
1710
|
-
width: PropTypes.number,
|
|
1711
|
-
height: PropTypes.number,
|
|
1712
|
-
image: PropTypes.string.isRequired,
|
|
1713
|
-
fullWidth: PropTypes.bool,
|
|
1714
|
-
className: PropTypes.node
|
|
1715
310
|
};
|
|
1716
311
|
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
className: classnames(['checkbox', {
|
|
1731
|
-
'checkbox-disabled': disabled,
|
|
1732
|
-
'checkbox-dense': dense
|
|
1733
|
-
}, className])
|
|
1734
|
-
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
1735
|
-
className: classnames('checkbox_control'),
|
|
1736
|
-
type: "checkbox",
|
|
1737
|
-
name: id,
|
|
1738
|
-
id: id,
|
|
1739
|
-
value: value,
|
|
1740
|
-
checked: checked,
|
|
1741
|
-
"aria-checked": checked,
|
|
1742
|
-
disabled: disabled,
|
|
1743
|
-
required: !(disabled || optional),
|
|
1744
|
-
onChange: onChange
|
|
1745
|
-
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
1746
|
-
className: classnames('checkbox_label'),
|
|
1747
|
-
htmlFor: id
|
|
1748
|
-
}, label));
|
|
1749
|
-
};
|
|
1750
|
-
Checkbox.propTypes = {
|
|
1751
|
-
id: PropTypes.string.isRequired,
|
|
1752
|
-
value: PropTypes.string.isRequired,
|
|
1753
|
-
label: PropTypes.string.isRequired,
|
|
1754
|
-
checked: PropTypes.bool,
|
|
1755
|
-
disabled: PropTypes.bool,
|
|
1756
|
-
optional: PropTypes.bool,
|
|
1757
|
-
dense: PropTypes.bool,
|
|
1758
|
-
className: PropTypes.node
|
|
1759
|
-
};
|
|
1760
|
-
|
|
1761
|
-
const InputLabel = ({
|
|
1762
|
-
isLegend = false,
|
|
1763
|
-
htmlFor,
|
|
1764
|
-
label = 'Input label',
|
|
1765
|
-
hint,
|
|
1766
|
-
error,
|
|
1767
|
-
hideLabel = false
|
|
1768
|
-
}) => {
|
|
1769
|
-
const LabelTag = isLegend ? 'legend' : 'label';
|
|
1770
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement(LabelTag, _extends({
|
|
1771
|
-
className: classnames('input_label', {
|
|
1772
|
-
'sr-only': hideLabel
|
|
1773
|
-
})
|
|
1774
|
-
}, !isLegend && {
|
|
1775
|
-
htmlFor
|
|
1776
|
-
}), label), hint && /*#__PURE__*/React__default.createElement("p", {
|
|
1777
|
-
id: htmlFor + '-hint',
|
|
1778
|
-
className: 'input_hint'
|
|
1779
|
-
}, hint), error && /*#__PURE__*/React__default.createElement("p", {
|
|
1780
|
-
id: htmlFor + '-error',
|
|
1781
|
-
className: 'input_error'
|
|
1782
|
-
}, error));
|
|
1783
|
-
};
|
|
1784
|
-
InputLabel.propTypes = {
|
|
1785
|
-
isLegend: PropTypes.bool,
|
|
1786
|
-
htmlFor: (props, propName, componentName) => {
|
|
1787
|
-
if (!props.isLegend && !props[propName]) {
|
|
1788
|
-
return new Error(`The prop \`${propName}\` is required in \`${componentName}\` when \`isLegend\` is false.`);
|
|
312
|
+
const Breadcrumbs = ({ items, separator = "slash", className }) => (jsx("nav", { "aria-label": "breadcrumbs", className: classnames([
|
|
313
|
+
'breadcrumbs',
|
|
314
|
+
{
|
|
315
|
+
[`breadcrumbs-${separator}`]: separator,
|
|
316
|
+
},
|
|
317
|
+
className
|
|
318
|
+
]), children: jsx("ol", { children: items.map((item, index) => (jsx("li", { className: 'breadcrumbs_item', children: index === items.length - 1 ? (jsx("p", { "aria-current": "page", children: item.label })) : (jsx("a", { href: item.href, children: item.label })) }, index))) }) }));
|
|
319
|
+
|
|
320
|
+
const Button = forwardRef(({ component = 'button', kind, variant = 'fill', size = 'md', color = 'primary', fullWidth, disabled, iconLeft, iconRight, className, children = 'button', type = 'button', ...props }, ref) => {
|
|
321
|
+
const Component = component;
|
|
322
|
+
let content;
|
|
323
|
+
if (kind === 'icon') {
|
|
324
|
+
content = children;
|
|
1789
325
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
hint: PropTypes.string,
|
|
1793
|
-
error: PropTypes.string,
|
|
1794
|
-
hideLabel: PropTypes.bool
|
|
1795
|
-
};
|
|
1796
|
-
|
|
1797
|
-
const Checkboxes = ({
|
|
1798
|
-
id,
|
|
1799
|
-
label = 'Label',
|
|
1800
|
-
direction = 'portrait',
|
|
1801
|
-
error,
|
|
1802
|
-
disabled,
|
|
1803
|
-
optional,
|
|
1804
|
-
dense,
|
|
1805
|
-
hint,
|
|
1806
|
-
hideLabel,
|
|
1807
|
-
children,
|
|
1808
|
-
className
|
|
1809
|
-
}) => {
|
|
1810
|
-
return /*#__PURE__*/React__default.createElement("fieldset", _extends({
|
|
1811
|
-
className: classnames(['input', {
|
|
1812
|
-
'js-error': error,
|
|
1813
|
-
'input-disabled': disabled,
|
|
1814
|
-
'input-optional': optional,
|
|
1815
|
-
'input-dense': dense
|
|
1816
|
-
}, className])
|
|
1817
|
-
}, hint || error ? {
|
|
1818
|
-
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
1819
|
-
} : null), /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
1820
|
-
isLegend: true,
|
|
1821
|
-
label: label,
|
|
1822
|
-
hint: hint,
|
|
1823
|
-
error: error,
|
|
1824
|
-
hideLabel: hideLabel
|
|
1825
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1826
|
-
className: classnames(['input_control', 'radios', {
|
|
1827
|
-
[`radios-${direction}`]: direction
|
|
1828
|
-
}])
|
|
1829
|
-
}, children));
|
|
1830
|
-
};
|
|
1831
|
-
Checkboxes.propTypes = {
|
|
1832
|
-
id: PropTypes.string.isRequired,
|
|
1833
|
-
label: PropTypes.string.isRequired,
|
|
1834
|
-
direction: PropTypes.oneOf(['portrait', 'landscape']),
|
|
1835
|
-
error: PropTypes.bool,
|
|
1836
|
-
disabled: PropTypes.bool,
|
|
1837
|
-
optional: PropTypes.bool,
|
|
1838
|
-
dense: PropTypes.bool,
|
|
1839
|
-
hint: PropTypes.string,
|
|
1840
|
-
hideLabel: PropTypes.bool,
|
|
1841
|
-
children: PropTypes.node.isRequired,
|
|
1842
|
-
className: PropTypes.node
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
const Divider = ({
|
|
1846
|
-
direction = 'landscape',
|
|
1847
|
-
padding = 'md',
|
|
1848
|
-
className,
|
|
1849
|
-
...props
|
|
1850
|
-
}) => {
|
|
1851
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1852
|
-
className: classnames(['divider', {
|
|
1853
|
-
[`divider-${direction}`]: direction,
|
|
1854
|
-
[`divider-${padding}`]: padding
|
|
1855
|
-
}, className])
|
|
1856
|
-
}, props));
|
|
1857
|
-
};
|
|
1858
|
-
Divider.propTypes = {
|
|
1859
|
-
direction: PropTypes.oneOf(['landscape', 'portrait']),
|
|
1860
|
-
padding: PropTypes.oneOf(['none', 'sm', 'md', 'lg']),
|
|
1861
|
-
className: PropTypes.node
|
|
1862
|
-
};
|
|
1863
|
-
|
|
1864
|
-
const e$5 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1865
|
-
d: "M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"
|
|
1866
|
-
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1867
|
-
d: "M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
|
|
1868
|
-
opacity: "0.2"
|
|
1869
|
-
}), /* @__PURE__ */React.createElement("path", {
|
|
1870
|
-
d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"
|
|
1871
|
-
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1872
|
-
d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"
|
|
1873
|
-
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1874
|
-
d: "M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"
|
|
1875
|
-
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1876
|
-
d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"
|
|
1877
|
-
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1878
|
-
d: "M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"
|
|
1879
|
-
}))]]);
|
|
1880
|
-
|
|
1881
|
-
const e$4 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
|
|
1882
|
-
ref: r,
|
|
1883
|
-
...o,
|
|
1884
|
-
weights: e$5
|
|
1885
|
-
}));
|
|
1886
|
-
e$4.displayName = "CalendarBlankIcon";
|
|
1887
|
-
|
|
1888
|
-
const a$3 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1889
|
-
d: "M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"
|
|
1890
|
-
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1891
|
-
d: "M80,176h96l-48,48ZM128,32,80,80h96Z",
|
|
1892
|
-
opacity: "0.2"
|
|
1893
|
-
}), /* @__PURE__ */React.createElement("path", {
|
|
1894
|
-
d: "M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"
|
|
1895
|
-
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1896
|
-
d: "M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"
|
|
1897
|
-
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1898
|
-
d: "M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"
|
|
1899
|
-
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1900
|
-
d: "M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"
|
|
1901
|
-
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1902
|
-
d: "M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"
|
|
1903
|
-
}))]]);
|
|
1904
|
-
|
|
1905
|
-
const e$3 = /*#__PURE__*/React.forwardRef((r, t) => /* @__PURE__ */React.createElement(p, {
|
|
1906
|
-
ref: t,
|
|
1907
|
-
...r,
|
|
1908
|
-
weights: a$3
|
|
1909
|
-
}));
|
|
1910
|
-
e$3.displayName = "CaretUpDownIcon";
|
|
1911
|
-
|
|
1912
|
-
const a$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1913
|
-
d: "M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"
|
|
1914
|
-
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1915
|
-
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
1916
|
-
opacity: "0.2"
|
|
1917
|
-
}), /* @__PURE__ */React.createElement("path", {
|
|
1918
|
-
d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"
|
|
1919
|
-
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1920
|
-
d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"
|
|
1921
|
-
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1922
|
-
d: "M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"
|
|
1923
|
-
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1924
|
-
d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"
|
|
1925
|
-
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1926
|
-
d: "M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"
|
|
1927
|
-
}))]]);
|
|
1928
|
-
|
|
1929
|
-
const c = /*#__PURE__*/React.forwardRef((e, r) => /* @__PURE__ */React.createElement(p, {
|
|
1930
|
-
ref: r,
|
|
1931
|
-
...e,
|
|
1932
|
-
weights: a$2
|
|
1933
|
-
}));
|
|
1934
|
-
c.displayName = "ClockIcon";
|
|
1935
|
-
|
|
1936
|
-
const Input = ({
|
|
1937
|
-
onChange,
|
|
1938
|
-
type = 'text',
|
|
1939
|
-
id,
|
|
1940
|
-
placeholder,
|
|
1941
|
-
label = 'Input',
|
|
1942
|
-
icon,
|
|
1943
|
-
isFocused,
|
|
1944
|
-
error,
|
|
1945
|
-
disabled,
|
|
1946
|
-
optional,
|
|
1947
|
-
dense,
|
|
1948
|
-
hint,
|
|
1949
|
-
hideLabel,
|
|
1950
|
-
className,
|
|
1951
|
-
...props
|
|
1952
|
-
}) => {
|
|
1953
|
-
const inputRef = useRef(null);
|
|
1954
|
-
useEffect(() => {
|
|
1955
|
-
if (isFocused && inputRef.current) {
|
|
1956
|
-
inputRef.current.focus();
|
|
326
|
+
else {
|
|
327
|
+
content = (jsxs(Fragment, { children: [iconLeft && iconLeft, children, iconRight && iconRight] }));
|
|
1957
328
|
}
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
error: error,
|
|
1973
|
-
hideLabel: hideLabel
|
|
1974
|
-
}), customIcon && /*#__PURE__*/React__default.createElement("div", {
|
|
1975
|
-
className: 'input_icon'
|
|
1976
|
-
}, customIcon), /*#__PURE__*/React__default.createElement("input", _extends({
|
|
1977
|
-
ref: inputRef,
|
|
1978
|
-
type: type,
|
|
1979
|
-
className: 'input_control',
|
|
1980
|
-
name: id,
|
|
1981
|
-
id: id,
|
|
1982
|
-
placeholder: placeholder,
|
|
1983
|
-
disabled: disabled,
|
|
1984
|
-
required: !(disabled || optional),
|
|
1985
|
-
onChange: onChange
|
|
1986
|
-
}, hint || error ? {
|
|
1987
|
-
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
1988
|
-
} : null, props)));
|
|
1989
|
-
};
|
|
1990
|
-
Input.propTypes = {
|
|
1991
|
-
onChange: PropTypes.func,
|
|
1992
|
-
type: PropTypes.oneOf(['date', 'email', 'number', 'tel', 'text', 'time']),
|
|
1993
|
-
id: PropTypes.string.isRequired,
|
|
1994
|
-
placeholder: PropTypes.string,
|
|
1995
|
-
label: PropTypes.string.isRequired,
|
|
1996
|
-
icon: PropTypes.node,
|
|
1997
|
-
isFocused: PropTypes.bool,
|
|
1998
|
-
error: PropTypes.bool,
|
|
1999
|
-
disabled: PropTypes.bool,
|
|
2000
|
-
optional: PropTypes.bool,
|
|
2001
|
-
dense: PropTypes.bool,
|
|
2002
|
-
hint: PropTypes.string,
|
|
2003
|
-
hideLabel: PropTypes.bool,
|
|
2004
|
-
className: PropTypes.node
|
|
2005
|
-
};
|
|
2006
|
-
|
|
2007
|
-
const e$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
2008
|
-
d: "M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"
|
|
2009
|
-
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
2010
|
-
d: "M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",
|
|
2011
|
-
opacity: "0.2"
|
|
2012
|
-
}), /* @__PURE__ */React.createElement("path", {
|
|
2013
|
-
d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"
|
|
2014
|
-
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
2015
|
-
d: "M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"
|
|
2016
|
-
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
2017
|
-
d: "M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"
|
|
2018
|
-
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
2019
|
-
d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"
|
|
2020
|
-
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
2021
|
-
d: "M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"
|
|
2022
|
-
}))]]);
|
|
2023
|
-
|
|
2024
|
-
const o$2 = /*#__PURE__*/React.forwardRef((e, t) => /* @__PURE__ */React.createElement(p, {
|
|
2025
|
-
ref: t,
|
|
2026
|
-
...e,
|
|
2027
|
-
weights: e$2
|
|
2028
|
-
}));
|
|
2029
|
-
o$2.displayName = "ArrowSquareOutIcon";
|
|
2030
|
-
|
|
2031
|
-
const Link = ({
|
|
2032
|
-
component = 'a',
|
|
2033
|
-
icon,
|
|
2034
|
-
color,
|
|
2035
|
-
isExternal,
|
|
2036
|
-
href,
|
|
2037
|
-
className,
|
|
2038
|
-
children,
|
|
2039
|
-
...props
|
|
2040
|
-
}) => {
|
|
2041
|
-
const Component = component || 'a';
|
|
2042
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2043
|
-
className: classnames(['link', {
|
|
2044
|
-
[`text-${color}`]: color
|
|
2045
|
-
}, className]),
|
|
2046
|
-
href: isExternal ? href : undefined,
|
|
2047
|
-
target: isExternal ? '_blank' : undefined,
|
|
2048
|
-
rel: isExternal ? 'noopener noreferrer' : undefined
|
|
2049
|
-
}, props), children, icon && !isExternal && /*#__PURE__*/React__default.createElement("span", {
|
|
2050
|
-
className: 'link_icon'
|
|
2051
|
-
}, icon), isExternal && /*#__PURE__*/React__default.createElement("span", {
|
|
2052
|
-
className: 'link_icon'
|
|
2053
|
-
}, /*#__PURE__*/React__default.createElement(o$2, null)));
|
|
2054
|
-
};
|
|
2055
|
-
Link.propTypes = {
|
|
2056
|
-
component: PropTypes.oneOfType(['a', PropTypes.elementType]),
|
|
2057
|
-
icon: PropTypes.node,
|
|
2058
|
-
color: PropTypes.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'inherit']),
|
|
2059
|
-
href: PropTypes.string,
|
|
2060
|
-
className: PropTypes.node,
|
|
2061
|
-
children: PropTypes.node.isRequired
|
|
2062
|
-
};
|
|
2063
|
-
|
|
2064
|
-
const List = ({
|
|
2065
|
-
dense,
|
|
2066
|
-
className,
|
|
2067
|
-
children,
|
|
2068
|
-
...props
|
|
2069
|
-
}) => {
|
|
2070
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
2071
|
-
className: classnames(['list', {
|
|
2072
|
-
'list-dense': dense
|
|
2073
|
-
}, className])
|
|
2074
|
-
}, props), children);
|
|
2075
|
-
};
|
|
2076
|
-
List.propTypes = {
|
|
2077
|
-
dense: PropTypes.bool,
|
|
2078
|
-
className: PropTypes.node,
|
|
2079
|
-
children: PropTypes.node.isRequired
|
|
2080
|
-
};
|
|
2081
|
-
|
|
2082
|
-
const ListItem = ({
|
|
2083
|
-
icon,
|
|
2084
|
-
bold,
|
|
2085
|
-
className,
|
|
2086
|
-
children = 'List item',
|
|
2087
|
-
...props
|
|
2088
|
-
}) => {
|
|
2089
|
-
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
2090
|
-
className: classnames(['list_item', {
|
|
2091
|
-
'list_item-bold': bold
|
|
2092
|
-
}, className])
|
|
2093
|
-
}, props), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
|
|
2094
|
-
className: `${icon.props.className ?? ''} list_itemIcon`
|
|
2095
|
-
}) : null, children);
|
|
2096
|
-
};
|
|
2097
|
-
ListItem.propTypes = {
|
|
2098
|
-
icon: PropTypes.node,
|
|
2099
|
-
bold: PropTypes.bool,
|
|
2100
|
-
className: PropTypes.node,
|
|
2101
|
-
children: PropTypes.node.isRequired
|
|
2102
|
-
};
|
|
329
|
+
return (jsx(Component, { className: classnames([
|
|
330
|
+
'button',
|
|
331
|
+
{
|
|
332
|
+
[`button-${size}`]: size,
|
|
333
|
+
[`button-${color}`]: color,
|
|
334
|
+
[`button-${kind}`]: kind,
|
|
335
|
+
[`button-${variant}`]: variant,
|
|
336
|
+
'button-fullWidth': fullWidth,
|
|
337
|
+
'button-disabled': disabled
|
|
338
|
+
},
|
|
339
|
+
className
|
|
340
|
+
]), ref: ref, disabled: Component === 'button' ? disabled : undefined, "aria-disabled": Component !== 'button' && disabled ? true : undefined, ...(Component === 'button' ? { type } : {}), ...props, children: content }));
|
|
341
|
+
});
|
|
342
|
+
Button.displayName = 'Button';
|
|
2103
343
|
|
|
2104
|
-
const
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
}
|
|
344
|
+
const Buttons = ({ direction = 'landscape', fullWidth, wide, className, children, ...props }) => {
|
|
345
|
+
return (jsx("div", { className: classnames([
|
|
346
|
+
'buttons',
|
|
347
|
+
{
|
|
348
|
+
[`buttons-${direction}`]: direction,
|
|
349
|
+
'buttons-fullWidth': fullWidth,
|
|
350
|
+
'buttons-wide': wide
|
|
351
|
+
},
|
|
352
|
+
className
|
|
353
|
+
]), ...props, children: children }));
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
const Card = ({ size = 'md', fill = 'paper', direction = 'portrait', align = 'left', hasShadow = false, transparent = false, className, children, ...props }) => {
|
|
357
|
+
return (jsx(Color, { fill: transparent ? undefined : fill, children: jsx("div", { className: classnames([
|
|
358
|
+
'card',
|
|
359
|
+
{
|
|
360
|
+
[`card-${size}`]: size,
|
|
361
|
+
[`card-${direction}`]: direction,
|
|
362
|
+
[`card-${align}`]: align,
|
|
363
|
+
'card-hasShadow': hasShadow,
|
|
364
|
+
'card-transparent': transparent
|
|
365
|
+
},
|
|
366
|
+
className
|
|
367
|
+
]), ...props, children: children }) }));
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
const CardActions = ({ direction, className, children, ...props }) => {
|
|
371
|
+
return (jsx("div", { className: classnames([
|
|
372
|
+
'card_actions',
|
|
373
|
+
{
|
|
374
|
+
[`card_actions-${direction}`]: direction
|
|
375
|
+
},
|
|
376
|
+
className
|
|
377
|
+
]), ...props, children: children }));
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
const CardContent = ({ fullWidth, className, children, ...props }) => {
|
|
381
|
+
return (jsx("div", { className: classnames([
|
|
382
|
+
'card_content',
|
|
383
|
+
{
|
|
384
|
+
'card_content-fullWidth': fullWidth
|
|
385
|
+
},
|
|
386
|
+
className
|
|
387
|
+
]), ...props, children: children }));
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
const CardHeader = ({ icon, label, title, subtitle, actions, className, ...props }) => {
|
|
391
|
+
return (jsxs("div", { className: classnames([
|
|
392
|
+
'card_header',
|
|
393
|
+
className
|
|
394
|
+
]), ...props, children: [actions && (jsx("div", { className: "card_headerActions", children: actions })), icon ? e__default.cloneElement(icon, { className: `${icon.props.className ?? ''} card_icon` }) : null, label ? (jsx(Text, { className: classnames('card_label'), children: label })) : null, jsx(Text, { className: classnames('card_title'), children: title }), subtitle ? (jsx(Text, { className: classnames('card_subtitle'), children: subtitle })) : null] }));
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
const CardMedia = ({ width, height, image, fullWidth, className, ...props }) => {
|
|
398
|
+
return (jsx("div", { className: classnames([
|
|
399
|
+
'card_media',
|
|
400
|
+
{
|
|
401
|
+
'card_media-fullWidth': fullWidth
|
|
402
|
+
},
|
|
403
|
+
className
|
|
404
|
+
]), ...props, children: jsx("div", { className: 'card_mediaInner', style: {
|
|
405
|
+
width: width ? width + 'px' : undefined,
|
|
406
|
+
paddingBottom: height,
|
|
407
|
+
backgroundImage: `url(${image})`
|
|
408
|
+
} }) }));
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
const Checkbox = ({ id: providedId, value, label, checked, disabled, optional, dense, onChange, className, ...props }) => {
|
|
412
|
+
const generatedId = useId();
|
|
413
|
+
const id = providedId || generatedId;
|
|
414
|
+
return (jsxs("div", { className: classnames([
|
|
415
|
+
'checkbox',
|
|
416
|
+
{
|
|
417
|
+
'checkbox-disabled': disabled,
|
|
418
|
+
'checkbox-dense': dense
|
|
419
|
+
},
|
|
420
|
+
className
|
|
421
|
+
]), children: [jsx("input", { className: classnames('checkbox_control'), type: "checkbox", name: id, id: id, value: value, checked: checked, "aria-checked": checked, "aria-label": !label ? 'Checkbox' : undefined, disabled: disabled, required: !(disabled || optional), onChange: onChange, ...props }), label && (jsx("label", { className: classnames('checkbox_label'), htmlFor: id, children: label }))] }));
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
const InputLabel = ({ isLegend = false, htmlFor, label = 'Input label', hint, error, hideLabel = false }) => {
|
|
425
|
+
const LabelTag = isLegend ? 'legend' : 'label';
|
|
426
|
+
return (jsxs(Fragment, { children: [label && (jsx(LabelTag, { className: classnames('input_label', { 'sr-only': hideLabel }), ...(!isLegend && htmlFor ? { htmlFor } : {}), children: label })), hint && jsx("p", { id: htmlFor + '-hint', className: 'input_hint', children: hint }), error && jsx("p", { id: htmlFor + '-error', className: 'input_error', children: error })] }));
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
const Checkboxes = ({ id, label = 'Label', direction = 'portrait', error, disabled, optional, dense, hint, hideLabel, children, className }) => {
|
|
430
|
+
return (jsxs("fieldset", { className: classnames([
|
|
431
|
+
'input',
|
|
432
|
+
{
|
|
433
|
+
'js-error': error,
|
|
434
|
+
'input-disabled': disabled,
|
|
435
|
+
'input-optional': optional,
|
|
436
|
+
'input-dense': dense
|
|
437
|
+
},
|
|
438
|
+
className
|
|
439
|
+
]), ...(hint || error
|
|
440
|
+
? {
|
|
441
|
+
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
|
|
442
|
+
.filter(Boolean)
|
|
443
|
+
.join(' '),
|
|
444
|
+
}
|
|
445
|
+
: null), children: [jsx(InputLabel, { isLegend: true, label: label, hint: hint, hideLabel: hideLabel }), jsx("div", { className: classnames([
|
|
446
|
+
'input_control',
|
|
447
|
+
'radios',
|
|
448
|
+
{
|
|
449
|
+
[`radios-${direction}`]: direction
|
|
450
|
+
}
|
|
451
|
+
]), children: children })] }));
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
const Chip = ({ color = 'default', dense, avatar, disabled, onClose, className, children, ...props }) => {
|
|
455
|
+
return (jsx(Color, { fill: color, children: jsxs("div", { className: classnames([
|
|
456
|
+
'chip',
|
|
457
|
+
{
|
|
458
|
+
'chip-dense': dense,
|
|
459
|
+
'chip-disabled': disabled
|
|
460
|
+
},
|
|
461
|
+
className
|
|
462
|
+
]), role: "listitem", "aria-disabled": disabled ? true : undefined, ...props, children: [avatar ? (jsx("img", { className: classnames('chip_avatar'), src: avatar, alt: "", "aria-hidden": "true" })) : null, children, onClose ? (jsx("button", { type: "button", className: classnames('chip_close'), onClick: onClose, disabled: disabled, "aria-label": "Remove", children: jsx(e$7, { size: dense ? 16 : 20, "aria-hidden": "true" }) })) : null] }) }));
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
const Divider = ({ direction = 'landscape', padding = 'md', className, ...props }) => {
|
|
466
|
+
return (jsx("div", { className: classnames([
|
|
467
|
+
'divider',
|
|
468
|
+
{
|
|
469
|
+
[`divider-${direction}`]: direction,
|
|
470
|
+
[`divider-${padding}`]: padding
|
|
471
|
+
},
|
|
472
|
+
className
|
|
473
|
+
]), ...props }));
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
const e$6 = /* @__PURE__ */ new Map([
|
|
477
|
+
[
|
|
478
|
+
"bold",
|
|
479
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z" }))
|
|
480
|
+
],
|
|
481
|
+
[
|
|
482
|
+
"duotone",
|
|
483
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement(
|
|
484
|
+
"path",
|
|
485
|
+
{
|
|
486
|
+
d: "M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
|
|
487
|
+
opacity: "0.2"
|
|
488
|
+
}
|
|
489
|
+
), /* @__PURE__ */ e$9.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z" }))
|
|
490
|
+
],
|
|
491
|
+
[
|
|
492
|
+
"fill",
|
|
493
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z" }))
|
|
494
|
+
],
|
|
495
|
+
[
|
|
496
|
+
"light",
|
|
497
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z" }))
|
|
498
|
+
],
|
|
499
|
+
[
|
|
500
|
+
"regular",
|
|
501
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z" }))
|
|
502
|
+
],
|
|
503
|
+
[
|
|
504
|
+
"thin",
|
|
505
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z" }))
|
|
506
|
+
]
|
|
507
|
+
]);
|
|
508
|
+
|
|
509
|
+
const e$5 = e$9.forwardRef((o, r) => /* @__PURE__ */ e$9.createElement(p, { ref: r, ...o, weights: e$6 }));
|
|
510
|
+
e$5.displayName = "CalendarBlankIcon";
|
|
511
|
+
|
|
512
|
+
const a$5 = /* @__PURE__ */ new Map([
|
|
513
|
+
[
|
|
514
|
+
"bold",
|
|
515
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z" }))
|
|
516
|
+
],
|
|
517
|
+
[
|
|
518
|
+
"duotone",
|
|
519
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M80,176h96l-48,48ZM128,32,80,80h96Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z" }))
|
|
520
|
+
],
|
|
521
|
+
[
|
|
522
|
+
"fill",
|
|
523
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z" }))
|
|
524
|
+
],
|
|
525
|
+
[
|
|
526
|
+
"light",
|
|
527
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z" }))
|
|
528
|
+
],
|
|
529
|
+
[
|
|
530
|
+
"regular",
|
|
531
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z" }))
|
|
532
|
+
],
|
|
533
|
+
[
|
|
534
|
+
"thin",
|
|
535
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z" }))
|
|
536
|
+
]
|
|
537
|
+
]);
|
|
538
|
+
|
|
539
|
+
const e$4 = e$9.forwardRef((r, t) => /* @__PURE__ */ e$9.createElement(p, { ref: t, ...r, weights: a$5 }));
|
|
540
|
+
e$4.displayName = "CaretUpDownIcon";
|
|
541
|
+
|
|
542
|
+
const a$4 = /* @__PURE__ */ new Map([
|
|
543
|
+
[
|
|
544
|
+
"bold",
|
|
545
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z" }))
|
|
546
|
+
],
|
|
547
|
+
[
|
|
548
|
+
"duotone",
|
|
549
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z" }))
|
|
550
|
+
],
|
|
551
|
+
[
|
|
552
|
+
"fill",
|
|
553
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z" }))
|
|
554
|
+
],
|
|
555
|
+
[
|
|
556
|
+
"light",
|
|
557
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z" }))
|
|
558
|
+
],
|
|
559
|
+
[
|
|
560
|
+
"regular",
|
|
561
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z" }))
|
|
562
|
+
],
|
|
563
|
+
[
|
|
564
|
+
"thin",
|
|
565
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z" }))
|
|
566
|
+
]
|
|
567
|
+
]);
|
|
568
|
+
|
|
569
|
+
const c = e$9.forwardRef((e, r) => /* @__PURE__ */ e$9.createElement(p, { ref: r, ...e, weights: a$4 }));
|
|
570
|
+
c.displayName = "ClockIcon";
|
|
2126
571
|
|
|
2127
|
-
const
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
})
|
|
2137
|
-
|
|
2138
|
-
className: classnames([
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
572
|
+
const Input = ({ onChange, type = 'text', id, placeholder, label = 'Input', icon, isFocused, error, disabled, optional, dense, hint, hideLabel, className, ...props }) => {
|
|
573
|
+
const inputRef = useRef(null);
|
|
574
|
+
useEffect(() => {
|
|
575
|
+
if (isFocused && inputRef.current) {
|
|
576
|
+
inputRef.current.focus();
|
|
577
|
+
}
|
|
578
|
+
}, [isFocused]);
|
|
579
|
+
const customIcon = icon ||
|
|
580
|
+
(type === 'date' && jsx(e$5, {})) ||
|
|
581
|
+
(type === 'time' && jsx(c, {})) ||
|
|
582
|
+
(type === 'number' && jsx(e$4, {}));
|
|
583
|
+
return (jsxs("div", { className: classnames([
|
|
584
|
+
'input',
|
|
585
|
+
{
|
|
586
|
+
'js-error': error,
|
|
587
|
+
'input-disabled': disabled,
|
|
588
|
+
'input-optional': optional,
|
|
589
|
+
'input-dense': dense,
|
|
590
|
+
'input-withIcon': icon
|
|
591
|
+
},
|
|
592
|
+
className
|
|
593
|
+
]), children: [jsx(InputLabel, { htmlFor: id, label: label, hint: hint, hideLabel: hideLabel }), customIcon && jsx("div", { className: 'input_icon', "aria-hidden": "true", children: customIcon }), jsx("input", { ref: inputRef, type: type, className: 'input_control', name: id, id: id, placeholder: placeholder, disabled: disabled, required: !(disabled || optional), "aria-invalid": error ? true : undefined, onChange: onChange, ...(hint || error
|
|
594
|
+
? {
|
|
595
|
+
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
|
|
596
|
+
.filter(Boolean)
|
|
597
|
+
.join(' '),
|
|
598
|
+
}
|
|
599
|
+
: null), ...props })] }));
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
const e$3 = /* @__PURE__ */ new Map([
|
|
603
|
+
[
|
|
604
|
+
"bold",
|
|
605
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z" }))
|
|
606
|
+
],
|
|
607
|
+
[
|
|
608
|
+
"duotone",
|
|
609
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement(
|
|
610
|
+
"path",
|
|
611
|
+
{
|
|
612
|
+
d: "M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",
|
|
613
|
+
opacity: "0.2"
|
|
614
|
+
}
|
|
615
|
+
), /* @__PURE__ */ e$9.createElement("path", { d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z" }))
|
|
616
|
+
],
|
|
617
|
+
[
|
|
618
|
+
"fill",
|
|
619
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z" }))
|
|
620
|
+
],
|
|
621
|
+
[
|
|
622
|
+
"light",
|
|
623
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z" }))
|
|
624
|
+
],
|
|
625
|
+
[
|
|
626
|
+
"regular",
|
|
627
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z" }))
|
|
628
|
+
],
|
|
629
|
+
[
|
|
630
|
+
"thin",
|
|
631
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z" }))
|
|
632
|
+
]
|
|
633
|
+
]);
|
|
634
|
+
|
|
635
|
+
const o$3 = e$9.forwardRef((e, t) => /* @__PURE__ */ e$9.createElement(p, { ref: t, ...e, weights: e$3 }));
|
|
636
|
+
o$3.displayName = "ArrowSquareOutIcon";
|
|
637
|
+
|
|
638
|
+
const Link = ({ component = 'a', icon, color, isExternal, href, className, children, ...props }) => {
|
|
639
|
+
const Component = component || 'a';
|
|
640
|
+
return (jsxs(Component, { className: classnames([
|
|
641
|
+
'link',
|
|
642
|
+
{ [`text-${color}`]: color },
|
|
643
|
+
className
|
|
644
|
+
]), href: isExternal ? href : undefined, target: isExternal ? '_blank' : undefined, rel: isExternal ? 'noopener noreferrer' : undefined, ...props, children: [children, icon && !isExternal && jsx("span", { className: 'link_icon', "aria-hidden": "true", children: icon }), isExternal && (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", children: " (opens in new tab)" }), jsx("span", { className: 'link_icon', "aria-hidden": "true", children: jsx(o$3, {}) })] }))] }));
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
const List = ({ dense, className, children, ...props }) => {
|
|
648
|
+
return (jsx("div", { className: classnames([
|
|
649
|
+
'list',
|
|
650
|
+
{
|
|
651
|
+
'list-dense': dense
|
|
652
|
+
},
|
|
653
|
+
className
|
|
654
|
+
]), ...props, children: children }));
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
const ListItem = ({ icon, bold, className, children = 'List item', ...props }) => {
|
|
658
|
+
return (jsxs(Text, { className: classnames([
|
|
659
|
+
'list_item',
|
|
660
|
+
{
|
|
661
|
+
'list_item-bold': bold
|
|
662
|
+
},
|
|
663
|
+
className
|
|
664
|
+
]), ...props, children: [icon ? e__default.cloneElement(icon, { className: `${icon.props.className ?? ''} list_itemIcon` }) : null, children] }));
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
const Nav = ({ direction, dense, className, children, ...props }) => {
|
|
668
|
+
return (jsx("nav", { className: classnames([
|
|
669
|
+
'nav',
|
|
670
|
+
{
|
|
671
|
+
[`nav-${direction}`]: direction,
|
|
672
|
+
'nav-dense': dense
|
|
673
|
+
},
|
|
674
|
+
className
|
|
675
|
+
]), ...props, children: jsx("div", { className: 'nav_container', children: children }) }));
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
const SectionHeader = ({ label, title, promoteTitle = false, titleComponent = 'h2', subtitle, actions, className, ...props }) => {
|
|
679
|
+
return (jsxs("div", { className: classnames([
|
|
680
|
+
'section_header',
|
|
681
|
+
className
|
|
682
|
+
]), ...props, children: [label ? jsx(Text, { className: classnames('section_label'), children: label }) : null, jsx(Text, { className: "section_title", component: titleComponent || (promoteTitle ? 'h1' : 'h2'), children: title }), subtitle ? jsx("div", { className: classnames('section_subtitle'), children: subtitle }) : null, actions ? (jsx("div", { className: "section_actions", children: actions })) : null] }));
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
const Section = ({ align = 'left', color = 'default', landing, header, className, children, ...props }) => {
|
|
686
|
+
return (jsx("div", { className: classnames([
|
|
687
|
+
'section',
|
|
688
|
+
{
|
|
689
|
+
[`section-${align}`]: align,
|
|
690
|
+
[`section-${color}`]: color,
|
|
691
|
+
'section-landing': landing,
|
|
692
|
+
'section-header': header
|
|
693
|
+
},
|
|
694
|
+
className
|
|
695
|
+
]), ...props, children: jsx("div", { className: 'section_container', children: e__default.Children.map(children, child => {
|
|
696
|
+
if (e__default.isValidElement(child) && child.type === SectionHeader) {
|
|
697
|
+
return e__default.cloneElement(child, { promoteTitle: landing || header });
|
|
698
|
+
}
|
|
699
|
+
return child;
|
|
700
|
+
}) }) }));
|
|
2158
701
|
};
|
|
2159
702
|
|
|
2160
|
-
const
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
703
|
+
const NavBar = ({ logo, align, className, children, ...props }) => {
|
|
704
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
705
|
+
const toggleNav = () => {
|
|
706
|
+
setIsOpen(!isOpen);
|
|
707
|
+
document.body.classList.toggle('js-navbar', !isOpen);
|
|
708
|
+
};
|
|
709
|
+
return (jsx("header", { children: jsxs(Section, { className: classnames([
|
|
710
|
+
'navbar',
|
|
711
|
+
{
|
|
712
|
+
[`navbar-${align}`]: align,
|
|
713
|
+
'js-opened': isOpen
|
|
714
|
+
},
|
|
715
|
+
className
|
|
716
|
+
]), ...props, children: [jsxs("div", { className: "navbar_main", children: [jsx("div", { className: "navbar_logo", children: logo }), jsx("button", { type: "button", "aria-label": isOpen ? "Close mobile menu" : "Open mobile menu", "aria-expanded": isOpen, "aria-controls": "navbar-nav", className: classnames('navbar_button', { 'js-opened': isOpen }), onClick: toggleNav, children: jsx("span", { "aria-hidden": "true" }) })] }), jsx("nav", { id: "navbar-nav", "aria-label": "Main navigation", className: classnames('navbar_nav nav', { 'js-opened': isOpen }), children: jsx("div", { className: 'nav_container', children: children }) })] }) }));
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
const NavItem = ({ component, label, active, dropdown, icon, end, to, className, ...props }) => {
|
|
720
|
+
const dropdownRef = useRef(null);
|
|
721
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
722
|
+
const onClick = () => setIsExpanded(!isExpanded);
|
|
723
|
+
let Component;
|
|
724
|
+
if (dropdown) {
|
|
725
|
+
Component = 'button';
|
|
2183
726
|
}
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
};
|
|
2187
|
-
Section.propTypes = {
|
|
2188
|
-
align: PropTypes.oneOf(['left', 'center', 'right']),
|
|
2189
|
-
color: PropTypes.oneOf(['default', 'paper', 'primary', 'primaryLight']),
|
|
2190
|
-
landing: PropTypes.bool,
|
|
2191
|
-
header: PropTypes.bool,
|
|
2192
|
-
className: PropTypes.node,
|
|
2193
|
-
children: PropTypes.node.isRequired
|
|
2194
|
-
};
|
|
2195
|
-
|
|
2196
|
-
const NavBar = ({
|
|
2197
|
-
logo,
|
|
2198
|
-
align,
|
|
2199
|
-
className,
|
|
2200
|
-
children,
|
|
2201
|
-
...props
|
|
2202
|
-
}) => {
|
|
2203
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
2204
|
-
const toggleNav = () => {
|
|
2205
|
-
setIsOpen(!isOpen);
|
|
2206
|
-
document.body.classList.toggle('js-navbar', !isOpen);
|
|
2207
|
-
};
|
|
2208
|
-
return /*#__PURE__*/React__default.createElement("header", null, /*#__PURE__*/React__default.createElement(Section, _extends({
|
|
2209
|
-
className: classnames(['navbar', {
|
|
2210
|
-
[`navbar-${align}`]: align,
|
|
2211
|
-
'js-opened': isOpen
|
|
2212
|
-
}, className])
|
|
2213
|
-
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
2214
|
-
className: "navbar_main"
|
|
2215
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2216
|
-
className: "navbar_logo"
|
|
2217
|
-
}, logo), /*#__PURE__*/React__default.createElement("button", {
|
|
2218
|
-
"aria-label": "Open mobile menu",
|
|
2219
|
-
className: classnames('navbar_button', {
|
|
2220
|
-
'js-opened': isOpen
|
|
2221
|
-
}),
|
|
2222
|
-
onClick: toggleNav
|
|
2223
|
-
}, /*#__PURE__*/React__default.createElement("span", null))), /*#__PURE__*/React__default.createElement("nav", {
|
|
2224
|
-
"aria-label": "main-nav",
|
|
2225
|
-
className: classnames('navbar_nav nav', {
|
|
2226
|
-
'js-opened': isOpen
|
|
2227
|
-
})
|
|
2228
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2229
|
-
className: "nav_container"
|
|
2230
|
-
}, children))));
|
|
2231
|
-
};
|
|
2232
|
-
NavBar.propTypes = {
|
|
2233
|
-
logo: PropTypes.node,
|
|
2234
|
-
align: PropTypes.oneOf(['left', 'right']),
|
|
2235
|
-
className: PropTypes.node,
|
|
2236
|
-
children: PropTypes.node.isRequired
|
|
2237
|
-
};
|
|
2238
|
-
|
|
2239
|
-
const NavItem = ({
|
|
2240
|
-
component,
|
|
2241
|
-
label,
|
|
2242
|
-
active,
|
|
2243
|
-
dropdown,
|
|
2244
|
-
icon,
|
|
2245
|
-
end,
|
|
2246
|
-
to,
|
|
2247
|
-
className,
|
|
2248
|
-
...props
|
|
2249
|
-
}) => {
|
|
2250
|
-
const dropdownRef = useRef(null);
|
|
2251
|
-
const [isExpanded, setIsExpanded] = useState(false);
|
|
2252
|
-
const onClick = () => setIsExpanded(!isExpanded);
|
|
2253
|
-
let Component;
|
|
2254
|
-
if (dropdown) {
|
|
2255
|
-
Component = 'button';
|
|
2256
|
-
} else {
|
|
2257
|
-
Component = component || "a";
|
|
2258
|
-
}
|
|
2259
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2260
|
-
className: classnames(['nav_item', {
|
|
2261
|
-
'nav_item-dropdown': dropdown,
|
|
2262
|
-
'js-show': isExpanded
|
|
2263
|
-
}, className])
|
|
2264
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2265
|
-
end: end,
|
|
2266
|
-
to: to,
|
|
2267
|
-
className: classnames(['nav_trigger', {
|
|
2268
|
-
'nav_trigger-active': active
|
|
2269
|
-
}]),
|
|
2270
|
-
onClick: onClick
|
|
2271
|
-
}, props), icon ? /*#__PURE__*/React__default.createElement("span", {
|
|
2272
|
-
className: classnames('nav_icon')
|
|
2273
|
-
}, icon) : null, label), dropdown ? /*#__PURE__*/React__default.createElement("div", {
|
|
2274
|
-
ref: dropdownRef,
|
|
2275
|
-
className: "nav_target"
|
|
2276
|
-
}, dropdown) : null);
|
|
2277
|
-
};
|
|
2278
|
-
NavItem.propTypes = {
|
|
2279
|
-
label: PropTypes.string.isRequired,
|
|
2280
|
-
active: PropTypes.bool,
|
|
2281
|
-
dropdown: PropTypes.object,
|
|
2282
|
-
icon: PropTypes.node,
|
|
2283
|
-
end: PropTypes.node,
|
|
2284
|
-
to: PropTypes.node,
|
|
2285
|
-
className: PropTypes.node
|
|
2286
|
-
};
|
|
2287
|
-
|
|
2288
|
-
const Radio = ({
|
|
2289
|
-
id,
|
|
2290
|
-
name,
|
|
2291
|
-
value,
|
|
2292
|
-
label,
|
|
2293
|
-
checked,
|
|
2294
|
-
disabled,
|
|
2295
|
-
optional,
|
|
2296
|
-
dense,
|
|
2297
|
-
onChange,
|
|
2298
|
-
className,
|
|
2299
|
-
...props
|
|
2300
|
-
}) => {
|
|
2301
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2302
|
-
className: classnames(['radio', {
|
|
2303
|
-
'radio-disabled': disabled,
|
|
2304
|
-
'radio-dense': dense
|
|
2305
|
-
}, className])
|
|
2306
|
-
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
2307
|
-
className: classnames('radio_control'),
|
|
2308
|
-
type: "radio",
|
|
2309
|
-
id: id,
|
|
2310
|
-
name: name,
|
|
2311
|
-
value: value,
|
|
2312
|
-
checked: checked,
|
|
2313
|
-
"aria-checked": checked,
|
|
2314
|
-
disabled: disabled,
|
|
2315
|
-
required: !(disabled || optional),
|
|
2316
|
-
onChange: onChange
|
|
2317
|
-
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
2318
|
-
className: classnames('radio_label'),
|
|
2319
|
-
htmlFor: id
|
|
2320
|
-
}, label));
|
|
2321
|
-
};
|
|
2322
|
-
Radio.propTypes = {
|
|
2323
|
-
id: PropTypes.string.isRequired,
|
|
2324
|
-
name: PropTypes.string.isRequired,
|
|
2325
|
-
value: PropTypes.string.isRequired,
|
|
2326
|
-
label: PropTypes.string.isRequired,
|
|
2327
|
-
checked: PropTypes.bool,
|
|
2328
|
-
disabled: PropTypes.bool,
|
|
2329
|
-
optional: PropTypes.bool,
|
|
2330
|
-
dense: PropTypes.bool,
|
|
2331
|
-
className: PropTypes.node
|
|
2332
|
-
};
|
|
2333
|
-
|
|
2334
|
-
const RadioButtons = ({
|
|
2335
|
-
id,
|
|
2336
|
-
label = 'Label',
|
|
2337
|
-
direction = 'portrait',
|
|
2338
|
-
error,
|
|
2339
|
-
disabled,
|
|
2340
|
-
optional,
|
|
2341
|
-
dense,
|
|
2342
|
-
hint,
|
|
2343
|
-
hideLabel,
|
|
2344
|
-
children,
|
|
2345
|
-
className
|
|
2346
|
-
}) => {
|
|
2347
|
-
return /*#__PURE__*/React__default.createElement("fieldset", _extends({
|
|
2348
|
-
className: classnames(['input', {
|
|
2349
|
-
'js-error': error,
|
|
2350
|
-
'input-disabled': disabled,
|
|
2351
|
-
'input-optional': optional,
|
|
2352
|
-
'input-dense': dense
|
|
2353
|
-
}, className])
|
|
2354
|
-
}, hint || error ? {
|
|
2355
|
-
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
2356
|
-
} : null), /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
2357
|
-
isLegend: true,
|
|
2358
|
-
label: label,
|
|
2359
|
-
hint: hint,
|
|
2360
|
-
error: error,
|
|
2361
|
-
hideLabel: hideLabel
|
|
2362
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2363
|
-
className: classnames(['input_control', 'radios', {
|
|
2364
|
-
[`radios-${direction}`]: direction
|
|
2365
|
-
}])
|
|
2366
|
-
}, children));
|
|
2367
|
-
};
|
|
2368
|
-
RadioButtons.propTypes = {
|
|
2369
|
-
id: PropTypes.string.isRequired,
|
|
2370
|
-
label: PropTypes.string.isRequired,
|
|
2371
|
-
direction: PropTypes.oneOf(['portrait', 'landscape']),
|
|
2372
|
-
error: PropTypes.bool,
|
|
2373
|
-
disabled: PropTypes.bool,
|
|
2374
|
-
optional: PropTypes.bool,
|
|
2375
|
-
dense: PropTypes.bool,
|
|
2376
|
-
hint: PropTypes.string,
|
|
2377
|
-
hideLabel: PropTypes.bool,
|
|
2378
|
-
children: PropTypes.node.isRequired,
|
|
2379
|
-
className: PropTypes.node
|
|
2380
|
-
};
|
|
2381
|
-
|
|
2382
|
-
const SectionContent = ({
|
|
2383
|
-
align = 'left',
|
|
2384
|
-
className,
|
|
2385
|
-
children,
|
|
2386
|
-
...props
|
|
2387
|
-
}) => {
|
|
2388
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
2389
|
-
className: classnames(['section_content', {
|
|
2390
|
-
[`section_content-${align}`]: align
|
|
2391
|
-
}, className])
|
|
2392
|
-
}, props), children);
|
|
2393
|
-
};
|
|
2394
|
-
SectionContent.propTypes = {
|
|
2395
|
-
align: PropTypes.oneOf(['left', 'center', 'right']),
|
|
2396
|
-
className: PropTypes.node,
|
|
2397
|
-
children: PropTypes.node.isRequired
|
|
2398
|
-
};
|
|
2399
|
-
|
|
2400
|
-
const Select = ({
|
|
2401
|
-
onChange,
|
|
2402
|
-
id,
|
|
2403
|
-
label = 'Select',
|
|
2404
|
-
isFocused,
|
|
2405
|
-
error,
|
|
2406
|
-
disabled,
|
|
2407
|
-
optional,
|
|
2408
|
-
dense,
|
|
2409
|
-
hint,
|
|
2410
|
-
hideLabel,
|
|
2411
|
-
children,
|
|
2412
|
-
className,
|
|
2413
|
-
...props
|
|
2414
|
-
}) => {
|
|
2415
|
-
const inputRef = useRef(null);
|
|
2416
|
-
useEffect(() => {
|
|
2417
|
-
if (isFocused && inputRef.current) {
|
|
2418
|
-
inputRef.current.focus();
|
|
727
|
+
else {
|
|
728
|
+
Component = component || 'a';
|
|
2419
729
|
}
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
className:
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
730
|
+
const dropdownId = dropdown ? `nav-dropdown-${label.replace(/\s+/g, '-').toLowerCase()}` : undefined;
|
|
731
|
+
return (jsxs("div", { className: classnames([
|
|
732
|
+
'nav_item',
|
|
733
|
+
{
|
|
734
|
+
'nav_item-dropdown': dropdown,
|
|
735
|
+
'js-show': isExpanded
|
|
736
|
+
},
|
|
737
|
+
className
|
|
738
|
+
]), children: [jsxs(Component, { end: end, to: to, className: classnames([
|
|
739
|
+
'nav_trigger',
|
|
740
|
+
{
|
|
741
|
+
'nav_trigger-active': active
|
|
742
|
+
}
|
|
743
|
+
]), onClick: onClick, "aria-expanded": dropdown ? isExpanded : undefined, "aria-haspopup": dropdown ? 'menu' : undefined, "aria-controls": dropdownId, ...props, children: [icon ? (jsx("span", { className: classnames('nav_icon'), "aria-hidden": "true", children: icon })) : null, label] }), dropdown ? (jsx("div", { ref: dropdownRef, id: dropdownId, className: 'nav_target', role: "menu", children: dropdown })) : null] }));
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
const Radio = ({ id, name, value, label, checked, disabled, optional, dense, onChange, className, ...props }) => {
|
|
747
|
+
return (jsxs("div", { className: classnames([
|
|
748
|
+
'radio',
|
|
749
|
+
{
|
|
750
|
+
'radio-disabled': disabled,
|
|
751
|
+
'radio-dense': dense
|
|
752
|
+
},
|
|
753
|
+
className
|
|
754
|
+
]), children: [jsx("input", { className: classnames('radio_control'), type: "radio", id: id, name: name, value: value, checked: checked, "aria-checked": checked, disabled: disabled, required: !(disabled || optional), onChange: onChange, ...props }), jsx("label", { className: classnames('radio_label'), htmlFor: id, children: label })] }));
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
const RadioButtons = ({ id, label = 'Label', direction = 'portrait', error, disabled, optional, dense, hint, hideLabel, children, className }) => {
|
|
758
|
+
return (jsxs("fieldset", { className: classnames([
|
|
759
|
+
'input',
|
|
760
|
+
{
|
|
761
|
+
'js-error': error,
|
|
762
|
+
'input-disabled': disabled,
|
|
763
|
+
'input-optional': optional,
|
|
764
|
+
'input-dense': dense
|
|
765
|
+
},
|
|
766
|
+
className
|
|
767
|
+
]), ...(hint || error
|
|
768
|
+
? {
|
|
769
|
+
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
|
|
770
|
+
.filter(Boolean)
|
|
771
|
+
.join(' '),
|
|
772
|
+
}
|
|
773
|
+
: null), children: [jsx(InputLabel, { isLegend: true, label: label, hint: hint, hideLabel: hideLabel }), jsx("div", { className: classnames([
|
|
774
|
+
'input_control',
|
|
775
|
+
'radios',
|
|
776
|
+
{
|
|
777
|
+
[`radios-${direction}`]: direction
|
|
778
|
+
}
|
|
779
|
+
]), children: children })] }));
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
const SectionContent = ({ align = 'left', className, children, ...props }) => {
|
|
783
|
+
return (jsx("div", { className: classnames([
|
|
784
|
+
'section_content',
|
|
785
|
+
{
|
|
786
|
+
[`section_content-${align}`]: align
|
|
787
|
+
},
|
|
788
|
+
className
|
|
789
|
+
]), ...props, children: children }));
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
const Select = ({ onChange, id, label = 'Select', isFocused, error, disabled, optional, dense, hint, hideLabel, children, className, ...props }) => {
|
|
793
|
+
const inputRef = useRef(null);
|
|
794
|
+
useEffect(() => {
|
|
795
|
+
if (isFocused && inputRef.current) {
|
|
796
|
+
inputRef.current.focus();
|
|
797
|
+
}
|
|
798
|
+
}, [isFocused]);
|
|
799
|
+
return (jsxs("div", { className: classnames([
|
|
800
|
+
'input',
|
|
801
|
+
'select',
|
|
802
|
+
{
|
|
803
|
+
'input-focused': isFocused,
|
|
804
|
+
'js-error': error,
|
|
805
|
+
'input-disabled': disabled,
|
|
806
|
+
'input-optional': optional,
|
|
807
|
+
'input-dense': dense,
|
|
808
|
+
},
|
|
809
|
+
className
|
|
810
|
+
]), children: [jsx(InputLabel, { htmlFor: id, label: label, hint: hint, hideLabel: hideLabel }), jsx("select", { ref: inputRef, className: 'input_control', name: id, id: id, disabled: disabled, required: !(disabled || optional), "aria-invalid": error ? true : undefined, onChange: onChange, ...(hint || error
|
|
811
|
+
? {
|
|
812
|
+
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
|
|
813
|
+
.filter(Boolean)
|
|
814
|
+
.join(' '),
|
|
815
|
+
}
|
|
816
|
+
: null), ...props, children: children })] }));
|
|
2460
817
|
};
|
|
2461
818
|
|
|
2462
819
|
var nnfxDark = {
|
|
@@ -2576,532 +933,479 @@ var nnfxDark = {
|
|
|
2576
933
|
}
|
|
2577
934
|
};
|
|
2578
935
|
|
|
2579
|
-
const Snippet = ({
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
};
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
}
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
}
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
};
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
const
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
936
|
+
const Snippet = ({ content = 'Snippet', isDefault = false, dense = false, fullWidth, className, ...props }) => {
|
|
937
|
+
return (jsx("div", { className: classnames([
|
|
938
|
+
'snippet_wrapper',
|
|
939
|
+
{ ' w-full': fullWidth }
|
|
940
|
+
]), children: jsx(SyntaxHighlighter, { language: "javascript", style: nnfxDark, className: classnames([
|
|
941
|
+
'snippet',
|
|
942
|
+
{ ' snippet-dense': dense },
|
|
943
|
+
{ ' snippet-default': isDefault },
|
|
944
|
+
className
|
|
945
|
+
]), ...props, children: content }) }));
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
const Status = ({ color = 'inactive', dense, className, children = 'Status', ...props }) => {
|
|
949
|
+
return (jsx(Text, { className: classnames([
|
|
950
|
+
'status',
|
|
951
|
+
{
|
|
952
|
+
[`status-${color}`]: color,
|
|
953
|
+
'status-dense': dense
|
|
954
|
+
},
|
|
955
|
+
className
|
|
956
|
+
]), ...props, children: children }));
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
const a$3 = /* @__PURE__ */ new Map([
|
|
960
|
+
[
|
|
961
|
+
"bold",
|
|
962
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z" }))
|
|
963
|
+
],
|
|
964
|
+
[
|
|
965
|
+
"duotone",
|
|
966
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement(
|
|
967
|
+
"path",
|
|
968
|
+
{
|
|
969
|
+
d: "M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",
|
|
970
|
+
opacity: "0.2"
|
|
971
|
+
}
|
|
972
|
+
), /* @__PURE__ */ e$9.createElement("path", { d: "M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
973
|
+
],
|
|
974
|
+
[
|
|
975
|
+
"fill",
|
|
976
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
977
|
+
],
|
|
978
|
+
[
|
|
979
|
+
"light",
|
|
980
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z" }))
|
|
981
|
+
],
|
|
982
|
+
[
|
|
983
|
+
"regular",
|
|
984
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }))
|
|
985
|
+
],
|
|
986
|
+
[
|
|
987
|
+
"thin",
|
|
988
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z" }))
|
|
989
|
+
]
|
|
990
|
+
]);
|
|
991
|
+
|
|
992
|
+
const o$2 = e$9.forwardRef((c, r) => /* @__PURE__ */ e$9.createElement(p, { ref: r, ...c, weights: a$3 }));
|
|
993
|
+
o$2.displayName = "CheckIcon";
|
|
994
|
+
|
|
995
|
+
const StepperContext = createContext(null);
|
|
996
|
+
const Stepper = ({ showLabels, className, children, ...props }) => {
|
|
997
|
+
const [activeStep, setActiveStep] = useState(0);
|
|
998
|
+
const [completedSteps, setCompletedSteps] = useState([]);
|
|
999
|
+
const totalSteps = Children.count(children);
|
|
1000
|
+
const goToNext = () => {
|
|
1001
|
+
if (activeStep < totalSteps - 1) {
|
|
1002
|
+
setCompletedSteps(prev => [...prev, activeStep]);
|
|
1003
|
+
setActiveStep(prev => prev + 1);
|
|
1004
|
+
}
|
|
1005
|
+
};
|
|
1006
|
+
const goToPrevious = () => {
|
|
1007
|
+
if (activeStep > 0) {
|
|
1008
|
+
setActiveStep(prev => prev - 1);
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
const skipCurrent = () => {
|
|
1012
|
+
if (activeStep < totalSteps - 1) {
|
|
1013
|
+
// Skip doesn't mark as completed
|
|
1014
|
+
setActiveStep(prev => prev + 1);
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
// Extract labels from children
|
|
1018
|
+
const stepLabels = [];
|
|
1019
|
+
Children.forEach(children, (child) => {
|
|
1020
|
+
if (isValidElement(child)) {
|
|
1021
|
+
const props = child.props;
|
|
1022
|
+
stepLabels.push(props.label || '');
|
|
1023
|
+
}
|
|
1024
|
+
});
|
|
1025
|
+
return (jsx(StepperContext.Provider, { value: { activeStep, totalSteps, goToNext, goToPrevious, skipCurrent, completedSteps }, children: jsxs("div", { className: classnames('stepper', className), ...props, children: [jsx("nav", { className: classnames('stepper_nav'), "aria-label": "Progress", children: jsx("ol", { className: classnames('stepper_list'), role: "list", children: stepLabels.map((label, index) => {
|
|
1026
|
+
const isActive = index === activeStep;
|
|
1027
|
+
const isCompleted = completedSteps.includes(index);
|
|
1028
|
+
return (jsxs("li", { className: classnames('stepper_step', {
|
|
1029
|
+
'stepper_step-active': isActive,
|
|
1030
|
+
'stepper_step-completed': isCompleted
|
|
1031
|
+
}), "aria-current": isActive ? 'step' : undefined, children: [jsx("span", { className: classnames('stepper_icon', {
|
|
1032
|
+
'stepper_icon-active': isActive,
|
|
1033
|
+
'stepper_icon-completed': isCompleted
|
|
1034
|
+
}), "aria-hidden": "true", children: isCompleted ? jsx(o$2, { size: 16 }) : index + 1 }), showLabels ? (jsx(Text, { variant: "caption", weight: "bold", className: classnames('stepper_label'), children: label })) : (jsx("span", { className: "sr-only", children: label }))] }, index));
|
|
1035
|
+
}) }) }), jsx("div", { className: classnames('stepper_content'), children: Children.map(children, (child, index) => {
|
|
1036
|
+
if (index === activeStep && isValidElement(child)) {
|
|
1037
|
+
return child;
|
|
1038
|
+
}
|
|
1039
|
+
return null;
|
|
1040
|
+
}) })] }) }));
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
const Step = ({ label, skippable, className, children, ...props }) => {
|
|
1044
|
+
const context = useContext(StepperContext);
|
|
1045
|
+
if (!context) {
|
|
1046
|
+
throw new Error('Step must be used within a Stepper');
|
|
2681
1047
|
}
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
};
|
|
2697
|
-
|
|
2698
|
-
const
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
1048
|
+
const { activeStep, totalSteps, goToNext, goToPrevious, skipCurrent, completedSteps } = context;
|
|
1049
|
+
const isFirstStep = activeStep === 0;
|
|
1050
|
+
const isLastStep = activeStep === totalSteps - 1;
|
|
1051
|
+
Array.from({ length: activeStep }, (_, i) => i).every(i => completedSteps.includes(i));
|
|
1052
|
+
return (jsxs(Card, { size: "lg", className: classnames('stepper_panel', className), role: "tabpanel", "aria-label": label, ...props, children: [jsx(CardHeader, { title: label }), jsx(CardContent, { children: children }), jsxs(CardActions, { children: [jsx(Button, { variant: "transparent", onClick: goToPrevious, disabled: isFirstStep, "aria-label": "Go to previous step", children: "Back" }), jsxs(Buttons, { children: [skippable && !isLastStep && (jsx(Button, { variant: "transparent", onClick: skipCurrent, "aria-label": "Skip this step", children: "Skip" })), jsx(Button, { onClick: goToNext, disabled: isLastStep, "aria-label": isLastStep ? 'Last step reached' : 'Go to next step', children: isLastStep ? 'Finish' : 'Next' })] })] })] }));
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
const Switch = ({ id, startLabel, endLabel, disabled, className, checked, defaultChecked, ...props }) => {
|
|
1056
|
+
const isChecked = checked ?? defaultChecked ?? false;
|
|
1057
|
+
return (jsxs("div", { className: classnames([
|
|
1058
|
+
'switch',
|
|
1059
|
+
{ 'switch-disabled': disabled },
|
|
1060
|
+
className
|
|
1061
|
+
]), children: [startLabel ? jsx(Text, { className: classnames('switch_label'), variant: "body", id: `${id}-start`, children: startLabel }) : null, jsx("input", { className: classnames('switch_input'), type: "checkbox", role: "switch", name: id, id: id, disabled: disabled, checked: checked, defaultChecked: defaultChecked, "aria-checked": isChecked, "aria-labelledby": startLabel || endLabel ? [startLabel ? `${id}-start` : null, endLabel ? `${id}-end` : null].filter(Boolean).join(' ') : undefined, ...props }), jsx("label", { className: classnames('switch_switch'), htmlFor: id, "aria-hidden": "true", children: jsx("div", { className: classnames('switch_toggle') }) }), endLabel ? jsx(Text, { className: classnames('switch_label'), variant: "body", id: `${id}-end`, children: endLabel }) : null] }));
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
const TabsContext = createContext(null);
|
|
1065
|
+
const Tabs = ({ direction, dense, hasBorder, className, children }) => {
|
|
1066
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
1067
|
+
// Count Tab components for keyboard navigation
|
|
1068
|
+
let tabCount = 0;
|
|
1069
|
+
Children.forEach(children, (child) => {
|
|
1070
|
+
if (isValidElement(child) && child.props) {
|
|
1071
|
+
const childProps = child.props;
|
|
1072
|
+
Children.forEach(childProps.children, (grandchild) => {
|
|
1073
|
+
if (isValidElement(grandchild)) {
|
|
1074
|
+
const grandchildProps = grandchild.props;
|
|
1075
|
+
if (grandchildProps.index !== undefined) {
|
|
1076
|
+
tabCount++;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
return (jsx(TabsContext.Provider, { value: { activeIndex, setActiveIndex, tabCount: tabCount || 1 }, children: jsx("div", { className: classnames([
|
|
1083
|
+
'tabs',
|
|
1084
|
+
{
|
|
1085
|
+
[`tabs-${direction}`]: direction,
|
|
1086
|
+
'tabs-dense': dense,
|
|
1087
|
+
'tabs-hasBorder': hasBorder,
|
|
1088
|
+
},
|
|
1089
|
+
className
|
|
1090
|
+
]), children: children }) }));
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
const Tab = ({ index, label, className, }) => {
|
|
1094
|
+
const context = useContext(TabsContext);
|
|
1095
|
+
const activeIndex = context?.activeIndex ?? 0;
|
|
1096
|
+
const setActiveIndex = context?.setActiveIndex ?? (() => { });
|
|
1097
|
+
const tabCount = context?.tabCount ?? 1;
|
|
1098
|
+
const isSelected = activeIndex === index;
|
|
1099
|
+
const buttonRef = useRef(null);
|
|
1100
|
+
const handleKeyDown = (e) => {
|
|
1101
|
+
let newIndex = index;
|
|
1102
|
+
switch (e.key) {
|
|
1103
|
+
case 'ArrowRight':
|
|
1104
|
+
case 'ArrowDown':
|
|
1105
|
+
e.preventDefault();
|
|
1106
|
+
newIndex = (index + 1) % tabCount;
|
|
1107
|
+
break;
|
|
1108
|
+
case 'ArrowLeft':
|
|
1109
|
+
case 'ArrowUp':
|
|
1110
|
+
e.preventDefault();
|
|
1111
|
+
newIndex = (index - 1 + tabCount) % tabCount;
|
|
1112
|
+
break;
|
|
1113
|
+
case 'Home':
|
|
1114
|
+
e.preventDefault();
|
|
1115
|
+
newIndex = 0;
|
|
1116
|
+
break;
|
|
1117
|
+
case 'End':
|
|
1118
|
+
e.preventDefault();
|
|
1119
|
+
newIndex = tabCount - 1;
|
|
1120
|
+
break;
|
|
1121
|
+
default:
|
|
1122
|
+
return;
|
|
1123
|
+
}
|
|
1124
|
+
setActiveIndex(newIndex);
|
|
1125
|
+
// Focus the new tab
|
|
1126
|
+
const newTab = document.getElementById(`tab-${newIndex}`);
|
|
1127
|
+
newTab?.focus();
|
|
1128
|
+
};
|
|
1129
|
+
return (jsx("button", { ref: buttonRef, type: "button", className: classnames([
|
|
1130
|
+
'tab',
|
|
1131
|
+
{
|
|
1132
|
+
'tab-active': isSelected,
|
|
1133
|
+
},
|
|
1134
|
+
className
|
|
1135
|
+
]), role: "tab", "aria-selected": isSelected, "aria-controls": `tabpanel-${index}`, id: `tab-${index}`, tabIndex: isSelected ? 0 : -1, onClick: () => setActiveIndex(index), onKeyDown: handleKeyDown, children: label }));
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
const a$2 = /* @__PURE__ */ new Map([
|
|
1139
|
+
[
|
|
1140
|
+
"bold",
|
|
1141
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z" }))
|
|
1142
|
+
],
|
|
1143
|
+
[
|
|
1144
|
+
"duotone",
|
|
1145
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M160,48V208L80,128Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z" }))
|
|
1146
|
+
],
|
|
1147
|
+
[
|
|
1148
|
+
"fill",
|
|
1149
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z" }))
|
|
1150
|
+
],
|
|
1151
|
+
[
|
|
1152
|
+
"light",
|
|
1153
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z" }))
|
|
1154
|
+
],
|
|
1155
|
+
[
|
|
1156
|
+
"regular",
|
|
1157
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z" }))
|
|
1158
|
+
],
|
|
1159
|
+
[
|
|
1160
|
+
"thin",
|
|
1161
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z" }))
|
|
1162
|
+
]
|
|
1163
|
+
]);
|
|
1164
|
+
|
|
1165
|
+
const t$1 = e$9.forwardRef((o, r) => /* @__PURE__ */ e$9.createElement(p, { ref: r, ...o, weights: a$2 }));
|
|
2747
1166
|
t$1.displayName = "CaretLeftIcon";
|
|
2748
1167
|
|
|
2749
|
-
const t = /* @__PURE__ */new Map([
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
}))
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
}))
|
|
1168
|
+
const t = /* @__PURE__ */ new Map([
|
|
1169
|
+
[
|
|
1170
|
+
"bold",
|
|
1171
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z" }))
|
|
1172
|
+
],
|
|
1173
|
+
[
|
|
1174
|
+
"duotone",
|
|
1175
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M176,128,96,208V48Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z" }))
|
|
1176
|
+
],
|
|
1177
|
+
[
|
|
1178
|
+
"fill",
|
|
1179
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z" }))
|
|
1180
|
+
],
|
|
1181
|
+
[
|
|
1182
|
+
"light",
|
|
1183
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z" }))
|
|
1184
|
+
],
|
|
1185
|
+
[
|
|
1186
|
+
"regular",
|
|
1187
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" }))
|
|
1188
|
+
],
|
|
1189
|
+
[
|
|
1190
|
+
"thin",
|
|
1191
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z" }))
|
|
1192
|
+
]
|
|
1193
|
+
]);
|
|
1194
|
+
|
|
1195
|
+
const e$2 = e$9.forwardRef((o, r) => /* @__PURE__ */ e$9.createElement(p, { ref: r, ...o, weights: t }));
|
|
1196
|
+
e$2.displayName = "CaretRightIcon";
|
|
1197
|
+
|
|
1198
|
+
const e$1 = /* @__PURE__ */ new Map([
|
|
1199
|
+
[
|
|
1200
|
+
"bold",
|
|
1201
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z" }))
|
|
1202
|
+
],
|
|
1203
|
+
[
|
|
1204
|
+
"duotone",
|
|
1205
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M200,48V208l-80-80Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z" }))
|
|
1206
|
+
],
|
|
1207
|
+
[
|
|
1208
|
+
"fill",
|
|
1209
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z" }))
|
|
1210
|
+
],
|
|
1211
|
+
[
|
|
1212
|
+
"light",
|
|
1213
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z" }))
|
|
1214
|
+
],
|
|
1215
|
+
[
|
|
1216
|
+
"regular",
|
|
1217
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z" }))
|
|
1218
|
+
],
|
|
1219
|
+
[
|
|
1220
|
+
"thin",
|
|
1221
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z" }))
|
|
1222
|
+
]
|
|
1223
|
+
]);
|
|
1224
|
+
|
|
1225
|
+
const o$1 = e$9.forwardRef((t, r) => /* @__PURE__ */ e$9.createElement(p, { ref: r, ...t, weights: e$1 }));
|
|
2795
1226
|
o$1.displayName = "CaretDoubleLeftIcon";
|
|
2796
1227
|
|
|
2797
|
-
const a = /* @__PURE__ */new Map([
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
}))
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
1228
|
+
const a$1 = /* @__PURE__ */ new Map([
|
|
1229
|
+
[
|
|
1230
|
+
"bold",
|
|
1231
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z" }))
|
|
1232
|
+
],
|
|
1233
|
+
[
|
|
1234
|
+
"duotone",
|
|
1235
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M136,128,56,208V48Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z" }))
|
|
1236
|
+
],
|
|
1237
|
+
[
|
|
1238
|
+
"fill",
|
|
1239
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z" }))
|
|
1240
|
+
],
|
|
1241
|
+
[
|
|
1242
|
+
"light",
|
|
1243
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z" }))
|
|
1244
|
+
],
|
|
1245
|
+
[
|
|
1246
|
+
"regular",
|
|
1247
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z" }))
|
|
1248
|
+
],
|
|
1249
|
+
[
|
|
1250
|
+
"thin",
|
|
1251
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z" }))
|
|
1252
|
+
]
|
|
1253
|
+
]);
|
|
1254
|
+
|
|
1255
|
+
const o = e$9.forwardRef((t, r) => /* @__PURE__ */ e$9.createElement(p, { ref: r, ...t, weights: a$1 }));
|
|
2819
1256
|
o.displayName = "CaretDoubleRightIcon";
|
|
2820
1257
|
|
|
2821
|
-
const TableFooter = ({
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
};
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
const
|
|
2885
|
-
const
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
}
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
}) => {
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
};
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
children,
|
|
2976
|
-
...props
|
|
2977
|
-
}) => {
|
|
2978
|
-
return /*#__PURE__*/React__default.createElement("tr", _extends({
|
|
2979
|
-
className: classnames(['table_row', className])
|
|
2980
|
-
}, props), children);
|
|
2981
|
-
};
|
|
2982
|
-
TableRow.propTypes = {
|
|
2983
|
-
className: PropTypes.node,
|
|
2984
|
-
children: PropTypes.node.isRequired
|
|
2985
|
-
};
|
|
2986
|
-
|
|
2987
|
-
const TabsControl = ({
|
|
2988
|
-
className,
|
|
2989
|
-
children
|
|
2990
|
-
}) => {
|
|
2991
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2992
|
-
role: "tablist",
|
|
2993
|
-
className: classnames(['tabs_controls', className])
|
|
2994
|
-
}, children);
|
|
2995
|
-
};
|
|
2996
|
-
TabsControl.propTypes = {
|
|
2997
|
-
className: PropTypes.node,
|
|
2998
|
-
children: PropTypes.node.isRequired
|
|
2999
|
-
};
|
|
3000
|
-
|
|
3001
|
-
const TabsPanel = ({
|
|
3002
|
-
index,
|
|
3003
|
-
className,
|
|
3004
|
-
children
|
|
3005
|
-
}) => {
|
|
3006
|
-
const {
|
|
3007
|
-
activeIndex
|
|
3008
|
-
} = useContext(TabsContext);
|
|
3009
|
-
const isActive = activeIndex === index;
|
|
3010
|
-
return isActive ? /*#__PURE__*/React__default.createElement("div", {
|
|
3011
|
-
className: classnames(['tabs_panel', className]),
|
|
3012
|
-
role: "tabpanel",
|
|
3013
|
-
id: `tabpanel-${index}`,
|
|
3014
|
-
"aria-labelledby": `tab-${index}`,
|
|
3015
|
-
hidden: !isActive
|
|
3016
|
-
}, children) : null;
|
|
3017
|
-
};
|
|
3018
|
-
TabsPanel.propTypes = {
|
|
3019
|
-
className: PropTypes.node,
|
|
3020
|
-
children: PropTypes.node.isRequired
|
|
3021
|
-
};
|
|
3022
|
-
|
|
3023
|
-
const Tag = ({
|
|
3024
|
-
color = 'primary',
|
|
3025
|
-
dense,
|
|
3026
|
-
className,
|
|
3027
|
-
children = 'Tag',
|
|
3028
|
-
...props
|
|
3029
|
-
}) => {
|
|
3030
|
-
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
3031
|
-
className: classnames(['tag', {
|
|
3032
|
-
[`tag-${color}`]: color,
|
|
3033
|
-
'tag-dense': dense
|
|
3034
|
-
}, className])
|
|
3035
|
-
}, props), children);
|
|
3036
|
-
};
|
|
3037
|
-
Tag.propTypes = {
|
|
3038
|
-
color: PropTypes.oneOf(['primary', 'secondary', 'grey', 'success', 'info', 'warning', 'error']),
|
|
3039
|
-
dense: PropTypes.bool,
|
|
3040
|
-
className: PropTypes.node,
|
|
3041
|
-
children: PropTypes.node.isRequired
|
|
3042
|
-
};
|
|
3043
|
-
|
|
3044
|
-
const Textarea = ({
|
|
3045
|
-
onChange,
|
|
3046
|
-
id,
|
|
3047
|
-
placeholder,
|
|
3048
|
-
label = 'Textarea',
|
|
3049
|
-
isFocused,
|
|
3050
|
-
error,
|
|
3051
|
-
disabled,
|
|
3052
|
-
optional,
|
|
3053
|
-
dense,
|
|
3054
|
-
hint,
|
|
3055
|
-
hideLabel,
|
|
3056
|
-
className,
|
|
3057
|
-
...props
|
|
3058
|
-
}) => {
|
|
3059
|
-
const inputRef = useRef(null);
|
|
3060
|
-
useEffect(() => {
|
|
3061
|
-
if (isFocused && inputRef.current) {
|
|
3062
|
-
inputRef.current.focus();
|
|
3063
|
-
}
|
|
3064
|
-
}, [isFocused]);
|
|
3065
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
3066
|
-
className: classnames(['input', {
|
|
3067
|
-
'js-error': error,
|
|
3068
|
-
'input-disabled': disabled,
|
|
3069
|
-
'input-optional': optional,
|
|
3070
|
-
'input-dense': dense
|
|
3071
|
-
}, className])
|
|
3072
|
-
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
3073
|
-
htmlFor: id,
|
|
3074
|
-
label: label,
|
|
3075
|
-
hint: hint,
|
|
3076
|
-
error: error,
|
|
3077
|
-
hideLabel: hideLabel
|
|
3078
|
-
}), /*#__PURE__*/React__default.createElement("textarea", _extends({
|
|
3079
|
-
ref: inputRef,
|
|
3080
|
-
className: 'input_control',
|
|
3081
|
-
name: id,
|
|
3082
|
-
id: id,
|
|
3083
|
-
placeholder: placeholder,
|
|
3084
|
-
disabled: disabled,
|
|
3085
|
-
required: !(disabled || optional),
|
|
3086
|
-
rows: 4,
|
|
3087
|
-
onChange: onChange
|
|
3088
|
-
}, hint || error ? {
|
|
3089
|
-
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
3090
|
-
} : null, props)));
|
|
3091
|
-
};
|
|
3092
|
-
Textarea.propTypes = {
|
|
3093
|
-
onChange: PropTypes.func,
|
|
3094
|
-
id: PropTypes.string.isRequired,
|
|
3095
|
-
placeholder: PropTypes.string,
|
|
3096
|
-
label: PropTypes.string.isRequired,
|
|
3097
|
-
isFocused: PropTypes.bool,
|
|
3098
|
-
error: PropTypes.bool,
|
|
3099
|
-
disabled: PropTypes.bool,
|
|
3100
|
-
optional: PropTypes.bool,
|
|
3101
|
-
dense: PropTypes.bool,
|
|
3102
|
-
hint: PropTypes.string,
|
|
3103
|
-
hideLabel: PropTypes.bool,
|
|
3104
|
-
className: PropTypes.node
|
|
3105
|
-
};
|
|
3106
|
-
|
|
3107
|
-
export { Alert, Breadcrumbs, Button, Buttons, Card, CardActions, CardContent, CardHeader, CardMedia, Checkbox, Checkboxes, Color, Display, Divider, Grid, Input, InputLabel, Link, List, ListItem, Nav, NavBar, NavItem, Radio, RadioButtons, Section, SectionContent, SectionHeader, Select, Snippet, Status, Switch, Tab, Table, TableBody, TableCell, TableFooter, TableHead, TableRow, Tabs, TabsControl, TabsPanel, Tag, Text, Textarea };
|
|
1258
|
+
const TableFooter = ({ className, ...props }) => {
|
|
1259
|
+
return (jsxs("div", { className: classnames([
|
|
1260
|
+
'table_footer',
|
|
1261
|
+
className
|
|
1262
|
+
]), ...props, children: [jsxs(Select, { dense: true, id: "rows", className: "table_rowSelect", children: [jsx("option", { value: "1", children: "10" }), jsx("option", { value: "2", children: "25" }), jsx("option", { value: "2", children: "50" }), jsx("option", { value: "2", children: "100" }), jsx("option", { value: "2", children: "All" })] }), jsxs(Buttons, { className: "table_pagination", children: [jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(o$1, {}) }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(t$1, {}) }), jsx(Button, { kind: "icon", size: "sm", children: "1" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "2" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "3" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "\u2026" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: "8" }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(e$2, {}) }), jsx(Button, { kind: "icon", variant: "transparent", size: "sm", children: jsx(o, {}) })] })] }));
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
const DenseContext = createContext(false);
|
|
1266
|
+
const Table = ({ striped, hasHover, dense, border, withFooter, className, children, ...props }) => {
|
|
1267
|
+
return (jsx(DenseContext.Provider, { value: dense ?? false, children: jsxs("div", { className: classnames([
|
|
1268
|
+
'table',
|
|
1269
|
+
{
|
|
1270
|
+
'table-striped': striped,
|
|
1271
|
+
'table-hasHover': hasHover,
|
|
1272
|
+
'table-dense': dense,
|
|
1273
|
+
'table-border': border
|
|
1274
|
+
},
|
|
1275
|
+
className
|
|
1276
|
+
]), children: [jsx("table", { cellPadding: 0, cellSpacing: 0, className: classnames('table_content'), ...props, children: children }), withFooter ? jsx(TableFooter, {}) : null] }) }));
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
const TableBody = ({ className, children, ...props }) => {
|
|
1280
|
+
return (jsx("tbody", { className: classnames([
|
|
1281
|
+
'table_body',
|
|
1282
|
+
className
|
|
1283
|
+
]), ...props, children: children }));
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
const TableCellComponentContext = createContext('td');
|
|
1287
|
+
const TableHead = ({ className, children, ...props }) => {
|
|
1288
|
+
return (jsx(TableCellComponentContext.Provider, { value: 'th', children: jsx("thead", { className: classnames([
|
|
1289
|
+
'table_head',
|
|
1290
|
+
className
|
|
1291
|
+
]), ...props, children: children }) }));
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
const TableCell = ({ kind = 'default', className, children, ...props }) => {
|
|
1295
|
+
const Component = useContext(TableCellComponentContext);
|
|
1296
|
+
return (jsx(Component, { className: classnames([
|
|
1297
|
+
'table_cell',
|
|
1298
|
+
{
|
|
1299
|
+
[`table_cell-${kind}`]: kind,
|
|
1300
|
+
},
|
|
1301
|
+
className
|
|
1302
|
+
]), ...props, children: children }));
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
const TableRow = ({ className, children, ...props }) => {
|
|
1306
|
+
return (jsx("tr", { className: classnames([
|
|
1307
|
+
'table_row',
|
|
1308
|
+
className
|
|
1309
|
+
]), ...props, children: children }));
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
const TabsControl = ({ className, children, }) => {
|
|
1313
|
+
return (jsx("div", { role: 'tablist', className: classnames([
|
|
1314
|
+
'tabs_controls',
|
|
1315
|
+
className
|
|
1316
|
+
]), children: children }));
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
const TabsPanel = ({ index, className, children, }) => {
|
|
1320
|
+
const context = useContext(TabsContext);
|
|
1321
|
+
const activeIndex = context?.activeIndex ?? 0;
|
|
1322
|
+
const isActive = activeIndex === index;
|
|
1323
|
+
return (isActive ? (jsx("div", { className: classnames([
|
|
1324
|
+
'tabs_panel',
|
|
1325
|
+
className
|
|
1326
|
+
]), role: "tabpanel", id: `tabpanel-${index}`, "aria-labelledby": `tab-${index}`, hidden: !isActive, children: children })) : null);
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
const Tag = ({ color = 'primary', dense, className, children = 'Tag', ...props }) => {
|
|
1330
|
+
return (jsx(Text, { className: classnames([
|
|
1331
|
+
'tag',
|
|
1332
|
+
{
|
|
1333
|
+
[`tag-${color}`]: color,
|
|
1334
|
+
'tag-dense': dense
|
|
1335
|
+
},
|
|
1336
|
+
className
|
|
1337
|
+
]), ...props, children: children }));
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
const Textarea = ({ onChange, id, placeholder, label = 'Textarea', isFocused, error, disabled, optional, dense, hint, hideLabel, className, ...props }) => {
|
|
1341
|
+
const inputRef = useRef(null);
|
|
1342
|
+
useEffect(() => {
|
|
1343
|
+
if (isFocused && inputRef.current) {
|
|
1344
|
+
inputRef.current.focus();
|
|
1345
|
+
}
|
|
1346
|
+
}, [isFocused]);
|
|
1347
|
+
return (jsxs("div", { className: classnames([
|
|
1348
|
+
'input',
|
|
1349
|
+
{
|
|
1350
|
+
'js-error': error,
|
|
1351
|
+
'input-disabled': disabled,
|
|
1352
|
+
'input-optional': optional,
|
|
1353
|
+
'input-dense': dense
|
|
1354
|
+
},
|
|
1355
|
+
className
|
|
1356
|
+
]), children: [jsx(InputLabel, { htmlFor: id, label: label, hint: hint, hideLabel: hideLabel }), jsx("textarea", { ref: inputRef, className: 'input_control', name: id, id: id, placeholder: placeholder, disabled: disabled, required: !(disabled || optional), "aria-invalid": error ? true : undefined, rows: 4, onChange: onChange, ...(hint || error
|
|
1357
|
+
? {
|
|
1358
|
+
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null]
|
|
1359
|
+
.filter(Boolean)
|
|
1360
|
+
.join(' '),
|
|
1361
|
+
}
|
|
1362
|
+
: null), ...props })] }));
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
const a = /* @__PURE__ */ new Map([
|
|
1366
|
+
[
|
|
1367
|
+
"bold",
|
|
1368
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z" }))
|
|
1369
|
+
],
|
|
1370
|
+
[
|
|
1371
|
+
"duotone",
|
|
1372
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ e$9.createElement("path", { d: "M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z" }))
|
|
1373
|
+
],
|
|
1374
|
+
[
|
|
1375
|
+
"fill",
|
|
1376
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z" }))
|
|
1377
|
+
],
|
|
1378
|
+
[
|
|
1379
|
+
"light",
|
|
1380
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z" }))
|
|
1381
|
+
],
|
|
1382
|
+
[
|
|
1383
|
+
"regular",
|
|
1384
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z" }))
|
|
1385
|
+
],
|
|
1386
|
+
[
|
|
1387
|
+
"thin",
|
|
1388
|
+
/* @__PURE__ */ e$9.createElement(e$9.Fragment, null, /* @__PURE__ */ e$9.createElement("path", { d: "M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))
|
|
1389
|
+
]
|
|
1390
|
+
]);
|
|
1391
|
+
|
|
1392
|
+
const e = e$9.forwardRef((r, t) => /* @__PURE__ */ e$9.createElement(p, { ref: t, ...r, weights: a }));
|
|
1393
|
+
e.displayName = "InfoIcon";
|
|
1394
|
+
|
|
1395
|
+
const Tooltip = ({ infoIcon, content, dense, className, children, ...props }) => {
|
|
1396
|
+
const tooltipId = useId();
|
|
1397
|
+
return (jsxs("span", { className: classnames([
|
|
1398
|
+
'tooltip',
|
|
1399
|
+
{
|
|
1400
|
+
'tooltip-info': infoIcon,
|
|
1401
|
+
},
|
|
1402
|
+
className
|
|
1403
|
+
]), "aria-describedby": tooltipId, tabIndex: infoIcon ? 0 : undefined, ...props, children: [infoIcon ? (jsx(e, { className: classnames('tooltip_icon'), size: 12, "aria-hidden": "true" })) : (children), jsx("span", { id: tooltipId, role: "tooltip", className: classnames([
|
|
1404
|
+
'tooltip_content',
|
|
1405
|
+
{
|
|
1406
|
+
'tooltip_content-dense': dense
|
|
1407
|
+
}
|
|
1408
|
+
]), children: content })] }));
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
export { Accordion, AccordionContext, AccordionItem, Alert, Breadcrumbs, Button, Buttons, Card, CardActions, CardContent, CardHeader, CardMedia, Checkbox, Checkboxes, Chip, Color, Display, Divider, Grid, Input, InputLabel, Link, List, ListItem, Nav, NavBar, NavItem, Radio, RadioButtons, Section, SectionContent, SectionHeader, Select, Snippet, Status, Step, Stepper, StepperContext, Switch, Tab, Table, TableBody, TableCell, TableFooter, TableHead, TableRow, Tabs, TabsControl, TabsPanel, Tag, Text, Textarea, Tooltip };
|