@draftbit/core 46.11.5-57a4fa.2 → 46.11.5-84e8d7.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 (116) hide show
  1. package/lib/commonjs/components/AspectRatio.js +2 -16
  2. package/lib/commonjs/components/AspectRatio.js.map +1 -1
  3. package/lib/commonjs/components/Banner.js +4 -23
  4. package/lib/commonjs/components/Banner.js.map +1 -1
  5. package/lib/commonjs/components/BottomSheet/BottomSheet.js +18 -3
  6. package/lib/commonjs/components/BottomSheet/BottomSheet.js.map +1 -1
  7. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +3 -16
  8. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -1
  9. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +5 -22
  10. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  11. package/lib/commonjs/components/Checkbox/CheckboxRow.js +23 -6
  12. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -1
  13. package/lib/commonjs/components/CircleImage.js +2 -16
  14. package/lib/commonjs/components/CircleImage.js.map +1 -1
  15. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
  16. package/lib/commonjs/components/DeprecatedButton.js +3 -19
  17. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  18. package/lib/commonjs/components/DeprecatedFAB.js +3 -20
  19. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  20. package/lib/commonjs/components/Layout.js +19 -39
  21. package/lib/commonjs/components/Layout.js.map +1 -1
  22. package/lib/commonjs/components/Picker/PickerComponent.android.js +4 -21
  23. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
  24. package/lib/commonjs/components/Picker/PickerComponent.ios.js +36 -11
  25. package/lib/commonjs/components/Portal/PortalManager.js +8 -34
  26. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
  27. package/lib/commonjs/components/RadioButton/RadioButton.js +2 -14
  28. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
  29. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +5 -23
  30. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
  31. package/lib/commonjs/components/RadioButton/context.js +1 -1
  32. package/lib/commonjs/components/RadioButton/context.js.map +1 -1
  33. package/lib/commonjs/components/StarRating.js +4 -22
  34. package/lib/commonjs/components/StarRating.js.map +1 -1
  35. package/lib/commonjs/components/Touchable.web.js.map +1 -1
  36. package/lib/commonjs/hooks.js +3 -1
  37. package/lib/commonjs/hooks.js.map +1 -1
  38. package/lib/commonjs/index.js +0 -19
  39. package/lib/commonjs/index.js.map +1 -1
  40. package/lib/commonjs/mappings/BottomSheet.js +38 -9
  41. package/lib/commonjs/mappings/BottomSheet.js.map +1 -1
  42. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
  43. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  44. package/lib/commonjs/mappings/CustomCode.js.map +1 -1
  45. package/lib/commonjs/mappings/FAB.js.map +1 -1
  46. package/lib/commonjs/mappings/MapCallout.js.map +1 -1
  47. package/lib/commonjs/mappings/Modal.js.map +1 -1
  48. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  49. package/lib/commonjs/styles/DarkTheme.js.map +1 -1
  50. package/lib/commonjs/utilities.js +2 -27
  51. package/lib/commonjs/utilities.js.map +1 -1
  52. package/lib/module/components/BottomSheet/BottomSheet.js +18 -3
  53. package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -1
  54. package/lib/module/index.js +0 -1
  55. package/lib/module/index.js.map +1 -1
  56. package/lib/module/mappings/BottomSheet.js +39 -10
  57. package/lib/module/mappings/BottomSheet.js.map +1 -1
  58. package/lib/module/utilities.js +0 -18
  59. package/lib/module/utilities.js.map +1 -1
  60. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +6 -1
  61. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -1
  62. package/lib/typescript/src/index.d.ts +0 -1
  63. package/lib/typescript/src/index.d.ts.map +1 -1
  64. package/lib/typescript/src/mappings/BottomSheet.d.ts +48 -4
  65. package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -1
  66. package/lib/typescript/src/utilities.d.ts +0 -6
  67. package/lib/typescript/src/utilities.d.ts.map +1 -1
  68. package/package.json +3 -4
  69. package/src/components/BottomSheet/BottomSheet.js +17 -2
  70. package/src/components/BottomSheet/BottomSheet.tsx +32 -4
  71. package/src/index.js +0 -1
  72. package/src/index.tsx +0 -6
  73. package/src/mappings/BottomSheet.js +38 -9
  74. package/src/mappings/BottomSheet.ts +44 -8
  75. package/src/utilities.js +0 -41
  76. package/src/utilities.ts +0 -71
  77. package/lib/commonjs/components/SwipeableView/SwipeableView.js +0 -155
  78. package/lib/commonjs/components/SwipeableView/SwipeableView.js.map +0 -1
  79. package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js +0 -13
  80. package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js.map +0 -1
  81. package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -13
  82. package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js.map +0 -1
  83. package/lib/commonjs/components/SwipeableView/index.js +0 -28
  84. package/lib/commonjs/components/SwipeableView/index.js.map +0 -1
  85. package/lib/commonjs/mappings/SwipeableView.js +0 -183
  86. package/lib/commonjs/mappings/SwipeableView.js.map +0 -1
  87. package/lib/module/components/SwipeableView/SwipeableView.js +0 -147
  88. package/lib/module/components/SwipeableView/SwipeableView.js.map +0 -1
  89. package/lib/module/components/SwipeableView/SwipeableViewButton.js +0 -6
  90. package/lib/module/components/SwipeableView/SwipeableViewButton.js.map +0 -1
  91. package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -6
  92. package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js.map +0 -1
  93. package/lib/module/components/SwipeableView/index.js +0 -4
  94. package/lib/module/components/SwipeableView/index.js.map +0 -1
  95. package/lib/module/mappings/SwipeableView.js +0 -175
  96. package/lib/module/mappings/SwipeableView.js.map +0 -1
  97. package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts +0 -29
  98. package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts.map +0 -1
  99. package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts +0 -13
  100. package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts.map +0 -1
  101. package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts +0 -13
  102. package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts.map +0 -1
  103. package/lib/typescript/src/components/SwipeableView/index.d.ts +0 -4
  104. package/lib/typescript/src/components/SwipeableView/index.d.ts.map +0 -1
  105. package/lib/typescript/src/mappings/SwipeableView.d.ts +0 -426
  106. package/lib/typescript/src/mappings/SwipeableView.d.ts.map +0 -1
  107. package/src/components/SwipeableView/SwipeableView.js +0 -117
  108. package/src/components/SwipeableView/SwipeableView.tsx +0 -299
  109. package/src/components/SwipeableView/SwipeableViewButton.js +0 -5
  110. package/src/components/SwipeableView/SwipeableViewButton.tsx +0 -18
  111. package/src/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -5
  112. package/src/components/SwipeableView/SwipeableViewSwipeHandler.tsx +0 -20
  113. package/src/components/SwipeableView/index.js +0 -3
  114. package/src/components/SwipeableView/index.tsx +0 -3
  115. package/src/mappings/SwipeableView.js +0 -181
  116. package/src/mappings/SwipeableView.ts +0 -210
@@ -1,155 +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
- var _Pressable = _interopRequireDefault(require("../Pressable"));
10
- var _utilities = require("../../utilities");
11
- var _reactNativeSwipeListView = require("react-native-swipe-list-view");
12
- var _theming = require("../../theming");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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 SwipeableView = _ref => {
16
- let {
17
- theme,
18
- style,
19
- children,
20
- Icon,
21
- closeOnPress,
22
- leftOpenValue,
23
- rightOpenValue,
24
- leftActivationValue,
25
- rightActivationValue,
26
- swipeActivationPercentage = 80,
27
- stopLeftSwipe,
28
- stopRightSwipe,
29
- friction = 20,
30
- ...rest
31
- } = _ref;
32
- const instanceOfSwipeableViewButtonProps = object => {
33
- return "title" in object && "side" in object && "onPress" in object;
34
- };
35
- const instanceOfSwipeableViewSwipeHandlerProps = object => {
36
- return "title" in object && "side" in object && "onSwipe" in object;
37
- };
38
- const {
39
- viewStyles,
40
- textStyles
41
- } = (0, _utilities.extractStyles)(style);
42
- const {
43
- borderStyles,
44
- marginStyles
45
- } = (0, _utilities.extractBorderAndMarginStyles)(viewStyles);
46
- const parentContainerStyles = _reactNative.StyleSheet.flatten([borderStyles, marginStyles, (0, _utilities.extractFlexItemStyles)(viewStyles), (0, _utilities.extractPositionStyles)(viewStyles), (0, _utilities.extractEffectStyles)(viewStyles), (0, _utilities.extractSizeStyles)(viewStyles)]);
47
-
48
- //Remove styles already consumed from viewStyles
49
- Object.keys(parentContainerStyles).forEach(key => delete viewStyles[key]);
50
- const surfaceContainerStyles = viewStyles;
51
- const [componentWidth, setComponentWidth] = _react.default.useState(null);
52
- const leftButtons = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewButtonProps(child.props) && child.props.side === "left"), [children]);
53
- const rightButtons = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewButtonProps(child.props) && child.props.side === "right"), [children]);
54
- const leftSwipeHandlers = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewSwipeHandlerProps(child.props) && child.props.side === "left"), [children]);
55
- const rightSwipeHandlers = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewSwipeHandlerProps(child.props) && child.props.side === "right"), [children]);
56
- const remainingChildren = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && !instanceOfSwipeableViewSwipeHandlerProps(child.props) && !instanceOfSwipeableViewButtonProps(child.props)), [children]);
57
- if (leftButtons.length > 2 || rightButtons.length > 2) {
58
- throw Error("Cannot have more than 2 buttons per side");
59
- }
60
- if (leftSwipeHandlers.length > 1 || rightSwipeHandlers.length > 1) {
61
- throw Error("Cannot have more than 1 swiper handler per side");
62
- }
63
- if (leftButtons.length && leftSwipeHandlers.length || rightButtons.length && rightSwipeHandlers.length) {
64
- throw Error("Cannot combine swiper handler and buttons on the same side");
65
- }
66
-
67
- //Renders a single button/item. Used for both buttons and swipe handler
68
- const renderBehindItem = (props, index) => /*#__PURE__*/_react.default.createElement(_Pressable.default, {
69
- key: index.toString(),
70
- onPress: props.onPress,
71
- style: [styles.buttonContainer, {
72
- backgroundColor: props.backgroundColor || theme.colors.primary
73
- }]
74
- }, props.icon && /*#__PURE__*/_react.default.createElement(Icon, {
75
- name: props.icon,
76
- size: props.iconSize || 25,
77
- color: props.color || theme.colors.surface
78
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
79
- style: [textStyles, {
80
- color: props.color || theme.colors.surface
81
- }]
82
- }, props.title));
83
- const isLeftSwipeHandler = !!leftSwipeHandlers.length;
84
- const isRightSwipeHandler = !!rightSwipeHandlers.length;
85
- const defaultLeftOpenValue = componentWidth ? componentWidth / 2 : 0;
86
- const defaultRightOpenValue = componentWidth ? -componentWidth / 2 : 0;
87
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
88
- onLayout: event => {
89
- setComponentWidth(event.nativeEvent.layout.width);
90
- },
91
- style: [styles.parentContainer, parentContainerStyles]
92
- }, /*#__PURE__*/_react.default.createElement(_reactNativeSwipeListView.SwipeRow, _extends({
93
- leftOpenValue: isLeftSwipeHandler ? 0 : leftOpenValue || defaultLeftOpenValue //If in swiping mode, don't keep open
94
- ,
95
-
96
- rightOpenValue: isRightSwipeHandler ? 0 : rightOpenValue || defaultRightOpenValue,
97
- leftActivationValue: leftActivationValue || isLeftSwipeHandler ? defaultLeftOpenValue * (swipeActivationPercentage / 100) //When swipe passes activation percentage then it should be considered activated (call onSwipe)
98
- : defaultLeftOpenValue,
99
- rightActivationValue: rightActivationValue || isRightSwipeHandler ? defaultRightOpenValue * (swipeActivationPercentage / 100) : defaultRightOpenValue,
100
- stopLeftSwipe: stopLeftSwipe || defaultLeftOpenValue,
101
- stopRightSwipe: stopRightSwipe || defaultRightOpenValue,
102
- onLeftAction: isLeftSwipeHandler ? () => {
103
- var _leftSwipeHandlers$0$, _leftSwipeHandlers$0$2;
104
- return (_leftSwipeHandlers$0$ = (_leftSwipeHandlers$0$2 = leftSwipeHandlers[0].props).onSwipe) === null || _leftSwipeHandlers$0$ === void 0 ? void 0 : _leftSwipeHandlers$0$.call(_leftSwipeHandlers$0$2);
105
- } : undefined,
106
- onRightAction: isRightSwipeHandler ? () => {
107
- var _rightSwipeHandlers$, _rightSwipeHandlers$2;
108
- return (_rightSwipeHandlers$ = (_rightSwipeHandlers$2 = rightSwipeHandlers[0].props).onSwipe) === null || _rightSwipeHandlers$ === void 0 ? void 0 : _rightSwipeHandlers$.call(_rightSwipeHandlers$2);
109
- } : undefined,
110
- closeOnRowPress: closeOnPress,
111
- friction: friction
112
- }, rest), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
113
- style: styles.behindContainer
114
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
115
- style: styles.behindContainerItem
116
- }, (isLeftSwipeHandler ? leftSwipeHandlers : leftButtons).map((item, index) => renderBehindItem(item.props, index))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
117
- style: styles.behindContainerItem
118
- }, (isRightSwipeHandler ? rightSwipeHandlers : rightButtons).map((item, index) => renderBehindItem(item.props, index)))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
119
- style: [styles.surfaceContainer, {
120
- backgroundColor: theme.colors.background
121
- }, surfaceContainerStyles]
122
- }, remainingChildren)));
123
- };
124
- const styles = _reactNative.StyleSheet.create({
125
- parentContainer: {
126
- overflow: "hidden",
127
- minHeight: 50
128
- },
129
- behindContainer: {
130
- flex: 1,
131
- width: "100%",
132
- height: "100%",
133
- flexDirection: "row"
134
- },
135
- behindContainerItem: {
136
- flex: 1,
137
- flexDirection: "row"
138
- },
139
- buttonContainer: {
140
- flex: 1,
141
- alignItems: "center",
142
- justifyContent: "center"
143
- },
144
- surfaceContainer: {
145
- flexDirection: "row",
146
- width: "100%",
147
- height: "100%",
148
- padding: 10,
149
- alignItems: "center",
150
- overflow: "hidden"
151
- }
152
- });
153
- var _default = (0, _theming.withTheme)(SwipeableView);
154
- exports.default = _default;
155
- //# sourceMappingURL=SwipeableView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SwipeableView","theme","style","children","Icon","closeOnPress","leftOpenValue","rightOpenValue","leftActivationValue","rightActivationValue","swipeActivationPercentage","stopLeftSwipe","stopRightSwipe","friction","rest","instanceOfSwipeableViewButtonProps","object","instanceOfSwipeableViewSwipeHandlerProps","viewStyles","textStyles","extractStyles","borderStyles","marginStyles","extractBorderAndMarginStyles","parentContainerStyles","StyleSheet","flatten","extractFlexItemStyles","extractPositionStyles","extractEffectStyles","extractSizeStyles","Object","keys","forEach","key","surfaceContainerStyles","componentWidth","setComponentWidth","React","useState","leftButtons","useMemo","Children","toArray","filter","child","isValidElement","props","side","rightButtons","leftSwipeHandlers","rightSwipeHandlers","remainingChildren","length","Error","renderBehindItem","index","toString","onPress","styles","buttonContainer","backgroundColor","colors","primary","icon","iconSize","color","surface","title","isLeftSwipeHandler","isRightSwipeHandler","defaultLeftOpenValue","defaultRightOpenValue","event","nativeEvent","layout","width","parentContainer","onSwipe","undefined","behindContainer","behindContainerItem","map","item","surfaceContainer","background","create","overflow","minHeight","flex","height","flexDirection","alignItems","justifyContent","padding","withTheme"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableView.tsx"],"mappings":";;;;;;AAAA;AACA;AAQA;AACA;AAQA;AAGA;AAA0C;AAAA;AAyB1C,MAAMA,aAAoE,GAAG,QAevE;EAAA,IAfwE;IAC5EC,KAAK;IACLC,KAAK;IACLC,QAAQ;IACRC,IAAI;IACJC,YAAY;IACZC,aAAa;IACbC,cAAc;IACdC,mBAAmB;IACnBC,oBAAoB;IACpBC,yBAAyB,GAAG,EAAE;IAC9BC,aAAa;IACbC,cAAc;IACdC,QAAQ,GAAG,EAAE;IACb,GAAGC;EACL,CAAC;EACC,MAAMC,kCAAkC,GACtCC,MAAW,IAC4B;IACvC,OAAO,OAAO,IAAIA,MAAM,IAAI,MAAM,IAAIA,MAAM,IAAI,SAAS,IAAIA,MAAM;EACrE,CAAC;EAED,MAAMC,wCAAwC,GAC5CD,MAAW,IACkC;IAC7C,OAAO,OAAO,IAAIA,MAAM,IAAI,MAAM,IAAIA,MAAM,IAAI,SAAS,IAAIA,MAAM;EACrE,CAAC;EAED,MAAM;IAAEE,UAAU;IAAEC;EAAW,CAAC,GAAG,IAAAC,wBAAa,EAAClB,KAAK,CAAC;EAEvD,MAAM;IAAEmB,YAAY;IAAEC;EAAa,CAAC,GAClC,IAAAC,uCAA4B,EAACL,UAAU,CAAC;EAE1C,MAAMM,qBAAqB,GAAGC,uBAAU,CAACC,OAAO,CAAC,CAC/CL,YAAY,EACZC,YAAY,EACZ,IAAAK,gCAAqB,EAACT,UAAU,CAAC,EACjC,IAAAU,gCAAqB,EAACV,UAAU,CAAC,EACjC,IAAAW,8BAAmB,EAAC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D,gBAAgB,CAAC4B,IAAI,CAACpC,KAAK,EAAES,KAAK,CAAC,CACrD,CACI,CACF,eACP,6BAAC,iBAAI;IACH,KAAK,EAAE,CACLG,MAAM,CAACyB,gBAAgB,EACvB;MACEvB,eAAe,EAAE5D,KAAK,CAAC6D,MAAM,CAACuB;IAChC,CAAC,EACDlD,sBAAsB;EACtB,GAEDiB,iBAAiB,CACb,CACE,CACN;AAEX,CAAC;AAED,MAAMO,MAAM,GAAGlC,uBAAU,CAAC6D,MAAM,CAAC;EAC/BT,eAAe,EAAE;IACfU,QAAQ,EAAE,QAAQ;IAClBC,SAAS,EAAE;EACb,CAAC;EACDR,eAAe,EAAE;IACfS,IAAI,EAAE,CAAC;IACPb,KAAK,EAAE,MAAM;IACbc,MAAM,EAAE,MAAM;IACdC,aAAa,EAAE;EACjB,CAAC;EACDV,mBAAmB,EAAE;IACnBQ,IAAI,EAAE,CAAC;IACPE,aAAa,EAAE;EACjB,CAAC;EACD/B,eAAe,EAAE;IACf6B,IAAI,EAAE,CAAC;IACPG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDT,gBAAgB,EAAE;IAChBO,aAAa,EAAE,KAAK;IACpBf,KAAK,EAAE,MAAM;IACbc,MAAM,EAAE,MAAM;IACdI,OAAO,EAAE,EAAE;IACXF,UAAU,EAAE,QAAQ;IACpBL,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAAC,eAEY,IAAAQ,kBAAS,EAAC/F,aAAa,CAAC;AAAA"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- //Renders nothing, acts as a wrapper be used by SwipeableView
8
- const SwipeableViewButton = () => {
9
- return null;
10
- };
11
- var _default = SwipeableViewButton;
12
- exports.default = _default;
13
- //# sourceMappingURL=SwipeableViewButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SwipeableViewButton"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableViewButton.tsx"],"mappings":";;;;;;AAYA;AACA,MAAMA,mBAAuD,GAAG,MAAM;EACpE,OAAO,IAAI;AACb,CAAC;AAAC,eAEaA,mBAAmB;AAAA"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- //Renders nothing, acts as a wrapper to be used by SwipeableView
8
- const SwipeableViewSwipeHandler = () => {
9
- return null;
10
- };
11
- var _default = SwipeableViewSwipeHandler;
12
- exports.default = _default;
13
- //# sourceMappingURL=SwipeableViewSwipeHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SwipeableViewSwipeHandler"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableViewSwipeHandler.tsx"],"mappings":";;;;;;AAYA;AACA,MAAMA,yBAEL,GAAG,MAAM;EACR,OAAO,IAAI;AACb,CAAC;AAAC,eAEaA,yBAAyB;AAAA"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "SwipeableView", {
7
- enumerable: true,
8
- get: function () {
9
- return _SwipeableView.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "SwipeableViewButton", {
13
- enumerable: true,
14
- get: function () {
15
- return _SwipeableViewButton.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "SwipeableViewSwipeHandler", {
19
- enumerable: true,
20
- get: function () {
21
- return _SwipeableViewSwipeHandler.default;
22
- }
23
- });
24
- var _SwipeableView = _interopRequireDefault(require("./SwipeableView"));
25
- var _SwipeableViewButton = _interopRequireDefault(require("./SwipeableViewButton"));
26
- var _SwipeableViewSwipeHandler = _interopRequireDefault(require("./SwipeableViewSwipeHandler"));
27
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/SwipeableView/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAAmF"}
@@ -1,183 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SHARED_SEED_DATA_PROPS = exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SHARED_SEED_DATA_PROPS = {
9
- title: (0, _types.createTextProp)({
10
- label: "Title",
11
- description: "Title of button/swipeable",
12
- defaultValue: "Swipeable",
13
- required: true,
14
- group: _types.GROUPS.basic
15
- }),
16
- side: (0, _types.createTextEnumProp)({
17
- label: "Side",
18
- description: "Side where button/swipeable is added",
19
- options: ["left", "right"],
20
- defaultValue: "left",
21
- required: true
22
- }),
23
- icon: (0, _types.createIconProp)({
24
- defaultValue: null,
25
- required: false
26
- }),
27
- iconSize: (0, _types.createStaticNumberProp)({
28
- label: "Icon size",
29
- description: "Size of icon",
30
- defaultValue: 25,
31
- required: false
32
- }),
33
- backgroundColor: (0, _types.createColorProp)({
34
- label: "Background color",
35
- description: "Color of button/swipeable background",
36
- defaultValue: "primary"
37
- }),
38
- color: (0, _types.createColorProp)({
39
- label: "Color",
40
- description: "Color of text and icon of button/swipeable",
41
- defaultValue: "surface"
42
- })
43
- };
44
- exports.SHARED_SEED_DATA_PROPS = SHARED_SEED_DATA_PROPS;
45
- const SEED_DATA = [{
46
- name: "Swipeable View",
47
- tag: "SwipeableView",
48
- doc_link: "https://github.com/jemise111/react-native-swipe-list-view/blob/master/docs/SwipeRow.md",
49
- description: "A swipeable view that is able to show hidden buttons and/or handle swipe events",
50
- category: _types.COMPONENT_TYPES.testing /*.view*/,
51
- stylesPanelSections: [..._types.CONTAINER_COMPONENT_STYLES_SECTIONS, _types.StylesPanelSections.Typography],
52
- layout: {
53
- overflow: "hidden",
54
- flexDirection: "row",
55
- alignItems: "center",
56
- padding: 10
57
- },
58
- props: {
59
- closeOnPress: (0, _types.createStaticBoolProp)({
60
- label: "Close on press",
61
- description: "Whether the view should be closed/dismissed when pressed",
62
- defaultValue: true
63
- }),
64
- swipeActivationPercentage: (0, _types.createStaticNumberProp)({
65
- label: "Swipe activation percentage",
66
- description: "Percentage of swipe completion needed to trigger onSwipe. Overriden by 'Left activation value' and 'Right activation value'",
67
- defaultValue: 80,
68
- required: false
69
- }),
70
- disableLeftSwipe: (0, _types.createBoolProp)({
71
- label: "Disable left swipe",
72
- description: "Whether left swipe is enabled or not",
73
- defaultValue: true
74
- }),
75
- disableRightSwipe: (0, _types.createBoolProp)({
76
- label: "Disable right swipe",
77
- description: "Whether right swipe is enabled or not",
78
- defaultValue: true
79
- }),
80
- leftOpenValue: (0, _types.createStaticNumberProp)({
81
- label: "Left open value",
82
- description: "The X translation value that left swipe snaps to (positive value). Defaults to half view width",
83
- group: _types.GROUPS.advanced,
84
- required: false
85
- }),
86
- rightOpenValue: (0, _types.createStaticNumberProp)({
87
- label: "Right open value",
88
- description: "The X translation value that right swipe snaps to (negative value). Defaults to negative half view width",
89
- group: _types.GROUPS.advanced,
90
- required: false
91
- }),
92
- leftActivationValue: (0, _types.createStaticNumberProp)({
93
- label: "Left activation value",
94
- description: "The X translation value that triggers onSwipe when surpassed (positive value). Defaults to 80% of half view width",
95
- group: _types.GROUPS.advanced,
96
- required: false
97
- }),
98
- rightActivationValue: (0, _types.createStaticNumberProp)({
99
- label: "Right activation value",
100
- description: "The X translation value that triggers onSwipe when surpassed (negative value). Defaults to negative 80% of half view width",
101
- group: _types.GROUPS.advanced,
102
- required: false
103
- }),
104
- stopLeftSwipe: (0, _types.createStaticNumberProp)({
105
- label: "Stop left swipe",
106
- description: "The maximum X translation value that is swipable from left (positive value). Defaults to half view width",
107
- group: _types.GROUPS.advanced,
108
- required: false
109
- }),
110
- stopRightSwipe: (0, _types.createStaticNumberProp)({
111
- label: "Stop right swipe",
112
- description: "The maximum X translation value that is swipable from right (negative value). Defaults to negative half view width",
113
- group: _types.GROUPS.advanced,
114
- required: false
115
- }),
116
- directionalDistanceChangeThreshold: (0, _types.createStaticNumberProp)({
117
- label: "Change threshold",
118
- description: "Change the sensitivity of the swipe on the view",
119
- group: _types.GROUPS.advanced,
120
- required: false
121
- }),
122
- friction: (0, _types.createStaticNumberProp)({
123
- label: "Friction",
124
- description: "Controls the 'bounciness' of the swipe animation",
125
- defaultValue: 20,
126
- group: _types.GROUPS.advanced,
127
- required: false
128
- }),
129
- tension: (0, _types.createStaticNumberProp)({
130
- label: "Change threshold",
131
- description: "Controls the tension/speed of the swipe animation",
132
- group: _types.GROUPS.advanced,
133
- required: false
134
- }),
135
- swipeToOpenVelocityContribution: (0, _types.createStaticNumberProp)({
136
- label: "Swipe Velocity Contribution",
137
- description: "Describes how much the ending velocity of the gesture affects whether the swipe will result in the item being closed or open. A velocity factor of 0 (the default) means that the velocity will have no bearing on whether the swipe settles on a closed or open position and it'll just take into consideration the swipeToOpenPercent. Ideal values for this prop tend to be between 5 and 15",
138
- group: _types.GROUPS.advanced,
139
- required: false
140
- }),
141
- swipeToOpenPercent: (0, _types.createStaticNumberProp)({
142
- label: "Swipe to open percentage",
143
- description: "What % of the left/right does the user need to swipe past to trigger the view opening",
144
- group: _types.GROUPS.advanced,
145
- defaultValue: 50,
146
- required: false
147
- }),
148
- swipeToClosePercent: (0, _types.createStaticNumberProp)({
149
- label: "Swipe to close percentage",
150
- description: "What % of the left/right does the user need to swipe past to trigger the view closing",
151
- group: _types.GROUPS.advanced,
152
- defaultValue: 50,
153
- required: false
154
- })
155
- }
156
- }, {
157
- name: "Swipeable View Button",
158
- tag: "SwipeableViewButton",
159
- description: "Button to be rendered under a Swipeable View",
160
- category: _types.COMPONENT_TYPES.testing /*.view*/,
161
- stylesPanelSections: [],
162
- triggers: [_types.Triggers.OnPress],
163
- props: {
164
- ...SHARED_SEED_DATA_PROPS,
165
- onPress: (0, _types.createActionProp)()
166
- }
167
- }, {
168
- name: "Swipeable View Swipe Handler",
169
- tag: "SwipeableViewSwipeHandler",
170
- description: "Component that renders and handles swipe of Swipeable View",
171
- category: _types.COMPONENT_TYPES.testing /*.view*/,
172
- stylesPanelSections: [],
173
- triggers: [_types.Triggers.OnSwipe],
174
- props: {
175
- ...SHARED_SEED_DATA_PROPS,
176
- onSwipe: (0, _types.createActionProp)({
177
- label: "On swipe",
178
- description: "Called when Swipeable View swiped in the direction this is configured to"
179
- })
180
- }
181
- }];
182
- exports.SEED_DATA = SEED_DATA;
183
- //# sourceMappingURL=SwipeableView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SHARED_SEED_DATA_PROPS","title","createTextProp","label","description","defaultValue","required","group","GROUPS","basic","side","createTextEnumProp","options","icon","createIconProp","iconSize","createStaticNumberProp","backgroundColor","createColorProp","color","SEED_DATA","name","tag","doc_link","category","COMPONENT_TYPES","testing","stylesPanelSections","CONTAINER_COMPONENT_STYLES_SECTIONS","StylesPanelSections","Typography","layout","overflow","flexDirection","alignItems","padding","props","closeOnPress","createStaticBoolProp","swipeActivationPercentage","disableLeftSwipe","createBoolProp","disableRightSwipe","leftOpenValue","advanced","rightOpenValue","leftActivationValue","rightActivationValue","stopLeftSwipe","stopRightSwipe","directionalDistanceChangeThreshold","friction","tension","swipeToOpenVelocityContribution","swipeToOpenPercent","swipeToClosePercent","triggers","Triggers","OnPress","onPress","createActionProp","OnSwipe","onSwipe"],"sourceRoot":"../../../src","sources":["mappings/SwipeableView.ts"],"mappings":";;;;;;AAAA;AAgBO,MAAMA,sBAAsB,GAAG;EACpCC,KAAK,EAAE,IAAAC,qBAAc,EAAC;IACpBC,KAAK,EAAE,OAAO;IACdC,WAAW,EAAE,2BAA2B;IACxCC,YAAY,EAAE,WAAW;IACzBC,QAAQ,EAAE,IAAI;IACdC,KAAK,EAAEC,aAAM,CAACC;EAChB,CAAC,CAAC;EACFC,IAAI,EAAE,IAAAC,yBAAkB,EAAC;IACvBR,KAAK,EAAE,MAAM;IACbC,WAAW,EAAE,sCAAsC;IACnDQ,OA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Cb,KAAK,EAAE,2BAA2B;MAClCC,WAAW,EACT,uFAAuF;MACzFG,KAAK,EAAEC,aAAM,CAACoC,QAAQ;MACtBvC,YAAY,EAAE,EAAE;MAChBC,QAAQ,EAAE;IACZ,CAAC;EACH;AACF,CAAC,EACD;EACEe,IAAI,EAAE,uBAAuB;EAC7BC,GAAG,EAAE,qBAAqB;EAC1BlB,WAAW,EAAE,8CAA8C;EAC3DoB,QAAQ,EAAEC,sBAAe,CAACC,OAAO,CAAC;EAClCC,mBAAmB,EAAE,EAAE;EACvB6B,QAAQ,EAAE,CAACC,eAAQ,CAACC,OAAO,CAAC;EAC5BtB,KAAK,EAAE;IACL,GAAGpC,sBAAsB;IACzB2D,OAAO,EAAE,IAAAC,uBAAgB;EAC3B;AACF,CAAC,EACD;EACEvC,IAAI,EAAE,8BAA8B;EACpCC,GAAG,EAAE,2BAA2B;EAChClB,WAAW,EAAE,4DAA4D;EACzEoB,QAAQ,EAAEC,sBAAe,CAACC,OAAO,CAAC;EAClCC,mBAAmB,EAAE,EAAE;EACvB6B,QAAQ,EAAE,CAACC,eAAQ,CAACI,OAAO,CAAC;EAC5BzB,KAAK,EAAE;IACL,GAAGpC,sBAAsB;IACzB8D,OAAO,EAAE,IAAAF,uBAAgB,EAAC;MACxBzD,KAAK,EAAE,UAAU;MACjBC,WAAW,EACT;IACJ,CAAC;EACH;AACF,CAAC,CACF;AAAC"}
@@ -1,147 +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 React from "react";
3
- import { View, StyleSheet, Text } from "react-native";
4
- import Pressable from "../Pressable";
5
- import { extractBorderAndMarginStyles, extractEffectStyles, extractFlexItemStyles, extractPositionStyles, extractSizeStyles, extractStyles } from "../../utilities";
6
- import { SwipeRow } from "react-native-swipe-list-view";
7
- import { withTheme } from "../../theming";
8
- const SwipeableView = _ref => {
9
- let {
10
- theme,
11
- style,
12
- children,
13
- Icon,
14
- closeOnPress,
15
- leftOpenValue,
16
- rightOpenValue,
17
- leftActivationValue,
18
- rightActivationValue,
19
- swipeActivationPercentage = 80,
20
- stopLeftSwipe,
21
- stopRightSwipe,
22
- friction = 20,
23
- ...rest
24
- } = _ref;
25
- const instanceOfSwipeableViewButtonProps = object => {
26
- return "title" in object && "side" in object && "onPress" in object;
27
- };
28
- const instanceOfSwipeableViewSwipeHandlerProps = object => {
29
- return "title" in object && "side" in object && "onSwipe" in object;
30
- };
31
- const {
32
- viewStyles,
33
- textStyles
34
- } = extractStyles(style);
35
- const {
36
- borderStyles,
37
- marginStyles
38
- } = extractBorderAndMarginStyles(viewStyles);
39
- const parentContainerStyles = StyleSheet.flatten([borderStyles, marginStyles, extractFlexItemStyles(viewStyles), extractPositionStyles(viewStyles), extractEffectStyles(viewStyles), extractSizeStyles(viewStyles)]);
40
-
41
- //Remove styles already consumed from viewStyles
42
- Object.keys(parentContainerStyles).forEach(key => delete viewStyles[key]);
43
- const surfaceContainerStyles = viewStyles;
44
- const [componentWidth, setComponentWidth] = React.useState(null);
45
- const leftButtons = React.useMemo(() => React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && instanceOfSwipeableViewButtonProps(child.props) && child.props.side === "left"), [children]);
46
- const rightButtons = React.useMemo(() => React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && instanceOfSwipeableViewButtonProps(child.props) && child.props.side === "right"), [children]);
47
- const leftSwipeHandlers = React.useMemo(() => React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && instanceOfSwipeableViewSwipeHandlerProps(child.props) && child.props.side === "left"), [children]);
48
- const rightSwipeHandlers = React.useMemo(() => React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && instanceOfSwipeableViewSwipeHandlerProps(child.props) && child.props.side === "right"), [children]);
49
- const remainingChildren = React.useMemo(() => React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && !instanceOfSwipeableViewSwipeHandlerProps(child.props) && !instanceOfSwipeableViewButtonProps(child.props)), [children]);
50
- if (leftButtons.length > 2 || rightButtons.length > 2) {
51
- throw Error("Cannot have more than 2 buttons per side");
52
- }
53
- if (leftSwipeHandlers.length > 1 || rightSwipeHandlers.length > 1) {
54
- throw Error("Cannot have more than 1 swiper handler per side");
55
- }
56
- if (leftButtons.length && leftSwipeHandlers.length || rightButtons.length && rightSwipeHandlers.length) {
57
- throw Error("Cannot combine swiper handler and buttons on the same side");
58
- }
59
-
60
- //Renders a single button/item. Used for both buttons and swipe handler
61
- const renderBehindItem = (props, index) => /*#__PURE__*/React.createElement(Pressable, {
62
- key: index.toString(),
63
- onPress: props.onPress,
64
- style: [styles.buttonContainer, {
65
- backgroundColor: props.backgroundColor || theme.colors.primary
66
- }]
67
- }, props.icon && /*#__PURE__*/React.createElement(Icon, {
68
- name: props.icon,
69
- size: props.iconSize || 25,
70
- color: props.color || theme.colors.surface
71
- }), /*#__PURE__*/React.createElement(Text, {
72
- style: [textStyles, {
73
- color: props.color || theme.colors.surface
74
- }]
75
- }, props.title));
76
- const isLeftSwipeHandler = !!leftSwipeHandlers.length;
77
- const isRightSwipeHandler = !!rightSwipeHandlers.length;
78
- const defaultLeftOpenValue = componentWidth ? componentWidth / 2 : 0;
79
- const defaultRightOpenValue = componentWidth ? -componentWidth / 2 : 0;
80
- return /*#__PURE__*/React.createElement(View, {
81
- onLayout: event => {
82
- setComponentWidth(event.nativeEvent.layout.width);
83
- },
84
- style: [styles.parentContainer, parentContainerStyles]
85
- }, /*#__PURE__*/React.createElement(SwipeRow, _extends({
86
- leftOpenValue: isLeftSwipeHandler ? 0 : leftOpenValue || defaultLeftOpenValue //If in swiping mode, don't keep open
87
- ,
88
-
89
- rightOpenValue: isRightSwipeHandler ? 0 : rightOpenValue || defaultRightOpenValue,
90
- leftActivationValue: leftActivationValue || isLeftSwipeHandler ? defaultLeftOpenValue * (swipeActivationPercentage / 100) //When swipe passes activation percentage then it should be considered activated (call onSwipe)
91
- : defaultLeftOpenValue,
92
- rightActivationValue: rightActivationValue || isRightSwipeHandler ? defaultRightOpenValue * (swipeActivationPercentage / 100) : defaultRightOpenValue,
93
- stopLeftSwipe: stopLeftSwipe || defaultLeftOpenValue,
94
- stopRightSwipe: stopRightSwipe || defaultRightOpenValue,
95
- onLeftAction: isLeftSwipeHandler ? () => {
96
- var _leftSwipeHandlers$0$, _leftSwipeHandlers$0$2;
97
- return (_leftSwipeHandlers$0$ = (_leftSwipeHandlers$0$2 = leftSwipeHandlers[0].props).onSwipe) === null || _leftSwipeHandlers$0$ === void 0 ? void 0 : _leftSwipeHandlers$0$.call(_leftSwipeHandlers$0$2);
98
- } : undefined,
99
- onRightAction: isRightSwipeHandler ? () => {
100
- var _rightSwipeHandlers$, _rightSwipeHandlers$2;
101
- return (_rightSwipeHandlers$ = (_rightSwipeHandlers$2 = rightSwipeHandlers[0].props).onSwipe) === null || _rightSwipeHandlers$ === void 0 ? void 0 : _rightSwipeHandlers$.call(_rightSwipeHandlers$2);
102
- } : undefined,
103
- closeOnRowPress: closeOnPress,
104
- friction: friction
105
- }, rest), /*#__PURE__*/React.createElement(View, {
106
- style: styles.behindContainer
107
- }, /*#__PURE__*/React.createElement(View, {
108
- style: styles.behindContainerItem
109
- }, (isLeftSwipeHandler ? leftSwipeHandlers : leftButtons).map((item, index) => renderBehindItem(item.props, index))), /*#__PURE__*/React.createElement(View, {
110
- style: styles.behindContainerItem
111
- }, (isRightSwipeHandler ? rightSwipeHandlers : rightButtons).map((item, index) => renderBehindItem(item.props, index)))), /*#__PURE__*/React.createElement(View, {
112
- style: [styles.surfaceContainer, {
113
- backgroundColor: theme.colors.background
114
- }, surfaceContainerStyles]
115
- }, remainingChildren)));
116
- };
117
- const styles = StyleSheet.create({
118
- parentContainer: {
119
- overflow: "hidden",
120
- minHeight: 50
121
- },
122
- behindContainer: {
123
- flex: 1,
124
- width: "100%",
125
- height: "100%",
126
- flexDirection: "row"
127
- },
128
- behindContainerItem: {
129
- flex: 1,
130
- flexDirection: "row"
131
- },
132
- buttonContainer: {
133
- flex: 1,
134
- alignItems: "center",
135
- justifyContent: "center"
136
- },
137
- surfaceContainer: {
138
- flexDirection: "row",
139
- width: "100%",
140
- height: "100%",
141
- padding: 10,
142
- alignItems: "center",
143
- overflow: "hidden"
144
- }
145
- });
146
- export default withTheme(SwipeableView);
147
- //# sourceMappingURL=SwipeableView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","StyleSheet","Text","Pressable","extractBorderAndMarginStyles","extractEffectStyles","extractFlexItemStyles","extractPositionStyles","extractSizeStyles","extractStyles","SwipeRow","withTheme","SwipeableView","theme","style","children","Icon","closeOnPress","leftOpenValue","rightOpenValue","leftActivationValue","rightActivationValue","swipeActivationPercentage","stopLeftSwipe","stopRightSwipe","friction","rest","instanceOfSwipeableViewButtonProps","object","instanceOfSwipeableViewSwipeHandlerProps","viewStyles","textStyles","borderStyles","marginStyles","parentContainerStyles","flatten","Object","keys","forEach","key","surfaceContainerStyles","componentWidth","setComponentWidth","useState","leftButtons","useMemo","Children","toArray","filter","child","isValidElement","props","side","rightButtons","leftSwipeHandlers","rightSwipeHandlers","remainingChildren","length","Error","renderBehindItem","index","toString","onPress","styles","buttonContainer","backgroundColor","colors","primary","icon","iconSize","color","surface","title","isLeftSwipeHandler","isRightSwipeHandler","defaultLeftOpenValue","defaultRightOpenValue","event","nativeEvent","layout","width","parentContainer","onSwipe","undefined","behindContainer","behindContainerItem","map","item","surfaceContainer","background","create","overflow","minHeight","flex","height","flexDirection","alignItems","justifyContent","padding"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableView.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EAIJC,UAAU,EACVC,IAAI,QACC,cAAc;AACrB,OAAOC,SAAS,MAAM,cAAc;AACpC,SACE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CAACuB;IAChC,CAAC,EACDjD,sBAAsB;EACtB,GAEDgB,iBAAiB,CACb,CACE,CACN;AAEX,CAAC;AAED,MAAMO,MAAM,GAAG9D,UAAU,CAACyF,MAAM,CAAC;EAC/BT,eAAe,EAAE;IACfU,QAAQ,EAAE,QAAQ;IAClBC,SAAS,EAAE;EACb,CAAC;EACDR,eAAe,EAAE;IACfS,IAAI,EAAE,CAAC;IACPb,KAAK,EAAE,MAAM;IACbc,MAAM,EAAE,MAAM;IACdC,aAAa,EAAE;EACjB,CAAC;EACDV,mBAAmB,EAAE;IACnBQ,IAAI,EAAE,CAAC;IACPE,aAAa,EAAE;EACjB,CAAC;EACD/B,eAAe,EAAE;IACf6B,IAAI,EAAE,CAAC;IACPG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDT,gBAAgB,EAAE;IAChBO,aAAa,EAAE,KAAK;IACpBf,KAAK,EAAE,MAAM;IACbc,MAAM,EAAE,MAAM;IACdI,OAAO,EAAE,EAAE;IACXF,UAAU,EAAE,QAAQ;IACpBL,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAehF,SAAS,CAACC,aAAa,CAAC"}
@@ -1,6 +0,0 @@
1
- //Renders nothing, acts as a wrapper be used by SwipeableView
2
- const SwipeableViewButton = () => {
3
- return null;
4
- };
5
- export default SwipeableViewButton;
6
- //# sourceMappingURL=SwipeableViewButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SwipeableViewButton"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableViewButton.tsx"],"mappings":"AAYA;AACA,MAAMA,mBAAuD,GAAG,MAAM;EACpE,OAAO,IAAI;AACb,CAAC;AAED,eAAeA,mBAAmB"}
@@ -1,6 +0,0 @@
1
- //Renders nothing, acts as a wrapper to be used by SwipeableView
2
- const SwipeableViewSwipeHandler = () => {
3
- return null;
4
- };
5
- export default SwipeableViewSwipeHandler;
6
- //# sourceMappingURL=SwipeableViewSwipeHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SwipeableViewSwipeHandler"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableViewSwipeHandler.tsx"],"mappings":"AAYA;AACA,MAAMA,yBAEL,GAAG,MAAM;EACR,OAAO,IAAI;AACb,CAAC;AAED,eAAeA,yBAAyB"}
@@ -1,4 +0,0 @@
1
- export { default as SwipeableView } from "./SwipeableView";
2
- export { default as SwipeableViewButton } from "./SwipeableViewButton";
3
- export { default as SwipeableViewSwipeHandler } from "./SwipeableViewSwipeHandler";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["default","SwipeableView","SwipeableViewButton","SwipeableViewSwipeHandler"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/index.tsx"],"mappings":"AAAA,SAASA,OAAO,IAAIC,aAAa,QAAQ,iBAAiB;AAC1D,SAASD,OAAO,IAAIE,mBAAmB,QAAQ,uBAAuB;AACtE,SAASF,OAAO,IAAIG,yBAAyB,QAAQ,6BAA6B"}