@mw-kit/mw-ui 1.7.1 → 1.7.3
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/Filters/AppliedFilters/interfaces.d.ts +1 -1
- package/dist/components/Filters/Filters/interfaces.d.ts +1 -1
- package/dist/components/Input/components/DateIntervalPicker/styles.d.ts +0 -1
- package/dist/index.js +22 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +22 -30
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -15273,7 +15273,7 @@ var parse = function parse(value) {
|
|
|
15273
15273
|
});
|
|
15274
15274
|
};
|
|
15275
15275
|
|
|
15276
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5
|
|
15276
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
|
|
15277
15277
|
var RelativeContainer$5 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])));
|
|
15278
15278
|
var LabelContainer$3 = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15279
15279
|
var theme = _ref.theme;
|
|
@@ -15283,7 +15283,7 @@ var LabelContainer$3 = styled.div(_templateObject2$l || (_templateObject2$l = _t
|
|
|
15283
15283
|
if (!onClick) return;
|
|
15284
15284
|
return css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15285
15285
|
});
|
|
15286
|
-
var Container$a = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
15286
|
+
var Container$a = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
15287
15287
|
var theme = _ref3.theme;
|
|
15288
15288
|
return theme.spacings.s1;
|
|
15289
15289
|
}, function (_ref4) {
|
|
@@ -15292,33 +15292,28 @@ var Container$a = styled.div(_templateObject4$g || (_templateObject4$g = _tagged
|
|
|
15292
15292
|
return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
|
|
15293
15293
|
}, function (_ref5) {
|
|
15294
15294
|
var theme = _ref5.theme,
|
|
15295
|
-
iconWidth = _ref5.iconWidth,
|
|
15296
15295
|
paddingless = _ref5.paddingless;
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
return css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", ");\n "])), iconWidth);
|
|
15300
|
-
}
|
|
15301
|
-
|
|
15302
|
-
return css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", " - ", ");\n padding: ", " 0 ", " ", ";\n "])), iconWidth, theme.spacings.s3, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
|
|
15296
|
+
if (paddingless) return;
|
|
15297
|
+
return css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
|
|
15303
15298
|
}, function (_ref6) {
|
|
15304
15299
|
var invalid = _ref6.invalid,
|
|
15305
15300
|
theme = _ref6.theme;
|
|
15306
15301
|
if (!invalid) return;
|
|
15307
|
-
return css(
|
|
15302
|
+
return css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15308
15303
|
}, function (_ref7) {
|
|
15309
15304
|
var invalid = _ref7.invalid,
|
|
15310
15305
|
theme = _ref7.theme;
|
|
15311
15306
|
if (!invalid) return;
|
|
15312
|
-
return css(
|
|
15307
|
+
return css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15313
15308
|
}, function (_ref8) {
|
|
15314
15309
|
var disabled = _ref8.disabled;
|
|
15315
15310
|
if (!disabled) return;
|
|
15316
|
-
return css(
|
|
15311
|
+
return css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15317
15312
|
});
|
|
15318
|
-
var Button$4 = styled.button(
|
|
15313
|
+
var Button$4 = styled.button(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref9) {
|
|
15319
15314
|
var onClick = _ref9.onClick;
|
|
15320
15315
|
if (!onClick) return;
|
|
15321
|
-
return css(
|
|
15316
|
+
return css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15322
15317
|
});
|
|
15323
15318
|
|
|
15324
15319
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -15426,19 +15421,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15426
15421
|
},
|
|
15427
15422
|
type: 'text',
|
|
15428
15423
|
ref: ref,
|
|
15429
|
-
icon: {
|
|
15430
|
-
icon: {
|
|
15431
|
-
type: 'feather',
|
|
15432
|
-
icon: 'calendar',
|
|
15433
|
-
width: '24px'
|
|
15434
|
-
},
|
|
15435
|
-
position: 'right',
|
|
15436
|
-
onClick: onClick
|
|
15437
|
-
},
|
|
15438
15424
|
borderless: true,
|
|
15439
15425
|
htmlDisabled: true
|
|
15440
15426
|
})), React__default.createElement(Container$a, {
|
|
15441
|
-
iconWidth: '24px',
|
|
15442
15427
|
invalid: props.invalid ? 1 : 0,
|
|
15443
15428
|
disabled: props.disabled ? 1 : 0,
|
|
15444
15429
|
paddingless: props.paddingless ? 1 : 0
|
|
@@ -15469,6 +15454,13 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15469
15454
|
icon: 'chevron_right',
|
|
15470
15455
|
color: props.invalid ? 'warningRed' : 'grey',
|
|
15471
15456
|
strokeWidth: '3px'
|
|
15457
|
+
})), React__default.createElement(Button$4, {
|
|
15458
|
+
onClick: onClick
|
|
15459
|
+
}, React__default.createElement(Icon, {
|
|
15460
|
+
type: 'feather',
|
|
15461
|
+
icon: 'calendar',
|
|
15462
|
+
color: props.invalid ? 'warningRed' : 'grey',
|
|
15463
|
+
width: '24px'
|
|
15472
15464
|
})));
|
|
15473
15465
|
}()), React__default.createElement(Menu, {
|
|
15474
15466
|
open: open === 'menu',
|
|
@@ -16457,7 +16449,7 @@ var Toast = function Toast(props) {
|
|
|
16457
16449
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
16458
16450
|
};
|
|
16459
16451
|
|
|
16460
|
-
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$
|
|
16452
|
+
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$4;
|
|
16461
16453
|
var Container$e = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
16462
16454
|
var Header$4 = styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
16463
16455
|
var HeaderImage = styled.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -16474,7 +16466,7 @@ var HeaderLine = styled.div(_templateObject6$h || (_templateObject6$h = _taggedT
|
|
|
16474
16466
|
}, function (props) {
|
|
16475
16467
|
return props.size === 'large' && css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16476
16468
|
});
|
|
16477
|
-
var MainLine = styled(HeaderLine)(_templateObject11$
|
|
16469
|
+
var MainLine = styled(HeaderLine)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
16478
16470
|
|
|
16479
16471
|
var Template1 = function Template1(props) {
|
|
16480
16472
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -16859,7 +16851,7 @@ var Template8$1 = function Template8(props) {
|
|
|
16859
16851
|
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
|
|
16860
16852
|
};
|
|
16861
16853
|
|
|
16862
|
-
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$
|
|
16854
|
+
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$5;
|
|
16863
16855
|
var Container$n = styled.div(_templateObject$M || (_templateObject$M = _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"])));
|
|
16864
16856
|
var Header$a = styled.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
16865
16857
|
var HeaderLine$9 = styled.div(_templateObject3$y || (_templateObject3$y = _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) {
|
|
@@ -16882,7 +16874,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$i || (_templateObject8$
|
|
|
16882
16874
|
});
|
|
16883
16875
|
var GraphLine = styled(CustomLine$6)(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
16884
16876
|
var Main$3 = styled.div(_templateObject10$b || (_templateObject10$b = _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"])));
|
|
16885
|
-
var Circle$3 = styled.div(_templateObject11$
|
|
16877
|
+
var Circle$3 = styled.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
16886
16878
|
|
|
16887
16879
|
var Template10 = function Template10(props) {
|
|
16888
16880
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -17677,7 +17669,7 @@ var useContext$2 = function useContext() {
|
|
|
17677
17669
|
return React__default.useContext(Provider$2);
|
|
17678
17670
|
};
|
|
17679
17671
|
|
|
17680
|
-
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$
|
|
17672
|
+
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$6, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
|
|
17681
17673
|
var aligns = {
|
|
17682
17674
|
self: {
|
|
17683
17675
|
horizontal: {
|
|
@@ -17768,7 +17760,7 @@ var Col = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLi
|
|
|
17768
17760
|
var bordered = _ref5.bordered,
|
|
17769
17761
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17770
17762
|
if (!bordered) return;
|
|
17771
|
-
return css(_templateObject11$
|
|
17763
|
+
return css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17772
17764
|
}, function (_ref6) {
|
|
17773
17765
|
var fontColor = _ref6.fontColor,
|
|
17774
17766
|
theme = _ref6.theme;
|