@mw-kit/mw-ui 1.7.23 → 1.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AbsoluteContainer/index.d.ts +1 -1
- package/dist/components/Calendar/components/Basic/components/MonthPicker/index.d.ts +1 -1
- package/dist/components/Calendar/components/Basic/index.d.ts +1 -1
- package/dist/components/Calendar/components/Basic/styles.d.ts +1 -1
- package/dist/components/Calendar/components/Interval/components/Main/index.d.ts +1 -1
- package/dist/components/Calendar/components/Interval/index.d.ts +2 -2
- package/dist/components/Calendar/components/Single/components/Main/index.d.ts +1 -1
- package/dist/components/Calendar/components/Single/index.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +4 -4
- package/dist/components/Filters/AppliedFilters/components/Menu/styles.d.ts +1 -1
- package/dist/components/Grid/components/Col/styles.d.ts +1 -1
- package/dist/components/Grid/components/Grid/styles.d.ts +1 -1
- package/dist/components/Grid/components/Row/styles.d.ts +1 -1
- package/dist/components/Menu/interfaces.d.ts +3 -1
- package/dist/components/Menu/styles.d.ts +1 -1
- package/dist/functions/formatters.d.ts +2 -1
- package/dist/index.js +75 -47
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +75 -47
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -423,6 +423,14 @@ var getSpacings = function getSpacings(value, defaults) {
|
|
|
423
423
|
};
|
|
424
424
|
return values.top + " " + values.right + " " + values.bottom + " " + values.left;
|
|
425
425
|
};
|
|
426
|
+
var getBorder = function getBorder(config) {
|
|
427
|
+
return 'color' in config ? {
|
|
428
|
+
top: config,
|
|
429
|
+
left: config,
|
|
430
|
+
bottom: config,
|
|
431
|
+
right: config
|
|
432
|
+
} : config;
|
|
433
|
+
};
|
|
426
434
|
|
|
427
435
|
var Transition = function Transition(props) {
|
|
428
436
|
var active = props.active,
|
|
@@ -12622,8 +12630,8 @@ var ScrollContainer = function ScrollContainer(props) {
|
|
|
12622
12630
|
})), after);
|
|
12623
12631
|
};
|
|
12624
12632
|
|
|
12625
|
-
var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3;
|
|
12626
|
-
var Option = styled__default.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n\n > :nth-child(1) {\n flex: 1;\n }\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
12633
|
+
var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$2;
|
|
12634
|
+
var Option = styled__default.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n\n > :nth-child(1) {\n flex: 1;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
12627
12635
|
var theme = _ref.theme;
|
|
12628
12636
|
return theme.useTypography('p');
|
|
12629
12637
|
}, function (_ref2) {
|
|
@@ -12641,11 +12649,25 @@ var Option = styled__default.div(_templateObject$8 || (_templateObject$8 = _tagg
|
|
|
12641
12649
|
|
|
12642
12650
|
return styled.css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
|
|
12643
12651
|
}, function (_ref5) {
|
|
12644
|
-
var
|
|
12652
|
+
var border = _ref5.border,
|
|
12653
|
+
theme = _ref5.theme;
|
|
12654
|
+
if (!border) return;
|
|
12655
|
+
var config = getBorder(border);
|
|
12656
|
+
return keys(config).filter(function (k) {
|
|
12657
|
+
return config[k] !== undefined;
|
|
12658
|
+
}).map(function (pos) {
|
|
12659
|
+
var cfg = config[pos];
|
|
12660
|
+
var width = cfg.width || '1px';
|
|
12661
|
+
var style = cfg.style || 'solid';
|
|
12662
|
+
var color = isKeyOf(theme.colors, cfg.color) ? theme.colors[cfg.color] : cfg.color;
|
|
12663
|
+
return styled.css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n border-", "-width: ", ";\n border-", "-style: ", ";\n border-", "-color: ", ";\n "])), pos, width, pos, style, pos, color);
|
|
12664
|
+
});
|
|
12665
|
+
}, function (_ref6) {
|
|
12666
|
+
var theme = _ref6.theme;
|
|
12645
12667
|
return theme.colors.iceWhite;
|
|
12646
12668
|
});
|
|
12647
|
-
var Container$2 = styled__default(AbsoluteContainer)(
|
|
12648
|
-
var theme =
|
|
12669
|
+
var Container$2 = styled__default(AbsoluteContainer)(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref7) {
|
|
12670
|
+
var theme = _ref7.theme;
|
|
12649
12671
|
return theme.colors.white;
|
|
12650
12672
|
}, function (props) {
|
|
12651
12673
|
if (!props.containerSpacing) return;
|
|
@@ -12653,31 +12675,31 @@ var Container$2 = styled__default(AbsoluteContainer)(_templateObject4$6 || (_tem
|
|
|
12653
12675
|
var tmp = spacing.split(' ');
|
|
12654
12676
|
tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
|
|
12655
12677
|
spacing = tmp.join(' ');
|
|
12656
|
-
return styled.css(
|
|
12657
|
-
}, function (
|
|
12658
|
-
var bordered =
|
|
12678
|
+
return styled.css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
|
|
12679
|
+
}, function (_ref8) {
|
|
12680
|
+
var bordered = _ref8.bordered;
|
|
12659
12681
|
if (!bordered) return;
|
|
12660
|
-
return styled.css(
|
|
12661
|
-
var theme =
|
|
12682
|
+
return styled.css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref9) {
|
|
12683
|
+
var theme = _ref9.theme;
|
|
12662
12684
|
return theme.getColor('greyishBlue', 10);
|
|
12663
12685
|
});
|
|
12664
12686
|
}, function (props) {
|
|
12665
12687
|
var theme = props.theme;
|
|
12666
12688
|
|
|
12667
12689
|
if (!props.itemSpacing) {
|
|
12668
|
-
return styled.css(
|
|
12690
|
+
return styled.css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
|
|
12669
12691
|
}
|
|
12670
12692
|
|
|
12671
12693
|
var spacing = getSpacings(props.itemSpacing, {
|
|
12672
12694
|
right: '0'
|
|
12673
12695
|
});
|
|
12674
|
-
return styled.css(
|
|
12696
|
+
return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
|
|
12675
12697
|
});
|
|
12676
|
-
var Delimiter = styled__default.div(
|
|
12677
|
-
var theme = _ref9.theme;
|
|
12678
|
-
return theme.useTypography('p');
|
|
12679
|
-
}, function (_ref10) {
|
|
12698
|
+
var Delimiter = styled__default.div(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref10) {
|
|
12680
12699
|
var theme = _ref10.theme;
|
|
12700
|
+
return theme.useTypography('p');
|
|
12701
|
+
}, function (_ref11) {
|
|
12702
|
+
var theme = _ref11.theme;
|
|
12681
12703
|
return theme.colors.greyishBlue;
|
|
12682
12704
|
});
|
|
12683
12705
|
|
|
@@ -12764,7 +12786,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12764
12786
|
key: index
|
|
12765
12787
|
}, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
|
|
12766
12788
|
onClick: onClick,
|
|
12767
|
-
disabled: disabled
|
|
12789
|
+
disabled: disabled,
|
|
12790
|
+
border: option.border
|
|
12768
12791
|
}, isString(label.element) ? React__default.createElement(EllipsisContainer$1, null, label.element) : label.element, caret ? React__default.createElement(Icon, {
|
|
12769
12792
|
type: 'semantic',
|
|
12770
12793
|
icon: 'caret right',
|
|
@@ -12928,7 +12951,7 @@ var Indicator = function Indicator(props) {
|
|
|
12928
12951
|
}, props)));
|
|
12929
12952
|
};
|
|
12930
12953
|
|
|
12931
|
-
var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$
|
|
12954
|
+
var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$3, _templateObject11$2;
|
|
12932
12955
|
var Footer = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
|
|
12933
12956
|
var WeekContainer = styled__default.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
12934
12957
|
var theme = _ref.theme;
|
|
@@ -12985,7 +13008,7 @@ var DayContainer = styled__default.button(_templateObject4$8 || (_templateObject
|
|
|
12985
13008
|
return;
|
|
12986
13009
|
}
|
|
12987
13010
|
|
|
12988
|
-
return styled.css(_templateObject10$
|
|
13011
|
+
return styled.css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n top: -60%;\n right: -60%;\n width: 100%;\n height: 100%;\n background-color: ", ";\n transform: rotate(45deg);\n }\n "])), theme.colors[appearance === 'active' ? 'white' : 'blue']);
|
|
12989
13012
|
});
|
|
12990
13013
|
var DayIndicator = styled__default(Indicator).attrs({
|
|
12991
13014
|
size: 'mini'
|
|
@@ -13560,7 +13583,7 @@ var getTimeProps = function getTimeProps(time, value) {
|
|
|
13560
13583
|
});
|
|
13561
13584
|
};
|
|
13562
13585
|
|
|
13563
|
-
var _templateObject$e, _templateObject2$b, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$
|
|
13586
|
+
var _templateObject$e, _templateObject2$b, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$4, _templateObject11$3, _templateObject12$2;
|
|
13564
13587
|
var Button = styled__default.button(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n ", ";\n\n ", ";\n\n color: ", ";\n\n :disabled {\n ", "\n }\n\n :hover {\n cursor: ", ";\n\n ", "\n }\n\n :active {\n ", ";\n }\n\n ", "\n"])), function (_ref) {
|
|
13565
13588
|
var theme = _ref.theme,
|
|
13566
13589
|
appearance = _ref.appearance;
|
|
@@ -13632,7 +13655,7 @@ var Button = styled__default.button(_templateObject$e || (_templateObject$e = _t
|
|
|
13632
13655
|
}
|
|
13633
13656
|
|
|
13634
13657
|
if (['link', 'bordeless'].includes(appearance)) {
|
|
13635
|
-
return styled.css(_templateObject10$
|
|
13658
|
+
return styled.css(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
|
|
13636
13659
|
}
|
|
13637
13660
|
|
|
13638
13661
|
return styled.css(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
|
|
@@ -14275,13 +14298,13 @@ var Header$1 = function Header() {
|
|
|
14275
14298
|
|
|
14276
14299
|
var getOptions = function getOptions(props, options) {
|
|
14277
14300
|
return options.map(function (option) {
|
|
14301
|
+
var value = option.value,
|
|
14302
|
+
onClick = option.onClick,
|
|
14303
|
+
data = option.data;
|
|
14278
14304
|
var label = isString(option.label) ? {
|
|
14279
14305
|
text: option.label,
|
|
14280
14306
|
element: option.label
|
|
14281
14307
|
} : option.label;
|
|
14282
|
-
var value = option.value,
|
|
14283
|
-
onClick = option.onClick,
|
|
14284
|
-
data = option.data;
|
|
14285
14308
|
return {
|
|
14286
14309
|
label: label,
|
|
14287
14310
|
onClick: onClick ? function (index, _option, event) {
|
|
@@ -14291,11 +14314,16 @@ var getOptions = function getOptions(props, options) {
|
|
|
14291
14314
|
data: data
|
|
14292
14315
|
}, event);
|
|
14293
14316
|
} : function () {
|
|
14294
|
-
props.setValue(value, option);
|
|
14317
|
+
props.setValue(value === props.value ? '' : value, option);
|
|
14295
14318
|
},
|
|
14296
14319
|
data: data,
|
|
14297
14320
|
disabled: option.disabled,
|
|
14298
|
-
rules: option.rules
|
|
14321
|
+
rules: option.rules,
|
|
14322
|
+
border: {
|
|
14323
|
+
left: {
|
|
14324
|
+
color: value === props.value ? 'blue' : 'transparent'
|
|
14325
|
+
}
|
|
14326
|
+
}
|
|
14299
14327
|
};
|
|
14300
14328
|
});
|
|
14301
14329
|
};
|
|
@@ -14305,7 +14333,7 @@ var getInputValue = function getInputValue(value, options, parsedOptions) {
|
|
|
14305
14333
|
return option.value === value;
|
|
14306
14334
|
});
|
|
14307
14335
|
var selected = parsedOptions[selectedIndex];
|
|
14308
|
-
return selected ? selected.label.text :
|
|
14336
|
+
return selected ? selected.label.text : value;
|
|
14309
14337
|
};
|
|
14310
14338
|
|
|
14311
14339
|
var useSelect = function useSelect(props) {
|
|
@@ -15418,7 +15446,7 @@ var Switch = function Switch(props) {
|
|
|
15418
15446
|
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
|
|
15419
15447
|
};
|
|
15420
15448
|
|
|
15421
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$
|
|
15449
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$1, _templateObject16;
|
|
15422
15450
|
var bullet = styled.css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
|
|
15423
15451
|
var theme = _ref.theme;
|
|
15424
15452
|
return theme.spacings.s4;
|
|
@@ -15462,7 +15490,7 @@ var InputContainer = styled__default.div(_templateObject6$9 || (_templateObject6
|
|
|
15462
15490
|
return styled.css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.warningRed, Input$2, theme.colors.warningRed, theme.colors.warningRed, theme.colors.warningRed);
|
|
15463
15491
|
});
|
|
15464
15492
|
var MinMaxLabelContainer = styled__default.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
|
|
15465
|
-
var LabelsContainer = styled__default.div(_templateObject10$
|
|
15493
|
+
var LabelsContainer = styled__default.div(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
|
|
15466
15494
|
var position = _ref11.position;
|
|
15467
15495
|
|
|
15468
15496
|
if (position === 'bottom') {
|
|
@@ -15880,7 +15908,7 @@ var parse = function parse(value) {
|
|
|
15880
15908
|
});
|
|
15881
15909
|
};
|
|
15882
15910
|
|
|
15883
|
-
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$
|
|
15911
|
+
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$6, _templateObject11$5;
|
|
15884
15912
|
var RelativeContainer$5 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
|
|
15885
15913
|
var LabelContainer$5 = styled__default.div(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15886
15914
|
var theme = _ref.theme;
|
|
@@ -15923,7 +15951,7 @@ var Button$4 = styled__default.button(_templateObject8$9 || (_templateObject8$9
|
|
|
15923
15951
|
if (!onClick) return;
|
|
15924
15952
|
return styled.css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15925
15953
|
});
|
|
15926
|
-
var LabelText$1 = styled__default.label(_templateObject10$
|
|
15954
|
+
var LabelText$1 = styled__default.label(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
|
|
15927
15955
|
var theme = _ref10.theme;
|
|
15928
15956
|
return theme.spacings.s1;
|
|
15929
15957
|
}, function (_ref11) {
|
|
@@ -16953,7 +16981,7 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
16953
16981
|
Menu: AppliedFiltersMenu
|
|
16954
16982
|
});
|
|
16955
16983
|
|
|
16956
|
-
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$
|
|
16984
|
+
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$7;
|
|
16957
16985
|
var Container$9 = styled__default.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
|
|
16958
16986
|
return props.size === 'mini' && styled.css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
16959
16987
|
}, function (props) {
|
|
@@ -16971,7 +16999,7 @@ var Container$9 = styled__default.div(_templateObject$A || (_templateObject$A =
|
|
|
16971
16999
|
}, function (props) {
|
|
16972
17000
|
return props.borderType === 'danger' && styled.css(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
|
|
16973
17001
|
}, function (props) {
|
|
16974
|
-
return props.borderType === 'none' && styled.css(_templateObject10$
|
|
17002
|
+
return props.borderType === 'none' && styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
|
|
16975
17003
|
});
|
|
16976
17004
|
|
|
16977
17005
|
var _excluded$1 = ["children"];
|
|
@@ -17387,7 +17415,7 @@ var useContext$2 = function useContext() {
|
|
|
17387
17415
|
return React__default.useContext(Provider$2);
|
|
17388
17416
|
};
|
|
17389
17417
|
|
|
17390
|
-
var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$
|
|
17418
|
+
var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$8, _templateObject11$6, _templateObject12$4, _templateObject13$3, _templateObject14$3, _templateObject15$2;
|
|
17391
17419
|
var aligns = {
|
|
17392
17420
|
self: {
|
|
17393
17421
|
horizontal: {
|
|
@@ -17470,7 +17498,7 @@ var Col = styled__default.div(_templateObject$D || (_templateObject$D = _taggedT
|
|
|
17470
17498
|
|
|
17471
17499
|
if (align.text !== undefined) {
|
|
17472
17500
|
var _v4 = align.text;
|
|
17473
|
-
styles.push(styled.css(_templateObject10$
|
|
17501
|
+
styles.push(styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n "])), _v4));
|
|
17474
17502
|
}
|
|
17475
17503
|
|
|
17476
17504
|
return styles;
|
|
@@ -17546,7 +17574,7 @@ var Grid$1 = function Grid$1(props) {
|
|
|
17546
17574
|
}, React__default.createElement(Grid, Object.assign({}, gridProps)));
|
|
17547
17575
|
};
|
|
17548
17576
|
|
|
17549
|
-
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$
|
|
17577
|
+
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$9;
|
|
17550
17578
|
var horizontalAligns = {
|
|
17551
17579
|
around: 'space-around',
|
|
17552
17580
|
between: 'space-between',
|
|
@@ -17621,7 +17649,7 @@ var Row = styled__default.div(_templateObject$F || (_templateObject$F = _taggedT
|
|
|
17621
17649
|
if (!hover) return;
|
|
17622
17650
|
var h = hover === true ? ['lightGrey', 50] : hover;
|
|
17623
17651
|
var c = Array.isArray(h) ? theme.getColor.apply(theme, h) : theme.colors[h];
|
|
17624
|
-
return styled.css(_templateObject10$
|
|
17652
|
+
return styled.css(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
|
|
17625
17653
|
});
|
|
17626
17654
|
|
|
17627
17655
|
var Row$1 = function Row$1(props) {
|
|
@@ -17674,7 +17702,7 @@ var widths = {
|
|
|
17674
17702
|
default: '642.5px'
|
|
17675
17703
|
};
|
|
17676
17704
|
|
|
17677
|
-
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$
|
|
17705
|
+
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$a;
|
|
17678
17706
|
var Background = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
|
|
17679
17707
|
var theme = _ref.theme;
|
|
17680
17708
|
return theme.getColor('black', 25);
|
|
@@ -17707,7 +17735,7 @@ var Container$b = styled__default.div(_templateObject9$d || (_templateObject9$d
|
|
|
17707
17735
|
customSize = _ref6.customSize,
|
|
17708
17736
|
color = _ref6.color,
|
|
17709
17737
|
inverted = _ref6.inverted;
|
|
17710
|
-
return styled.css(_templateObject10$
|
|
17738
|
+
return styled.css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n box-shadow: 0 0 21px 7px ", ";\n\n width: ", ";\n\n height: ", ";\n\n ", " {\n background-color: ", ";\n color: ", ";\n }\n "])), theme.colors.white, theme.getColor('black', 15), size === 'custom' && customSize ? customSize.width || 'auto' : widths[size], size === 'custom' && customSize ? customSize.height || 'auto' : heights[size], Header$5, inverted ? theme.isDarkColor(color) : theme.colors[color], inverted ? theme.colors[color] : theme.isDarkColor(color));
|
|
17711
17739
|
});
|
|
17712
17740
|
|
|
17713
17741
|
var _excluded$2 = ["children"];
|
|
@@ -17904,7 +17932,7 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
17904
17932
|
Audit: Audit
|
|
17905
17933
|
});
|
|
17906
17934
|
|
|
17907
|
-
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$
|
|
17935
|
+
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$b, _templateObject11$7;
|
|
17908
17936
|
var Container$c = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
17909
17937
|
var Header$6 = styled__default.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
17910
17938
|
var HeaderImage = styled__default.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -17919,7 +17947,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
|
|
|
17919
17947
|
}, function (props) {
|
|
17920
17948
|
return props.size === 'medium' && styled.css(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
17921
17949
|
}, function (props) {
|
|
17922
|
-
return props.size === 'large' && styled.css(_templateObject10$
|
|
17950
|
+
return props.size === 'large' && styled.css(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
17923
17951
|
});
|
|
17924
17952
|
var MainLine = styled__default(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
17925
17953
|
|
|
@@ -18190,7 +18218,7 @@ var Template6 = function Template6(props) {
|
|
|
18190
18218
|
})));
|
|
18191
18219
|
};
|
|
18192
18220
|
|
|
18193
|
-
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$
|
|
18221
|
+
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$c;
|
|
18194
18222
|
var Container$i = styled__default.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18195
18223
|
var Header$9 = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18196
18224
|
var HeaderLine$6 = styled__default.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
@@ -18212,7 +18240,7 @@ var CustomLine$3 = styled__default(HeaderLine$6)(_templateObject8$j || (_templat
|
|
|
18212
18240
|
return props.color;
|
|
18213
18241
|
});
|
|
18214
18242
|
var Main$2 = styled__default.div(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n margin: 10px 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-evenly;\n"])));
|
|
18215
|
-
var Circle$1 = styled__default.div(_templateObject10$
|
|
18243
|
+
var Circle$1 = styled__default.div(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 30px;\n height: 30px;\n background-color: #ebebeb;\n border-radius: 50%;\n margin: 0 16px;\n"])));
|
|
18216
18244
|
|
|
18217
18245
|
var Template7 = function Template7(props) {
|
|
18218
18246
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18267,7 +18295,7 @@ var Template8 = function Template8(props) {
|
|
|
18267
18295
|
})));
|
|
18268
18296
|
};
|
|
18269
18297
|
|
|
18270
|
-
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$
|
|
18298
|
+
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$d;
|
|
18271
18299
|
var Container$k = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18272
18300
|
var Header$b = styled__default.div(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18273
18301
|
var HeaderLine$8 = styled__default.div(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
@@ -18289,7 +18317,7 @@ var CustomLine$5 = styled__default(HeaderLine$8)(_templateObject8$l || (_templat
|
|
|
18289
18317
|
return props.color;
|
|
18290
18318
|
});
|
|
18291
18319
|
var Main$4 = styled__default.div(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
|
|
18292
|
-
var Circle$2 = styled__default.div(_templateObject10$
|
|
18320
|
+
var Circle$2 = styled__default.div(_templateObject10$d || (_templateObject10$d = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
18293
18321
|
|
|
18294
18322
|
var Template8$1 = function Template8(props) {
|
|
18295
18323
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18306,7 +18334,7 @@ var Template8$1 = function Template8(props) {
|
|
|
18306
18334
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18307
18335
|
};
|
|
18308
18336
|
|
|
18309
|
-
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$
|
|
18337
|
+
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$e, _templateObject11$8;
|
|
18310
18338
|
var Container$l = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18311
18339
|
var Header$c = styled__default.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18312
18340
|
var HeaderLine$9 = styled__default.div(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
@@ -18328,7 +18356,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$m || (_templat
|
|
|
18328
18356
|
return props.color;
|
|
18329
18357
|
});
|
|
18330
18358
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
18331
|
-
var Main$5 = styled__default.div(_templateObject10$
|
|
18359
|
+
var Main$5 = styled__default.div(_templateObject10$e || (_templateObject10$e = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
|
|
18332
18360
|
var Circle$3 = styled__default.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
18333
18361
|
|
|
18334
18362
|
var Template10 = function Template10(props) {
|