@draftbit/core 46.8.2-fee87c.2 → 46.8.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 (215) hide show
  1. package/lib/commonjs/components/Justification.js +1 -5
  2. package/lib/commonjs/components/ResizeMode.js +1 -5
  3. package/lib/commonjs/index.js +0 -13
  4. package/lib/module/components/Justification.js +0 -1
  5. package/lib/module/components/ResizeMode.js +0 -1
  6. package/lib/module/index.js +0 -1
  7. package/lib/typescript/src/index.d.ts +0 -1
  8. package/lib/typescript/src/index.d.ts.map +1 -1
  9. package/package.json +4 -6
  10. package/src/index.tsx +0 -2
  11. package/lib/commonjs/components/TabView/TabView.js +0 -100
  12. package/lib/commonjs/components/TabView/TabViewItem.js +0 -25
  13. package/lib/commonjs/components/TabView/index.js +0 -20
  14. package/lib/commonjs/mappings/TabView.js +0 -73
  15. package/lib/commonjs/mappings/TabViewItem.js +0 -35
  16. package/lib/module/components/TabView/TabView.js +0 -90
  17. package/lib/module/components/TabView/TabViewItem.js +0 -20
  18. package/lib/module/components/TabView/index.js +0 -2
  19. package/lib/module/mappings/TabView.js +0 -66
  20. package/lib/module/mappings/TabViewItem.js +0 -28
  21. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -26
  22. package/lib/typescript/src/components/TabView/TabView.d.ts.map +0 -1
  23. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -11
  24. package/lib/typescript/src/components/TabView/TabViewItem.d.ts.map +0 -1
  25. package/lib/typescript/src/components/TabView/index.d.ts +0 -3
  26. package/lib/typescript/src/components/TabView/index.d.ts.map +0 -1
  27. package/lib/typescript/src/mappings/TabView.d.ts +0 -123
  28. package/lib/typescript/src/mappings/TabView.d.ts.map +0 -1
  29. package/lib/typescript/src/mappings/TabViewItem.d.ts +0 -25
  30. package/lib/typescript/src/mappings/TabViewItem.d.ts.map +0 -1
  31. package/src/Provider.js +0 -9
  32. package/src/components/Accordion/AccordionGroup.js +0 -44
  33. package/src/components/Accordion/AccordionItem.js +0 -32
  34. package/src/components/Accordion/index.js +0 -2
  35. package/src/components/ActionSheet/ActionSheet.js +0 -45
  36. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  37. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  38. package/src/components/ActionSheet/index.js +0 -3
  39. package/src/components/AnimatedCircularProgress.js +0 -43
  40. package/src/components/AspectRatio.js +0 -18
  41. package/src/components/AvatarEdit.js +0 -30
  42. package/src/components/Banner.js +0 -109
  43. package/src/components/Button.js +0 -114
  44. package/src/components/Card.js +0 -57
  45. package/src/components/Checkbox/Checkbox.js +0 -62
  46. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  47. package/src/components/Checkbox/CheckboxGroupRow.js +0 -76
  48. package/src/components/Checkbox/CheckboxRow.js +0 -77
  49. package/src/components/Checkbox/context.js +0 -14
  50. package/src/components/Checkbox/index.js +0 -3
  51. package/src/components/CircleImage.js +0 -8
  52. package/src/components/CircularProgress.js +0 -81
  53. package/src/components/Config.js +0 -64
  54. package/src/components/Container.js +0 -43
  55. package/src/components/DatePicker/DatePicker.js +0 -382
  56. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  57. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  58. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  59. package/src/components/DeckSwiper/DeckSwiper.js +0 -65
  60. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
  61. package/src/components/DeckSwiper/index.js +0 -2
  62. package/src/components/DeprecatedButton.js +0 -83
  63. package/src/components/DeprecatedCardWrapper.js +0 -18
  64. package/src/components/DeprecatedFAB.js +0 -114
  65. package/src/components/Divider.js +0 -13
  66. package/src/components/Elevation.js +0 -20
  67. package/src/components/FAB.js +0 -46
  68. package/src/components/FieldSearchBarFull.js +0 -53
  69. package/src/components/FormRow.js +0 -19
  70. package/src/components/IconButton.js +0 -35
  71. package/src/components/Image.js +0 -47
  72. package/src/components/Justification.js +0 -1
  73. package/src/components/Layout.js +0 -50
  74. package/src/components/NumberInput.js +0 -49
  75. package/src/components/Picker/Picker.js +0 -266
  76. package/src/components/Picker/PickerComponent.android.js +0 -69
  77. package/src/components/Picker/PickerComponent.ios.js +0 -79
  78. package/src/components/Picker/PickerComponent.web.js +0 -70
  79. package/src/components/Picker/PickerTypes.js +0 -1
  80. package/src/components/Portal/Portal.js +0 -35
  81. package/src/components/Portal/PortalConsumer.js +0 -27
  82. package/src/components/Portal/PortalHost.js +0 -107
  83. package/src/components/Portal/PortalManager.js +0 -32
  84. package/src/components/Pressable.js +0 -12
  85. package/src/components/ProgressBar.js +0 -118
  86. package/src/components/ProgressCircle.js +0 -13
  87. package/src/components/ProgressIndicator.js +0 -27
  88. package/src/components/RadioButton/RadioButton.js +0 -17
  89. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  90. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  91. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  92. package/src/components/RadioButton/context.js +0 -14
  93. package/src/components/RadioButton/index.js +0 -4
  94. package/src/components/ResizeMode.js +0 -1
  95. package/src/components/Row.js +0 -48
  96. package/src/components/RowBodyIcon.js +0 -8
  97. package/src/components/RowHeadlineImageCaption.js +0 -12
  98. package/src/components/RowHeadlineImageIcon.js +0 -14
  99. package/src/components/SVG.js +0 -13
  100. package/src/components/ScreenContainer.js +0 -35
  101. package/src/components/Slider.js +0 -63
  102. package/src/components/StarRating.js +0 -50
  103. package/src/components/StepIndicator.js +0 -346
  104. package/src/components/Stepper.js +0 -41
  105. package/src/components/Surface.js +0 -32
  106. package/src/components/Swiper/Swiper.js +0 -29
  107. package/src/components/Swiper/SwiperItem.js +0 -9
  108. package/src/components/Swiper/index.js +0 -2
  109. package/src/components/Switch.js +0 -56
  110. package/src/components/TabView/TabView.js +0 -45
  111. package/src/components/TabView/TabView.tsx +0 -129
  112. package/src/components/TabView/TabViewItem.js +0 -11
  113. package/src/components/TabView/TabViewItem.tsx +0 -25
  114. package/src/components/TabView/index.js +0 -2
  115. package/src/components/TabView/index.tsx +0 -2
  116. package/src/components/Text.js +0 -33
  117. package/src/components/TextField.js +0 -428
  118. package/src/components/ToggleButton.js +0 -39
  119. package/src/components/Touchable.js +0 -12
  120. package/src/components/Touchable.web.js +0 -2
  121. package/src/components/Typography.js +0 -36
  122. package/src/components/useAuthState.js +0 -31
  123. package/src/constants.js +0 -10
  124. package/src/hooks.js +0 -12
  125. package/src/index.js +0 -47
  126. package/src/interfaces/Icon.js +0 -8
  127. package/src/mappings/Accordion.js +0 -50
  128. package/src/mappings/AccordionItem.js +0 -17
  129. package/src/mappings/ActionSheet.js +0 -14
  130. package/src/mappings/ActionSheetCancel.js +0 -20
  131. package/src/mappings/ActionSheetItem.js +0 -24
  132. package/src/mappings/ActivityIndicator.js +0 -58
  133. package/src/mappings/AudioPlayer.js +0 -57
  134. package/src/mappings/AvatarEdit.js +0 -38
  135. package/src/mappings/Banner.js +0 -32
  136. package/src/mappings/BlurView.js +0 -42
  137. package/src/mappings/Button.js +0 -116
  138. package/src/mappings/Card.js +0 -52
  139. package/src/mappings/CardBlock.js +0 -123
  140. package/src/mappings/CardContainer.js +0 -104
  141. package/src/mappings/CardContainerRating.js +0 -126
  142. package/src/mappings/CardContainerShortImage.js +0 -120
  143. package/src/mappings/CardInline.js +0 -52
  144. package/src/mappings/Carousel.js +0 -19
  145. package/src/mappings/Checkbox.js +0 -46
  146. package/src/mappings/CheckboxGroup.js +0 -26
  147. package/src/mappings/CheckboxRow.js +0 -61
  148. package/src/mappings/CircleImage.js +0 -25
  149. package/src/mappings/Container.js +0 -30
  150. package/src/mappings/CustomCode.js +0 -8
  151. package/src/mappings/DatePicker.js +0 -182
  152. package/src/mappings/DeckSwiper.js +0 -48
  153. package/src/mappings/DeckSwiperCard.js +0 -16
  154. package/src/mappings/Divider.js +0 -27
  155. package/src/mappings/FAB.js +0 -37
  156. package/src/mappings/Fetch.js +0 -13
  157. package/src/mappings/FieldSearchBarFull.js +0 -50
  158. package/src/mappings/FlashList.js +0 -113
  159. package/src/mappings/FlatList.js +0 -51
  160. package/src/mappings/HeaderLarge.js +0 -29
  161. package/src/mappings/HeaderMedium.js +0 -55
  162. package/src/mappings/HeaderOverline.js +0 -55
  163. package/src/mappings/Icon.js +0 -32
  164. package/src/mappings/IconButton.js +0 -33
  165. package/src/mappings/Image.js +0 -35
  166. package/src/mappings/ImageBackground.js +0 -29
  167. package/src/mappings/KeyboardAvoidingView.js +0 -41
  168. package/src/mappings/KeyboardAwareScrollView.js +0 -50
  169. package/src/mappings/Layout.js +0 -200
  170. package/src/mappings/LinearGradient.js +0 -82
  171. package/src/mappings/MapCallout.js +0 -22
  172. package/src/mappings/MapMarker.js +0 -48
  173. package/src/mappings/MapView.js +0 -142
  174. package/src/mappings/Modal.js +0 -42
  175. package/src/mappings/NumberInput.js +0 -254
  176. package/src/mappings/Picker.js +0 -153
  177. package/src/mappings/ProgressBar.js +0 -101
  178. package/src/mappings/ProgressCircle.js +0 -109
  179. package/src/mappings/ProgressIndicator.js +0 -181
  180. package/src/mappings/RadioButton.js +0 -51
  181. package/src/mappings/RadioButtonGroup.js +0 -17
  182. package/src/mappings/RadioButtonRow.js +0 -42
  183. package/src/mappings/RowBodyIcon.js +0 -75
  184. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  185. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  186. package/src/mappings/SVG.js +0 -20
  187. package/src/mappings/SafeAreaView.js +0 -33
  188. package/src/mappings/ScrollView.js +0 -37
  189. package/src/mappings/Slider.js +0 -60
  190. package/src/mappings/StarRating.js +0 -43
  191. package/src/mappings/Stepper.js +0 -32
  192. package/src/mappings/Surface.js +0 -14
  193. package/src/mappings/Swiper.js +0 -71
  194. package/src/mappings/SwiperItem.js +0 -9
  195. package/src/mappings/Switch.js +0 -81
  196. package/src/mappings/TabView.js +0 -69
  197. package/src/mappings/TabView.ts +0 -79
  198. package/src/mappings/TabViewItem.js +0 -28
  199. package/src/mappings/TabViewItem.ts +0 -35
  200. package/src/mappings/Text.js +0 -251
  201. package/src/mappings/TextArea.js +0 -283
  202. package/src/mappings/TextField.js +0 -400
  203. package/src/mappings/TextInput.js +0 -402
  204. package/src/mappings/ToggleButton.js +0 -50
  205. package/src/mappings/Touchable.js +0 -67
  206. package/src/mappings/Video.js +0 -81
  207. package/src/mappings/View.js +0 -207
  208. package/src/mappings/WebView.js +0 -88
  209. package/src/styles/DarkTheme.js +0 -26
  210. package/src/styles/DefaultTheme.js +0 -111
  211. package/src/styles/fonts.js +0 -62
  212. package/src/styles/overlay.js +0 -60
  213. package/src/styles/shadow.js +0 -51
  214. package/src/theming.js +0 -3
  215. package/src/utilities.js +0 -102
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -339,18 +339,6 @@ Object.defineProperty(exports, "SwitchRow", {
339
339
  return _Switch.SwitchRow;
340
340
  }
341
341
  });
342
- Object.defineProperty(exports, "TabView", {
343
- enumerable: true,
344
- get: function () {
345
- return _TabView.TabView;
346
- }
347
- });
348
- Object.defineProperty(exports, "TabViewItem", {
349
- enumerable: true,
350
- get: function () {
351
- return _TabView.TabViewItem;
352
- }
353
- });
354
342
  Object.defineProperty(exports, "TextField", {
355
343
  enumerable: true,
356
344
  get: function () {
@@ -426,7 +414,6 @@ var _Swiper = require("./components/Swiper");
426
414
  var _Layout = require("./components/Layout");
427
415
  var _index = require("./components/RadioButton/index");
428
416
  var _DeckSwiper = require("./components/DeckSwiper");
429
- var _TabView = require("./components/TabView");
430
417
  var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
431
418
  var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
432
419
  var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -32,7 +32,6 @@ export { Swiper, SwiperItem } from "./components/Swiper";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup } from "./components/RadioButton/index";
34
34
  export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
35
- export { TabView, TabViewItem } from "./components/TabView";
36
35
 
37
36
  /* Deprecated: Fix or Delete! */
38
37
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
@@ -32,7 +32,6 @@ export { Swiper, SwiperItem } from "./components/Swiper";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
34
34
  export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
35
- export { TabView, TabViewItem } from "./components/TabView";
36
35
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
37
36
  export { default as Picker } from "./components/Picker/Picker";
38
37
  export { default as ProgressBar } from "./components/ProgressBar";
@@ -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,O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IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.8.2-fee87c.2+fee87cb",
3
+ "version": "46.8.2",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -40,8 +40,8 @@
40
40
  "homepage": "https://github.com/draftbit/react-native-jigsaw#readme",
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
- "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.8.2-fee87c.2+fee87cb",
43
+ "@draftbit/react-theme-provider": "~2.1.1",
44
+ "@draftbit/types": "~46.8.1",
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",
@@ -55,9 +55,7 @@
55
55
  "lodash.tonumber": "^4.0.3",
56
56
  "react-native-deck-swiper": "^2.0.12",
57
57
  "react-native-modal-datetime-picker": "^13.0.0",
58
- "react-native-pager-view": "5.4.24",
59
58
  "react-native-svg": "12.3.0",
60
- "react-native-tab-view": "^3.4.0",
61
59
  "react-native-typography": "^1.4.1",
62
60
  "react-native-web-swiper": "^2.2.3"
63
61
  },
@@ -94,5 +92,5 @@
94
92
  ]
95
93
  ]
96
94
  },
97
- "gitHead": "fee87cb4bc771a1e2aa0cd8648590bc42903c400"
95
+ "gitHead": "418be230820228bdd01314d7757a218c882ff6a5"
98
96
  }
package/src/index.tsx CHANGED
@@ -53,8 +53,6 @@ export {
53
53
 
54
54
  export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
55
55
 
56
- export { TabView, TabViewItem } from "./components/TabView";
57
-
58
56
  /* Deprecated: Fix or Delete! */
59
57
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
60
58
  export { default as Picker } from "./components/Picker/Picker";
@@ -1,100 +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 _reactNativeTabView = require("react-native-tab-view");
9
- var _TabViewItem = _interopRequireDefault(require("./TabViewItem"));
10
- var _theming = require("../../theming");
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
- 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); }
15
- const TabViewComponent = _ref => {
16
- let {
17
- Icon,
18
- onIndexChanged,
19
- onEndReached,
20
- tabBarPosition,
21
- keyboardDismissMode,
22
- swipeEnabled,
23
- scrollEnabled,
24
- activeColor,
25
- inactiveColor,
26
- pressColor,
27
- indicatorColor,
28
- tabsBackgroundColor,
29
- style,
30
- theme,
31
- children
32
- } = _ref;
33
- const [index, setIndex] = React.useState(0);
34
- const [routes, setRoutes] = React.useState([]);
35
- const [tabScenes, setTabScenes] = React.useState({});
36
-
37
- //Populate routes and scenes based on children
38
- React.useEffect(() => {
39
- const newRoutes = [];
40
- const scenes = {};
41
- React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && child.type === _TabViewItem.default).forEach((item, idx) => {
42
- const child = item;
43
- newRoutes.push({
44
- key: idx.toString(),
45
- title: child.props.title,
46
- icon: child.props.icon,
47
- accessibilityLabel: child.props.accessibilityLabel
48
- });
49
- scenes[idx] = () => child;
50
- });
51
- setRoutes(newRoutes);
52
- setTabScenes(scenes);
53
- }, [children]);
54
- const indexChangeHandler = i => {
55
- setIndex(i);
56
- onIndexChanged === null || onIndexChanged === void 0 ? void 0 : onIndexChanged(i);
57
- if (i === routes.length) {
58
- onEndReached === null || onEndReached === void 0 ? void 0 : onEndReached();
59
- }
60
- };
61
- const renderTabBar = props => {
62
- return /*#__PURE__*/React.createElement(_reactNativeTabView.TabBar, _extends({}, props, {
63
- activeColor: activeColor || theme.colors.primary,
64
- inactiveColor: inactiveColor || theme.colors.divider,
65
- pressColor: pressColor || theme.colors.primary,
66
- scrollEnabled: scrollEnabled,
67
- indicatorStyle: {
68
- backgroundColor: indicatorColor || theme.colors.primary
69
- },
70
- renderIcon: _ref2 => {
71
- let {
72
- route,
73
- color
74
- } = _ref2;
75
- return route !== null && route !== void 0 && route.icon ? /*#__PURE__*/React.createElement(Icon, {
76
- name: route.icon,
77
- color: color,
78
- size: 36
79
- }) : null;
80
- },
81
- style: [{
82
- backgroundColor: tabsBackgroundColor || theme.colors.background
83
- }, style]
84
- }));
85
- };
86
- return /*#__PURE__*/React.createElement(_reactNativeTabView.TabView, {
87
- navigationState: {
88
- index,
89
- routes
90
- },
91
- renderScene: (0, _reactNativeTabView.SceneMap)(tabScenes),
92
- renderTabBar: renderTabBar,
93
- onIndexChange: indexChangeHandler,
94
- tabBarPosition: tabBarPosition,
95
- keyboardDismissMode: keyboardDismissMode,
96
- swipeEnabled: swipeEnabled
97
- });
98
- };
99
- var _default = (0, _theming.withTheme)(TabViewComponent);
100
- exports.default = _default;
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- const TabViewItem = _ref => {
11
- let {
12
- style,
13
- children
14
- } = _ref;
15
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
16
- style: [styles.parentContainer, style]
17
- }, children);
18
- };
19
- const styles = _reactNative.StyleSheet.create({
20
- parentContainer: {
21
- flex: 1
22
- }
23
- });
24
- var _default = TabViewItem;
25
- exports.default = _default;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "TabView", {
7
- enumerable: true,
8
- get: function () {
9
- return _TabView.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "TabViewItem", {
13
- enumerable: true,
14
- get: function () {
15
- return _TabViewItem.default;
16
- }
17
- });
18
- var _TabView = _interopRequireDefault(require("./TabView"));
19
- var _TabViewItem = _interopRequireDefault(require("./TabViewItem"));
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,73 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = {
9
- name: "Tab View",
10
- tag: "TabView",
11
- description: "Tab view container",
12
- category: _types.COMPONENT_TYPES.swiper,
13
- stylesPanelSections: [..._types.BLOCK_STYLES_SECTIONS, _types.StylesPanelSections.Background],
14
- triggers: [_types.Triggers.OnIndexChanged, _types.Triggers.OnEndReached],
15
- props: {
16
- onIndexChanged: (0, _types.createActionProp)({
17
- label: "On index changed",
18
- description: "Action to execute when swipe to new index"
19
- }),
20
- onEndReached: (0, _types.createActionProp)({
21
- label: "On end reached",
22
- description: "Action to execute when end of swiping reached"
23
- }),
24
- tabBarPosition: (0, _types.createTextEnumProp)({
25
- label: "Tab Bar Position",
26
- description: "Position of tab bar",
27
- options: ["top", "bottom"],
28
- defaultValue: "top"
29
- }),
30
- keyboardDismissMode: (0, _types.createTextEnumProp)({
31
- label: "Keyboard Dismiss Mode",
32
- description: "Keyboard Dismiss Mode",
33
- options: ["auto", "on-drag", "none"],
34
- defaultValue: "auto"
35
- }),
36
- swipeEnabled: (0, _types.createStaticBoolProp)({
37
- label: "Swipe Enabled",
38
- description: "Whether swiping is enabled or not",
39
- defaultValue: true
40
- }),
41
- scrollEnabled: (0, _types.createStaticBoolProp)({
42
- label: "Scroll Enabled",
43
- description: "Whether scrolling of tabs is enabled or not",
44
- defaultValue: true
45
- }),
46
- activeColor: (0, _types.createColorProp)({
47
- label: "Active Color",
48
- description: "Color of icon and text of active tab",
49
- defaultValue: "primary"
50
- }),
51
- inactiveColor: (0, _types.createColorProp)({
52
- label: "Inactive Color",
53
- description: "Color of icon and text of inactive tab(s)",
54
- defaultValue: null
55
- }),
56
- pressColor: (0, _types.createColorProp)({
57
- label: "Press Color",
58
- description: "Color of ripple when pressed (android only)",
59
- defaultValue: "primary"
60
- }),
61
- indicatorColor: (0, _types.createColorProp)({
62
- label: "Indicator Color",
63
- description: "Color of indicator",
64
- defaultValue: "primary"
65
- }),
66
- tabsBackgroundColor: (0, _types.createColorProp)({
67
- label: "Tabs Background Color",
68
- description: "Background color of tabs container",
69
- defaultValue: "background"
70
- })
71
- }
72
- };
73
- exports.SEED_DATA = SEED_DATA;
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SEED_DATA = {
9
- name: "Tab View Item",
10
- tag: "TabViewItem",
11
- description: "Single Tab View item to be used in TabView. Each item represents a single tab and its content",
12
- category: _types.COMPONENT_TYPES.swiper,
13
- stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
14
- layout: {
15
- flex: 1
16
- },
17
- props: {
18
- title: (0, _types.createTextProp)({
19
- label: "Title",
20
- description: "Title of tab item",
21
- defaultValue: null,
22
- required: true
23
- }),
24
- icon: (0, _types.createIconProp)({
25
- defaultValue: null,
26
- required: false
27
- }),
28
- accessibilityLabel: (0, _types.createTextProp)({
29
- label: "Accessibility Label",
30
- description: "Accessibility Label",
31
- defaultValue: null
32
- })
33
- }
34
- };
35
- exports.SEED_DATA = SEED_DATA;
@@ -1,90 +0,0 @@
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
- import * as React from "react";
3
- import { TabView, TabBar, SceneMap } from "react-native-tab-view";
4
- import TabViewItem from "./TabViewItem";
5
- import { withTheme } from "../../theming";
6
- const TabViewComponent = _ref => {
7
- let {
8
- Icon,
9
- onIndexChanged,
10
- onEndReached,
11
- tabBarPosition,
12
- keyboardDismissMode,
13
- swipeEnabled,
14
- scrollEnabled,
15
- activeColor,
16
- inactiveColor,
17
- pressColor,
18
- indicatorColor,
19
- tabsBackgroundColor,
20
- style,
21
- theme,
22
- children
23
- } = _ref;
24
- const [index, setIndex] = React.useState(0);
25
- const [routes, setRoutes] = React.useState([]);
26
- const [tabScenes, setTabScenes] = React.useState({});
27
-
28
- //Populate routes and scenes based on children
29
- React.useEffect(() => {
30
- const newRoutes = [];
31
- const scenes = {};
32
- React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && child.type === TabViewItem).forEach((item, idx) => {
33
- const child = item;
34
- newRoutes.push({
35
- key: idx.toString(),
36
- title: child.props.title,
37
- icon: child.props.icon,
38
- accessibilityLabel: child.props.accessibilityLabel
39
- });
40
- scenes[idx] = () => child;
41
- });
42
- setRoutes(newRoutes);
43
- setTabScenes(scenes);
44
- }, [children]);
45
- const indexChangeHandler = i => {
46
- setIndex(i);
47
- onIndexChanged === null || onIndexChanged === void 0 ? void 0 : onIndexChanged(i);
48
- if (i === routes.length) {
49
- onEndReached === null || onEndReached === void 0 ? void 0 : onEndReached();
50
- }
51
- };
52
- const renderTabBar = props => {
53
- return /*#__PURE__*/React.createElement(TabBar, _extends({}, props, {
54
- activeColor: activeColor || theme.colors.primary,
55
- inactiveColor: inactiveColor || theme.colors.divider,
56
- pressColor: pressColor || theme.colors.primary,
57
- scrollEnabled: scrollEnabled,
58
- indicatorStyle: {
59
- backgroundColor: indicatorColor || theme.colors.primary
60
- },
61
- renderIcon: _ref2 => {
62
- let {
63
- route,
64
- color
65
- } = _ref2;
66
- return route !== null && route !== void 0 && route.icon ? /*#__PURE__*/React.createElement(Icon, {
67
- name: route.icon,
68
- color: color,
69
- size: 36
70
- }) : null;
71
- },
72
- style: [{
73
- backgroundColor: tabsBackgroundColor || theme.colors.background
74
- }, style]
75
- }));
76
- };
77
- return /*#__PURE__*/React.createElement(TabView, {
78
- navigationState: {
79
- index,
80
- routes
81
- },
82
- renderScene: SceneMap(tabScenes),
83
- renderTabBar: renderTabBar,
84
- onIndexChange: indexChangeHandler,
85
- tabBarPosition: tabBarPosition,
86
- keyboardDismissMode: keyboardDismissMode,
87
- swipeEnabled: swipeEnabled
88
- });
89
- };
90
- export default withTheme(TabViewComponent);
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import { StyleSheet, View } from "react-native";
3
-
4
- //Props used by parent (TabView) to create tabs
5
-
6
- const TabViewItem = _ref => {
7
- let {
8
- style,
9
- children
10
- } = _ref;
11
- return /*#__PURE__*/React.createElement(View, {
12
- style: [styles.parentContainer, style]
13
- }, children);
14
- };
15
- const styles = StyleSheet.create({
16
- parentContainer: {
17
- flex: 1
18
- }
19
- });
20
- export default TabViewItem;
@@ -1,2 +0,0 @@
1
- export { default as TabView } from "./TabView";
2
- export { default as TabViewItem } from "./TabViewItem";
@@ -1,66 +0,0 @@
1
- import { COMPONENT_TYPES, createTextEnumProp, createColorProp, BLOCK_STYLES_SECTIONS, StylesPanelSections, Triggers, createActionProp, createStaticBoolProp } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Tab View",
4
- tag: "TabView",
5
- description: "Tab view container",
6
- category: COMPONENT_TYPES.swiper,
7
- stylesPanelSections: [...BLOCK_STYLES_SECTIONS, StylesPanelSections.Background],
8
- triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
9
- props: {
10
- onIndexChanged: createActionProp({
11
- label: "On index changed",
12
- description: "Action to execute when swipe to new index"
13
- }),
14
- onEndReached: createActionProp({
15
- label: "On end reached",
16
- description: "Action to execute when end of swiping reached"
17
- }),
18
- tabBarPosition: createTextEnumProp({
19
- label: "Tab Bar Position",
20
- description: "Position of tab bar",
21
- options: ["top", "bottom"],
22
- defaultValue: "top"
23
- }),
24
- keyboardDismissMode: createTextEnumProp({
25
- label: "Keyboard Dismiss Mode",
26
- description: "Keyboard Dismiss Mode",
27
- options: ["auto", "on-drag", "none"],
28
- defaultValue: "auto"
29
- }),
30
- swipeEnabled: createStaticBoolProp({
31
- label: "Swipe Enabled",
32
- description: "Whether swiping is enabled or not",
33
- defaultValue: true
34
- }),
35
- scrollEnabled: createStaticBoolProp({
36
- label: "Scroll Enabled",
37
- description: "Whether scrolling of tabs is enabled or not",
38
- defaultValue: true
39
- }),
40
- activeColor: createColorProp({
41
- label: "Active Color",
42
- description: "Color of icon and text of active tab",
43
- defaultValue: "primary"
44
- }),
45
- inactiveColor: createColorProp({
46
- label: "Inactive Color",
47
- description: "Color of icon and text of inactive tab(s)",
48
- defaultValue: null
49
- }),
50
- pressColor: createColorProp({
51
- label: "Press Color",
52
- description: "Color of ripple when pressed (android only)",
53
- defaultValue: "primary"
54
- }),
55
- indicatorColor: createColorProp({
56
- label: "Indicator Color",
57
- description: "Color of indicator",
58
- defaultValue: "primary"
59
- }),
60
- tabsBackgroundColor: createColorProp({
61
- label: "Tabs Background Color",
62
- description: "Background color of tabs container",
63
- defaultValue: "background"
64
- })
65
- }
66
- };
@@ -1,28 +0,0 @@
1
- import { COMPONENT_TYPES, createTextProp, createIconProp, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Tab View Item",
4
- tag: "TabViewItem",
5
- description: "Single Tab View item to be used in TabView. Each item represents a single tab and its content",
6
- category: COMPONENT_TYPES.swiper,
7
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
- layout: {
9
- flex: 1
10
- },
11
- props: {
12
- title: createTextProp({
13
- label: "Title",
14
- description: "Title of tab item",
15
- defaultValue: null,
16
- required: true
17
- }),
18
- icon: createIconProp({
19
- defaultValue: null,
20
- required: false
21
- }),
22
- accessibilityLabel: createTextProp({
23
- label: "Accessibility Label",
24
- description: "Accessibility Label",
25
- defaultValue: null
26
- })
27
- }
28
- };
@@ -1,26 +0,0 @@
1
- import * as React from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
3
- import type { IconSlot } from "../../interfaces/Icon";
4
- import type { Theme } from "../../styles/DefaultTheme";
5
- declare type TabBarPosition = "top" | "bottom";
6
- declare type KeyboardDismissMode = "none" | "auto" | "on-drag";
7
- declare type TabViewProps = {
8
- onIndexChanged?: (index: number) => void;
9
- onEndReached?: () => void;
10
- tabBarPosition?: TabBarPosition;
11
- keyboardDismissMode?: KeyboardDismissMode;
12
- swipeEnabled?: boolean;
13
- scrollEnabled?: boolean;
14
- activeColor?: string;
15
- inactiveColor?: string;
16
- pressColor?: string;
17
- indicatorColor?: string;
18
- tabsBackgroundColor?: string;
19
- style?: StyleProp<ViewStyle>;
20
- theme: Theme;
21
- } & IconSlot;
22
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<TabViewProps>, "theme"> & {
23
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
24
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<TabViewProps>> & React.FC<React.PropsWithChildren<TabViewProps>>, {}>;
25
- export default _default;
26
- //# sourceMappingURL=TabView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabView.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabView/TabView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAKvD,aAAK,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC;AACvC,aAAK,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvD,aAAK,YAAY,GAAG;IAClB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC;;;;AA4Fb,wBAA2C"}
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
3
- interface TabViewItemProps {
4
- title: string;
5
- icon?: string;
6
- accessibilityLabel?: string;
7
- style?: StyleProp<ViewStyle>;
8
- }
9
- declare const TabViewItem: React.FC<React.PropsWithChildren<TabViewItemProps>>;
10
- export default TabViewItem;
11
- //# sourceMappingURL=TabViewItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabViewItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabView/TabViewItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAGtE,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAKpE,CAAC;AAQF,eAAe,WAAW,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as TabView } from "./TabView";
2
- export { default as TabViewItem } from "./TabViewItem";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}