pallote-react 0.15.5 → 0.15.6
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 +387 -132
- package/dist/package.json +2 -2
- package/package.json +2 -2
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])
|
|
@@ -436,15 +499,15 @@ const CardHeader = ({
|
|
|
436
499
|
className,
|
|
437
500
|
...props
|
|
438
501
|
}) => {
|
|
439
|
-
return /*#__PURE__*/
|
|
502
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
440
503
|
className: classnames(['card_header', className])
|
|
441
|
-
}, props), actions && /*#__PURE__*/
|
|
504
|
+
}, props), actions && /*#__PURE__*/React__default.createElement("div", {
|
|
442
505
|
className: "card_headerActions"
|
|
443
|
-
}, actions), label ? /*#__PURE__*/
|
|
506
|
+
}, actions), label ? /*#__PURE__*/React__default.createElement(Text, {
|
|
444
507
|
className: classnames('card_label')
|
|
445
|
-
}, label) : null, /*#__PURE__*/
|
|
508
|
+
}, label) : null, /*#__PURE__*/React__default.createElement(Text, {
|
|
446
509
|
className: classnames('card_title')
|
|
447
|
-
}, title), subtitle ? /*#__PURE__*/
|
|
510
|
+
}, title), subtitle ? /*#__PURE__*/React__default.createElement(Text, {
|
|
448
511
|
className: classnames('card_subtitle')
|
|
449
512
|
}, subtitle) : null);
|
|
450
513
|
};
|
|
@@ -465,11 +528,11 @@ const CardMedia = ({
|
|
|
465
528
|
className,
|
|
466
529
|
...props
|
|
467
530
|
}) => {
|
|
468
|
-
return /*#__PURE__*/
|
|
531
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
469
532
|
className: classnames(['card_media', {
|
|
470
533
|
'card_media-fullWidth': fullWidth
|
|
471
534
|
}, className])
|
|
472
|
-
}, props), /*#__PURE__*/
|
|
535
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
473
536
|
className: 'card_mediaInner',
|
|
474
537
|
style: {
|
|
475
538
|
width: width + 'px',
|
|
@@ -496,11 +559,11 @@ const Checkbox = ({
|
|
|
496
559
|
className,
|
|
497
560
|
...props
|
|
498
561
|
}) => {
|
|
499
|
-
return /*#__PURE__*/
|
|
562
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
500
563
|
className: classnames(['checkbox', {
|
|
501
564
|
'checkbox-disabled': disabled
|
|
502
565
|
}, className])
|
|
503
|
-
}, /*#__PURE__*/
|
|
566
|
+
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
504
567
|
className: classnames('checkbox_control'),
|
|
505
568
|
type: "checkbox",
|
|
506
569
|
name: id,
|
|
@@ -510,7 +573,7 @@ const Checkbox = ({
|
|
|
510
573
|
"aria-checked": checked,
|
|
511
574
|
disabled: disabled,
|
|
512
575
|
required: !(disabled || optional)
|
|
513
|
-
}, props)), /*#__PURE__*/
|
|
576
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
514
577
|
className: classnames('checkbox_label'),
|
|
515
578
|
htmlFor: id
|
|
516
579
|
}, label));
|
|
@@ -533,14 +596,14 @@ const InputLabel = ({
|
|
|
533
596
|
error
|
|
534
597
|
}) => {
|
|
535
598
|
const LabelTag = isLegend ? 'legend' : 'label';
|
|
536
|
-
return /*#__PURE__*/
|
|
599
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement(LabelTag, _extends({
|
|
537
600
|
className: 'input_label'
|
|
538
601
|
}, !isLegend && {
|
|
539
602
|
htmlFor
|
|
540
|
-
}), label), hint && /*#__PURE__*/
|
|
603
|
+
}), label), hint && /*#__PURE__*/React__default.createElement("p", {
|
|
541
604
|
id: htmlFor + '-hint',
|
|
542
605
|
className: 'input_hint'
|
|
543
|
-
}, hint), error && /*#__PURE__*/
|
|
606
|
+
}, hint), error && /*#__PURE__*/React__default.createElement("p", {
|
|
544
607
|
id: htmlFor + '-error',
|
|
545
608
|
className: 'input_error'
|
|
546
609
|
}, error));
|
|
@@ -569,7 +632,7 @@ const Checkboxes = ({
|
|
|
569
632
|
children,
|
|
570
633
|
className
|
|
571
634
|
}) => {
|
|
572
|
-
return /*#__PURE__*/
|
|
635
|
+
return /*#__PURE__*/React__default.createElement("fieldset", _extends({
|
|
573
636
|
className: classnames(['input', {
|
|
574
637
|
'js-error': error,
|
|
575
638
|
'input-disabled': disabled,
|
|
@@ -578,16 +641,16 @@ const Checkboxes = ({
|
|
|
578
641
|
onChange: onChange
|
|
579
642
|
}, hint || error ? {
|
|
580
643
|
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
581
|
-
} : null), /*#__PURE__*/
|
|
644
|
+
} : null), /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
582
645
|
isLegend: true,
|
|
583
646
|
label: label,
|
|
584
647
|
hint: hint,
|
|
585
648
|
error: error
|
|
586
|
-
}), /*#__PURE__*/
|
|
649
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
587
650
|
className: classnames(['input_control', 'radios', {
|
|
588
651
|
[`radios-${direction}`]: direction
|
|
589
652
|
}])
|
|
590
|
-
},
|
|
653
|
+
}, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
|
|
591
654
|
optional,
|
|
592
655
|
disabled
|
|
593
656
|
}) : child)));
|
|
@@ -611,7 +674,7 @@ const Divider = ({
|
|
|
611
674
|
className,
|
|
612
675
|
...props
|
|
613
676
|
}) => {
|
|
614
|
-
return /*#__PURE__*/
|
|
677
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
615
678
|
className: classnames(['divider', {
|
|
616
679
|
[`divider-${direction}`]: direction,
|
|
617
680
|
[`divider-${padding}`]: padding
|
|
@@ -624,6 +687,78 @@ Divider.propTypes = {
|
|
|
624
687
|
className: PropTypes.node
|
|
625
688
|
};
|
|
626
689
|
|
|
690
|
+
const e$5 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
691
|
+
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"
|
|
692
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
693
|
+
d: "M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",
|
|
694
|
+
opacity: "0.2"
|
|
695
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
696
|
+
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"
|
|
697
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
698
|
+
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"
|
|
699
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
700
|
+
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"
|
|
701
|
+
}))], ["regular", /* @__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,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"
|
|
703
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
704
|
+
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"
|
|
705
|
+
}))]]);
|
|
706
|
+
|
|
707
|
+
const e$4 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
|
|
708
|
+
ref: r,
|
|
709
|
+
...o,
|
|
710
|
+
weights: e$5
|
|
711
|
+
}));
|
|
712
|
+
e$4.displayName = "CalendarBlankIcon";
|
|
713
|
+
|
|
714
|
+
const a$3 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
715
|
+
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"
|
|
716
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
717
|
+
d: "M80,176h96l-48,48ZM128,32,80,80h96Z",
|
|
718
|
+
opacity: "0.2"
|
|
719
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
720
|
+
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"
|
|
721
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
722
|
+
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"
|
|
723
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
724
|
+
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"
|
|
725
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
726
|
+
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"
|
|
727
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
728
|
+
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"
|
|
729
|
+
}))]]);
|
|
730
|
+
|
|
731
|
+
const e$3 = /*#__PURE__*/React.forwardRef((r, t) => /* @__PURE__ */React.createElement(p, {
|
|
732
|
+
ref: t,
|
|
733
|
+
...r,
|
|
734
|
+
weights: a$3
|
|
735
|
+
}));
|
|
736
|
+
e$3.displayName = "CaretUpDownIcon";
|
|
737
|
+
|
|
738
|
+
const a$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
739
|
+
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"
|
|
740
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
741
|
+
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
742
|
+
opacity: "0.2"
|
|
743
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
744
|
+
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"
|
|
745
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
746
|
+
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"
|
|
747
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
748
|
+
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"
|
|
749
|
+
}))], ["regular", /* @__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,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"
|
|
751
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
752
|
+
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"
|
|
753
|
+
}))]]);
|
|
754
|
+
|
|
755
|
+
const c = /*#__PURE__*/React.forwardRef((e, r) => /* @__PURE__ */React.createElement(p, {
|
|
756
|
+
ref: r,
|
|
757
|
+
...e,
|
|
758
|
+
weights: a$2
|
|
759
|
+
}));
|
|
760
|
+
c.displayName = "ClockIcon";
|
|
761
|
+
|
|
627
762
|
const Input = ({
|
|
628
763
|
onChange,
|
|
629
764
|
type = 'text',
|
|
@@ -645,8 +780,8 @@ const Input = ({
|
|
|
645
780
|
inputRef.current.focus();
|
|
646
781
|
}
|
|
647
782
|
}, [isFocused]);
|
|
648
|
-
const customIcon = icon || type === 'date' && /*#__PURE__*/
|
|
649
|
-
return /*#__PURE__*/
|
|
783
|
+
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);
|
|
784
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
650
785
|
className: classnames(['input', {
|
|
651
786
|
'js-error': error,
|
|
652
787
|
'input-disabled': disabled,
|
|
@@ -654,14 +789,14 @@ const Input = ({
|
|
|
654
789
|
'input-withIcon': icon
|
|
655
790
|
}, className]),
|
|
656
791
|
onChange: onChange
|
|
657
|
-
}, /*#__PURE__*/
|
|
792
|
+
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
658
793
|
htmlFor: id,
|
|
659
794
|
label: label,
|
|
660
795
|
hint: hint,
|
|
661
796
|
error: error
|
|
662
|
-
}), customIcon && /*#__PURE__*/
|
|
797
|
+
}), customIcon && /*#__PURE__*/React__default.createElement("div", {
|
|
663
798
|
className: 'input_icon'
|
|
664
|
-
}, customIcon), /*#__PURE__*/
|
|
799
|
+
}, customIcon), /*#__PURE__*/React__default.createElement("input", _extends({
|
|
665
800
|
ref: inputRef,
|
|
666
801
|
type: type,
|
|
667
802
|
className: 'input_control',
|
|
@@ -689,6 +824,30 @@ Input.propTypes = {
|
|
|
689
824
|
className: PropTypes.node
|
|
690
825
|
};
|
|
691
826
|
|
|
827
|
+
const e$2 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
828
|
+
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"
|
|
829
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
830
|
+
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",
|
|
831
|
+
opacity: "0.2"
|
|
832
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
833
|
+
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"
|
|
834
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
835
|
+
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"
|
|
836
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
837
|
+
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"
|
|
838
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
839
|
+
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"
|
|
840
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
841
|
+
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"
|
|
842
|
+
}))]]);
|
|
843
|
+
|
|
844
|
+
const o$2 = /*#__PURE__*/React.forwardRef((e, t) => /* @__PURE__ */React.createElement(p, {
|
|
845
|
+
ref: t,
|
|
846
|
+
...e,
|
|
847
|
+
weights: e$2
|
|
848
|
+
}));
|
|
849
|
+
o$2.displayName = "ArrowSquareOutIcon";
|
|
850
|
+
|
|
692
851
|
const Link = ({
|
|
693
852
|
component = 'a',
|
|
694
853
|
icon,
|
|
@@ -700,18 +859,18 @@ const Link = ({
|
|
|
700
859
|
...props
|
|
701
860
|
}) => {
|
|
702
861
|
const Component = component || 'a';
|
|
703
|
-
return /*#__PURE__*/
|
|
862
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
704
863
|
className: classnames(['link', {
|
|
705
864
|
[`text-${color}`]: color
|
|
706
865
|
}, className]),
|
|
707
866
|
href: isExternal ? href : undefined,
|
|
708
867
|
target: isExternal ? '_blank' : undefined,
|
|
709
868
|
rel: isExternal ? 'noopener noreferrer' : undefined
|
|
710
|
-
}, props), children, icon && !isExternal && /*#__PURE__*/
|
|
869
|
+
}, props), children, icon && !isExternal && /*#__PURE__*/React__default.createElement("span", {
|
|
711
870
|
className: 'link_icon'
|
|
712
|
-
}, icon), isExternal && /*#__PURE__*/
|
|
871
|
+
}, icon), isExternal && /*#__PURE__*/React__default.createElement("span", {
|
|
713
872
|
className: 'link_icon'
|
|
714
|
-
}, /*#__PURE__*/
|
|
873
|
+
}, /*#__PURE__*/React__default.createElement(o$2, null)));
|
|
715
874
|
};
|
|
716
875
|
Link.propTypes = {
|
|
717
876
|
component: PropTypes.oneOfType(['a', PropTypes.elementType]),
|
|
@@ -728,7 +887,7 @@ const List = ({
|
|
|
728
887
|
children,
|
|
729
888
|
...props
|
|
730
889
|
}) => {
|
|
731
|
-
return /*#__PURE__*/
|
|
890
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
732
891
|
className: classnames(['list', {
|
|
733
892
|
'list-dense': dense
|
|
734
893
|
}, className])
|
|
@@ -747,11 +906,11 @@ const ListItem = ({
|
|
|
747
906
|
children = 'List item',
|
|
748
907
|
...props
|
|
749
908
|
}) => {
|
|
750
|
-
return /*#__PURE__*/
|
|
909
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
751
910
|
className: classnames(['list_item', {
|
|
752
911
|
'list_item-bold': bold
|
|
753
912
|
}, className])
|
|
754
|
-
}, props), icon ? /*#__PURE__*/
|
|
913
|
+
}, props), icon ? /*#__PURE__*/React__default.cloneElement(icon, {
|
|
755
914
|
className: `${icon.props.className ?? ''} list_itemIcon`
|
|
756
915
|
}) : null, children);
|
|
757
916
|
};
|
|
@@ -769,12 +928,12 @@ const Nav = ({
|
|
|
769
928
|
children,
|
|
770
929
|
...props
|
|
771
930
|
}) => {
|
|
772
|
-
return /*#__PURE__*/
|
|
931
|
+
return /*#__PURE__*/React__default.createElement("nav", _extends({
|
|
773
932
|
className: classnames(['nav', {
|
|
774
933
|
[`nav-${direction}`]: direction,
|
|
775
934
|
'nav-dense': dense
|
|
776
935
|
}, className])
|
|
777
|
-
}, props), /*#__PURE__*/
|
|
936
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
778
937
|
className: "nav_container"
|
|
779
938
|
}, children));
|
|
780
939
|
};
|
|
@@ -795,16 +954,16 @@ const SectionHeader = ({
|
|
|
795
954
|
className,
|
|
796
955
|
...props
|
|
797
956
|
}) => {
|
|
798
|
-
return /*#__PURE__*/
|
|
957
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
799
958
|
className: classnames(['section_header', className])
|
|
800
|
-
}, props), label ? /*#__PURE__*/
|
|
959
|
+
}, props), label ? /*#__PURE__*/React__default.createElement(Text, {
|
|
801
960
|
className: classnames('section_label')
|
|
802
|
-
}, label) : null, /*#__PURE__*/
|
|
961
|
+
}, label) : null, /*#__PURE__*/React__default.createElement(Text, {
|
|
803
962
|
className: "section_title",
|
|
804
963
|
component: titleComponent || (promoteTitle ? 'h1' : 'h2')
|
|
805
|
-
}, title), subtitle ? /*#__PURE__*/
|
|
964
|
+
}, title), subtitle ? /*#__PURE__*/React__default.createElement("div", {
|
|
806
965
|
className: classnames('section_subtitle')
|
|
807
|
-
}, subtitle) : null, actions ? /*#__PURE__*/
|
|
966
|
+
}, subtitle) : null, actions ? /*#__PURE__*/React__default.createElement("div", {
|
|
808
967
|
className: "section_actions"
|
|
809
968
|
}, actions) : null);
|
|
810
969
|
};
|
|
@@ -827,18 +986,18 @@ const Section = ({
|
|
|
827
986
|
children,
|
|
828
987
|
...props
|
|
829
988
|
}) => {
|
|
830
|
-
return /*#__PURE__*/
|
|
989
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
831
990
|
className: classnames(['section', {
|
|
832
991
|
[`section-${align}`]: align,
|
|
833
992
|
[`section-${color}`]: color,
|
|
834
993
|
'section-landing': landing,
|
|
835
994
|
'section-header': header
|
|
836
995
|
}, className])
|
|
837
|
-
}, props), /*#__PURE__*/
|
|
996
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
838
997
|
className: 'section_container'
|
|
839
|
-
},
|
|
840
|
-
if (/*#__PURE__*/
|
|
841
|
-
return /*#__PURE__*/
|
|
998
|
+
}, React__default.Children.map(children, child => {
|
|
999
|
+
if (/*#__PURE__*/React__default.isValidElement(child) && child.type === SectionHeader) {
|
|
1000
|
+
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
842
1001
|
promoteTitle: landing || header
|
|
843
1002
|
});
|
|
844
1003
|
}
|
|
@@ -866,27 +1025,27 @@ const NavBar = ({
|
|
|
866
1025
|
setIsOpen(!isOpen);
|
|
867
1026
|
document.body.classList.toggle('js-navbar', !isOpen);
|
|
868
1027
|
};
|
|
869
|
-
return /*#__PURE__*/
|
|
1028
|
+
return /*#__PURE__*/React__default.createElement("header", null, /*#__PURE__*/React__default.createElement(Section, _extends({
|
|
870
1029
|
className: classnames(['navbar', {
|
|
871
1030
|
[`navbar-${align}`]: align,
|
|
872
1031
|
'js-opened': isOpen
|
|
873
1032
|
}, className])
|
|
874
|
-
}, props), /*#__PURE__*/
|
|
1033
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
875
1034
|
className: "navbar_main"
|
|
876
|
-
}, /*#__PURE__*/
|
|
1035
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
877
1036
|
className: "navbar_logo"
|
|
878
|
-
}, logo), /*#__PURE__*/
|
|
1037
|
+
}, logo), /*#__PURE__*/React__default.createElement("button", {
|
|
879
1038
|
"aria-label": "Open mobile menu",
|
|
880
1039
|
className: classnames('navbar_button', {
|
|
881
1040
|
'js-opened': isOpen
|
|
882
1041
|
}),
|
|
883
1042
|
onClick: toggleNav
|
|
884
|
-
}, /*#__PURE__*/
|
|
1043
|
+
}, /*#__PURE__*/React__default.createElement("span", null))), /*#__PURE__*/React__default.createElement("nav", {
|
|
885
1044
|
"aria-label": "main-nav",
|
|
886
1045
|
className: classnames('navbar_nav nav', {
|
|
887
1046
|
'js-opened': isOpen
|
|
888
1047
|
})
|
|
889
|
-
}, /*#__PURE__*/
|
|
1048
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
890
1049
|
className: "nav_container"
|
|
891
1050
|
}, children))));
|
|
892
1051
|
};
|
|
@@ -917,21 +1076,21 @@ const NavItem = ({
|
|
|
917
1076
|
} else {
|
|
918
1077
|
Component = component || "a";
|
|
919
1078
|
}
|
|
920
|
-
return /*#__PURE__*/
|
|
1079
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
921
1080
|
className: classnames(['nav_item', {
|
|
922
1081
|
'nav_item-dropdown': dropdown,
|
|
923
1082
|
'js-show': isExpanded
|
|
924
1083
|
}, className])
|
|
925
|
-
}, /*#__PURE__*/
|
|
1084
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
926
1085
|
end: end,
|
|
927
1086
|
to: to,
|
|
928
1087
|
className: classnames(['nav_trigger', {
|
|
929
1088
|
'nav_trigger-active': active
|
|
930
1089
|
}]),
|
|
931
1090
|
onClick: onClick
|
|
932
|
-
}, props), icon ? /*#__PURE__*/
|
|
1091
|
+
}, props), icon ? /*#__PURE__*/React__default.createElement("span", {
|
|
933
1092
|
className: classnames('nav_icon')
|
|
934
|
-
}, icon) : null, label), dropdown ? /*#__PURE__*/
|
|
1093
|
+
}, icon) : null, label), dropdown ? /*#__PURE__*/React__default.createElement("div", {
|
|
935
1094
|
ref: dropdownRef,
|
|
936
1095
|
className: "nav_target"
|
|
937
1096
|
}, dropdown) : null);
|
|
@@ -957,11 +1116,11 @@ const Radio = ({
|
|
|
957
1116
|
className,
|
|
958
1117
|
...props
|
|
959
1118
|
}) => {
|
|
960
|
-
return /*#__PURE__*/
|
|
1119
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
961
1120
|
className: classnames(['radio', {
|
|
962
1121
|
'radio-disabled': disabled
|
|
963
1122
|
}, className])
|
|
964
|
-
}, /*#__PURE__*/
|
|
1123
|
+
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
965
1124
|
className: classnames('radio_control'),
|
|
966
1125
|
type: "radio",
|
|
967
1126
|
id: id,
|
|
@@ -971,7 +1130,7 @@ const Radio = ({
|
|
|
971
1130
|
"aria-checked": checked,
|
|
972
1131
|
disabled: disabled,
|
|
973
1132
|
required: !(disabled || optional)
|
|
974
|
-
}, props)), /*#__PURE__*/
|
|
1133
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
975
1134
|
className: classnames('radio_label'),
|
|
976
1135
|
htmlFor: id
|
|
977
1136
|
}, label));
|
|
@@ -999,7 +1158,7 @@ const RadioButtons = ({
|
|
|
999
1158
|
children,
|
|
1000
1159
|
className
|
|
1001
1160
|
}) => {
|
|
1002
|
-
return /*#__PURE__*/
|
|
1161
|
+
return /*#__PURE__*/React__default.createElement("fieldset", _extends({
|
|
1003
1162
|
className: classnames(['input', {
|
|
1004
1163
|
'js-error': error,
|
|
1005
1164
|
'input-disabled': disabled,
|
|
@@ -1008,16 +1167,16 @@ const RadioButtons = ({
|
|
|
1008
1167
|
onChange: onChange
|
|
1009
1168
|
}, hint || error ? {
|
|
1010
1169
|
'aria-describedby': [hint ? `${id}-hint` : null, error ? `${id}-error` : null].filter(Boolean).join(' ')
|
|
1011
|
-
} : null), /*#__PURE__*/
|
|
1170
|
+
} : null), /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
1012
1171
|
isLegend: true,
|
|
1013
1172
|
label: label,
|
|
1014
1173
|
hint: hint,
|
|
1015
1174
|
error: error
|
|
1016
|
-
}), /*#__PURE__*/
|
|
1175
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1017
1176
|
className: classnames(['input_control', 'radios', {
|
|
1018
1177
|
[`radios-${direction}`]: direction
|
|
1019
1178
|
}])
|
|
1020
|
-
},
|
|
1179
|
+
}, React__default.Children.map(children, child => /*#__PURE__*/React__default.isValidElement(child) ? /*#__PURE__*/React__default.cloneElement(child, {
|
|
1021
1180
|
optional,
|
|
1022
1181
|
disabled
|
|
1023
1182
|
}) : child)));
|
|
@@ -1041,7 +1200,7 @@ const SectionContent = ({
|
|
|
1041
1200
|
children,
|
|
1042
1201
|
...props
|
|
1043
1202
|
}) => {
|
|
1044
|
-
return /*#__PURE__*/
|
|
1203
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1045
1204
|
className: classnames(['section_content', {
|
|
1046
1205
|
[`section_content-${align}`]: align
|
|
1047
1206
|
}, className])
|
|
@@ -1073,7 +1232,7 @@ const Select = ({
|
|
|
1073
1232
|
inputRef.current.focus();
|
|
1074
1233
|
}
|
|
1075
1234
|
}, [isFocused]);
|
|
1076
|
-
return /*#__PURE__*/
|
|
1235
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1077
1236
|
className: classnames(['input', 'select', {
|
|
1078
1237
|
'input-focused': isFocused,
|
|
1079
1238
|
'js-error': error,
|
|
@@ -1082,12 +1241,12 @@ const Select = ({
|
|
|
1082
1241
|
'input-dense': dense
|
|
1083
1242
|
}, className]),
|
|
1084
1243
|
onChange: onChange
|
|
1085
|
-
}, /*#__PURE__*/
|
|
1244
|
+
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
1086
1245
|
htmlFor: id,
|
|
1087
1246
|
label: label,
|
|
1088
1247
|
hint: hint,
|
|
1089
1248
|
error: error
|
|
1090
|
-
}), /*#__PURE__*/
|
|
1249
|
+
}), /*#__PURE__*/React__default.createElement("select", _extends({
|
|
1091
1250
|
ref: inputRef,
|
|
1092
1251
|
className: 'input_control',
|
|
1093
1252
|
name: id,
|
|
@@ -1236,9 +1395,9 @@ const Snippet = ({
|
|
|
1236
1395
|
className,
|
|
1237
1396
|
...props
|
|
1238
1397
|
}) => {
|
|
1239
|
-
return /*#__PURE__*/
|
|
1398
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1240
1399
|
className: classnames('snippet_wrapper')
|
|
1241
|
-
}, /*#__PURE__*/
|
|
1400
|
+
}, /*#__PURE__*/React__default.createElement(SyntaxHighlighter, _extends({
|
|
1242
1401
|
language: "javascript",
|
|
1243
1402
|
style: nnfxDark,
|
|
1244
1403
|
className: classnames(['snippet', {
|
|
@@ -1262,7 +1421,7 @@ const Status = ({
|
|
|
1262
1421
|
children = 'Status',
|
|
1263
1422
|
...props
|
|
1264
1423
|
}) => {
|
|
1265
|
-
return /*#__PURE__*/
|
|
1424
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
1266
1425
|
className: classnames(['status', {
|
|
1267
1426
|
[`status-${color}`]: color,
|
|
1268
1427
|
'status-dense': dense
|
|
@@ -1284,25 +1443,25 @@ const Switch = ({
|
|
|
1284
1443
|
className,
|
|
1285
1444
|
...props
|
|
1286
1445
|
}) => {
|
|
1287
|
-
return /*#__PURE__*/
|
|
1446
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1288
1447
|
className: classnames(['switch', {
|
|
1289
1448
|
'switch-disabled': disabled
|
|
1290
1449
|
}, className])
|
|
1291
|
-
}, startLabel ? /*#__PURE__*/
|
|
1450
|
+
}, startLabel ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1292
1451
|
className: classnames('switch_label'),
|
|
1293
1452
|
variant: "body"
|
|
1294
|
-
}, startLabel) : null, /*#__PURE__*/
|
|
1453
|
+
}, startLabel) : null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
1295
1454
|
className: classnames('switch_input'),
|
|
1296
1455
|
type: "checkbox",
|
|
1297
1456
|
name: id,
|
|
1298
1457
|
id: id,
|
|
1299
1458
|
disabled: disabled
|
|
1300
|
-
}, props)), /*#__PURE__*/
|
|
1459
|
+
}, props)), /*#__PURE__*/React__default.createElement("label", {
|
|
1301
1460
|
className: classnames('switch_switch'),
|
|
1302
1461
|
htmlFor: id
|
|
1303
|
-
}, /*#__PURE__*/
|
|
1462
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1304
1463
|
className: classnames('switch_toggle')
|
|
1305
|
-
})), endLabel ? /*#__PURE__*/
|
|
1464
|
+
})), endLabel ? /*#__PURE__*/React__default.createElement(Text, {
|
|
1306
1465
|
className: classnames('switch_label'),
|
|
1307
1466
|
variant: "body"
|
|
1308
1467
|
}, endLabel) : null);
|
|
@@ -1324,12 +1483,12 @@ const Tabs = ({
|
|
|
1324
1483
|
children
|
|
1325
1484
|
}) => {
|
|
1326
1485
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
1327
|
-
return /*#__PURE__*/
|
|
1486
|
+
return /*#__PURE__*/React__default.createElement(TabsContext.Provider, {
|
|
1328
1487
|
value: {
|
|
1329
1488
|
activeIndex,
|
|
1330
1489
|
setActiveIndex
|
|
1331
1490
|
}
|
|
1332
|
-
}, /*#__PURE__*/
|
|
1491
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1333
1492
|
className: classnames(['tabs', {
|
|
1334
1493
|
[`tabs-${direction}`]: direction,
|
|
1335
1494
|
'tabs-dense': dense,
|
|
@@ -1355,7 +1514,7 @@ const Tab = ({
|
|
|
1355
1514
|
setActiveIndex
|
|
1356
1515
|
} = useContext(TabsContext);
|
|
1357
1516
|
const isSelected = activeIndex === index;
|
|
1358
|
-
return /*#__PURE__*/
|
|
1517
|
+
return /*#__PURE__*/React__default.createElement("button", {
|
|
1359
1518
|
className: classnames(['tab', {
|
|
1360
1519
|
'tab-active': isSelected
|
|
1361
1520
|
}, className]),
|
|
@@ -1372,64 +1531,160 @@ Tab.propTypes = {
|
|
|
1372
1531
|
className: PropTypes.node.isRequired
|
|
1373
1532
|
};
|
|
1374
1533
|
|
|
1534
|
+
const a$1 = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1535
|
+
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"
|
|
1536
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1537
|
+
d: "M160,48V208L80,128Z",
|
|
1538
|
+
opacity: "0.2"
|
|
1539
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1540
|
+
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"
|
|
1541
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1542
|
+
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"
|
|
1543
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1544
|
+
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"
|
|
1545
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1546
|
+
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"
|
|
1547
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1548
|
+
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"
|
|
1549
|
+
}))]]);
|
|
1550
|
+
|
|
1551
|
+
const t$1 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
|
|
1552
|
+
ref: r,
|
|
1553
|
+
...o,
|
|
1554
|
+
weights: a$1
|
|
1555
|
+
}));
|
|
1556
|
+
t$1.displayName = "CaretLeftIcon";
|
|
1557
|
+
|
|
1558
|
+
const t = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1559
|
+
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"
|
|
1560
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1561
|
+
d: "M176,128,96,208V48Z",
|
|
1562
|
+
opacity: "0.2"
|
|
1563
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1564
|
+
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"
|
|
1565
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1566
|
+
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"
|
|
1567
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1568
|
+
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"
|
|
1569
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1570
|
+
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"
|
|
1571
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1572
|
+
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"
|
|
1573
|
+
}))]]);
|
|
1574
|
+
|
|
1575
|
+
const e$1 = /*#__PURE__*/React.forwardRef((o, r) => /* @__PURE__ */React.createElement(p, {
|
|
1576
|
+
ref: r,
|
|
1577
|
+
...o,
|
|
1578
|
+
weights: t
|
|
1579
|
+
}));
|
|
1580
|
+
e$1.displayName = "CaretRightIcon";
|
|
1581
|
+
|
|
1582
|
+
const e = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1583
|
+
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"
|
|
1584
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1585
|
+
d: "M200,48V208l-80-80Z",
|
|
1586
|
+
opacity: "0.2"
|
|
1587
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1588
|
+
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"
|
|
1589
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1590
|
+
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"
|
|
1591
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1592
|
+
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"
|
|
1593
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1594
|
+
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"
|
|
1595
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1596
|
+
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"
|
|
1597
|
+
}))]]);
|
|
1598
|
+
|
|
1599
|
+
const o$1 = /*#__PURE__*/React.forwardRef((t, r) => /* @__PURE__ */React.createElement(p, {
|
|
1600
|
+
ref: r,
|
|
1601
|
+
...t,
|
|
1602
|
+
weights: e
|
|
1603
|
+
}));
|
|
1604
|
+
o$1.displayName = "CaretDoubleLeftIcon";
|
|
1605
|
+
|
|
1606
|
+
const a = /* @__PURE__ */new Map([["bold", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1607
|
+
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"
|
|
1608
|
+
}))], ["duotone", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1609
|
+
d: "M136,128,56,208V48Z",
|
|
1610
|
+
opacity: "0.2"
|
|
1611
|
+
}), /* @__PURE__ */React.createElement("path", {
|
|
1612
|
+
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"
|
|
1613
|
+
}))], ["fill", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1614
|
+
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"
|
|
1615
|
+
}))], ["light", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1616
|
+
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"
|
|
1617
|
+
}))], ["regular", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1618
|
+
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"
|
|
1619
|
+
}))], ["thin", /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("path", {
|
|
1620
|
+
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"
|
|
1621
|
+
}))]]);
|
|
1622
|
+
|
|
1623
|
+
const o = /*#__PURE__*/React.forwardRef((t, r) => /* @__PURE__ */React.createElement(p, {
|
|
1624
|
+
ref: r,
|
|
1625
|
+
...t,
|
|
1626
|
+
weights: a
|
|
1627
|
+
}));
|
|
1628
|
+
o.displayName = "CaretDoubleRightIcon";
|
|
1629
|
+
|
|
1375
1630
|
const TableFooter = ({
|
|
1376
1631
|
className,
|
|
1377
1632
|
...props
|
|
1378
1633
|
}) => {
|
|
1379
|
-
return /*#__PURE__*/
|
|
1634
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1380
1635
|
className: classnames(['table_footer', className])
|
|
1381
|
-
}, props), /*#__PURE__*/
|
|
1636
|
+
}, props), /*#__PURE__*/React__default.createElement(Select, {
|
|
1382
1637
|
dense: true,
|
|
1383
1638
|
id: "rows",
|
|
1384
1639
|
className: "table_rowSelect"
|
|
1385
|
-
}, /*#__PURE__*/
|
|
1640
|
+
}, /*#__PURE__*/React__default.createElement("option", {
|
|
1386
1641
|
value: "1"
|
|
1387
|
-
}, "10"), /*#__PURE__*/
|
|
1642
|
+
}, "10"), /*#__PURE__*/React__default.createElement("option", {
|
|
1388
1643
|
value: "2"
|
|
1389
|
-
}, "25"), /*#__PURE__*/
|
|
1644
|
+
}, "25"), /*#__PURE__*/React__default.createElement("option", {
|
|
1390
1645
|
value: "2"
|
|
1391
|
-
}, "50"), /*#__PURE__*/
|
|
1646
|
+
}, "50"), /*#__PURE__*/React__default.createElement("option", {
|
|
1392
1647
|
value: "2"
|
|
1393
|
-
}, "100"), /*#__PURE__*/
|
|
1648
|
+
}, "100"), /*#__PURE__*/React__default.createElement("option", {
|
|
1394
1649
|
value: "2"
|
|
1395
|
-
}, "All")), /*#__PURE__*/
|
|
1650
|
+
}, "All")), /*#__PURE__*/React__default.createElement(Buttons, {
|
|
1396
1651
|
className: "table_pagination"
|
|
1397
|
-
}, /*#__PURE__*/
|
|
1652
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
1398
1653
|
kind: "icon",
|
|
1399
1654
|
variant: "transparent",
|
|
1400
1655
|
size: "sm"
|
|
1401
|
-
}, /*#__PURE__*/
|
|
1656
|
+
}, /*#__PURE__*/React__default.createElement(o$1, null)), /*#__PURE__*/React__default.createElement(Button, {
|
|
1402
1657
|
kind: "icon",
|
|
1403
1658
|
variant: "transparent",
|
|
1404
1659
|
size: "sm"
|
|
1405
|
-
}, /*#__PURE__*/
|
|
1660
|
+
}, /*#__PURE__*/React__default.createElement(t$1, null)), /*#__PURE__*/React__default.createElement(Button, {
|
|
1406
1661
|
kind: "icon",
|
|
1407
1662
|
size: "sm"
|
|
1408
|
-
}, "1"), /*#__PURE__*/
|
|
1663
|
+
}, "1"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1409
1664
|
kind: "icon",
|
|
1410
1665
|
variant: "transparent",
|
|
1411
1666
|
size: "sm"
|
|
1412
|
-
}, "2"), /*#__PURE__*/
|
|
1667
|
+
}, "2"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1413
1668
|
kind: "icon",
|
|
1414
1669
|
variant: "transparent",
|
|
1415
1670
|
size: "sm"
|
|
1416
|
-
}, "3"), /*#__PURE__*/
|
|
1671
|
+
}, "3"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1417
1672
|
kind: "icon",
|
|
1418
1673
|
variant: "transparent",
|
|
1419
1674
|
size: "sm"
|
|
1420
|
-
}, "\u2026"), /*#__PURE__*/
|
|
1675
|
+
}, "\u2026"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1421
1676
|
kind: "icon",
|
|
1422
1677
|
variant: "transparent",
|
|
1423
1678
|
size: "sm"
|
|
1424
|
-
}, "8"), /*#__PURE__*/
|
|
1679
|
+
}, "8"), /*#__PURE__*/React__default.createElement(Button, {
|
|
1425
1680
|
kind: "icon",
|
|
1426
1681
|
variant: "transparent",
|
|
1427
1682
|
size: "sm"
|
|
1428
|
-
}, /*#__PURE__*/
|
|
1683
|
+
}, /*#__PURE__*/React__default.createElement(e$1, null)), /*#__PURE__*/React__default.createElement(Button, {
|
|
1429
1684
|
kind: "icon",
|
|
1430
1685
|
variant: "transparent",
|
|
1431
1686
|
size: "sm"
|
|
1432
|
-
}, /*#__PURE__*/
|
|
1687
|
+
}, /*#__PURE__*/React__default.createElement(o, null))));
|
|
1433
1688
|
};
|
|
1434
1689
|
TableFooter.propTypes = {
|
|
1435
1690
|
className: PropTypes.node
|
|
@@ -1446,20 +1701,20 @@ const Table = ({
|
|
|
1446
1701
|
children,
|
|
1447
1702
|
...props
|
|
1448
1703
|
}) => {
|
|
1449
|
-
return /*#__PURE__*/
|
|
1704
|
+
return /*#__PURE__*/React__default.createElement(DenseContext.Provider, {
|
|
1450
1705
|
value: dense
|
|
1451
|
-
}, /*#__PURE__*/
|
|
1706
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1452
1707
|
className: classnames(['table', {
|
|
1453
1708
|
'table-striped': striped,
|
|
1454
1709
|
'table-hasHover': hasHover,
|
|
1455
1710
|
'table-dense': dense,
|
|
1456
1711
|
'table-border': border
|
|
1457
1712
|
}, className])
|
|
1458
|
-
}, /*#__PURE__*/
|
|
1713
|
+
}, /*#__PURE__*/React__default.createElement("table", _extends({
|
|
1459
1714
|
cellPadding: 0,
|
|
1460
1715
|
cellSpacing: 0,
|
|
1461
1716
|
className: classnames('table_content')
|
|
1462
|
-
}, props), children), withFooter ? /*#__PURE__*/
|
|
1717
|
+
}, props), children), withFooter ? /*#__PURE__*/React__default.createElement(TableFooter, {
|
|
1463
1718
|
dense: dense ? dense : null
|
|
1464
1719
|
}) : null));
|
|
1465
1720
|
};
|
|
@@ -1478,7 +1733,7 @@ const TableBody = ({
|
|
|
1478
1733
|
children,
|
|
1479
1734
|
...props
|
|
1480
1735
|
}) => {
|
|
1481
|
-
return /*#__PURE__*/
|
|
1736
|
+
return /*#__PURE__*/React__default.createElement("tbody", _extends({
|
|
1482
1737
|
className: classnames(['table_body', className])
|
|
1483
1738
|
}, props), children);
|
|
1484
1739
|
};
|
|
@@ -1493,9 +1748,9 @@ const TableHead = ({
|
|
|
1493
1748
|
children,
|
|
1494
1749
|
...props
|
|
1495
1750
|
}) => {
|
|
1496
|
-
return /*#__PURE__*/
|
|
1751
|
+
return /*#__PURE__*/React__default.createElement(TableCellComponentContext.Provider, {
|
|
1497
1752
|
value: "th"
|
|
1498
|
-
}, /*#__PURE__*/
|
|
1753
|
+
}, /*#__PURE__*/React__default.createElement("thead", _extends({
|
|
1499
1754
|
className: classnames(['table_head', className])
|
|
1500
1755
|
}, props), children));
|
|
1501
1756
|
};
|
|
@@ -1512,7 +1767,7 @@ const TableCell = ({
|
|
|
1512
1767
|
}) => {
|
|
1513
1768
|
const useTableCellComponent = () => useContext(TableCellComponentContext);
|
|
1514
1769
|
const Component = useTableCellComponent();
|
|
1515
|
-
return /*#__PURE__*/
|
|
1770
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1516
1771
|
className: classnames(['table_cell', {
|
|
1517
1772
|
[`table_cell-${kind}`]: kind
|
|
1518
1773
|
}, className])
|
|
@@ -1529,7 +1784,7 @@ const TableRow = ({
|
|
|
1529
1784
|
children,
|
|
1530
1785
|
...props
|
|
1531
1786
|
}) => {
|
|
1532
|
-
return /*#__PURE__*/
|
|
1787
|
+
return /*#__PURE__*/React__default.createElement("tr", _extends({
|
|
1533
1788
|
className: classnames(['table_row', className])
|
|
1534
1789
|
}, props), children);
|
|
1535
1790
|
};
|
|
@@ -1542,7 +1797,7 @@ const TabsControl = ({
|
|
|
1542
1797
|
className,
|
|
1543
1798
|
children
|
|
1544
1799
|
}) => {
|
|
1545
|
-
return /*#__PURE__*/
|
|
1800
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1546
1801
|
role: "tablist",
|
|
1547
1802
|
className: classnames(['tabs_controls', className])
|
|
1548
1803
|
}, children);
|
|
@@ -1561,7 +1816,7 @@ const TabsPanel = ({
|
|
|
1561
1816
|
activeIndex
|
|
1562
1817
|
} = useContext(TabsContext);
|
|
1563
1818
|
const isActive = activeIndex === index;
|
|
1564
|
-
return isActive ? /*#__PURE__*/
|
|
1819
|
+
return isActive ? /*#__PURE__*/React__default.createElement("div", {
|
|
1565
1820
|
className: classnames(['tabs_panel', className]),
|
|
1566
1821
|
role: "tabpanel",
|
|
1567
1822
|
id: `tabpanel-${index}`,
|
|
@@ -1581,7 +1836,7 @@ const Tag = ({
|
|
|
1581
1836
|
children = 'Tag',
|
|
1582
1837
|
...props
|
|
1583
1838
|
}) => {
|
|
1584
|
-
return /*#__PURE__*/
|
|
1839
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
1585
1840
|
className: classnames(['tag', {
|
|
1586
1841
|
[`tag-${color}`]: color,
|
|
1587
1842
|
'tag-dense': dense
|
|
@@ -1614,19 +1869,19 @@ const Textarea = ({
|
|
|
1614
1869
|
inputRef.current.focus();
|
|
1615
1870
|
}
|
|
1616
1871
|
}, [isFocused]);
|
|
1617
|
-
return /*#__PURE__*/
|
|
1872
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1618
1873
|
className: classnames(['input', {
|
|
1619
1874
|
'js-error': error,
|
|
1620
1875
|
'input-disabled': disabled,
|
|
1621
1876
|
'input-optional': optional
|
|
1622
1877
|
}, className]),
|
|
1623
1878
|
onChange: onChange
|
|
1624
|
-
}, /*#__PURE__*/
|
|
1879
|
+
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
1625
1880
|
htmlFor: id,
|
|
1626
1881
|
label: label,
|
|
1627
1882
|
hint: hint,
|
|
1628
1883
|
error: error
|
|
1629
|
-
}), /*#__PURE__*/
|
|
1884
|
+
}), /*#__PURE__*/React__default.createElement("textarea", _extends({
|
|
1630
1885
|
ref: inputRef,
|
|
1631
1886
|
className: 'input_control',
|
|
1632
1887
|
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.6",
|
|
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.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"styles": "dist/index.css",
|
|
@@ -18,7 +18,7 @@
|
|
|
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",
|