@draftbit/core 54.0.4-8202b6.2 → 54.0.4-982952.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 (94) hide show
  1. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +1 -1
  2. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +1 -1
  3. package/lib/commonjs/components/Layout/Spacer.js +1 -1
  4. package/lib/commonjs/components/LottieAnimation.js +1 -1
  5. package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -1
  6. package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
  7. package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -1
  8. package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -1
  9. package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -1
  10. package/lib/commonjs/components/SVG.js +1 -1
  11. package/lib/commonjs/components/SVG.native.js +1 -1
  12. package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
  13. package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
  14. package/lib/commonjs/components/Swiper/Swiper.js +1 -1
  15. package/lib/commonjs/components/Swiper/SwiperItem.js +1 -1
  16. package/lib/commonjs/components/Table/TableCell.js +1 -1
  17. package/lib/commonjs/components/Table/TableRow.js +1 -1
  18. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +1 -1
  19. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +1 -0
  20. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js +3 -2
  21. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js.map +1 -1
  22. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +2 -2
  23. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  24. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  25. package/lib/typescript/src/components/Layout/Spacer.d.ts +2 -2
  26. package/lib/typescript/src/components/Layout/Spacer.js +2 -2
  27. package/lib/typescript/src/components/Layout/Spacer.js.map +1 -1
  28. package/lib/typescript/src/components/LottieAnimation.js +2 -2
  29. package/lib/typescript/src/components/LottieAnimation.js.map +1 -1
  30. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +1 -0
  31. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +4 -2
  32. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  33. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +6 -2
  34. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
  35. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +1 -0
  36. package/lib/typescript/src/components/Picker/PickerCommon.js.map +1 -1
  37. package/lib/typescript/src/components/Picker/PickerInputContainer.js +4 -2
  38. package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +1 -1
  39. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +4 -2
  40. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  41. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +4 -2
  42. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  43. package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +1 -0
  44. package/lib/typescript/src/components/SVG.d.ts +1 -0
  45. package/lib/typescript/src/components/SVG.js +4 -2
  46. package/lib/typescript/src/components/SVG.js.map +1 -1
  47. package/lib/typescript/src/components/SVG.native.d.ts +1 -0
  48. package/lib/typescript/src/components/SVG.native.js +4 -2
  49. package/lib/typescript/src/components/SVG.native.js.map +1 -1
  50. package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +2 -2
  51. package/lib/typescript/src/components/SectionList/SectionHeader.js +1 -1
  52. package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -1
  53. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +1 -0
  54. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +4 -2
  55. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  56. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -2
  57. package/lib/typescript/src/components/Swiper/Swiper.js +2 -2
  58. package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
  59. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +3 -3
  60. package/lib/typescript/src/components/Swiper/SwiperItem.js +2 -2
  61. package/lib/typescript/src/components/Swiper/SwiperItem.js.map +1 -1
  62. package/lib/typescript/src/components/Table/TableCell.d.ts +1 -0
  63. package/lib/typescript/src/components/Table/TableCell.js +4 -2
  64. package/lib/typescript/src/components/Table/TableCell.js.map +1 -1
  65. package/lib/typescript/src/components/Table/TableRow.d.ts +1 -0
  66. package/lib/typescript/src/components/Table/TableRow.js +4 -2
  67. package/lib/typescript/src/components/Table/TableRow.js.map +1 -1
  68. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js +2 -2
  69. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js.map +1 -1
  70. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +1 -0
  71. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  72. package/package.json +3 -3
  73. package/src/components/DeckSwiper/DeckSwiper.tsx +5 -1
  74. package/src/components/DeckSwiper/DeckSwiperCard.tsx +11 -3
  75. package/src/components/Layout/Spacer.tsx +4 -2
  76. package/src/components/LottieAnimation.tsx +1 -2
  77. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +1 -0
  78. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +3 -0
  79. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +9 -2
  80. package/src/components/Picker/PickerCommon.ts +1 -0
  81. package/src/components/Picker/PickerInputContainer.tsx +7 -1
  82. package/src/components/Progress/CircularProgress/CircularProgress.tsx +3 -0
  83. package/src/components/Progress/LinearProgress/LinearProgress.tsx +3 -0
  84. package/src/components/Progress/ProgressCommon.ts +1 -0
  85. package/src/components/SVG.native.tsx +7 -1
  86. package/src/components/SVG.tsx +10 -1
  87. package/src/components/SectionList/SectionHeader.tsx +8 -3
  88. package/src/components/SwipeableItem/SwipeableItem.tsx +4 -0
  89. package/src/components/Swiper/Swiper.tsx +4 -3
  90. package/src/components/Swiper/SwiperItem.tsx +12 -4
  91. package/src/components/Table/TableCell.tsx +4 -0
  92. package/src/components/Table/TableRow.tsx +4 -0
  93. package/src/components/YoutubePlayer/YoutubePlayer.tsx +5 -1
  94. package/src/components/YoutubePlayer/YoutubePlayerProps.ts +1 -0
@@ -3,7 +3,7 @@ import { View, StyleSheet } from "react-native";
3
3
  import { generateBorderStyles, TableStyleContext, } from "./TableCommon";
4
4
  import { withTheme } from "@draftbit/theme";
5
5
  import Pressable from "../Pressable";
6
- const TableRow = ({ borderWidth, borderColor, borderStyle, drawTopBorder = false, drawBottomBorder = true, drawStartBorder = true, drawEndBorder = false, cellVerticalPadding, cellHorizontalPadding, isTableHeader = false, children, onPress, style, theme, }) => {
6
+ const TableRow = ({ borderWidth, borderColor, borderStyle, drawTopBorder = false, drawBottomBorder = true, drawStartBorder = true, drawEndBorder = false, cellVerticalPadding, cellHorizontalPadding, isTableHeader = false, children, onPress, className, style, theme, }) => {
7
7
  const parentContextValue = React.useContext(TableStyleContext);
8
8
  //Create context to use and pass to children based on own props or fall back to parent provided context
9
9
  const contextValue = {
@@ -24,7 +24,9 @@ const TableRow = ({ borderWidth, borderColor, borderStyle, drawTopBorder = false
24
24
  });
25
25
  const ContainerComponent = onPress ? Pressable : View;
26
26
  return (React.createElement(TableStyleContext.Provider, { value: contextValue },
27
- React.createElement(ContainerComponent, { onPress: onPress, style: [
27
+ React.createElement(ContainerComponent, { onPress: onPress,
28
+ // @ts-ignore
29
+ className: className, style: [
28
30
  borderViewStyle,
29
31
  isTableHeader
30
32
  ? { backgroundColor: theme.colors.branding.primary }
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../../../src/components/Table/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAwB,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,GAElB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,cAAc,CAAC;AASrC,MAAM,QAAQ,GAA6C,CAAC,EAC1D,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GAAG,KAAK,EACrB,gBAAgB,GAAG,IAAI,EACvB,eAAe,GAAG,IAAI,EACtB,aAAa,GAAG,KAAK,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,GAAG,KAAK,EACrB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAE/D,uGAAuG;IACvG,MAAM,YAAY,GAAoB;QACpC,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,qBAAqB,EACnB,qBAAqB,IAAI,kBAAkB,CAAC,qBAAqB;QACnE,mBAAmB,EACjB,mBAAmB,IAAI,kBAAkB,CAAC,mBAAmB;KAChE,CAAC;IAEF,MAAM,eAAe,GAAG,oBAAoB,CAAC;QAC3C,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,WAAW,EAAE,YAA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,cAAc,EAAE;QACd,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,QAAQ,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { View } from "react-native";
3
3
  import { extractStyles } from "../../utilities";
4
4
  import YouTube from "react-youtube";
5
- const YoutubePlayer = ({ videoId, playlist, autoplay = false, style, }) => {
5
+ const YoutubePlayer = ({ videoId, playlist, autoplay = false, style, className, }) => {
6
6
  const { viewStyles } = extractStyles(style);
7
7
  const defaultVideoId = "nwMUpDESXrI";
8
8
  const options = {
@@ -14,7 +14,7 @@ const YoutubePlayer = ({ videoId, playlist, autoplay = false, style, }) => {
14
14
  listType: "playlist",
15
15
  },
16
16
  };
17
- return (React.createElement(View, { style: viewStyles },
17
+ return (React.createElement(View, { style: viewStyles, className: className },
18
18
  React.createElement(YouTube, { style: { flex: 1 }, videoId: !videoId && !playlist ? defaultVideoId : videoId, opts: options })));
19
19
  };
20
20
  export default YoutubePlayer;
@@ -1 +1 @@
1
- {"version":3,"file":"YoutubePlayer.js","sourceRoot":"","sources":["../../../../../src/components/YoutubePlayer/YoutubePlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,OAAyB,MAAM,eAAe,CAAC;AAEtD,MAAM,aAAa,GAAiC,CAAC,EACnD,OAAO,EACP,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,KAAK,GACN,EAAE,EAAE;IACH,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,cAAc,GAAG,aAAa,CAAC;IAErC,MAAM,OAAO,GAAyB;QACpC,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,UAA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AAI,IACH,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS;QAEpB,oBAAC,OAAO,IACN,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAClB,OAAO,EAAE,CAAC,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,EACzD,IAAI,EAAE,OAAO,GACb,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -4,4 +4,5 @@ export interface YoutubePlayerProps {
4
4
  playlist?: string;
5
5
  autoplay?: boolean;
6
6
  style?: StyleProp<ViewStyle>;
7
+ className?: string;
7
8
  }