@mw-kit/mw-ui 1.7.60 → 1.7.62
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/Grid/components/Col/index.d.ts +2 -2
- package/dist/components/Grid/components/Col/interfaces.d.ts +1 -1
- package/dist/components/Grid/components/Col/styles.d.ts +1 -1
- package/dist/components/Grid/components/Grid/index.d.ts +2 -2
- package/dist/components/Grid/components/Grid/interfaces.d.ts +1 -1
- package/dist/components/Grid/components/Grid/styles.d.ts +1 -1
- package/dist/components/Grid/components/Row/index.d.ts +2 -2
- package/dist/components/Grid/components/Row/interfaces.d.ts +1 -1
- package/dist/components/Grid/components/Row/styles.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +3 -3
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +21 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -17877,14 +17877,17 @@ var Col = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLi
|
|
|
17877
17877
|
return css(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
17878
17878
|
});
|
|
17879
17879
|
|
|
17880
|
-
var Col$1 = function
|
|
17880
|
+
var Col$1 = React__default.forwardRef(function (props, ref) {
|
|
17881
17881
|
var context = useContext$2();
|
|
17882
17882
|
|
|
17883
17883
|
var _props = _extends({}, context.cols, props);
|
|
17884
17884
|
|
|
17885
17885
|
var colProps = filterObject(_props, ['ellipsis', 'children']);
|
|
17886
|
-
return React__default.createElement(Col, Object.assign({
|
|
17887
|
-
|
|
17886
|
+
return React__default.createElement(Col, Object.assign({
|
|
17887
|
+
ref: ref
|
|
17888
|
+
}, colProps), _props.ellipsis ? React__default.createElement(EllipsisContainer$1, null, _props.children) : _props.children);
|
|
17889
|
+
});
|
|
17890
|
+
Col$1.displayName = 'Col';
|
|
17888
17891
|
|
|
17889
17892
|
var Provider$3 = React__default.createContext({
|
|
17890
17893
|
rows: {},
|
|
@@ -17907,7 +17910,7 @@ var Grid = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateL
|
|
|
17907
17910
|
return css(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n "])), lightestGrey);
|
|
17908
17911
|
});
|
|
17909
17912
|
|
|
17910
|
-
var Grid$1 = function
|
|
17913
|
+
var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
17911
17914
|
var cols = props.cols || {};
|
|
17912
17915
|
var rows = props.rows || {};
|
|
17913
17916
|
var gridProps = filterObject(props, ['cols', 'rows']);
|
|
@@ -17916,8 +17919,11 @@ var Grid$1 = function Grid$1(props) {
|
|
|
17916
17919
|
rows: rows,
|
|
17917
17920
|
cols: cols
|
|
17918
17921
|
}
|
|
17919
|
-
}, React__default.createElement(Grid, Object.assign({
|
|
17920
|
-
|
|
17922
|
+
}, React__default.createElement(Grid, Object.assign({
|
|
17923
|
+
ref: ref
|
|
17924
|
+
}, gridProps)));
|
|
17925
|
+
});
|
|
17926
|
+
Grid$1.displayName = 'Grid';
|
|
17921
17927
|
|
|
17922
17928
|
var _templateObject$O, _templateObject2$B, _templateObject3$u, _templateObject4$i, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$a;
|
|
17923
17929
|
var horizontalAligns = {
|
|
@@ -17964,7 +17970,7 @@ var Row = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLi
|
|
|
17964
17970
|
}
|
|
17965
17971
|
|
|
17966
17972
|
var config = striped === true ? {
|
|
17967
|
-
even: ['
|
|
17973
|
+
even: ['ghostWhite', 50]
|
|
17968
17974
|
} : striped;
|
|
17969
17975
|
var colors = Object.keys(config).reduce(function (prev, key) {
|
|
17970
17976
|
var _extends2;
|
|
@@ -17985,9 +17991,9 @@ var Row = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLi
|
|
|
17985
17991
|
return c;
|
|
17986
17992
|
}, function (_ref7) {
|
|
17987
17993
|
var borderless = _ref7.borderless,
|
|
17988
|
-
|
|
17994
|
+
platinum = _ref7.theme.colors.platinum;
|
|
17989
17995
|
if (borderless) return;
|
|
17990
|
-
return css(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n :
|
|
17996
|
+
return css(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n :last-child {\n border-bottom: 1px solid transparent;\n }\n "])), platinum);
|
|
17991
17997
|
}, function (_ref8) {
|
|
17992
17998
|
var hover = _ref8.hover,
|
|
17993
17999
|
theme = _ref8.theme;
|
|
@@ -17997,7 +18003,7 @@ var Row = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLi
|
|
|
17997
18003
|
return css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
|
|
17998
18004
|
});
|
|
17999
18005
|
|
|
18000
|
-
var Row$1 = function
|
|
18006
|
+
var Row$1 = React__default.forwardRef(function (props, ref) {
|
|
18001
18007
|
var context = useContext$3();
|
|
18002
18008
|
|
|
18003
18009
|
var cols = _extends({}, props.cols || {}, context.cols);
|
|
@@ -18007,8 +18013,11 @@ var Row$1 = function Row$1(props) {
|
|
|
18007
18013
|
value: {
|
|
18008
18014
|
cols: cols
|
|
18009
18015
|
}
|
|
18010
|
-
}, React__default.createElement(Row, Object.assign({
|
|
18011
|
-
|
|
18016
|
+
}, React__default.createElement(Row, Object.assign({
|
|
18017
|
+
ref: ref
|
|
18018
|
+
}, rowProps)));
|
|
18019
|
+
});
|
|
18020
|
+
Row$1.displayName = 'Row';
|
|
18012
18021
|
|
|
18013
18022
|
var Grid$2 = Object.assign(Grid$1, {
|
|
18014
18023
|
Row: Row$1,
|