@draftbit/core 46.10.2-eb07a0.2 → 46.10.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 +6 -23
  2. package/lib/commonjs/components/Row.js +73 -0
  3. package/lib/commonjs/components/RowBodyIcon.js +45 -0
  4. package/lib/commonjs/components/RowHeadlineImageCaption.js +45 -0
  5. package/lib/commonjs/components/RowHeadlineImageIcon.js +51 -0
  6. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +40 -0
  7. package/lib/commonjs/components/{YotubePlayer.js → YoutubePlayer/YoutubePlayer.native.js} +4 -10
  8. package/lib/commonjs/components/YoutubePlayer/YoutubePlayerProps.js +5 -0
  9. package/lib/commonjs/components/YoutubePlayer/index.js +13 -0
  10. package/lib/commonjs/index.js +23 -2
  11. package/lib/commonjs/mappings/YoutubePlayer.js +0 -6
  12. package/lib/commonjs/utilities.js +2 -1
  13. package/lib/module/components/Row.js +63 -0
  14. package/lib/module/components/RowBodyIcon.js +35 -0
  15. package/lib/module/components/RowHeadlineImageCaption.js +35 -0
  16. package/lib/module/components/RowHeadlineImageIcon.js +41 -0
  17. package/lib/module/components/Text.js +4 -50
  18. package/lib/module/components/YoutubePlayer/YoutubePlayer.js +32 -0
  19. package/lib/module/components/YoutubePlayer/YoutubePlayer.native.js +24 -0
  20. package/lib/module/components/YoutubePlayer/YoutubePlayerProps.js +1 -0
  21. package/lib/module/components/YoutubePlayer/index.js +1 -0
  22. package/lib/module/index.js +4 -1
  23. package/lib/module/mappings/YoutubePlayer.js +0 -6
  24. package/lib/typescript/src/components/Row.d.ts +21 -0
  25. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  26. package/lib/typescript/src/components/RowBodyIcon.d.ts +16 -0
  27. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  28. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +16 -0
  29. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  30. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +18 -0
  31. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  32. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts +5 -0
  33. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts.map +1 -0
  34. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts +5 -0
  35. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts.map +1 -0
  36. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +8 -0
  37. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts.map +1 -0
  38. package/lib/typescript/src/components/YoutubePlayer/index.d.ts +2 -0
  39. package/lib/typescript/src/components/YoutubePlayer/index.d.ts.map +1 -0
  40. package/lib/typescript/src/index.d.ts +4 -1
  41. package/lib/typescript/src/index.d.ts.map +1 -1
  42. package/lib/typescript/src/mappings/YoutubePlayer.d.ts +0 -10
  43. package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +1 -1
  44. package/package.json +5 -4
  45. package/src/components/Row.js +48 -0
  46. package/src/components/Row.tsx +108 -0
  47. package/src/components/RowBodyIcon.js +8 -0
  48. package/src/components/RowBodyIcon.tsx +47 -0
  49. package/src/components/RowHeadlineImageCaption.js +12 -0
  50. package/src/components/RowHeadlineImageCaption.tsx +49 -0
  51. package/src/components/RowHeadlineImageIcon.js +14 -0
  52. package/src/components/RowHeadlineImageIcon.tsx +61 -0
  53. package/src/components/YoutubePlayer/YoutubePlayer.js +20 -0
  54. package/src/components/YoutubePlayer/YoutubePlayer.native.js +9 -0
  55. package/src/components/YoutubePlayer/YoutubePlayer.native.tsx +27 -0
  56. package/src/components/YoutubePlayer/YoutubePlayer.tsx +36 -0
  57. package/src/components/YoutubePlayer/YoutubePlayerProps.js +1 -0
  58. package/src/components/YoutubePlayer/YoutubePlayerProps.ts +8 -0
  59. package/src/components/YoutubePlayer/index.js +1 -0
  60. package/src/components/YoutubePlayer/index.ts +1 -0
  61. package/src/index.js +4 -1
  62. package/src/index.tsx +4 -1
  63. package/src/mappings/YoutubePlayer.js +0 -6
  64. package/src/mappings/YoutubePlayer.ts +0 -6
  65. package/lib/commonjs/mappings/NativeBase/Layout.js +0 -98
  66. package/lib/module/components/YotubePlayer.js +0 -30
  67. package/lib/module/mappings/NativeBase/Layout.js +0 -91
  68. package/lib/typescript/src/components/YotubePlayer.d.ts +0 -12
  69. package/lib/typescript/src/components/YotubePlayer.d.ts.map +0 -1
  70. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -97
  71. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
  72. package/src/components/YotubePlayer.js +0 -10
  73. package/src/components/YotubePlayer.tsx +0 -38
  74. package/src/mappings/NativeBase/Layout.js +0 -102
  75. package/src/mappings/NativeBase/Layout.ts +0 -117
@@ -1,56 +1,10 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
5
  import * as React from "react";
2
6
  import { Text as NativeText, I18nManager } from "react-native";
3
7
  import { withTheme } from "../theming";
4
- class Text extends React.Component {
5
- constructor() {
6
- super(...arguments);
7
- this.state = {
8
- nativeProps: {}
9
- };
10
- }
11
- setNativeProps(args) {
12
- this.state.nativeProps = args || {};
13
- }
14
- render() {
15
- const {
16
- style,
17
- ...rest
18
- } = this.props;
19
- const writingDirection = I18nManager.isRTL ? "rtl" : "ltr";
20
- return /*#__PURE__*/React.createElement(NativeText, {
21
- ...rest,
22
- ...this.state.nativeProps,
23
- ref: c => {
24
- this._root = c;
25
- },
26
- style: [{
27
- textAlign: "left",
28
- writingDirection
29
- }, style]
30
- });
31
- }
32
- }
33
- export const BaseLink = _ref => {
34
- let {
35
- style,
36
- theme,
37
- title,
38
- ...props
39
- } = _ref;
40
- return /*#__PURE__*/React.createElement(Text, {
41
- hitSlop: 8,
42
- style: [{
43
- color: theme.colors.primary
44
- }, style],
45
- theme: theme,
46
- ...props
47
- }, title);
48
- };
49
- const Link = withTheme(BaseLink);
50
- export { Link };
51
- export default withTheme(Text); as React from "react";
52
- import { Text as NativeText, I18nManager } from "react-native";
53
- import { withTheme } from "../theming";
54
8
  class Text extends React.Component {
55
9
  constructor() {
56
10
  super(...arguments);
@@ -0,0 +1,32 @@
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 = _ref => {
6
+ let {
7
+ videoId,
8
+ playlist,
9
+ autoplay = false,
10
+ style
11
+ } = _ref;
12
+ const {
13
+ viewStyles
14
+ } = extractStyles(style);
15
+ const defaultVideoId = "nwMUpDESXrI";
16
+ const options = {
17
+ width: viewStyles.width,
18
+ height: viewStyles.height,
19
+ playerVars: {
20
+ autoplay: autoplay ? 1 : 0,
21
+ list: playlist,
22
+ listType: "playlist"
23
+ }
24
+ };
25
+ return /*#__PURE__*/React.createElement(View, {
26
+ style: viewStyles
27
+ }, /*#__PURE__*/React.createElement(YouTube, {
28
+ videoId: !videoId && !playlist ? defaultVideoId : videoId,
29
+ opts: options
30
+ }));
31
+ };
32
+ export default YoutubePlayer;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import YoutubePlayerIFrame from "react-native-youtube-iframe";
3
+ import { extractStyles } from "../../utilities";
4
+ const YoutubePlayer = _ref => {
5
+ let {
6
+ videoId,
7
+ playlist,
8
+ autoplay = false,
9
+ style
10
+ } = _ref;
11
+ const {
12
+ viewStyles
13
+ } = extractStyles(style);
14
+ const defaultVideoId = "nwMUpDESXrI";
15
+ return /*#__PURE__*/React.createElement(YoutubePlayerIFrame, {
16
+ width: viewStyles.width,
17
+ height: viewStyles.height,
18
+ play: autoplay,
19
+ videoId: !videoId && !playlist ? defaultVideoId : videoId,
20
+ playList: playlist,
21
+ webViewStyle: viewStyles
22
+ });
23
+ };
24
+ export default YoutubePlayer;
@@ -0,0 +1 @@
1
+ export { default as YoutubePlayer } from "./YoutubePlayer";
@@ -36,13 +36,16 @@ 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
 
41
41
  /* Deprecated: Fix or Delete! */
42
42
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
43
43
  export { default as Picker } from "./components/Picker/Picker";
44
44
  export { default as ProgressBar } from "./components/ProgressBar";
45
45
  export { default as ProgressCircle } from "./components/ProgressCircle";
46
+ export { default as RowBodyIcon } from "./components/RowBodyIcon";
47
+ export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
48
+ export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
46
49
  export { default as Slider } from "./components/Slider";
47
50
  export { default as Stepper } from "./components/Stepper";
48
51
  export { useAuthState } from "./components/useAuthState";
@@ -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.",
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import { ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from "react-native";
3
+ import theme from "../styles/DefaultTheme";
4
+ declare type Props = {
5
+ titleTypeStyle?: StyleProp<TextStyle>;
6
+ titleColor?: string;
7
+ subtitleTypeStyle?: StyleProp<TextStyle>;
8
+ subtitleColor?: string;
9
+ title?: string;
10
+ subtitle?: string;
11
+ multilineSubtitle?: boolean;
12
+ image?: string | ImageSourcePropType;
13
+ right?: () => React.ReactNode;
14
+ style?: StyleProp<ViewStyle>;
15
+ theme: typeof theme;
16
+ };
17
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
18
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
19
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
20
+ export default _default;
21
+ //# sourceMappingURL=Row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/components/Row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,mBAAmB,EAEnB,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAgFF,wBAA8B"}
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import type { Theme } from "../styles/DefaultTheme";
3
+ import type { IconSlot } from "../interfaces/Icon";
4
+ import { StyleProp, ViewStyle } from "react-native";
5
+ declare type Props = {
6
+ title?: string;
7
+ subtitle?: string;
8
+ icon: string;
9
+ style?: StyleProp<ViewStyle>;
10
+ theme: Theme;
11
+ } & IconSlot;
12
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
13
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
14
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
15
+ export default _default;
16
+ //# sourceMappingURL=RowBodyIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowBodyIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/RowBodyIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC;;;;AA+Bb,wBAAsC"}
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
3
+ import theme from "../styles/DefaultTheme";
4
+ declare type Props = {
5
+ title?: string;
6
+ subtitle?: string;
7
+ caption?: string;
8
+ image: string | ImageSourcePropType;
9
+ style?: StyleProp<ViewStyle>;
10
+ theme: typeof theme;
11
+ };
12
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
13
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
14
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
15
+ export default _default;
16
+ //# sourceMappingURL=RowHeadlineImageCaption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowHeadlineImageCaption.d.ts","sourceRoot":"","sources":["../../../../src/components/RowHeadlineImageCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG/E,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAmCF,wBAAkD"}
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import type { Theme } from "../styles/DefaultTheme";
3
+ import type { IconSlot } from "../interfaces/Icon";
4
+ import { ImageSourcePropType, StyleProp, ViewStyle } from "react-native";
5
+ declare type Props = {
6
+ title?: string;
7
+ image: string | ImageSourcePropType;
8
+ subtitle?: string;
9
+ multilineSubtitle?: boolean;
10
+ icon: string;
11
+ style?: StyleProp<ViewStyle>;
12
+ theme: Theme;
13
+ } & IconSlot;
14
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
15
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
16
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
17
+ export default _default;
18
+ //# sourceMappingURL=RowHeadlineImageIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowHeadlineImageIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/RowHeadlineImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC;;;;AA2Cb,wBAA+C"}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { YoutubePlayerProps } from "./YoutubePlayerProps";
3
+ declare const YoutubePlayer: React.FC<YoutubePlayerProps>;
4
+ export default YoutubePlayer;
5
+ //# sourceMappingURL=YoutubePlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YoutubePlayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/YoutubePlayer/YoutubePlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2B/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { YoutubePlayerProps } from "./YoutubePlayerProps";
3
+ declare const YoutubePlayer: React.FC<YoutubePlayerProps>;
4
+ export default YoutubePlayer;
5
+ //# sourceMappingURL=YoutubePlayer.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YoutubePlayer.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/YoutubePlayer/YoutubePlayer.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmB/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { StyleProp, ViewStyle } from "react-native";
2
+ export interface YoutubePlayerProps {
3
+ videoId?: string;
4
+ playlist?: string;
5
+ autoplay?: boolean;
6
+ style?: StyleProp<ViewStyle>;
7
+ }
8
+ //# sourceMappingURL=YoutubePlayerProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YoutubePlayerProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/YoutubePlayer/YoutubePlayerProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B"}
@@ -0,0 +1,2 @@
1
+ export { default as YoutubePlayer } from "./YoutubePlayer";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/YoutubePlayer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -36,11 +36,14 @@ 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
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
41
41
  export { default as Picker } from "./components/Picker/Picker";
42
42
  export { default as ProgressBar } from "./components/ProgressBar";
43
43
  export { default as ProgressCircle } from "./components/ProgressCircle";
44
+ export { default as RowBodyIcon } from "./components/RowBodyIcon";
45
+ export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
46
+ export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
44
47
  export { default as Slider } from "./components/Slider";
45
48
  export { default as Stepper } from "./components/Stepper";
46
49
  export { useAuthState } from "./components/useAuthState";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,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,uBAAuB,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OA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EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,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-eb07a0.2+eb07a09",
3
+ "version": "46.10.2",
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-eb07a0.2+eb07a09",
44
+ "@draftbit/types": "46.10.2",
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,7 +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-youtube-iframe": "^2.2.2"
67
+ "react-native-youtube-iframe": "^2.2.2",
68
+ "react-youtube": "^10.1.0"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@types/color": "^3.0.1",
@@ -99,5 +100,5 @@
99
100
  ]
100
101
  ]
101
102
  },
102
- "gitHead": "eb07a09ea939c7b77b50db377521e66deded8fdf"
103
+ "gitHead": "b336ce6c6267da9c8655729f223ae9c5bce42fb7"
103
104
  }
@@ -0,0 +1,48 @@
1
+ import * as React from "react";
2
+ import { View, Text, Image, StyleSheet, } from "react-native";
3
+ import { withTheme } from "../theming";
4
+ import Config from "./Config";
5
+ const Row = ({ titleTypeStyle, titleColor, subtitleTypeStyle, subtitleColor, title, subtitle, multilineSubtitle, image, right, style, }) => {
6
+ return (React.createElement(View, { style: [styles.container, { padding: 16 }, style] },
7
+ React.createElement(View, { style: styles.leftContainer },
8
+ image && (React.createElement(Image, { source: typeof image === "string" ? { uri: image } : image, style: {
9
+ marginRight: 12,
10
+ width: subtitle
11
+ ? Config.rowMultiLineImageSize
12
+ : Config.rowSingleLineImageSize,
13
+ height: subtitle
14
+ ? Config.rowMultiLineImageSize
15
+ : Config.rowSingleLineImageSize,
16
+ } })),
17
+ React.createElement(View, { style: styles.textContainer },
18
+ React.createElement(Text, { style: [
19
+ titleTypeStyle,
20
+ {
21
+ color: titleColor,
22
+ },
23
+ ], numberOfLines: 1 }, title),
24
+ subtitle ? (React.createElement(Text, { style: [
25
+ subtitleTypeStyle,
26
+ {
27
+ color: subtitleColor,
28
+ marginTop: 4,
29
+ },
30
+ ], numberOfLines: multilineSubtitle ? undefined : 1 }, subtitle)) : null)),
31
+ right && right()));
32
+ };
33
+ const styles = StyleSheet.create({
34
+ leftContainer: {
35
+ flexDirection: "row",
36
+ flex: 1,
37
+ },
38
+ container: {
39
+ flexDirection: "row",
40
+ justifyContent: "space-between",
41
+ alignItems: "center",
42
+ },
43
+ textContainer: {
44
+ flex: 1,
45
+ justifyContent: "center",
46
+ },
47
+ });
48
+ export default withTheme(Row);
@@ -0,0 +1,108 @@
1
+ import * as React from "react";
2
+ import {
3
+ View,
4
+ Text,
5
+ Image,
6
+ ImageSourcePropType,
7
+ StyleSheet,
8
+ StyleProp,
9
+ TextStyle,
10
+ ViewStyle,
11
+ } from "react-native";
12
+ import { withTheme } from "../theming";
13
+ import Config from "./Config";
14
+ import theme from "../styles/DefaultTheme";
15
+
16
+ type Props = {
17
+ titleTypeStyle?: StyleProp<TextStyle>;
18
+ titleColor?: string;
19
+ subtitleTypeStyle?: StyleProp<TextStyle>;
20
+ subtitleColor?: string;
21
+ title?: string;
22
+ subtitle?: string;
23
+ multilineSubtitle?: boolean;
24
+ image?: string | ImageSourcePropType;
25
+ right?: () => React.ReactNode;
26
+ style?: StyleProp<ViewStyle>;
27
+ theme: typeof theme;
28
+ };
29
+
30
+ const Row: React.FC<React.PropsWithChildren<Props>> = ({
31
+ titleTypeStyle,
32
+ titleColor,
33
+ subtitleTypeStyle,
34
+ subtitleColor,
35
+ title,
36
+ subtitle,
37
+ multilineSubtitle,
38
+ image,
39
+ right,
40
+ style,
41
+ }) => {
42
+ return (
43
+ <View style={[styles.container, { padding: 16 }, style]}>
44
+ <View style={styles.leftContainer}>
45
+ {image && (
46
+ <Image
47
+ source={typeof image === "string" ? { uri: image } : image}
48
+ style={{
49
+ marginRight: 12,
50
+ width: subtitle
51
+ ? Config.rowMultiLineImageSize
52
+ : Config.rowSingleLineImageSize,
53
+ height: subtitle
54
+ ? Config.rowMultiLineImageSize
55
+ : Config.rowSingleLineImageSize,
56
+ }}
57
+ />
58
+ )}
59
+ <View style={styles.textContainer}>
60
+ <Text
61
+ style={[
62
+ titleTypeStyle,
63
+ {
64
+ color: titleColor,
65
+ },
66
+ ]}
67
+ numberOfLines={1}
68
+ >
69
+ {title}
70
+ </Text>
71
+ {subtitle ? (
72
+ <Text
73
+ style={[
74
+ subtitleTypeStyle,
75
+ {
76
+ color: subtitleColor,
77
+ marginTop: 4,
78
+ },
79
+ ]}
80
+ numberOfLines={multilineSubtitle ? undefined : 1}
81
+ >
82
+ {subtitle}
83
+ </Text>
84
+ ) : null}
85
+ </View>
86
+ </View>
87
+ {right && right()}
88
+ </View>
89
+ );
90
+ };
91
+
92
+ const styles = StyleSheet.create({
93
+ leftContainer: {
94
+ flexDirection: "row",
95
+ flex: 1,
96
+ },
97
+ container: {
98
+ flexDirection: "row",
99
+ justifyContent: "space-between",
100
+ alignItems: "center",
101
+ },
102
+ textContainer: {
103
+ flex: 1,
104
+ justifyContent: "center",
105
+ },
106
+ });
107
+
108
+ export default withTheme(Row);
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { withTheme } from "../theming";
3
+ import Row from "./Row";
4
+ import Config from "./Config";
5
+ const RowBodyIcon = ({ Icon, title, subtitle, icon, style, theme: { colors, typography }, }) => {
6
+ return (React.createElement(Row, { titleTypeStyle: typography.body1, titleColor: colors.medium, subtitleTypeStyle: typography.subtitle2, subtitleColor: colors.light, title: title, subtitle: subtitle, right: () => (React.createElement(Icon, { name: icon, size: Config.rowSingleLineIconSize, color: colors.light, style: { marginLeft: 16 } })), style: style }));
7
+ };
8
+ export default withTheme(RowBodyIcon);
@@ -0,0 +1,47 @@
1
+ import * as React from "react";
2
+ import { withTheme } from "../theming";
3
+ import type { Theme } from "../styles/DefaultTheme";
4
+ import type { IconSlot } from "../interfaces/Icon";
5
+
6
+ import Row from "./Row";
7
+ import Config from "./Config";
8
+ import { StyleProp, ViewStyle } from "react-native";
9
+
10
+ type Props = {
11
+ title?: string;
12
+ subtitle?: string;
13
+ icon: string;
14
+ style?: StyleProp<ViewStyle>;
15
+ theme: Theme;
16
+ } & IconSlot;
17
+
18
+ const RowBodyIcon: React.FC<React.PropsWithChildren<Props>> = ({
19
+ Icon,
20
+ title,
21
+ subtitle,
22
+ icon,
23
+ style,
24
+ theme: { colors, typography },
25
+ }) => {
26
+ return (
27
+ <Row
28
+ titleTypeStyle={typography.body1}
29
+ titleColor={colors.medium}
30
+ subtitleTypeStyle={typography.subtitle2}
31
+ subtitleColor={colors.light}
32
+ title={title}
33
+ subtitle={subtitle}
34
+ right={() => (
35
+ <Icon
36
+ name={icon}
37
+ size={Config.rowSingleLineIconSize}
38
+ color={colors.light}
39
+ style={{ marginLeft: 16 }}
40
+ />
41
+ )}
42
+ style={style}
43
+ />
44
+ );
45
+ };
46
+
47
+ export default withTheme(RowBodyIcon);
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { Text } from "react-native";
3
+ import { withTheme } from "../theming";
4
+ import Row from "./Row";
5
+ const RowHeadlineImageCaption = ({ title, subtitle, caption, image, style, theme: { colors, typography }, }) => {
6
+ return (React.createElement(Row, { titleTypeStyle: typography.headline6, titleColor: colors.strong, subtitleTypeStyle: typography.body2, subtitleColor: colors.medium, title: title, subtitle: subtitle, image: image, right: () => (React.createElement(Text, { style: {
7
+ ...typography.caption,
8
+ color: colors.strong,
9
+ marginLeft: 16,
10
+ } }, caption)), style: style }));
11
+ };
12
+ export default withTheme(RowHeadlineImageCaption);