@draftbit/core 48.3.5 → 48.3.6-68430b.2

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.
Files changed (75) hide show
  1. package/lib/commonjs/components/Layout/AspectRatio.js +1 -0
  2. package/lib/commonjs/components/Layout/Center.js +1 -0
  3. package/lib/commonjs/components/Layout/Circle.js +1 -0
  4. package/lib/commonjs/components/Layout/HStack.js +1 -0
  5. package/lib/commonjs/components/Layout/Square.js +1 -0
  6. package/lib/commonjs/components/Layout/VStack.js +1 -0
  7. package/lib/commonjs/components/Layout/ZStack.js +1 -0
  8. package/lib/commonjs/components/Layout/index.js +1 -0
  9. package/lib/commonjs/deprecated-components/Layout.js +1 -0
  10. package/lib/commonjs/index.js +1 -1
  11. package/lib/typescript/src/components/Layout/AspectRatio.d.ts +7 -0
  12. package/lib/typescript/src/components/Layout/AspectRatio.js +7 -0
  13. package/lib/typescript/src/components/Layout/AspectRatio.js.map +1 -0
  14. package/lib/typescript/src/components/Layout/Center.d.ts +4 -0
  15. package/lib/typescript/src/components/Layout/Center.js +13 -0
  16. package/lib/typescript/src/components/Layout/Center.js.map +1 -0
  17. package/lib/typescript/src/components/Layout/Circle.d.ts +7 -0
  18. package/lib/typescript/src/components/Layout/Circle.js +13 -0
  19. package/lib/typescript/src/components/Layout/Circle.js.map +1 -0
  20. package/lib/typescript/src/components/Layout/HStack.d.ts +4 -0
  21. package/lib/typescript/src/components/Layout/HStack.js +12 -0
  22. package/lib/typescript/src/components/Layout/HStack.js.map +1 -0
  23. package/lib/typescript/src/components/Layout/Square.d.ts +7 -0
  24. package/lib/typescript/src/components/Layout/Square.js +21 -0
  25. package/lib/typescript/src/components/Layout/Square.js.map +1 -0
  26. package/lib/typescript/src/components/Layout/VStack.d.ts +4 -0
  27. package/lib/typescript/src/components/Layout/VStack.js +12 -0
  28. package/lib/typescript/src/components/Layout/VStack.js.map +1 -0
  29. package/lib/typescript/src/components/Layout/ZStack.d.ts +7 -0
  30. package/lib/typescript/src/components/Layout/ZStack.js +17 -0
  31. package/lib/typescript/src/components/Layout/ZStack.js.map +1 -0
  32. package/lib/typescript/src/components/Layout/index.d.ts +7 -0
  33. package/lib/typescript/src/components/Layout/index.js +8 -0
  34. package/lib/typescript/src/components/Layout/index.js.map +1 -0
  35. package/lib/typescript/src/{components → deprecated-components}/Layout.d.ts +12 -0
  36. package/lib/typescript/src/{components → deprecated-components}/Layout.js +12 -0
  37. package/lib/typescript/src/deprecated-components/Layout.js.map +1 -0
  38. package/lib/typescript/src/index.d.ts +2 -2
  39. package/lib/typescript/src/index.js +2 -2
  40. package/lib/typescript/src/index.js.map +1 -1
  41. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +3 -3
  43. package/src/components/Layout/AspectRatio.js +7 -0
  44. package/src/components/Layout/AspectRatio.js.map +1 -0
  45. package/src/components/Layout/AspectRatio.tsx +16 -0
  46. package/src/components/Layout/Center.js +13 -0
  47. package/src/components/Layout/Center.js.map +1 -0
  48. package/src/components/Layout/Center.tsx +15 -0
  49. package/src/components/Layout/Circle.js +13 -0
  50. package/src/components/Layout/Circle.js.map +1 -0
  51. package/src/components/Layout/Circle.tsx +19 -0
  52. package/src/components/Layout/HStack.js +12 -0
  53. package/src/components/Layout/HStack.js.map +1 -0
  54. package/src/components/Layout/HStack.tsx +14 -0
  55. package/src/components/Layout/Square.js +21 -0
  56. package/src/components/Layout/Square.js.map +1 -0
  57. package/src/components/Layout/Square.tsx +34 -0
  58. package/src/components/Layout/VStack.js +12 -0
  59. package/src/components/Layout/VStack.js.map +1 -0
  60. package/src/components/Layout/VStack.tsx +14 -0
  61. package/src/components/Layout/ZStack.js +17 -0
  62. package/src/components/Layout/ZStack.js.map +1 -0
  63. package/src/components/Layout/ZStack.tsx +31 -0
  64. package/src/components/Layout/index.js +8 -0
  65. package/src/components/Layout/index.js.map +1 -0
  66. package/src/components/Layout/index.tsx +7 -0
  67. package/src/{components → deprecated-components}/Layout.js +12 -0
  68. package/src/deprecated-components/Layout.js.map +1 -0
  69. package/src/{components → deprecated-components}/Layout.tsx +12 -0
  70. package/src/index.js +2 -2
  71. package/src/index.js.map +1 -1
  72. package/src/index.tsx +17 -2
  73. package/lib/commonjs/components/Layout.js +0 -1
  74. package/lib/typescript/src/components/Layout.js.map +0 -1
  75. package/src/components/Layout.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "48.3.5",
3
+ "version": "48.3.6-68430b.2+68430bb",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "types": "lib/typescript/src/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "48.3.0",
44
+ "@draftbit/types": "^48.3.6-68430b.2+68430bb",
45
45
  "@expo/vector-icons": "^13.0.0",
46
46
  "@material-ui/core": "^4.11.0",
47
47
  "@material-ui/pickers": "^3.2.10",
@@ -100,5 +100,5 @@
100
100
  ],
101
101
  "testEnvironment": "node"
102
102
  },
103
- "gitHead": "e4c4ea744d6100c3f0fd945011d05215d3fb7a99"
103
+ "gitHead": "68430bb8bbb863dfba77e3dba40da8a7b05d5d1b"
104
104
  }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ const AspectRatio = ({ aspectRatio = 1, style, ...rest }) => {
4
+ return React.createElement(View, { ...rest, style: [{ aspectRatio }, style] });
5
+ };
6
+ export default AspectRatio;
7
+ //# sourceMappingURL=AspectRatio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AspectRatio.js","sourceRoot":"","sources":["AspectRatio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAM/C,MAAM,WAAW,GAA+B,CAAC,EAC/C,WAAW,GAAG,CAAC,EACf,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,oBAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,CAAC,GAAI,CAAC;AAC7D,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { View, ViewProps } from "react-native";
3
+
4
+ interface AspectRatioProps extends ViewProps {
5
+ aspectRatio?: number;
6
+ }
7
+
8
+ const AspectRatio: React.FC<AspectRatioProps> = ({
9
+ aspectRatio = 1,
10
+ style,
11
+ ...rest
12
+ }) => {
13
+ return <View {...rest} style={[{ aspectRatio }, style]} />;
14
+ };
15
+
16
+ export default AspectRatio;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ const Center = ({ style, ...rest }) => {
4
+ return React.createElement(View, { ...rest, style: [styles.center, style] });
5
+ };
6
+ const styles = StyleSheet.create({
7
+ center: {
8
+ alignItems: "center",
9
+ justifyContent: "center",
10
+ },
11
+ });
12
+ export default Center;
13
+ //# sourceMappingURL=Center.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Center.js","sourceRoot":"","sources":["Center.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,GAAwB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,oBAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAI,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { View, ViewProps, StyleSheet } from "react-native";
3
+
4
+ const Center: React.FC<ViewProps> = ({ style, ...rest }) => {
5
+ return <View {...rest} style={[styles.center, style]} />;
6
+ };
7
+
8
+ const styles = StyleSheet.create({
9
+ center: {
10
+ alignItems: "center",
11
+ justifyContent: "center",
12
+ },
13
+ });
14
+
15
+ export default Center;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { StyleSheet } from "react-native";
3
+ import Square from "./Square";
4
+ const Circle = ({ size, style, ...rest }) => {
5
+ return React.createElement(Square, { ...rest, size: size, style: [style, styles.circle] });
6
+ };
7
+ const styles = StyleSheet.create({
8
+ circle: {
9
+ borderRadius: 1000, // Border radius maxes out as a circle, use an overly large number to ensure circle in all cases
10
+ },
11
+ });
12
+ export default Circle;
13
+ //# sourceMappingURL=Circle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Circle.js","sourceRoot":"","sources":["Circle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,MAAM,MAAM,UAAU,CAAC;AAM9B,MAAM,MAAM,GAA0B,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjE,OAAO,oBAAC,MAAM,OAAK,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,GAAI,CAAC;AACzE,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,YAAY,EAAE,IAAI,EAAE,gGAAgG;KACrH;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { ViewProps, StyleSheet } from "react-native";
3
+ import Square from "./Square";
4
+
5
+ interface CircleProps extends ViewProps {
6
+ size?: number;
7
+ }
8
+
9
+ const Circle: React.FC<CircleProps> = ({ size, style, ...rest }) => {
10
+ return <Square {...rest} size={size} style={[style, styles.circle]} />;
11
+ };
12
+
13
+ const styles = StyleSheet.create({
14
+ circle: {
15
+ borderRadius: 1000, // Border radius maxes out as a circle, use an overly large number to ensure circle in all cases
16
+ },
17
+ });
18
+
19
+ export default Circle;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ const HStack = ({ style, ...rest }) => {
4
+ return React.createElement(View, { ...rest, style: [styles.hStack, style] });
5
+ };
6
+ const styles = StyleSheet.create({
7
+ hStack: {
8
+ flexDirection: "row",
9
+ },
10
+ });
11
+ export default HStack;
12
+ //# sourceMappingURL=HStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HStack.js","sourceRoot":"","sources":["HStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,GAAwB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,oBAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAI,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { View, ViewProps, StyleSheet } from "react-native";
3
+
4
+ const HStack: React.FC<ViewProps> = ({ style, ...rest }) => {
5
+ return <View {...rest} style={[styles.hStack, style]} />;
6
+ };
7
+
8
+ const styles = StyleSheet.create({
9
+ hStack: {
10
+ flexDirection: "row",
11
+ },
12
+ });
13
+
14
+ export default HStack;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import Center from "./Center";
3
+ const Square = ({ size, style, onLayout, ...rest }) => {
4
+ const [calculatedSize, setCalculatedSize] = React.useState(0);
5
+ return (React.createElement(Center, { onLayout: (e) => {
6
+ const layout = e.nativeEvent.layout;
7
+ setCalculatedSize(Math.max(layout.width, layout.height));
8
+ onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
9
+ }, ...rest, style: [
10
+ style,
11
+ size ? { width: size, height: size } : {},
12
+ calculatedSize
13
+ ? {
14
+ width: calculatedSize,
15
+ height: calculatedSize,
16
+ }
17
+ : {},
18
+ ] }));
19
+ };
20
+ export default Square;
21
+ //# sourceMappingURL=Square.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Square.js","sourceRoot":"","sources":["Square.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,UAAU,CAAC;AAM9B,MAAM,MAAM,GAA0B,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,CACL,oBAAC,MAAM,IACL,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACd,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC;YACpC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;YACzD,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,CAAC;QAChB,CAAC,KACG,IAAI,EACR,KAAK,EAAE;YACL,KAAK;YACL,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;YACzC,cAAc;gBACZ,CAAC,CAAC;oBACE,KAAK,EAAE,cAAc;oBACrB,MAAM,EAAE,cAAc;iBACvB;gBACH,CAAC,CAAC,EAAE;SACP,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import { ViewProps } from "react-native";
3
+ import Center from "./Center";
4
+
5
+ interface SquareProps extends ViewProps {
6
+ size?: number;
7
+ }
8
+
9
+ const Square: React.FC<SquareProps> = ({ size, style, onLayout, ...rest }) => {
10
+ const [calculatedSize, setCalculatedSize] = React.useState(0);
11
+
12
+ return (
13
+ <Center
14
+ onLayout={(e) => {
15
+ const layout = e.nativeEvent.layout;
16
+ setCalculatedSize(Math.max(layout.width, layout.height));
17
+ onLayout?.(e);
18
+ }}
19
+ {...rest}
20
+ style={[
21
+ style,
22
+ size ? { width: size, height: size } : {},
23
+ calculatedSize
24
+ ? {
25
+ width: calculatedSize,
26
+ height: calculatedSize,
27
+ }
28
+ : {},
29
+ ]}
30
+ />
31
+ );
32
+ };
33
+
34
+ export default Square;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ const VStack = ({ style, ...rest }) => {
4
+ return React.createElement(View, { ...rest, style: [styles.vStack, style] });
5
+ };
6
+ const styles = StyleSheet.create({
7
+ vStack: {
8
+ flexDirection: "column",
9
+ },
10
+ });
11
+ export default VStack;
12
+ //# sourceMappingURL=VStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VStack.js","sourceRoot":"","sources":["VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,GAAwB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,oBAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAI,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,aAAa,EAAE,QAAQ;KACxB;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { View, ViewProps, StyleSheet } from "react-native";
3
+
4
+ const VStack: React.FC<ViewProps> = ({ style, ...rest }) => {
5
+ return <View {...rest} style={[styles.vStack, style]} />;
6
+ };
7
+
8
+ const styles = StyleSheet.create({
9
+ vStack: {
10
+ flexDirection: "column",
11
+ },
12
+ });
13
+
14
+ export default VStack;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ const ZStack = ({ reversed, children, ...rest }) => {
4
+ const absoluteChildren = React.useMemo(() => {
5
+ let childrenArray = React.Children.toArray(children);
6
+ if (reversed) {
7
+ childrenArray = childrenArray.reverse();
8
+ }
9
+ return childrenArray.map((child) => {
10
+ const props = child.props || {};
11
+ return React.cloneElement(child, { ...props, style: { position: "absolute", ...props.style } }, props.children);
12
+ });
13
+ }, [children, reversed]);
14
+ return React.createElement(View, { ...rest }, absoluteChildren);
15
+ };
16
+ export default ZStack;
17
+ //# sourceMappingURL=ZStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZStack.js","sourceRoot":"","sources":["ZStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAM/C,MAAM,MAAM,GAA0B,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACxE,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC1C,IAAI,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CACxC,QAAQ,CACe,CAAC;QAE1B,IAAI,QAAQ,EAAE;YACZ,aAAa,GAAG,aAAa,CAAC,OAAO,EAAE,CAAC;SACzC;QAED,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACjC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC,YAAY,CACvB,KAAK,EACL,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,EAC7D,KAAK,CAAC,QAAQ,CACf,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEzB,OAAO,oBAAC,IAAI,OAAK,IAAI,IAAG,gBAAgB,CAAQ,CAAC;AACnD,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { View, ViewProps } from "react-native";
3
+
4
+ interface ZStackProps extends ViewProps {
5
+ reversed?: boolean;
6
+ }
7
+
8
+ const ZStack: React.FC<ZStackProps> = ({ reversed, children, ...rest }) => {
9
+ const absoluteChildren = React.useMemo(() => {
10
+ let childrenArray = React.Children.toArray(
11
+ children
12
+ ) as React.ReactElement[];
13
+
14
+ if (reversed) {
15
+ childrenArray = childrenArray.reverse();
16
+ }
17
+
18
+ return childrenArray.map((child) => {
19
+ const props = child.props || {};
20
+ return React.cloneElement(
21
+ child,
22
+ { ...props, style: { position: "absolute", ...props.style } },
23
+ props.children
24
+ );
25
+ });
26
+ }, [children, reversed]);
27
+
28
+ return <View {...rest}>{absoluteChildren}</View>;
29
+ };
30
+
31
+ export default ZStack;
@@ -0,0 +1,8 @@
1
+ export { default as AspectRatio } from "./AspectRatio";
2
+ export { default as Circle } from "./Circle";
3
+ export { default as Center } from "./Center";
4
+ export { default as HStack } from "./HStack";
5
+ export { default as VStack } from "./VStack";
6
+ export { default as ZStack } from "./ZStack";
7
+ export { default as Square } from "./Square";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { default as AspectRatio } from "./AspectRatio";
2
+ export { default as Circle } from "./Circle";
3
+ export { default as Center } from "./Center";
4
+ export { default as HStack } from "./HStack";
5
+ export { default as VStack } from "./VStack";
6
+ export { default as ZStack } from "./ZStack";
7
+ export { default as Square } from "./Square";
@@ -1,5 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { View } from "react-native";
3
+ /**
4
+ * @deprecated DEPRECATED
5
+ */
3
6
  export function Center({ width = 240, height = 200, children, bgColor, style, ...rest }) {
4
7
  return (React.createElement(View, { style: [
5
8
  {
@@ -12,6 +15,9 @@ export function Center({ width = 240, height = 200, children, bgColor, style, ..
12
15
  style,
13
16
  ], ...rest }, children));
14
17
  }
18
+ /**
19
+ * @deprecated DEPRECATED
20
+ */
15
21
  export function Circle({ size = 50, bgColor, children, style, ...rest }) {
16
22
  const borderRadius = 1000;
17
23
  return (React.createElement(Center, { width: size, height: size, bgColor: bgColor, style: [
@@ -19,6 +25,9 @@ export function Circle({ size = 50, bgColor, children, style, ...rest }) {
19
25
  { backgroundColor: bgColor, borderRadius, overflow: "hidden" },
20
26
  ], ...rest }, children));
21
27
  }
28
+ /**
29
+ * @deprecated DEPRECATED
30
+ */
22
31
  export function Square({ size = 50, bgColor, children, style, ...rest }) {
23
32
  return (React.createElement(Center, { style: style, width: size, height: size, bgColor: bgColor, ...rest }, children));
24
33
  }
@@ -35,6 +44,9 @@ export function Row({ justifyContent, alignItems, children, style, ...rest }) {
35
44
  },
36
45
  ], ...rest }, children));
37
46
  }
47
+ /**
48
+ * @deprecated DEPRECATED
49
+ */
38
50
  export function Spacer({ top = 8, right = 8, bottom = 8, left = 8, children, style, ...rest }) {
39
51
  return (React.createElement(View, { style: [
40
52
  style,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layout.js","sourceRoot":"","sources":["Layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAI1D;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,GAAG,EACZ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,IAAI,EAOR;IACC,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,cAAc,EAAE,QAAQ;gBACxB,UAAU,EAAE,QAAQ;gBACpB,KAAK;gBACL,MAAM;gBACN,eAAe,EAAE,OAAO;aACzB;YACD,KAAK;SACN,KACG,IAAI,IAEP,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,IAAI,GAAG,EAAE,EACT,OAAO,EACP,QAAQ,EACR,KAAK,E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B,aAAa,EAAE,MAAM;aACtB;SACF,KACG,IAAI,IAEP,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,KAAK,CAAC,EACpB,QAAQ,EACR,cAAc,GAAG,YAAY,EAC7B,UAAU,GAAG,YAAY,EACzB,KAAK,EACL,GAAG,IAAI,EAMR;IACC,OAAO;IACL,gFAAgF;IAChF,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,KAAM,IAAI,IAC3D,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC"}
@@ -3,6 +3,9 @@ import { View, StyleProp, ViewStyle } from "react-native";
3
3
  // @ts-ignore
4
4
  import type { ViewStyleProp } from "react-native/Libraries/StyleSheet/StyleSheet";
5
5
 
6
+ /**
7
+ * @deprecated DEPRECATED
8
+ */
6
9
  export function Center({
7
10
  width = 240,
8
11
  height = 200,
@@ -36,6 +39,9 @@ export function Center({
36
39
  );
37
40
  }
38
41
 
42
+ /**
43
+ * @deprecated DEPRECATED
44
+ */
39
45
  export function Circle({
40
46
  size = 50,
41
47
  bgColor,
@@ -65,6 +71,9 @@ export function Circle({
65
71
  );
66
72
  }
67
73
 
74
+ /**
75
+ * @deprecated DEPRECATED
76
+ */
68
77
  export function Square({
69
78
  size = 50,
70
79
  bgColor,
@@ -122,6 +131,9 @@ export function Row({
122
131
  );
123
132
  }
124
133
 
134
+ /**
135
+ * @deprecated DEPRECATED
136
+ */
125
137
  export function Spacer({
126
138
  top = 8,
127
139
  right = 8,
package/src/index.js CHANGED
@@ -21,7 +21,6 @@ export { default as Pressable } from "./components/Pressable";
21
21
  export { default as AccordionGroup } from "./components/AccordionGroup";
22
22
  export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
23
23
  export { Swiper, SwiperItem } from "./components/Swiper";
24
- export { Center, Circle, Square, Spacer } from "./components/Layout";
25
24
  export { RadioButton, RadioButtonGroup, RadioButtonRow, } from "./components/RadioButton/index";
26
25
  export { default as Shadow } from "./components/Shadow";
27
26
  export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
@@ -42,6 +41,7 @@ export { default as CircularProgress } from "./components/Progress/CircularProgr
42
41
  export { default as TextInput } from "./components/TextInput";
43
42
  export { default as VideoPlayer, } from "./components/MediaPlayer/VideoPlayer";
44
43
  export { CodeInput, CodeInputCell, CodeInputText, } from "./components/CodeInput";
44
+ export { AspectRatio, Circle, Center, HStack, VStack, ZStack, Square, } from "./components/Layout";
45
45
  /* Deprecated: Fix or Delete! */
46
46
  export { default as AccordionItem } from "./deprecated-components/AccordionItem";
47
47
  export { default as AvatarEdit } from "./deprecated-components/AvatarEdit";
@@ -54,7 +54,7 @@ export { default as CircleImage } from "./deprecated-components/CircleImage";
54
54
  export { default as Container } from "./deprecated-components/Container";
55
55
  export { default as FAB } from "./deprecated-components/FAB";
56
56
  export { default as FieldSearchBarFull } from "./deprecated-components/FieldSearchBarFull";
57
- export { Row, Stack } from "./components/Layout";
57
+ export { Center as DeprecatedCenter, Circle as DeprecatedCircle, Square as DeprecatedSquare, Spacer, Row, Stack, } from "./deprecated-components/Layout";
58
58
  export { default as ToggleButton } from "./deprecated-components/ToggleButton";
59
59
  export { default as ProgressBar } from "./deprecated-components/ProgressBar";
60
60
  export { default as ProgressCircle } from "./deprecated-components/ProgressCircle";
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAA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AO,EACL,MAAM,IAAI,gBAAgB,EAC1B,MAAM,IAAI,gBAAgB,EAC1B,MAAM,IAAI,gBAAgB,EAC1B,MAAM,EACN,GAAG,EACH,KAAK,GACN,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
package/src/index.tsx CHANGED
@@ -25,7 +25,6 @@ export {
25
25
  ActionSheetCancel,
26
26
  } from "./components/ActionSheet";
27
27
  export { Swiper, SwiperItem } from "./components/Swiper";
28
- export { Center, Circle, Square, Spacer } from "./components/Layout";
29
28
  export {
30
29
  RadioButton,
31
30
  RadioButtonGroup,
@@ -64,6 +63,15 @@ export {
64
63
  CodeInputCell,
65
64
  CodeInputText,
66
65
  } from "./components/CodeInput";
66
+ export {
67
+ AspectRatio,
68
+ Circle,
69
+ Center,
70
+ HStack,
71
+ VStack,
72
+ ZStack,
73
+ Square,
74
+ } from "./components/Layout";
67
75
 
68
76
  /* Deprecated: Fix or Delete! */
69
77
  export { default as AccordionItem } from "./deprecated-components/AccordionItem";
@@ -77,7 +85,14 @@ export { default as CircleImage } from "./deprecated-components/CircleImage";
77
85
  export { default as Container } from "./deprecated-components/Container";
78
86
  export { default as FAB } from "./deprecated-components/FAB";
79
87
  export { default as FieldSearchBarFull } from "./deprecated-components/FieldSearchBarFull";
80
- export { Row, Stack } from "./components/Layout";
88
+ export {
89
+ Center as DeprecatedCenter,
90
+ Circle as DeprecatedCircle,
91
+ Square as DeprecatedSquare,
92
+ Spacer,
93
+ Row,
94
+ Stack,
95
+ } from "./deprecated-components/Layout";
81
96
  export { default as ToggleButton } from "./deprecated-components/ToggleButton";
82
97
  export { default as ProgressBar } from "./deprecated-components/ProgressBar";
83
98
  export { default as ProgressCircle } from "./deprecated-components/ProgressCircle";
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Center=Center;exports.Circle=Circle;exports.Row=Row;exports.Spacer=Spacer;exports.Square=Square;exports.Stack=Stack;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var React=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/Layout.tsx";var _excluded=["width","height","children","bgColor","style"],_excluded2=["size","bgColor","children","style"],_excluded3=["size","bgColor","children","style"],_excluded4=["justifyContent","alignItems","children","style"],_excluded5=["top","right","bottom","left","children","style"],_excluded6=["children","justifyContent","alignItems","style"];function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function Center(_ref){var _ref$width=_ref.width,width=_ref$width===void 0?240:_ref$width,_ref$height=_ref.height,height=_ref$height===void 0?200:_ref$height,children=_ref.children,bgColor=_ref.bgColor,style=_ref.style,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_reactNative.View,Object.assign({style:[{justifyContent:"center",alignItems:"center",width:width,height:height,backgroundColor:bgColor},style]},rest,{children:children}));}function Circle(_ref2){var _ref2$size=_ref2.size,size=_ref2$size===void 0?50:_ref2$size,bgColor=_ref2.bgColor,children=_ref2.children,style=_ref2.style,rest=(0,_objectWithoutProperties2.default)(_ref2,_excluded2);var borderRadius=1000;return(0,_jsxRuntime.jsx)(Center,Object.assign({width:size,height:size,bgColor:bgColor,style:[style,{backgroundColor:bgColor,borderRadius:borderRadius,overflow:"hidden"}]},rest,{children:children}));}function Square(_ref3){var _ref3$size=_ref3.size,size=_ref3$size===void 0?50:_ref3$size,bgColor=_ref3.bgColor,children=_ref3.children,style=_ref3.style,rest=(0,_objectWithoutProperties2.default)(_ref3,_excluded3);return(0,_jsxRuntime.jsx)(Center,Object.assign({style:style,width:size,height:size,bgColor:bgColor},rest,{children:children}));}function Row(_ref4){var justifyContent=_ref4.justifyContent,alignItems=_ref4.alignItems,children=_ref4.children,style=_ref4.style,rest=(0,_objectWithoutProperties2.default)(_ref4,_excluded4);return(0,_jsxRuntime.jsx)(_reactNative.View,Object.assign({style:[style,{alignItems:alignItems,flexDirection:"row",justifyContent:justifyContent}]},rest,{children:children}));}function Spacer(_ref5){var _ref5$top=_ref5.top,top=_ref5$top===void 0?8:_ref5$top,_ref5$right=_ref5.right,right=_ref5$right===void 0?8:_ref5$right,_ref5$bottom=_ref5.bottom,bottom=_ref5$bottom===void 0?8:_ref5$bottom,_ref5$left=_ref5.left,left=_ref5$left===void 0?8:_ref5$left,children=_ref5.children,style=_ref5.style,rest=(0,_objectWithoutProperties2.default)(_ref5,_excluded5);return(0,_jsxRuntime.jsx)(_reactNative.View,Object.assign({style:[style,{paddingRight:right,paddingTop:top,paddingLeft:left,paddingBottom:bottom}]},rest,{children:children}));}function Stack(_ref6){var children=_ref6.children,_ref6$justifyContent=_ref6.justifyContent,justifyContent=_ref6$justifyContent===void 0?"flex-start":_ref6$justifyContent,_ref6$alignItems=_ref6.alignItems,alignItems=_ref6$alignItems===void 0?"flex-start":_ref6$alignItems,style=_ref6.style,rest=(0,_objectWithoutProperties2.default)(_ref6,_excluded6);return(0,_jsxRuntime.jsx)(_reactNative.View,Object.assign({style:[style,{justifyContent:justifyContent,alignItems:alignItems}]},rest,{children:children}));}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Layout.js","sourceRoot":"","sources":["../../../../src/components/Layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAI1D,MAAM,UAAU,MAAM,CAAC,EACrB,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,GAAG,EACZ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,IAAI,EAOR;IACC,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,cAAc,EAAE,QAAQ;gBACxB,UAAU,EAAE,QAAQ;gBACpB,KAAK;gBACL,MAAM;gBACN,eAAe,EAAE,OAAO;aACzB;YACD,KAAK;SACN,KACG,IAAI,IAEP,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,EACrB,IAAI,GAAG,EAAE,EACT,OAAO,EACP,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EAMR;IACC,MAAM,YAAY,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