@draftbit/core 46.10.2-f194c1.2 → 46.10.3-0bad1e.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/Checkbox/CheckboxRow.js +23 -6
  2. package/lib/commonjs/components/FAB.js +18 -4
  3. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +40 -0
  4. package/lib/commonjs/components/{YotubePlayer.js → YoutubePlayer/YoutubePlayer.native.js} +4 -10
  5. package/lib/commonjs/components/YoutubePlayer/YoutubePlayerProps.js +5 -0
  6. package/lib/commonjs/components/YoutubePlayer/index.js +13 -0
  7. package/lib/commonjs/constants.js +1 -1
  8. package/lib/commonjs/index.js +2 -23
  9. package/lib/commonjs/mappings/NativeBase/Layout.js +97 -0
  10. package/lib/commonjs/mappings/YoutubePlayer.js +0 -6
  11. package/lib/module/components/YoutubePlayer/YoutubePlayer.js +32 -0
  12. package/lib/module/components/YoutubePlayer/YoutubePlayer.native.js +24 -0
  13. package/lib/module/components/YoutubePlayer/YoutubePlayerProps.js +1 -0
  14. package/lib/module/components/YoutubePlayer/index.js +1 -0
  15. package/lib/module/index.js +1 -4
  16. package/lib/module/mappings/NativeBase/Layout.js +90 -0
  17. package/lib/module/mappings/YoutubePlayer.js +0 -6
  18. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts +5 -0
  19. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts.map +1 -0
  20. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts +5 -0
  21. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts.map +1 -0
  22. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +8 -0
  23. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts.map +1 -0
  24. package/lib/typescript/src/components/YoutubePlayer/index.d.ts +2 -0
  25. package/lib/typescript/src/components/YoutubePlayer/index.d.ts.map +1 -0
  26. package/lib/typescript/src/index.d.ts +1 -4
  27. package/lib/typescript/src/index.d.ts.map +1 -1
  28. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +107 -0
  29. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  30. package/lib/typescript/src/mappings/YoutubePlayer.d.ts +0 -10
  31. package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +1 -1
  32. package/package.json +5 -5
  33. package/src/components/YoutubePlayer/YoutubePlayer.js +20 -0
  34. package/src/components/YoutubePlayer/YoutubePlayer.native.js +9 -0
  35. package/src/components/YoutubePlayer/YoutubePlayer.native.tsx +27 -0
  36. package/src/components/YoutubePlayer/YoutubePlayer.tsx +36 -0
  37. package/src/components/YoutubePlayer/YoutubePlayerProps.js +1 -0
  38. package/src/components/YoutubePlayer/YoutubePlayerProps.ts +8 -0
  39. package/src/components/YoutubePlayer/index.js +1 -0
  40. package/src/components/YoutubePlayer/index.ts +1 -0
  41. package/src/index.js +1 -4
  42. package/src/index.tsx +1 -4
  43. package/src/mappings/NativeBase/Layout.js +101 -0
  44. package/src/mappings/NativeBase/Layout.ts +116 -0
  45. package/src/mappings/YoutubePlayer.js +0 -6
  46. package/src/mappings/YoutubePlayer.ts +0 -6
  47. package/lib/commonjs/components/Row.js +0 -73
  48. package/lib/commonjs/components/RowBodyIcon.js +0 -45
  49. package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -45
  50. package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -51
  51. package/lib/module/components/Row.js +0 -63
  52. package/lib/module/components/RowBodyIcon.js +0 -35
  53. package/lib/module/components/RowHeadlineImageCaption.js +0 -35
  54. package/lib/module/components/RowHeadlineImageIcon.js +0 -41
  55. package/lib/module/components/YotubePlayer.js +0 -30
  56. package/lib/typescript/src/components/Row.d.ts +0 -21
  57. package/lib/typescript/src/components/Row.d.ts.map +0 -1
  58. package/lib/typescript/src/components/RowBodyIcon.d.ts +0 -16
  59. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
  60. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
  61. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
  62. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
  63. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
  64. package/lib/typescript/src/components/YotubePlayer.d.ts +0 -12
  65. package/lib/typescript/src/components/YotubePlayer.d.ts.map +0 -1
  66. package/src/components/Row.js +0 -48
  67. package/src/components/Row.tsx +0 -108
  68. package/src/components/RowBodyIcon.js +0 -8
  69. package/src/components/RowBodyIcon.tsx +0 -47
  70. package/src/components/RowHeadlineImageCaption.js +0 -12
  71. package/src/components/RowHeadlineImageCaption.tsx +0 -49
  72. package/src/components/RowHeadlineImageIcon.js +0 -14
  73. package/src/components/RowHeadlineImageIcon.tsx +0 -61
  74. package/src/components/YotubePlayer.js +0 -10
  75. package/src/components/YotubePlayer.tsx +0 -38
@@ -0,0 +1,107 @@
1
+ export declare const SEED_DATA: ({
2
+ props: {
3
+ ratio: {
4
+ label: string;
5
+ description: string;
6
+ formType: string;
7
+ propType: string;
8
+ group: string;
9
+ defaultValue: null;
10
+ editable: boolean;
11
+ required: boolean;
12
+ step: number;
13
+ };
14
+ direction?: undefined;
15
+ reversed?: undefined;
16
+ isDisabled?: undefined;
17
+ isInvalid?: undefined;
18
+ };
19
+ category: string;
20
+ packageName: string;
21
+ stylesPanelSections: string[];
22
+ name: string;
23
+ tag: string;
24
+ description: string;
25
+ } | {
26
+ category: string;
27
+ packageName: string;
28
+ stylesPanelSections: string[];
29
+ name: string;
30
+ tag: string;
31
+ description: string;
32
+ } | {
33
+ props: {
34
+ direction: {
35
+ group: string;
36
+ label: string;
37
+ description: string;
38
+ editable: boolean;
39
+ required: boolean;
40
+ formType: string;
41
+ propType: string;
42
+ defaultValue: null;
43
+ options: never[];
44
+ };
45
+ reversed: {
46
+ label: string;
47
+ description: string;
48
+ formType: string;
49
+ propType: string;
50
+ defaultValue: boolean;
51
+ editable: boolean;
52
+ required: boolean;
53
+ group: string;
54
+ };
55
+ isDisabled: {
56
+ label: string;
57
+ description: string;
58
+ formType: string;
59
+ propType: string;
60
+ defaultValue: boolean;
61
+ editable: boolean;
62
+ required: boolean;
63
+ group: string;
64
+ };
65
+ isInvalid: {
66
+ label: string;
67
+ description: string;
68
+ formType: string;
69
+ propType: string;
70
+ defaultValue: boolean;
71
+ editable: boolean;
72
+ required: boolean;
73
+ group: string;
74
+ };
75
+ ratio?: undefined;
76
+ };
77
+ category: string;
78
+ packageName: string;
79
+ stylesPanelSections: string[];
80
+ name: string;
81
+ tag: string;
82
+ description: string;
83
+ } | {
84
+ props: {
85
+ reversed: {
86
+ label: string;
87
+ description: string;
88
+ formType: string;
89
+ propType: string;
90
+ defaultValue: boolean;
91
+ editable: boolean;
92
+ required: boolean;
93
+ group: string;
94
+ };
95
+ ratio?: undefined;
96
+ direction?: undefined;
97
+ isDisabled?: undefined;
98
+ isInvalid?: undefined;
99
+ };
100
+ category: string;
101
+ packageName: string;
102
+ stylesPanelSections: string[];
103
+ name: string;
104
+ tag: string;
105
+ description: string;
106
+ })[];
107
+ //# sourceMappingURL=Layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/mappings/NativeBase/Layout.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqGrB,CAAC"}
@@ -12,16 +12,6 @@ export declare const SEED_DATA: {
12
12
  props: {
13
13
  videoId: any;
14
14
  playlist: any;
15
- mute: {
16
- label: string;
17
- description: string;
18
- formType: string;
19
- propType: string;
20
- defaultValue: boolean;
21
- editable: boolean;
22
- required: boolean;
23
- group: string;
24
- };
25
15
  autoplay: {
26
16
  label: string;
27
17
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"YoutubePlayer.d.ts","sourceRoot":"","sources":["../../../../src/mappings/YoutubePlayer.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCrB,CAAC"}
1
+ {"version":3,"file":"YoutubePlayer.d.ts","sourceRoot":"","sources":["../../../../src/mappings/YoutubePlayer.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.10.2-f194c1.2+f194c16",
3
+ "version": "46.10.3-0bad1e.2+0bad1e7",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -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": "^46.10.2-f194c1.2+f194c16",
44
+ "@draftbit/types": "^46.10.3-0bad1e.2+0bad1e7",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.3",
@@ -64,8 +64,8 @@
64
64
  "react-native-tab-view": "^3.4.0",
65
65
  "react-native-typography": "^1.4.1",
66
66
  "react-native-web-swiper": "^2.2.3",
67
- "react-native-web-webview": "^1.0.2",
68
- "react-native-youtube-iframe": "^2.2.2"
67
+ "react-native-youtube-iframe": "^2.2.2",
68
+ "react-youtube": "^10.1.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/color": "^3.0.1",
@@ -100,5 +100,5 @@
100
100
  ]
101
101
  ]
102
102
  },
103
- "gitHead": "f194c16dea96d8bb44c344af38b9bf75f1da664f"
103
+ "gitHead": "0bad1e7880e3d41548dddba76cb7c463466b70bf"
104
104
  }
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import { extractStyles } from "../../utilities";
4
+ import YouTube from "react-youtube";
5
+ const YoutubePlayer = ({ videoId, playlist, autoplay = false, style, }) => {
6
+ const { viewStyles } = extractStyles(style);
7
+ const defaultVideoId = "nwMUpDESXrI";
8
+ const options = {
9
+ width: viewStyles.width,
10
+ height: viewStyles.height,
11
+ playerVars: {
12
+ autoplay: autoplay ? 1 : 0,
13
+ list: playlist,
14
+ listType: "playlist",
15
+ },
16
+ };
17
+ return (React.createElement(View, { style: viewStyles },
18
+ React.createElement(YouTube, { videoId: !videoId && !playlist ? defaultVideoId : videoId, opts: options })));
19
+ };
20
+ export default YoutubePlayer;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import YoutubePlayerIFrame from "react-native-youtube-iframe";
3
+ import { extractStyles } from "../../utilities";
4
+ const YoutubePlayer = ({ videoId, playlist, autoplay = false, style, }) => {
5
+ const { viewStyles } = extractStyles(style);
6
+ const defaultVideoId = "nwMUpDESXrI";
7
+ return (React.createElement(YoutubePlayerIFrame, { width: viewStyles.width, height: viewStyles.height, play: autoplay, videoId: !videoId && !playlist ? defaultVideoId : videoId, playList: playlist, webViewStyle: viewStyles }));
8
+ };
9
+ export default YoutubePlayer;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import YoutubePlayerIFrame from "react-native-youtube-iframe";
3
+ import { extractStyles } from "../../utilities";
4
+ import { YoutubePlayerProps } from "./YoutubePlayerProps";
5
+
6
+ const YoutubePlayer: React.FC<YoutubePlayerProps> = ({
7
+ videoId,
8
+ playlist,
9
+ autoplay = false,
10
+ style,
11
+ }) => {
12
+ const { viewStyles } = extractStyles(style);
13
+ const defaultVideoId = "nwMUpDESXrI";
14
+
15
+ return (
16
+ <YoutubePlayerIFrame
17
+ width={viewStyles.width}
18
+ height={viewStyles.height}
19
+ play={autoplay}
20
+ videoId={!videoId && !playlist ? defaultVideoId : videoId}
21
+ playList={playlist}
22
+ webViewStyle={viewStyles}
23
+ />
24
+ );
25
+ };
26
+
27
+ export default YoutubePlayer;
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import { extractStyles } from "../../utilities";
4
+ import { YoutubePlayerProps } from "./YoutubePlayerProps";
5
+ import YouTube, { YouTubeProps } from "react-youtube";
6
+
7
+ const YoutubePlayer: React.FC<YoutubePlayerProps> = ({
8
+ videoId,
9
+ playlist,
10
+ autoplay = false,
11
+ style,
12
+ }) => {
13
+ const { viewStyles } = extractStyles(style);
14
+ const defaultVideoId = "nwMUpDESXrI";
15
+
16
+ const options: YouTubeProps["opts"] = {
17
+ width: viewStyles.width,
18
+ height: viewStyles.height,
19
+ playerVars: {
20
+ autoplay: autoplay ? 1 : 0,
21
+ list: playlist,
22
+ listType: "playlist",
23
+ },
24
+ };
25
+
26
+ return (
27
+ <View style={viewStyles}>
28
+ <YouTube
29
+ videoId={!videoId && !playlist ? defaultVideoId : videoId}
30
+ opts={options}
31
+ />
32
+ </View>
33
+ );
34
+ };
35
+
36
+ export default YoutubePlayer;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { StyleProp, ViewStyle } from "react-native";
2
+
3
+ export interface YoutubePlayerProps {
4
+ videoId?: string;
5
+ playlist?: string;
6
+ autoplay?: boolean;
7
+ style?: StyleProp<ViewStyle>;
8
+ }
@@ -0,0 +1 @@
1
+ export { default as YoutubePlayer } from "./YoutubePlayer";
@@ -0,0 +1 @@
1
+ export { default as YoutubePlayer } from "./YoutubePlayer";
package/src/index.js CHANGED
@@ -36,15 +36,12 @@ export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
36
36
  export { TabView, TabViewItem } from "./components/TabView";
37
37
  export { default as Markdown } from "./components/Markdown";
38
38
  export { BottomSheet } from "./components/BottomSheet";
39
- export { default as YoutubePlayer } from "./components/YotubePlayer";
39
+ export { YoutubePlayer } from "./components/YoutubePlayer";
40
40
  /* Deprecated: Fix or Delete! */
41
41
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
42
42
  export { default as Picker } from "./components/Picker/Picker";
43
43
  export { default as ProgressBar } from "./components/ProgressBar";
44
44
  export { default as ProgressCircle } from "./components/ProgressCircle";
45
- export { default as RowBodyIcon } from "./components/RowBodyIcon";
46
- export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
47
- export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
48
45
  export { default as Slider } from "./components/Slider";
49
46
  export { default as Stepper } from "./components/Stepper";
50
47
  export { useAuthState } from "./components/useAuthState";
package/src/index.tsx CHANGED
@@ -60,16 +60,13 @@ export { default as Markdown } from "./components/Markdown";
60
60
 
61
61
  export { BottomSheet } from "./components/BottomSheet";
62
62
 
63
- export { default as YoutubePlayer } from "./components/YotubePlayer";
63
+ export { YoutubePlayer } from "./components/YoutubePlayer";
64
64
 
65
65
  /* Deprecated: Fix or Delete! */
66
66
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
67
67
  export { default as Picker } from "./components/Picker/Picker";
68
68
  export { default as ProgressBar } from "./components/ProgressBar";
69
69
  export { default as ProgressCircle } from "./components/ProgressCircle";
70
- export { default as RowBodyIcon } from "./components/RowBodyIcon";
71
- export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
72
- export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
73
70
  export { default as Slider } from "./components/Slider";
74
71
  export { default as Stepper } from "./components/Stepper";
75
72
  export { useAuthState } from "./components/useAuthState";
@@ -0,0 +1,101 @@
1
+ import { COMPONENT_TYPES, createTextEnumProp, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.layout,
4
+ packageName: "native-base",
5
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
6
+ };
7
+ export const SEED_DATA = [
8
+ {
9
+ name: "Aspect Ratio",
10
+ tag: "AspectRatio",
11
+ description: "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
12
+ ...SHARED_SEED_DATA,
13
+ props: {
14
+ ratio: createStaticNumberProp({
15
+ label: "Ratio",
16
+ description: "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
17
+ defaultValue: 1.33,
18
+ }),
19
+ },
20
+ },
21
+ {
22
+ name: "Box",
23
+ tag: "Box",
24
+ description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
25
+ ...SHARED_SEED_DATA,
26
+ },
27
+ {
28
+ name: "Center",
29
+ tag: "Center",
30
+ description: "Center aligns its contents to the center within itself",
31
+ ...SHARED_SEED_DATA,
32
+ },
33
+ {
34
+ name: "Circle",
35
+ tag: "Circle",
36
+ description: "Center aligns its contents to the center within itself with a round border radius",
37
+ ...SHARED_SEED_DATA,
38
+ },
39
+ {
40
+ name: "Container",
41
+ tag: "Container",
42
+ description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
43
+ ...SHARED_SEED_DATA,
44
+ },
45
+ {
46
+ name: "Column",
47
+ tag: "Column",
48
+ description: "Column aligns items vertically",
49
+ ...SHARED_SEED_DATA,
50
+ },
51
+ {
52
+ name: "Row",
53
+ tag: "Row",
54
+ description: "Column aligns items horizontally",
55
+ ...SHARED_SEED_DATA,
56
+ },
57
+ {
58
+ name: "Spacer",
59
+ tag: "Spacer",
60
+ description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
61
+ ...SHARED_SEED_DATA,
62
+ },
63
+ {
64
+ name: "Stack",
65
+ tag: "Stack",
66
+ description: "Stack aligns items vertically or horizontally based on the direction prop",
67
+ ...SHARED_SEED_DATA,
68
+ props: {
69
+ direction: createTextEnumProp({
70
+ label: "Direction",
71
+ description: "The direction of the Stack",
72
+ options: ["row", "column"],
73
+ defaultValue: "column",
74
+ }),
75
+ reversed: createBoolProp({
76
+ label: "Reversed",
77
+ description: "Determines whether to reverse the direction of items",
78
+ }),
79
+ isDisabled: createBoolProp({
80
+ label: "Disabled",
81
+ description: "If true, the Stack will be disabled",
82
+ }),
83
+ isInvalid: createBoolProp({
84
+ label: "Invalid",
85
+ description: "If true, the Stack will be invalid",
86
+ }),
87
+ },
88
+ },
89
+ {
90
+ name: "ZStack",
91
+ tag: "ZStack",
92
+ description: "ZStack aligns items to the z-axis",
93
+ ...SHARED_SEED_DATA,
94
+ props: {
95
+ reversed: createBoolProp({
96
+ label: "Reversed",
97
+ description: "Determines whether to reverse the direction of items",
98
+ }),
99
+ },
100
+ },
101
+ ];
@@ -0,0 +1,116 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createTextEnumProp,
4
+ createBoolProp,
5
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
6
+ createStaticNumberProp,
7
+ } from "@draftbit/types";
8
+
9
+ const SHARED_SEED_DATA = {
10
+ category: COMPONENT_TYPES.layout,
11
+ packageName: "native-base",
12
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
13
+ };
14
+
15
+ export const SEED_DATA = [
16
+ {
17
+ name: "Aspect Ratio",
18
+ tag: "AspectRatio",
19
+ description:
20
+ "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
21
+ ...SHARED_SEED_DATA,
22
+ props: {
23
+ ratio: createStaticNumberProp({
24
+ label: "Ratio",
25
+ description:
26
+ "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
27
+ defaultValue: 1.33,
28
+ }),
29
+ },
30
+ },
31
+ {
32
+ name: "Box",
33
+ tag: "Box",
34
+ description:
35
+ "This is a generic component for low level layout needs. It is similar to a div in HTML",
36
+ ...SHARED_SEED_DATA,
37
+ },
38
+ {
39
+ name: "Center",
40
+ tag: "Center",
41
+ description: "Center aligns its contents to the center within itself",
42
+ ...SHARED_SEED_DATA,
43
+ },
44
+ {
45
+ name: "Circle",
46
+ tag: "Circle",
47
+ description:
48
+ "Center aligns its contents to the center within itself with a round border radius",
49
+ ...SHARED_SEED_DATA,
50
+ },
51
+ {
52
+ name: "Container",
53
+ tag: "Container",
54
+ description:
55
+ "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
56
+ ...SHARED_SEED_DATA,
57
+ },
58
+ {
59
+ name: "Column",
60
+ tag: "Column",
61
+ description: "Column aligns items vertically",
62
+ ...SHARED_SEED_DATA,
63
+ },
64
+ {
65
+ name: "Row",
66
+ tag: "Row",
67
+ description: "Column aligns items horizontally",
68
+ ...SHARED_SEED_DATA,
69
+ },
70
+ {
71
+ name: "Spacer",
72
+ tag: "Spacer",
73
+ description:
74
+ "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
75
+ ...SHARED_SEED_DATA,
76
+ },
77
+ {
78
+ name: "Stack",
79
+ tag: "Stack",
80
+ description:
81
+ "Stack aligns items vertically or horizontally based on the direction prop",
82
+ ...SHARED_SEED_DATA,
83
+ props: {
84
+ direction: createTextEnumProp({
85
+ label: "Direction",
86
+ description: "The direction of the Stack",
87
+ options: ["row", "column"],
88
+ defaultValue: "column",
89
+ }),
90
+ reversed: createBoolProp({
91
+ label: "Reversed",
92
+ description: "Determines whether to reverse the direction of items",
93
+ }),
94
+ isDisabled: createBoolProp({
95
+ label: "Disabled",
96
+ description: "If true, the Stack will be disabled",
97
+ }),
98
+ isInvalid: createBoolProp({
99
+ label: "Invalid",
100
+ description: "If true, the Stack will be invalid",
101
+ }),
102
+ },
103
+ },
104
+ {
105
+ name: "ZStack",
106
+ tag: "ZStack",
107
+ description: "ZStack aligns items to the z-axis",
108
+ ...SHARED_SEED_DATA,
109
+ props: {
110
+ reversed: createBoolProp({
111
+ label: "Reversed",
112
+ description: "Determines whether to reverse the direction of items",
113
+ }),
114
+ },
115
+ },
116
+ ];
@@ -21,12 +21,6 @@ export const SEED_DATA = {
21
21
  description: "Playlist of the Youtube videos.",
22
22
  defaultValue: null,
23
23
  }),
24
- mute: createStaticBoolProp({
25
- label: "Mute Audio",
26
- description: "Mute the audio of the video.",
27
- defaultValue: false,
28
- required: false,
29
- }),
30
24
  autoplay: createStaticBoolProp({
31
25
  label: "Auto Play",
32
26
  description: "Autoplay the video on load.",
@@ -27,12 +27,6 @@ export const SEED_DATA = {
27
27
  description: "Playlist of the Youtube videos.",
28
28
  defaultValue: null,
29
29
  }),
30
- mute: createStaticBoolProp({
31
- label: "Mute Audio",
32
- description: "Mute the audio of the video.",
33
- defaultValue: false,
34
- required: false,
35
- }),
36
30
  autoplay: createStaticBoolProp({
37
31
  label: "Auto Play",
38
32
  description: "Autoplay the video on load.",
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _theming = require("../theming");
10
- var _Config = _interopRequireDefault(require("./Config"));
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- 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; }
14
- const Row = _ref => {
15
- let {
16
- titleTypeStyle,
17
- titleColor,
18
- subtitleTypeStyle,
19
- subtitleColor,
20
- title,
21
- subtitle,
22
- multilineSubtitle,
23
- image,
24
- right,
25
- style
26
- } = _ref;
27
- return /*#__PURE__*/React.createElement(_reactNative.View, {
28
- style: [styles.container, {
29
- padding: 16
30
- }, style]
31
- }, /*#__PURE__*/React.createElement(_reactNative.View, {
32
- style: styles.leftContainer
33
- }, image && /*#__PURE__*/React.createElement(_reactNative.Image, {
34
- source: typeof image === "string" ? {
35
- uri: image
36
- } : image,
37
- style: {
38
- marginRight: 12,
39
- width: subtitle ? _Config.default.rowMultiLineImageSize : _Config.default.rowSingleLineImageSize,
40
- height: subtitle ? _Config.default.rowMultiLineImageSize : _Config.default.rowSingleLineImageSize
41
- }
42
- }), /*#__PURE__*/React.createElement(_reactNative.View, {
43
- style: styles.textContainer
44
- }, /*#__PURE__*/React.createElement(_reactNative.Text, {
45
- style: [titleTypeStyle, {
46
- color: titleColor
47
- }],
48
- numberOfLines: 1
49
- }, title), subtitle ? /*#__PURE__*/React.createElement(_reactNative.Text, {
50
- style: [subtitleTypeStyle, {
51
- color: subtitleColor,
52
- marginTop: 4
53
- }],
54
- numberOfLines: multilineSubtitle ? undefined : 1
55
- }, subtitle) : null)), right && right());
56
- };
57
- const styles = _reactNative.StyleSheet.create({
58
- leftContainer: {
59
- flexDirection: "row",
60
- flex: 1
61
- },
62
- container: {
63
- flexDirection: "row",
64
- justifyContent: "space-between",
65
- alignItems: "center"
66
- },
67
- textContainer: {
68
- flex: 1,
69
- justifyContent: "center"
70
- }
71
- });
72
- var _default = (0, _theming.withTheme)(Row);
73
- exports.default = _default;