@uni-design-system/uni-react 0.0.6 → 0.0.7
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.
|
@@ -26,17 +26,8 @@ const react_2 = require("react");
|
|
|
26
26
|
* @see Docs
|
|
27
27
|
*/
|
|
28
28
|
exports.Flex = (0, react_2.forwardRef)((props, ref) => {
|
|
29
|
-
const { direction, align, justify, wrap, basis, grow, shrink } = props, rest = __rest(props, ["direction", "align", "justify", "wrap", "basis", "grow", "shrink"]);
|
|
30
|
-
const styles = {
|
|
31
|
-
display: 'flex',
|
|
32
|
-
flexDirection: direction,
|
|
33
|
-
alignItems: align,
|
|
34
|
-
justifyContent: justify,
|
|
35
|
-
flexWrap: wrap,
|
|
36
|
-
flexBasis: basis,
|
|
37
|
-
flexGrow: grow,
|
|
38
|
-
flexShrink: shrink,
|
|
39
|
-
};
|
|
29
|
+
const { direction, align, justify, wrap, basis, grow, shrink, style } = props, rest = __rest(props, ["direction", "align", "justify", "wrap", "basis", "grow", "shrink", "style"]);
|
|
30
|
+
const styles = Object.assign({ display: 'flex', flexDirection: direction, alignItems: align, justifyContent: justify, flexWrap: wrap, flexBasis: basis, flexGrow: grow, flexShrink: shrink }, style);
|
|
40
31
|
return react_1.default.createElement("div", Object.assign({ ref: ref, style: styles }, rest));
|
|
41
32
|
});
|
|
42
33
|
exports.Flex.displayName = 'Flex';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.component.js","sourceRoot":"","sources":["../../../../src/core/flex/flex.component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAyD;AACzD,iCAAkD;AA2DlD;;;;;;;GAOG;AACU,QAAA,IAAI,GAAG,IAAA,kBAAU,EAA4B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"flex.component.js","sourceRoot":"","sources":["../../../../src/core/flex/flex.component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAyD;AACzD,iCAAkD;AA2DlD;;;;;;;GAOG;AACU,QAAA,IAAI,GAAG,IAAA,kBAAU,EAA4B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAhF,6EAAwE,CAAQ,CAAC;IAEvF,MAAM,MAAM,mBACV,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,SAAS,EACxB,UAAU,EAAE,KAAK,EACjB,cAAc,EAAE,OAAO,EACvB,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,KAAK,EAChB,QAAQ,EAAE,IAAI,EACd,UAAU,EAAE,MAAM,IACf,KAAK,CACT,CAAC;IAEF,OAAO,qDAAK,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,IAAM,IAAI,EAAI,CAAC;AACpD,CAAC,CAAC,CAAC;AAEH,YAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
|
|
@@ -20,17 +20,8 @@ import { forwardRef } from 'react';
|
|
|
20
20
|
* @see Docs
|
|
21
21
|
*/
|
|
22
22
|
export const Flex = forwardRef((props, ref) => {
|
|
23
|
-
const { direction, align, justify, wrap, basis, grow, shrink } = props, rest = __rest(props, ["direction", "align", "justify", "wrap", "basis", "grow", "shrink"]);
|
|
24
|
-
const styles = {
|
|
25
|
-
display: 'flex',
|
|
26
|
-
flexDirection: direction,
|
|
27
|
-
alignItems: align,
|
|
28
|
-
justifyContent: justify,
|
|
29
|
-
flexWrap: wrap,
|
|
30
|
-
flexBasis: basis,
|
|
31
|
-
flexGrow: grow,
|
|
32
|
-
flexShrink: shrink,
|
|
33
|
-
};
|
|
23
|
+
const { direction, align, justify, wrap, basis, grow, shrink, style } = props, rest = __rest(props, ["direction", "align", "justify", "wrap", "basis", "grow", "shrink", "style"]);
|
|
24
|
+
const styles = Object.assign({ display: 'flex', flexDirection: direction, alignItems: align, justifyContent: justify, flexWrap: wrap, flexBasis: basis, flexGrow: grow, flexShrink: shrink }, style);
|
|
34
25
|
return React.createElement("div", Object.assign({ ref: ref, style: styles }, rest));
|
|
35
26
|
});
|
|
36
27
|
Flex.displayName = 'Flex';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.component.js","sourceRoot":"","sources":["../../../../src/core/flex/flex.component.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAiB,UAAU,EAAE,MAAM,OAAO,CAAC;AA2DlD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAA4B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"flex.component.js","sourceRoot":"","sources":["../../../../src/core/flex/flex.component.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAiB,UAAU,EAAE,MAAM,OAAO,CAAC;AA2DlD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAA4B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAhF,6EAAwE,CAAQ,CAAC;IAEvF,MAAM,MAAM,mBACV,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,SAAS,EACxB,UAAU,EAAE,KAAK,EACjB,cAAc,EAAE,OAAO,EACvB,QAAQ,EAAE,IAAI,EACd,SAAS,EAAE,KAAK,EAChB,QAAQ,EAAE,IAAI,EACd,UAAU,EAAE,MAAM,IACf,KAAK,CACT,CAAC;IAEF,OAAO,2CAAK,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,IAAM,IAAI,EAAI,CAAC;AACpD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
|