@mw-kit/mw-ui 1.7.2 → 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.
|
@@ -5,7 +5,6 @@ interface RelativeContainerProps {
|
|
|
5
5
|
export declare const RelativeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, RelativeContainerProps, never>;
|
|
6
6
|
export declare const LabelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
iconWidth: string;
|
|
9
8
|
invalid: 1 | 0;
|
|
10
9
|
disabled: 1 | 0;
|
|
11
10
|
paddingless: 1 | 0;
|
package/dist/index.js
CHANGED
|
@@ -15276,7 +15276,7 @@ var parse = function parse(value) {
|
|
|
15276
15276
|
});
|
|
15277
15277
|
};
|
|
15278
15278
|
|
|
15279
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5
|
|
15279
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
|
|
15280
15280
|
var RelativeContainer$5 = styled__default.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"])));
|
|
15281
15281
|
var LabelContainer$3 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15282
15282
|
var theme = _ref.theme;
|
|
@@ -15286,7 +15286,7 @@ var LabelContainer$3 = styled__default.div(_templateObject2$l || (_templateObjec
|
|
|
15286
15286
|
if (!onClick) return;
|
|
15287
15287
|
return styled.css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15288
15288
|
});
|
|
15289
|
-
var Container$a = styled__default.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) {
|
|
15289
|
+
var Container$a = styled__default.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) {
|
|
15290
15290
|
var theme = _ref3.theme;
|
|
15291
15291
|
return theme.spacings.s1;
|
|
15292
15292
|
}, function (_ref4) {
|
|
@@ -15295,33 +15295,28 @@ var Container$a = styled__default.div(_templateObject4$g || (_templateObject4$g
|
|
|
15295
15295
|
return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
|
|
15296
15296
|
}, function (_ref5) {
|
|
15297
15297
|
var theme = _ref5.theme,
|
|
15298
|
-
iconWidth = _ref5.iconWidth,
|
|
15299
15298
|
paddingless = _ref5.paddingless;
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", ");\n "])), iconWidth);
|
|
15303
|
-
}
|
|
15304
|
-
|
|
15305
|
-
return styled.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);
|
|
15299
|
+
if (paddingless) return;
|
|
15300
|
+
return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
|
|
15306
15301
|
}, function (_ref6) {
|
|
15307
15302
|
var invalid = _ref6.invalid,
|
|
15308
15303
|
theme = _ref6.theme;
|
|
15309
15304
|
if (!invalid) return;
|
|
15310
|
-
return styled.css(
|
|
15305
|
+
return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15311
15306
|
}, function (_ref7) {
|
|
15312
15307
|
var invalid = _ref7.invalid,
|
|
15313
15308
|
theme = _ref7.theme;
|
|
15314
15309
|
if (!invalid) return;
|
|
15315
|
-
return styled.css(
|
|
15310
|
+
return styled.css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15316
15311
|
}, function (_ref8) {
|
|
15317
15312
|
var disabled = _ref8.disabled;
|
|
15318
15313
|
if (!disabled) return;
|
|
15319
|
-
return styled.css(
|
|
15314
|
+
return styled.css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15320
15315
|
});
|
|
15321
|
-
var Button$4 = styled__default.button(
|
|
15316
|
+
var Button$4 = styled__default.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) {
|
|
15322
15317
|
var onClick = _ref9.onClick;
|
|
15323
15318
|
if (!onClick) return;
|
|
15324
|
-
return styled.css(
|
|
15319
|
+
return styled.css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15325
15320
|
});
|
|
15326
15321
|
|
|
15327
15322
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -15429,19 +15424,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15429
15424
|
},
|
|
15430
15425
|
type: 'text',
|
|
15431
15426
|
ref: ref,
|
|
15432
|
-
icon: {
|
|
15433
|
-
icon: {
|
|
15434
|
-
type: 'feather',
|
|
15435
|
-
icon: 'calendar',
|
|
15436
|
-
width: '24px'
|
|
15437
|
-
},
|
|
15438
|
-
position: 'right',
|
|
15439
|
-
onClick: onClick
|
|
15440
|
-
},
|
|
15441
15427
|
borderless: true,
|
|
15442
15428
|
htmlDisabled: true
|
|
15443
15429
|
})), React__default.createElement(Container$a, {
|
|
15444
|
-
iconWidth: '24px',
|
|
15445
15430
|
invalid: props.invalid ? 1 : 0,
|
|
15446
15431
|
disabled: props.disabled ? 1 : 0,
|
|
15447
15432
|
paddingless: props.paddingless ? 1 : 0
|
|
@@ -15472,6 +15457,13 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15472
15457
|
icon: 'chevron_right',
|
|
15473
15458
|
color: props.invalid ? 'warningRed' : 'grey',
|
|
15474
15459
|
strokeWidth: '3px'
|
|
15460
|
+
})), React__default.createElement(Button$4, {
|
|
15461
|
+
onClick: onClick
|
|
15462
|
+
}, React__default.createElement(Icon, {
|
|
15463
|
+
type: 'feather',
|
|
15464
|
+
icon: 'calendar',
|
|
15465
|
+
color: props.invalid ? 'warningRed' : 'grey',
|
|
15466
|
+
width: '24px'
|
|
15475
15467
|
})));
|
|
15476
15468
|
}()), React__default.createElement(Menu, {
|
|
15477
15469
|
open: open === 'menu',
|
|
@@ -16460,7 +16452,7 @@ var Toast = function Toast(props) {
|
|
|
16460
16452
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
16461
16453
|
};
|
|
16462
16454
|
|
|
16463
|
-
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$
|
|
16455
|
+
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$4;
|
|
16464
16456
|
var Container$e = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
16465
16457
|
var Header$4 = styled__default.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
16466
16458
|
var HeaderImage = styled__default.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -16477,7 +16469,7 @@ var HeaderLine = styled__default.div(_templateObject6$h || (_templateObject6$h =
|
|
|
16477
16469
|
}, function (props) {
|
|
16478
16470
|
return props.size === 'large' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16479
16471
|
});
|
|
16480
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
16472
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
16481
16473
|
|
|
16482
16474
|
var Template1 = function Template1(props) {
|
|
16483
16475
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -16862,7 +16854,7 @@ var Template8$1 = function Template8(props) {
|
|
|
16862
16854
|
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
|
|
16863
16855
|
};
|
|
16864
16856
|
|
|
16865
|
-
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$
|
|
16857
|
+
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$5;
|
|
16866
16858
|
var Container$n = styled__default.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"])));
|
|
16867
16859
|
var Header$a = styled__default.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"])));
|
|
16868
16860
|
var HeaderLine$9 = styled__default.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) {
|
|
@@ -16885,7 +16877,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$i || (_templat
|
|
|
16885
16877
|
});
|
|
16886
16878
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
16887
16879
|
var Main$3 = styled__default.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"])));
|
|
16888
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
16880
|
+
var Circle$3 = styled__default.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
16889
16881
|
|
|
16890
16882
|
var Template10 = function Template10(props) {
|
|
16891
16883
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -17680,7 +17672,7 @@ var useContext$2 = function useContext() {
|
|
|
17680
17672
|
return React__default.useContext(Provider$2);
|
|
17681
17673
|
};
|
|
17682
17674
|
|
|
17683
|
-
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$
|
|
17675
|
+
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;
|
|
17684
17676
|
var aligns = {
|
|
17685
17677
|
self: {
|
|
17686
17678
|
horizontal: {
|
|
@@ -17771,7 +17763,7 @@ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
17771
17763
|
var bordered = _ref5.bordered,
|
|
17772
17764
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17773
17765
|
if (!bordered) return;
|
|
17774
|
-
return styled.css(_templateObject11$
|
|
17766
|
+
return styled.css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17775
17767
|
}, function (_ref6) {
|
|
17776
17768
|
var fontColor = _ref6.fontColor,
|
|
17777
17769
|
theme = _ref6.theme;
|