@draftbit/core 46.11.1-0339d0.2 → 46.11.1-09f288.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 (104) hide show
  1. package/lib/commonjs/components/Card.js.map +1 -1
  2. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +16 -3
  3. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -1
  4. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +22 -5
  5. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  6. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +2 -1
  7. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js.map +1 -1
  8. package/lib/commonjs/components/Picker/Picker.js +13 -4
  9. package/lib/commonjs/components/Picker/Picker.js.map +1 -1
  10. package/lib/commonjs/components/Shadow.js +10 -2
  11. package/lib/commonjs/components/Shadow.js.map +1 -1
  12. package/lib/commonjs/components/TabView/TabView.js +1 -1
  13. package/lib/commonjs/components/TabView/TabView.js.map +1 -1
  14. package/lib/commonjs/index.js +0 -19
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/mappings/DeckSwiper.js +3 -2
  17. package/lib/commonjs/mappings/DeckSwiper.js.map +1 -1
  18. package/lib/commonjs/mappings/Shadow.js +2 -2
  19. package/lib/commonjs/mappings/Shadow.js.map +1 -1
  20. package/lib/commonjs/utilities.js +2 -35
  21. package/lib/commonjs/utilities.js.map +1 -1
  22. package/lib/module/components/DeckSwiper/DeckSwiper.js +2 -1
  23. package/lib/module/components/DeckSwiper/DeckSwiper.js.map +1 -1
  24. package/lib/module/components/Picker/Picker.js +13 -4
  25. package/lib/module/components/Picker/Picker.js.map +1 -1
  26. package/lib/module/components/Shadow.js +10 -2
  27. package/lib/module/components/Shadow.js.map +1 -1
  28. package/lib/module/components/TabView/TabView.js +1 -1
  29. package/lib/module/components/TabView/TabView.js.map +1 -1
  30. package/lib/module/index.js +0 -1
  31. package/lib/module/index.js.map +1 -1
  32. package/lib/module/mappings/DeckSwiper.js +4 -3
  33. package/lib/module/mappings/DeckSwiper.js.map +1 -1
  34. package/lib/module/mappings/Shadow.js +3 -3
  35. package/lib/module/mappings/Shadow.js.map +1 -1
  36. package/lib/module/utilities.js +0 -24
  37. package/lib/module/utilities.js.map +1 -1
  38. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +1 -1
  39. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  40. package/lib/typescript/src/components/Shadow.d.ts.map +1 -1
  41. package/lib/typescript/src/index.d.ts +0 -1
  42. package/lib/typescript/src/index.d.ts.map +1 -1
  43. package/lib/typescript/src/mappings/DeckSwiper.d.ts +2 -1
  44. package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -1
  45. package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -1
  46. package/lib/typescript/src/utilities.d.ts +0 -8
  47. package/lib/typescript/src/utilities.d.ts.map +1 -1
  48. package/package.json +3 -4
  49. package/src/components/DeckSwiper/DeckSwiper.js +2 -1
  50. package/src/components/DeckSwiper/DeckSwiper.tsx +2 -1
  51. package/src/components/Picker/Picker.js +16 -4
  52. package/src/components/Picker/Picker.tsx +25 -5
  53. package/src/components/Shadow.js +7 -2
  54. package/src/components/Shadow.tsx +10 -3
  55. package/src/components/TabView/TabView.js +1 -1
  56. package/src/components/TabView/TabView.tsx +1 -1
  57. package/src/index.js +0 -1
  58. package/src/index.tsx +0 -6
  59. package/src/mappings/DeckSwiper.js +8 -3
  60. package/src/mappings/DeckSwiper.ts +8 -3
  61. package/src/mappings/Shadow.js +10 -3
  62. package/src/mappings/Shadow.ts +10 -3
  63. package/src/utilities.js +0 -50
  64. package/src/utilities.ts +0 -90
  65. package/lib/commonjs/components/SwipeableView/SwipeableView.js +0 -155
  66. package/lib/commonjs/components/SwipeableView/SwipeableView.js.map +0 -1
  67. package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js +0 -13
  68. package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js.map +0 -1
  69. package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -13
  70. package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js.map +0 -1
  71. package/lib/commonjs/components/SwipeableView/index.js +0 -28
  72. package/lib/commonjs/components/SwipeableView/index.js.map +0 -1
  73. package/lib/commonjs/mappings/SwipeableView.js +0 -182
  74. package/lib/commonjs/mappings/SwipeableView.js.map +0 -1
  75. package/lib/module/components/SwipeableView/SwipeableView.js +0 -147
  76. package/lib/module/components/SwipeableView/SwipeableView.js.map +0 -1
  77. package/lib/module/components/SwipeableView/SwipeableViewButton.js +0 -6
  78. package/lib/module/components/SwipeableView/SwipeableViewButton.js.map +0 -1
  79. package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -6
  80. package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js.map +0 -1
  81. package/lib/module/components/SwipeableView/index.js +0 -4
  82. package/lib/module/components/SwipeableView/index.js.map +0 -1
  83. package/lib/module/mappings/SwipeableView.js +0 -175
  84. package/lib/module/mappings/SwipeableView.js.map +0 -1
  85. package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts +0 -29
  86. package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts.map +0 -1
  87. package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts +0 -13
  88. package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts.map +0 -1
  89. package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts +0 -13
  90. package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts.map +0 -1
  91. package/lib/typescript/src/components/SwipeableView/index.d.ts +0 -4
  92. package/lib/typescript/src/components/SwipeableView/index.d.ts.map +0 -1
  93. package/lib/typescript/src/mappings/SwipeableView.d.ts +0 -371
  94. package/lib/typescript/src/mappings/SwipeableView.d.ts.map +0 -1
  95. package/src/components/SwipeableView/SwipeableView.js +0 -117
  96. package/src/components/SwipeableView/SwipeableView.tsx +0 -299
  97. package/src/components/SwipeableView/SwipeableViewButton.js +0 -5
  98. package/src/components/SwipeableView/SwipeableViewButton.tsx +0 -18
  99. package/src/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -5
  100. package/src/components/SwipeableView/SwipeableViewSwipeHandler.tsx +0 -20
  101. package/src/components/SwipeableView/index.js +0 -3
  102. package/src/components/SwipeableView/index.tsx +0 -3
  103. package/src/mappings/SwipeableView.js +0 -181
  104. package/src/mappings/SwipeableView.ts +0 -210
@@ -1,6 +1,11 @@
1
1
  import React from "react";
2
+ import { StyleSheet } from "react-native";
2
3
  import { Shadow as ShadowComponent } from "react-native-shadow-2";
3
- const Shadow = ({ offsetX = 0, offsetY = 0, showShadowSideStart = true, showShadowSideEnd = true, showShadowSideTop = true, showShadowSideBottom = true, showShadowCornerTopStart = true, showShadowCornerTopEnd = true, showShadowCornerBottomStart = true, showShadowCornerBottomEnd = true, paintInside = false, style, ...rest }) => {
4
+ import { extractBorderAndMarginStyles } from "../utilities";
5
+ const Shadow = ({ offsetX = 0, offsetY = 0, showShadowSideStart = true, showShadowSideEnd = true, showShadowSideTop = true, showShadowSideBottom = true, showShadowCornerTopStart = true, showShadowCornerTopEnd = true, showShadowCornerBottomStart = true, showShadowCornerBottomEnd = true, paintInside = true, style, ...rest }) => {
6
+ const { borderStyles } = extractBorderAndMarginStyles(style);
7
+ const containerStyle = StyleSheet.flatten(style);
8
+ Object.keys(borderStyles).forEach((key) => delete containerStyle[key]);
4
9
  return (React.createElement(ShadowComponent, { offset: [offsetX, offsetY], sides: {
5
10
  start: showShadowSideStart,
6
11
  end: showShadowSideEnd,
@@ -11,6 +16,6 @@ const Shadow = ({ offsetX = 0, offsetY = 0, showShadowSideStart = true, showShad
11
16
  topEnd: showShadowCornerTopEnd,
12
17
  bottomStart: showShadowCornerBottomStart,
13
18
  bottomEnd: showShadowCornerBottomEnd,
14
- }, containerStyle: style, paintInside: paintInside, ...rest }));
19
+ }, style: borderStyles, containerStyle: containerStyle, paintInside: paintInside, ...rest }));
15
20
  };
16
21
  export default Shadow;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
2
+ import { StyleProp, ViewStyle, StyleSheet } from "react-native";
3
3
  import { Shadow as ShadowComponent } from "react-native-shadow-2";
4
+ import { extractBorderAndMarginStyles } from "../utilities";
4
5
 
5
6
  interface ShadowProps {
6
7
  disabled?: boolean;
@@ -33,10 +34,15 @@ const Shadow: React.FC<React.PropsWithChildren<ShadowProps>> = ({
33
34
  showShadowCornerTopEnd = true,
34
35
  showShadowCornerBottomStart = true,
35
36
  showShadowCornerBottomEnd = true,
36
- paintInside = false,
37
+ paintInside = true,
37
38
  style,
38
39
  ...rest
39
40
  }) => {
41
+ const { borderStyles } = extractBorderAndMarginStyles(style);
42
+
43
+ const containerStyle = StyleSheet.flatten(style) as StyleProp<any>;
44
+ Object.keys(borderStyles).forEach((key) => delete containerStyle[key]);
45
+
40
46
  return (
41
47
  <ShadowComponent
42
48
  offset={[offsetX, offsetY]}
@@ -52,7 +58,8 @@ const Shadow: React.FC<React.PropsWithChildren<ShadowProps>> = ({
52
58
  bottomStart: showShadowCornerBottomStart,
53
59
  bottomEnd: showShadowCornerBottomEnd,
54
60
  }}
55
- containerStyle={style}
61
+ style={borderStyles}
62
+ containerStyle={containerStyle}
56
63
  paintInside={paintInside}
57
64
  {...rest}
58
65
  />
@@ -39,7 +39,7 @@ const TabViewComponent = ({ Icon, onIndexChanged, onEndReached, tabBarPosition,
39
39
  }
40
40
  };
41
41
  const renderTabBar = (props) => {
42
- return (React.createElement(TabBar, { ...props, activeColor: activeColor || theme.colors.primary, inactiveColor: inactiveColor || theme.colors.divider, pressColor: pressColor || theme.colors.primary, scrollEnabled: scrollEnabled, indicatorStyle: {
42
+ return (React.createElement(TabBar, { ...props, activeColor: activeColor || theme.colors.primary, inactiveColor: inactiveColor || "rgb(200,200,200)", pressColor: pressColor || theme.colors.primary, scrollEnabled: scrollEnabled, indicatorStyle: {
43
43
  backgroundColor: indicatorColor || theme.colors.primary,
44
44
  }, labelStyle: textStyles, renderIcon: ({ route, color }) => (route === null || route === void 0 ? void 0 : route.icon) ? (React.createElement(Icon, { name: route.icon, color: color, size: 16 })) : null, style: {
45
45
  backgroundColor: tabsBackgroundColor || theme.colors.background,
@@ -106,7 +106,7 @@ const TabViewComponent: React.FC<React.PropsWithChildren<TabViewProps>> = ({
106
106
  <TabBar
107
107
  {...props}
108
108
  activeColor={activeColor || theme.colors.primary}
109
- inactiveColor={inactiveColor || theme.colors.divider}
109
+ inactiveColor={inactiveColor || "rgb(200,200,200)"}
110
110
  pressColor={pressColor || theme.colors.primary}
111
111
  scrollEnabled={scrollEnabled}
112
112
  indicatorStyle={{
package/src/index.js CHANGED
@@ -38,7 +38,6 @@ export { default as Markdown } from "./components/Markdown";
38
38
  export { BottomSheet } from "./components/BottomSheet";
39
39
  export { YoutubePlayer } from "./components/YoutubePlayer";
40
40
  export { Table, TableRow, TableCell } from "./components/Table";
41
- export { SwipeableView, SwipeableViewButton, SwipeableViewSwipeHandler, } from "./components/SwipeableView";
42
41
  /* Deprecated: Fix or Delete! */
43
42
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
44
43
  export { default as Picker } from "./components/Picker/Picker";
package/src/index.tsx CHANGED
@@ -64,12 +64,6 @@ export { YoutubePlayer } from "./components/YoutubePlayer";
64
64
 
65
65
  export { Table, TableRow, TableCell } from "./components/Table";
66
66
 
67
- export {
68
- SwipeableView,
69
- SwipeableViewButton,
70
- SwipeableViewSwipeHandler,
71
- } from "./components/SwipeableView";
72
-
73
67
  /* Deprecated: Fix or Delete! */
74
68
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
75
69
  export { default as Picker } from "./components/Picker/Picker";
@@ -1,12 +1,17 @@
1
- import { COMPONENT_TYPES, Triggers, createActionProp, createStaticNumberProp, createStaticBoolProp, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, Triggers, createActionProp, createStaticNumberProp, createStaticBoolProp, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Deck Swiper",
4
4
  tag: "DeckSwiper",
5
5
  description: "Deck swiper container",
6
6
  category: COMPONENT_TYPES.swiper,
7
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
7
+ stylesPanelSections: [
8
+ StylesPanelSections.Size,
9
+ StylesPanelSections.Margins,
10
+ StylesPanelSections.Effects,
11
+ ],
8
12
  layout: {
9
- width: "100%",
13
+ flex: 1,
14
+ position: "absolute",
10
15
  },
11
16
  triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
12
17
  props: {
@@ -4,7 +4,7 @@ import {
4
4
  createActionProp,
5
5
  createStaticNumberProp,
6
6
  createStaticBoolProp,
7
- BLOCK_STYLES_SECTIONS,
7
+ StylesPanelSections,
8
8
  } from "@draftbit/types";
9
9
 
10
10
  export const SEED_DATA = {
@@ -12,9 +12,14 @@ export const SEED_DATA = {
12
12
  tag: "DeckSwiper",
13
13
  description: "Deck swiper container",
14
14
  category: COMPONENT_TYPES.swiper,
15
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
15
+ stylesPanelSections: [
16
+ StylesPanelSections.Size,
17
+ StylesPanelSections.Margins,
18
+ StylesPanelSections.Effects,
19
+ ],
16
20
  layout: {
17
- width: "100%",
21
+ flex: 1,
22
+ position: "absolute",
18
23
  },
19
24
  triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
20
25
  props: {
@@ -1,10 +1,17 @@
1
- import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp, GROUPS, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp, GROUPS, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Shadow",
4
4
  tag: "Shadow",
5
5
  description: "A cross-platform, universal shadow.",
6
6
  category: COMPONENT_TYPES.view,
7
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
+ stylesPanelSections: [
8
+ StylesPanelSections.LayoutSelectedItem,
9
+ StylesPanelSections.Size,
10
+ StylesPanelSections.Margins,
11
+ StylesPanelSections.Position,
12
+ StylesPanelSections.Borders,
13
+ StylesPanelSections.Effects,
14
+ ],
8
15
  props: {
9
16
  disabled: createDisabledProp({
10
17
  description: "Disables the shadow.",
@@ -26,7 +33,7 @@ export const SEED_DATA = {
26
33
  paintInside: createStaticBoolProp({
27
34
  label: "Paint Inside",
28
35
  description: "Apply the shadow below/inside the content.",
29
- defaultValue: false,
36
+ defaultValue: true,
30
37
  }),
31
38
  stretch: createStaticBoolProp({
32
39
  label: "Stretch",
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  COMPONENT_TYPES,
3
- CONTAINER_COMPONENT_STYLES_SECTIONS,
4
3
  createColorProp,
5
4
  createStaticNumberProp,
6
5
  createStaticBoolProp,
7
6
  createDisabledProp,
8
7
  GROUPS,
8
+ StylesPanelSections,
9
9
  } from "@draftbit/types";
10
10
 
11
11
  export const SEED_DATA = {
@@ -13,7 +13,14 @@ export const SEED_DATA = {
13
13
  tag: "Shadow",
14
14
  description: "A cross-platform, universal shadow.",
15
15
  category: COMPONENT_TYPES.view,
16
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
16
+ stylesPanelSections: [
17
+ StylesPanelSections.LayoutSelectedItem,
18
+ StylesPanelSections.Size,
19
+ StylesPanelSections.Margins,
20
+ StylesPanelSections.Position,
21
+ StylesPanelSections.Borders,
22
+ StylesPanelSections.Effects,
23
+ ],
17
24
  props: {
18
25
  disabled: createDisabledProp({
19
26
  description: "Disables the shadow.",
@@ -35,7 +42,7 @@ export const SEED_DATA = {
35
42
  paintInside: createStaticBoolProp({
36
43
  label: "Paint Inside",
37
44
  description: "Apply the shadow below/inside the content.",
38
- defaultValue: false,
45
+ defaultValue: true,
39
46
  }),
40
47
  stretch: createStaticBoolProp({
41
48
  label: "Stretch",
package/src/utilities.js CHANGED
@@ -65,56 +65,6 @@ export function extractBorderAndMarginStyles(style, additionalBorderStyles, addi
65
65
  ]), identity);
66
66
  return { borderStyles, marginStyles };
67
67
  }
68
- export const flexItemStyleNames = [
69
- "alignSelf",
70
- "flexBasis",
71
- "flexShrink",
72
- "flexGrow",
73
- "flex",
74
- ];
75
- export function extractFlexItemStyles(style, additionalFlexItemStyles) {
76
- const flatStyle = StyleSheet.flatten(style || {});
77
- const flexItemStyles = pickBy(pick(flatStyle, [
78
- ...flexItemStyleNames,
79
- ...(additionalFlexItemStyles ? additionalFlexItemStyles : []),
80
- ]), identity);
81
- return flexItemStyles;
82
- }
83
- export const positionStyleNames = [
84
- "position",
85
- "left",
86
- "right",
87
- "top",
88
- "bottom",
89
- "zIndex",
90
- "overflow",
91
- ];
92
- export function extractPositionStyles(style, additionalPositionStyles) {
93
- const flatStyle = StyleSheet.flatten(style || {});
94
- const positionStyles = pickBy(pick(flatStyle, [
95
- ...positionStyleNames,
96
- ...(additionalPositionStyles ? additionalPositionStyles : []),
97
- ]), identity);
98
- return positionStyles;
99
- }
100
- export const effectsStyleNames = ["opacity", "elevation"];
101
- export function extractEffectStyles(style, additionalEffectStyles) {
102
- const flatStyle = StyleSheet.flatten(style || {});
103
- const effectStyles = pickBy(pick(flatStyle, [
104
- ...effectsStyleNames,
105
- ...(additionalEffectStyles ? additionalEffectStyles : []),
106
- ]), identity);
107
- return effectStyles;
108
- }
109
- export const sizeStyleNames = ["width", "height"];
110
- export function extractSizeStyles(style, additionalSizeStyles) {
111
- const flatStyle = StyleSheet.flatten(style || {});
112
- const sizeStyles = pickBy(pick(flatStyle, [
113
- ...sizeStyleNames,
114
- ...(additionalSizeStyles ? additionalSizeStyles : []),
115
- ]), identity);
116
- return sizeStyles;
117
- }
118
68
  /**
119
69
  * Merges a style object on top of another style object. In React Native,
120
70
  * keys with undefined values in a style object will still override styles
package/src/utilities.ts CHANGED
@@ -98,96 +98,6 @@ export function extractBorderAndMarginStyles(
98
98
  return { borderStyles, marginStyles };
99
99
  }
100
100
 
101
- export const flexItemStyleNames = [
102
- "alignSelf",
103
- "flexBasis",
104
- "flexShrink",
105
- "flexGrow",
106
- "flex",
107
- ];
108
-
109
- export function extractFlexItemStyles(
110
- style: StyleProp<any>,
111
- additionalFlexItemStyles?: string[]
112
- ) {
113
- const flatStyle = StyleSheet.flatten(style || {});
114
-
115
- const flexItemStyles = pickBy(
116
- pick(flatStyle, [
117
- ...flexItemStyleNames,
118
- ...(additionalFlexItemStyles ? additionalFlexItemStyles : []),
119
- ]),
120
- identity
121
- );
122
-
123
- return flexItemStyles;
124
- }
125
-
126
- export const positionStyleNames = [
127
- "position",
128
- "left",
129
- "right",
130
- "top",
131
- "bottom",
132
- "zIndex",
133
- "overflow",
134
- ];
135
-
136
- export function extractPositionStyles(
137
- style: StyleProp<any>,
138
- additionalPositionStyles?: string[]
139
- ) {
140
- const flatStyle = StyleSheet.flatten(style || {});
141
-
142
- const positionStyles = pickBy(
143
- pick(flatStyle, [
144
- ...positionStyleNames,
145
- ...(additionalPositionStyles ? additionalPositionStyles : []),
146
- ]),
147
- identity
148
- );
149
-
150
- return positionStyles;
151
- }
152
-
153
- export const effectsStyleNames = ["opacity", "elevation"];
154
-
155
- export function extractEffectStyles(
156
- style: StyleProp<any>,
157
- additionalEffectStyles?: string[]
158
- ) {
159
- const flatStyle = StyleSheet.flatten(style || {});
160
-
161
- const effectStyles = pickBy(
162
- pick(flatStyle, [
163
- ...effectsStyleNames,
164
- ...(additionalEffectStyles ? additionalEffectStyles : []),
165
- ]),
166
- identity
167
- );
168
-
169
- return effectStyles;
170
- }
171
-
172
- export const sizeStyleNames = ["width", "height"];
173
-
174
- export function extractSizeStyles(
175
- style: StyleProp<any>,
176
- additionalSizeStyles?: string[]
177
- ) {
178
- const flatStyle = StyleSheet.flatten(style || {});
179
-
180
- const sizeStyles = pickBy(
181
- pick(flatStyle, [
182
- ...sizeStyleNames,
183
- ...(additionalSizeStyles ? additionalSizeStyles : []),
184
- ]),
185
- identity
186
- );
187
-
188
- return sizeStyles;
189
- }
190
-
191
101
  /**
192
102
  * Merges a style object on top of another style object. In React Native,
193
103
  * keys with undefined values in a style object will still override styles
@@ -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;EAC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,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"}