@doist/reactist 26.2.5 → 27.1.0
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/reactist.cjs.development.js +306 -178
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/banner/banner.js +96 -33
- package/es/banner/banner.js.map +1 -1
- package/es/banner/banner.module.css.js +1 -1
- package/es/base-field/base-field.js.map +1 -1
- package/es/icons/banner-icon.js +117 -0
- package/es/icons/banner-icon.js.map +1 -0
- package/es/icons/banner-icon.module.css.js +4 -0
- package/es/icons/banner-icon.module.css.js.map +1 -0
- package/es/index.js +0 -1
- package/es/index.js.map +1 -1
- package/es/text-field/text-field.js.map +1 -1
- package/lib/banner/banner.d.ts +81 -22
- package/lib/banner/banner.js +1 -1
- package/lib/banner/banner.js.map +1 -1
- package/lib/banner/banner.module.css.js +1 -1
- package/lib/banner/story-promo-image.d.ts +4 -0
- package/lib/base-field/base-field.d.ts +6 -0
- package/lib/base-field/base-field.js.map +1 -1
- package/lib/icons/banner-icon.d.ts +6 -0
- package/lib/icons/banner-icon.js +2 -0
- package/lib/icons/banner-icon.js.map +1 -0
- package/lib/icons/banner-icon.module.css.js +2 -0
- package/lib/icons/banner-icon.module.css.js.map +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/text-field/text-field.d.ts +6 -0
- package/lib/text-field/text-field.js.map +1 -1
- package/package.json +1 -1
- package/styles/banner-icon.css +1 -0
- package/styles/banner.css +6 -2
- package/styles/banner.module.css.css +1 -1
- package/styles/index.css +3 -1
- package/styles/reactist.css +2 -2
- package/es/alert/alert.js +0 -53
- package/es/alert/alert.js.map +0 -1
- package/es/alert/alert.module.css.js +0 -4
- package/es/alert/alert.module.css.js.map +0 -1
- package/lib/alert/alert.d.ts +0 -17
- package/lib/alert/alert.js +0 -2
- package/lib/alert/alert.js.map +0 -1
- package/lib/alert/alert.module.css.js +0 -2
- package/lib/alert/alert.module.css.js.map +0 -1
- package/lib/alert/index.d.ts +0 -1
- package/styles/alert.css +0 -10
- package/styles/alert.module.css.css +0 -1
|
@@ -226,7 +226,7 @@ var modules_89b7671c = {"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","
|
|
|
226
226
|
|
|
227
227
|
var modules_8b5c09cb = {"gap-none":"_64ed24f4","gap-xsmall":"_2580a74b","gap-small":"c68f8bf6","gap-medium":"_43e5f8e9","gap-large":"_966b120f","gap-xlarge":"f957894c","gap-xxlarge":"_8cca104b","tablet-gap-none":"_5797cee2","tablet-gap-xsmall":"_9015672f","tablet-gap-small":"_7ec86eec","tablet-gap-medium":"_714d7179","tablet-gap-large":"ae1deb59","tablet-gap-xlarge":"e1cfce55","tablet-gap-xxlarge":"_168a8ff8","desktop-gap-none":"_43e2b619","desktop-gap-xsmall":"_0ea9bf88","desktop-gap-small":"d451307a","desktop-gap-medium":"bf93cf66","desktop-gap-large":"_1430cddf","desktop-gap-xlarge":"fa00c93e","desktop-gap-xxlarge":"_6f3aee54"};
|
|
228
228
|
|
|
229
|
-
const _excluded$
|
|
229
|
+
const _excluded$w = ["as", "position", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "gap", "alignItems", "justifyContent", "alignSelf", "overflow", "width", "height", "background", "border", "borderRadius", "minWidth", "maxWidth", "textAlign", "padding", "paddingY", "paddingX", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "margin", "marginY", "marginX", "marginTop", "marginRight", "marginBottom", "marginLeft", "className", "children"];
|
|
230
230
|
|
|
231
231
|
function getBoxClassNames({
|
|
232
232
|
position = 'static',
|
|
@@ -321,7 +321,7 @@ const Box$1 = /*#__PURE__*/polymorphicComponent(function Box(_ref9, ref) {
|
|
|
321
321
|
className,
|
|
322
322
|
children
|
|
323
323
|
} = _ref9,
|
|
324
|
-
props = _objectWithoutProperties(_ref9, _excluded$
|
|
324
|
+
props = _objectWithoutProperties(_ref9, _excluded$w);
|
|
325
325
|
|
|
326
326
|
return /*#__PURE__*/React__namespace.createElement(component, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
327
327
|
className: getBoxClassNames({
|
|
@@ -366,15 +366,15 @@ const Box$1 = /*#__PURE__*/polymorphicComponent(function Box(_ref9, ref) {
|
|
|
366
366
|
|
|
367
367
|
var modules_67f2d07a = {"container":"eae3d34f","container-xsmall":"_9b4012c9","container-small":"e35e0320","container-medium":"_0703e67f","container-large":"_1cf15621","container-xlarge":"_1c7dff67","container-xxlarge":"_25bee9b6","columnWidth-content":"_4bb9987d","columnWidth-auto":"_9dd31975","columnWidth-1-2":"_38d11c0e","columnWidth-1-3":"_7ac225c6","columnWidth-2-3":"_9c340680","columnWidth-1-4":"_81cb99d2","columnWidth-3-4":"_10fd355f","columnWidth-1-5":"_3ee66520","columnWidth-2-5":"df1201a5","columnWidth-3-5":"f772e0b2","columnWidth-4-5":"_880cbbb1"};
|
|
368
368
|
|
|
369
|
-
const _excluded$
|
|
370
|
-
_excluded2$
|
|
369
|
+
const _excluded$v = ["width", "children", "exceptionallySetClassName"],
|
|
370
|
+
_excluded2$7 = ["space", "align", "alignY", "collapseBelow", "children", "exceptionallySetClassName"];
|
|
371
371
|
const Column = /*#__PURE__*/polymorphicComponent(function Column(_ref, ref) {
|
|
372
372
|
let {
|
|
373
373
|
width = 'auto',
|
|
374
374
|
children,
|
|
375
375
|
exceptionallySetClassName
|
|
376
376
|
} = _ref,
|
|
377
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
377
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
378
378
|
|
|
379
379
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
380
380
|
className: [exceptionallySetClassName, getClassNames(modules_67f2d07a, 'columnWidth', width.replace('/', '-'))],
|
|
@@ -394,7 +394,7 @@ const Columns = /*#__PURE__*/polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
394
394
|
children,
|
|
395
395
|
exceptionallySetClassName
|
|
396
396
|
} = _ref2,
|
|
397
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
397
|
+
props = _objectWithoutProperties(_ref2, _excluded2$7);
|
|
398
398
|
|
|
399
399
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
400
400
|
className: [exceptionallySetClassName, modules_67f2d07a.container, getClassNames(modules_67f2d07a, 'container', space)],
|
|
@@ -416,13 +416,13 @@ const Columns = /*#__PURE__*/polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
416
416
|
|
|
417
417
|
var modules_c742c4d7 = {"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};
|
|
418
418
|
|
|
419
|
-
const _excluded$
|
|
419
|
+
const _excluded$u = ["weight"];
|
|
420
420
|
|
|
421
421
|
function Divider(_ref) {
|
|
422
422
|
let {
|
|
423
423
|
weight = 'tertiary'
|
|
424
424
|
} = _ref,
|
|
425
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
425
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
426
426
|
|
|
427
427
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2({
|
|
428
428
|
as: "hr",
|
|
@@ -430,7 +430,7 @@ function Divider(_ref) {
|
|
|
430
430
|
}, props));
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
-
const _excluded$
|
|
433
|
+
const _excluded$t = ["as", "space", "align", "alignY", "children", "exceptionallySetClassName"];
|
|
434
434
|
const Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
435
435
|
let {
|
|
436
436
|
as,
|
|
@@ -440,7 +440,7 @@ const Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
|
440
440
|
children,
|
|
441
441
|
exceptionallySetClassName
|
|
442
442
|
} = _ref,
|
|
443
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
443
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
444
444
|
|
|
445
445
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
446
446
|
as: as,
|
|
@@ -454,7 +454,7 @@ const Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
|
454
454
|
}), children);
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
const _excluded$
|
|
457
|
+
const _excluded$s = ["as", "space", "align", "dividers", "width", "children", "exceptionallySetClassName"];
|
|
458
458
|
const Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
459
459
|
let {
|
|
460
460
|
as,
|
|
@@ -465,7 +465,7 @@ const Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
|
465
465
|
children,
|
|
466
466
|
exceptionallySetClassName
|
|
467
467
|
} = _ref,
|
|
468
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
468
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
469
469
|
|
|
470
470
|
const alignItems = align === undefined ? undefined : mapResponsiveProp(align, align => align === 'start' ? 'flexStart' : align === 'end' ? 'flexEnd' : 'center');
|
|
471
471
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -484,7 +484,7 @@ const Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
|
484
484
|
|
|
485
485
|
var modules_4689e97e = {"hiddenOnPrint":"_0e595dea"};
|
|
486
486
|
|
|
487
|
-
const _excluded$
|
|
487
|
+
const _excluded$r = ["display", "children", "exceptionallySetClassName"];
|
|
488
488
|
/**
|
|
489
489
|
* A component that allows to specify how to hide itself on certain responsive screen sizes, or on
|
|
490
490
|
* print media.
|
|
@@ -500,7 +500,7 @@ const Hidden = /*#__PURE__*/polymorphicComponent(function Hidden(_ref, ref) {
|
|
|
500
500
|
children,
|
|
501
501
|
exceptionallySetClassName
|
|
502
502
|
} = _ref,
|
|
503
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
503
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
504
504
|
|
|
505
505
|
const hiddenOnPrint = 'print' in props && props.print;
|
|
506
506
|
const hiddenOnDesktop = ('above' in props);
|
|
@@ -549,6 +549,28 @@ const HiddenVisually = /*#__PURE__*/polymorphicComponent(function HiddenVisually
|
|
|
549
549
|
}));
|
|
550
550
|
});
|
|
551
551
|
|
|
552
|
+
let uid = 0;
|
|
553
|
+
|
|
554
|
+
function uniqueId() {
|
|
555
|
+
return uid++;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
function generateElementId(prefix) {
|
|
559
|
+
const num = uniqueId();
|
|
560
|
+
return prefix + "-" + num;
|
|
561
|
+
}
|
|
562
|
+
function useId(providedId) {
|
|
563
|
+
const ref = React__namespace.useRef(providedId != null ? providedId : null);
|
|
564
|
+
|
|
565
|
+
if (!ref.current) {
|
|
566
|
+
ref.current = generateElementId('element');
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
return ref.current;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
var modules_afa80466 = {"banner":"a3c628a9","image":"b2cb529e","content":"_608df6ce","description":"_7d8d68de","title":"_05e2783a","secondary":"d5e077f5","icon":"dbf93d2e","closeButton":"_22f9ed25","copy":"_99ded674","inlineLink":"fe6dd094","staticContent":"e6ed6d9e","actions":"_51bd96a8"};
|
|
573
|
+
|
|
552
574
|
var modules_c7f5018f = {"svg":"_51539197","spinner":"_54fbe2b3","tint":"a0c466ed","fill":"_745b73d3"};
|
|
553
575
|
|
|
554
576
|
function Spinner({
|
|
@@ -649,8 +671,8 @@ function Tooltip({
|
|
|
649
671
|
|
|
650
672
|
var modules_5357ebb8 = {"baseButton":"_3930afa0","label":"_90654824","shape-rounded":"c05d17c2","size-small":"_1e29d236","size-normal":"_7246d092","size-large":"_2d084671","disabled":"_2b0b9d95","iconButton":"abd5766f","startIcon":"_380e7c73","endIcon":"_20fe4105","variant-primary":"_7ea1378e","variant-secondary":"_64ee8afd","variant-tertiary":"_650176bf","variant-quaternary":"aa19cb97","tone-destructive":"_7a2d9a8c"};
|
|
651
673
|
|
|
652
|
-
const _excluded$
|
|
653
|
-
_excluded2$
|
|
674
|
+
const _excluded$q = ["variant", "tone", "size", "shape", "type", "disabled", "loading", "tooltip", "render", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "width", "align"],
|
|
675
|
+
_excluded2$6 = ["variant", "tone", "size", "shape", "type", "disabled", "loading", "tooltip", "render", "onClick", "exceptionallySetClassName", "children", "icon"];
|
|
654
676
|
|
|
655
677
|
function preventDefault(event) {
|
|
656
678
|
event.preventDefault();
|
|
@@ -680,7 +702,7 @@ const Button$1 = /*#__PURE__*/React__namespace.forwardRef(function Button(_ref,
|
|
|
680
702
|
width = 'auto',
|
|
681
703
|
align = 'center'
|
|
682
704
|
} = _ref,
|
|
683
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
705
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
684
706
|
|
|
685
707
|
const isDisabled = loading || disabled;
|
|
686
708
|
const buttonElement = /*#__PURE__*/React__namespace.createElement(react.Role.button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -733,7 +755,7 @@ const IconButton = /*#__PURE__*/React__namespace.forwardRef(function IconButton(
|
|
|
733
755
|
children,
|
|
734
756
|
icon
|
|
735
757
|
} = _ref2,
|
|
736
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
758
|
+
props = _objectWithoutProperties(_ref2, _excluded2$6);
|
|
737
759
|
|
|
738
760
|
const isDisabled = loading || disabled;
|
|
739
761
|
const buttonElement = /*#__PURE__*/React__namespace.createElement(react.Role.button, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -750,209 +772,263 @@ const IconButton = /*#__PURE__*/React__namespace.forwardRef(function IconButton(
|
|
|
750
772
|
}, buttonElement) : buttonElement;
|
|
751
773
|
});
|
|
752
774
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
775
|
+
function CloseIcon(props) {
|
|
776
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
777
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
778
|
+
width: "24",
|
|
779
|
+
height: "24"
|
|
780
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
781
|
+
fill: "currentColor",
|
|
782
|
+
d: "M5.146 5.146a.5.5 0 0 1 .708 0L12 11.293l6.146-6.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 0 .708L12.707 12l6.147 6.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.708 0L12 12.707l-6.146 6.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1 0-.708L11.293 12 5.146 5.854a.5.5 0 0 1-.057-.638z"
|
|
783
|
+
}));
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
var modules_de8ae2e5 = {"info":"_447f8e53","upgrade":"cdb7a2b8","experiment":"_210efb55","warning":"cd91167f","error":"a52763ee","success":"c6229331"};
|
|
787
|
+
|
|
788
|
+
const _excluded$p = ["type"];
|
|
789
|
+
const bannerIconForType = {
|
|
790
|
+
info: BannerInfoIcon,
|
|
791
|
+
upgrade: BannerUpgradeIcon,
|
|
792
|
+
experiment: BannerExperimentIcon,
|
|
793
|
+
warning: BannerWarningIcon,
|
|
794
|
+
error: BannerErrorIcon,
|
|
795
|
+
success: BannerSuccessIcon
|
|
759
796
|
};
|
|
760
797
|
|
|
761
|
-
function
|
|
798
|
+
function BannerIcon(_ref) {
|
|
762
799
|
let {
|
|
763
|
-
|
|
800
|
+
type
|
|
764
801
|
} = _ref,
|
|
765
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
802
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
766
803
|
|
|
767
|
-
const Icon =
|
|
768
|
-
return Icon ? /*#__PURE__*/React__namespace.createElement(Icon, _objectSpread2({}, props)
|
|
804
|
+
const Icon = bannerIconForType[type];
|
|
805
|
+
return Icon ? /*#__PURE__*/React__namespace.createElement(Icon, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
806
|
+
"data-testid": "banner-icon-" + type,
|
|
807
|
+
className: modules_de8ae2e5[type],
|
|
808
|
+
"aria-hidden": true
|
|
809
|
+
})) : null;
|
|
769
810
|
}
|
|
770
811
|
|
|
771
|
-
function
|
|
812
|
+
function BannerInfoIcon(props) {
|
|
772
813
|
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
773
814
|
xmlns: "http://www.w3.org/2000/svg",
|
|
774
815
|
width: "24",
|
|
775
816
|
height: "24",
|
|
776
|
-
|
|
817
|
+
fill: "none"
|
|
777
818
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
819
|
+
fill: "currentColor",
|
|
778
820
|
fillRule: "evenodd",
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
fill: "currentColor"
|
|
821
|
+
d: "M21 12.25a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-8-3.94a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-2.75 1.94a.75.75 0 0 0 0 1.5h1.25v3.5h-1.25a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5H13V11a.752.752 0 0 0-.75-.75h-2Z",
|
|
822
|
+
clipRule: "evenodd"
|
|
782
823
|
}));
|
|
783
824
|
}
|
|
784
825
|
|
|
785
|
-
function
|
|
826
|
+
function BannerUpgradeIcon(props) {
|
|
786
827
|
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
787
828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
788
829
|
width: "24",
|
|
789
830
|
height: "24",
|
|
790
|
-
|
|
831
|
+
fill: "none"
|
|
791
832
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
833
|
+
fill: "currentColor",
|
|
792
834
|
fillRule: "evenodd",
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
835
|
+
d: "M13.974 4.226a2.485 2.485 0 0 0-3.948 0 2.485 2.485 0 0 1-2.304.954A2.485 2.485 0 0 0 4.93 7.972a2.485 2.485 0 0 1-.954 2.304 2.485 2.485 0 0 0 0 3.948 2.485 2.485 0 0 1 .954 2.304 2.485 2.485 0 0 0 2.792 2.792 2.485 2.485 0 0 1 2.304.954 2.485 2.485 0 0 0 3.948 0 2.485 2.485 0 0 1 2.304-.954 2.485 2.485 0 0 0 2.792-2.792 2.485 2.485 0 0 1 .954-2.304 2.485 2.485 0 0 0 0-3.948 2.485 2.485 0 0 1-.954-2.304 2.485 2.485 0 0 0-2.792-2.792 2.485 2.485 0 0 1-2.304-.954ZM11.228 7.08c-.297-.581-1.177-.345-1.144.306l.125 2.437a.605.605 0 0 1-.635.635l-2.437-.125c-.651-.033-.887.847-.306 1.144l2.172 1.11c.32.163.428.567.233.868L7.91 15.503c-.355.548.289 1.192.837.837l2.047-1.326a.605.605 0 0 1 .868.233l1.11 2.172c.297.581 1.177.345 1.144-.306l-.125-2.437a.605.605 0 0 1 .635-.635l2.437.125c.651.033.887-.847.306-1.144l-2.172-1.11a.605.605 0 0 1-.233-.868l1.326-2.047c.355-.548-.289-1.192-.837-.837l-2.047 1.326a.605.605 0 0 1-.868-.233l-1.11-2.172Z",
|
|
836
|
+
clipRule: "evenodd"
|
|
837
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
838
|
+
fill: "#fff",
|
|
839
|
+
d: "M10.084 7.387c-.033-.651.847-.887 1.144-.306l1.11 2.172c.163.32.567.428.868.233l2.047-1.326c.548-.355 1.192.289.837.837l-1.326 2.047a.605.605 0 0 0 .233.868l2.172 1.11c.581.297.345 1.177-.306 1.144l-2.437-.125a.605.605 0 0 0-.635.635l.125 2.437c.033.651-.847.887-1.144.306l-1.11-2.172a.605.605 0 0 0-.868-.233L8.747 16.34c-.548.355-1.192-.289-.837-.837l1.326-2.047a.605.605 0 0 0-.233-.868l-2.172-1.11c-.581-.297-.345-1.177.306-1.144l2.437.125a.605.605 0 0 0 .635-.635l-.125-2.437Z"
|
|
796
840
|
}));
|
|
797
841
|
}
|
|
798
842
|
|
|
799
|
-
function
|
|
843
|
+
function BannerExperimentIcon(props) {
|
|
800
844
|
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
801
845
|
xmlns: "http://www.w3.org/2000/svg",
|
|
802
846
|
width: "24",
|
|
803
|
-
height: "
|
|
804
|
-
|
|
847
|
+
height: "25",
|
|
848
|
+
fill: "none"
|
|
805
849
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
850
|
+
fill: "currentColor",
|
|
806
851
|
fillRule: "evenodd",
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
fill: "currentColor"
|
|
852
|
+
d: "M12 3.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-3 4.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1H14v4.333a2 2 0 0 0 .4 1.2l4.4 5.867a1 1 0 0 1-.8 1.6H6a1 1 0 0 1-.8-1.6l4.4-5.867a2 2 0 0 0 .4-1.2V8.25h-.5a.5.5 0 0 1-.5-.5Zm1.5-2.5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1Zm4.5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-4 3v4.333a3 3 0 0 1-.6 1.8l-.752 1.003c.11.078.245.16.403.226.41.173.985.253 1.682-.188.808-.51 1.547-.67 2.142-.674l-.275-.367a3 3 0 0 1-.6-1.8V8.25h-2Z",
|
|
853
|
+
clipRule: "evenodd"
|
|
810
854
|
}));
|
|
811
855
|
}
|
|
812
856
|
|
|
813
|
-
function
|
|
857
|
+
function BannerWarningIcon(props) {
|
|
814
858
|
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
815
859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
816
860
|
width: "24",
|
|
817
861
|
height: "24",
|
|
818
|
-
|
|
862
|
+
fill: "none"
|
|
819
863
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
864
|
+
fill: "currentColor",
|
|
820
865
|
fillRule: "evenodd",
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
fill: "currentColor"
|
|
866
|
+
d: "m10.272 5.212-7.018 12.03a2 2 0 0 0 1.728 3.008h14.036a2 2 0 0 0 1.727-3.008l-7.018-12.03a2 2 0 0 0-3.455 0ZM13 16.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.014-7.014A.987.987 0 0 0 12 8.75h-.027l-.028.002a.987.987 0 0 0-.93 1.04l.236 4.25c.053.944 1.445.944 1.498 0l.236-4.25.001-.028v-.028Z",
|
|
867
|
+
clipRule: "evenodd"
|
|
824
868
|
}));
|
|
825
869
|
}
|
|
826
870
|
|
|
827
|
-
function
|
|
871
|
+
function BannerErrorIcon(props) {
|
|
828
872
|
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
829
873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
830
874
|
width: "24",
|
|
831
|
-
height: "24"
|
|
875
|
+
height: "24",
|
|
876
|
+
fill: "none"
|
|
832
877
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
833
878
|
fill: "currentColor",
|
|
834
|
-
|
|
879
|
+
fillRule: "evenodd",
|
|
880
|
+
d: "M12.987 2.5a2.07 2.07 0 0 0-1.974 0L4.048 6.287A1.989 1.989 0 0 0 3 8.032v7.436c0 .725.401 1.393 1.048 1.745L11.013 21a2.07 2.07 0 0 0 1.974 0l6.965-3.787A1.989 1.989 0 0 0 21 15.468V8.032c0-.725-.401-1.393-1.048-1.745L12.987 2.5ZM12 7.25a.987.987 0 0 1 .986 1.014l-.001.027-.236 4.25c-.053.945-1.445.945-1.498 0l-.236-4.25a.987.987 0 0 1 .93-1.04h.028L12 7.25Zm1 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
|
|
881
|
+
clipRule: "evenodd"
|
|
835
882
|
}));
|
|
836
883
|
}
|
|
837
884
|
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
"aria-live": "polite",
|
|
851
|
-
borderRadius: "full",
|
|
852
|
-
className: [modules_6205a58e.container, getClassNames(modules_6205a58e, 'tone', tone)]
|
|
853
|
-
}, /*#__PURE__*/React__namespace.createElement(Columns, {
|
|
854
|
-
space: "small",
|
|
855
|
-
alignY: "center"
|
|
856
|
-
}, /*#__PURE__*/React__namespace.createElement(Column, {
|
|
857
|
-
width: "content"
|
|
858
|
-
}, /*#__PURE__*/React__namespace.createElement(AlertIcon, {
|
|
859
|
-
tone: tone,
|
|
860
|
-
className: modules_6205a58e.icon
|
|
861
|
-
})), /*#__PURE__*/React__namespace.createElement(Column, null, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
862
|
-
paddingY: "xsmall",
|
|
863
|
-
paddingRight: onClose != null && closeLabel != null ? undefined : 'small',
|
|
864
|
-
display: "flex",
|
|
865
|
-
alignItems: "center",
|
|
866
|
-
className: modules_6205a58e.content
|
|
867
|
-
}, children)), onClose != null && closeLabel != null ? /*#__PURE__*/React__namespace.createElement(Column, {
|
|
868
|
-
width: "content"
|
|
869
|
-
}, /*#__PURE__*/React__namespace.createElement(IconButton, {
|
|
870
|
-
variant: "quaternary",
|
|
871
|
-
size: "small",
|
|
872
|
-
onClick: onClose,
|
|
873
|
-
"aria-label": closeLabel,
|
|
874
|
-
icon: /*#__PURE__*/React__namespace.createElement(CloseIcon, null),
|
|
875
|
-
style: {
|
|
876
|
-
// @ts-expect-error not sure how to make TypeScript understand custom CSS properties
|
|
877
|
-
'--reactist-btn-hover-fill': 'transparent'
|
|
878
|
-
}
|
|
879
|
-
})) : null));
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
let uid = 0;
|
|
883
|
-
|
|
884
|
-
function uniqueId() {
|
|
885
|
-
return uid++;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
function generateElementId(prefix) {
|
|
889
|
-
const num = uniqueId();
|
|
890
|
-
return prefix + "-" + num;
|
|
885
|
+
function BannerSuccessIcon(props) {
|
|
886
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
887
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
888
|
+
width: "24",
|
|
889
|
+
height: "24",
|
|
890
|
+
fill: "none"
|
|
891
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
892
|
+
fill: "currentColor",
|
|
893
|
+
fillRule: "evenodd",
|
|
894
|
+
d: "M21 12.25a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-5.555-2.99a.75.75 0 0 1 1.06 1.06l-5.303 5.303a.748.748 0 0 1-1.061 0L7.666 13.15a.75.75 0 1 1 1.06-1.06l1.945 1.944 4.774-4.773Z",
|
|
895
|
+
clipRule: "evenodd"
|
|
896
|
+
}));
|
|
891
897
|
}
|
|
892
|
-
function useId(providedId) {
|
|
893
|
-
const ref = React__namespace.useRef(providedId != null ? providedId : null);
|
|
894
898
|
|
|
895
|
-
|
|
896
|
-
ref.current = generateElementId('element');
|
|
897
|
-
}
|
|
899
|
+
var modules_3d05deee = {"container":"fdc181b3"};
|
|
898
900
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
+
const _excluded$o = ["as", "openInNewTab", "exceptionallySetClassName"];
|
|
902
|
+
const TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
903
|
+
let {
|
|
904
|
+
as = 'a',
|
|
905
|
+
openInNewTab = false,
|
|
906
|
+
exceptionallySetClassName
|
|
907
|
+
} = _ref,
|
|
908
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
901
909
|
|
|
902
|
-
|
|
910
|
+
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
911
|
+
as: as,
|
|
912
|
+
display: "inline",
|
|
913
|
+
className: [exceptionallySetClassName, modules_3d05deee.container],
|
|
914
|
+
ref: ref,
|
|
915
|
+
target: openInNewTab ? '_blank' : undefined,
|
|
916
|
+
rel: openInNewTab ? 'noopener noreferrer' : undefined
|
|
917
|
+
}));
|
|
918
|
+
});
|
|
903
919
|
|
|
904
|
-
const _excluded$n = ["id", "
|
|
920
|
+
const _excluded$n = ["id", "type", "title", "description", "action", "icon", "image", "inlineLinks", "closeLabel", "onClose"],
|
|
921
|
+
_excluded2$5 = ["label"],
|
|
922
|
+
_excluded3$2 = ["type", "label"],
|
|
923
|
+
_excluded4$2 = ["type", "label", "variant"];
|
|
905
924
|
const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(_ref, ref) {
|
|
906
925
|
let {
|
|
907
926
|
id,
|
|
908
|
-
|
|
909
|
-
icon,
|
|
927
|
+
type,
|
|
910
928
|
title,
|
|
911
929
|
description,
|
|
912
|
-
action
|
|
930
|
+
action,
|
|
931
|
+
icon,
|
|
932
|
+
image,
|
|
933
|
+
inlineLinks,
|
|
934
|
+
closeLabel,
|
|
935
|
+
onClose
|
|
913
936
|
} = _ref,
|
|
914
937
|
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
915
938
|
|
|
916
939
|
const titleId = useId();
|
|
917
940
|
const descriptionId = useId();
|
|
941
|
+
const closeButton = onClose ? /*#__PURE__*/React__namespace.createElement(IconButton, {
|
|
942
|
+
exceptionallySetClassName: modules_afa80466.closeButton,
|
|
943
|
+
variant: "quaternary",
|
|
944
|
+
onClick: onClose,
|
|
945
|
+
icon: /*#__PURE__*/React__namespace.createElement(CloseIcon, null),
|
|
946
|
+
"aria-label": closeLabel != null ? closeLabel : 'Close banner'
|
|
947
|
+
}) : null;
|
|
918
948
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
919
949
|
ref: ref,
|
|
920
950
|
id: id,
|
|
951
|
+
display: "flex",
|
|
952
|
+
flexDirection: "column",
|
|
953
|
+
justifyContent: "center",
|
|
921
954
|
role: "status",
|
|
922
|
-
"aria-labelledby": titleId,
|
|
923
|
-
"aria-describedby": descriptionId,
|
|
955
|
+
"aria-labelledby": title ? titleId : descriptionId,
|
|
956
|
+
"aria-describedby": title ? descriptionId : undefined,
|
|
924
957
|
"aria-live": "polite",
|
|
925
958
|
tabIndex: 0,
|
|
926
|
-
borderRadius: "
|
|
927
|
-
className:
|
|
928
|
-
}), /*#__PURE__*/React__namespace.createElement(
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
"
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
},
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
959
|
+
borderRadius: "full",
|
|
960
|
+
className: modules_afa80466.banner
|
|
961
|
+
}), image ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
962
|
+
className: modules_afa80466.image
|
|
963
|
+
}, image) : null, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
964
|
+
className: modules_afa80466.content,
|
|
965
|
+
display: "flex",
|
|
966
|
+
gap: "small",
|
|
967
|
+
alignItems: "center"
|
|
968
|
+
}, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
969
|
+
className: modules_afa80466.staticContent,
|
|
970
|
+
display: "flex",
|
|
971
|
+
gap: "small",
|
|
972
|
+
flexGrow: 1
|
|
973
|
+
}, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
974
|
+
className: modules_afa80466.icon
|
|
975
|
+
}, type === 'neutral' ? icon : /*#__PURE__*/React__namespace.createElement(BannerIcon, {
|
|
976
|
+
type: type
|
|
977
|
+
}), closeButton), /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
978
|
+
className: modules_afa80466.copy,
|
|
979
|
+
display: "flex",
|
|
980
|
+
flexDirection: "column"
|
|
981
|
+
}, title ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
944
982
|
id: titleId,
|
|
945
|
-
className:
|
|
946
|
-
|
|
947
|
-
modules_afa80466["title-without-description"], modules_afa80466["title-" + tone]]
|
|
948
|
-
}, title), description ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
983
|
+
className: modules_afa80466.title
|
|
984
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
949
985
|
id: descriptionId,
|
|
950
|
-
className: [modules_afa80466.description, modules_afa80466
|
|
951
|
-
}, description
|
|
952
|
-
|
|
953
|
-
|
|
986
|
+
className: [modules_afa80466.description, title ? modules_afa80466.secondary : null]
|
|
987
|
+
}, description, inlineLinks == null ? void 0 : inlineLinks.map((_ref2, index) => {
|
|
988
|
+
let {
|
|
989
|
+
label
|
|
990
|
+
} = _ref2,
|
|
991
|
+
props = _objectWithoutProperties(_ref2, _excluded2$5);
|
|
992
|
+
|
|
993
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
|
|
994
|
+
key: index
|
|
995
|
+
}, /*#__PURE__*/React__namespace.createElement(TextLink, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
996
|
+
exceptionallySetClassName: modules_afa80466.inlineLink
|
|
997
|
+
}), label), index < inlineLinks.length - 1 ? /*#__PURE__*/React__namespace.createElement("span", null, " \u00B7 ") : '');
|
|
998
|
+
})))), action || closeButton ? /*#__PURE__*/React__namespace.createElement(Box$1, {
|
|
999
|
+
className: modules_afa80466.actions,
|
|
1000
|
+
display: "flex",
|
|
1001
|
+
gap: "small"
|
|
1002
|
+
}, (action == null ? void 0 : action.type) === 'button' ? /*#__PURE__*/React__namespace.createElement(ActionButton, _objectSpread2({}, action)) : null, (action == null ? void 0 : action.type) === 'link' ? /*#__PURE__*/React__namespace.createElement(ActionLink, _objectSpread2({}, action)) : null, closeButton) : null));
|
|
954
1003
|
});
|
|
955
1004
|
|
|
1005
|
+
function ActionButton(_ref3) {
|
|
1006
|
+
let {
|
|
1007
|
+
type,
|
|
1008
|
+
label
|
|
1009
|
+
} = _ref3,
|
|
1010
|
+
props = _objectWithoutProperties(_ref3, _excluded3$2);
|
|
1011
|
+
|
|
1012
|
+
return /*#__PURE__*/React__namespace.createElement(Button$1, _objectSpread2({}, props), label);
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
function ActionLink(_ref4) {
|
|
1016
|
+
let {
|
|
1017
|
+
type,
|
|
1018
|
+
label,
|
|
1019
|
+
variant
|
|
1020
|
+
} = _ref4,
|
|
1021
|
+
props = _objectWithoutProperties(_ref4, _excluded4$2);
|
|
1022
|
+
|
|
1023
|
+
return /*#__PURE__*/React__namespace.createElement(Button$1, {
|
|
1024
|
+
variant: variant,
|
|
1025
|
+
render: /*#__PURE__*/React__namespace.createElement("a", _objectSpread2({
|
|
1026
|
+
rel: "noopener noreferrer",
|
|
1027
|
+
target: "_blank"
|
|
1028
|
+
}, props))
|
|
1029
|
+
}, label);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
956
1032
|
const _excluded$m = ["size", "exceptionallySetClassName"];
|
|
957
1033
|
const sizeMapping = {
|
|
958
1034
|
xsmall: 16,
|
|
@@ -985,6 +1061,80 @@ function Loading(_ref) {
|
|
|
985
1061
|
}));
|
|
986
1062
|
}
|
|
987
1063
|
|
|
1064
|
+
const _excluded$l = ["tone"];
|
|
1065
|
+
const alertIconForTone = {
|
|
1066
|
+
info: AlertInfoIcon,
|
|
1067
|
+
positive: AlertPositiveIcon,
|
|
1068
|
+
caution: AlertCautionIcon,
|
|
1069
|
+
critical: AlertCriticalIcon
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
function AlertIcon(_ref) {
|
|
1073
|
+
let {
|
|
1074
|
+
tone
|
|
1075
|
+
} = _ref,
|
|
1076
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
1077
|
+
|
|
1078
|
+
const Icon = alertIconForTone[tone];
|
|
1079
|
+
return Icon ? /*#__PURE__*/React__namespace.createElement(Icon, _objectSpread2({}, props)) : null;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
function AlertInfoIcon(props) {
|
|
1083
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
1084
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1085
|
+
width: "24",
|
|
1086
|
+
height: "24",
|
|
1087
|
+
viewBox: "0 0 24 24"
|
|
1088
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1089
|
+
fillRule: "evenodd",
|
|
1090
|
+
clipRule: "evenodd",
|
|
1091
|
+
d: "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-8-3.94a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM10.25 10a.75.75 0 0 0 0 1.5h1.25V15h-1.25a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5H13v-4.25a.75.75 0 0 0-.75-.75h-2Z",
|
|
1092
|
+
fill: "currentColor"
|
|
1093
|
+
}));
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
function AlertPositiveIcon(props) {
|
|
1097
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
1098
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1099
|
+
width: "24",
|
|
1100
|
+
height: "24",
|
|
1101
|
+
viewBox: "0 0 24 24"
|
|
1102
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1103
|
+
fillRule: "evenodd",
|
|
1104
|
+
clipRule: "evenodd",
|
|
1105
|
+
d: "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-5.555-2.99a.75.75 0 0 1 1.06 1.06l-5.303 5.304a.748.748 0 0 1-1.061 0l-2.475-2.475a.75.75 0 0 1 1.06-1.06l1.945 1.944 4.774-4.773Z",
|
|
1106
|
+
fill: "currentColor"
|
|
1107
|
+
}));
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
function AlertCautionIcon(props) {
|
|
1111
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
1112
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1113
|
+
width: "24",
|
|
1114
|
+
height: "24",
|
|
1115
|
+
viewBox: "0 0 24 24"
|
|
1116
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1117
|
+
fillRule: "evenodd",
|
|
1118
|
+
clipRule: "evenodd",
|
|
1119
|
+
d: "m10.272 4.962-7.018 12.03A2 2 0 0 0 4.982 20h14.036a2 2 0 0 0 1.727-3.008l-7.018-12.03a2 2 0 0 0-3.455 0ZM13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.014-7.013A.987.987 0 0 0 12 8.5h-.028l-.027.002a.987.987 0 0 0-.93 1.04l.236 4.25c.052.944 1.445.944 1.498 0l.236-4.25a1.925 1.925 0 0 0 .001-.055Z",
|
|
1120
|
+
fill: "currentColor"
|
|
1121
|
+
}));
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
function AlertCriticalIcon(props) {
|
|
1125
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _objectSpread2({
|
|
1126
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1127
|
+
width: "24",
|
|
1128
|
+
height: "24",
|
|
1129
|
+
viewBox: "0 0 24 24"
|
|
1130
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1131
|
+
fillRule: "evenodd",
|
|
1132
|
+
clipRule: "evenodd",
|
|
1133
|
+
d: "M12.9866 2.25049C12.3729 1.91683 11.6271 1.91683 11.0134 2.25049L4.04793 6.03744C3.40122 6.38904 2.99999 7.05702 2.99999 7.78208V15.2184C2.99999 15.9435 3.40122 16.6115 4.04793 16.963L11.0134 20.75C11.6271 21.0837 12.3729 21.0837 12.9866 20.75L19.9521 16.963C20.5988 16.6114 21 15.9435 21 15.2184V7.78208C21 7.05701 20.5988 6.38904 19.9521 6.03744L12.9866 2.25049ZM12 7.00024C12.5448 7.00024 12.9865 7.44191 12.9865 7.98674C12.9864 8.00043 12.9863 8.00727 12.9861 8.01411C12.9859 8.02095 12.9856 8.02779 12.985 8.04146L12.7489 12.2918C12.6964 13.2364 11.3036 13.2364 11.2512 12.2918L11.015 8.04146C10.9848 7.49747 11.4013 7.03198 11.9453 7.00176L11.9726 7.00062L12 7.00024ZM13 15.0002C13 15.5525 12.5523 16.0002 12 16.0002C11.4477 16.0002 11 15.5525 11 15.0002C11 14.448 11.4477 14.0002 12 14.0002C12.5523 14.0002 13 14.448 13 15.0002Z",
|
|
1134
|
+
fill: "currentColor"
|
|
1135
|
+
}));
|
|
1136
|
+
}
|
|
1137
|
+
|
|
988
1138
|
var modules_1b547e7e = {"container":"_2e62197a","content":"b7e8d846","icon":"_1c02ef4a","tone-info":"_940b3b19","tone-positive":"_6261fc66","tone-caution":"_255e20fe","tone-critical":"e225437d"};
|
|
989
1139
|
|
|
990
1140
|
function Notice({
|
|
@@ -1012,7 +1162,7 @@ function Notice({
|
|
|
1012
1162
|
|
|
1013
1163
|
var modules_a9637dd3 = {"text":"a83bd4e0","size-caption":"_266d6623","size-copy":"a8d37c6e","size-subtitle":"_39f4eb1f","weight-semibold":"_7be5c531","weight-bold":"e214ff2e","tone-secondary":"_6a3e5ade","tone-danger":"_8f5b5f2b","tone-positive":"_9ae47ae4","lineClampMultipleLines":"_969f18f7","lineClamp-1":"_2f303ac3","lineClamp-2":"d3e04245","lineClamp-3":"_33411704","lineClamp-4":"bfc32640","lineClamp-5":"f813c82f"};
|
|
1014
1164
|
|
|
1015
|
-
const _excluded$
|
|
1165
|
+
const _excluded$k = ["as", "size", "weight", "tone", "align", "children", "lineClamp", "exceptionallySetClassName"];
|
|
1016
1166
|
const Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
1017
1167
|
let {
|
|
1018
1168
|
as,
|
|
@@ -1024,7 +1174,7 @@ const Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
1024
1174
|
lineClamp,
|
|
1025
1175
|
exceptionallySetClassName
|
|
1026
1176
|
} = _ref,
|
|
1027
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1177
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1028
1178
|
|
|
1029
1179
|
const lineClampMultipleLines = typeof lineClamp === 'string' ? Number(lineClamp) > 1 : (lineClamp != null ? lineClamp : 1) > 1;
|
|
1030
1180
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -1040,7 +1190,7 @@ const Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
1040
1190
|
|
|
1041
1191
|
var modules_d11e18f0 = {"stackedToastsView":"_616cc3f3","toastContainer":"_1b5f8e86","slot":"ce2e3476"};
|
|
1042
1192
|
|
|
1043
|
-
const _excluded$
|
|
1193
|
+
const _excluded$j = ["message", "description", "icon", "action", "onDismiss", "dismissLabel"];
|
|
1044
1194
|
/**
|
|
1045
1195
|
* A toast that shows a message, and an optional action associated with it.
|
|
1046
1196
|
*
|
|
@@ -1065,7 +1215,7 @@ const StaticToast = /*#__PURE__*/React__default["default"].forwardRef(function T
|
|
|
1065
1215
|
onDismiss,
|
|
1066
1216
|
dismissLabel = 'Close'
|
|
1067
1217
|
} = _ref,
|
|
1068
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1218
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1069
1219
|
|
|
1070
1220
|
return /*#__PURE__*/React__default["default"].createElement(Box$1, _objectSpread2({
|
|
1071
1221
|
ref: ref,
|
|
@@ -1286,7 +1436,7 @@ function useToastsAnimation() {
|
|
|
1286
1436
|
};
|
|
1287
1437
|
}
|
|
1288
1438
|
|
|
1289
|
-
const _excluded$
|
|
1439
|
+
const _excluded$i = ["toastId"];
|
|
1290
1440
|
/** @private */
|
|
1291
1441
|
|
|
1292
1442
|
const InternalToast = /*#__PURE__*/React__default["default"].forwardRef(function InternalToast({
|
|
@@ -1417,7 +1567,7 @@ function ToastsProvider({
|
|
|
1417
1567
|
let {
|
|
1418
1568
|
toastId
|
|
1419
1569
|
} = _ref,
|
|
1420
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1570
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1421
1571
|
|
|
1422
1572
|
return /*#__PURE__*/React__default["default"].createElement(InternalToast, _objectSpread2({
|
|
1423
1573
|
key: toastId,
|
|
@@ -1493,7 +1643,7 @@ function Toast(props) {
|
|
|
1493
1643
|
|
|
1494
1644
|
var modules_949d2ff4 = {"heading":"bff24867","weight-medium":"_9b540c61","weight-light":"c6729907","tone-secondary":"d6507f70","tone-danger":"d1846d93","size-largest":"_7cbdd1ba","size-larger":"b3e14969","size-smaller":"be14a265","lineClampMultipleLines":"_71391f13","lineClamp-1":"_97298b1b","lineClamp-2":"_6d357d76","lineClamp-3":"d820b451","lineClamp-4":"_8d37487d","lineClamp-5":"_5215b4d7"};
|
|
1495
1645
|
|
|
1496
|
-
const _excluded$
|
|
1646
|
+
const _excluded$h = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
|
|
1497
1647
|
const Heading = /*#__PURE__*/React__namespace.forwardRef(function Heading(_ref, ref) {
|
|
1498
1648
|
let {
|
|
1499
1649
|
level,
|
|
@@ -1505,7 +1655,7 @@ const Heading = /*#__PURE__*/React__namespace.forwardRef(function Heading(_ref,
|
|
|
1505
1655
|
align,
|
|
1506
1656
|
exceptionallySetClassName
|
|
1507
1657
|
} = _ref,
|
|
1508
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1658
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1509
1659
|
|
|
1510
1660
|
// In TypeScript v4.1, this would be properly recognized without needing the type assertion
|
|
1511
1661
|
// https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#template-literal-types
|
|
@@ -1524,7 +1674,7 @@ const Heading = /*#__PURE__*/React__namespace.forwardRef(function Heading(_ref,
|
|
|
1524
1674
|
|
|
1525
1675
|
var modules_8ebe6db0 = {"prose":"_37468e52","darkModeTypography":"_6abbd828"};
|
|
1526
1676
|
|
|
1527
|
-
const _excluded$
|
|
1677
|
+
const _excluded$g = ["darkModeTypography", "exceptionallySetClassName"];
|
|
1528
1678
|
/**
|
|
1529
1679
|
* Used to style HTML you don’t control, like HTML content generated from Markdown.
|
|
1530
1680
|
*/
|
|
@@ -1534,34 +1684,13 @@ function Prose(_ref) {
|
|
|
1534
1684
|
darkModeTypography,
|
|
1535
1685
|
exceptionallySetClassName
|
|
1536
1686
|
} = _ref,
|
|
1537
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1687
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1538
1688
|
|
|
1539
1689
|
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1540
1690
|
className: [modules_8ebe6db0.prose, darkModeTypography ? modules_8ebe6db0.darkModeTypography : null, exceptionallySetClassName]
|
|
1541
1691
|
}));
|
|
1542
1692
|
}
|
|
1543
1693
|
|
|
1544
|
-
var modules_3d05deee = {"container":"fdc181b3"};
|
|
1545
|
-
|
|
1546
|
-
const _excluded$g = ["as", "openInNewTab", "exceptionallySetClassName"];
|
|
1547
|
-
const TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
1548
|
-
let {
|
|
1549
|
-
as = 'a',
|
|
1550
|
-
openInNewTab = false,
|
|
1551
|
-
exceptionallySetClassName
|
|
1552
|
-
} = _ref,
|
|
1553
|
-
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1554
|
-
|
|
1555
|
-
return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1556
|
-
as: as,
|
|
1557
|
-
display: "inline",
|
|
1558
|
-
className: [exceptionallySetClassName, modules_3d05deee.container],
|
|
1559
|
-
ref: ref,
|
|
1560
|
-
target: openInNewTab ? '_blank' : undefined,
|
|
1561
|
-
rel: openInNewTab ? 'noopener noreferrer' : undefined
|
|
1562
|
-
}));
|
|
1563
|
-
});
|
|
1564
|
-
|
|
1565
1694
|
const _excluded$f = ["checked", "indeterminate", "disabled"];
|
|
1566
1695
|
const svgPath = {
|
|
1567
1696
|
checked: 'M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z',
|
|
@@ -3895,7 +4024,6 @@ Select.defaultProps = {
|
|
|
3895
4024
|
disabled: false
|
|
3896
4025
|
};
|
|
3897
4026
|
|
|
3898
|
-
exports.Alert = Alert;
|
|
3899
4027
|
exports.Avatar = Avatar;
|
|
3900
4028
|
exports.Badge = Badge;
|
|
3901
4029
|
exports.Banner = Banner;
|