pallote-react 0.15.5 → 0.15.7
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/index.js +396 -133
- package/dist/package.json +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { useState, useEffect, createContext, useRef, useContext } from 'react';
|
|
2
3
|
import classnames from 'classnames';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import { createPortal } from 'react-dom';
|
|
5
|
-
import { X, CalendarBlank, Clock, CaretUpDown, ArrowSquareOut, CaretDoubleLeft, CaretLeft, CaretRight, CaretDoubleRight } from '@phosphor-icons/react';
|
|
6
6
|
import SyntaxHighlighter from 'react-syntax-highlighter';
|
|
7
7
|
|
|
8
8
|
const Color = ({
|
|
@@ -26,7 +26,7 @@ const Color = ({
|
|
|
26
26
|
[`fill-${fill}`]: fill,
|
|
27
27
|
[`stroke-${stroke}`]: stroke
|
|
28
28
|
});
|
|
29
|
-
return /*#__PURE__*/
|
|
29
|
+
return /*#__PURE__*/React__default.cloneElement(children, {
|
|
30
30
|
className: childClassName,
|
|
31
31
|
style: {
|
|
32
32
|
...children.props.style,
|
|
@@ -76,7 +76,7 @@ const Display = ({
|
|
|
76
76
|
window.addEventListener('resize', updateMedia);
|
|
77
77
|
return () => window.removeEventListener('resize', updateMedia);
|
|
78
78
|
}, [show, hide]);
|
|
79
|
-
return /*#__PURE__*/
|
|
79
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isDisplayed ? children : null);
|
|
80
80
|
};
|
|
81
81
|
Display.propTypes = {
|
|
82
82
|
show: PropTypes.oneOf(['mobile-sm', 'mobile', 'tablet', 'laptop', 'desktop', 'touch']),
|
|
@@ -112,7 +112,7 @@ const Grid = ({
|
|
|
112
112
|
children,
|
|
113
113
|
...props
|
|
114
114
|
}) => {
|
|
115
|
-
return /*#__PURE__*/
|
|
115
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
116
116
|
className: classnames('flex', {
|
|
117
117
|
'flex-wrap': wrap,
|
|
118
118
|
[`direction-${direction}`]: direction,
|
|
@@ -163,7 +163,7 @@ const Text = ({
|
|
|
163
163
|
...props
|
|
164
164
|
}) => {
|
|
165
165
|
const Component = component || 'p';
|
|
166
|
-
return /*#__PURE__*/
|
|
166
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
167
167
|
className: classnames([{
|
|
168
168
|
[`${variant}`]: variant,
|
|
169
169
|
[`text-${align}`]: align,
|
|
@@ -192,6 +192,69 @@ Text.propTypes = {
|
|
|
192
192
|
children: PropTypes.node
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
const o$3 = /*#__PURE__*/createContext({
|
|
196
|
+
color: "currentColor",
|
|
197
|
+
size: "1em",
|
|
198
|
+
weight: "regular",
|
|
199
|
+
mirrored: false
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
const p = /*#__PURE__*/React.forwardRef((s, a) => {
|
|
203
|
+
const {
|
|
204
|
+
alt: n,
|
|
205
|
+
color: r,
|
|
206
|
+
size: t,
|
|
207
|
+
weight: o,
|
|
208
|
+
mirrored: c,
|
|
209
|
+
children: i,
|
|
210
|
+
weights: m,
|
|
211
|
+
...x
|
|
212
|
+
} = s,
|
|
213
|
+
{
|
|
214
|
+
color: d = "currentColor",
|
|
215
|
+
size: l,
|
|
216
|
+
weight: f = "regular",
|
|
217
|
+
mirrored: g = false,
|
|
218
|
+
...w
|
|
219
|
+
} = React.useContext(o$3);
|
|
220
|
+
return /* @__PURE__ */React.createElement("svg", {
|
|
221
|
+
ref: a,
|
|
222
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
223
|
+
width: t != null ? t : l,
|
|
224
|
+
height: t != null ? t : l,
|
|
225
|
+
fill: r != null ? r : d,
|
|
226
|
+
viewBox: "0 0 256 256",
|
|
227
|
+
transform: c || g ? "scale(-1, 1)" : void 0,
|
|
228
|
+
...w,
|
|
229
|
+
...x
|
|
230
|
+
}, !!n && /* @__PURE__ */React.createElement("title", null, n), i, m.get(o != null ? o : f));
|
|
231
|
+
});
|
|
232
|
+
p.displayName = "IconBase";
|
|
233
|
+
|
|
234
|
+
const a$4 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
235
|
+
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"
|
|
236
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
237
|
+
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",
|
|
238
|
+
opacity: "0.2"
|
|
239
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
240
|
+
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"
|
|
241
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
242
|
+
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"
|
|
243
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
244
|
+
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"
|
|
245
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
246
|
+
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"
|
|
247
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
248
|
+
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"
|
|
249
|
+
}))]]);
|
|
250
|
+
|
|
251
|
+
const e$6 = /*#__PURE__*/React.forwardRef((r, t) => /* @__PURE__ */React.createElement(p, {
|
|
252
|
+
ref: t,
|
|
253
|
+
...r,
|
|
254
|
+
weights: a$4
|
|
255
|
+
}));
|
|
256
|
+
e$6.displayName = "XIcon";
|
|
257
|
+
|
|
195
258
|
const Alert = ({
|
|
196
259
|
color = 'success',
|
|
197
260
|
variant = 'toast',
|
|
@@ -220,7 +283,7 @@ const Alert = ({
|
|
|
220
283
|
const onAnimationEnd = () => {
|
|
221
284
|
if (!show) setRender(false);
|
|
222
285
|
};
|
|
223
|
-
let alert = /*#__PURE__*/
|
|
286
|
+
let alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
224
287
|
className: classnames(['alert', {
|
|
225
288
|
[`alert-${color}`]: color,
|
|
226
289
|
[`alert-${variant}`]: variant,
|
|
@@ -230,22 +293,22 @@ const Alert = ({
|
|
|
230
293
|
'alert-noIcon': noIcon
|
|
231
294
|
}, className]),
|
|
232
295
|
onAnimationEnd: onAnimationEnd
|
|
233
|
-
}, props), /*#__PURE__*/
|
|
296
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
234
297
|
className: classnames('alert_content')
|
|
235
|
-
}, title ? /*#__PURE__*/
|
|
298
|
+
}, title ? /*#__PURE__*/React__default.createElement(Text, {
|
|
236
299
|
className: classnames('alert_title'),
|
|
237
300
|
variant: dense ? 'caption' : 'body',
|
|
238
301
|
weight: "bold"
|
|
239
|
-
}, title) : null, subtitle ? /*#__PURE__*/
|
|
302
|
+
}, title) : null, subtitle ? /*#__PURE__*/React__default.createElement(Text, {
|
|
240
303
|
variant: dense ? 'overline' : 'caption',
|
|
241
304
|
className: classnames('alert_subtitle')
|
|
242
|
-
}, subtitle) : null), onClose ? /*#__PURE__*/
|
|
305
|
+
}, subtitle) : null), onClose ? /*#__PURE__*/React__default.createElement(e$6, {
|
|
243
306
|
className: classnames('alert_close'),
|
|
244
307
|
onClick: onClose,
|
|
245
308
|
size: dense ? 14 : 16
|
|
246
309
|
}) : null);
|
|
247
310
|
if (variant === 'notice') {
|
|
248
|
-
return /*#__PURE__*/
|
|
311
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, alert);
|
|
249
312
|
} else {
|
|
250
313
|
return /*#__PURE__*/createPortal(shouldRender && alert, container);
|
|
251
314
|
}
|
|
@@ -266,17 +329,17 @@ const Breadcrumbs = ({
|
|
|
266
329
|
items,
|
|
267
330
|
separator = "slash",
|
|
268
331
|
className
|
|
269
|
-
}) => /*#__PURE__*/
|
|
332
|
+
}) => /*#__PURE__*/React__default.createElement("nav", {
|
|
270
333
|
"aria-label": "breadcrumbs",
|
|
271
334
|
className: classnames(['breadcrumbs', {
|
|
272
335
|
[`breadcrumbs-${separator}`]: separator
|
|
273
336
|
}, className])
|
|
274
|
-
}, /*#__PURE__*/
|
|
337
|
+
}, /*#__PURE__*/React__default.createElement("ol", null, items.map((item, index) => /*#__PURE__*/React__default.createElement("li", {
|
|
275
338
|
key: index,
|
|
276
339
|
className: "breadcrumbs_item"
|
|
277
|
-
}, index === items.length - 1 ? /*#__PURE__*/
|
|
340
|
+
}, index === items.length - 1 ? /*#__PURE__*/React__default.createElement("p", {
|
|
278
341
|
"aria-current": "page"
|
|
279
|
-
}, item.label) : /*#__PURE__*/
|
|
342
|
+
}, item.label) : /*#__PURE__*/React__default.createElement("a", {
|
|
280
343
|
href: item.href
|
|
281
344
|
}, item.label)))));
|
|
282
345
|
Breadcrumbs.propTypes = {
|
|
@@ -285,7 +348,7 @@ Breadcrumbs.propTypes = {
|
|
|
285
348
|
className: PropTypes.node
|
|
286
349
|
};
|
|
287
350
|
|
|
288
|
-
const Button = /*#__PURE__*/
|
|
351
|
+
const Button = /*#__PURE__*/React__default.forwardRef(({
|
|
289
352
|
component = 'button',
|
|
290
353
|
kind,
|
|
291
354
|
variant = 'fill',
|
|
@@ -304,9 +367,9 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
304
367
|
if (kind === 'icon') {
|
|
305
368
|
content = children;
|
|
306
369
|
} else {
|
|
307
|
-
content = /*#__PURE__*/
|
|
370
|
+
content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, iconLeft && iconLeft, children, iconRight && iconRight);
|
|
308
371
|
}
|
|
309
|
-
return /*#__PURE__*/
|
|
372
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
310
373
|
className: classnames(['button', {
|
|
311
374
|
[`button-${size}`]: size,
|
|
312
375
|
[`button-${color}`]: color,
|
|
@@ -342,7 +405,7 @@ const Buttons = ({
|
|
|
342
405
|
children,
|
|
343
406
|
...props
|
|
344
407
|
}) => {
|
|
345
|
-
return /*#__PURE__*/
|
|
408
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
346
409
|
className: classnames(['buttons', {
|
|
347
410
|
[`buttons-${direction}`]: direction,
|
|
348
411
|
'buttons-fullWidth': fullWidth,
|
|
@@ -369,9 +432,9 @@ const Card = ({
|
|
|
369
432
|
children,
|
|
370
433
|
...props
|
|
371
434
|
}) => {
|
|
372
|
-
return /*#__PURE__*/
|
|
435
|
+
return /*#__PURE__*/React__default.createElement(Color, {
|
|
373
436
|
fill: transparent ? null : fill
|
|
374
|
-
}, /*#__PURE__*/
|
|
437
|
+
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
375
438
|
className: classnames(['card', {
|
|
376
439
|
[`card-${size}`]: size,
|
|
377
440
|
[`card-${direction}`]: direction,
|
|
@@ -398,7 +461,7 @@ const CardActions = ({
|
|
|
398
461
|
children,
|
|
399
462
|
...props
|
|
400
463
|
}) => {
|
|
401
|
-
return /*#__PURE__*/
|
|
464
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
402
465
|
className: classnames(['card_actions', {
|
|
403
466
|
[`card_actions-${direction}`]: direction
|
|
404
467
|
}, className])
|
|
@@ -416,7 +479,7 @@ const CardContent = ({
|
|
|
416
479
|
children,
|
|
417
480
|
...props
|
|
418
481
|
}) => {
|
|
419
|
-
return /*#__PURE__*/
|
|
482
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
420
483
|
className: classnames(['card_content', {
|
|
421
484
|
'card_content-fullWidth': fullWidth
|
|
422
485
|
}, className])
|
|
@@ -429,6 +492,7 @@ CardContent.propTypes = {
|
|
|
429
492
|
};
|
|
430
493
|
|
|
431
494
|
const CardHeader = ({
|
|
495
|
+
icon,
|
|
432
496
|
label,
|
|
433
497
|
title,
|
|
434
498
|
subtitle,
|
|
@@ -436,19 +500,22 @@ const CardHeader = ({
|
|
|
436
500
|
className,
|
|
437
501
|
...props
|
|
438
502
|
}) => {
|
|
439
|
-
return /*#__PURE__*/
|
|
503
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
440
504
|
className: classnames(['card_header', className])
|
|
441
|
-
}, props), actions && /*#__PURE__*/
|
|
505
|
+
}, props), actions && /*#__PURE__*/React__default.createElement("div", {
|
|
442
506
|
className: "card_headerActions"
|
|
443
|
-
}, actions),
|
|
507
|
+
}, actions), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
|
|
508
|
+
className: `${icon.props.className ?? ''} card_icon`
|
|
509
|
+
}) : null, label ? /*#__PURE__*/React__default.createElement(Text, {
|
|
444
510
|
className: classnames('card_label')
|
|
445
|
-
}, label) : null, /*#__PURE__*/
|
|
511
|
+
}, label) : null, /*#__PURE__*/React__default.createElement(Text, {
|
|
446
512
|
className: classnames('card_title')
|
|
447
|
-
}, title), subtitle ? /*#__PURE__*/
|
|
513
|
+
}, title), subtitle ? /*#__PURE__*/React__default.createElement(Text, {
|
|
448
514
|
className: classnames('card_subtitle')
|
|
449
515
|
}, subtitle) : null);
|
|
450
516
|
};
|
|
451
517
|
CardHeader.propTypes = {
|
|
518
|
+
icon: PropTypes.node,
|
|
452
519
|
label: PropTypes.string,
|
|
453
520
|
title: PropTypes.string.isRequired,
|
|
454
521
|
subtitle: PropTypes.string,
|
|
@@ -465,11 +532,11 @@ const CardMedia = ({
|
|
|
465
532
|
className,
|
|
466
533
|
...props
|
|
467
534
|
}) => {
|
|
468
|
-
return /*#__PURE__*/
|
|
535
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
469
536
|
className: classnames(['card_media', {
|
|
470
537
|
'card_media-fullWidth': fullWidth
|
|
471
538
|
}, className])
|
|
472
|
-
}, props), /*#__PURE__*/
|
|
539
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
473
540
|
className: 'card_mediaInner',
|
|
474
541
|
style: {
|
|
475
542
|
width: width + 'px',
|
|
@@ -496,11 +563,11 @@ const Checkbox = ({
|
|
|
496
563
|
className,
|
|
497
564
|
...props
|
|
498
565
|
}) => {
|
|
499
|
-
return /*#__PURE__*/
|
|
566
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
500
567
|
className: classnames(['checkbox', {
|
|
501
568
|
'checkbox-disabled': disabled
|
|
502
569
|
}, className])
|
|
503
|
-
}, /*#__PURE__*/
|
|
570
|
+
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
504
571
|
className: classnames('checkbox_control'),
|
|
505
572
|
type: "checkbox",
|
|
506
573
|
name: id,
|
|
@@ -510,7 +577,7 @@ const Checkbox = ({
|
|
|
510
577
|
"aria-checked": checked,
|
|
511
578
|
disabled: disabled,
|
|
512
579
|
required: !(disabled || optional)
|
|
513
|
-
}, props)), /*#__PURE__*/
|
|
580
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
514
581
|
className: classnames('checkbox_label'),
|
|
515
582
|
htmlFor: id
|
|
516
583
|
}, label));
|
|
@@ -533,14 +600,14 @@ const InputLabel = ({
|
|
|
533
600
|
error
|
|
534
601
|
}) => {
|
|
535
602
|
const LabelTag = isLegend ? 'legend' : 'label';
|
|
536
|
-
return /*#__PURE__*/
|
|
603
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement(LabelTag, _extends({
|
|
537
604
|
className: 'input_label'
|
|
538
605
|
}, !isLegend && {
|
|
539
606
|
htmlFor
|
|
540
|
-
}), label), hint && /*#__PURE__*/
|
|
607
|
+
}), label), hint && /*#__PURE__*/React__default.createElement("p", {
|
|
541
608
|
id: htmlFor + '-hint',
|
|
542
609
|
className: 'input_hint'
|
|
543
|
-
}, hint), error && /*#__PURE__*/
|
|
610
|
+
}, hint), error && /*#__PURE__*/React__default.createElement("p", {
|
|
544
611
|
id: htmlFor + '-error',
|
|
545
612
|
className: 'input_error'
|
|
546
613
|
}, error));
|
|
@@ -569,7 +636,7 @@ const Checkboxes = ({
|
|
|
569
636
|
children,
|
|
570
637
|
className
|
|
571
638
|
}) => {
|
|
572
|
-
return /*#__PURE__*/
|
|
639
|
+
return /*#__PURE__*/React__default.createElement("fieldset", _extends({
|
|
573
640
|
className: classnames(['input', {
|
|
574
641
|
'js-error': error,
|
|
575
642
|
'input-disabled': disabled,
|
|
@@ -578,16 +645,16 @@ const Checkboxes = ({
|
|
|
578
645
|
onChange: onChange
|
|
579
646
|
}, hint || error ? {
|
|
580
647
|
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
581
|
-
} : null), /*#__PURE__*/
|
|
648
|
+
} : null), /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
582
649
|
isLegend: true,
|
|
583
650
|
label: label,
|
|
584
651
|
hint: hint,
|
|
585
652
|
error: error
|
|
586
|
-
}), /*#__PURE__*/
|
|
653
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
587
654
|
className: classnames(['input_control', 'radios', {
|
|
588
655
|
[`radios-${direction}`]: direction
|
|
589
656
|
}])
|
|
590
|
-
},
|
|
657
|
+
}, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
|
|
591
658
|
optional,
|
|
592
659
|
disabled
|
|
593
660
|
}) : child)));
|
|
@@ -611,7 +678,7 @@ const Divider = ({
|
|
|
611
678
|
className,
|
|
612
679
|
...props
|
|
613
680
|
}) => {
|
|
614
|
-
return /*#__PURE__*/
|
|
681
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
615
682
|
className: classnames(['divider', {
|
|
616
683
|
[`divider-${direction}`]: direction,
|
|
617
684
|
[`divider-${padding}`]: padding
|
|
@@ -624,6 +691,78 @@ Divider.propTypes = {
|
|
|
624
691
|
className: PropTypes.node
|
|
625
692
|
};
|
|
626
693
|
|
|
694
|
+
const e$5 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
695
|
+
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"
|
|
696
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
697
|
+
d: "M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
|
|
698
|
+
opacity: "0.2"
|
|
699
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
700
|
+
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"
|
|
701
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
702
|
+
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"
|
|
703
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
704
|
+
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"
|
|
705
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
706
|
+
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"
|
|
707
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
708
|
+
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"
|
|
709
|
+
}))]]);
|
|
710
|
+
|
|
711
|
+
const e$4 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
|
|
712
|
+
ref: r,
|
|
713
|
+
...o,
|
|
714
|
+
weights: e$5
|
|
715
|
+
}));
|
|
716
|
+
e$4.displayName = "CalendarBlankIcon";
|
|
717
|
+
|
|
718
|
+
const a$3 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
719
|
+
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"
|
|
720
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
721
|
+
d: "M80,176h96l-48,48ZM128,32,80,80h96Z",
|
|
722
|
+
opacity: "0.2"
|
|
723
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
724
|
+
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"
|
|
725
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
726
|
+
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"
|
|
727
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
728
|
+
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"
|
|
729
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
730
|
+
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"
|
|
731
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
732
|
+
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"
|
|
733
|
+
}))]]);
|
|
734
|
+
|
|
735
|
+
const e$3 = /*#__PURE__*/React.forwardRef((r, t) => /* @__PURE__ */React.createElement(p, {
|
|
736
|
+
ref: t,
|
|
737
|
+
...r,
|
|
738
|
+
weights: a$3
|
|
739
|
+
}));
|
|
740
|
+
e$3.displayName = "CaretUpDownIcon";
|
|
741
|
+
|
|
742
|
+
const a$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
743
|
+
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"
|
|
744
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
745
|
+
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
746
|
+
opacity: "0.2"
|
|
747
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
748
|
+
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"
|
|
749
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
750
|
+
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"
|
|
751
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
752
|
+
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"
|
|
753
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
754
|
+
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"
|
|
755
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
756
|
+
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"
|
|
757
|
+
}))]]);
|
|
758
|
+
|
|
759
|
+
const c = /*#__PURE__*/React.forwardRef((e, r) => /* @__PURE__ */React.createElement(p, {
|
|
760
|
+
ref: r,
|
|
761
|
+
...e,
|
|
762
|
+
weights: a$2
|
|
763
|
+
}));
|
|
764
|
+
c.displayName = "ClockIcon";
|
|
765
|
+
|
|
627
766
|
const Input = ({
|
|
628
767
|
onChange,
|
|
629
768
|
type = 'text',
|
|
@@ -645,8 +784,8 @@ const Input = ({
|
|
|
645
784
|
inputRef.current.focus();
|
|
646
785
|
}
|
|
647
786
|
}, [isFocused]);
|
|
648
|
-
const customIcon = icon || type === 'date' && /*#__PURE__*/
|
|
649
|
-
return /*#__PURE__*/
|
|
787
|
+
const customIcon = icon || type === 'date' && /*#__PURE__*/React__default.createElement(e$4, null) || type === 'time' && /*#__PURE__*/React__default.createElement(c, null) || type === 'number' && /*#__PURE__*/React__default.createElement(e$3, null);
|
|
788
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
650
789
|
className: classnames(['input', {
|
|
651
790
|
'js-error': error,
|
|
652
791
|
'input-disabled': disabled,
|
|
@@ -654,14 +793,14 @@ const Input = ({
|
|
|
654
793
|
'input-withIcon': icon
|
|
655
794
|
}, className]),
|
|
656
795
|
onChange: onChange
|
|
657
|
-
}, /*#__PURE__*/
|
|
796
|
+
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
658
797
|
htmlFor: id,
|
|
659
798
|
label: label,
|
|
660
799
|
hint: hint,
|
|
661
800
|
error: error
|
|
662
|
-
}), customIcon && /*#__PURE__*/
|
|
801
|
+
}), customIcon && /*#__PURE__*/React__default.createElement("div", {
|
|
663
802
|
className: 'input_icon'
|
|
664
|
-
}, customIcon), /*#__PURE__*/
|
|
803
|
+
}, customIcon), /*#__PURE__*/React__default.createElement("input", _extends({
|
|
665
804
|
ref: inputRef,
|
|
666
805
|
type: type,
|
|
667
806
|
className: 'input_control',
|
|
@@ -689,6 +828,30 @@ Input.propTypes = {
|
|
|
689
828
|
className: PropTypes.node
|
|
690
829
|
};
|
|
691
830
|
|
|
831
|
+
const e$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
832
|
+
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"
|
|
833
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
834
|
+
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",
|
|
835
|
+
opacity: "0.2"
|
|
836
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
837
|
+
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"
|
|
838
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
839
|
+
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"
|
|
840
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
841
|
+
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"
|
|
842
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
843
|
+
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"
|
|
844
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
845
|
+
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"
|
|
846
|
+
}))]]);
|
|
847
|
+
|
|
848
|
+
const o$2 = /*#__PURE__*/React.forwardRef((e, t) => /* @__PURE__ */React.createElement(p, {
|
|
849
|
+
ref: t,
|
|
850
|
+
...e,
|
|
851
|
+
weights: e$2
|
|
852
|
+
}));
|
|
853
|
+
o$2.displayName = "ArrowSquareOutIcon";
|
|
854
|
+
|
|
692
855
|
const Link = ({
|
|
693
856
|
component = 'a',
|
|
694
857
|
icon,
|
|
@@ -700,18 +863,18 @@ const Link = ({
|
|
|
700
863
|
...props
|
|
701
864
|
}) => {
|
|
702
865
|
const Component = component || 'a';
|
|
703
|
-
return /*#__PURE__*/
|
|
866
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
704
867
|
className: classnames(['link', {
|
|
705
868
|
[`text-${color}`]: color
|
|
706
869
|
}, className]),
|
|
707
870
|
href: isExternal ? href : undefined,
|
|
708
871
|
target: isExternal ? '_blank' : undefined,
|
|
709
872
|
rel: isExternal ? 'noopener noreferrer' : undefined
|
|
710
|
-
}, props), children, icon && !isExternal && /*#__PURE__*/
|
|
873
|
+
}, props), children, icon && !isExternal && /*#__PURE__*/React__default.createElement("span", {
|
|
711
874
|
className: 'link_icon'
|
|
712
|
-
}, icon), isExternal && /*#__PURE__*/
|
|
875
|
+
}, icon), isExternal && /*#__PURE__*/React__default.createElement("span", {
|
|
713
876
|
className: 'link_icon'
|
|
714
|
-
}, /*#__PURE__*/
|
|
877
|
+
}, /*#__PURE__*/React__default.createElement(o$2, null)));
|
|
715
878
|
};
|
|
716
879
|
Link.propTypes = {
|
|
717
880
|
component: PropTypes.oneOfType(['a', PropTypes.elementType]),
|
|
@@ -728,7 +891,7 @@ const List = ({
|
|
|
728
891
|
children,
|
|
729
892
|
...props
|
|
730
893
|
}) => {
|
|
731
|
-
return /*#__PURE__*/
|
|
894
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
732
895
|
className: classnames(['list', {
|
|
733
896
|
'list-dense': dense
|
|
734
897
|
}, className])
|
|
@@ -747,11 +910,11 @@ const ListItem = ({
|
|
|
747
910
|
children = 'List item',
|
|
748
911
|
...props
|
|
749
912
|
}) => {
|
|
750
|
-
return /*#__PURE__*/
|
|
913
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
751
914
|
className: classnames(['list_item', {
|
|
752
915
|
'list_item-bold': bold
|
|
753
916
|
}, className])
|
|
754
|
-
}, props), icon ? /*#__PURE__*/
|
|
917
|
+
}, props), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
|
|
755
918
|
className: `${icon.props.className ?? ''} list_itemIcon`
|
|
756
919
|
}) : null, children);
|
|
757
920
|
};
|
|
@@ -769,12 +932,12 @@ const Nav = ({
|
|
|
769
932
|
children,
|
|
770
933
|
...props
|
|
771
934
|
}) => {
|
|
772
|
-
return /*#__PURE__*/
|
|
935
|
+
return /*#__PURE__*/React__default.createElement("nav", _extends({
|
|
773
936
|
className: classnames(['nav', {
|
|
774
937
|
[`nav-${direction}`]: direction,
|
|
775
938
|
'nav-dense': dense
|
|
776
939
|
}, className])
|
|
777
|
-
}, props), /*#__PURE__*/
|
|
940
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
778
941
|
className: "nav_container"
|
|
779
942
|
}, children));
|
|
780
943
|
};
|
|
@@ -795,16 +958,16 @@ const SectionHeader = ({
|
|
|
795
958
|
className,
|
|
796
959
|
...props
|
|
797
960
|
}) => {
|
|
798
|
-
return /*#__PURE__*/
|
|
961
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
799
962
|
className: classnames(['section_header', className])
|
|
800
|
-
}, props), label ? /*#__PURE__*/
|
|
963
|
+
}, props), label ? /*#__PURE__*/React__default.createElement(Text, {
|
|
801
964
|
className: classnames('section_label')
|
|
802
|
-
}, label) : null, /*#__PURE__*/
|
|
965
|
+
}, label) : null, /*#__PURE__*/React__default.createElement(Text, {
|
|
803
966
|
className: "section_title",
|
|
804
967
|
component: titleComponent || (promoteTitle ? 'h1' : 'h2')
|
|
805
|
-
}, title), subtitle ? /*#__PURE__*/
|
|
968
|
+
}, title), subtitle ? /*#__PURE__*/React__default.createElement("div", {
|
|
806
969
|
className: classnames('section_subtitle')
|
|
807
|
-
}, subtitle) : null, actions ? /*#__PURE__*/
|
|
970
|
+
}, subtitle) : null, actions ? /*#__PURE__*/React__default.createElement("div", {
|
|
808
971
|
className: "section_actions"
|
|
809
972
|
}, actions) : null);
|
|
810
973
|
};
|
|
@@ -819,6 +982,7 @@ SectionHeader.propTypes = {
|
|
|
819
982
|
};
|
|
820
983
|
|
|
821
984
|
const Section = ({
|
|
985
|
+
component = 'div',
|
|
822
986
|
align = 'left',
|
|
823
987
|
color = 'default',
|
|
824
988
|
landing,
|
|
@@ -827,18 +991,19 @@ const Section = ({
|
|
|
827
991
|
children,
|
|
828
992
|
...props
|
|
829
993
|
}) => {
|
|
830
|
-
|
|
994
|
+
const Component = component || 'div';
|
|
995
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
831
996
|
className: classnames(['section', {
|
|
832
997
|
[`section-${align}`]: align,
|
|
833
998
|
[`section-${color}`]: color,
|
|
834
999
|
'section-landing': landing,
|
|
835
1000
|
'section-header': header
|
|
836
1001
|
}, className])
|
|
837
|
-
}, props), /*#__PURE__*/
|
|
1002
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
838
1003
|
className: 'section_container'
|
|
839
|
-
},
|
|
840
|
-
if (/*#__PURE__*/
|
|
841
|
-
return /*#__PURE__*/
|
|
1004
|
+
}, React__default.Children.map(children, child => {
|
|
1005
|
+
if (/*#__PURE__*/React__default.isValidElement(child) && child.type === SectionHeader) {
|
|
1006
|
+
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
842
1007
|
promoteTitle: landing || header
|
|
843
1008
|
});
|
|
844
1009
|
}
|
|
@@ -846,6 +1011,7 @@ const Section = ({
|
|
|
846
1011
|
})));
|
|
847
1012
|
};
|
|
848
1013
|
Section.propTypes = {
|
|
1014
|
+
component: PropTypes.oneOf(['div', 'footer', 'header', 'section']),
|
|
849
1015
|
align: PropTypes.oneOf(['left', 'center', 'right']),
|
|
850
1016
|
color: PropTypes.oneOf(['default', 'paper', 'primary', 'primaryLight']),
|
|
851
1017
|
landing: PropTypes.bool,
|
|
@@ -866,29 +1032,30 @@ const NavBar = ({
|
|
|
866
1032
|
setIsOpen(!isOpen);
|
|
867
1033
|
document.body.classList.toggle('js-navbar', !isOpen);
|
|
868
1034
|
};
|
|
869
|
-
return /*#__PURE__*/
|
|
1035
|
+
return /*#__PURE__*/React__default.createElement(Section, _extends({
|
|
1036
|
+
component: "header",
|
|
870
1037
|
className: classnames(['navbar', {
|
|
871
1038
|
[`navbar-${align}`]: align,
|
|
872
1039
|
'js-opened': isOpen
|
|
873
1040
|
}, className])
|
|
874
|
-
}, props), /*#__PURE__*/
|
|
1041
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
875
1042
|
className: "navbar_main"
|
|
876
|
-
}, /*#__PURE__*/
|
|
1043
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
877
1044
|
className: "navbar_logo"
|
|
878
|
-
}, logo), /*#__PURE__*/
|
|
1045
|
+
}, logo), /*#__PURE__*/React__default.createElement("button", {
|
|
879
1046
|
"aria-label": "Open mobile menu",
|
|
880
1047
|
className: classnames('navbar_button', {
|
|
881
1048
|
'js-opened': isOpen
|
|
882
1049
|
}),
|
|
883
1050
|
onClick: toggleNav
|
|
884
|
-
}, /*#__PURE__*/
|
|
1051
|
+
}, /*#__PURE__*/React__default.createElement("span", null))), /*#__PURE__*/React__default.createElement("nav", {
|
|
885
1052
|
"aria-label": "main-nav",
|
|
886
1053
|
className: classnames('navbar_nav nav', {
|
|
887
1054
|
'js-opened': isOpen
|
|
888
1055
|
})
|
|
889
|
-
}, /*#__PURE__*/
|
|
1056
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
890
1057
|
className: "nav_container"
|
|
891
|
-
}, children)))
|
|
1058
|
+
}, children)));
|
|
892
1059
|
};
|
|
893
1060
|
NavBar.propTypes = {
|
|
894
1061
|
logo: PropTypes.node,
|
|
@@ -917,21 +1084,21 @@ const NavItem = ({
|
|
|
917
1084
|
} else {
|
|
918
1085
|
Component = component || "a";
|
|
919
1086
|
}
|
|
920
|
-
return /*#__PURE__*/
|
|
1087
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
921
1088
|
className: classnames(['nav_item', {
|
|
922
1089
|
'nav_item-dropdown': dropdown,
|
|
923
1090
|
'js-show': isExpanded
|
|
924
1091
|
}, className])
|
|
925
|
-
}, /*#__PURE__*/
|
|
1092
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
926
1093
|
end: end,
|
|
927
1094
|
to: to,
|
|
928
1095
|
className: classnames(['nav_trigger', {
|
|
929
1096
|
'nav_trigger-active': active
|
|
930
1097
|
}]),
|
|
931
1098
|
onClick: onClick
|
|
932
|
-
}, props), icon ? /*#__PURE__*/
|
|
1099
|
+
}, props), icon ? /*#__PURE__*/React__default.createElement("span", {
|
|
933
1100
|
className: classnames('nav_icon')
|
|
934
|
-
}, icon) : null, label), dropdown ? /*#__PURE__*/
|
|
1101
|
+
}, icon) : null, label), dropdown ? /*#__PURE__*/React__default.createElement("div", {
|
|
935
1102
|
ref: dropdownRef,
|
|
936
1103
|
className: "nav_target"
|
|
937
1104
|
}, dropdown) : null);
|
|
@@ -957,11 +1124,11 @@ const Radio = ({
|
|
|
957
1124
|
className,
|
|
958
1125
|
...props
|
|
959
1126
|
}) => {
|
|
960
|
-
return /*#__PURE__*/
|
|
1127
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
961
1128
|
className: classnames(['radio', {
|
|
962
1129
|
'radio-disabled': disabled
|
|
963
1130
|
}, className])
|
|
964
|
-
}, /*#__PURE__*/
|
|
1131
|
+
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
965
1132
|
className: classnames('radio_control'),
|
|
966
1133
|
type: "radio",
|
|
967
1134
|
id: id,
|
|
@@ -971,7 +1138,7 @@ const Radio = ({
|
|
|
971
1138
|
"aria-checked": checked,
|
|
972
1139
|
disabled: disabled,
|
|
973
1140
|
required: !(disabled || optional)
|
|
974
|
-
}, props)), /*#__PURE__*/
|
|
1141
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
975
1142
|
className: classnames('radio_label'),
|
|
976
1143
|
htmlFor: id
|
|
977
1144
|
}, label));
|
|
@@ -999,7 +1166,7 @@ const RadioButtons = ({
|
|
|
999
1166
|
children,
|
|
1000
1167
|
className
|
|
1001
1168
|
}) => {
|
|
1002
|
-
return /*#__PURE__*/
|
|
1169
|
+
return /*#__PURE__*/React__default.createElement("fieldset", _extends({
|
|
1003
1170
|
className: classnames(['input', {
|
|
1004
1171
|
'js-error': error,
|
|
1005
1172
|
'input-disabled': disabled,
|
|
@@ -1008,16 +1175,16 @@ const RadioButtons = ({
|
|
|
1008
1175
|
onChange: onChange
|
|
1009
1176
|
}, hint || error ? {
|
|
1010
1177
|
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
1011
|
-
} : null), /*#__PURE__*/
|
|
1178
|
+
} : null), /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
1012
1179
|
isLegend: true,
|
|
1013
1180
|
label: label,
|
|
1014
1181
|
hint: hint,
|
|
1015
1182
|
error: error
|
|
1016
|
-
}), /*#__PURE__*/
|
|
1183
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1017
1184
|
className: classnames(['input_control', 'radios', {
|
|
1018
1185
|
[`radios-${direction}`]: direction
|
|
1019
1186
|
}])
|
|
1020
|
-
},
|
|
1187
|
+
}, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
|
|
1021
1188
|
optional,
|
|
1022
1189
|
disabled
|
|
1023
1190
|
}) : child)));
|
|
@@ -1041,7 +1208,7 @@ const SectionContent = ({
|
|
|
1041
1208
|
children,
|
|
1042
1209
|
...props
|
|
1043
1210
|
}) => {
|
|
1044
|
-
return /*#__PURE__*/
|
|
1211
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1045
1212
|
className: classnames(['section_content', {
|
|
1046
1213
|
[`section_content-${align}`]: align
|
|
1047
1214
|
}, className])
|
|
@@ -1073,7 +1240,7 @@ const Select = ({
|
|
|
1073
1240
|
inputRef.current.focus();
|
|
1074
1241
|
}
|
|
1075
1242
|
}, [isFocused]);
|
|
1076
|
-
return /*#__PURE__*/
|
|
1243
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1077
1244
|
className: classnames(['input', 'select', {
|
|
1078
1245
|
'input-focused': isFocused,
|
|
1079
1246
|
'js-error': error,
|
|
@@ -1082,12 +1249,12 @@ const Select = ({
|
|
|
1082
1249
|
'input-dense': dense
|
|
1083
1250
|
}, className]),
|
|
1084
1251
|
onChange: onChange
|
|
1085
|
-
}, /*#__PURE__*/
|
|
1252
|
+
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
1086
1253
|
htmlFor: id,
|
|
1087
1254
|
label: label,
|
|
1088
1255
|
hint: hint,
|
|
1089
1256
|
error: error
|
|
1090
|
-
}), /*#__PURE__*/
|
|
1257
|
+
}), /*#__PURE__*/React__default.createElement("select", _extends({
|
|
1091
1258
|
ref: inputRef,
|
|
1092
1259
|
className: 'input_control',
|
|
1093
1260
|
name: id,
|
|
@@ -1236,9 +1403,9 @@ const Snippet = ({
|
|
|
1236
1403
|
className,
|
|
1237
1404
|
...props
|
|
1238
1405
|
}) => {
|
|
1239
|
-
return /*#__PURE__*/
|
|
1406
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1240
1407
|
className: classnames('snippet_wrapper')
|
|
1241
|
-
}, /*#__PURE__*/
|
|
1408
|
+
}, /*#__PURE__*/React__default.createElement(SyntaxHighlighter, _extends({
|
|
1242
1409
|
language: "javascript",
|
|
1243
1410
|
style: nnfxDark,
|
|
1244
1411
|
className: classnames(['snippet', {
|
|
@@ -1262,7 +1429,7 @@ const Status = ({
|
|
|
1262
1429
|
children = 'Status',
|
|
1263
1430
|
...props
|
|
1264
1431
|
}) => {
|
|
1265
|
-
return /*#__PURE__*/
|
|
1432
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
1266
1433
|
className: classnames(['status', {
|
|
1267
1434
|
[`status-${color}`]: color,
|
|
1268
1435
|
'status-dense': dense
|
|
@@ -1284,25 +1451,25 @@ const Switch = ({
|
|
|
1284
1451
|
className,
|
|
1285
1452
|
...props
|
|
1286
1453
|
}) => {
|
|
1287
|
-
return /*#__PURE__*/
|
|
1454
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1288
1455
|
className: classnames(['switch', {
|
|
1289
1456
|
'switch-disabled': disabled
|
|
1290
1457
|
}, className])
|
|
1291
|
-
}, startLabel ? /*#__PURE__*/
|
|
1458
|
+
}, startLabel ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1292
1459
|
className: classnames('switch_label'),
|
|
1293
1460
|
variant: "body"
|
|
1294
|
-
}, startLabel) : null, /*#__PURE__*/
|
|
1461
|
+
}, startLabel) : null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
1295
1462
|
className: classnames('switch_input'),
|
|
1296
1463
|
type: "checkbox",
|
|
1297
1464
|
name: id,
|
|
1298
1465
|
id: id,
|
|
1299
1466
|
disabled: disabled
|
|
1300
|
-
}, props)), /*#__PURE__*/
|
|
1467
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
1301
1468
|
className: classnames('switch_switch'),
|
|
1302
1469
|
htmlFor: id
|
|
1303
|
-
}, /*#__PURE__*/
|
|
1470
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1304
1471
|
className: classnames('switch_toggle')
|
|
1305
|
-
})), endLabel ? /*#__PURE__*/
|
|
1472
|
+
})), endLabel ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1306
1473
|
className: classnames('switch_label'),
|
|
1307
1474
|
variant: "body"
|
|
1308
1475
|
}, endLabel) : null);
|
|
@@ -1324,12 +1491,12 @@ const Tabs = ({
|
|
|
1324
1491
|
children
|
|
1325
1492
|
}) => {
|
|
1326
1493
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
1327
|
-
return /*#__PURE__*/
|
|
1494
|
+
return /*#__PURE__*/React__default.createElement(TabsContext.Provider, {
|
|
1328
1495
|
value: {
|
|
1329
1496
|
activeIndex,
|
|
1330
1497
|
setActiveIndex
|
|
1331
1498
|
}
|
|
1332
|
-
}, /*#__PURE__*/
|
|
1499
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1333
1500
|
className: classnames(['tabs', {
|
|
1334
1501
|
[`tabs-${direction}`]: direction,
|
|
1335
1502
|
'tabs-dense': dense,
|
|
@@ -1355,7 +1522,7 @@ const Tab = ({
|
|
|
1355
1522
|
setActiveIndex
|
|
1356
1523
|
} = useContext(TabsContext);
|
|
1357
1524
|
const isSelected = activeIndex === index;
|
|
1358
|
-
return /*#__PURE__*/
|
|
1525
|
+
return /*#__PURE__*/React__default.createElement("button", {
|
|
1359
1526
|
className: classnames(['tab', {
|
|
1360
1527
|
'tab-active': isSelected
|
|
1361
1528
|
}, className]),
|
|
@@ -1372,64 +1539,160 @@ Tab.propTypes = {
|
|
|
1372
1539
|
className: PropTypes.node.isRequired
|
|
1373
1540
|
};
|
|
1374
1541
|
|
|
1542
|
+
const a$1 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1543
|
+
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"
|
|
1544
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1545
|
+
d: "M160,48V208L80,128Z",
|
|
1546
|
+
opacity: "0.2"
|
|
1547
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1548
|
+
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"
|
|
1549
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1550
|
+
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"
|
|
1551
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1552
|
+
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"
|
|
1553
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1554
|
+
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"
|
|
1555
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1556
|
+
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"
|
|
1557
|
+
}))]]);
|
|
1558
|
+
|
|
1559
|
+
const t$1 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
|
|
1560
|
+
ref: r,
|
|
1561
|
+
...o,
|
|
1562
|
+
weights: a$1
|
|
1563
|
+
}));
|
|
1564
|
+
t$1.displayName = "CaretLeftIcon";
|
|
1565
|
+
|
|
1566
|
+
const t = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1567
|
+
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"
|
|
1568
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1569
|
+
d: "M176,128,96,208V48Z",
|
|
1570
|
+
opacity: "0.2"
|
|
1571
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1572
|
+
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"
|
|
1573
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1574
|
+
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"
|
|
1575
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1576
|
+
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"
|
|
1577
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1578
|
+
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"
|
|
1579
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1580
|
+
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"
|
|
1581
|
+
}))]]);
|
|
1582
|
+
|
|
1583
|
+
const e$1 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
|
|
1584
|
+
ref: r,
|
|
1585
|
+
...o,
|
|
1586
|
+
weights: t
|
|
1587
|
+
}));
|
|
1588
|
+
e$1.displayName = "CaretRightIcon";
|
|
1589
|
+
|
|
1590
|
+
const e = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1591
|
+
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"
|
|
1592
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1593
|
+
d: "M200,48V208l-80-80Z",
|
|
1594
|
+
opacity: "0.2"
|
|
1595
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1596
|
+
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"
|
|
1597
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1598
|
+
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"
|
|
1599
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1600
|
+
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"
|
|
1601
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1602
|
+
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"
|
|
1603
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1604
|
+
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"
|
|
1605
|
+
}))]]);
|
|
1606
|
+
|
|
1607
|
+
const o$1 = /*#__PURE__*/React.forwardRef((t, r) => /* @__PURE__ */React.createElement(p, {
|
|
1608
|
+
ref: r,
|
|
1609
|
+
...t,
|
|
1610
|
+
weights: e
|
|
1611
|
+
}));
|
|
1612
|
+
o$1.displayName = "CaretDoubleLeftIcon";
|
|
1613
|
+
|
|
1614
|
+
const a = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1615
|
+
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"
|
|
1616
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1617
|
+
d: "M136,128,56,208V48Z",
|
|
1618
|
+
opacity: "0.2"
|
|
1619
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1620
|
+
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"
|
|
1621
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1622
|
+
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"
|
|
1623
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1624
|
+
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"
|
|
1625
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1626
|
+
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"
|
|
1627
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1628
|
+
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"
|
|
1629
|
+
}))]]);
|
|
1630
|
+
|
|
1631
|
+
const o = /*#__PURE__*/React.forwardRef((t, r) => /* @__PURE__ */React.createElement(p, {
|
|
1632
|
+
ref: r,
|
|
1633
|
+
...t,
|
|
1634
|
+
weights: a
|
|
1635
|
+
}));
|
|
1636
|
+
o.displayName = "CaretDoubleRightIcon";
|
|
1637
|
+
|
|
1375
1638
|
const TableFooter = ({
|
|
1376
1639
|
className,
|
|
1377
1640
|
...props
|
|
1378
1641
|
}) => {
|
|
1379
|
-
return /*#__PURE__*/
|
|
1642
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1380
1643
|
className: classnames(['table_footer', className])
|
|
1381
|
-
}, props), /*#__PURE__*/
|
|
1644
|
+
}, props), /*#__PURE__*/React__default.createElement(Select, {
|
|
1382
1645
|
dense: true,
|
|
1383
1646
|
id: "rows",
|
|
1384
1647
|
className: "table_rowSelect"
|
|
1385
|
-
}, /*#__PURE__*/
|
|
1648
|
+
}, /*#__PURE__*/React__default.createElement("option", {
|
|
1386
1649
|
value: "1"
|
|
1387
|
-
}, "10"), /*#__PURE__*/
|
|
1650
|
+
}, "10"), /*#__PURE__*/React__default.createElement("option", {
|
|
1388
1651
|
value: "2"
|
|
1389
|
-
}, "25"), /*#__PURE__*/
|
|
1652
|
+
}, "25"), /*#__PURE__*/React__default.createElement("option", {
|
|
1390
1653
|
value: "2"
|
|
1391
|
-
}, "50"), /*#__PURE__*/
|
|
1654
|
+
}, "50"), /*#__PURE__*/React__default.createElement("option", {
|
|
1392
1655
|
value: "2"
|
|
1393
|
-
}, "100"), /*#__PURE__*/
|
|
1656
|
+
}, "100"), /*#__PURE__*/React__default.createElement("option", {
|
|
1394
1657
|
value: "2"
|
|
1395
|
-
}, "All")), /*#__PURE__*/
|
|
1658
|
+
}, "All")), /*#__PURE__*/React__default.createElement(Buttons, {
|
|
1396
1659
|
className: "table_pagination"
|
|
1397
|
-
}, /*#__PURE__*/
|
|
1660
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
1398
1661
|
kind: "icon",
|
|
1399
1662
|
variant: "transparent",
|
|
1400
1663
|
size: "sm"
|
|
1401
|
-
}, /*#__PURE__*/
|
|
1664
|
+
}, /*#__PURE__*/React__default.createElement(o$1, null)), /*#__PURE__*/React__default.createElement(Button, {
|
|
1402
1665
|
kind: "icon",
|
|
1403
1666
|
variant: "transparent",
|
|
1404
1667
|
size: "sm"
|
|
1405
|
-
}, /*#__PURE__*/
|
|
1668
|
+
}, /*#__PURE__*/React__default.createElement(t$1, null)), /*#__PURE__*/React__default.createElement(Button, {
|
|
1406
1669
|
kind: "icon",
|
|
1407
1670
|
size: "sm"
|
|
1408
|
-
}, "1"), /*#__PURE__*/
|
|
1671
|
+
}, "1"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1409
1672
|
kind: "icon",
|
|
1410
1673
|
variant: "transparent",
|
|
1411
1674
|
size: "sm"
|
|
1412
|
-
}, "2"), /*#__PURE__*/
|
|
1675
|
+
}, "2"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1413
1676
|
kind: "icon",
|
|
1414
1677
|
variant: "transparent",
|
|
1415
1678
|
size: "sm"
|
|
1416
|
-
}, "3"), /*#__PURE__*/
|
|
1679
|
+
}, "3"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1417
1680
|
kind: "icon",
|
|
1418
1681
|
variant: "transparent",
|
|
1419
1682
|
size: "sm"
|
|
1420
|
-
}, "\u2026"), /*#__PURE__*/
|
|
1683
|
+
}, "\u2026"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1421
1684
|
kind: "icon",
|
|
1422
1685
|
variant: "transparent",
|
|
1423
1686
|
size: "sm"
|
|
1424
|
-
}, "8"), /*#__PURE__*/
|
|
1687
|
+
}, "8"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1425
1688
|
kind: "icon",
|
|
1426
1689
|
variant: "transparent",
|
|
1427
1690
|
size: "sm"
|
|
1428
|
-
}, /*#__PURE__*/
|
|
1691
|
+
}, /*#__PURE__*/React__default.createElement(e$1, null)), /*#__PURE__*/React__default.createElement(Button, {
|
|
1429
1692
|
kind: "icon",
|
|
1430
1693
|
variant: "transparent",
|
|
1431
1694
|
size: "sm"
|
|
1432
|
-
}, /*#__PURE__*/
|
|
1695
|
+
}, /*#__PURE__*/React__default.createElement(o, null))));
|
|
1433
1696
|
};
|
|
1434
1697
|
TableFooter.propTypes = {
|
|
1435
1698
|
className: PropTypes.node
|
|
@@ -1446,20 +1709,20 @@ const Table = ({
|
|
|
1446
1709
|
children,
|
|
1447
1710
|
...props
|
|
1448
1711
|
}) => {
|
|
1449
|
-
return /*#__PURE__*/
|
|
1712
|
+
return /*#__PURE__*/React__default.createElement(DenseContext.Provider, {
|
|
1450
1713
|
value: dense
|
|
1451
|
-
}, /*#__PURE__*/
|
|
1714
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1452
1715
|
className: classnames(['table', {
|
|
1453
1716
|
'table-striped': striped,
|
|
1454
1717
|
'table-hasHover': hasHover,
|
|
1455
1718
|
'table-dense': dense,
|
|
1456
1719
|
'table-border': border
|
|
1457
1720
|
}, className])
|
|
1458
|
-
}, /*#__PURE__*/
|
|
1721
|
+
}, /*#__PURE__*/React__default.createElement("table", _extends({
|
|
1459
1722
|
cellPadding: 0,
|
|
1460
1723
|
cellSpacing: 0,
|
|
1461
1724
|
className: classnames('table_content')
|
|
1462
|
-
}, props), children), withFooter ? /*#__PURE__*/
|
|
1725
|
+
}, props), children), withFooter ? /*#__PURE__*/React__default.createElement(TableFooter, {
|
|
1463
1726
|
dense: dense ? dense : null
|
|
1464
1727
|
}) : null));
|
|
1465
1728
|
};
|
|
@@ -1478,7 +1741,7 @@ const TableBody = ({
|
|
|
1478
1741
|
children,
|
|
1479
1742
|
...props
|
|
1480
1743
|
}) => {
|
|
1481
|
-
return /*#__PURE__*/
|
|
1744
|
+
return /*#__PURE__*/React__default.createElement("tbody", _extends({
|
|
1482
1745
|
className: classnames(['table_body', className])
|
|
1483
1746
|
}, props), children);
|
|
1484
1747
|
};
|
|
@@ -1493,9 +1756,9 @@ const TableHead = ({
|
|
|
1493
1756
|
children,
|
|
1494
1757
|
...props
|
|
1495
1758
|
}) => {
|
|
1496
|
-
return /*#__PURE__*/
|
|
1759
|
+
return /*#__PURE__*/React__default.createElement(TableCellComponentContext.Provider, {
|
|
1497
1760
|
value: "th"
|
|
1498
|
-
}, /*#__PURE__*/
|
|
1761
|
+
}, /*#__PURE__*/React__default.createElement("thead", _extends({
|
|
1499
1762
|
className: classnames(['table_head', className])
|
|
1500
1763
|
}, props), children));
|
|
1501
1764
|
};
|
|
@@ -1512,7 +1775,7 @@ const TableCell = ({
|
|
|
1512
1775
|
}) => {
|
|
1513
1776
|
const useTableCellComponent = () => useContext(TableCellComponentContext);
|
|
1514
1777
|
const Component = useTableCellComponent();
|
|
1515
|
-
return /*#__PURE__*/
|
|
1778
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1516
1779
|
className: classnames(['table_cell', {
|
|
1517
1780
|
[`table_cell-${kind}`]: kind
|
|
1518
1781
|
}, className])
|
|
@@ -1529,7 +1792,7 @@ const TableRow = ({
|
|
|
1529
1792
|
children,
|
|
1530
1793
|
...props
|
|
1531
1794
|
}) => {
|
|
1532
|
-
return /*#__PURE__*/
|
|
1795
|
+
return /*#__PURE__*/React__default.createElement("tr", _extends({
|
|
1533
1796
|
className: classnames(['table_row', className])
|
|
1534
1797
|
}, props), children);
|
|
1535
1798
|
};
|
|
@@ -1542,7 +1805,7 @@ const TabsControl = ({
|
|
|
1542
1805
|
className,
|
|
1543
1806
|
children
|
|
1544
1807
|
}) => {
|
|
1545
|
-
return /*#__PURE__*/
|
|
1808
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1546
1809
|
role: "tablist",
|
|
1547
1810
|
className: classnames(['tabs_controls', className])
|
|
1548
1811
|
}, children);
|
|
@@ -1561,7 +1824,7 @@ const TabsPanel = ({
|
|
|
1561
1824
|
activeIndex
|
|
1562
1825
|
} = useContext(TabsContext);
|
|
1563
1826
|
const isActive = activeIndex === index;
|
|
1564
|
-
return isActive ? /*#__PURE__*/
|
|
1827
|
+
return isActive ? /*#__PURE__*/React__default.createElement("div", {
|
|
1565
1828
|
className: classnames(['tabs_panel', className]),
|
|
1566
1829
|
role: "tabpanel",
|
|
1567
1830
|
id: `tabpanel-${index}`,
|
|
@@ -1581,7 +1844,7 @@ const Tag = ({
|
|
|
1581
1844
|
children = 'Tag',
|
|
1582
1845
|
...props
|
|
1583
1846
|
}) => {
|
|
1584
|
-
return /*#__PURE__*/
|
|
1847
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
1585
1848
|
className: classnames(['tag', {
|
|
1586
1849
|
[`tag-${color}`]: color,
|
|
1587
1850
|
'tag-dense': dense
|
|
@@ -1614,19 +1877,19 @@ const Textarea = ({
|
|
|
1614
1877
|
inputRef.current.focus();
|
|
1615
1878
|
}
|
|
1616
1879
|
}, [isFocused]);
|
|
1617
|
-
return /*#__PURE__*/
|
|
1880
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1618
1881
|
className: classnames(['input', {
|
|
1619
1882
|
'js-error': error,
|
|
1620
1883
|
'input-disabled': disabled,
|
|
1621
1884
|
'input-optional': optional
|
|
1622
1885
|
}, className]),
|
|
1623
1886
|
onChange: onChange
|
|
1624
|
-
}, /*#__PURE__*/
|
|
1887
|
+
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
1625
1888
|
htmlFor: id,
|
|
1626
1889
|
label: label,
|
|
1627
1890
|
hint: hint,
|
|
1628
1891
|
error: error
|
|
1629
|
-
}), /*#__PURE__*/
|
|
1892
|
+
}), /*#__PURE__*/React__default.createElement("textarea", _extends({
|
|
1630
1893
|
ref: inputRef,
|
|
1631
1894
|
className: 'input_control',
|
|
1632
1895
|
name: id,
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pallote-react",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"styles": "dist/index.css",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/preset-react": "^7.26.3",
|
|
23
|
-
"@phosphor-icons/react": "^2.1.
|
|
23
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
24
24
|
"@rollup/plugin-json": "^6.1.0",
|
|
25
25
|
"classnames": "^2.5.1",
|
|
26
26
|
"pallote-css": "workspace:^",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pallote-react",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"styles": "dist/index.css",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/preset-react": "^7.26.3",
|
|
21
|
-
"@phosphor-icons/react": "^2.1.
|
|
21
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
22
22
|
"@rollup/plugin-json": "^6.1.0",
|
|
23
23
|
"classnames": "^2.5.1",
|
|
24
24
|
"react-syntax-highlighter": "^15.6.1",
|
|
25
25
|
"sass": "^1.71.1",
|
|
26
|
-
"pallote-css": "^0.9.
|
|
26
|
+
"pallote-css": "^0.9.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@chromatic-com/storybook": "^3.2.4",
|