@equinor/eds-core-react 0.25.0 → 0.26.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/eds-core-react.cjs.js +1053 -566
- package/dist/esm/components/Autocomplete/Autocomplete.js +3 -3
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Menu/Menu.js +2 -2
- package/dist/esm/components/Pagination/Pagination.js +3 -3
- package/dist/esm/components/Popover/Popover.js +2 -2
- package/dist/esm/components/SideBar/SideBar.context.js +53 -0
- package/dist/esm/components/SideBar/SideBar.js +79 -0
- package/dist/esm/components/SideBar/SideBar.tokens.js +110 -0
- package/dist/esm/components/SideBar/SideBarButton/index.js +86 -0
- package/dist/esm/components/SideBar/SideBarContent.js +27 -0
- package/dist/esm/components/SideBar/SideBarFooter.js +27 -0
- package/dist/esm/components/SideBar/SideBarToggle.js +57 -0
- package/dist/esm/components/SideBar/SidebarLink/index.js +106 -0
- package/dist/esm/components/SideBar/index.js +20 -0
- package/dist/esm/components/TextField/TextField.js +2 -2
- package/dist/esm/components/Tooltip/Tooltip.js +1 -1
- package/dist/esm/components/TopBar/Header.js +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/types/components/SideBar/SideBar.context.d.ts +15 -0
- package/dist/types/components/SideBar/SideBar.d.ts +5 -0
- package/dist/types/components/SideBar/SideBar.tokens.d.ts +2 -0
- package/dist/types/components/SideBar/SideBarButton/index.d.ts +8 -0
- package/dist/types/components/SideBar/SideBarContent.d.ts +4 -0
- package/dist/types/components/SideBar/SideBarFooter.d.ts +4 -0
- package/dist/types/components/SideBar/SideBarToggle.d.ts +4 -0
- package/dist/types/components/SideBar/SidebarLink/index.d.ts +18 -0
- package/dist/types/components/SideBar/index.d.ts +17 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -50,11 +50,11 @@ var ReactDom__namespace = /*#__PURE__*/_interopNamespace(ReactDom);
|
|
|
50
50
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
51
51
|
|
|
52
52
|
var buttonTypography = edsTokens.tokens.typography.navigation.button,
|
|
53
|
-
_tokens$colors$intera$
|
|
54
|
-
disabledTextColor$3 = _tokens$colors$intera$
|
|
55
|
-
disabledBorderColor$2 = _tokens$colors$intera$
|
|
56
|
-
disabledColor$3 = _tokens$colors$intera$
|
|
57
|
-
medium$
|
|
53
|
+
_tokens$colors$intera$l = edsTokens.tokens.colors.interactive,
|
|
54
|
+
disabledTextColor$3 = _tokens$colors$intera$l.disabled__text.rgba,
|
|
55
|
+
disabledBorderColor$2 = _tokens$colors$intera$l.disabled__border.rgba,
|
|
56
|
+
disabledColor$3 = _tokens$colors$intera$l.disabled__fill.rgba,
|
|
57
|
+
medium$7 = edsTokens.tokens.spacings.comfortable.medium,
|
|
58
58
|
_tokens$shape$3 = edsTokens.tokens.shape,
|
|
59
59
|
_tokens$shape$button = _tokens$shape$3.button,
|
|
60
60
|
buttonHeight = _tokens$shape$button.minHeight,
|
|
@@ -81,8 +81,8 @@ var button = {
|
|
|
81
81
|
spacings: {
|
|
82
82
|
top: 'var(--eds_button__padding_y, 0)',
|
|
83
83
|
bottom: 'var(--eds_button__padding_y, 0)',
|
|
84
|
-
left: "var(--eds_button__padding_x, ".concat(medium$
|
|
85
|
-
right: "var(--eds_button__padding_x, ".concat(medium$
|
|
84
|
+
left: "var(--eds_button__padding_x, ".concat(medium$7, ")"),
|
|
85
|
+
right: "var(--eds_button__padding_x, ".concat(medium$7, ")")
|
|
86
86
|
},
|
|
87
87
|
clickbound: {
|
|
88
88
|
height: clicboundHeight$2,
|
|
@@ -372,20 +372,20 @@ var mergeDeepRight = /*#__PURE__*/_curry2(function mergeDeepRight(lObj, rObj) {
|
|
|
372
372
|
|
|
373
373
|
var mergeDeepRight$1 = mergeDeepRight;
|
|
374
374
|
|
|
375
|
-
var _tokens$colors$
|
|
376
|
-
primaryWhite = _tokens$colors$
|
|
377
|
-
_tokens$colors$intera$
|
|
378
|
-
primaryColor$7 = _tokens$colors$intera$
|
|
379
|
-
primaryHoverColor$2 = _tokens$colors$intera$
|
|
380
|
-
secondaryColor$3 = _tokens$colors$intera$
|
|
381
|
-
secondaryHoverColor$3 = _tokens$colors$intera$
|
|
382
|
-
dangerColor$3 = _tokens$colors$intera$
|
|
383
|
-
dangerHoverColor$3 = _tokens$colors$intera$
|
|
375
|
+
var _tokens$colors$k = edsTokens.tokens.colors,
|
|
376
|
+
primaryWhite$2 = _tokens$colors$k.text.static_icons__primary_white.rgba,
|
|
377
|
+
_tokens$colors$intera$k = _tokens$colors$k.interactive,
|
|
378
|
+
primaryColor$7 = _tokens$colors$intera$k.primary__resting.rgba,
|
|
379
|
+
primaryHoverColor$2 = _tokens$colors$intera$k.primary__hover.rgba,
|
|
380
|
+
secondaryColor$3 = _tokens$colors$intera$k.secondary__resting.rgba,
|
|
381
|
+
secondaryHoverColor$3 = _tokens$colors$intera$k.secondary__link_hover.rgba,
|
|
382
|
+
dangerColor$3 = _tokens$colors$intera$k.danger__resting.rgba,
|
|
383
|
+
dangerHoverColor$3 = _tokens$colors$intera$k.danger__hover.rgba,
|
|
384
384
|
buttonBorderRadius$1 = edsTokens.tokens.shape.button.borderRadius;
|
|
385
385
|
var primary$a = mergeDeepRight$1(button, {
|
|
386
386
|
background: primaryColor$7,
|
|
387
387
|
typography: {
|
|
388
|
-
color: primaryWhite
|
|
388
|
+
color: primaryWhite$2
|
|
389
389
|
},
|
|
390
390
|
border: {
|
|
391
391
|
type: 'border',
|
|
@@ -429,16 +429,16 @@ var danger$6 = mergeDeepRight$1(primary$a, {
|
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
|
|
432
|
-
var _tokens$colors$intera$
|
|
433
|
-
primaryColor$6 = _tokens$colors$intera$
|
|
434
|
-
primaryHoverColor$1 = _tokens$colors$intera$
|
|
435
|
-
primaryHoverAltColor$2 = _tokens$colors$intera$
|
|
436
|
-
secondaryColor$2 = _tokens$colors$intera$
|
|
437
|
-
secondaryHoverColor$2 = _tokens$colors$intera$
|
|
438
|
-
secondaryHoverAltColor$2 = _tokens$colors$intera$
|
|
439
|
-
dangerColor$2 = _tokens$colors$intera$
|
|
440
|
-
dangerHoverColor$2 = _tokens$colors$intera$
|
|
441
|
-
dangerHoverAltColor$2 = _tokens$colors$intera$
|
|
432
|
+
var _tokens$colors$intera$j = edsTokens.tokens.colors.interactive,
|
|
433
|
+
primaryColor$6 = _tokens$colors$intera$j.primary__resting.rgba,
|
|
434
|
+
primaryHoverColor$1 = _tokens$colors$intera$j.primary__hover.rgba,
|
|
435
|
+
primaryHoverAltColor$2 = _tokens$colors$intera$j.primary__hover_alt.rgba,
|
|
436
|
+
secondaryColor$2 = _tokens$colors$intera$j.secondary__resting.rgba,
|
|
437
|
+
secondaryHoverColor$2 = _tokens$colors$intera$j.secondary__link_hover.rgba,
|
|
438
|
+
secondaryHoverAltColor$2 = _tokens$colors$intera$j.secondary__highlight.rgba,
|
|
439
|
+
dangerColor$2 = _tokens$colors$intera$j.danger__resting.rgba,
|
|
440
|
+
dangerHoverColor$2 = _tokens$colors$intera$j.danger__hover.rgba,
|
|
441
|
+
dangerHoverAltColor$2 = _tokens$colors$intera$j.danger__highlight.rgba,
|
|
442
442
|
buttonBorderRadius = edsTokens.tokens.shape.button.borderRadius;
|
|
443
443
|
var primary$9 = mergeDeepRight$1(button, {
|
|
444
444
|
typography: {
|
|
@@ -508,16 +508,16 @@ var danger$5 = mergeDeepRight$1(primary$9, {
|
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
510
|
|
|
511
|
-
var _tokens$colors$intera$
|
|
512
|
-
primaryColor$5 = _tokens$colors$intera$
|
|
513
|
-
primaryHoverColor = _tokens$colors$intera$
|
|
514
|
-
primaryHoverAltColor$1 = _tokens$colors$intera$
|
|
515
|
-
secondaryColor$1 = _tokens$colors$intera$
|
|
516
|
-
secondaryHoverColor$1 = _tokens$colors$intera$
|
|
517
|
-
secondaryHoverAltColor$1 = _tokens$colors$intera$
|
|
518
|
-
dangerColor$1 = _tokens$colors$intera$
|
|
519
|
-
dangerHoverColor$1 = _tokens$colors$intera$
|
|
520
|
-
dangerHoverAltColor$1 = _tokens$colors$intera$
|
|
511
|
+
var _tokens$colors$intera$i = edsTokens.tokens.colors.interactive,
|
|
512
|
+
primaryColor$5 = _tokens$colors$intera$i.primary__resting.rgba,
|
|
513
|
+
primaryHoverColor = _tokens$colors$intera$i.primary__hover.rgba,
|
|
514
|
+
primaryHoverAltColor$1 = _tokens$colors$intera$i.primary__hover_alt.rgba,
|
|
515
|
+
secondaryColor$1 = _tokens$colors$intera$i.secondary__resting.rgba,
|
|
516
|
+
secondaryHoverColor$1 = _tokens$colors$intera$i.secondary__link_hover.rgba,
|
|
517
|
+
secondaryHoverAltColor$1 = _tokens$colors$intera$i.secondary__highlight.rgba,
|
|
518
|
+
dangerColor$1 = _tokens$colors$intera$i.danger__resting.rgba,
|
|
519
|
+
dangerHoverColor$1 = _tokens$colors$intera$i.danger__hover.rgba,
|
|
520
|
+
dangerHoverAltColor$1 = _tokens$colors$intera$i.danger__highlight.rgba;
|
|
521
521
|
var primary$8 = mergeDeepRight$1(button, {
|
|
522
522
|
typography: {
|
|
523
523
|
color: primaryColor$5
|
|
@@ -564,15 +564,15 @@ var danger$4 = mergeDeepRight$1(primary$8, {
|
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
|
|
567
|
-
var _tokens$colors$intera$
|
|
568
|
-
primaryColor$4 = _tokens$colors$intera$
|
|
569
|
-
primaryHoverAltColor = _tokens$colors$intera$
|
|
570
|
-
secondaryColor = _tokens$colors$intera$
|
|
571
|
-
secondaryHoverColor = _tokens$colors$intera$
|
|
572
|
-
secondaryHoverAltColor = _tokens$colors$intera$
|
|
573
|
-
dangerColor = _tokens$colors$intera$
|
|
574
|
-
dangerHoverColor = _tokens$colors$intera$
|
|
575
|
-
dangerHoverAltColor = _tokens$colors$intera$
|
|
567
|
+
var _tokens$colors$intera$h = edsTokens.tokens.colors.interactive,
|
|
568
|
+
primaryColor$4 = _tokens$colors$intera$h.primary__resting.rgba,
|
|
569
|
+
primaryHoverAltColor = _tokens$colors$intera$h.primary__hover_alt.rgba,
|
|
570
|
+
secondaryColor = _tokens$colors$intera$h.secondary__resting.rgba,
|
|
571
|
+
secondaryHoverColor = _tokens$colors$intera$h.secondary__link_hover.rgba,
|
|
572
|
+
secondaryHoverAltColor = _tokens$colors$intera$h.secondary__highlight.rgba,
|
|
573
|
+
dangerColor = _tokens$colors$intera$h.danger__resting.rgba,
|
|
574
|
+
dangerHoverColor = _tokens$colors$intera$h.danger__hover.rgba,
|
|
575
|
+
dangerHoverAltColor = _tokens$colors$intera$h.danger__highlight.rgba,
|
|
576
576
|
_tokens$clickbounds$3 = edsTokens.tokens.clickbounds,
|
|
577
577
|
clicboundHeight$1 = _tokens$clickbounds$3.default__base,
|
|
578
578
|
compactClickboundHeight$1 = _tokens$clickbounds$3.compact__standard,
|
|
@@ -755,16 +755,16 @@ var InnerFullWidth = /*#__PURE__*/react.forwardRef(function InnerFullWidth(_ref,
|
|
|
755
755
|
});
|
|
756
756
|
});
|
|
757
757
|
|
|
758
|
-
var initalState$
|
|
758
|
+
var initalState$3 = {
|
|
759
759
|
/** Density for all components inside `EdsProvider` */
|
|
760
760
|
density: 'comfortable'
|
|
761
761
|
};
|
|
762
|
-
var EdsContext = /*#__PURE__*/react.createContext(initalState$
|
|
762
|
+
var EdsContext = /*#__PURE__*/react.createContext(initalState$3);
|
|
763
763
|
var EdsProvider = function EdsProvider(_ref) {
|
|
764
764
|
var children = _ref.children,
|
|
765
765
|
density = _ref.density;
|
|
766
766
|
|
|
767
|
-
var _useState = react.useState(_objectSpread__default["default"](_objectSpread__default["default"]({}, initalState$
|
|
767
|
+
var _useState = react.useState(_objectSpread__default["default"](_objectSpread__default["default"]({}, initalState$3), {}, {
|
|
768
768
|
density: density || 'comfortable'
|
|
769
769
|
})),
|
|
770
770
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -797,7 +797,7 @@ var useEds = function useEds() {
|
|
|
797
797
|
return react.useContext(EdsContext);
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
var _excluded$
|
|
800
|
+
var _excluded$1s = ["color", "variant", "children", "disabled", "href", "tabIndex", "fullWidth"];
|
|
801
801
|
|
|
802
802
|
var getVariant = function getVariant(tokenSet, variant) {
|
|
803
803
|
switch (variant) {
|
|
@@ -849,7 +849,7 @@ var ButtonBase = styled__default["default"].button.withConfig({
|
|
|
849
849
|
var focus = states.focus,
|
|
850
850
|
hover = states.hover,
|
|
851
851
|
disabled = states.disabled;
|
|
852
|
-
return styled.css(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}&:disabled{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, edsUtils.spacingsTemplate(theme.spacings), edsUtils.bordersTemplate(theme.border), edsUtils.typographyTemplate(theme.typography), clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset = clickbound.offset) === null || _clickbound$offset === void 0 ? void 0 : _clickbound$offset.top, clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset2 = clickbound.offset) === null || _clickbound$offset2 === void 0 ? void 0 : _clickbound$offset2.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover.background, (_hover$typography = hover.typography) === null || _hover$typography === void 0 ? void 0 : _hover$typography.color, edsUtils.bordersTemplate(hover === null || hover === void 0 ? void 0 : hover.border), edsUtils.outlineTemplate(focus.outline), edsUtils.outlineTemplate(focus.outline), disabled.background, edsUtils.bordersTemplate(disabled.border), edsUtils.typographyTemplate(disabled.typography), disabled.background);
|
|
852
|
+
return styled.css(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, edsUtils.spacingsTemplate(theme.spacings), edsUtils.bordersTemplate(theme.border), edsUtils.typographyTemplate(theme.typography), clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset = clickbound.offset) === null || _clickbound$offset === void 0 ? void 0 : _clickbound$offset.top, clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset2 = clickbound.offset) === null || _clickbound$offset2 === void 0 ? void 0 : _clickbound$offset2.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover.background, (_hover$typography = hover.typography) === null || _hover$typography === void 0 ? void 0 : _hover$typography.color, edsUtils.bordersTemplate(hover === null || hover === void 0 ? void 0 : hover.border), edsUtils.outlineTemplate(focus.outline), edsUtils.outlineTemplate(focus.outline), disabled.background, edsUtils.bordersTemplate(disabled.border), edsUtils.typographyTemplate(disabled.typography), disabled.background);
|
|
853
853
|
});
|
|
854
854
|
var Button$1 = /*#__PURE__*/react.forwardRef(function Button(_ref2, ref) {
|
|
855
855
|
var _ref2$color = _ref2.color,
|
|
@@ -864,7 +864,7 @@ var Button$1 = /*#__PURE__*/react.forwardRef(function Button(_ref2, ref) {
|
|
|
864
864
|
tabIndex = _ref2$tabIndex === void 0 ? 0 : _ref2$tabIndex,
|
|
865
865
|
_ref2$fullWidth = _ref2.fullWidth,
|
|
866
866
|
fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth,
|
|
867
|
-
other = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
867
|
+
other = _objectWithoutProperties__default["default"](_ref2, _excluded$1s);
|
|
868
868
|
|
|
869
869
|
var _useEds = useEds(),
|
|
870
870
|
density = _useEds.density;
|
|
@@ -905,7 +905,7 @@ var group = {
|
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
|
|
908
|
-
var _excluded$
|
|
908
|
+
var _excluded$1r = ["children", "vertical"];
|
|
909
909
|
var border$4 = group.border;
|
|
910
910
|
var radius$1 = border$4.type === 'border' && border$4.radius;
|
|
911
911
|
var ButtonGroupBase = styled__default["default"].div.withConfig({
|
|
@@ -918,7 +918,7 @@ var ButtonGroupBase = styled__default["default"].div.withConfig({
|
|
|
918
918
|
var ButtonGroup = /*#__PURE__*/react.forwardRef(function ButtonGroup(_ref2, ref) {
|
|
919
919
|
var children = _ref2.children,
|
|
920
920
|
vertical = _ref2.vertical,
|
|
921
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
921
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$1r);
|
|
922
922
|
|
|
923
923
|
var props = _objectSpread__default["default"]({
|
|
924
924
|
ref: ref,
|
|
@@ -932,13 +932,13 @@ var ButtonGroup = /*#__PURE__*/react.forwardRef(function ButtonGroup(_ref2, ref)
|
|
|
932
932
|
}));
|
|
933
933
|
});
|
|
934
934
|
|
|
935
|
-
var _excluded$
|
|
935
|
+
var _excluded$1q = ["children", "multiple", "selectedIndexes", "onChange"];
|
|
936
936
|
var ToggleButton = /*#__PURE__*/react.forwardRef(function ToggleButton(_ref, ref) {
|
|
937
937
|
var children = _ref.children,
|
|
938
938
|
multiple = _ref.multiple,
|
|
939
939
|
selectedIndexes = _ref.selectedIndexes,
|
|
940
940
|
onChange = _ref.onChange,
|
|
941
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
941
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$1q);
|
|
942
942
|
|
|
943
943
|
var _useState = react.useState(selectedIndexes || []),
|
|
944
944
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -1031,7 +1031,7 @@ var link = {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
1033
|
|
|
1034
|
-
var _excluded$
|
|
1034
|
+
var _excluded$1p = ["variant", "children", "bold", "italic", "link", "group", "token", "as"];
|
|
1035
1035
|
|
|
1036
1036
|
var getElementType = function getElementType(variant, link) {
|
|
1037
1037
|
if (link) {
|
|
@@ -1110,7 +1110,7 @@ var Typography = /*#__PURE__*/react.forwardRef(function Typography(_ref5, ref) {
|
|
|
1110
1110
|
group = _ref5.group,
|
|
1111
1111
|
token = _ref5.token,
|
|
1112
1112
|
providedAs = _ref5.as,
|
|
1113
|
-
other = _objectWithoutProperties__default["default"](_ref5, _excluded$
|
|
1113
|
+
other = _objectWithoutProperties__default["default"](_ref5, _excluded$1p);
|
|
1114
1114
|
|
|
1115
1115
|
var as = providedAs ? providedAs : getElementType(variant, link);
|
|
1116
1116
|
var variantName = toVariantName(variant, bold, italic, link);
|
|
@@ -1135,19 +1135,19 @@ var _tokens$typography$2 = edsTokens.tokens.typography,
|
|
|
1135
1135
|
cellTypography$1 = _tokens$typography$ta.cell_text,
|
|
1136
1136
|
cellNumericTypography = _tokens$typography$ta.cell_numeric_monospaced,
|
|
1137
1137
|
compactTypography$1 = _tokens$typography$2._modes.compact,
|
|
1138
|
-
_tokens$colors$
|
|
1139
|
-
typographyColor$1 = _tokens$colors$
|
|
1140
|
-
borderColor$4 = _tokens$colors$
|
|
1141
|
-
_tokens$colors$intera$
|
|
1142
|
-
backgroundColor$5 = _tokens$colors$intera$
|
|
1143
|
-
hoverBackgroundColor$3 = _tokens$colors$intera$
|
|
1144
|
-
activeBackgroundColor$2 = _tokens$colors$intera$
|
|
1145
|
-
errorColor$1 = _tokens$colors$intera$
|
|
1146
|
-
primaryRestingColor$1 = _tokens$colors$intera$
|
|
1147
|
-
disabledTextColor$2 = _tokens$colors$intera$
|
|
1148
|
-
disabledBorderColor$1 = _tokens$colors$intera$
|
|
1149
|
-
focusColor$
|
|
1150
|
-
medium$
|
|
1138
|
+
_tokens$colors$j = edsTokens.tokens.colors,
|
|
1139
|
+
typographyColor$1 = _tokens$colors$j.text.static_icons__default.rgba,
|
|
1140
|
+
borderColor$4 = _tokens$colors$j.ui.background__medium.rgba,
|
|
1141
|
+
_tokens$colors$intera$g = _tokens$colors$j.interactive,
|
|
1142
|
+
backgroundColor$5 = _tokens$colors$intera$g.table__cell__fill_resting.rgba,
|
|
1143
|
+
hoverBackgroundColor$3 = _tokens$colors$intera$g.table__cell__fill_hover.rgba,
|
|
1144
|
+
activeBackgroundColor$2 = _tokens$colors$intera$g.table__cell__fill_activated.rgba,
|
|
1145
|
+
errorColor$1 = _tokens$colors$intera$g.danger__highlight.rgba,
|
|
1146
|
+
primaryRestingColor$1 = _tokens$colors$intera$g.primary__resting.rgba,
|
|
1147
|
+
disabledTextColor$2 = _tokens$colors$intera$g.disabled__text.rgba,
|
|
1148
|
+
disabledBorderColor$1 = _tokens$colors$intera$g.disabled__border.rgba,
|
|
1149
|
+
focusColor$4 = _tokens$colors$intera$g.focus.rgba,
|
|
1150
|
+
medium$6 = edsTokens.tokens.spacings.comfortable.medium;
|
|
1151
1151
|
var tableCell = {
|
|
1152
1152
|
height: 'var(--eds_table__cell__height, 48px)',
|
|
1153
1153
|
background: backgroundColor$5,
|
|
@@ -1165,8 +1165,8 @@ var tableCell = {
|
|
|
1165
1165
|
spacings: {
|
|
1166
1166
|
top: 'var(--eds_table__cell__padding_y, 0)',
|
|
1167
1167
|
bottom: 'var(--eds_table__cell__padding_y, 0)',
|
|
1168
|
-
left: "var(--eds_table__cell__padding_x, ".concat(medium$
|
|
1169
|
-
right: "var(--eds_table__cell__padding_x, ".concat(medium$
|
|
1168
|
+
left: "var(--eds_table__cell__padding_x, ".concat(medium$6, ")"),
|
|
1169
|
+
right: "var(--eds_table__cell__padding_x, ".concat(medium$6, ")")
|
|
1170
1170
|
},
|
|
1171
1171
|
typography: _objectSpread__default["default"](_objectSpread__default["default"]({}, cellTypography$1), {}, {
|
|
1172
1172
|
color: typographyColor$1,
|
|
@@ -1198,7 +1198,7 @@ var tableCell = {
|
|
|
1198
1198
|
focus: {
|
|
1199
1199
|
outline: {
|
|
1200
1200
|
type: 'outline',
|
|
1201
|
-
color: focusColor$
|
|
1201
|
+
color: focusColor$4,
|
|
1202
1202
|
width: '1px',
|
|
1203
1203
|
style: 'dashed'
|
|
1204
1204
|
}
|
|
@@ -1216,8 +1216,8 @@ var tableCell = {
|
|
|
1216
1216
|
spacings: {
|
|
1217
1217
|
top: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1218
1218
|
bottom: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1219
|
-
left: "var(--eds_table__cell__padding_x_compact, ".concat(medium$
|
|
1220
|
-
right: "var(--eds_table__cell__padding_x_compact, ".concat(medium$
|
|
1219
|
+
left: "var(--eds_table__cell__padding_x_compact, ".concat(medium$6, ")"),
|
|
1220
|
+
right: "var(--eds_table__cell__padding_x_compact, ".concat(medium$6, ")")
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
},
|
|
@@ -1251,14 +1251,14 @@ var applyVariant = function applyVariant(variant, token) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
1253
|
|
|
1254
|
-
var _excluded$
|
|
1254
|
+
var _excluded$1o = ["children"];
|
|
1255
1255
|
var TableBase$1 = styled__default["default"].table.withConfig({
|
|
1256
1256
|
displayName: "Table__TableBase",
|
|
1257
1257
|
componentId: "sc-14kktwc-0"
|
|
1258
1258
|
})(["border-spacing:0;background:", ";"], tableCell.background);
|
|
1259
1259
|
var Table$1 = /*#__PURE__*/react.forwardRef(function Table(_ref, ref) {
|
|
1260
1260
|
var children = _ref.children,
|
|
1261
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
1261
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$1o);
|
|
1262
1262
|
|
|
1263
1263
|
return /*#__PURE__*/jsxRuntime.jsx(TableBase$1, _objectSpread__default["default"](_objectSpread__default["default"]({}, props), {}, {
|
|
1264
1264
|
ref: ref,
|
|
@@ -1266,19 +1266,19 @@ var Table$1 = /*#__PURE__*/react.forwardRef(function Table(_ref, ref) {
|
|
|
1266
1266
|
}));
|
|
1267
1267
|
}); // Table.displayName = 'EdsTable'
|
|
1268
1268
|
|
|
1269
|
-
var initalState$
|
|
1269
|
+
var initalState$2 = {
|
|
1270
1270
|
variant: 'body'
|
|
1271
1271
|
};
|
|
1272
|
-
var InnerContext = /*#__PURE__*/react.createContext(initalState$
|
|
1272
|
+
var InnerContext = /*#__PURE__*/react.createContext(initalState$2);
|
|
1273
1273
|
|
|
1274
|
-
var _excluded$
|
|
1274
|
+
var _excluded$1n = ["children"];
|
|
1275
1275
|
var TableBase = styled__default["default"].tbody.withConfig({
|
|
1276
1276
|
displayName: "Body__TableBase",
|
|
1277
1277
|
componentId: "sc-1pdmiku-0"
|
|
1278
1278
|
})([""]);
|
|
1279
1279
|
var Body = /*#__PURE__*/react.forwardRef(function Body(_ref, ref) {
|
|
1280
1280
|
var children = _ref.children,
|
|
1281
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
1281
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$1n);
|
|
1282
1282
|
|
|
1283
1283
|
return /*#__PURE__*/jsxRuntime.jsx(InnerContext.Provider, {
|
|
1284
1284
|
value: {
|
|
@@ -1291,7 +1291,7 @@ var Body = /*#__PURE__*/react.forwardRef(function Body(_ref, ref) {
|
|
|
1291
1291
|
});
|
|
1292
1292
|
});
|
|
1293
1293
|
|
|
1294
|
-
var _excluded$
|
|
1294
|
+
var _excluded$1m = ["children", "variant"];
|
|
1295
1295
|
var StyledTableCell$1 = styled__default["default"].td.withConfig({
|
|
1296
1296
|
displayName: "DataCell__StyledTableCell",
|
|
1297
1297
|
componentId: "sc-15tuitc-0"
|
|
@@ -1313,7 +1313,7 @@ var TableDataCell = /*#__PURE__*/react.forwardRef(function TableDataCell(_ref2,
|
|
|
1313
1313
|
var children = _ref2.children,
|
|
1314
1314
|
_ref2$variant = _ref2.variant,
|
|
1315
1315
|
variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
|
|
1316
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
1316
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$1m);
|
|
1317
1317
|
|
|
1318
1318
|
var _useEds = useEds(),
|
|
1319
1319
|
density = _useEds.density;
|
|
@@ -1333,18 +1333,18 @@ var TableDataCell = /*#__PURE__*/react.forwardRef(function TableDataCell(_ref2,
|
|
|
1333
1333
|
var _tokens$typography$1 = edsTokens.tokens.typography,
|
|
1334
1334
|
cellTypography = _tokens$typography$1.table.cell_header,
|
|
1335
1335
|
compactTypography = _tokens$typography$1._modes.compact,
|
|
1336
|
-
_tokens$colors$
|
|
1337
|
-
typographyColor = _tokens$colors$
|
|
1338
|
-
borderColor$3 = _tokens$colors$
|
|
1339
|
-
_tokens$colors$intera$
|
|
1340
|
-
backgroundColor$4 = _tokens$colors$intera$
|
|
1341
|
-
hoverBackgroundColor$2 = _tokens$colors$intera$
|
|
1342
|
-
activeBackgroundColor$1 = _tokens$colors$intera$
|
|
1343
|
-
primaryRestingColor = _tokens$colors$intera$
|
|
1344
|
-
disabledTextColor$1 = _tokens$colors$intera$
|
|
1345
|
-
disabledBorderColor = _tokens$colors$intera$
|
|
1346
|
-
focusColor$
|
|
1347
|
-
medium$
|
|
1336
|
+
_tokens$colors$i = edsTokens.tokens.colors,
|
|
1337
|
+
typographyColor = _tokens$colors$i.text.static_icons__default.rgba,
|
|
1338
|
+
borderColor$3 = _tokens$colors$i.ui.background__medium.rgba,
|
|
1339
|
+
_tokens$colors$intera$f = _tokens$colors$i.interactive,
|
|
1340
|
+
backgroundColor$4 = _tokens$colors$intera$f.table__header__fill_resting.rgba,
|
|
1341
|
+
hoverBackgroundColor$2 = _tokens$colors$intera$f.table__header__fill_hover.rgba,
|
|
1342
|
+
activeBackgroundColor$1 = _tokens$colors$intera$f.table__header__fill_activated.rgba,
|
|
1343
|
+
primaryRestingColor = _tokens$colors$intera$f.primary__resting.rgba,
|
|
1344
|
+
disabledTextColor$1 = _tokens$colors$intera$f.disabled__text.rgba,
|
|
1345
|
+
disabledBorderColor = _tokens$colors$intera$f.disabled__border.rgba,
|
|
1346
|
+
focusColor$3 = _tokens$colors$intera$f.focus.rgba,
|
|
1347
|
+
medium$5 = edsTokens.tokens.spacings.comfortable.medium;
|
|
1348
1348
|
var token$4 = {
|
|
1349
1349
|
height: 'var(--eds_table__cell__height, 48px)',
|
|
1350
1350
|
background: backgroundColor$4,
|
|
@@ -1367,8 +1367,8 @@ var token$4 = {
|
|
|
1367
1367
|
spacings: {
|
|
1368
1368
|
top: 'var(--eds_table__cell__padding_y, 0)',
|
|
1369
1369
|
bottom: 'var(--eds_table__cell__padding_y, 0)',
|
|
1370
|
-
left: "var(--eds_table__cell__padding_x, ".concat(medium$
|
|
1371
|
-
right: "var(--eds_table__cell__padding_x, ".concat(medium$
|
|
1370
|
+
left: "var(--eds_table__cell__padding_x, ".concat(medium$5, ")"),
|
|
1371
|
+
right: "var(--eds_table__cell__padding_x, ".concat(medium$5, ")")
|
|
1372
1372
|
},
|
|
1373
1373
|
states: {
|
|
1374
1374
|
active: {
|
|
@@ -1397,7 +1397,7 @@ var token$4 = {
|
|
|
1397
1397
|
focus: {
|
|
1398
1398
|
outline: {
|
|
1399
1399
|
type: 'outline',
|
|
1400
|
-
color: focusColor$
|
|
1400
|
+
color: focusColor$3,
|
|
1401
1401
|
width: '1px',
|
|
1402
1402
|
style: 'dashed'
|
|
1403
1403
|
}
|
|
@@ -1413,14 +1413,14 @@ var token$4 = {
|
|
|
1413
1413
|
spacings: {
|
|
1414
1414
|
top: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1415
1415
|
bottom: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1416
|
-
left: "var(--eds_table__cell__padding_x_compact, ".concat(medium$
|
|
1417
|
-
right: "var(--eds_table__cell__padding_x_compact, ".concat(medium$
|
|
1416
|
+
left: "var(--eds_table__cell__padding_x_compact, ".concat(medium$5, ")"),
|
|
1417
|
+
right: "var(--eds_table__cell__padding_x_compact, ".concat(medium$5, ")")
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
};
|
|
1422
1422
|
|
|
1423
|
-
var _excluded$
|
|
1423
|
+
var _excluded$1l = ["children", "sort"];
|
|
1424
1424
|
var StyledTableCell = styled__default["default"].th.withConfig({
|
|
1425
1425
|
displayName: "HeaderCell__StyledTableCell",
|
|
1426
1426
|
componentId: "sc-18w2o3a-0"
|
|
@@ -1453,7 +1453,7 @@ var CellInner = styled__default["default"].div.withConfig({
|
|
|
1453
1453
|
var TableHeaderCell = /*#__PURE__*/react.forwardRef(function TableHeaderCell(_ref, ref) {
|
|
1454
1454
|
var children = _ref.children,
|
|
1455
1455
|
sort = _ref.sort,
|
|
1456
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
1456
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$1l);
|
|
1457
1457
|
|
|
1458
1458
|
var _useEds = useEds(),
|
|
1459
1459
|
density = _useEds.density;
|
|
@@ -1499,9 +1499,9 @@ var Cell = /*#__PURE__*/react.forwardRef(function Cell(_ref, ref) {
|
|
|
1499
1499
|
});
|
|
1500
1500
|
});
|
|
1501
1501
|
|
|
1502
|
-
var _tokens$colors$
|
|
1503
|
-
borderColor$2 = _tokens$colors$
|
|
1504
|
-
backgroundColor$3 = _tokens$colors$
|
|
1502
|
+
var _tokens$colors$h = edsTokens.tokens.colors,
|
|
1503
|
+
borderColor$2 = _tokens$colors$h.ui.background__medium.rgba,
|
|
1504
|
+
backgroundColor$3 = _tokens$colors$h.interactive.table__header__fill_resting.rgba;
|
|
1505
1505
|
var token$3 = {
|
|
1506
1506
|
background: backgroundColor$3,
|
|
1507
1507
|
border: {
|
|
@@ -1515,7 +1515,7 @@ var token$3 = {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
};
|
|
1517
1517
|
|
|
1518
|
-
var _excluded$
|
|
1518
|
+
var _excluded$1k = ["children", "sticky"];
|
|
1519
1519
|
var StyledTableHead = styled__default["default"].thead.withConfig({
|
|
1520
1520
|
displayName: "Head__StyledTableHead",
|
|
1521
1521
|
componentId: "sc-g9tch7-0"
|
|
@@ -1523,7 +1523,7 @@ var StyledTableHead = styled__default["default"].thead.withConfig({
|
|
|
1523
1523
|
var Head = /*#__PURE__*/react.forwardRef(function Head(_ref, ref) {
|
|
1524
1524
|
var children = _ref.children,
|
|
1525
1525
|
sticky = _ref.sticky,
|
|
1526
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
1526
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$1k);
|
|
1527
1527
|
|
|
1528
1528
|
return /*#__PURE__*/jsxRuntime.jsx(InnerContext.Provider, {
|
|
1529
1529
|
value: {
|
|
@@ -1537,9 +1537,9 @@ var Head = /*#__PURE__*/react.forwardRef(function Head(_ref, ref) {
|
|
|
1537
1537
|
});
|
|
1538
1538
|
});
|
|
1539
1539
|
|
|
1540
|
-
var _tokens$colors$intera$
|
|
1541
|
-
hoverBackgroundColor$1 = _tokens$colors$intera$
|
|
1542
|
-
activeBackgroundColor = _tokens$colors$intera$
|
|
1540
|
+
var _tokens$colors$intera$e = edsTokens.tokens.colors.interactive,
|
|
1541
|
+
hoverBackgroundColor$1 = _tokens$colors$intera$e.table__cell__fill_hover.rgba,
|
|
1542
|
+
activeBackgroundColor = _tokens$colors$intera$e.table__cell__fill_activated.rgba;
|
|
1543
1543
|
var token$2 = {
|
|
1544
1544
|
states: {
|
|
1545
1545
|
active: {
|
|
@@ -1605,13 +1605,13 @@ Table.Head.displayName = 'Table.Head';
|
|
|
1605
1605
|
Table.Row.displayName = 'Table.Row';
|
|
1606
1606
|
Table.Caption.displayName = 'Table.Caption';
|
|
1607
1607
|
|
|
1608
|
-
var _tokens$colors$ui$
|
|
1609
|
-
lighter = _tokens$colors$ui$
|
|
1610
|
-
light = _tokens$colors$ui$
|
|
1611
|
-
mediumColor = _tokens$colors$ui$
|
|
1612
|
-
_tokens$spacings$comf$
|
|
1613
|
-
spacingSmall$5 = _tokens$spacings$comf$
|
|
1614
|
-
spacingMedium$9 = _tokens$spacings$comf$
|
|
1608
|
+
var _tokens$colors$ui$6 = edsTokens.tokens.colors.ui,
|
|
1609
|
+
lighter = _tokens$colors$ui$6.background__default.rgba,
|
|
1610
|
+
light = _tokens$colors$ui$6.background__light.rgba,
|
|
1611
|
+
mediumColor = _tokens$colors$ui$6.background__medium.rgba,
|
|
1612
|
+
_tokens$spacings$comf$f = edsTokens.tokens.spacings.comfortable,
|
|
1613
|
+
spacingSmall$5 = _tokens$spacings$comf$f.small,
|
|
1614
|
+
spacingMedium$9 = _tokens$spacings$comf$f.medium;
|
|
1615
1615
|
var divider$1 = {
|
|
1616
1616
|
lighter: {
|
|
1617
1617
|
background: lighter
|
|
@@ -1623,13 +1623,13 @@ var divider$1 = {
|
|
|
1623
1623
|
background: mediumColor
|
|
1624
1624
|
}
|
|
1625
1625
|
};
|
|
1626
|
-
var small$
|
|
1626
|
+
var small$7 = {
|
|
1627
1627
|
spacings: {
|
|
1628
1628
|
top: spacingSmall$5,
|
|
1629
1629
|
bottom: spacingSmall$5
|
|
1630
1630
|
}
|
|
1631
1631
|
};
|
|
1632
|
-
var medium$
|
|
1632
|
+
var medium$4 = {
|
|
1633
1633
|
spacings: {
|
|
1634
1634
|
top: spacingMedium$9,
|
|
1635
1635
|
bottom: spacingMedium$9
|
|
@@ -1639,11 +1639,11 @@ var medium$3 = {
|
|
|
1639
1639
|
var tokens$4 = /*#__PURE__*/Object.freeze({
|
|
1640
1640
|
__proto__: null,
|
|
1641
1641
|
divider: divider$1,
|
|
1642
|
-
small: small$
|
|
1643
|
-
medium: medium$
|
|
1642
|
+
small: small$7,
|
|
1643
|
+
medium: medium$4
|
|
1644
1644
|
});
|
|
1645
1645
|
|
|
1646
|
-
var _excluded$
|
|
1646
|
+
var _excluded$1j = ["color", "variant", "size"];
|
|
1647
1647
|
var divider = divider$1;
|
|
1648
1648
|
var StyledDivider$3 = styled__default["default"].hr.withConfig({
|
|
1649
1649
|
displayName: "Divider__StyledDivider",
|
|
@@ -1662,7 +1662,7 @@ var Divider = /*#__PURE__*/react.forwardRef(function Divider(_ref2, ref) {
|
|
|
1662
1662
|
variant = _ref2$variant === void 0 ? 'medium' : _ref2$variant,
|
|
1663
1663
|
_ref2$size = _ref2.size,
|
|
1664
1664
|
size = _ref2$size === void 0 ? '1' : _ref2$size,
|
|
1665
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
1665
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$1j);
|
|
1666
1666
|
|
|
1667
1667
|
var colorValue = color === 'medium' ? 'mediumColor' : color;
|
|
1668
1668
|
|
|
@@ -1701,7 +1701,7 @@ var label = {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
};
|
|
1703
1703
|
|
|
1704
|
-
var _excluded$
|
|
1704
|
+
var _excluded$1i = ["label", "meta", "disabled"];
|
|
1705
1705
|
var LabelBase = styled__default["default"].label.withConfig({
|
|
1706
1706
|
displayName: "Label__LabelBase",
|
|
1707
1707
|
componentId: "sc-1gi2bcn-0"
|
|
@@ -1719,7 +1719,7 @@ var Label$2 = /*#__PURE__*/react.forwardRef(function Label(props, ref) {
|
|
|
1719
1719
|
meta = props.meta,
|
|
1720
1720
|
_props$disabled = props.disabled,
|
|
1721
1721
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
1722
|
-
other = _objectWithoutProperties__default["default"](props, _excluded$
|
|
1722
|
+
other = _objectWithoutProperties__default["default"](props, _excluded$1i);
|
|
1723
1723
|
|
|
1724
1724
|
return (
|
|
1725
1725
|
/*#__PURE__*/
|
|
@@ -1762,8 +1762,8 @@ var helperText = {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
};
|
|
1764
1764
|
|
|
1765
|
-
var _excluded$
|
|
1766
|
-
var Container$
|
|
1765
|
+
var _excluded$1h = ["text", "icon", "color"];
|
|
1766
|
+
var Container$6 = styled__default["default"].div.withConfig({
|
|
1767
1767
|
displayName: "HelperText__Container",
|
|
1768
1768
|
componentId: "sc-189ug61-0"
|
|
1769
1769
|
})(function (_ref) {
|
|
@@ -1786,13 +1786,13 @@ var TextfieldHelperText = /*#__PURE__*/react.forwardRef(function TextfieldHelper
|
|
|
1786
1786
|
icon = _ref2.icon,
|
|
1787
1787
|
_ref2$color = _ref2.color,
|
|
1788
1788
|
color = _ref2$color === void 0 ? helperText.typography.color : _ref2$color,
|
|
1789
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
1789
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$1h);
|
|
1790
1790
|
|
|
1791
1791
|
if (!text) {
|
|
1792
1792
|
return null;
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Container$
|
|
1795
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Container$6, _objectSpread__default["default"](_objectSpread__default["default"]({}, _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
1796
1796
|
color: color,
|
|
1797
1797
|
ref: ref
|
|
1798
1798
|
})), {}, {
|
|
@@ -1802,31 +1802,31 @@ var TextfieldHelperText = /*#__PURE__*/react.forwardRef(function TextfieldHelper
|
|
|
1802
1802
|
}));
|
|
1803
1803
|
});
|
|
1804
1804
|
|
|
1805
|
-
var _tokens$colors$
|
|
1806
|
-
background$
|
|
1807
|
-
_tokens$colors$text$
|
|
1808
|
-
static_icons__default$1 = _tokens$colors$text$
|
|
1809
|
-
static_icons__tertiary$1 = _tokens$colors$text$
|
|
1810
|
-
_tokens$colors$intera$
|
|
1811
|
-
disabled__text$1 = _tokens$colors$intera$
|
|
1812
|
-
primary__resting$
|
|
1813
|
-
danger__resting$1 = _tokens$colors$intera$
|
|
1814
|
-
danger__hover$1 = _tokens$colors$intera$
|
|
1815
|
-
warning__resting$1 = _tokens$colors$intera$
|
|
1816
|
-
warning__hover$1 = _tokens$colors$intera$
|
|
1817
|
-
success__resting$1 = _tokens$colors$intera$
|
|
1818
|
-
success__hover$1 = _tokens$colors$intera$
|
|
1819
|
-
_tokens$spacings$comf$
|
|
1820
|
-
small$
|
|
1821
|
-
x_small$5 = _tokens$spacings$comf$
|
|
1805
|
+
var _tokens$colors$g = edsTokens.tokens.colors,
|
|
1806
|
+
background$e = _tokens$colors$g.ui.background__light.rgba,
|
|
1807
|
+
_tokens$colors$text$2 = _tokens$colors$g.text,
|
|
1808
|
+
static_icons__default$1 = _tokens$colors$text$2.static_icons__default,
|
|
1809
|
+
static_icons__tertiary$1 = _tokens$colors$text$2.static_icons__tertiary,
|
|
1810
|
+
_tokens$colors$intera$d = _tokens$colors$g.interactive,
|
|
1811
|
+
disabled__text$1 = _tokens$colors$intera$d.disabled__text,
|
|
1812
|
+
primary__resting$2 = _tokens$colors$intera$d.primary__resting,
|
|
1813
|
+
danger__resting$1 = _tokens$colors$intera$d.danger__resting,
|
|
1814
|
+
danger__hover$1 = _tokens$colors$intera$d.danger__hover,
|
|
1815
|
+
warning__resting$1 = _tokens$colors$intera$d.warning__resting,
|
|
1816
|
+
warning__hover$1 = _tokens$colors$intera$d.warning__hover,
|
|
1817
|
+
success__resting$1 = _tokens$colors$intera$d.success__resting,
|
|
1818
|
+
success__hover$1 = _tokens$colors$intera$d.success__hover,
|
|
1819
|
+
_tokens$spacings$comf$e = edsTokens.tokens.spacings.comfortable,
|
|
1820
|
+
small$6 = _tokens$spacings$comf$e.small,
|
|
1821
|
+
x_small$5 = _tokens$spacings$comf$e.x_small,
|
|
1822
1822
|
typography$e = edsTokens.tokens.typography,
|
|
1823
1823
|
shape$2 = edsTokens.tokens.shape;
|
|
1824
1824
|
var input$2 = {
|
|
1825
1825
|
minHeight: shape$2.straight.minHeight,
|
|
1826
|
-
background: background$
|
|
1826
|
+
background: background$e,
|
|
1827
1827
|
spacings: {
|
|
1828
|
-
left: small$
|
|
1829
|
-
right: small$
|
|
1828
|
+
left: small$6,
|
|
1829
|
+
right: small$6,
|
|
1830
1830
|
top: '6px',
|
|
1831
1831
|
bottom: '6px'
|
|
1832
1832
|
},
|
|
@@ -1875,7 +1875,7 @@ var input$2 = {
|
|
|
1875
1875
|
outline: {
|
|
1876
1876
|
type: 'outline',
|
|
1877
1877
|
width: '2px',
|
|
1878
|
-
color: primary__resting$
|
|
1878
|
+
color: primary__resting$2.rgba,
|
|
1879
1879
|
style: 'solid',
|
|
1880
1880
|
offset: '0px'
|
|
1881
1881
|
}
|
|
@@ -1961,8 +1961,8 @@ var inputToken$1 = {
|
|
|
1961
1961
|
success: success$1
|
|
1962
1962
|
};
|
|
1963
1963
|
|
|
1964
|
-
var _excluded$
|
|
1965
|
-
var Container$
|
|
1964
|
+
var _excluded$1g = ["children", "color", "label", "labelProps", "helperProps", "helperIcon"];
|
|
1965
|
+
var Container$5 = styled__default["default"].div.withConfig({
|
|
1966
1966
|
displayName: "InputWrapper__Container",
|
|
1967
1967
|
componentId: "sc-v6o9z1-0"
|
|
1968
1968
|
})([""]);
|
|
@@ -1985,7 +1985,7 @@ var InputWrapper$2 = /*#__PURE__*/react.forwardRef(function InputWrapper(_ref, r
|
|
|
1985
1985
|
_ref$helperProps = _ref.helperProps,
|
|
1986
1986
|
helperProps = _ref$helperProps === void 0 ? {} : _ref$helperProps,
|
|
1987
1987
|
helperIcon = _ref.helperIcon,
|
|
1988
|
-
other = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
1988
|
+
other = _objectWithoutProperties__default["default"](_ref, _excluded$1g);
|
|
1989
1989
|
|
|
1990
1990
|
var _useEds = useEds(),
|
|
1991
1991
|
density = _useEds.density;
|
|
@@ -2004,7 +2004,7 @@ var InputWrapper$2 = /*#__PURE__*/react.forwardRef(function InputWrapper(_ref, r
|
|
|
2004
2004
|
var hasLabel = Boolean(label || (labelProps === null || labelProps === void 0 ? void 0 : labelProps.label));
|
|
2005
2005
|
return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
|
|
2006
2006
|
theme: token,
|
|
2007
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Container$
|
|
2007
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Container$5, _objectSpread__default["default"](_objectSpread__default["default"]({}, other), {}, {
|
|
2008
2008
|
ref: ref,
|
|
2009
2009
|
children: [hasLabel && /*#__PURE__*/jsxRuntime.jsx(Label$1, _objectSpread__default["default"]({}, _objectSpread__default["default"]({
|
|
2010
2010
|
label: label
|
|
@@ -2017,32 +2017,32 @@ var InputWrapper$2 = /*#__PURE__*/react.forwardRef(function InputWrapper(_ref, r
|
|
|
2017
2017
|
});
|
|
2018
2018
|
});
|
|
2019
2019
|
|
|
2020
|
-
var _tokens$colors$
|
|
2021
|
-
background$
|
|
2022
|
-
_tokens$colors$text = _tokens$colors$
|
|
2023
|
-
static_icons__default = _tokens$colors$text.static_icons__default,
|
|
2024
|
-
static_icons__tertiary = _tokens$colors$text.static_icons__tertiary,
|
|
2025
|
-
_tokens$colors$intera$
|
|
2026
|
-
disabled__text = _tokens$colors$intera$
|
|
2027
|
-
primary__resting = _tokens$colors$intera$
|
|
2028
|
-
danger__resting = _tokens$colors$intera$
|
|
2029
|
-
danger__hover = _tokens$colors$intera$
|
|
2030
|
-
warning__resting = _tokens$colors$intera$
|
|
2031
|
-
warning__hover = _tokens$colors$intera$
|
|
2032
|
-
success__resting = _tokens$colors$intera$
|
|
2033
|
-
success__hover = _tokens$colors$intera$
|
|
2034
|
-
_tokens$spacings$comf$
|
|
2035
|
-
small$
|
|
2036
|
-
x_small$4 = _tokens$spacings$comf$
|
|
2020
|
+
var _tokens$colors$f = edsTokens.tokens.colors,
|
|
2021
|
+
background$d = _tokens$colors$f.ui.background__light.rgba,
|
|
2022
|
+
_tokens$colors$text$1 = _tokens$colors$f.text,
|
|
2023
|
+
static_icons__default = _tokens$colors$text$1.static_icons__default,
|
|
2024
|
+
static_icons__tertiary = _tokens$colors$text$1.static_icons__tertiary,
|
|
2025
|
+
_tokens$colors$intera$c = _tokens$colors$f.interactive,
|
|
2026
|
+
disabled__text = _tokens$colors$intera$c.disabled__text,
|
|
2027
|
+
primary__resting$1 = _tokens$colors$intera$c.primary__resting,
|
|
2028
|
+
danger__resting = _tokens$colors$intera$c.danger__resting,
|
|
2029
|
+
danger__hover = _tokens$colors$intera$c.danger__hover,
|
|
2030
|
+
warning__resting = _tokens$colors$intera$c.warning__resting,
|
|
2031
|
+
warning__hover = _tokens$colors$intera$c.warning__hover,
|
|
2032
|
+
success__resting = _tokens$colors$intera$c.success__resting,
|
|
2033
|
+
success__hover = _tokens$colors$intera$c.success__hover,
|
|
2034
|
+
_tokens$spacings$comf$d = edsTokens.tokens.spacings.comfortable,
|
|
2035
|
+
small$5 = _tokens$spacings$comf$d.small,
|
|
2036
|
+
x_small$4 = _tokens$spacings$comf$d.x_small,
|
|
2037
2037
|
typography$d = edsTokens.tokens.typography,
|
|
2038
2038
|
shape$1 = edsTokens.tokens.shape;
|
|
2039
2039
|
var input$1 = {
|
|
2040
2040
|
height: shape$1.straight.minHeight,
|
|
2041
2041
|
width: '100%',
|
|
2042
|
-
background: background$
|
|
2042
|
+
background: background$d,
|
|
2043
2043
|
spacings: {
|
|
2044
|
-
left: small$
|
|
2045
|
-
right: small$
|
|
2044
|
+
left: small$5,
|
|
2045
|
+
right: small$5,
|
|
2046
2046
|
top: '6px',
|
|
2047
2047
|
bottom: '6px'
|
|
2048
2048
|
},
|
|
@@ -2067,8 +2067,8 @@ var input$1 = {
|
|
|
2067
2067
|
color: static_icons__tertiary.rgba
|
|
2068
2068
|
}),
|
|
2069
2069
|
spacings: {
|
|
2070
|
-
left: small$
|
|
2071
|
-
right: small$
|
|
2070
|
+
left: small$5,
|
|
2071
|
+
right: small$5
|
|
2072
2072
|
},
|
|
2073
2073
|
states: {
|
|
2074
2074
|
disabled: {
|
|
@@ -2094,7 +2094,7 @@ var input$1 = {
|
|
|
2094
2094
|
outline: {
|
|
2095
2095
|
type: 'outline',
|
|
2096
2096
|
width: '2px',
|
|
2097
|
-
color: primary__resting.rgba,
|
|
2097
|
+
color: primary__resting$1.rgba,
|
|
2098
2098
|
style: 'solid',
|
|
2099
2099
|
offset: '0px'
|
|
2100
2100
|
}
|
|
@@ -2210,8 +2210,8 @@ var tokens$3 = /*#__PURE__*/Object.freeze({
|
|
|
2210
2210
|
inputToken: inputToken
|
|
2211
2211
|
});
|
|
2212
2212
|
|
|
2213
|
-
var _excluded$
|
|
2214
|
-
var Container$
|
|
2213
|
+
var _excluded$1f = ["variant", "disabled", "type", "leftAdornments", "rightAdornments", "readOnly", "className", "style", "leftAdornmentsProps", "rightAdornmentsProps", "leftAdornmentsWidth", "rightAdornmentsWidth"];
|
|
2214
|
+
var Container$4 = styled__default["default"].div.withConfig({
|
|
2215
2215
|
displayName: "Input__Container",
|
|
2216
2216
|
componentId: "sc-1ykv024-0"
|
|
2217
2217
|
})(function (_ref) {
|
|
@@ -2272,7 +2272,7 @@ var Input$4 = /*#__PURE__*/react.forwardRef(function Input(_ref6, ref) {
|
|
|
2272
2272
|
rightAdornmentsProps = _ref6.rightAdornmentsProps,
|
|
2273
2273
|
leftAdornmentsWidth = _ref6.leftAdornmentsWidth,
|
|
2274
2274
|
rightAdornmentsWidth = _ref6.rightAdornmentsWidth,
|
|
2275
|
-
other = _objectWithoutProperties__default["default"](_ref6, _excluded$
|
|
2275
|
+
other = _objectWithoutProperties__default["default"](_ref6, _excluded$1f);
|
|
2276
2276
|
|
|
2277
2277
|
var inputVariant = inputToken[variant] ? inputToken[variant] : inputToken.input;
|
|
2278
2278
|
|
|
@@ -2338,7 +2338,7 @@ var Input$4 = /*#__PURE__*/react.forwardRef(function Input(_ref6, ref) {
|
|
|
2338
2338
|
return (
|
|
2339
2339
|
/*#__PURE__*/
|
|
2340
2340
|
// Not using <ThemeProvider> because of cascading styling messing with adornments
|
|
2341
|
-
jsxRuntime.jsxs(Container$
|
|
2341
|
+
jsxRuntime.jsxs(Container$4, _objectSpread__default["default"](_objectSpread__default["default"]({}, containerProps), {}, {
|
|
2342
2342
|
children: [leftAdornments ? /*#__PURE__*/jsxRuntime.jsx(LeftAdornments, _objectSpread__default["default"](_objectSpread__default["default"]({}, _leftAdornmentProps), {}, {
|
|
2343
2343
|
children: leftAdornments
|
|
2344
2344
|
})) : null, /*#__PURE__*/jsxRuntime.jsx(StyledInput, _objectSpread__default["default"]({
|
|
@@ -2351,7 +2351,7 @@ var Input$4 = /*#__PURE__*/react.forwardRef(function Input(_ref6, ref) {
|
|
|
2351
2351
|
);
|
|
2352
2352
|
});
|
|
2353
2353
|
|
|
2354
|
-
var _excluded$
|
|
2354
|
+
var _excluded$1e = ["variant", "disabled", "type", "rowsMax"];
|
|
2355
2355
|
var input = input$1;
|
|
2356
2356
|
var Textarea = /*#__PURE__*/react.forwardRef(function Textarea(_ref, ref) {
|
|
2357
2357
|
var variant = _ref.variant,
|
|
@@ -2360,7 +2360,7 @@ var Textarea = /*#__PURE__*/react.forwardRef(function Textarea(_ref, ref) {
|
|
|
2360
2360
|
_ref$type = _ref.type,
|
|
2361
2361
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
2362
2362
|
rowsMax = _ref.rowsMax,
|
|
2363
|
-
other = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
2363
|
+
other = _objectWithoutProperties__default["default"](_ref, _excluded$1e);
|
|
2364
2364
|
|
|
2365
2365
|
var inputVariant = tokens$3[variant] ? tokens$3[variant] : input$1;
|
|
2366
2366
|
|
|
@@ -2413,7 +2413,7 @@ var Textarea = /*#__PURE__*/react.forwardRef(function Textarea(_ref, ref) {
|
|
|
2413
2413
|
}, inputProps));
|
|
2414
2414
|
});
|
|
2415
2415
|
|
|
2416
|
-
var _excluded$
|
|
2416
|
+
var _excluded$1d = ["id", "label", "meta", "unit", "helperText", "placeholder", "disabled", "multiline", "className", "variant", "inputIcon", "helperIcon", "style", "rowsMax", "textareaRef", "inputRef"];
|
|
2417
2417
|
|
|
2418
2418
|
/** Proxy component for working around typescript and element type switching */
|
|
2419
2419
|
var Field = /*#__PURE__*/react.forwardRef(function Field(props, ref) {
|
|
@@ -2441,7 +2441,7 @@ var TextField = /*#__PURE__*/react.forwardRef(function TextField(_ref, ref) {
|
|
|
2441
2441
|
rowsMax = _ref.rowsMax,
|
|
2442
2442
|
textareaRef = _ref.textareaRef,
|
|
2443
2443
|
inputRef = _ref.inputRef,
|
|
2444
|
-
other = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
2444
|
+
other = _objectWithoutProperties__default["default"](_ref, _excluded$1d);
|
|
2445
2445
|
|
|
2446
2446
|
var helperTextId = edsUtils.useId(null, 'helpertext');
|
|
2447
2447
|
|
|
@@ -2486,9 +2486,9 @@ var TextField = /*#__PURE__*/react.forwardRef(function TextField(_ref, ref) {
|
|
|
2486
2486
|
fieldProps = _objectSpread__default["default"]({
|
|
2487
2487
|
'aria-describedby': helperTextId
|
|
2488
2488
|
}, fieldProps);
|
|
2489
|
-
helperProps = _objectSpread__default["default"]({
|
|
2489
|
+
helperProps = _objectSpread__default["default"](_objectSpread__default["default"]({}, helperProps), {}, {
|
|
2490
2490
|
id: helperTextId
|
|
2491
|
-
}
|
|
2491
|
+
});
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
2494
2494
|
return /*#__PURE__*/jsxRuntime.jsx(InputWrapper$2, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
@@ -2515,7 +2515,7 @@ var get = function get(name) {
|
|
|
2515
2515
|
};
|
|
2516
2516
|
};
|
|
2517
2517
|
|
|
2518
|
-
var _excluded$
|
|
2518
|
+
var _excluded$1c = ["size", "color", "name", "rotation", "title", "data"];
|
|
2519
2519
|
|
|
2520
2520
|
var transform = function transform(_ref) {
|
|
2521
2521
|
var rotation = _ref.rotation;
|
|
@@ -2585,7 +2585,7 @@ var Icon$2 = /*#__PURE__*/react.forwardRef(function Icon(_ref5, ref) {
|
|
|
2585
2585
|
rotation = _ref5.rotation,
|
|
2586
2586
|
title = _ref5.title,
|
|
2587
2587
|
data = _ref5.data,
|
|
2588
|
-
rest = _objectWithoutProperties__default["default"](_ref5, _excluded$
|
|
2588
|
+
rest = _objectWithoutProperties__default["default"](_ref5, _excluded$1c);
|
|
2589
2589
|
|
|
2590
2590
|
// eslint-disable-next-line prefer-const
|
|
2591
2591
|
var _findIcon = findIcon(name, data, size),
|
|
@@ -2644,7 +2644,7 @@ var list = {
|
|
|
2644
2644
|
typography: paragraph$1.body_short
|
|
2645
2645
|
};
|
|
2646
2646
|
|
|
2647
|
-
var _excluded$
|
|
2647
|
+
var _excluded$1b = ["children", "variant"];
|
|
2648
2648
|
var typography$c = list.typography;
|
|
2649
2649
|
var StyledList$2 = styled__default["default"].ul.withConfig({
|
|
2650
2650
|
displayName: "List__StyledList",
|
|
@@ -2657,7 +2657,7 @@ var List$2 = /*#__PURE__*/react.forwardRef(function List(_ref2, ref) {
|
|
|
2657
2657
|
var children = _ref2.children,
|
|
2658
2658
|
_ref2$variant = _ref2.variant,
|
|
2659
2659
|
variant = _ref2$variant === void 0 ? 'bullet' : _ref2$variant,
|
|
2660
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
2660
|
+
props = _objectWithoutProperties__default["default"](_ref2, _excluded$1b);
|
|
2661
2661
|
|
|
2662
2662
|
var as = variant === 'numbered' ? 'ol' : 'ul';
|
|
2663
2663
|
return /*#__PURE__*/jsxRuntime.jsx(StyledList$2, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
@@ -2668,10 +2668,10 @@ var List$2 = /*#__PURE__*/react.forwardRef(function List(_ref2, ref) {
|
|
|
2668
2668
|
}));
|
|
2669
2669
|
}); // List.displayName = 'List'
|
|
2670
2670
|
|
|
2671
|
-
var _excluded$
|
|
2671
|
+
var _excluded$1a = ["children"];
|
|
2672
2672
|
var ListItem$2 = /*#__PURE__*/react.forwardRef(function ListItem(_ref, ref) {
|
|
2673
2673
|
var children = _ref.children,
|
|
2674
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
2674
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$1a);
|
|
2675
2675
|
|
|
2676
2676
|
return /*#__PURE__*/jsxRuntime.jsx("li", _objectSpread__default["default"](_objectSpread__default["default"]({}, props), {}, {
|
|
2677
2677
|
ref: ref,
|
|
@@ -2684,17 +2684,17 @@ List$1.Item = ListItem$2;
|
|
|
2684
2684
|
List$1.Item.displayName = 'List.Item';
|
|
2685
2685
|
|
|
2686
2686
|
var typography$b = edsTokens.tokens.typography.ui.accordion_header,
|
|
2687
|
-
_tokens$colors$
|
|
2688
|
-
_tokens$colors$ui$
|
|
2689
|
-
backgroundDefault = _tokens$colors$ui$
|
|
2690
|
-
borderColor$1 = _tokens$colors$ui$
|
|
2691
|
-
backgroundHover = _tokens$colors$ui$
|
|
2692
|
-
_tokens$colors$intera$
|
|
2693
|
-
activatedColor = _tokens$colors$intera$
|
|
2694
|
-
disabledIconColor$1 = _tokens$colors$intera$
|
|
2695
|
-
disabledColor$2 = _tokens$colors$intera$
|
|
2696
|
-
focusOutlineColor$7 = _tokens$colors$intera$
|
|
2697
|
-
defaultIconColor = _tokens$colors$
|
|
2687
|
+
_tokens$colors$e = edsTokens.tokens.colors,
|
|
2688
|
+
_tokens$colors$ui$5 = _tokens$colors$e.ui,
|
|
2689
|
+
backgroundDefault = _tokens$colors$ui$5.background__default.rgba,
|
|
2690
|
+
borderColor$1 = _tokens$colors$ui$5.background__medium.rgba,
|
|
2691
|
+
backgroundHover = _tokens$colors$ui$5.background__light.rgba,
|
|
2692
|
+
_tokens$colors$intera$b = _tokens$colors$e.interactive,
|
|
2693
|
+
activatedColor = _tokens$colors$intera$b.primary__resting.rgba,
|
|
2694
|
+
disabledIconColor$1 = _tokens$colors$intera$b.disabled__fill.rgba,
|
|
2695
|
+
disabledColor$2 = _tokens$colors$intera$b.disabled__text.rgba,
|
|
2696
|
+
focusOutlineColor$7 = _tokens$colors$intera$b.focus.rgba,
|
|
2697
|
+
defaultIconColor = _tokens$colors$e.text.static_icons__default.rgba,
|
|
2698
2698
|
mediumSpacing = edsTokens.tokens.spacings.comfortable.medium,
|
|
2699
2699
|
focusOutlineWidth$7 = edsTokens.tokens.interactions.focused.width,
|
|
2700
2700
|
text = edsTokens.tokens.typography.input.text;
|
|
@@ -2767,7 +2767,7 @@ var accordion = {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
};
|
|
2769
2769
|
|
|
2770
|
-
var _excluded$
|
|
2770
|
+
var _excluded$19 = ["headerLevel", "chevronPosition", "children", "id"];
|
|
2771
2771
|
var Accordion$1 = /*#__PURE__*/react.forwardRef(function Accordion(_ref, ref) {
|
|
2772
2772
|
var _ref$headerLevel = _ref.headerLevel,
|
|
2773
2773
|
headerLevel = _ref$headerLevel === void 0 ? 'h2' : _ref$headerLevel,
|
|
@@ -2775,7 +2775,7 @@ var Accordion$1 = /*#__PURE__*/react.forwardRef(function Accordion(_ref, ref) {
|
|
|
2775
2775
|
chevronPosition = _ref$chevronPosition === void 0 ? 'left' : _ref$chevronPosition,
|
|
2776
2776
|
children = _ref.children,
|
|
2777
2777
|
id = _ref.id,
|
|
2778
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
2778
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$19);
|
|
2779
2779
|
|
|
2780
2780
|
var accordionId = edsUtils.useId(id, 'accordion');
|
|
2781
2781
|
|
|
@@ -2803,7 +2803,7 @@ var Accordion$1 = /*#__PURE__*/react.forwardRef(function Accordion(_ref, ref) {
|
|
|
2803
2803
|
});
|
|
2804
2804
|
}); // Accordion.displayName = 'Accordion'
|
|
2805
2805
|
|
|
2806
|
-
var _excluded$
|
|
2806
|
+
var _excluded$18 = ["headerLevel", "chevronPosition", "index", "accordionId", "isExpanded", "children", "disabled"];
|
|
2807
2807
|
var AccordionItem = /*#__PURE__*/react.forwardRef(function AccordionItem(_ref, ref) {
|
|
2808
2808
|
var headerLevel = _ref.headerLevel,
|
|
2809
2809
|
chevronPosition = _ref.chevronPosition,
|
|
@@ -2813,7 +2813,7 @@ var AccordionItem = /*#__PURE__*/react.forwardRef(function AccordionItem(_ref, r
|
|
|
2813
2813
|
isExpanded = _ref.isExpanded,
|
|
2814
2814
|
children = _ref.children,
|
|
2815
2815
|
disabled = _ref.disabled,
|
|
2816
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
2816
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$18);
|
|
2817
2817
|
|
|
2818
2818
|
var _useState = react.useState(isExpanded),
|
|
2819
2819
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -2851,7 +2851,7 @@ var AccordionItem = /*#__PURE__*/react.forwardRef(function AccordionItem(_ref, r
|
|
|
2851
2851
|
}));
|
|
2852
2852
|
}); // AccordionItem.displayName = 'AccordionItem'
|
|
2853
2853
|
|
|
2854
|
-
var _excluded$
|
|
2854
|
+
var _excluded$17 = ["isExpanded", "disabled", "children"];
|
|
2855
2855
|
var StyledAccordionHeaderTitle = styled__default["default"].span.withConfig({
|
|
2856
2856
|
displayName: "AccordionHeaderTitle__StyledAccordionHeaderTitle",
|
|
2857
2857
|
componentId: "sc-g27uve-0"
|
|
@@ -2868,7 +2868,7 @@ var AccordionHeaderTitle = /*#__PURE__*/react.forwardRef(function AccordionHeade
|
|
|
2868
2868
|
var isExpanded = _ref2.isExpanded,
|
|
2869
2869
|
disabled = _ref2.disabled,
|
|
2870
2870
|
children = _ref2.children,
|
|
2871
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
2871
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$17);
|
|
2872
2872
|
|
|
2873
2873
|
return /*#__PURE__*/jsxRuntime.jsx(StyledAccordionHeaderTitle, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
2874
2874
|
ref: ref,
|
|
@@ -2879,7 +2879,7 @@ var AccordionHeaderTitle = /*#__PURE__*/react.forwardRef(function AccordionHeade
|
|
|
2879
2879
|
}));
|
|
2880
2880
|
}); // AccordionHeaderTitle.displayName = 'AccordionHeaderTitle'
|
|
2881
2881
|
|
|
2882
|
-
var _excluded$
|
|
2882
|
+
var _excluded$16 = ["isExpanded", "disabled", "children"];
|
|
2883
2883
|
var StyledAccordionHeaderActions = styled__default["default"].span.withConfig({
|
|
2884
2884
|
displayName: "AccordionHeaderActions__StyledAccordionHeaderActions",
|
|
2885
2885
|
componentId: "sc-klu9el-0"
|
|
@@ -2902,7 +2902,7 @@ var AccordionHeaderActions = /*#__PURE__*/react.forwardRef(function AccordionHea
|
|
|
2902
2902
|
var isExpanded = _ref2.isExpanded,
|
|
2903
2903
|
disabled = _ref2.disabled,
|
|
2904
2904
|
children = _ref2.children,
|
|
2905
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
2905
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$16);
|
|
2906
2906
|
|
|
2907
2907
|
return /*#__PURE__*/jsxRuntime.jsx(StyledAccordionHeaderActions, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
2908
2908
|
ref: ref,
|
|
@@ -2913,7 +2913,7 @@ var AccordionHeaderActions = /*#__PURE__*/react.forwardRef(function AccordionHea
|
|
|
2913
2913
|
}));
|
|
2914
2914
|
});
|
|
2915
2915
|
|
|
2916
|
-
var _excluded$
|
|
2916
|
+
var _excluded$15 = ["parentIndex", "headerLevel", "chevronPosition", "panelId", "id", "isExpanded", "children", "toggleExpanded", "disabled", "className", "style"];
|
|
2917
2917
|
var chevronToken = accordion.entities.chevron;
|
|
2918
2918
|
var StyledAccordionHeader = styled__default["default"].div.withConfig({
|
|
2919
2919
|
displayName: "AccordionHeader__StyledAccordionHeader",
|
|
@@ -2989,7 +2989,7 @@ var AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_re
|
|
|
2989
2989
|
disabled = _ref5.disabled,
|
|
2990
2990
|
className = _ref5.className,
|
|
2991
2991
|
style = _ref5.style,
|
|
2992
|
-
props = _objectWithoutProperties__default["default"](_ref5, _excluded$
|
|
2992
|
+
props = _objectWithoutProperties__default["default"](_ref5, _excluded$15);
|
|
2993
2993
|
|
|
2994
2994
|
var handleClick = function handleClick(e) {
|
|
2995
2995
|
e.preventDefault();
|
|
@@ -3077,7 +3077,7 @@ var AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_re
|
|
|
3077
3077
|
});
|
|
3078
3078
|
});
|
|
3079
3079
|
|
|
3080
|
-
var _excluded
|
|
3080
|
+
var _excluded$14 = ["id", "headerId", "hidden", "children"];
|
|
3081
3081
|
var StyledAccordionPanel = styled__default["default"].div.attrs(function (_ref) {
|
|
3082
3082
|
var headerId = _ref.headerId;
|
|
3083
3083
|
return {
|
|
@@ -3100,7 +3100,7 @@ var AccordionPanel = /*#__PURE__*/react.forwardRef(function AccordionPanel(_ref3
|
|
|
3100
3100
|
headerId = _ref3.headerId,
|
|
3101
3101
|
hidden = _ref3.hidden,
|
|
3102
3102
|
children = _ref3.children,
|
|
3103
|
-
props = _objectWithoutProperties__default["default"](_ref3, _excluded
|
|
3103
|
+
props = _objectWithoutProperties__default["default"](_ref3, _excluded$14);
|
|
3104
3104
|
|
|
3105
3105
|
return /*#__PURE__*/jsxRuntime.jsx(StyledAccordionPanel, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
3106
3106
|
headerId: headerId,
|
|
@@ -3137,14 +3137,14 @@ var TabsContext = /*#__PURE__*/react.createContext({
|
|
|
3137
3137
|
var TabsProvider = TabsContext.Provider;
|
|
3138
3138
|
TabsContext.Consumer;
|
|
3139
3139
|
|
|
3140
|
-
var _tokens$colors$
|
|
3141
|
-
defaultColor = _tokens$colors$
|
|
3142
|
-
defaultBorderColor = _tokens$colors$
|
|
3143
|
-
_tokens$colors$intera$
|
|
3144
|
-
focusOutlineColor$6 = _tokens$colors$intera$
|
|
3145
|
-
hoverBackgroundColor = _tokens$colors$intera$
|
|
3146
|
-
activeColor$2 = _tokens$colors$intera$
|
|
3147
|
-
activeHoverColor = _tokens$colors$intera$
|
|
3140
|
+
var _tokens$colors$d = edsTokens.tokens.colors,
|
|
3141
|
+
defaultColor = _tokens$colors$d.text.static_icons__tertiary.rgba,
|
|
3142
|
+
defaultBorderColor = _tokens$colors$d.ui.background__medium.rgba,
|
|
3143
|
+
_tokens$colors$intera$a = _tokens$colors$d.interactive,
|
|
3144
|
+
focusOutlineColor$6 = _tokens$colors$intera$a.focus.rgba,
|
|
3145
|
+
hoverBackgroundColor = _tokens$colors$intera$a.primary__hover_alt.rgba,
|
|
3146
|
+
activeColor$2 = _tokens$colors$intera$a.primary__resting.rgba,
|
|
3147
|
+
activeHoverColor = _tokens$colors$intera$a.primary__hover.rgba,
|
|
3148
3148
|
clickboundsHeight = edsTokens.tokens.clickbounds.default__base,
|
|
3149
3149
|
spacingMedium$8 = edsTokens.tokens.spacings.comfortable.medium,
|
|
3150
3150
|
focusOutlineWidth$6 = edsTokens.tokens.interactions.focused.width,
|
|
@@ -3244,7 +3244,7 @@ var token$1 = {
|
|
|
3244
3244
|
}
|
|
3245
3245
|
};
|
|
3246
3246
|
|
|
3247
|
-
var _excluded$
|
|
3247
|
+
var _excluded$13 = ["activeTab", "onChange", "onBlur", "onFocus", "variant", "scrollable", "id"];
|
|
3248
3248
|
var Tabs$1 = /*#__PURE__*/react.forwardRef(function Tabs(_ref, ref) {
|
|
3249
3249
|
var _ref$activeTab = _ref.activeTab,
|
|
3250
3250
|
activeTab = _ref$activeTab === void 0 ? 0 : _ref$activeTab,
|
|
@@ -3259,7 +3259,7 @@ var Tabs$1 = /*#__PURE__*/react.forwardRef(function Tabs(_ref, ref) {
|
|
|
3259
3259
|
_ref$scrollable = _ref.scrollable,
|
|
3260
3260
|
scrollable = _ref$scrollable === void 0 ? false : _ref$scrollable,
|
|
3261
3261
|
id = _ref.id,
|
|
3262
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3262
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$13);
|
|
3263
3263
|
|
|
3264
3264
|
var tabsId = edsUtils.useId(id, 'tabs');
|
|
3265
3265
|
var tabsRef = react.useRef(null);
|
|
@@ -3355,7 +3355,7 @@ var Tabs$1 = /*#__PURE__*/react.forwardRef(function Tabs(_ref, ref) {
|
|
|
3355
3355
|
});
|
|
3356
3356
|
});
|
|
3357
3357
|
|
|
3358
|
-
var _excluded$
|
|
3358
|
+
var _excluded$12 = ["children"];
|
|
3359
3359
|
var variants$1 = {
|
|
3360
3360
|
fullWidth: 'minmax(1%, 360px)',
|
|
3361
3361
|
minWidth: 'max-content'
|
|
@@ -3377,7 +3377,7 @@ var StyledTabList = styled__default["default"].div.attrs(function () {
|
|
|
3377
3377
|
var TabList = /*#__PURE__*/react.forwardRef(function TabsList(_ref3, ref) {
|
|
3378
3378
|
var _ref3$children = _ref3.children,
|
|
3379
3379
|
children = _ref3$children === void 0 ? [] : _ref3$children,
|
|
3380
|
-
props = _objectWithoutProperties__default["default"](_ref3, _excluded$
|
|
3380
|
+
props = _objectWithoutProperties__default["default"](_ref3, _excluded$12);
|
|
3381
3381
|
|
|
3382
3382
|
var _useContext = react.useContext(TabsContext),
|
|
3383
3383
|
activeTab = _useContext.activeTab,
|
|
@@ -3459,7 +3459,7 @@ var TabList = /*#__PURE__*/react.forwardRef(function TabsList(_ref3, ref) {
|
|
|
3459
3459
|
}));
|
|
3460
3460
|
});
|
|
3461
3461
|
|
|
3462
|
-
var _excluded$
|
|
3462
|
+
var _excluded$11 = ["active"];
|
|
3463
3463
|
var StyledTab = styled__default["default"].button.attrs(function (_ref) {
|
|
3464
3464
|
var _ref$$active = _ref.$active,
|
|
3465
3465
|
$active = _ref$$active === void 0 ? false : _ref$$active,
|
|
@@ -3484,7 +3484,7 @@ var StyledTab = styled__default["default"].button.attrs(function (_ref) {
|
|
|
3484
3484
|
});
|
|
3485
3485
|
var Tab = /*#__PURE__*/react.forwardRef(function Tab(_ref3, ref) {
|
|
3486
3486
|
var active = _ref3.active,
|
|
3487
|
-
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$
|
|
3487
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$11);
|
|
3488
3488
|
|
|
3489
3489
|
return /*#__PURE__*/jsxRuntime.jsx(StyledTab, _objectSpread__default["default"]({
|
|
3490
3490
|
ref: ref,
|
|
@@ -3492,10 +3492,10 @@ var Tab = /*#__PURE__*/react.forwardRef(function Tab(_ref3, ref) {
|
|
|
3492
3492
|
}, rest));
|
|
3493
3493
|
});
|
|
3494
3494
|
|
|
3495
|
-
var _excluded$
|
|
3495
|
+
var _excluded$10 = ["children"];
|
|
3496
3496
|
var TabPanels = /*#__PURE__*/react.forwardRef(function TabPanels(_ref, ref) {
|
|
3497
3497
|
var children = _ref.children,
|
|
3498
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3498
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$10);
|
|
3499
3499
|
|
|
3500
3500
|
var _useContext = react.useContext(TabsContext),
|
|
3501
3501
|
activeTab = _useContext.activeTab,
|
|
@@ -3549,12 +3549,12 @@ Tabs.Panel.displayName = 'Tabs.Panel';
|
|
|
3549
3549
|
Tabs.List.displayName = 'Tabs.List';
|
|
3550
3550
|
|
|
3551
3551
|
var elevation = edsTokens.tokens.elevation,
|
|
3552
|
-
background$
|
|
3552
|
+
background$c = edsTokens.tokens.colors.ui.background__default.rgba;
|
|
3553
3553
|
var paper = {
|
|
3554
|
-
background: background$
|
|
3554
|
+
background: background$c
|
|
3555
3555
|
};
|
|
3556
3556
|
|
|
3557
|
-
var _excluded
|
|
3557
|
+
var _excluded$$ = ["elevation"];
|
|
3558
3558
|
var StyledPaper = styled__default["default"].div.withConfig({
|
|
3559
3559
|
displayName: "Paper__StyledPaper",
|
|
3560
3560
|
componentId: "sc-6ncnv9-0"
|
|
@@ -3564,7 +3564,7 @@ var StyledPaper = styled__default["default"].div.withConfig({
|
|
|
3564
3564
|
});
|
|
3565
3565
|
var Paper = /*#__PURE__*/react.forwardRef(function Paper(_ref2, ref) {
|
|
3566
3566
|
var elevation$1 = _ref2.elevation,
|
|
3567
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded
|
|
3567
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$$);
|
|
3568
3568
|
|
|
3569
3569
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
3570
3570
|
elevation: elevation[elevation$1] || 'none'
|
|
@@ -3575,15 +3575,15 @@ var Paper = /*#__PURE__*/react.forwardRef(function Paper(_ref2, ref) {
|
|
|
3575
3575
|
}));
|
|
3576
3576
|
});
|
|
3577
3577
|
|
|
3578
|
-
var _tokens$colors$ui$
|
|
3579
|
-
background$
|
|
3580
|
-
backgroundInfo = _tokens$colors$ui$
|
|
3581
|
-
backgroundWarning = _tokens$colors$ui$
|
|
3582
|
-
backgroundDanger = _tokens$colors$ui$
|
|
3578
|
+
var _tokens$colors$ui$4 = edsTokens.tokens.colors.ui,
|
|
3579
|
+
background$b = _tokens$colors$ui$4.background__default.rgba,
|
|
3580
|
+
backgroundInfo = _tokens$colors$ui$4.background__info.rgba,
|
|
3581
|
+
backgroundWarning = _tokens$colors$ui$4.background__warning.rgba,
|
|
3582
|
+
backgroundDanger = _tokens$colors$ui$4.background__danger.rgba,
|
|
3583
3583
|
spacingMedium$7 = edsTokens.tokens.spacings.comfortable.medium,
|
|
3584
3584
|
borderRadius$8 = edsTokens.tokens.shape.corners.borderRadius;
|
|
3585
3585
|
var primary$4 = {
|
|
3586
|
-
background: background$
|
|
3586
|
+
background: background$b,
|
|
3587
3587
|
border: {
|
|
3588
3588
|
type: 'border',
|
|
3589
3589
|
radius: borderRadius$8
|
|
@@ -3613,7 +3613,7 @@ var tokens$2 = /*#__PURE__*/Object.freeze({
|
|
|
3613
3613
|
warning: warning$2
|
|
3614
3614
|
});
|
|
3615
3615
|
|
|
3616
|
-
var _excluded$
|
|
3616
|
+
var _excluded$_ = ["children", "variant", "elevation"];
|
|
3617
3617
|
var primary$3 = primary$4;
|
|
3618
3618
|
var StyledCard = styled__default["default"](Paper).withConfig({
|
|
3619
3619
|
displayName: "Card__StyledCard",
|
|
@@ -3628,7 +3628,7 @@ var Card$1 = /*#__PURE__*/react.forwardRef(function Card(_ref2, ref) {
|
|
|
3628
3628
|
variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
|
|
3629
3629
|
_ref2$elevation = _ref2.elevation,
|
|
3630
3630
|
elevation = _ref2$elevation === void 0 ? 'none' : _ref2$elevation,
|
|
3631
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
3631
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$_);
|
|
3632
3632
|
|
|
3633
3633
|
var cardVariant = variant === 'default' ? 'primary' : variant;
|
|
3634
3634
|
var token = tokens$2[cardVariant];
|
|
@@ -3645,7 +3645,7 @@ var Card$1 = /*#__PURE__*/react.forwardRef(function Card(_ref2, ref) {
|
|
|
3645
3645
|
}));
|
|
3646
3646
|
});
|
|
3647
3647
|
|
|
3648
|
-
var _excluded$
|
|
3648
|
+
var _excluded$Z = ["children", "alignRight", "meta"];
|
|
3649
3649
|
var spacings$6 = primary$4.spacings;
|
|
3650
3650
|
var StyledCardActions = styled__default["default"].div.withConfig({
|
|
3651
3651
|
displayName: "CardActions__StyledCardActions",
|
|
@@ -3660,7 +3660,7 @@ var CardActions = /*#__PURE__*/react.forwardRef(function CardActions(_ref2, ref)
|
|
|
3660
3660
|
alignRight = _ref2$alignRight === void 0 ? false : _ref2$alignRight,
|
|
3661
3661
|
_ref2$meta = _ref2.meta,
|
|
3662
3662
|
meta = _ref2$meta === void 0 ? '' : _ref2$meta,
|
|
3663
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
3663
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$Z);
|
|
3664
3664
|
|
|
3665
3665
|
var justifyContent = alignRight ? 'flex-end' : 'flex-start';
|
|
3666
3666
|
|
|
@@ -3677,7 +3677,7 @@ var CardActions = /*#__PURE__*/react.forwardRef(function CardActions(_ref2, ref)
|
|
|
3677
3677
|
}));
|
|
3678
3678
|
});
|
|
3679
3679
|
|
|
3680
|
-
var _excluded$
|
|
3680
|
+
var _excluded$Y = ["children"];
|
|
3681
3681
|
var spacings$5 = primary$4.spacings;
|
|
3682
3682
|
var StyledCardContent = styled__default["default"].div.withConfig({
|
|
3683
3683
|
displayName: "CardContent__StyledCardContent",
|
|
@@ -3685,7 +3685,7 @@ var StyledCardContent = styled__default["default"].div.withConfig({
|
|
|
3685
3685
|
})(["display:grid;padding:0 ", " 0 ", ";:last-child{padding-bottom:", ";}"], spacings$5.right, spacings$5.left, spacings$5.bottom);
|
|
3686
3686
|
var CardContent = /*#__PURE__*/react.forwardRef(function CardContent(_ref, ref) {
|
|
3687
3687
|
var children = _ref.children,
|
|
3688
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3688
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$Y);
|
|
3689
3689
|
|
|
3690
3690
|
return /*#__PURE__*/jsxRuntime.jsx(StyledCardContent, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
3691
3691
|
ref: ref
|
|
@@ -3694,7 +3694,7 @@ var CardContent = /*#__PURE__*/react.forwardRef(function CardContent(_ref, ref)
|
|
|
3694
3694
|
}));
|
|
3695
3695
|
});
|
|
3696
3696
|
|
|
3697
|
-
var _excluded$
|
|
3697
|
+
var _excluded$X = ["children", "fullWidth"];
|
|
3698
3698
|
var spacings$4 = primary$4.spacings,
|
|
3699
3699
|
border$3 = primary$4.border;
|
|
3700
3700
|
var StyledCardMedia = styled__default["default"].div.withConfig({
|
|
@@ -3708,7 +3708,7 @@ var CardMedia = /*#__PURE__*/react.forwardRef(function CardMedia(_ref2, ref) {
|
|
|
3708
3708
|
var children = _ref2.children,
|
|
3709
3709
|
_ref2$fullWidth = _ref2.fullWidth,
|
|
3710
3710
|
fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth,
|
|
3711
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
3711
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$X);
|
|
3712
3712
|
|
|
3713
3713
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
3714
3714
|
ref: ref,
|
|
@@ -3720,7 +3720,7 @@ var CardMedia = /*#__PURE__*/react.forwardRef(function CardMedia(_ref2, ref) {
|
|
|
3720
3720
|
}));
|
|
3721
3721
|
});
|
|
3722
3722
|
|
|
3723
|
-
var _excluded$
|
|
3723
|
+
var _excluded$W = ["children"];
|
|
3724
3724
|
var spacings$3 = primary$4.spacings;
|
|
3725
3725
|
var StyledCardHeader = styled__default["default"].div.withConfig({
|
|
3726
3726
|
displayName: "CardHeader__StyledCardHeader",
|
|
@@ -3728,7 +3728,7 @@ var StyledCardHeader = styled__default["default"].div.withConfig({
|
|
|
3728
3728
|
})(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";> :not(:first-child){margin-left:", ";}:first-child{padding-top:", ";}:last-child{padding-bottom:", ";}"], spacings$3.right, spacings$3.left, spacings$3.left, spacings$3.top, spacings$3.bottom);
|
|
3729
3729
|
var CardHeader = /*#__PURE__*/react.forwardRef(function CardHeader(_ref, ref) {
|
|
3730
3730
|
var children = _ref.children,
|
|
3731
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3731
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$W);
|
|
3732
3732
|
|
|
3733
3733
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
3734
3734
|
ref: ref
|
|
@@ -3739,14 +3739,14 @@ var CardHeader = /*#__PURE__*/react.forwardRef(function CardHeader(_ref, ref) {
|
|
|
3739
3739
|
}));
|
|
3740
3740
|
});
|
|
3741
3741
|
|
|
3742
|
-
var _excluded$
|
|
3742
|
+
var _excluded$V = ["children"];
|
|
3743
3743
|
var StyledCardHeaderTitle = styled__default["default"].div.withConfig({
|
|
3744
3744
|
displayName: "CardHeaderTitle__StyledCardHeaderTitle",
|
|
3745
3745
|
componentId: "sc-11m80r3-0"
|
|
3746
3746
|
})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
|
|
3747
3747
|
var CardHeaderTitle = /*#__PURE__*/react.forwardRef(function CardHeaderTitle(_ref, ref) {
|
|
3748
3748
|
var children = _ref.children,
|
|
3749
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3749
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$V);
|
|
3750
3750
|
|
|
3751
3751
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
3752
3752
|
ref: ref
|
|
@@ -3795,7 +3795,7 @@ var topbar = {
|
|
|
3795
3795
|
}
|
|
3796
3796
|
};
|
|
3797
3797
|
|
|
3798
|
-
var _excluded$
|
|
3798
|
+
var _excluded$U = ["children", "elevation", "sticky"];
|
|
3799
3799
|
var StyledTopBar = styled__default["default"](Paper).withConfig({
|
|
3800
3800
|
displayName: "TopBar__StyledTopBar",
|
|
3801
3801
|
componentId: "sc-1yj236q-0"
|
|
@@ -3810,7 +3810,7 @@ var TopBar$1 = /*#__PURE__*/react.forwardRef(function TopBar(_ref2, ref) {
|
|
|
3810
3810
|
elevation = _ref2$elevation === void 0 ? 'none' : _ref2$elevation,
|
|
3811
3811
|
_ref2$sticky = _ref2.sticky,
|
|
3812
3812
|
sticky = _ref2$sticky === void 0 ? true : _ref2$sticky,
|
|
3813
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
3813
|
+
props = _objectWithoutProperties__default["default"](_ref2, _excluded$U);
|
|
3814
3814
|
|
|
3815
3815
|
var _useEds = useEds(),
|
|
3816
3816
|
density = _useEds.density;
|
|
@@ -3835,14 +3835,14 @@ var TopBar$1 = /*#__PURE__*/react.forwardRef(function TopBar(_ref2, ref) {
|
|
|
3835
3835
|
});
|
|
3836
3836
|
}); // TopBar.displayName = 'eds-topbar'
|
|
3837
3837
|
|
|
3838
|
-
var _excluded$
|
|
3838
|
+
var _excluded$T = ["children"];
|
|
3839
3839
|
var StyledActions = styled__default["default"].div.withConfig({
|
|
3840
3840
|
displayName: "Actions__StyledActions",
|
|
3841
3841
|
componentId: "sc-1251ang-0"
|
|
3842
3842
|
})(["grid-area:right;text-align:right;align-items:center;display:flex;"]);
|
|
3843
3843
|
var Actions = /*#__PURE__*/react.forwardRef(function Actions(_ref, ref) {
|
|
3844
3844
|
var children = _ref.children,
|
|
3845
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3845
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$T);
|
|
3846
3846
|
|
|
3847
3847
|
return /*#__PURE__*/jsxRuntime.jsx(StyledActions, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
3848
3848
|
ref: ref
|
|
@@ -3851,14 +3851,14 @@ var Actions = /*#__PURE__*/react.forwardRef(function Actions(_ref, ref) {
|
|
|
3851
3851
|
}));
|
|
3852
3852
|
}); // Actions.displayName = 'eds-topbar-actions'
|
|
3853
3853
|
|
|
3854
|
-
var _excluded$
|
|
3854
|
+
var _excluded$S = ["children"];
|
|
3855
3855
|
var StyledHeader = styled__default["default"].div.withConfig({
|
|
3856
3856
|
displayName: "Header__StyledHeader",
|
|
3857
3857
|
componentId: "sc-1fpllve-0"
|
|
3858
|
-
})(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:
|
|
3858
|
+
})(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:12px;align-items:center;"]);
|
|
3859
3859
|
var Header$2 = /*#__PURE__*/react.forwardRef(function Header(_ref, ref) {
|
|
3860
3860
|
var children = _ref.children,
|
|
3861
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3861
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$S);
|
|
3862
3862
|
|
|
3863
3863
|
return /*#__PURE__*/jsxRuntime.jsx(StyledHeader, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
3864
3864
|
ref: ref
|
|
@@ -3867,14 +3867,14 @@ var Header$2 = /*#__PURE__*/react.forwardRef(function Header(_ref, ref) {
|
|
|
3867
3867
|
}));
|
|
3868
3868
|
}); // Header.displayName = 'eds-topbar-header'
|
|
3869
3869
|
|
|
3870
|
-
var _excluded$
|
|
3870
|
+
var _excluded$R = ["children"];
|
|
3871
3871
|
var StyledCustomContent = styled__default["default"].div.withConfig({
|
|
3872
3872
|
displayName: "CustomContent__StyledCustomContent",
|
|
3873
3873
|
componentId: "sc-d0e83a-0"
|
|
3874
3874
|
})(["grid-area:center;"]);
|
|
3875
3875
|
var CustomContent = /*#__PURE__*/react.forwardRef(function CustomContent(_ref, ref) {
|
|
3876
3876
|
var children = _ref.children,
|
|
3877
|
-
props = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3877
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded$R);
|
|
3878
3878
|
|
|
3879
3879
|
return /*#__PURE__*/jsxRuntime.jsx(StyledCustomContent, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
3880
3880
|
ref: ref
|
|
@@ -3891,17 +3891,17 @@ TopBar.Actions.displayName = 'Topbar.Actions';
|
|
|
3891
3891
|
TopBar.Header.displayName = 'Topbar.Header';
|
|
3892
3892
|
TopBar.CustomContent.displayName = 'Topbar.CustomContent';
|
|
3893
3893
|
|
|
3894
|
-
var background$
|
|
3894
|
+
var background$a = edsTokens.tokens.colors.ui.background__scrim.rgba;
|
|
3895
3895
|
var scrim = {
|
|
3896
|
-
background: background$
|
|
3896
|
+
background: background$a
|
|
3897
3897
|
};
|
|
3898
3898
|
|
|
3899
|
-
var _excluded$
|
|
3900
|
-
var background$
|
|
3899
|
+
var _excluded$Q = ["children", "onClose", "open", "isDismissable"];
|
|
3900
|
+
var background$9 = scrim.background;
|
|
3901
3901
|
var StyledScrim = styled__default["default"](reactDomInteractions.FloatingOverlay).withConfig({
|
|
3902
3902
|
displayName: "Scrim__StyledScrim",
|
|
3903
3903
|
componentId: "sc-1fr7uvy-0"
|
|
3904
|
-
})(["background:", ";z-index:1300;align-items:center;justify-content:center;display:flex;"], background$
|
|
3904
|
+
})(["background:", ";z-index:1300;align-items:center;justify-content:center;display:flex;"], background$9);
|
|
3905
3905
|
var ScrimContent = styled__default["default"].div.withConfig({
|
|
3906
3906
|
displayName: "Scrim__ScrimContent",
|
|
3907
3907
|
componentId: "sc-1fr7uvy-1"
|
|
@@ -3912,7 +3912,7 @@ var Scrim = /*#__PURE__*/react.forwardRef(function Scrim(_ref, ref) {
|
|
|
3912
3912
|
open = _ref.open,
|
|
3913
3913
|
_ref$isDismissable = _ref.isDismissable,
|
|
3914
3914
|
isDismissable = _ref$isDismissable === void 0 ? false : _ref$isDismissable,
|
|
3915
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
3915
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$Q);
|
|
3916
3916
|
|
|
3917
3917
|
var scrimRef = react.useRef(null);
|
|
3918
3918
|
var combinedScrimRef = react.useMemo(function () {
|
|
@@ -3951,11 +3951,11 @@ var spacingMedium$6 = edsTokens.tokens.spacings.comfortable.medium,
|
|
|
3951
3951
|
_tokens$typography = edsTokens.tokens.typography,
|
|
3952
3952
|
accordion_header = _tokens$typography.ui.accordion_header,
|
|
3953
3953
|
body_long = _tokens$typography.paragraph.body_long,
|
|
3954
|
-
background$
|
|
3954
|
+
background$8 = edsTokens.tokens.colors.ui.background__default.rgba,
|
|
3955
3955
|
borderRadius$7 = edsTokens.tokens.shape.corners.borderRadius;
|
|
3956
3956
|
var dialog = {
|
|
3957
3957
|
width: '252px',
|
|
3958
|
-
background: background$
|
|
3958
|
+
background: background$8,
|
|
3959
3959
|
typography: accordion_header,
|
|
3960
3960
|
border: {
|
|
3961
3961
|
type: 'border',
|
|
@@ -3991,7 +3991,7 @@ var dialog = {
|
|
|
3991
3991
|
}
|
|
3992
3992
|
};
|
|
3993
3993
|
|
|
3994
|
-
var _excluded$
|
|
3994
|
+
var _excluded$P = ["children", "open", "onClose", "isDismissable"];
|
|
3995
3995
|
var StyledDialog = styled__default["default"](Paper).attrs({
|
|
3996
3996
|
tabIndex: 0,
|
|
3997
3997
|
role: 'dialog',
|
|
@@ -4011,7 +4011,7 @@ var Dialog$1 = /*#__PURE__*/react.forwardRef(function Dialog(_ref2, ref) {
|
|
|
4011
4011
|
onClose = _ref2.onClose,
|
|
4012
4012
|
_ref2$isDismissable = _ref2.isDismissable,
|
|
4013
4013
|
isDismissable = _ref2$isDismissable === void 0 ? false : _ref2$isDismissable,
|
|
4014
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
4014
|
+
props = _objectWithoutProperties__default["default"](_ref2, _excluded$P);
|
|
4015
4015
|
|
|
4016
4016
|
var _useEds = useEds(),
|
|
4017
4017
|
density = _useEds.density;
|
|
@@ -4060,7 +4060,7 @@ var Dialog$1 = /*#__PURE__*/react.forwardRef(function Dialog(_ref2, ref) {
|
|
|
4060
4060
|
});
|
|
4061
4061
|
}); // Dialog.displayName = 'EdsDialog'
|
|
4062
4062
|
|
|
4063
|
-
var _excluded$
|
|
4063
|
+
var _excluded$O = ["children"];
|
|
4064
4064
|
var StyledDialogActions = styled__default["default"].div.withConfig({
|
|
4065
4065
|
displayName: "DialogActions__StyledDialogActions",
|
|
4066
4066
|
componentId: "sc-16ydtxd-0"
|
|
@@ -4071,7 +4071,7 @@ var StyledDialogActions = styled__default["default"].div.withConfig({
|
|
|
4071
4071
|
});
|
|
4072
4072
|
var DialogActions = /*#__PURE__*/react.forwardRef(function DialogActions(_ref2, ref) {
|
|
4073
4073
|
var children = _ref2.children,
|
|
4074
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
4074
|
+
props = _objectWithoutProperties__default["default"](_ref2, _excluded$O);
|
|
4075
4075
|
|
|
4076
4076
|
return /*#__PURE__*/jsxRuntime.jsx(StyledDialogActions, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
4077
4077
|
ref: ref
|
|
@@ -4080,7 +4080,7 @@ var DialogActions = /*#__PURE__*/react.forwardRef(function DialogActions(_ref2,
|
|
|
4080
4080
|
}));
|
|
4081
4081
|
}); // Actions.displayName = 'EdsDialogActions'
|
|
4082
4082
|
|
|
4083
|
-
var _excluded$
|
|
4083
|
+
var _excluded$N = ["children"];
|
|
4084
4084
|
var StyledDialogTitle = styled__default["default"].div.withConfig({
|
|
4085
4085
|
displayName: "DialogTitle__StyledDialogTitle",
|
|
4086
4086
|
componentId: "sc-1t3jljt-0"
|
|
@@ -4091,7 +4091,7 @@ var StyledDialogTitle = styled__default["default"].div.withConfig({
|
|
|
4091
4091
|
});
|
|
4092
4092
|
var DialogTitle = /*#__PURE__*/react.forwardRef(function DialogTitle(_ref2, ref) {
|
|
4093
4093
|
var children = _ref2.children,
|
|
4094
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
4094
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$N);
|
|
4095
4095
|
|
|
4096
4096
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
4097
4097
|
children: /*#__PURE__*/jsxRuntime.jsx(StyledDialogTitle, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
@@ -4103,7 +4103,7 @@ var DialogTitle = /*#__PURE__*/react.forwardRef(function DialogTitle(_ref2, ref)
|
|
|
4103
4103
|
});
|
|
4104
4104
|
});
|
|
4105
4105
|
|
|
4106
|
-
var _excluded$
|
|
4106
|
+
var _excluded$M = ["children", "scrollable"];
|
|
4107
4107
|
var StyledDialogContent = styled__default["default"].div.withConfig({
|
|
4108
4108
|
displayName: "DialogContent__StyledDialogContent",
|
|
4109
4109
|
componentId: "sc-1tze18k-0"
|
|
@@ -4120,7 +4120,7 @@ var DialogContent = /*#__PURE__*/react.forwardRef(function DialogContent(_ref2,
|
|
|
4120
4120
|
var children = _ref2.children,
|
|
4121
4121
|
_ref2$scrollable = _ref2.scrollable,
|
|
4122
4122
|
scrollable = _ref2$scrollable === void 0 ? false : _ref2$scrollable,
|
|
4123
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
4123
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$M);
|
|
4124
4124
|
|
|
4125
4125
|
var props = _objectSpread__default["default"]({
|
|
4126
4126
|
scrollable: scrollable,
|
|
@@ -4139,7 +4139,7 @@ var DialogContent = /*#__PURE__*/react.forwardRef(function DialogContent(_ref2,
|
|
|
4139
4139
|
});
|
|
4140
4140
|
});
|
|
4141
4141
|
|
|
4142
|
-
var _excluded$
|
|
4142
|
+
var _excluded$L = ["children"];
|
|
4143
4143
|
var StyledDialogHeader = styled__default["default"].div.withConfig({
|
|
4144
4144
|
displayName: "DialogHeader__StyledDialogHeader",
|
|
4145
4145
|
componentId: "sc-mbwcos-0"
|
|
@@ -4153,7 +4153,7 @@ var StyledDivider$1 = styled__default["default"](Divider).withConfig({
|
|
|
4153
4153
|
})(["margin-bottom:0;"]);
|
|
4154
4154
|
var DialogHeader = /*#__PURE__*/react.forwardRef(function DialogHeader(_ref2, ref) {
|
|
4155
4155
|
var children = _ref2.children,
|
|
4156
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
4156
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$L);
|
|
4157
4157
|
|
|
4158
4158
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
4159
4159
|
ref: ref
|
|
@@ -4180,18 +4180,18 @@ Dialog.Title.displayName = 'Dialog.Title';
|
|
|
4180
4180
|
Dialog.Content.displayName = 'Dialog.Content';
|
|
4181
4181
|
Dialog.Header.displayName = 'Dialog.Header';
|
|
4182
4182
|
|
|
4183
|
-
var _tokens$colors$
|
|
4184
|
-
_tokens$colors$intera$
|
|
4185
|
-
primaryColor$3 = _tokens$colors$intera$
|
|
4186
|
-
primaryHoverAlt$5 = _tokens$colors$intera$
|
|
4187
|
-
primaryHover$3 = _tokens$colors$intera$
|
|
4188
|
-
focusColor$
|
|
4189
|
-
labelColor = _tokens$colors$
|
|
4183
|
+
var _tokens$colors$c = edsTokens.tokens.colors,
|
|
4184
|
+
_tokens$colors$intera$9 = _tokens$colors$c.interactive,
|
|
4185
|
+
primaryColor$3 = _tokens$colors$intera$9.primary__resting.rgba,
|
|
4186
|
+
primaryHoverAlt$5 = _tokens$colors$intera$9.primary__hover_alt.rgba,
|
|
4187
|
+
primaryHover$3 = _tokens$colors$intera$9.primary__hover.rgba,
|
|
4188
|
+
focusColor$2 = _tokens$colors$intera$9.focus.rgba,
|
|
4189
|
+
labelColor = _tokens$colors$c.text.static_icons__tertiary.rgba,
|
|
4190
4190
|
borderRadius$6 = edsTokens.tokens.shape.corners.borderRadius,
|
|
4191
|
-
_tokens$spacings$comf$
|
|
4192
|
-
small$
|
|
4193
|
-
x_large = _tokens$spacings$comf$
|
|
4194
|
-
xxx_large = _tokens$spacings$comf$
|
|
4191
|
+
_tokens$spacings$comf$c = edsTokens.tokens.spacings.comfortable,
|
|
4192
|
+
small$4 = _tokens$spacings$comf$c.small,
|
|
4193
|
+
x_large = _tokens$spacings$comf$c.x_large,
|
|
4194
|
+
xxx_large = _tokens$spacings$comf$c.xxx_large,
|
|
4195
4195
|
typography$a = edsTokens.tokens.typography;
|
|
4196
4196
|
var tableOfContents = {
|
|
4197
4197
|
typography: _objectSpread__default["default"](_objectSpread__default["default"]({}, typography$a.navigation.button), {}, {
|
|
@@ -4205,7 +4205,7 @@ var tableOfContents = {
|
|
|
4205
4205
|
icon: {
|
|
4206
4206
|
background: primaryColor$3,
|
|
4207
4207
|
spacings: {
|
|
4208
|
-
right: small$
|
|
4208
|
+
right: small$4
|
|
4209
4209
|
}
|
|
4210
4210
|
},
|
|
4211
4211
|
links: {
|
|
@@ -4234,7 +4234,7 @@ var tableOfContents = {
|
|
|
4234
4234
|
focus: {
|
|
4235
4235
|
outline: {
|
|
4236
4236
|
type: 'outline',
|
|
4237
|
-
color: focusColor$
|
|
4237
|
+
color: focusColor$2,
|
|
4238
4238
|
width: '1px',
|
|
4239
4239
|
style: 'dashed',
|
|
4240
4240
|
offset: '2px'
|
|
@@ -4260,7 +4260,7 @@ var tableOfContents = {
|
|
|
4260
4260
|
}
|
|
4261
4261
|
};
|
|
4262
4262
|
|
|
4263
|
-
var _excluded$
|
|
4263
|
+
var _excluded$K = ["children", "sticky", "label"];
|
|
4264
4264
|
var StyledTableOfContents = styled__default["default"].nav.withConfig({
|
|
4265
4265
|
displayName: "TableOfContents__StyledTableOfContents",
|
|
4266
4266
|
componentId: "sc-q23s6y-0"
|
|
@@ -4286,7 +4286,7 @@ var TableOfContents$1 = /*#__PURE__*/react.forwardRef(function TableOfContents(_
|
|
|
4286
4286
|
sticky = _ref3$sticky === void 0 ? false : _ref3$sticky,
|
|
4287
4287
|
_ref3$label = _ref3.label,
|
|
4288
4288
|
label = _ref3$label === void 0 ? '' : _ref3$label,
|
|
4289
|
-
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$
|
|
4289
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$K);
|
|
4290
4290
|
|
|
4291
4291
|
var _useEds = useEds(),
|
|
4292
4292
|
density = _useEds.density;
|
|
@@ -4311,7 +4311,7 @@ var TableOfContents$1 = /*#__PURE__*/react.forwardRef(function TableOfContents(_
|
|
|
4311
4311
|
});
|
|
4312
4312
|
});
|
|
4313
4313
|
|
|
4314
|
-
var _excluded$
|
|
4314
|
+
var _excluded$J = ["children"];
|
|
4315
4315
|
var StyledLinkItem = styled__default["default"].li.withConfig({
|
|
4316
4316
|
displayName: "LinkItem__StyledLinkItem",
|
|
4317
4317
|
componentId: "sc-1tfuad4-0"
|
|
@@ -4321,7 +4321,7 @@ var StyledLinkItem = styled__default["default"].li.withConfig({
|
|
|
4321
4321
|
});
|
|
4322
4322
|
var LinkItem = /*#__PURE__*/react.forwardRef(function LinkItem(_ref2, ref) {
|
|
4323
4323
|
var children = _ref2.children,
|
|
4324
|
-
props = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
4324
|
+
props = _objectWithoutProperties__default["default"](_ref2, _excluded$J);
|
|
4325
4325
|
|
|
4326
4326
|
return /*#__PURE__*/jsxRuntime.jsx(StyledLinkItem, _objectSpread__default["default"](_objectSpread__default["default"]({}, props), {}, {
|
|
4327
4327
|
ref: ref,
|
|
@@ -4333,15 +4333,15 @@ var TableOfContents = TableOfContents$1;
|
|
|
4333
4333
|
TableOfContents.LinkItem = LinkItem;
|
|
4334
4334
|
TableOfContents.LinkItem.displayName = 'TableOfContents.LinkItem';
|
|
4335
4335
|
|
|
4336
|
-
var _tokens$colors$ui$
|
|
4337
|
-
background$
|
|
4338
|
-
borderColor = _tokens$colors$ui$
|
|
4339
|
-
_tokens$spacings$comf$
|
|
4340
|
-
spacingXXS = _tokens$spacings$comf$
|
|
4341
|
-
spacingMedium$5 = _tokens$spacings$comf$
|
|
4336
|
+
var _tokens$colors$ui$3 = edsTokens.tokens.colors.ui,
|
|
4337
|
+
background$7 = _tokens$colors$ui$3.background__default.rgba,
|
|
4338
|
+
borderColor = _tokens$colors$ui$3.background__light.rgba,
|
|
4339
|
+
_tokens$spacings$comf$b = edsTokens.tokens.spacings.comfortable,
|
|
4340
|
+
spacingXXS = _tokens$spacings$comf$b.xx_small,
|
|
4341
|
+
spacingMedium$5 = _tokens$spacings$comf$b.medium,
|
|
4342
4342
|
body_short = edsTokens.tokens.typography.paragraph.body_short;
|
|
4343
4343
|
var comfortable$2 = {
|
|
4344
|
-
background: background$
|
|
4344
|
+
background: background$7,
|
|
4345
4345
|
spacings: {
|
|
4346
4346
|
left: '14px',
|
|
4347
4347
|
// padding left is 14px, because of border-left 'steals' 2px of the padding
|
|
@@ -4365,15 +4365,15 @@ var variants = {
|
|
|
4365
4365
|
xlarge: '640px'
|
|
4366
4366
|
};
|
|
4367
4367
|
|
|
4368
|
-
var _excluded$
|
|
4369
|
-
var background$
|
|
4368
|
+
var _excluded$I = ["variant", "width", "title", "children", "open", "onClose"];
|
|
4369
|
+
var background$6 = comfortable$2.background,
|
|
4370
4370
|
spacings$2 = comfortable$2.spacings,
|
|
4371
4371
|
border$2 = comfortable$2.border,
|
|
4372
4372
|
typography$9 = comfortable$2.typography;
|
|
4373
4373
|
var StyledSideSheet = styled__default["default"].div.withConfig({
|
|
4374
4374
|
displayName: "SideSheet__StyledSideSheet",
|
|
4375
4375
|
componentId: "sc-wkzlnn-0"
|
|
4376
|
-
})(["height:100%;position:absolute;z-index:1200;top:0;right:0;box-sizing:border-box;background:", ";width:", ";", " ", ";", ""], background$
|
|
4376
|
+
})(["height:100%;position:absolute;z-index:1200;top:0;right:0;box-sizing:border-box;background:", ";width:", ";", " ", ";", ""], background$6, function (_ref) {
|
|
4377
4377
|
var width = _ref.width;
|
|
4378
4378
|
return width;
|
|
4379
4379
|
}, edsUtils.bordersTemplate(border$2), edsUtils.spacingsTemplate(spacings$2), edsUtils.typographyTemplate(typography$9));
|
|
@@ -4391,7 +4391,7 @@ var SideSheet = /*#__PURE__*/react.forwardRef(function SideSheet(_ref2, ref) {
|
|
|
4391
4391
|
_ref2$open = _ref2.open,
|
|
4392
4392
|
open = _ref2$open === void 0 ? true : _ref2$open,
|
|
4393
4393
|
onClose = _ref2.onClose,
|
|
4394
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
4394
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$I);
|
|
4395
4395
|
|
|
4396
4396
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
4397
4397
|
ref: ref,
|
|
@@ -4418,25 +4418,25 @@ var SideSheet = /*#__PURE__*/react.forwardRef(function SideSheet(_ref2, ref) {
|
|
|
4418
4418
|
}));
|
|
4419
4419
|
});
|
|
4420
4420
|
|
|
4421
|
-
var _tokens$spacings$comf$
|
|
4422
|
-
x_small$3 = _tokens$spacings$comf$
|
|
4423
|
-
small$
|
|
4424
|
-
medium$
|
|
4421
|
+
var _tokens$spacings$comf$a = edsTokens.tokens.spacings.comfortable,
|
|
4422
|
+
x_small$3 = _tokens$spacings$comf$a.x_small,
|
|
4423
|
+
small$3 = _tokens$spacings$comf$a.small,
|
|
4424
|
+
medium$3 = _tokens$spacings$comf$a.medium,
|
|
4425
4425
|
chipTypography = edsTokens.tokens.typography.ui.chip__badge,
|
|
4426
|
-
_tokens$colors$
|
|
4427
|
-
_tokens$colors$ui$
|
|
4428
|
-
backgroundColorDefault$1 = _tokens$colors$ui$
|
|
4429
|
-
backgroundColor$2 = _tokens$colors$ui$
|
|
4430
|
-
_tokens$colors$intera$
|
|
4431
|
-
primaryColor$2 = _tokens$colors$intera$
|
|
4432
|
-
primaryHoverAlt$4 = _tokens$colors$intera$
|
|
4433
|
-
primaryHover$2 = _tokens$colors$intera$
|
|
4434
|
-
disabledColor$1 = _tokens$colors$intera$
|
|
4435
|
-
focusOutlineColor$5 = _tokens$colors$intera$
|
|
4436
|
-
activeColor$1 = _tokens$colors$intera$
|
|
4437
|
-
errorColor = _tokens$colors$intera$
|
|
4438
|
-
errorColorHover = _tokens$colors$intera$
|
|
4439
|
-
errorBackgroundHover = _tokens$colors$intera$
|
|
4426
|
+
_tokens$colors$b = edsTokens.tokens.colors,
|
|
4427
|
+
_tokens$colors$ui$2 = _tokens$colors$b.ui,
|
|
4428
|
+
backgroundColorDefault$1 = _tokens$colors$ui$2.background__default.rgba,
|
|
4429
|
+
backgroundColor$2 = _tokens$colors$ui$2.background__light.rgba,
|
|
4430
|
+
_tokens$colors$intera$8 = _tokens$colors$b.interactive,
|
|
4431
|
+
primaryColor$2 = _tokens$colors$intera$8.primary__resting.rgba,
|
|
4432
|
+
primaryHoverAlt$4 = _tokens$colors$intera$8.primary__hover_alt.rgba,
|
|
4433
|
+
primaryHover$2 = _tokens$colors$intera$8.primary__hover.rgba,
|
|
4434
|
+
disabledColor$1 = _tokens$colors$intera$8.disabled__text.rgba,
|
|
4435
|
+
focusOutlineColor$5 = _tokens$colors$intera$8.focus.rgba,
|
|
4436
|
+
activeColor$1 = _tokens$colors$intera$8.primary__selected_highlight.rgba,
|
|
4437
|
+
errorColor = _tokens$colors$intera$8.danger__resting.rgba,
|
|
4438
|
+
errorColorHover = _tokens$colors$intera$8.danger__hover.rgba,
|
|
4439
|
+
errorBackgroundHover = _tokens$colors$intera$8.danger__highlight.rgba,
|
|
4440
4440
|
borderRadius$5 = edsTokens.tokens.shape.rounded.borderRadius,
|
|
4441
4441
|
focusOutlineWidth$5 = edsTokens.tokens.interactions.focused.width;
|
|
4442
4442
|
var enabled$3 = {
|
|
@@ -4451,7 +4451,7 @@ var enabled$3 = {
|
|
|
4451
4451
|
},
|
|
4452
4452
|
spacings: {
|
|
4453
4453
|
left: x_small$3,
|
|
4454
|
-
right: small$
|
|
4454
|
+
right: small$3
|
|
4455
4455
|
},
|
|
4456
4456
|
typography: _objectSpread__default["default"](_objectSpread__default["default"]({}, chipTypography), {}, {
|
|
4457
4457
|
color: primaryColor$2
|
|
@@ -4482,8 +4482,8 @@ var enabled$3 = {
|
|
|
4482
4482
|
},
|
|
4483
4483
|
entities: {
|
|
4484
4484
|
icon: {
|
|
4485
|
-
height: medium$
|
|
4486
|
-
width: medium$
|
|
4485
|
+
height: medium$3,
|
|
4486
|
+
width: medium$3,
|
|
4487
4487
|
border: {
|
|
4488
4488
|
radius: borderRadius$5,
|
|
4489
4489
|
type: 'border',
|
|
@@ -4549,10 +4549,10 @@ var Icon = styled__default["default"](Icon$1).withConfig({
|
|
|
4549
4549
|
return disabled && styled.css(["cursor:not-allowed;&:hover{background:transparent;}"]);
|
|
4550
4550
|
});
|
|
4551
4551
|
|
|
4552
|
-
var _excluded$
|
|
4552
|
+
var _excluded$H = ["children", "onDelete", "disabled", "onClick", "variant"];
|
|
4553
4553
|
var enabled$1 = enabled$3,
|
|
4554
4554
|
error = error$2;
|
|
4555
|
-
var background$
|
|
4555
|
+
var background$5 = enabled$1.background,
|
|
4556
4556
|
height = enabled$1.height,
|
|
4557
4557
|
typography$8 = enabled$1.typography,
|
|
4558
4558
|
spacings$1 = enabled$1.spacings,
|
|
@@ -4568,7 +4568,7 @@ var StyledChips = styled__default["default"].div.attrs(function (_ref) {
|
|
|
4568
4568
|
}).withConfig({
|
|
4569
4569
|
displayName: "Chip__StyledChips",
|
|
4570
4570
|
componentId: "sc-wzsllq-0"
|
|
4571
|
-
})(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$
|
|
4571
|
+
})(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$5, height, typography$8.color, states$2.hover.typography.color, states$2.hover.typography.color, edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.outlineTemplate(states$2.focus.outline), edsUtils.bordersTemplate(border$1), edsUtils.spacingsTemplate(spacings$1), edsUtils.typographyTemplate(typography$8), function (_ref2) {
|
|
4572
4572
|
var clickable = _ref2.clickable;
|
|
4573
4573
|
return clickable && styled.css(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;}}"]);
|
|
4574
4574
|
}, function (_ref3) {
|
|
@@ -4586,7 +4586,7 @@ var StyledChips = styled__default["default"].div.attrs(function (_ref) {
|
|
|
4586
4586
|
}
|
|
4587
4587
|
}, function (_ref4) {
|
|
4588
4588
|
var disabled = _ref4.disabled;
|
|
4589
|
-
return disabled && styled.css(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}}"], background$
|
|
4589
|
+
return disabled && styled.css(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}}"], background$5, states$2.disabled.typography.color, states$2.disabled.typography.color, states$2.disabled.typography.color, states$2.disabled.typography.color);
|
|
4590
4590
|
}, function (_ref5) {
|
|
4591
4591
|
var deletable = _ref5.deletable;
|
|
4592
4592
|
return deletable && styled.css(["padding-right:4px;"]);
|
|
@@ -4602,7 +4602,7 @@ var Chip = /*#__PURE__*/react.forwardRef(function Chip(_ref7, ref) {
|
|
|
4602
4602
|
onClick = _ref7.onClick,
|
|
4603
4603
|
_ref7$variant = _ref7.variant,
|
|
4604
4604
|
variant = _ref7$variant === void 0 ? 'default' : _ref7$variant,
|
|
4605
|
-
other = _objectWithoutProperties__default["default"](_ref7, _excluded$
|
|
4605
|
+
other = _objectWithoutProperties__default["default"](_ref7, _excluded$H);
|
|
4606
4606
|
|
|
4607
4607
|
var handleDelete = disabled ? undefined : onDelete;
|
|
4608
4608
|
var handleClick = disabled ? undefined : onClick;
|
|
@@ -4683,7 +4683,7 @@ var avatar = {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
};
|
|
4685
4685
|
|
|
4686
|
-
var _excluded$
|
|
4686
|
+
var _excluded$G = ["src", "alt", "size", "disabled"];
|
|
4687
4687
|
var StyledAvatar = styled__default["default"].div.withConfig({
|
|
4688
4688
|
displayName: "Avatar__StyledAvatar",
|
|
4689
4689
|
componentId: "sc-r7n7on-0"
|
|
@@ -4706,7 +4706,7 @@ var Avatar = /*#__PURE__*/react.forwardRef(function Avatar(_ref3, ref) {
|
|
|
4706
4706
|
size = _ref3$size === void 0 ? 24 : _ref3$size,
|
|
4707
4707
|
_ref3$disabled = _ref3.disabled,
|
|
4708
4708
|
disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
|
|
4709
|
-
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$
|
|
4709
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$G);
|
|
4710
4710
|
|
|
4711
4711
|
return /*#__PURE__*/jsxRuntime.jsx(StyledAvatar, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
4712
4712
|
size: size,
|
|
@@ -4722,7 +4722,7 @@ var Avatar = /*#__PURE__*/react.forwardRef(function Avatar(_ref3, ref) {
|
|
|
4722
4722
|
});
|
|
4723
4723
|
Avatar.displayName = 'Avatar';
|
|
4724
4724
|
|
|
4725
|
-
var _excluded$
|
|
4725
|
+
var _excluded$F = ["onChange", "style", "className"];
|
|
4726
4726
|
var SearchInput = styled__default["default"](Input$4).withConfig({
|
|
4727
4727
|
displayName: "Search__SearchInput",
|
|
4728
4728
|
componentId: "sc-v8l23u-0"
|
|
@@ -4735,7 +4735,7 @@ var Search = /*#__PURE__*/react.forwardRef(function Search(_ref, ref) {
|
|
|
4735
4735
|
var _onChange = _ref.onChange,
|
|
4736
4736
|
style = _ref.style,
|
|
4737
4737
|
className = _ref.className,
|
|
4738
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
4738
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$F);
|
|
4739
4739
|
|
|
4740
4740
|
var inputRef = react.useRef(null);
|
|
4741
4741
|
|
|
@@ -4802,19 +4802,19 @@ var Search = /*#__PURE__*/react.forwardRef(function Search(_ref, ref) {
|
|
|
4802
4802
|
});
|
|
4803
4803
|
});
|
|
4804
4804
|
|
|
4805
|
-
var _tokens$colors$
|
|
4806
|
-
_tokens$colors$ui = _tokens$colors$
|
|
4807
|
-
backgroundColor$1 = _tokens$colors$ui.background__light.rgba,
|
|
4808
|
-
backgroundColorDefault = _tokens$colors$ui.background__default.rgba,
|
|
4809
|
-
backgroundColorMedium$1 = _tokens$colors$ui.background__medium.rgba,
|
|
4810
|
-
_tokens$colors$intera$
|
|
4811
|
-
indicatorColor = _tokens$colors$intera$
|
|
4812
|
-
primaryHoverAlt$3 = _tokens$colors$intera$
|
|
4813
|
-
primaryHover$1 = _tokens$colors$intera$
|
|
4814
|
-
focusOutlineColor$4 = _tokens$colors$intera$
|
|
4815
|
-
backgroundColorDisabled = _tokens$colors$intera$
|
|
4816
|
-
backgroundBorderDisabled = _tokens$colors$intera$
|
|
4817
|
-
textColor$1 = _tokens$colors$
|
|
4805
|
+
var _tokens$colors$a = edsTokens.tokens.colors,
|
|
4806
|
+
_tokens$colors$ui$1 = _tokens$colors$a.ui,
|
|
4807
|
+
backgroundColor$1 = _tokens$colors$ui$1.background__light.rgba,
|
|
4808
|
+
backgroundColorDefault = _tokens$colors$ui$1.background__default.rgba,
|
|
4809
|
+
backgroundColorMedium$1 = _tokens$colors$ui$1.background__medium.rgba,
|
|
4810
|
+
_tokens$colors$intera$7 = _tokens$colors$a.interactive,
|
|
4811
|
+
indicatorColor = _tokens$colors$intera$7.primary__resting.rgba,
|
|
4812
|
+
primaryHoverAlt$3 = _tokens$colors$intera$7.primary__hover_alt.rgba,
|
|
4813
|
+
primaryHover$1 = _tokens$colors$intera$7.primary__hover.rgba,
|
|
4814
|
+
focusOutlineColor$4 = _tokens$colors$intera$7.focus.rgba,
|
|
4815
|
+
backgroundColorDisabled = _tokens$colors$intera$7.disabled__fill.rgba,
|
|
4816
|
+
backgroundBorderDisabled = _tokens$colors$intera$7.disabled__border.rgba,
|
|
4817
|
+
textColor$1 = _tokens$colors$a.text.static_icons__tertiary.rgba,
|
|
4818
4818
|
paragraph = edsTokens.tokens.typography.paragraph,
|
|
4819
4819
|
focusOutlineWidth$4 = edsTokens.tokens.interactions.focused.width;
|
|
4820
4820
|
var slider = {
|
|
@@ -4944,7 +4944,7 @@ var Output = /*#__PURE__*/react.forwardRef(function Output(_ref2, ref) {
|
|
|
4944
4944
|
});
|
|
4945
4945
|
});
|
|
4946
4946
|
|
|
4947
|
-
var _excluded$
|
|
4947
|
+
var _excluded$E = ["value", "min", "max", "id", "step", "onChange", "onMouseUp", "onKeyUp", "disabled"];
|
|
4948
4948
|
var handle$1 = slider.entities.handle,
|
|
4949
4949
|
_disabled = slider.states.disabled;
|
|
4950
4950
|
var track$1 = styled.css(["width:100%;height:100%;cursor:pointer;background:none;"]);
|
|
@@ -4970,7 +4970,7 @@ var SliderInput = /*#__PURE__*/react.forwardRef(function SliderInput(_ref, ref)
|
|
|
4970
4970
|
_onMouseUp = _ref.onMouseUp,
|
|
4971
4971
|
_onKeyUp = _ref.onKeyUp,
|
|
4972
4972
|
disabled = _ref.disabled,
|
|
4973
|
-
restProps = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
4973
|
+
restProps = _objectWithoutProperties__default["default"](_ref, _excluded$E);
|
|
4974
4974
|
|
|
4975
4975
|
return /*#__PURE__*/jsxRuntime.jsx(StyledSliderInput, _objectSpread__default["default"](_objectSpread__default["default"]({}, restProps), {}, {
|
|
4976
4976
|
value: value,
|
|
@@ -4993,7 +4993,7 @@ var SliderInput = /*#__PURE__*/react.forwardRef(function SliderInput(_ref, ref)
|
|
|
4993
4993
|
});
|
|
4994
4994
|
SliderInput.displayName = 'SliderInput';
|
|
4995
4995
|
|
|
4996
|
-
var _excluded$
|
|
4996
|
+
var _excluded$D = ["min", "max", "value", "outputFunction", "onChange", "onChangeCommitted", "minMaxDots", "minMaxValues", "step", "disabled", "ariaLabelledby", "aria-labelledby"];
|
|
4997
4997
|
var _tokens$entities$1 = slider.entities,
|
|
4998
4998
|
track = _tokens$entities$1.track,
|
|
4999
4999
|
handle = _tokens$entities$1.handle,
|
|
@@ -5070,7 +5070,7 @@ var Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
|
|
|
5070
5070
|
disabled = _ref10.disabled,
|
|
5071
5071
|
ariaLabelledby = _ref10.ariaLabelledby,
|
|
5072
5072
|
ariaLabelledbyNative = _ref10['aria-labelledby'],
|
|
5073
|
-
rest = _objectWithoutProperties__default["default"](_ref10, _excluded$
|
|
5073
|
+
rest = _objectWithoutProperties__default["default"](_ref10, _excluded$D);
|
|
5074
5074
|
|
|
5075
5075
|
var isRangeSlider = Array.isArray(value);
|
|
5076
5076
|
var parsedValue = isRangeSlider ? value : [value];
|
|
@@ -5301,19 +5301,19 @@ var Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
|
|
|
5301
5301
|
});
|
|
5302
5302
|
});
|
|
5303
5303
|
|
|
5304
|
-
var _tokens$colors$
|
|
5305
|
-
white = _tokens$colors$
|
|
5306
|
-
background$
|
|
5304
|
+
var _tokens$colors$9 = edsTokens.tokens.colors,
|
|
5305
|
+
white = _tokens$colors$9.text.static_icons__primary_white.rgba,
|
|
5306
|
+
background$4 = _tokens$colors$9.ui.background__overlay.rgba,
|
|
5307
5307
|
ui = edsTokens.tokens.typography.ui,
|
|
5308
|
-
_tokens$spacings$comf$
|
|
5309
|
-
spacingXlarge = _tokens$spacings$comf$
|
|
5310
|
-
spacingSmall$4 = _tokens$spacings$comf$
|
|
5308
|
+
_tokens$spacings$comf$9 = edsTokens.tokens.spacings.comfortable,
|
|
5309
|
+
spacingXlarge = _tokens$spacings$comf$9.x_large,
|
|
5310
|
+
spacingSmall$4 = _tokens$spacings$comf$9.small,
|
|
5311
5311
|
borderRadius$4 = edsTokens.tokens.shape.corners.borderRadius;
|
|
5312
5312
|
var tooltip = {
|
|
5313
5313
|
typography: _objectSpread__default["default"](_objectSpread__default["default"]({}, ui.tooltip), {}, {
|
|
5314
5314
|
color: white
|
|
5315
5315
|
}),
|
|
5316
|
-
background: background$
|
|
5316
|
+
background: background$4,
|
|
5317
5317
|
border: {
|
|
5318
5318
|
type: 'border',
|
|
5319
5319
|
radius: borderRadius$4
|
|
@@ -5341,11 +5341,11 @@ var tooltip = {
|
|
|
5341
5341
|
}
|
|
5342
5342
|
};
|
|
5343
5343
|
|
|
5344
|
-
var _excluded$
|
|
5344
|
+
var _excluded$C = ["title", "placement", "children", "style", "enterDelay"];
|
|
5345
5345
|
var StyledTooltip = styled__default["default"].div.withConfig({
|
|
5346
5346
|
displayName: "Tooltip__StyledTooltip",
|
|
5347
5347
|
componentId: "sc-m2im2p-0"
|
|
5348
|
-
})(["", " ", " ", " background:", ";z-index:1500;white-space:nowrap;"], edsUtils.typographyTemplate(tooltip.typography), edsUtils.spacingsTemplate(tooltip.spacings), edsUtils.bordersTemplate(tooltip.border), tooltip.background);
|
|
5348
|
+
})(["", " ", " ", " background:", ";z-index:1500;white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}"], edsUtils.typographyTemplate(tooltip.typography), edsUtils.spacingsTemplate(tooltip.spacings), edsUtils.bordersTemplate(tooltip.border), tooltip.background);
|
|
5349
5349
|
var ArrowWrapper$1 = styled__default["default"].div.withConfig({
|
|
5350
5350
|
displayName: "Tooltip__ArrowWrapper",
|
|
5351
5351
|
componentId: "sc-m2im2p-1"
|
|
@@ -5354,7 +5354,7 @@ var TooltipArrow = styled__default["default"].svg.withConfig({
|
|
|
5354
5354
|
displayName: "Tooltip__TooltipArrow",
|
|
5355
5355
|
componentId: "sc-m2im2p-2"
|
|
5356
5356
|
})(["width:", ";height:", ";position:absolute;fill:", ";"], tooltip.entities.arrow.width, tooltip.entities.arrow.height, tooltip.background);
|
|
5357
|
-
var Tooltip = /*#__PURE__*/react.forwardRef(function Tooltip(_ref, ref) {
|
|
5357
|
+
var Tooltip$1 = /*#__PURE__*/react.forwardRef(function Tooltip(_ref, ref) {
|
|
5358
5358
|
var title = _ref.title,
|
|
5359
5359
|
_ref$placement = _ref.placement,
|
|
5360
5360
|
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
@@ -5362,7 +5362,7 @@ var Tooltip = /*#__PURE__*/react.forwardRef(function Tooltip(_ref, ref) {
|
|
|
5362
5362
|
style = _ref.style,
|
|
5363
5363
|
_ref$enterDelay = _ref.enterDelay,
|
|
5364
5364
|
enterDelay = _ref$enterDelay === void 0 ? 100 : _ref$enterDelay,
|
|
5365
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
5365
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$C);
|
|
5366
5366
|
|
|
5367
5367
|
var arrowRef = react.useRef(null);
|
|
5368
5368
|
|
|
@@ -5479,7 +5479,7 @@ var Tooltip = /*#__PURE__*/react.forwardRef(function Tooltip(_ref, ref) {
|
|
|
5479
5479
|
});
|
|
5480
5480
|
});
|
|
5481
5481
|
|
|
5482
|
-
var _excluded$
|
|
5482
|
+
var _excluded$B = ["children"];
|
|
5483
5483
|
var StyledSnackbarAction = styled__default["default"].div.withConfig({
|
|
5484
5484
|
displayName: "SnackbarAction__StyledSnackbarAction",
|
|
5485
5485
|
componentId: "sc-1v5mjvd-0"
|
|
@@ -5489,7 +5489,7 @@ var StyledSnackbarAction = styled__default["default"].div.withConfig({
|
|
|
5489
5489
|
});
|
|
5490
5490
|
var SnackbarAction = /*#__PURE__*/react.forwardRef(function SnackbarAction(_ref2, ref) {
|
|
5491
5491
|
var children = _ref2.children,
|
|
5492
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
5492
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$B);
|
|
5493
5493
|
|
|
5494
5494
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
5495
5495
|
ref: ref
|
|
@@ -5501,17 +5501,17 @@ var SnackbarAction = /*#__PURE__*/react.forwardRef(function SnackbarAction(_ref2
|
|
|
5501
5501
|
});
|
|
5502
5502
|
|
|
5503
5503
|
var typography$7 = edsTokens.tokens.typography.ui.snackbar,
|
|
5504
|
-
_tokens$colors$
|
|
5505
|
-
background$
|
|
5506
|
-
color = _tokens$colors$
|
|
5507
|
-
buttonColor = _tokens$colors$
|
|
5508
|
-
_tokens$spacings$comf$
|
|
5509
|
-
spacingMedium$4 = _tokens$spacings$comf$
|
|
5510
|
-
spacingXLarge = _tokens$spacings$comf$
|
|
5504
|
+
_tokens$colors$8 = edsTokens.tokens.colors,
|
|
5505
|
+
background$3 = _tokens$colors$8.ui.background__overlay.rgba,
|
|
5506
|
+
color = _tokens$colors$8.text.static_icons__primary_white.rgba,
|
|
5507
|
+
buttonColor = _tokens$colors$8.interactive.link_in_snackbars.rgba,
|
|
5508
|
+
_tokens$spacings$comf$8 = edsTokens.tokens.spacings.comfortable,
|
|
5509
|
+
spacingMedium$4 = _tokens$spacings$comf$8.medium,
|
|
5510
|
+
spacingXLarge = _tokens$spacings$comf$8.x_large,
|
|
5511
5511
|
clickbounds$1 = edsTokens.tokens.clickbounds.default__base,
|
|
5512
5512
|
radius = edsTokens.tokens.shape.button.borderRadius;
|
|
5513
5513
|
var snackbar = {
|
|
5514
|
-
background: background$
|
|
5514
|
+
background: background$3,
|
|
5515
5515
|
minHeight: clickbounds$1,
|
|
5516
5516
|
border: {
|
|
5517
5517
|
type: 'border',
|
|
@@ -5546,7 +5546,7 @@ var snackbar = {
|
|
|
5546
5546
|
}
|
|
5547
5547
|
};
|
|
5548
5548
|
|
|
5549
|
-
var _excluded$
|
|
5549
|
+
var _excluded$A = ["open", "autoHideDuration", "onClose", "placement", "children"];
|
|
5550
5550
|
var StyledSnackbar = styled__default["default"](Paper).withConfig({
|
|
5551
5551
|
displayName: "Snackbar__StyledSnackbar",
|
|
5552
5552
|
componentId: "sc-ac6no8-0"
|
|
@@ -5570,7 +5570,7 @@ var Snackbar$1 = /*#__PURE__*/react.forwardRef(function Snackbar(_ref2, ref) {
|
|
|
5570
5570
|
_ref2$placement = _ref2.placement,
|
|
5571
5571
|
placement = _ref2$placement === void 0 ? 'bottom' : _ref2$placement,
|
|
5572
5572
|
children = _ref2.children,
|
|
5573
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
5573
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$A);
|
|
5574
5574
|
|
|
5575
5575
|
var _useState = react.useState(open),
|
|
5576
5576
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -5618,16 +5618,16 @@ var Snackbar = Snackbar$1;
|
|
|
5618
5618
|
Snackbar.Action = SnackbarAction;
|
|
5619
5619
|
|
|
5620
5620
|
var header = edsTokens.tokens.typography.ui.accordion_header,
|
|
5621
|
-
_tokens$colors$
|
|
5622
|
-
background$
|
|
5623
|
-
focusOutlineColor$3 = _tokens$colors$
|
|
5624
|
-
_tokens$spacings$comf$
|
|
5625
|
-
spacingMedium$3 = _tokens$spacings$comf$
|
|
5626
|
-
spacingSmall$3 = _tokens$spacings$comf$
|
|
5621
|
+
_tokens$colors$7 = edsTokens.tokens.colors,
|
|
5622
|
+
background$2 = _tokens$colors$7.ui.background__default.rgba,
|
|
5623
|
+
focusOutlineColor$3 = _tokens$colors$7.interactive.focus.rgba,
|
|
5624
|
+
_tokens$spacings$comf$7 = edsTokens.tokens.spacings.comfortable,
|
|
5625
|
+
spacingMedium$3 = _tokens$spacings$comf$7.medium,
|
|
5626
|
+
spacingSmall$3 = _tokens$spacings$comf$7.small,
|
|
5627
5627
|
borderRadius$3 = edsTokens.tokens.shape.corners.borderRadius,
|
|
5628
5628
|
focusOutlineWidth$3 = edsTokens.tokens.interactions.focused.width;
|
|
5629
5629
|
var popover = {
|
|
5630
|
-
background: background$
|
|
5630
|
+
background: background$2,
|
|
5631
5631
|
typography: header,
|
|
5632
5632
|
maxWidth: '560px',
|
|
5633
5633
|
maxHeight: '80vh',
|
|
@@ -5676,7 +5676,7 @@ var popover = {
|
|
|
5676
5676
|
}
|
|
5677
5677
|
};
|
|
5678
5678
|
|
|
5679
|
-
var _excluded$
|
|
5679
|
+
var _excluded$z = ["children", "placement", "anchorEl", "style", "open", "onClose", "withinPortal", "trapFocus"];
|
|
5680
5680
|
var PopoverPaper = styled__default["default"](Paper).withConfig({
|
|
5681
5681
|
displayName: "Popover__PopoverPaper",
|
|
5682
5682
|
componentId: "sc-b7p1is-0"
|
|
@@ -5716,7 +5716,7 @@ var Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
|
|
|
5716
5716
|
onClose = _ref5.onClose,
|
|
5717
5717
|
withinPortal = _ref5.withinPortal,
|
|
5718
5718
|
trapFocus = _ref5.trapFocus,
|
|
5719
|
-
rest = _objectWithoutProperties__default["default"](_ref5, _excluded$
|
|
5719
|
+
rest = _objectWithoutProperties__default["default"](_ref5, _excluded$z);
|
|
5720
5720
|
|
|
5721
5721
|
var arrowRef = react.useRef(null);
|
|
5722
5722
|
|
|
@@ -5743,7 +5743,7 @@ var Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
|
|
|
5743
5743
|
var arrowX = _useFloating$middlewa.x,
|
|
5744
5744
|
arrowY = _useFloating$middlewa.y,
|
|
5745
5745
|
finalPlacement = _useFloating.placement;
|
|
5746
|
-
react.
|
|
5746
|
+
react.useEffect(function () {
|
|
5747
5747
|
reference(anchorEl);
|
|
5748
5748
|
}, [anchorEl, reference]);
|
|
5749
5749
|
var popoverRef = react.useMemo(function () {
|
|
@@ -5849,7 +5849,7 @@ var Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
|
|
|
5849
5849
|
});
|
|
5850
5850
|
});
|
|
5851
5851
|
|
|
5852
|
-
var _excluded$
|
|
5852
|
+
var _excluded$y = ["children"];
|
|
5853
5853
|
var StyledPopoverTitle = styled__default["default"].div.withConfig({
|
|
5854
5854
|
displayName: "PopoverTitle__StyledPopoverTitle",
|
|
5855
5855
|
componentId: "sc-1ben8su-0"
|
|
@@ -5859,7 +5859,7 @@ var StyledPopoverTitle = styled__default["default"].div.withConfig({
|
|
|
5859
5859
|
});
|
|
5860
5860
|
var PopoverTitle = /*#__PURE__*/react.forwardRef(function PopoverTitle(_ref2, ref) {
|
|
5861
5861
|
var children = _ref2.children,
|
|
5862
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
5862
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$y);
|
|
5863
5863
|
|
|
5864
5864
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
5865
5865
|
ref: ref
|
|
@@ -5870,7 +5870,7 @@ var PopoverTitle = /*#__PURE__*/react.forwardRef(function PopoverTitle(_ref2, re
|
|
|
5870
5870
|
}));
|
|
5871
5871
|
});
|
|
5872
5872
|
|
|
5873
|
-
var _excluded$
|
|
5873
|
+
var _excluded$x = ["children"];
|
|
5874
5874
|
var ContentWrapper = styled__default["default"].div.withConfig({
|
|
5875
5875
|
displayName: "PopoverContent__ContentWrapper",
|
|
5876
5876
|
componentId: "sc-vwww9h-0"
|
|
@@ -5880,7 +5880,7 @@ var ContentWrapper = styled__default["default"].div.withConfig({
|
|
|
5880
5880
|
});
|
|
5881
5881
|
var PopoverContent = /*#__PURE__*/react.forwardRef(function PopoverContent(_ref2, ref) {
|
|
5882
5882
|
var children = _ref2.children,
|
|
5883
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
5883
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$x);
|
|
5884
5884
|
|
|
5885
5885
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
5886
5886
|
ref: ref
|
|
@@ -5891,7 +5891,7 @@ var PopoverContent = /*#__PURE__*/react.forwardRef(function PopoverContent(_ref2
|
|
|
5891
5891
|
}));
|
|
5892
5892
|
}); // PopoverContent.displayName = 'eds-popover-content'
|
|
5893
5893
|
|
|
5894
|
-
var _excluded$
|
|
5894
|
+
var _excluded$w = ["children"];
|
|
5895
5895
|
var StyledPopoverHeader = styled__default["default"].div.withConfig({
|
|
5896
5896
|
displayName: "PopoverHeader__StyledPopoverHeader",
|
|
5897
5897
|
componentId: "sc-ibcx7p-0"
|
|
@@ -5905,7 +5905,7 @@ var StyledDivider = styled__default["default"](Divider).withConfig({
|
|
|
5905
5905
|
})(["margin-bottom:0;"]);
|
|
5906
5906
|
var PopoverHeader = /*#__PURE__*/react.forwardRef(function PopoverHeader(_ref2, ref) {
|
|
5907
5907
|
var children = _ref2.children,
|
|
5908
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
5908
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$w);
|
|
5909
5909
|
|
|
5910
5910
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
5911
5911
|
ref: ref
|
|
@@ -5920,7 +5920,7 @@ var PopoverHeader = /*#__PURE__*/react.forwardRef(function PopoverHeader(_ref2,
|
|
|
5920
5920
|
}));
|
|
5921
5921
|
});
|
|
5922
5922
|
|
|
5923
|
-
var _excluded$
|
|
5923
|
+
var _excluded$v = ["children"];
|
|
5924
5924
|
var StyledPopoverActions = styled__default["default"].div.withConfig({
|
|
5925
5925
|
displayName: "PopoverActions__StyledPopoverActions",
|
|
5926
5926
|
componentId: "sc-1dkrhw6-0"
|
|
@@ -5930,7 +5930,7 @@ var StyledPopoverActions = styled__default["default"].div.withConfig({
|
|
|
5930
5930
|
});
|
|
5931
5931
|
var PopoverActions = /*#__PURE__*/react.forwardRef(function PopoverActions(_ref2, ref) {
|
|
5932
5932
|
var children = _ref2.children,
|
|
5933
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
5933
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$v);
|
|
5934
5934
|
|
|
5935
5935
|
var props = _objectSpread__default["default"]({
|
|
5936
5936
|
ref: ref
|
|
@@ -5952,14 +5952,14 @@ Popover.Header.displayName = 'Popover.Header';
|
|
|
5952
5952
|
Popover.Actions.displayName = 'Popover.Actions';
|
|
5953
5953
|
|
|
5954
5954
|
var messageTypography = edsTokens.tokens.typography.paragraph.body_long,
|
|
5955
|
-
medium$
|
|
5956
|
-
_tokens$colors$
|
|
5957
|
-
_tokens$colors$infogr$2 = _tokens$colors$
|
|
5955
|
+
medium$2 = edsTokens.tokens.spacings.comfortable.medium,
|
|
5956
|
+
_tokens$colors$6 = edsTokens.tokens.colors,
|
|
5957
|
+
_tokens$colors$infogr$2 = _tokens$colors$6.infographic,
|
|
5958
5958
|
infoBackground = _tokens$colors$infogr$2.primary__moss_green_13.rgba,
|
|
5959
5959
|
warningBackground = _tokens$colors$infogr$2.primary__energy_red_13.rgba,
|
|
5960
5960
|
infoColor = _tokens$colors$infogr$2.primary__moss_green_100.rgba,
|
|
5961
5961
|
warningColor = _tokens$colors$infogr$2.primary__energy_red_100.rgba,
|
|
5962
|
-
backgroundColor = _tokens$colors$
|
|
5962
|
+
backgroundColor = _tokens$colors$6.ui.background__default.rgba,
|
|
5963
5963
|
_tokens$shape$circle = edsTokens.tokens.shape.circle,
|
|
5964
5964
|
minHeight = _tokens$shape$circle.minHeight,
|
|
5965
5965
|
minWidth = _tokens$shape$circle.minWidth,
|
|
@@ -5968,10 +5968,10 @@ var enabled = {
|
|
|
5968
5968
|
typography: _objectSpread__default["default"]({}, messageTypography),
|
|
5969
5969
|
background: backgroundColor,
|
|
5970
5970
|
spacings: {
|
|
5971
|
-
left: medium$
|
|
5972
|
-
right: medium$
|
|
5973
|
-
top: medium$
|
|
5974
|
-
bottom: medium$
|
|
5971
|
+
left: medium$2,
|
|
5972
|
+
right: medium$2,
|
|
5973
|
+
top: medium$2,
|
|
5974
|
+
bottom: medium$2
|
|
5975
5975
|
},
|
|
5976
5976
|
entities: {
|
|
5977
5977
|
icon: {
|
|
@@ -6014,7 +6014,7 @@ var warning$1 = {
|
|
|
6014
6014
|
}
|
|
6015
6015
|
};
|
|
6016
6016
|
|
|
6017
|
-
var _excluded$
|
|
6017
|
+
var _excluded$u = ["children", "variant"];
|
|
6018
6018
|
var info = info$1,
|
|
6019
6019
|
warning = warning$1;
|
|
6020
6020
|
var StyledBannerIcon = styled__default["default"].span.withConfig({
|
|
@@ -6029,7 +6029,7 @@ var BannerIcon = /*#__PURE__*/react.forwardRef(function BannerIcon(_ref2, ref) {
|
|
|
6029
6029
|
var children = _ref2.children,
|
|
6030
6030
|
_ref2$variant = _ref2.variant,
|
|
6031
6031
|
variant = _ref2$variant === void 0 ? 'info' : _ref2$variant,
|
|
6032
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
6032
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$u);
|
|
6033
6033
|
|
|
6034
6034
|
var childrenWithColor = react.Children.map(children, function (child) {
|
|
6035
6035
|
var color = variant === 'warning' ? warning.entities.icon.typography.color : info.entities.icon.typography.color;
|
|
@@ -6049,7 +6049,7 @@ var BannerIcon = /*#__PURE__*/react.forwardRef(function BannerIcon(_ref2, ref) {
|
|
|
6049
6049
|
}));
|
|
6050
6050
|
});
|
|
6051
6051
|
|
|
6052
|
-
var _excluded$
|
|
6052
|
+
var _excluded$t = ["children", "className", "elevation"];
|
|
6053
6053
|
var Content$1 = styled__default["default"].div.withConfig({
|
|
6054
6054
|
displayName: "Banner__Content",
|
|
6055
6055
|
componentId: "sc-1ju451i-0"
|
|
@@ -6067,7 +6067,7 @@ var Banner$1 = /*#__PURE__*/react.forwardRef(function Banner(_ref2, ref) {
|
|
|
6067
6067
|
className = _ref2.className,
|
|
6068
6068
|
_ref2$elevation = _ref2.elevation,
|
|
6069
6069
|
elevation = _ref2$elevation === void 0 ? 'none' : _ref2$elevation,
|
|
6070
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
6070
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$t);
|
|
6071
6071
|
|
|
6072
6072
|
var childrenWhereBannerIcon = react.Children.map(children, function (child) {
|
|
6073
6073
|
return /*#__PURE__*/react.isValidElement(child) && child.type === BannerIcon;
|
|
@@ -6102,14 +6102,14 @@ var Banner$1 = /*#__PURE__*/react.forwardRef(function Banner(_ref2, ref) {
|
|
|
6102
6102
|
});
|
|
6103
6103
|
});
|
|
6104
6104
|
|
|
6105
|
-
var _excluded$
|
|
6105
|
+
var _excluded$s = ["children"];
|
|
6106
6106
|
var StyledBannerMessage = styled__default["default"](Typography).withConfig({
|
|
6107
6107
|
displayName: "BannerMessage__StyledBannerMessage",
|
|
6108
6108
|
componentId: "sc-1lfqos1-0"
|
|
6109
6109
|
})([""]);
|
|
6110
6110
|
var BannerMessage = /*#__PURE__*/react.forwardRef(function BannerMessage(_ref, ref) {
|
|
6111
6111
|
var children = _ref.children,
|
|
6112
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
6112
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$s);
|
|
6113
6113
|
|
|
6114
6114
|
var props = _objectSpread__default["default"]({
|
|
6115
6115
|
ref: ref
|
|
@@ -6122,7 +6122,7 @@ var BannerMessage = /*#__PURE__*/react.forwardRef(function BannerMessage(_ref, r
|
|
|
6122
6122
|
}));
|
|
6123
6123
|
});
|
|
6124
6124
|
|
|
6125
|
-
var _excluded$
|
|
6125
|
+
var _excluded$r = ["children", "placement"];
|
|
6126
6126
|
var StyledBannerActions = styled__default["default"].div.withConfig({
|
|
6127
6127
|
displayName: "BannerActions__StyledBannerActions",
|
|
6128
6128
|
componentId: "sc-1o38ds2-0"
|
|
@@ -6138,7 +6138,7 @@ var BannerActions = /*#__PURE__*/react.forwardRef(function BannerActions(_ref2,
|
|
|
6138
6138
|
var children = _ref2.children,
|
|
6139
6139
|
_ref2$placement = _ref2.placement,
|
|
6140
6140
|
placement = _ref2$placement === void 0 ? 'left' : _ref2$placement,
|
|
6141
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
6141
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$r);
|
|
6142
6142
|
|
|
6143
6143
|
var props = _objectSpread__default["default"]({
|
|
6144
6144
|
ref: ref
|
|
@@ -6171,7 +6171,7 @@ var primary$2 = {
|
|
|
6171
6171
|
}
|
|
6172
6172
|
};
|
|
6173
6173
|
|
|
6174
|
-
var _excluded$
|
|
6174
|
+
var _excluded$q = ["variant", "value"];
|
|
6175
6175
|
var indeterminate$2 = styled.keyframes(["0%{left:-200%;right:100%;}60%{left:107%;right:-8%;}100%{left:107%;right:-8%;}"]);
|
|
6176
6176
|
var Track$2 = styled__default["default"].div.withConfig({
|
|
6177
6177
|
displayName: "LinearProgress__Track",
|
|
@@ -6194,7 +6194,7 @@ var LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_ref,
|
|
|
6194
6194
|
variant = _ref$variant === void 0 ? 'indeterminate' : _ref$variant,
|
|
6195
6195
|
_ref$value = _ref.value,
|
|
6196
6196
|
value = _ref$value === void 0 ? null : _ref$value,
|
|
6197
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
6197
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$q);
|
|
6198
6198
|
|
|
6199
6199
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
6200
6200
|
ref: ref
|
|
@@ -6250,12 +6250,12 @@ var LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_ref,
|
|
|
6250
6250
|
});
|
|
6251
6251
|
}); // LinearProgress.displayName = 'eds-linear-progress'
|
|
6252
6252
|
|
|
6253
|
-
var _tokens$colors$
|
|
6254
|
-
_tokens$colors$infogr = _tokens$colors$
|
|
6253
|
+
var _tokens$colors$5 = edsTokens.tokens.colors,
|
|
6254
|
+
_tokens$colors$infogr = _tokens$colors$5.infographic,
|
|
6255
6255
|
primary13 = _tokens$colors$infogr.primary__moss_green_13.rgba,
|
|
6256
6256
|
primary100$1 = _tokens$colors$infogr.primary__moss_green_100.rgba,
|
|
6257
|
-
icon_on_interactive_colors$1 = _tokens$colors$
|
|
6258
|
-
background__semitransparent = _tokens$colors$
|
|
6257
|
+
icon_on_interactive_colors$1 = _tokens$colors$5.interactive.icon_on_interactive_colors.rgba,
|
|
6258
|
+
background__semitransparent = _tokens$colors$5.ui.background__semitransparent.rgba;
|
|
6259
6259
|
var primary$1 = {
|
|
6260
6260
|
background: primary13,
|
|
6261
6261
|
entities: {
|
|
@@ -6279,7 +6279,7 @@ var tokens$1 = /*#__PURE__*/Object.freeze({
|
|
|
6279
6279
|
neutral: neutral$1
|
|
6280
6280
|
});
|
|
6281
6281
|
|
|
6282
|
-
var _excluded$
|
|
6282
|
+
var _excluded$p = ["variant", "value", "size", "color"];
|
|
6283
6283
|
var indeterminate$1 = styled.keyframes(["100%{transform:rotate(360deg);}"]);
|
|
6284
6284
|
var Svg$4 = styled__default["default"].svg.withConfig({
|
|
6285
6285
|
displayName: "CircularProgress__Svg",
|
|
@@ -6325,7 +6325,7 @@ var CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress(_
|
|
|
6325
6325
|
size = _ref2$size === void 0 ? 48 : _ref2$size,
|
|
6326
6326
|
_ref2$color = _ref2.color,
|
|
6327
6327
|
color = _ref2$color === void 0 ? 'primary' : _ref2$color,
|
|
6328
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
6328
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$p);
|
|
6329
6329
|
|
|
6330
6330
|
var thickness = 4;
|
|
6331
6331
|
var progress = Math.round(value);
|
|
@@ -6412,7 +6412,7 @@ var token = {
|
|
|
6412
6412
|
background: logoFillPositive
|
|
6413
6413
|
};
|
|
6414
6414
|
|
|
6415
|
-
var _excluded$
|
|
6415
|
+
var _excluded$o = ["variant", "value", "size"];
|
|
6416
6416
|
var indeterminate = styled.keyframes(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]);
|
|
6417
6417
|
var determinate = styled.keyframes(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]);
|
|
6418
6418
|
var Svg$3 = styled__default["default"].svg.withConfig({
|
|
@@ -6430,7 +6430,7 @@ var StarProgress = /*#__PURE__*/react.forwardRef(function StarProgress(_ref2, re
|
|
|
6430
6430
|
value = _ref2$value === void 0 ? null : _ref2$value,
|
|
6431
6431
|
_ref2$size = _ref2.size,
|
|
6432
6432
|
size = _ref2$size === void 0 ? 48 : _ref2$size,
|
|
6433
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
6433
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$o);
|
|
6434
6434
|
|
|
6435
6435
|
var progress = Math.round(value);
|
|
6436
6436
|
var height = size * 1.2;
|
|
@@ -6474,11 +6474,11 @@ var StarProgress = /*#__PURE__*/react.forwardRef(function StarProgress(_ref2, re
|
|
|
6474
6474
|
}));
|
|
6475
6475
|
}); // StarProgress.displayName = 'eds-star-progress'
|
|
6476
6476
|
|
|
6477
|
-
var _tokens$colors$
|
|
6478
|
-
primary100 = _tokens$colors$
|
|
6479
|
-
_tokens$colors$intera$
|
|
6480
|
-
icon_on_interactive_colors = _tokens$colors$intera$
|
|
6481
|
-
danger_resting = _tokens$colors$intera$
|
|
6477
|
+
var _tokens$colors$4 = edsTokens.tokens.colors,
|
|
6478
|
+
primary100 = _tokens$colors$4.infographic.primary__moss_green_100.rgba,
|
|
6479
|
+
_tokens$colors$intera$6 = _tokens$colors$4.interactive,
|
|
6480
|
+
icon_on_interactive_colors = _tokens$colors$intera$6.icon_on_interactive_colors.rgba,
|
|
6481
|
+
danger_resting = _tokens$colors$intera$6.danger__resting.rgba;
|
|
6482
6482
|
var primary = {
|
|
6483
6483
|
background: primary100
|
|
6484
6484
|
};
|
|
@@ -6496,7 +6496,7 @@ var tokens = /*#__PURE__*/Object.freeze({
|
|
|
6496
6496
|
tertiary: tertiary
|
|
6497
6497
|
});
|
|
6498
6498
|
|
|
6499
|
-
var _excluded$
|
|
6499
|
+
var _excluded$n = ["color", "size"];
|
|
6500
6500
|
var opacity = styled.keyframes(["0%{opacity:1;}100%{opacity:0.5;}"]);
|
|
6501
6501
|
var Svg$2 = styled__default["default"].svg.withConfig({
|
|
6502
6502
|
displayName: "DotProgress__Svg",
|
|
@@ -6519,7 +6519,7 @@ var DotProgress = /*#__PURE__*/react.forwardRef(function DotProgress(_ref2, ref)
|
|
|
6519
6519
|
color = _ref2$color === void 0 ? 'neutral' : _ref2$color,
|
|
6520
6520
|
_ref2$size = _ref2.size,
|
|
6521
6521
|
size = _ref2$size === void 0 ? 32 : _ref2$size,
|
|
6522
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
6522
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$n);
|
|
6523
6523
|
|
|
6524
6524
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
6525
6525
|
color: getColor(color),
|
|
@@ -6557,9 +6557,9 @@ var Progress = {
|
|
|
6557
6557
|
Dots: DotProgress
|
|
6558
6558
|
};
|
|
6559
6559
|
|
|
6560
|
-
var _tokens$colors$
|
|
6561
|
-
enabledColor = _tokens$colors$
|
|
6562
|
-
hoverColor = _tokens$colors$
|
|
6560
|
+
var _tokens$colors$3 = edsTokens.tokens.colors,
|
|
6561
|
+
enabledColor = _tokens$colors$3.text.static_icons__tertiary.rgba,
|
|
6562
|
+
hoverColor = _tokens$colors$3.interactive.primary__resting.rgba,
|
|
6563
6563
|
spacingMedium$2 = edsTokens.tokens.spacings.comfortable.medium;
|
|
6564
6564
|
var breadcrumbs = {
|
|
6565
6565
|
spacings: {
|
|
@@ -6578,7 +6578,7 @@ var breadcrumbs = {
|
|
|
6578
6578
|
}
|
|
6579
6579
|
};
|
|
6580
6580
|
|
|
6581
|
-
var _excluded$
|
|
6581
|
+
var _excluded$m = ["children", "collapse"];
|
|
6582
6582
|
var spacings = breadcrumbs.spacings,
|
|
6583
6583
|
typography$6 = breadcrumbs.typography,
|
|
6584
6584
|
states$1 = breadcrumbs.states;
|
|
@@ -6601,7 +6601,7 @@ var Collapsed = styled__default["default"](Typography).withConfig({
|
|
|
6601
6601
|
var Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, ref) {
|
|
6602
6602
|
var children = _ref.children,
|
|
6603
6603
|
collapse = _ref.collapse,
|
|
6604
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
6604
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$m);
|
|
6605
6605
|
|
|
6606
6606
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
6607
6607
|
ref: ref
|
|
@@ -6673,7 +6673,7 @@ var Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, ref
|
|
|
6673
6673
|
}));
|
|
6674
6674
|
}); // Breadcrumbs.displayName = 'eds-breadcrumbs'
|
|
6675
6675
|
|
|
6676
|
-
var _excluded$
|
|
6676
|
+
var _excluded$l = ["children", "maxWidth", "href", "as"];
|
|
6677
6677
|
var states = breadcrumbs.states,
|
|
6678
6678
|
typography$5 = breadcrumbs.typography;
|
|
6679
6679
|
var StyledTypography = styled__default["default"](Typography).withConfig({
|
|
@@ -6690,7 +6690,7 @@ var Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref) {
|
|
|
6690
6690
|
maxWidth = _ref2.maxWidth,
|
|
6691
6691
|
href = _ref2.href,
|
|
6692
6692
|
as = _ref2.as,
|
|
6693
|
-
other = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
6693
|
+
other = _objectWithoutProperties__default["default"](_ref2, _excluded$l);
|
|
6694
6694
|
|
|
6695
6695
|
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, other), {}, {
|
|
6696
6696
|
href: href,
|
|
@@ -6712,7 +6712,7 @@ var Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref) {
|
|
|
6712
6712
|
children: children
|
|
6713
6713
|
}));
|
|
6714
6714
|
|
|
6715
|
-
return showTooltip ? /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
|
|
6715
|
+
return showTooltip ? /*#__PURE__*/jsxRuntime.jsx(Tooltip$1, {
|
|
6716
6716
|
title: children,
|
|
6717
6717
|
placement: "top",
|
|
6718
6718
|
children: crumb
|
|
@@ -6723,16 +6723,16 @@ var Breadcrumbs = Breadcrumbs$1;
|
|
|
6723
6723
|
Breadcrumbs.Breadcrumb = Breadcrumb;
|
|
6724
6724
|
Breadcrumbs.Breadcrumb.displayName = 'Breadcrumbs.Breadcrumb';
|
|
6725
6725
|
|
|
6726
|
-
var initalState = {
|
|
6726
|
+
var initalState$1 = {
|
|
6727
6727
|
focusedIndex: -1,
|
|
6728
6728
|
initialFocus: null,
|
|
6729
6729
|
onClose: null
|
|
6730
6730
|
};
|
|
6731
|
-
var MenuContext = /*#__PURE__*/react.createContext(initalState);
|
|
6731
|
+
var MenuContext = /*#__PURE__*/react.createContext(initalState$1);
|
|
6732
6732
|
var MenuProvider = function MenuProvider(_ref) {
|
|
6733
6733
|
var children = _ref.children;
|
|
6734
6734
|
|
|
6735
|
-
var _useState = react.useState(initalState),
|
|
6735
|
+
var _useState = react.useState(initalState$1),
|
|
6736
6736
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
6737
6737
|
state = _useState2[0],
|
|
6738
6738
|
setState = _useState2[1];
|
|
@@ -6788,26 +6788,26 @@ var useMenu = function useMenu() {
|
|
|
6788
6788
|
return react.useContext(MenuContext);
|
|
6789
6789
|
};
|
|
6790
6790
|
|
|
6791
|
-
var _tokens$colors$
|
|
6792
|
-
background = _tokens$colors$
|
|
6793
|
-
_tokens$colors$intera$
|
|
6794
|
-
activeBackground = _tokens$colors$intera$
|
|
6795
|
-
activeTextColor = _tokens$colors$intera$
|
|
6796
|
-
focusColor = _tokens$colors$intera$
|
|
6797
|
-
disabledIconColor = _tokens$colors$intera$
|
|
6798
|
-
disabledTextColor = _tokens$colors$intera$
|
|
6799
|
-
hoverBackground = _tokens$colors$intera$
|
|
6800
|
-
textColor = _tokens$colors$
|
|
6801
|
-
_tokens$spacings$comf$
|
|
6802
|
-
medium = _tokens$spacings$comf$
|
|
6803
|
-
large = _tokens$spacings$comf$
|
|
6804
|
-
small$
|
|
6791
|
+
var _tokens$colors$2 = edsTokens.tokens.colors,
|
|
6792
|
+
background$1 = _tokens$colors$2.ui.background__default.rgba,
|
|
6793
|
+
_tokens$colors$intera$5 = _tokens$colors$2.interactive,
|
|
6794
|
+
activeBackground = _tokens$colors$intera$5.primary__selected_highlight.rgba,
|
|
6795
|
+
activeTextColor = _tokens$colors$intera$5.primary__resting.rgba,
|
|
6796
|
+
focusColor$1 = _tokens$colors$intera$5.focus.rgba,
|
|
6797
|
+
disabledIconColor = _tokens$colors$intera$5.disabled__fill.rgba,
|
|
6798
|
+
disabledTextColor = _tokens$colors$intera$5.disabled__text.rgba,
|
|
6799
|
+
hoverBackground = _tokens$colors$intera$5.table__header__fill_hover.rgba,
|
|
6800
|
+
textColor = _tokens$colors$2.text.static_icons__default.rgba,
|
|
6801
|
+
_tokens$spacings$comf$6 = edsTokens.tokens.spacings.comfortable,
|
|
6802
|
+
medium$1 = _tokens$spacings$comf$6.medium,
|
|
6803
|
+
large$1 = _tokens$spacings$comf$6.large,
|
|
6804
|
+
small$2 = _tokens$spacings$comf$6.small,
|
|
6805
6805
|
typography$4 = edsTokens.tokens.typography.navigation.menu_title;
|
|
6806
6806
|
var menu = {
|
|
6807
|
-
background: background,
|
|
6807
|
+
background: background$1,
|
|
6808
6808
|
spacings: {
|
|
6809
|
-
top: small$
|
|
6810
|
-
bottom: small$
|
|
6809
|
+
top: small$2,
|
|
6810
|
+
bottom: small$2,
|
|
6811
6811
|
left: '0px',
|
|
6812
6812
|
right: '0px'
|
|
6813
6813
|
},
|
|
@@ -6830,10 +6830,10 @@ var menu = {
|
|
|
6830
6830
|
},
|
|
6831
6831
|
item: {
|
|
6832
6832
|
spacings: {
|
|
6833
|
-
left: large,
|
|
6834
|
-
right: large,
|
|
6835
|
-
top: medium,
|
|
6836
|
-
bottom: medium
|
|
6833
|
+
left: large$1,
|
|
6834
|
+
right: large$1,
|
|
6835
|
+
top: medium$1,
|
|
6836
|
+
bottom: medium$1
|
|
6837
6837
|
},
|
|
6838
6838
|
states: {
|
|
6839
6839
|
active: {
|
|
@@ -6844,7 +6844,7 @@ var menu = {
|
|
|
6844
6844
|
},
|
|
6845
6845
|
focus: {
|
|
6846
6846
|
outline: {
|
|
6847
|
-
color: focusColor,
|
|
6847
|
+
color: focusColor$1,
|
|
6848
6848
|
style: 'dashed',
|
|
6849
6849
|
type: 'outline',
|
|
6850
6850
|
width: '2px',
|
|
@@ -6863,10 +6863,10 @@ var menu = {
|
|
|
6863
6863
|
},
|
|
6864
6864
|
title: {
|
|
6865
6865
|
spacings: {
|
|
6866
|
-
left: large,
|
|
6867
|
-
right: large,
|
|
6868
|
-
top: small$
|
|
6869
|
-
bottom: small$
|
|
6866
|
+
left: large$1,
|
|
6867
|
+
right: large$1,
|
|
6868
|
+
top: small$2,
|
|
6869
|
+
bottom: small$2
|
|
6870
6870
|
}
|
|
6871
6871
|
}
|
|
6872
6872
|
},
|
|
@@ -6875,10 +6875,10 @@ var menu = {
|
|
|
6875
6875
|
entities: {
|
|
6876
6876
|
item: {
|
|
6877
6877
|
spacings: {
|
|
6878
|
-
left: large,
|
|
6879
|
-
right: large,
|
|
6880
|
-
top: small$
|
|
6881
|
-
bottom: small$
|
|
6878
|
+
left: large$1,
|
|
6879
|
+
right: large$1,
|
|
6880
|
+
top: small$2,
|
|
6881
|
+
bottom: small$2
|
|
6882
6882
|
}
|
|
6883
6883
|
}
|
|
6884
6884
|
}
|
|
@@ -6886,7 +6886,7 @@ var menu = {
|
|
|
6886
6886
|
}
|
|
6887
6887
|
};
|
|
6888
6888
|
|
|
6889
|
-
var _excluded$
|
|
6889
|
+
var _excluded$k = ["children", "disabled", "index", "onClick"];
|
|
6890
6890
|
var typography$3 = menu.typography,
|
|
6891
6891
|
_tokens$entities = menu.entities,
|
|
6892
6892
|
_tokens$entities$item = _tokens$entities.item.states,
|
|
@@ -6924,7 +6924,7 @@ var MenuItem = /*#__PURE__*/react.forwardRef(function MenuItem(_ref5, ref) {
|
|
|
6924
6924
|
_ref5$index = _ref5.index,
|
|
6925
6925
|
index = _ref5$index === void 0 ? 0 : _ref5$index,
|
|
6926
6926
|
_onClick = _ref5.onClick,
|
|
6927
|
-
rest = _objectWithoutProperties__default["default"](_ref5, _excluded$
|
|
6927
|
+
rest = _objectWithoutProperties__default["default"](_ref5, _excluded$k);
|
|
6928
6928
|
|
|
6929
6929
|
var _useMenu = useMenu(),
|
|
6930
6930
|
focusedIndex = _useMenu.focusedIndex,
|
|
@@ -6998,7 +6998,7 @@ var MenuSection = /*#__PURE__*/react.memo(function MenuSection(props) {
|
|
|
6998
6998
|
});
|
|
6999
6999
|
}); // MenuSection.displayName = 'EdsMenuSection'
|
|
7000
7000
|
|
|
7001
|
-
var _excluded$
|
|
7001
|
+
var _excluded$j = ["children"];
|
|
7002
7002
|
var List = styled__default["default"].div.withConfig({
|
|
7003
7003
|
displayName: "MenuList__List",
|
|
7004
7004
|
componentId: "sc-104rzof-0"
|
|
@@ -7011,7 +7011,7 @@ function isIndexable(item) {
|
|
|
7011
7011
|
|
|
7012
7012
|
var MenuList = /*#__PURE__*/react.forwardRef(function MenuList(_ref, ref) {
|
|
7013
7013
|
var children = _ref.children,
|
|
7014
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
7014
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$j);
|
|
7015
7015
|
|
|
7016
7016
|
var _useMenu = useMenu(),
|
|
7017
7017
|
focusedIndex = _useMenu.focusedIndex,
|
|
@@ -7093,8 +7093,8 @@ var MenuList = /*#__PURE__*/react.forwardRef(function MenuList(_ref, ref) {
|
|
|
7093
7093
|
}));
|
|
7094
7094
|
}); // MenuList.displayName = 'EdsMenuList'
|
|
7095
7095
|
|
|
7096
|
-
var _excluded$
|
|
7097
|
-
_excluded2 = ["anchorEl", "open", "placement", "onClose", "style", "className"];
|
|
7096
|
+
var _excluded$i = ["children", "anchorEl", "onClose", "open"],
|
|
7097
|
+
_excluded2$1 = ["anchorEl", "open", "placement", "onClose", "style", "className"];
|
|
7098
7098
|
var border = menu.border;
|
|
7099
7099
|
var MenuPaper = styled__default["default"](Paper).withConfig({
|
|
7100
7100
|
displayName: "Menu__MenuPaper",
|
|
@@ -7110,7 +7110,7 @@ var MenuContainer = /*#__PURE__*/react.forwardRef(function MenuContainer(_ref2,
|
|
|
7110
7110
|
anchorEl = _ref2.anchorEl,
|
|
7111
7111
|
onCloseCallback = _ref2.onClose,
|
|
7112
7112
|
open = _ref2.open,
|
|
7113
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
7113
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$i);
|
|
7114
7114
|
|
|
7115
7115
|
var _useMenu = useMenu(),
|
|
7116
7116
|
setOnClose = _useMenu.setOnClose,
|
|
@@ -7179,7 +7179,7 @@ var Menu$1 = /*#__PURE__*/react.forwardRef(function Menu(_ref3, ref) {
|
|
|
7179
7179
|
onClose = _ref3.onClose,
|
|
7180
7180
|
style = _ref3.style,
|
|
7181
7181
|
className = _ref3.className,
|
|
7182
|
-
rest = _objectWithoutProperties__default["default"](_ref3, _excluded2);
|
|
7182
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded2$1);
|
|
7183
7183
|
|
|
7184
7184
|
var _useEds = useEds(),
|
|
7185
7185
|
density = _useEds.density;
|
|
@@ -7205,7 +7205,7 @@ var Menu$1 = /*#__PURE__*/react.forwardRef(function Menu(_ref3, ref) {
|
|
|
7205
7205
|
strategy = _useFloating.strategy,
|
|
7206
7206
|
context = _useFloating.context;
|
|
7207
7207
|
|
|
7208
|
-
react.
|
|
7208
|
+
react.useEffect(function () {
|
|
7209
7209
|
reference(anchorEl);
|
|
7210
7210
|
}, [anchorEl, reference]);
|
|
7211
7211
|
var popoverRef = react.useMemo(function () {
|
|
@@ -7265,9 +7265,9 @@ Menu.Section = MenuSection;
|
|
|
7265
7265
|
Menu.Item.displayName = 'Menu.Item';
|
|
7266
7266
|
Menu.Section.displayName = 'Menu.Section';
|
|
7267
7267
|
|
|
7268
|
-
var _tokens$colors$intera$
|
|
7269
|
-
selectedColor = _tokens$colors$intera$
|
|
7270
|
-
disabledColor = _tokens$colors$intera$
|
|
7268
|
+
var _tokens$colors$intera$4 = edsTokens.tokens.colors.interactive,
|
|
7269
|
+
selectedColor = _tokens$colors$intera$4.primary__selected_highlight.rgba,
|
|
7270
|
+
disabledColor = _tokens$colors$intera$4.disabled__text.rgba,
|
|
7271
7271
|
spacingSmall$2 = edsTokens.tokens.spacings.comfortable.small;
|
|
7272
7272
|
var pagination = {
|
|
7273
7273
|
entities: {
|
|
@@ -7289,12 +7289,12 @@ var pagination = {
|
|
|
7289
7289
|
}
|
|
7290
7290
|
};
|
|
7291
7291
|
|
|
7292
|
-
var _excluded$
|
|
7292
|
+
var _excluded$h = ["page", "selected", "onClick"];
|
|
7293
7293
|
var PaginationItem = /*#__PURE__*/react.forwardRef(function PaginationItem(_ref, ref) {
|
|
7294
7294
|
var page = _ref.page,
|
|
7295
7295
|
selected = _ref.selected,
|
|
7296
7296
|
onClick = _ref.onClick,
|
|
7297
|
-
rest = _objectWithoutProperties__default["default"](_ref, _excluded$
|
|
7297
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$h);
|
|
7298
7298
|
|
|
7299
7299
|
var props = _objectSpread__default["default"]({
|
|
7300
7300
|
ref: ref,
|
|
@@ -7361,7 +7361,7 @@ function PaginationControl(pages, activePage) {
|
|
|
7361
7361
|
return range(1, pages);
|
|
7362
7362
|
}
|
|
7363
7363
|
|
|
7364
|
-
var _excluded$
|
|
7364
|
+
var _excluded$g = ["totalItems", "defaultPage", "withItemIndicator", "itemsPerPage", "onChange"];
|
|
7365
7365
|
var icons = {
|
|
7366
7366
|
chevron_left: edsIcons.chevron_left,
|
|
7367
7367
|
chevron_right: edsIcons.chevron_right,
|
|
@@ -7408,7 +7408,7 @@ var Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref) {
|
|
|
7408
7408
|
_ref2$itemsPerPage = _ref2.itemsPerPage,
|
|
7409
7409
|
itemsPerPage = _ref2$itemsPerPage === void 0 ? 10 : _ref2$itemsPerPage,
|
|
7410
7410
|
onChange = _ref2.onChange,
|
|
7411
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
7411
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$g);
|
|
7412
7412
|
|
|
7413
7413
|
var pages = Math.ceil(totalItems / itemsPerPage); // Total page numbers
|
|
7414
7414
|
|
|
@@ -7436,7 +7436,7 @@ var Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref) {
|
|
|
7436
7436
|
|
|
7437
7437
|
var isMounted = edsUtils.useIsMounted();
|
|
7438
7438
|
var items = PaginationControl(pages, activePage);
|
|
7439
|
-
|
|
7439
|
+
edsUtils.useIsomorphicLayoutEffect(function () {
|
|
7440
7440
|
if (isMounted) {
|
|
7441
7441
|
setActivePage(1);
|
|
7442
7442
|
onChange === null || onChange === void 0 ? void 0 : onChange(null, 1);
|
|
@@ -7513,9 +7513,9 @@ var Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref) {
|
|
|
7513
7513
|
});
|
|
7514
7514
|
|
|
7515
7515
|
var colors$2 = edsTokens.tokens.colors,
|
|
7516
|
-
_tokens$spacings$comf$
|
|
7517
|
-
small = _tokens$spacings$comf$
|
|
7518
|
-
x_small$2 = _tokens$spacings$comf$
|
|
7516
|
+
_tokens$spacings$comf$5 = edsTokens.tokens.spacings.comfortable,
|
|
7517
|
+
small$1 = _tokens$spacings$comf$5.small,
|
|
7518
|
+
x_small$2 = _tokens$spacings$comf$5.x_small,
|
|
7519
7519
|
typography$2 = edsTokens.tokens.typography,
|
|
7520
7520
|
shape = edsTokens.tokens.shape;
|
|
7521
7521
|
var nativeselect = {
|
|
@@ -7526,8 +7526,8 @@ var nativeselect = {
|
|
|
7526
7526
|
entities: {
|
|
7527
7527
|
input: {
|
|
7528
7528
|
spacings: {
|
|
7529
|
-
left: small,
|
|
7530
|
-
right: small,
|
|
7529
|
+
left: small$1,
|
|
7530
|
+
right: small$1,
|
|
7531
7531
|
top: '6px',
|
|
7532
7532
|
bottom: '6px'
|
|
7533
7533
|
}
|
|
@@ -7570,8 +7570,8 @@ var nativeselect = {
|
|
|
7570
7570
|
}
|
|
7571
7571
|
};
|
|
7572
7572
|
|
|
7573
|
-
var _excluded$
|
|
7574
|
-
var Container$
|
|
7573
|
+
var _excluded$f = ["label", "children", "className", "style", "selectRef", "id", "meta", "disabled", "multiple"];
|
|
7574
|
+
var Container$3 = styled__default["default"].div.withConfig({
|
|
7575
7575
|
displayName: "NativeSelect__Container",
|
|
7576
7576
|
componentId: "sc-1c1ogya-0"
|
|
7577
7577
|
})(["min-width:100px;width:100%;"]);
|
|
@@ -7594,7 +7594,7 @@ var NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2, re
|
|
|
7594
7594
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
7595
7595
|
_ref2$multiple = _ref2.multiple,
|
|
7596
7596
|
multiple = _ref2$multiple === void 0 ? false : _ref2$multiple,
|
|
7597
|
-
other = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
7597
|
+
other = _objectWithoutProperties__default["default"](_ref2, _excluded$f);
|
|
7598
7598
|
|
|
7599
7599
|
var _useEds = useEds(),
|
|
7600
7600
|
density = _useEds.density;
|
|
@@ -7623,7 +7623,7 @@ var NativeSelect = /*#__PURE__*/react.forwardRef(function NativeSelect(_ref2, re
|
|
|
7623
7623
|
var showLabel = label || meta;
|
|
7624
7624
|
return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
|
|
7625
7625
|
theme: token,
|
|
7626
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Container$
|
|
7626
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Container$3, _objectSpread__default["default"](_objectSpread__default["default"]({}, containerProps), {}, {
|
|
7627
7627
|
children: [showLabel && /*#__PURE__*/jsxRuntime.jsx(Label$2, _objectSpread__default["default"]({}, labelProps)), /*#__PURE__*/jsxRuntime.jsx(StyledSelect, _objectSpread__default["default"](_objectSpread__default["default"]({}, selectProps), {}, {
|
|
7628
7628
|
children: children
|
|
7629
7629
|
}))]
|
|
@@ -7636,12 +7636,12 @@ var typography$1 = edsTokens.tokens.typography,
|
|
|
7636
7636
|
_tokens$shape$2 = edsTokens.tokens.shape,
|
|
7637
7637
|
straight$1 = _tokens$shape$2.straight,
|
|
7638
7638
|
borderRadius$1 = _tokens$shape$2.corners.borderRadius,
|
|
7639
|
-
_tokens$spacings$comf$
|
|
7640
|
-
spacingSmall$1 = _tokens$spacings$comf$
|
|
7641
|
-
spacingMediumSmall$1 = _tokens$spacings$comf$
|
|
7642
|
-
spacingMedium$1 = _tokens$spacings$comf$
|
|
7643
|
-
spacingLarge$1 = _tokens$spacings$comf$
|
|
7644
|
-
xx_small$1 = _tokens$spacings$comf$
|
|
7639
|
+
_tokens$spacings$comf$4 = edsTokens.tokens.spacings.comfortable,
|
|
7640
|
+
spacingSmall$1 = _tokens$spacings$comf$4.small,
|
|
7641
|
+
spacingMediumSmall$1 = _tokens$spacings$comf$4.medium_small,
|
|
7642
|
+
spacingMedium$1 = _tokens$spacings$comf$4.medium,
|
|
7643
|
+
spacingLarge$1 = _tokens$spacings$comf$4.large,
|
|
7644
|
+
xx_small$1 = _tokens$spacings$comf$4.xx_small,
|
|
7645
7645
|
boxShadow$2 = edsTokens.tokens.elevation.temporary_nav;
|
|
7646
7646
|
var select = {
|
|
7647
7647
|
background: colors$1.ui.background__default.rgba,
|
|
@@ -7719,7 +7719,7 @@ var multiSelect$1 = mergeDeepRight$1(select, {
|
|
|
7719
7719
|
});
|
|
7720
7720
|
|
|
7721
7721
|
var buttonToken = select.entities.button;
|
|
7722
|
-
var Container$
|
|
7722
|
+
var Container$2 = styled__default["default"].div.withConfig({
|
|
7723
7723
|
displayName: "commonStyles__Container",
|
|
7724
7724
|
componentId: "sc-v98ajk-0"
|
|
7725
7725
|
})(["position:relative;"]);
|
|
@@ -7753,7 +7753,7 @@ var StyledInputWrapper = styled__default["default"].div.withConfig({
|
|
|
7753
7753
|
componentId: "sc-v98ajk-5"
|
|
7754
7754
|
})(["position:relative;"]);
|
|
7755
7755
|
|
|
7756
|
-
var _excluded$
|
|
7756
|
+
var _excluded$e = ["items", "label", "meta", "className", "disabled", "readOnly", "initialSelectedItem", "selectedOption", "handleSelectedItemChange"];
|
|
7757
7757
|
var PaddedStyledListItem$1 = styled__default["default"](StyledListItem$1).withConfig({
|
|
7758
7758
|
displayName: "SingleSelect__PaddedStyledListItem",
|
|
7759
7759
|
componentId: "sc-rh1yw2-0"
|
|
@@ -7776,7 +7776,7 @@ var SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2, re
|
|
|
7776
7776
|
initialSelectedItem = _ref2.initialSelectedItem,
|
|
7777
7777
|
selectedOption = _ref2.selectedOption,
|
|
7778
7778
|
handleSelectedItemChange = _ref2.handleSelectedItemChange,
|
|
7779
|
-
other = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
7779
|
+
other = _objectWithoutProperties__default["default"](_ref2, _excluded$e);
|
|
7780
7780
|
|
|
7781
7781
|
var _useState = react.useState(items),
|
|
7782
7782
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -7841,7 +7841,7 @@ var SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2, re
|
|
|
7841
7841
|
|
|
7842
7842
|
return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
|
|
7843
7843
|
theme: token,
|
|
7844
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Container$
|
|
7844
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, {
|
|
7845
7845
|
className: className,
|
|
7846
7846
|
ref: ref,
|
|
7847
7847
|
children: [/*#__PURE__*/jsxRuntime.jsx(Label$2, _objectSpread__default["default"](_objectSpread__default["default"]({}, getLabelProps()), {}, {
|
|
@@ -7897,15 +7897,15 @@ var SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2, re
|
|
|
7897
7897
|
});
|
|
7898
7898
|
});
|
|
7899
7899
|
|
|
7900
|
-
var _tokens$colors$intera$
|
|
7901
|
-
primaryColor$1 = _tokens$colors$intera$
|
|
7902
|
-
primaryHoverAlt$2 = _tokens$colors$intera$
|
|
7903
|
-
focusOutlineColor$2 = _tokens$colors$intera$
|
|
7904
|
-
disabledText$1 = _tokens$colors$intera$
|
|
7900
|
+
var _tokens$colors$intera$3 = edsTokens.tokens.colors.interactive,
|
|
7901
|
+
primaryColor$1 = _tokens$colors$intera$3.primary__resting.rgba,
|
|
7902
|
+
primaryHoverAlt$2 = _tokens$colors$intera$3.primary__hover_alt.rgba,
|
|
7903
|
+
focusOutlineColor$2 = _tokens$colors$intera$3.focus.rgba,
|
|
7904
|
+
disabledText$1 = _tokens$colors$intera$3.disabled__text.rgba,
|
|
7905
7905
|
labelTypography$2 = edsTokens.tokens.typography.navigation.menu_title,
|
|
7906
|
-
_tokens$spacings$comf$
|
|
7907
|
-
medium_small$2 = _tokens$spacings$comf$
|
|
7908
|
-
x_small$1 = _tokens$spacings$comf$
|
|
7906
|
+
_tokens$spacings$comf$3 = edsTokens.tokens.spacings.comfortable,
|
|
7907
|
+
medium_small$2 = _tokens$spacings$comf$3.medium_small,
|
|
7908
|
+
x_small$1 = _tokens$spacings$comf$3.x_small,
|
|
7909
7909
|
_tokens$clickbounds$1 = edsTokens.tokens.clickbounds,
|
|
7910
7910
|
clicboundSize$1 = _tokens$clickbounds$1.default__base,
|
|
7911
7911
|
compactClickboundSize$1 = _tokens$clickbounds$1.compact__standard,
|
|
@@ -7965,7 +7965,7 @@ var checkbox = {
|
|
|
7965
7965
|
}
|
|
7966
7966
|
};
|
|
7967
7967
|
|
|
7968
|
-
var _excluded$
|
|
7968
|
+
var _excluded$d = ["disabled", "indeterminate", "style", "className"];
|
|
7969
7969
|
var StyledPath$1 = styled__default["default"].path.attrs(function (_ref) {
|
|
7970
7970
|
var icon = _ref.icon;
|
|
7971
7971
|
return {
|
|
@@ -8031,7 +8031,7 @@ var CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput(_ref10,
|
|
|
8031
8031
|
indeterminate = _ref10.indeterminate,
|
|
8032
8032
|
style = _ref10.style,
|
|
8033
8033
|
className = _ref10.className,
|
|
8034
|
-
rest = _objectWithoutProperties__default["default"](_ref10, _excluded$
|
|
8034
|
+
rest = _objectWithoutProperties__default["default"](_ref10, _excluded$d);
|
|
8035
8035
|
|
|
8036
8036
|
var _useEds = useEds(),
|
|
8037
8037
|
density = _useEds.density;
|
|
@@ -8085,7 +8085,7 @@ var CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput(_ref10,
|
|
|
8085
8085
|
});
|
|
8086
8086
|
});
|
|
8087
8087
|
|
|
8088
|
-
var _excluded$
|
|
8088
|
+
var _excluded$c = ["items", "initialSelectedItems", "label", "meta", "className", "disabled", "readOnly", "selectedOptions", "handleSelectedItemsChange"];
|
|
8089
8089
|
var PaddedStyledListItem = styled__default["default"](StyledListItem$1).withConfig({
|
|
8090
8090
|
displayName: "MultiSelect__PaddedStyledListItem",
|
|
8091
8091
|
componentId: "sc-69ntfg-0"
|
|
@@ -8109,7 +8109,7 @@ var MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, ref)
|
|
|
8109
8109
|
readOnly = _ref2$readOnly === void 0 ? false : _ref2$readOnly,
|
|
8110
8110
|
selectedOptions = _ref2.selectedOptions,
|
|
8111
8111
|
handleSelectedItemsChange = _ref2.handleSelectedItemsChange,
|
|
8112
|
-
other = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
8112
|
+
other = _objectWithoutProperties__default["default"](_ref2, _excluded$c);
|
|
8113
8113
|
|
|
8114
8114
|
var isControlled = selectedOptions ? true : false;
|
|
8115
8115
|
|
|
@@ -8229,7 +8229,7 @@ var MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, ref)
|
|
|
8229
8229
|
|
|
8230
8230
|
return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
|
|
8231
8231
|
theme: token,
|
|
8232
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Container$
|
|
8232
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Container$2, {
|
|
8233
8233
|
className: className,
|
|
8234
8234
|
ref: ref,
|
|
8235
8235
|
children: [/*#__PURE__*/jsxRuntime.jsx(Label$2, _objectSpread__default["default"](_objectSpread__default["default"]({}, getLabelProps()), {}, {
|
|
@@ -8294,7 +8294,7 @@ var MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, ref)
|
|
|
8294
8294
|
});
|
|
8295
8295
|
});
|
|
8296
8296
|
|
|
8297
|
-
var _excluded$
|
|
8297
|
+
var _excluded$b = ["label", "disabled", "indeterminate", "className", "style"];
|
|
8298
8298
|
var StyledLabel$2 = styled__default["default"].label.withConfig({
|
|
8299
8299
|
displayName: "Checkbox__StyledLabel",
|
|
8300
8300
|
componentId: "sc-yg6l8h-0"
|
|
@@ -8313,7 +8313,7 @@ var Checkbox = /*#__PURE__*/react.forwardRef(function Checkbox(_ref2, ref) {
|
|
|
8313
8313
|
indeterminate = _ref2.indeterminate,
|
|
8314
8314
|
className = _ref2.className,
|
|
8315
8315
|
style = _ref2.style,
|
|
8316
|
-
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
8316
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded$b);
|
|
8317
8317
|
|
|
8318
8318
|
return label ? /*#__PURE__*/jsxRuntime.jsxs(StyledLabel$2, {
|
|
8319
8319
|
disabled: disabled,
|
|
@@ -8336,15 +8336,15 @@ var Checkbox = /*#__PURE__*/react.forwardRef(function Checkbox(_ref2, ref) {
|
|
|
8336
8336
|
});
|
|
8337
8337
|
Checkbox.displayName = 'Checkbox';
|
|
8338
8338
|
|
|
8339
|
-
var _tokens$colors$intera$
|
|
8340
|
-
primaryColor = _tokens$colors$intera$
|
|
8341
|
-
primaryHoverAlt$1 = _tokens$colors$intera$
|
|
8342
|
-
focusOutlineColor$1 = _tokens$colors$intera$
|
|
8343
|
-
disabledText = _tokens$colors$intera$
|
|
8339
|
+
var _tokens$colors$intera$2 = edsTokens.tokens.colors.interactive,
|
|
8340
|
+
primaryColor = _tokens$colors$intera$2.primary__resting.rgba,
|
|
8341
|
+
primaryHoverAlt$1 = _tokens$colors$intera$2.primary__hover_alt.rgba,
|
|
8342
|
+
focusOutlineColor$1 = _tokens$colors$intera$2.focus.rgba,
|
|
8343
|
+
disabledText = _tokens$colors$intera$2.disabled__text.rgba,
|
|
8344
8344
|
labelTypography$1 = edsTokens.tokens.typography.navigation.menu_title,
|
|
8345
|
-
_tokens$spacings$comf$
|
|
8346
|
-
medium_small$1 = _tokens$spacings$comf$
|
|
8347
|
-
x_small = _tokens$spacings$comf$
|
|
8345
|
+
_tokens$spacings$comf$2 = edsTokens.tokens.spacings.comfortable,
|
|
8346
|
+
medium_small$1 = _tokens$spacings$comf$2.medium_small,
|
|
8347
|
+
x_small = _tokens$spacings$comf$2.x_small,
|
|
8348
8348
|
_tokens$clickbounds = edsTokens.tokens.clickbounds,
|
|
8349
8349
|
clicboundSize = _tokens$clickbounds.default__base,
|
|
8350
8350
|
compactClickboundSize = _tokens$clickbounds.compact__standard,
|
|
@@ -8404,7 +8404,7 @@ var comfortable$1 = {
|
|
|
8404
8404
|
}
|
|
8405
8405
|
};
|
|
8406
8406
|
|
|
8407
|
-
var _excluded$
|
|
8407
|
+
var _excluded$a = ["label", "disabled", "className", "style"];
|
|
8408
8408
|
var Input$2 = styled__default["default"].input.attrs(function (_ref) {
|
|
8409
8409
|
var _ref$type = _ref.type,
|
|
8410
8410
|
type = _ref$type === void 0 ? 'radio' : _ref$type;
|
|
@@ -8484,7 +8484,7 @@ var Radio = /*#__PURE__*/react.forwardRef(function Radio(_ref12, ref) {
|
|
|
8484
8484
|
disabled = _ref12$disabled === void 0 ? false : _ref12$disabled,
|
|
8485
8485
|
className = _ref12.className,
|
|
8486
8486
|
style = _ref12.style,
|
|
8487
|
-
rest = _objectWithoutProperties__default["default"](_ref12, _excluded$
|
|
8487
|
+
rest = _objectWithoutProperties__default["default"](_ref12, _excluded$a);
|
|
8488
8488
|
|
|
8489
8489
|
var _useEds = useEds(),
|
|
8490
8490
|
density = _useEds.density;
|
|
@@ -8571,7 +8571,7 @@ var GridWrapper = styled__default["default"].span.withConfig({
|
|
|
8571
8571
|
componentId: "sc-x39lde-2"
|
|
8572
8572
|
})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;"]);
|
|
8573
8573
|
|
|
8574
|
-
var _excluded$
|
|
8574
|
+
var _excluded$9 = ["disabled", "className", "style"];
|
|
8575
8575
|
var Input$1 = styled__default["default"](BaseInput).withConfig({
|
|
8576
8576
|
displayName: "SwitchSmall__Input",
|
|
8577
8577
|
componentId: "sc-1a99mis-0"
|
|
@@ -8605,7 +8605,7 @@ var SwitchSmall = /*#__PURE__*/react.forwardRef(function SwitchSmall(_ref4, ref)
|
|
|
8605
8605
|
var disabled = _ref4.disabled,
|
|
8606
8606
|
className = _ref4.className,
|
|
8607
8607
|
style = _ref4.style,
|
|
8608
|
-
rest = _objectWithoutProperties__default["default"](_ref4, _excluded$
|
|
8608
|
+
rest = _objectWithoutProperties__default["default"](_ref4, _excluded$9);
|
|
8609
8609
|
|
|
8610
8610
|
return /*#__PURE__*/jsxRuntime.jsxs(GridWrapper, {
|
|
8611
8611
|
className: className,
|
|
@@ -8622,7 +8622,7 @@ var SwitchSmall = /*#__PURE__*/react.forwardRef(function SwitchSmall(_ref4, ref)
|
|
|
8622
8622
|
});
|
|
8623
8623
|
SwitchSmall.displayName = 'SwitchSmall';
|
|
8624
8624
|
|
|
8625
|
-
var _excluded$
|
|
8625
|
+
var _excluded$8 = ["disabled", "className", "style"];
|
|
8626
8626
|
var Input = styled__default["default"](BaseInput).withConfig({
|
|
8627
8627
|
displayName: "SwitchDefault__Input",
|
|
8628
8628
|
componentId: "sc-16ym5pn-0"
|
|
@@ -8659,7 +8659,7 @@ var SwitchDefault = /*#__PURE__*/react.forwardRef(function SwitchDefault(_ref4,
|
|
|
8659
8659
|
var disabled = _ref4.disabled,
|
|
8660
8660
|
className = _ref4.className,
|
|
8661
8661
|
style = _ref4.style,
|
|
8662
|
-
rest = _objectWithoutProperties__default["default"](_ref4, _excluded$
|
|
8662
|
+
rest = _objectWithoutProperties__default["default"](_ref4, _excluded$8);
|
|
8663
8663
|
|
|
8664
8664
|
return /*#__PURE__*/jsxRuntime.jsxs(GridWrapper, {
|
|
8665
8665
|
className: className,
|
|
@@ -8678,17 +8678,17 @@ var SwitchDefault = /*#__PURE__*/react.forwardRef(function SwitchDefault(_ref4,
|
|
|
8678
8678
|
});
|
|
8679
8679
|
SwitchDefault.displayName = 'SwitchDefault';
|
|
8680
8680
|
|
|
8681
|
-
var _tokens$colors = edsTokens.tokens.colors,
|
|
8682
|
-
backgroundColorMedium = _tokens$colors.ui.background__medium.rgba,
|
|
8683
|
-
_tokens$colors$intera = _tokens$colors.interactive,
|
|
8684
|
-
primaryHoverAlt = _tokens$colors$intera.primary__hover_alt.rgba,
|
|
8685
|
-
primaryHover = _tokens$colors$intera.primary__hover.rgba,
|
|
8686
|
-
activeColor = _tokens$colors$intera.primary__selected_highlight.rgba,
|
|
8687
|
-
primaryResting = _tokens$colors$intera.primary__resting.rgba,
|
|
8688
|
-
backgroundDisabled = _tokens$colors$intera.disabled__fill.rgba,
|
|
8689
|
-
focusOutlineColor = _tokens$colors$intera.focus.rgba,
|
|
8690
|
-
iconInteractive = _tokens$colors$intera.icon_on_interactive_colors.rgba,
|
|
8691
|
-
iconTertiary = _tokens$colors.text.static_icons__tertiary.rgba,
|
|
8681
|
+
var _tokens$colors$1 = edsTokens.tokens.colors,
|
|
8682
|
+
backgroundColorMedium = _tokens$colors$1.ui.background__medium.rgba,
|
|
8683
|
+
_tokens$colors$intera$1 = _tokens$colors$1.interactive,
|
|
8684
|
+
primaryHoverAlt = _tokens$colors$intera$1.primary__hover_alt.rgba,
|
|
8685
|
+
primaryHover = _tokens$colors$intera$1.primary__hover.rgba,
|
|
8686
|
+
activeColor = _tokens$colors$intera$1.primary__selected_highlight.rgba,
|
|
8687
|
+
primaryResting = _tokens$colors$intera$1.primary__resting.rgba,
|
|
8688
|
+
backgroundDisabled = _tokens$colors$intera$1.disabled__fill.rgba,
|
|
8689
|
+
focusOutlineColor = _tokens$colors$intera$1.focus.rgba,
|
|
8690
|
+
iconInteractive = _tokens$colors$intera$1.icon_on_interactive_colors.rgba,
|
|
8691
|
+
iconTertiary = _tokens$colors$1.text.static_icons__tertiary.rgba,
|
|
8692
8692
|
labelTypography = edsTokens.tokens.typography.navigation.menu_title,
|
|
8693
8693
|
clickbounds = edsTokens.tokens.clickbounds,
|
|
8694
8694
|
boxShadow$1 = edsTokens.tokens.elevation.raised,
|
|
@@ -8803,7 +8803,7 @@ var comfortable = {
|
|
|
8803
8803
|
}
|
|
8804
8804
|
};
|
|
8805
8805
|
|
|
8806
|
-
var _excluded$
|
|
8806
|
+
var _excluded$7 = ["size", "disabled", "label", "className", "style"];
|
|
8807
8807
|
var StyledLabel = styled__default["default"].label.withConfig({
|
|
8808
8808
|
displayName: "Switch__StyledLabel",
|
|
8809
8809
|
componentId: "sc-sdaahx-0"
|
|
@@ -8825,7 +8825,7 @@ var Switch = /*#__PURE__*/react.forwardRef(function Switch(_ref3, ref) {
|
|
|
8825
8825
|
label = _ref3.label,
|
|
8826
8826
|
className = _ref3.className,
|
|
8827
8827
|
style = _ref3.style,
|
|
8828
|
-
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$
|
|
8828
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$7);
|
|
8829
8829
|
|
|
8830
8830
|
var _useEds = useEds(),
|
|
8831
8831
|
density = _useEds.density; // TODO Temporary workaround untill we can deprecate "size" property (controlled by EdsProvider in the future)
|
|
@@ -8874,12 +8874,12 @@ var typography = edsTokens.tokens.typography,
|
|
|
8874
8874
|
_tokens$shape = edsTokens.tokens.shape,
|
|
8875
8875
|
straight = _tokens$shape.straight,
|
|
8876
8876
|
borderRadius = _tokens$shape.corners.borderRadius,
|
|
8877
|
-
_tokens$spacings$comf = edsTokens.tokens.spacings.comfortable,
|
|
8878
|
-
spacingSmall = _tokens$spacings$comf.small,
|
|
8879
|
-
spacingMediumSmall = _tokens$spacings$comf.medium_small,
|
|
8880
|
-
spacingMedium = _tokens$spacings$comf.medium,
|
|
8881
|
-
spacingLarge = _tokens$spacings$comf.large,
|
|
8882
|
-
xx_small = _tokens$spacings$comf.xx_small,
|
|
8877
|
+
_tokens$spacings$comf$1 = edsTokens.tokens.spacings.comfortable,
|
|
8878
|
+
spacingSmall = _tokens$spacings$comf$1.small,
|
|
8879
|
+
spacingMediumSmall = _tokens$spacings$comf$1.medium_small,
|
|
8880
|
+
spacingMedium = _tokens$spacings$comf$1.medium,
|
|
8881
|
+
spacingLarge = _tokens$spacings$comf$1.large,
|
|
8882
|
+
xx_small = _tokens$spacings$comf$1.xx_small,
|
|
8883
8883
|
boxShadow = edsTokens.tokens.elevation.temporary_nav;
|
|
8884
8884
|
var selectTokens = {
|
|
8885
8885
|
background: colors.ui.background__default.rgba,
|
|
@@ -8959,7 +8959,7 @@ var multiSelect = mergeDeepRight$1(selectTokens, {
|
|
|
8959
8959
|
}
|
|
8960
8960
|
});
|
|
8961
8961
|
|
|
8962
|
-
var _excluded$
|
|
8962
|
+
var _excluded$6 = ["value", "multiple", "isSelected", "isDisabled", "onClick", "aria-selected"];
|
|
8963
8963
|
var StyledListItem = styled__default["default"](List$1.Item).withConfig({
|
|
8964
8964
|
displayName: "Option__StyledListItem",
|
|
8965
8965
|
componentId: "sc-1ly11zu-0"
|
|
@@ -8978,7 +8978,7 @@ var AutocompleteOption = /*#__PURE__*/react.forwardRef(function AutocompleteOpti
|
|
|
8978
8978
|
isDisabled = _ref2.isDisabled,
|
|
8979
8979
|
_onClick = _ref2.onClick,
|
|
8980
8980
|
ariaSelected = _ref2['aria-selected'],
|
|
8981
|
-
other = _objectWithoutProperties__default["default"](_ref2, _excluded$
|
|
8981
|
+
other = _objectWithoutProperties__default["default"](_ref2, _excluded$6);
|
|
8982
8982
|
|
|
8983
8983
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledListItem, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
8984
8984
|
ref: ref,
|
|
@@ -9003,8 +9003,8 @@ var AutocompleteOption = /*#__PURE__*/react.forwardRef(function AutocompleteOpti
|
|
|
9003
9003
|
}));
|
|
9004
9004
|
});
|
|
9005
9005
|
|
|
9006
|
-
var _excluded = ["options", "label", "meta", "className", "style", "disabled", "readOnly", "hideClearButton", "onOptionsChange", "selectedOptions", "multiple", "initialSelectedOptions", "disablePortal", "optionDisabled", "optionsFilter", "autoWidth", "placeholder", "optionLabel", "clearSearchOnChange"];
|
|
9007
|
-
var Container = styled__default["default"].div.withConfig({
|
|
9006
|
+
var _excluded$5 = ["options", "label", "meta", "className", "style", "disabled", "readOnly", "hideClearButton", "onOptionsChange", "selectedOptions", "multiple", "initialSelectedOptions", "disablePortal", "optionDisabled", "optionsFilter", "autoWidth", "placeholder", "optionLabel", "clearSearchOnChange"];
|
|
9007
|
+
var Container$1 = styled__default["default"].div.withConfig({
|
|
9008
9008
|
displayName: "Autocomplete__Container",
|
|
9009
9009
|
componentId: "sc-yvif0e-0"
|
|
9010
9010
|
})(["position:relative;"]);
|
|
@@ -9120,7 +9120,7 @@ function AutocompleteInner(props, ref) {
|
|
|
9120
9120
|
optionLabel = props.optionLabel,
|
|
9121
9121
|
_props$clearSearchOnC = props.clearSearchOnChange,
|
|
9122
9122
|
clearSearchOnChange = _props$clearSearchOnC === void 0 ? true : _props$clearSearchOnC,
|
|
9123
|
-
other = _objectWithoutProperties__default["default"](props, _excluded);
|
|
9123
|
+
other = _objectWithoutProperties__default["default"](props, _excluded$5);
|
|
9124
9124
|
|
|
9125
9125
|
var anchorRef = react.useRef(null);
|
|
9126
9126
|
var isControlled = Boolean(selectedOptions);
|
|
@@ -9419,10 +9419,10 @@ function AutocompleteInner(props, ref) {
|
|
|
9419
9419
|
var _useInteractions = reactDomInteractions.useInteractions([]),
|
|
9420
9420
|
getFloatingProps = _useInteractions.getFloatingProps;
|
|
9421
9421
|
|
|
9422
|
-
react.
|
|
9422
|
+
react.useEffect(function () {
|
|
9423
9423
|
reference(anchorRef.current);
|
|
9424
9424
|
}, [anchorRef, reference]);
|
|
9425
|
-
react.
|
|
9425
|
+
react.useEffect(function () {
|
|
9426
9426
|
if (refs.reference.current && refs.floating.current && isOpen) {
|
|
9427
9427
|
return reactDomInteractions.autoUpdate(refs.reference.current, refs.floating.current, update);
|
|
9428
9428
|
}
|
|
@@ -9474,7 +9474,7 @@ function AutocompleteInner(props, ref) {
|
|
|
9474
9474
|
|
|
9475
9475
|
return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
|
|
9476
9476
|
theme: token,
|
|
9477
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
|
|
9477
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Container$1, {
|
|
9478
9478
|
className: className,
|
|
9479
9479
|
style: style,
|
|
9480
9480
|
ref: ref,
|
|
@@ -9482,7 +9482,7 @@ function AutocompleteInner(props, ref) {
|
|
|
9482
9482
|
label: label,
|
|
9483
9483
|
meta: meta,
|
|
9484
9484
|
disabled: disabled
|
|
9485
|
-
})), /*#__PURE__*/jsxRuntime.jsx(Container, _objectSpread__default["default"](_objectSpread__default["default"]({}, getComboboxProps()), {}, {
|
|
9485
|
+
})), /*#__PURE__*/jsxRuntime.jsx(Container$1, _objectSpread__default["default"](_objectSpread__default["default"]({}, getComboboxProps()), {}, {
|
|
9486
9486
|
children: /*#__PURE__*/jsxRuntime.jsx(Input$4, _objectSpread__default["default"](_objectSpread__default["default"]({}, getInputProps( // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9487
9487
|
getDropdownProps({
|
|
9488
9488
|
preventKeyAction: multiple ? isOpen : undefined,
|
|
@@ -9533,6 +9533,491 @@ function AutocompleteInner(props, ref) {
|
|
|
9533
9533
|
|
|
9534
9534
|
var Autocomplete = /*#__PURE__*/react.forwardRef(AutocompleteInner);
|
|
9535
9535
|
|
|
9536
|
+
var _tokens$colors = edsTokens.tokens.colors,
|
|
9537
|
+
_tokens$colors$ui = _tokens$colors.ui,
|
|
9538
|
+
background__light = _tokens$colors$ui.background__light.rgba,
|
|
9539
|
+
background__medium = _tokens$colors$ui.background__medium.rgba,
|
|
9540
|
+
background = _tokens$colors$ui.background__default.rgba,
|
|
9541
|
+
_tokens$colors$intera = _tokens$colors.interactive,
|
|
9542
|
+
focusColor = _tokens$colors$intera.focus.rgba,
|
|
9543
|
+
primary__resting = _tokens$colors$intera.primary__resting.rgba,
|
|
9544
|
+
menuActive = _tokens$colors$intera.primary__selected_highlight.rgba,
|
|
9545
|
+
menuDisabledBackground = _tokens$colors$intera.disabled__fill.rgba,
|
|
9546
|
+
menuDisabledText = _tokens$colors$intera.disabled__text.rgba,
|
|
9547
|
+
_tokens$colors$text = _tokens$colors.text,
|
|
9548
|
+
expandTextColor = _tokens$colors$text.static_icons__default.rgba,
|
|
9549
|
+
primaryWhite$1 = _tokens$colors$text.static_icons__primary_white.rgba,
|
|
9550
|
+
_tokens$spacings$comf = edsTokens.tokens.spacings.comfortable,
|
|
9551
|
+
medium = _tokens$spacings$comf.medium,
|
|
9552
|
+
large = _tokens$spacings$comf.large,
|
|
9553
|
+
small = _tokens$spacings$comf.small;
|
|
9554
|
+
var sidebar = {
|
|
9555
|
+
background: background,
|
|
9556
|
+
minWidth: '72px',
|
|
9557
|
+
maxWidth: '256px',
|
|
9558
|
+
spacings: {
|
|
9559
|
+
top: large,
|
|
9560
|
+
bottom: large
|
|
9561
|
+
},
|
|
9562
|
+
border: {
|
|
9563
|
+
type: 'bordergroup',
|
|
9564
|
+
right: {
|
|
9565
|
+
color: background__light,
|
|
9566
|
+
width: '2px',
|
|
9567
|
+
style: 'solid'
|
|
9568
|
+
}
|
|
9569
|
+
},
|
|
9570
|
+
entities: {
|
|
9571
|
+
actionButton: {
|
|
9572
|
+
typography: {
|
|
9573
|
+
color: primaryWhite$1
|
|
9574
|
+
},
|
|
9575
|
+
spacings: {
|
|
9576
|
+
top: medium,
|
|
9577
|
+
bottom: medium,
|
|
9578
|
+
right: large,
|
|
9579
|
+
left: large
|
|
9580
|
+
}
|
|
9581
|
+
},
|
|
9582
|
+
sidebarItem: {
|
|
9583
|
+
minHeight: '48px',
|
|
9584
|
+
spacings: {
|
|
9585
|
+
top: '0',
|
|
9586
|
+
bottom: '0'
|
|
9587
|
+
},
|
|
9588
|
+
typography: {
|
|
9589
|
+
color: expandTextColor
|
|
9590
|
+
},
|
|
9591
|
+
border: {
|
|
9592
|
+
type: 'bordergroup',
|
|
9593
|
+
bottom: {
|
|
9594
|
+
color: background__light,
|
|
9595
|
+
width: '2px',
|
|
9596
|
+
style: 'solid'
|
|
9597
|
+
}
|
|
9598
|
+
},
|
|
9599
|
+
states: {
|
|
9600
|
+
active: {
|
|
9601
|
+
background: menuActive,
|
|
9602
|
+
typography: {
|
|
9603
|
+
color: primary__resting
|
|
9604
|
+
}
|
|
9605
|
+
},
|
|
9606
|
+
hover: {
|
|
9607
|
+
background: background__medium
|
|
9608
|
+
},
|
|
9609
|
+
focus: {
|
|
9610
|
+
outline: {
|
|
9611
|
+
color: focusColor,
|
|
9612
|
+
style: 'dashed',
|
|
9613
|
+
type: 'outline',
|
|
9614
|
+
width: '2px',
|
|
9615
|
+
offset: '-2px'
|
|
9616
|
+
}
|
|
9617
|
+
},
|
|
9618
|
+
disabled: {
|
|
9619
|
+
background: menuDisabledBackground,
|
|
9620
|
+
typography: {
|
|
9621
|
+
color: menuDisabledText
|
|
9622
|
+
}
|
|
9623
|
+
}
|
|
9624
|
+
}
|
|
9625
|
+
},
|
|
9626
|
+
toggleOpen: {
|
|
9627
|
+
spacings: {
|
|
9628
|
+
top: small,
|
|
9629
|
+
bottom: small
|
|
9630
|
+
},
|
|
9631
|
+
typography: {
|
|
9632
|
+
color: expandTextColor
|
|
9633
|
+
}
|
|
9634
|
+
}
|
|
9635
|
+
},
|
|
9636
|
+
modes: {
|
|
9637
|
+
compact: {
|
|
9638
|
+
entities: {}
|
|
9639
|
+
}
|
|
9640
|
+
}
|
|
9641
|
+
};
|
|
9642
|
+
|
|
9643
|
+
var initalState = {
|
|
9644
|
+
isOpen: false,
|
|
9645
|
+
onToggle: null
|
|
9646
|
+
};
|
|
9647
|
+
var SideBarContext = /*#__PURE__*/react.createContext(initalState);
|
|
9648
|
+
var SideBarProvider = function SideBarProvider(_ref) {
|
|
9649
|
+
var children = _ref.children;
|
|
9650
|
+
|
|
9651
|
+
var _useState = react.useState(initalState),
|
|
9652
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
9653
|
+
state = _useState2[0],
|
|
9654
|
+
setState = _useState2[1];
|
|
9655
|
+
|
|
9656
|
+
var isOpen = state.isOpen,
|
|
9657
|
+
onToggle = state.onToggle;
|
|
9658
|
+
var setIsOpen = react.useCallback(function (open) {
|
|
9659
|
+
setState(function (prevState) {
|
|
9660
|
+
return _objectSpread__default["default"](_objectSpread__default["default"]({}, prevState), {}, {
|
|
9661
|
+
isOpen: open
|
|
9662
|
+
});
|
|
9663
|
+
});
|
|
9664
|
+
onToggle === null || onToggle === void 0 ? void 0 : onToggle(open);
|
|
9665
|
+
}, [onToggle]);
|
|
9666
|
+
|
|
9667
|
+
var setOnToggle = function setOnToggle(onToggle) {
|
|
9668
|
+
setState(function (prevState) {
|
|
9669
|
+
return _objectSpread__default["default"](_objectSpread__default["default"]({}, prevState), {}, {
|
|
9670
|
+
onToggle: onToggle
|
|
9671
|
+
});
|
|
9672
|
+
});
|
|
9673
|
+
};
|
|
9674
|
+
|
|
9675
|
+
var value = {
|
|
9676
|
+
setIsOpen: setIsOpen,
|
|
9677
|
+
setOnToggle: setOnToggle,
|
|
9678
|
+
onToggle: onToggle,
|
|
9679
|
+
isOpen: isOpen
|
|
9680
|
+
};
|
|
9681
|
+
return /*#__PURE__*/jsxRuntime.jsx(SideBarContext.Provider, {
|
|
9682
|
+
value: value,
|
|
9683
|
+
children: children
|
|
9684
|
+
});
|
|
9685
|
+
};
|
|
9686
|
+
var useSideBar = function useSideBar() {
|
|
9687
|
+
return react.useContext(SideBarContext);
|
|
9688
|
+
};
|
|
9689
|
+
|
|
9690
|
+
var _excluded$4 = ["onToggle", "open", "children"],
|
|
9691
|
+
_excluded2 = ["onToggle", "open", "children"];
|
|
9692
|
+
var SideBarContainer = /*#__PURE__*/react.forwardRef(function SideBarContainer(_ref, ref) {
|
|
9693
|
+
var onToggleCallback = _ref.onToggle,
|
|
9694
|
+
_ref$open = _ref.open,
|
|
9695
|
+
open = _ref$open === void 0 ? false : _ref$open,
|
|
9696
|
+
children = _ref.children,
|
|
9697
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$4);
|
|
9698
|
+
|
|
9699
|
+
var _useSideBar = useSideBar(),
|
|
9700
|
+
isOpen = _useSideBar.isOpen,
|
|
9701
|
+
setIsOpen = _useSideBar.setIsOpen,
|
|
9702
|
+
onToggle = _useSideBar.onToggle,
|
|
9703
|
+
setOnToggle = _useSideBar.setOnToggle;
|
|
9704
|
+
|
|
9705
|
+
react.useEffect(function () {
|
|
9706
|
+
if (onToggle === null && onToggleCallback) {
|
|
9707
|
+
setOnToggle(onToggleCallback);
|
|
9708
|
+
}
|
|
9709
|
+
}, [onToggle, onToggleCallback, setOnToggle]);
|
|
9710
|
+
react.useEffect(function () {
|
|
9711
|
+
setIsOpen(open); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9712
|
+
}, [open]);
|
|
9713
|
+
return /*#__PURE__*/jsxRuntime.jsx(GridContainer, _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
9714
|
+
open: isOpen,
|
|
9715
|
+
ref: ref,
|
|
9716
|
+
children: children
|
|
9717
|
+
}));
|
|
9718
|
+
});
|
|
9719
|
+
var GridContainer = styled__default["default"].div.withConfig({
|
|
9720
|
+
displayName: "SideBar__GridContainer",
|
|
9721
|
+
componentId: "sc-a84pkc-0"
|
|
9722
|
+
})(function (_ref2) {
|
|
9723
|
+
var theme = _ref2.theme,
|
|
9724
|
+
open = _ref2.open;
|
|
9725
|
+
return styled.css(["box-sizing:content-box;", " display:grid;grid-template-rows:1fr auto;height:100%;grid-template-areas:'content' 'footer';background-color:", ";overflow:hidden;width:", ";min-width:", ";"], edsUtils.bordersTemplate(theme.border), theme.background, open ? theme.maxWidth : theme.minWidth, open ? theme.maxWidth : theme.minWidth);
|
|
9726
|
+
});
|
|
9727
|
+
var SideBar$1 = /*#__PURE__*/react.forwardRef(function (_ref3, ref) {
|
|
9728
|
+
var onToggle = _ref3.onToggle,
|
|
9729
|
+
_ref3$open = _ref3.open,
|
|
9730
|
+
open = _ref3$open === void 0 ? false : _ref3$open,
|
|
9731
|
+
children = _ref3.children,
|
|
9732
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded2);
|
|
9733
|
+
|
|
9734
|
+
var _useEds = useEds(),
|
|
9735
|
+
density = _useEds.density;
|
|
9736
|
+
|
|
9737
|
+
var token = edsUtils.useToken({
|
|
9738
|
+
density: density
|
|
9739
|
+
}, sidebar);
|
|
9740
|
+
|
|
9741
|
+
var props = _objectSpread__default["default"]({
|
|
9742
|
+
onToggle: onToggle,
|
|
9743
|
+
open: open,
|
|
9744
|
+
children: children
|
|
9745
|
+
}, rest);
|
|
9746
|
+
|
|
9747
|
+
return /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
|
|
9748
|
+
theme: token,
|
|
9749
|
+
children: /*#__PURE__*/jsxRuntime.jsx(SideBarProvider, {
|
|
9750
|
+
children: /*#__PURE__*/jsxRuntime.jsx(SideBarContainer, _objectSpread__default["default"](_objectSpread__default["default"]({}, props), {}, {
|
|
9751
|
+
ref: ref
|
|
9752
|
+
}))
|
|
9753
|
+
})
|
|
9754
|
+
});
|
|
9755
|
+
});
|
|
9756
|
+
SideBar$1.displayName = 'SideBar';
|
|
9757
|
+
|
|
9758
|
+
var _excluded$3 = ["icon", "label", "active", "onClick", "as"];
|
|
9759
|
+
var _tokens$entities$side = sidebar.entities.sidebarItem,
|
|
9760
|
+
itemTextColor = _tokens$entities$side.typography.color,
|
|
9761
|
+
iconActive = _tokens$entities$side.states.active.typography.color;
|
|
9762
|
+
var Container = styled__default["default"].a.withConfig({
|
|
9763
|
+
displayName: "SidebarLink__Container",
|
|
9764
|
+
componentId: "sc-gbehcj-0"
|
|
9765
|
+
})(function (_ref) {
|
|
9766
|
+
var theme = _ref.theme,
|
|
9767
|
+
$active = _ref.$active;
|
|
9768
|
+
var minWidth = theme.minWidth,
|
|
9769
|
+
_theme$entities$sideb = theme.entities.sidebarItem,
|
|
9770
|
+
minHeight = _theme$entities$sideb.minHeight,
|
|
9771
|
+
border = _theme$entities$sideb.border,
|
|
9772
|
+
_theme$entities$sideb2 = _theme$entities$sideb.states,
|
|
9773
|
+
menuActiveBackground = _theme$entities$sideb2.active.background,
|
|
9774
|
+
menuHoverBackground = _theme$entities$sideb2.hover.background,
|
|
9775
|
+
focus = _theme$entities$sideb2.focus,
|
|
9776
|
+
_theme$entities$sideb3 = _theme$entities$sideb2.disabled,
|
|
9777
|
+
menuDisabledBackground = _theme$entities$sideb3.background,
|
|
9778
|
+
menuDisabledText = _theme$entities$sideb3.typography.color;
|
|
9779
|
+
return styled.css(["background-color:", ";display:grid;grid-template-columns:", " 1fr;place-items:center;", " text-decoration:none;min-height:", ";&:hover{cursor:pointer;background-color:", ";}&:disabled{background-color:", ";color:", ";}&:focus-visible{", ";}"], $active ? menuActiveBackground : 'none', minWidth, edsUtils.bordersTemplate(border), minHeight, $active ? menuActiveBackground : menuHoverBackground, menuDisabledBackground, menuDisabledText, edsUtils.outlineTemplate(focus.outline));
|
|
9780
|
+
});
|
|
9781
|
+
var ItemText = styled__default["default"](Typography).withConfig({
|
|
9782
|
+
displayName: "SidebarLink__ItemText",
|
|
9783
|
+
componentId: "sc-gbehcj-1"
|
|
9784
|
+
})(function (_ref2) {
|
|
9785
|
+
var theme = _ref2.theme,
|
|
9786
|
+
$active = _ref2.$active;
|
|
9787
|
+
var _theme$entities$sideb4 = theme.entities.sidebarItem,
|
|
9788
|
+
itemTextColor = _theme$entities$sideb4.typography.color,
|
|
9789
|
+
itemActiveTextColor = _theme$entities$sideb4.states.active.typography.color;
|
|
9790
|
+
return styled.css(["justify-self:start;color:", ";&::first-letter{text-transform:capitalize;}"], $active ? itemActiveTextColor : itemTextColor);
|
|
9791
|
+
});
|
|
9792
|
+
var Tooltip = styled__default["default"](Tooltip$1).withConfig({
|
|
9793
|
+
displayName: "SidebarLink__Tooltip",
|
|
9794
|
+
componentId: "sc-gbehcj-2"
|
|
9795
|
+
})(["text-transform:capitalize;"]);
|
|
9796
|
+
var SidebarLink = /*#__PURE__*/react.forwardRef(function SidebarLink(_ref3, ref) {
|
|
9797
|
+
var icon = _ref3.icon,
|
|
9798
|
+
label = _ref3.label,
|
|
9799
|
+
active = _ref3.active,
|
|
9800
|
+
onClick = _ref3.onClick,
|
|
9801
|
+
_ref3$as = _ref3.as,
|
|
9802
|
+
as = _ref3$as === void 0 ? 'a' : _ref3$as,
|
|
9803
|
+
rest = _objectWithoutProperties__default["default"](_ref3, _excluded$3);
|
|
9804
|
+
|
|
9805
|
+
var _useSideBar = useSideBar(),
|
|
9806
|
+
isOpen = _useSideBar.isOpen;
|
|
9807
|
+
|
|
9808
|
+
var getIconColor = function getIconColor() {
|
|
9809
|
+
return active ? iconActive : itemTextColor;
|
|
9810
|
+
};
|
|
9811
|
+
|
|
9812
|
+
if (isOpen) {
|
|
9813
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Container, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
9814
|
+
as: as,
|
|
9815
|
+
tabIndex: 0,
|
|
9816
|
+
$active: active,
|
|
9817
|
+
onClick: onClick,
|
|
9818
|
+
ref: ref
|
|
9819
|
+
}, rest), {}, {
|
|
9820
|
+
children: [icon && /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
|
|
9821
|
+
data: icon,
|
|
9822
|
+
color: getIconColor()
|
|
9823
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ItemText, {
|
|
9824
|
+
variant: "cell_text",
|
|
9825
|
+
group: "table",
|
|
9826
|
+
$active: active,
|
|
9827
|
+
children: label
|
|
9828
|
+
})]
|
|
9829
|
+
}));
|
|
9830
|
+
}
|
|
9831
|
+
|
|
9832
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
|
|
9833
|
+
title: label,
|
|
9834
|
+
placement: "right",
|
|
9835
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Container, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
9836
|
+
tabIndex: 0,
|
|
9837
|
+
as: as,
|
|
9838
|
+
$active: active,
|
|
9839
|
+
onClick: onClick,
|
|
9840
|
+
ref: ref
|
|
9841
|
+
}, rest), {}, {
|
|
9842
|
+
children: icon && /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
|
|
9843
|
+
data: icon,
|
|
9844
|
+
color: getIconColor()
|
|
9845
|
+
})
|
|
9846
|
+
}))
|
|
9847
|
+
});
|
|
9848
|
+
});
|
|
9849
|
+
SidebarLink.displayName = 'SidebarLink';
|
|
9850
|
+
|
|
9851
|
+
var _excluded$2 = ["children"];
|
|
9852
|
+
var StyledSideBarContent = styled__default["default"].div.withConfig({
|
|
9853
|
+
displayName: "SideBarContent__StyledSideBarContent",
|
|
9854
|
+
componentId: "sc-kq9ra8-0"
|
|
9855
|
+
})(function () {
|
|
9856
|
+
return styled.css(["grid-area:content;"]);
|
|
9857
|
+
});
|
|
9858
|
+
var SideBarContent = /*#__PURE__*/react.forwardRef(function SideBarContent(_ref, ref) {
|
|
9859
|
+
var children = _ref.children,
|
|
9860
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$2);
|
|
9861
|
+
|
|
9862
|
+
var props = _objectSpread__default["default"]({
|
|
9863
|
+
ref: ref
|
|
9864
|
+
}, rest);
|
|
9865
|
+
|
|
9866
|
+
return /*#__PURE__*/jsxRuntime.jsx(StyledSideBarContent, _objectSpread__default["default"](_objectSpread__default["default"]({}, props), {}, {
|
|
9867
|
+
children: children
|
|
9868
|
+
}));
|
|
9869
|
+
});
|
|
9870
|
+
|
|
9871
|
+
var _excluded$1 = ["children"];
|
|
9872
|
+
var StyledSideBarFooter = styled__default["default"].div.withConfig({
|
|
9873
|
+
displayName: "SideBarFooter__StyledSideBarFooter",
|
|
9874
|
+
componentId: "sc-1hsu72u-0"
|
|
9875
|
+
})(function () {
|
|
9876
|
+
return styled.css(["grid-area:footer;"]);
|
|
9877
|
+
});
|
|
9878
|
+
var SideBarFooter = /*#__PURE__*/react.forwardRef(function SideBarFooter(_ref, ref) {
|
|
9879
|
+
var children = _ref.children,
|
|
9880
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded$1);
|
|
9881
|
+
|
|
9882
|
+
var props = _objectSpread__default["default"]({
|
|
9883
|
+
ref: ref
|
|
9884
|
+
}, rest);
|
|
9885
|
+
|
|
9886
|
+
return /*#__PURE__*/jsxRuntime.jsx(StyledSideBarFooter, _objectSpread__default["default"](_objectSpread__default["default"]({}, props), {}, {
|
|
9887
|
+
children: children
|
|
9888
|
+
}));
|
|
9889
|
+
});
|
|
9890
|
+
|
|
9891
|
+
var iconColor = sidebar.entities.toggleOpen.typography.color;
|
|
9892
|
+
var ToggleContainer = styled__default["default"].div.withConfig({
|
|
9893
|
+
displayName: "SideBarToggle__ToggleContainer",
|
|
9894
|
+
componentId: "sc-1w5e44y-0"
|
|
9895
|
+
})(function (_ref) {
|
|
9896
|
+
var theme = _ref.theme;
|
|
9897
|
+
var minWidth = theme.minWidth,
|
|
9898
|
+
_theme$entities$toggl = theme.entities.toggleOpen.spacings,
|
|
9899
|
+
top = _theme$entities$toggl.top,
|
|
9900
|
+
bottom = _theme$entities$toggl.bottom;
|
|
9901
|
+
return styled.css(["width:", ";display:grid;place-items:center;margin-block-start:", ";margin-block-end:", ";"], minWidth, top, bottom);
|
|
9902
|
+
});
|
|
9903
|
+
var SideBarToggle = /*#__PURE__*/react.forwardRef(function SideBarToggle(_ref2, ref) {
|
|
9904
|
+
var rest = _extends__default["default"]({}, _ref2);
|
|
9905
|
+
|
|
9906
|
+
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
9907
|
+
ref: ref
|
|
9908
|
+
});
|
|
9909
|
+
|
|
9910
|
+
var _useSideBar = useSideBar(),
|
|
9911
|
+
isOpen = _useSideBar.isOpen,
|
|
9912
|
+
setIsOpen = _useSideBar.setIsOpen;
|
|
9913
|
+
|
|
9914
|
+
return /*#__PURE__*/jsxRuntime.jsx(ToggleContainer, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
9915
|
+
open: isOpen
|
|
9916
|
+
}, props), {}, {
|
|
9917
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Tooltip$1, {
|
|
9918
|
+
title: isOpen ? 'Collapse' : 'Expand',
|
|
9919
|
+
placement: "right",
|
|
9920
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
9921
|
+
variant: "ghost_icon",
|
|
9922
|
+
onClick: function onClick() {
|
|
9923
|
+
return setIsOpen(!isOpen);
|
|
9924
|
+
},
|
|
9925
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
|
|
9926
|
+
size: 24,
|
|
9927
|
+
data: isOpen ? edsIcons.collapse : edsIcons.expand,
|
|
9928
|
+
color: iconColor
|
|
9929
|
+
})
|
|
9930
|
+
})
|
|
9931
|
+
})
|
|
9932
|
+
}));
|
|
9933
|
+
});
|
|
9934
|
+
|
|
9935
|
+
var _excluded = ["label", "icon", "style", "className"];
|
|
9936
|
+
var primaryWhite = sidebar.entities.actionButton.typography.color;
|
|
9937
|
+
var MenuButtonContainer = styled__default["default"].div.withConfig({
|
|
9938
|
+
displayName: "SideBarButton__MenuButtonContainer",
|
|
9939
|
+
componentId: "sc-15xlkyo-0"
|
|
9940
|
+
})(function (_ref) {
|
|
9941
|
+
var open = _ref.open,
|
|
9942
|
+
theme = _ref.theme;
|
|
9943
|
+
var _theme$entities$actio = theme.entities.actionButton.spacings,
|
|
9944
|
+
right = _theme$entities$actio.right,
|
|
9945
|
+
left = _theme$entities$actio.left,
|
|
9946
|
+
top = _theme$entities$actio.top,
|
|
9947
|
+
bottom = _theme$entities$actio.bottom;
|
|
9948
|
+
return styled.css(["display:", ";grid-template-columns:", " 1fr ", ";justify-content:center;align-items:center;margin-block-start:", ";margin-block-end:", ";box-sizing:border-box;"], open ? 'grid' : 'flex', left, right, top, bottom);
|
|
9949
|
+
});
|
|
9950
|
+
var ExtendedButton = styled__default["default"](Button).withConfig({
|
|
9951
|
+
displayName: "SideBarButton__ExtendedButton",
|
|
9952
|
+
componentId: "sc-15xlkyo-1"
|
|
9953
|
+
})(function () {
|
|
9954
|
+
return styled.css(["height:40px;grid-column:2;width:fit-content;"]);
|
|
9955
|
+
});
|
|
9956
|
+
var SideBarButton = /*#__PURE__*/react.forwardRef(function SideBarToggle(_ref2, ref) {
|
|
9957
|
+
var label = _ref2.label,
|
|
9958
|
+
icon = _ref2.icon,
|
|
9959
|
+
style = _ref2.style,
|
|
9960
|
+
className = _ref2.className,
|
|
9961
|
+
rest = _objectWithoutProperties__default["default"](_ref2, _excluded);
|
|
9962
|
+
|
|
9963
|
+
var props = _objectSpread__default["default"](_objectSpread__default["default"]({}, rest), {}, {
|
|
9964
|
+
ref: ref
|
|
9965
|
+
});
|
|
9966
|
+
|
|
9967
|
+
var styleProps = {
|
|
9968
|
+
style: style,
|
|
9969
|
+
className: className
|
|
9970
|
+
};
|
|
9971
|
+
|
|
9972
|
+
var _useSideBar = useSideBar(),
|
|
9973
|
+
isOpen = _useSideBar.isOpen;
|
|
9974
|
+
|
|
9975
|
+
if (isOpen) {
|
|
9976
|
+
return /*#__PURE__*/jsxRuntime.jsx(MenuButtonContainer, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
9977
|
+
open: isOpen
|
|
9978
|
+
}, styleProps), {}, {
|
|
9979
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(ExtendedButton, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
9980
|
+
open: true,
|
|
9981
|
+
variant: "contained"
|
|
9982
|
+
}, props), {}, {
|
|
9983
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1, {
|
|
9984
|
+
data: icon,
|
|
9985
|
+
color: primaryWhite
|
|
9986
|
+
}), " ", label]
|
|
9987
|
+
}))
|
|
9988
|
+
}));
|
|
9989
|
+
}
|
|
9990
|
+
|
|
9991
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip$1, {
|
|
9992
|
+
title: label,
|
|
9993
|
+
placement: "right",
|
|
9994
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MenuButtonContainer, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
9995
|
+
open: isOpen
|
|
9996
|
+
}, styleProps), {}, {
|
|
9997
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread__default["default"](_objectSpread__default["default"]({
|
|
9998
|
+
variant: "contained_icon"
|
|
9999
|
+
}, props), {}, {
|
|
10000
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon$1, {
|
|
10001
|
+
data: icon,
|
|
10002
|
+
color: primaryWhite
|
|
10003
|
+
})
|
|
10004
|
+
}))
|
|
10005
|
+
}))
|
|
10006
|
+
});
|
|
10007
|
+
});
|
|
10008
|
+
|
|
10009
|
+
var SideBar = SideBar$1;
|
|
10010
|
+
SideBar.Link = SidebarLink;
|
|
10011
|
+
SideBar.Content = SideBarContent;
|
|
10012
|
+
SideBar.Footer = SideBarFooter;
|
|
10013
|
+
SideBar.Toggle = SideBarToggle;
|
|
10014
|
+
SideBar.Button = SideBarButton;
|
|
10015
|
+
SideBar.Link.displayName = 'SideBar.Link';
|
|
10016
|
+
SideBar.Content.displayName = 'SideBar.Content';
|
|
10017
|
+
SideBar.Footer.displayName = 'SideBar.Footer';
|
|
10018
|
+
SideBar.Toggle.displayName = 'SideBar.Toggle';
|
|
10019
|
+
SideBar.Button.displayName = 'SideBar.Button';
|
|
10020
|
+
|
|
9536
10021
|
exports.Accordion = Accordion;
|
|
9537
10022
|
exports.Autocomplete = Autocomplete;
|
|
9538
10023
|
exports.Avatar = Avatar;
|
|
@@ -9563,6 +10048,7 @@ exports.Progress = Progress;
|
|
|
9563
10048
|
exports.Radio = Radio;
|
|
9564
10049
|
exports.Scrim = Scrim;
|
|
9565
10050
|
exports.Search = Search;
|
|
10051
|
+
exports.SideBar = SideBar;
|
|
9566
10052
|
exports.SideSheet = SideSheet;
|
|
9567
10053
|
exports.SingleSelect = SingleSelect;
|
|
9568
10054
|
exports.Slider = Slider;
|
|
@@ -9573,7 +10059,8 @@ exports.Table = Table;
|
|
|
9573
10059
|
exports.TableOfContents = TableOfContents;
|
|
9574
10060
|
exports.Tabs = Tabs;
|
|
9575
10061
|
exports.TextField = TextField;
|
|
9576
|
-
exports.Tooltip = Tooltip;
|
|
10062
|
+
exports.Tooltip = Tooltip$1;
|
|
9577
10063
|
exports.TopBar = TopBar;
|
|
9578
10064
|
exports.Typography = Typography;
|
|
9579
10065
|
exports.useEds = useEds;
|
|
10066
|
+
exports.useSideBar = useSideBar;
|