@draftbit/core 49.3.2-0a7a74.2 → 49.3.2-bc13e1.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 (83) hide show
  1. package/lib/commonjs/components/TextInput.js +1 -1
  2. package/lib/commonjs/index.js +1 -1
  3. package/lib/typescript/src/components/SectionList/SectionList.d.ts +2 -2
  4. package/lib/typescript/src/components/SectionList/SectionList.js.map +1 -1
  5. package/lib/typescript/src/components/SectionList/index.d.ts +0 -1
  6. package/lib/typescript/src/components/SwipeableItem/SwipeableList.d.ts +2 -2
  7. package/lib/typescript/src/components/SwipeableItem/index.d.ts +0 -1
  8. package/lib/typescript/src/components/TextInput.d.ts +1 -0
  9. package/lib/typescript/src/components/TextInput.js +7 -3
  10. package/lib/typescript/src/components/TextInput.js.map +1 -1
  11. package/lib/typescript/src/index.d.ts +0 -7
  12. package/lib/typescript/src/index.js +0 -7
  13. package/lib/typescript/src/index.js.map +1 -1
  14. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  15. package/package.json +4 -5
  16. package/src/components/SectionList/SectionList.js.map +1 -1
  17. package/src/components/SectionList/SectionList.tsx +2 -5
  18. package/src/components/SectionList/index.tsx +0 -4
  19. package/src/components/SwipeableItem/SwipeableList.tsx +2 -2
  20. package/src/components/SwipeableItem/index.tsx +0 -4
  21. package/src/components/TextInput.js +7 -3
  22. package/src/components/TextInput.js.map +1 -1
  23. package/src/components/TextInput.tsx +18 -1
  24. package/src/index.js +0 -7
  25. package/src/index.js.map +1 -1
  26. package/src/index.tsx +0 -7
  27. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlashList.js +0 -1
  28. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlatList.js +0 -1
  29. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +0 -1
  30. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +0 -1
  31. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleScrollView.js +0 -1
  32. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSectionList.js +0 -1
  33. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +0 -1
  34. package/lib/commonjs/components/SimpleStyleScrollables/useSplitContentContainerStyles.js +0 -1
  35. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.d.ts +0 -8
  36. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +0 -18
  37. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +0 -1
  38. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.d.ts +0 -8
  39. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +0 -18
  40. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +0 -1
  41. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.d.ts +0 -8
  42. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +0 -18
  43. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +0 -1
  44. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.d.ts +0 -8
  45. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +0 -18
  46. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +0 -1
  47. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.d.ts +0 -8
  48. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +0 -18
  49. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +0 -1
  50. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.d.ts +0 -10
  51. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +0 -20
  52. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +0 -1
  53. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.d.ts +0 -10
  54. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +0 -20
  55. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +0 -1
  56. package/lib/typescript/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.d.ts +0 -8
  57. package/lib/typescript/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js +0 -43
  58. package/lib/typescript/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js.map +0 -1
  59. package/src/components/SimpleStyleScrollables/README.md +0 -3
  60. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +0 -18
  61. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +0 -1
  62. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.tsx +0 -36
  63. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +0 -18
  64. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +0 -1
  65. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx +0 -36
  66. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +0 -18
  67. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +0 -1
  68. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.tsx +0 -35
  69. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +0 -18
  70. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +0 -1
  71. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.tsx +0 -36
  72. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +0 -18
  73. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +0 -1
  74. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.tsx +0 -35
  75. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +0 -20
  76. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +0 -1
  77. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.tsx +0 -43
  78. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +0 -20
  79. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +0 -1
  80. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx +0 -43
  81. package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js +0 -43
  82. package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js.map +0 -1
  83. package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.ts +0 -60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "49.3.2-0a7a74.2+0a7a741",
3
+ "version": "49.3.2-bc13e1.2+bc13e16",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "types": "lib/typescript/src/index.d.ts",
@@ -41,9 +41,9 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^49.3.2-0a7a74.2+0a7a741",
44
+ "@draftbit/types": "^49.3.2-bc13e1.2+bc13e16",
45
45
  "@expo/vector-icons": "^13.0.0",
46
- "@gorhom/bottom-sheet": "^5.0.0-alpha.4",
46
+ "@gorhom/bottom-sheet": "5.0.0-alpha.7",
47
47
  "@material-ui/core": "^4.11.0",
48
48
  "@material-ui/pickers": "^3.2.10",
49
49
  "@react-native-community/slider": "4.4.2",
@@ -61,7 +61,6 @@
61
61
  "react-native-deck-swiper": "^2.0.12",
62
62
  "react-native-dropdown-picker": "^5.4.7-beta.1",
63
63
  "react-native-gesture-handler": "~2.12.0",
64
- "react-native-keyboard-aware-scroll-view": "^0.9.5",
65
64
  "react-native-markdown-display": "^7.0.0-alpha.2",
66
65
  "react-native-modal-datetime-picker": "^13.0.0",
67
66
  "react-native-pager-view": "6.2.0",
@@ -113,5 +112,5 @@
113
112
  ],
114
113
  "testEnvironment": "node"
115
114
  },
116
- "gitHead": "0a7a741eaf6fc99a4b8c10cc5608b8ea77c0526d"
115
+ "gitHead": "bc13e16f4fb0f2ea3539588759b3dc94440fb93f"
117
116
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SectionList.js","sourceRoot":"","sources":["SectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAiB,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,aAAa,EAAE,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAqCxD,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAE/C,MAAM,WAAW,GAAG,CAAmC,EACrD,UAAU,EACV,YAAY,GAAG,KAAK,EACpB,aAAa,GAAG,UAAU,EAC1B,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,cAAc,EAC1B,YAAY,EAAE,gBAAgB,EAC9B,GAAG,IAAI,EACoD,EAAE,EAAE;IAC/D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CACxB,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAQ,EACtD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;;QAC1C,MAAM,MAAM,GAAyB,EAAE,CAAC;QACxC,MAAM,gBAAgB,GAA2B,EAAE,CAAC;QAEpD,KAAK,MA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,eAAe,WAAW,CAAC"}
@@ -18,13 +18,10 @@ interface AdditionalSectionListProps<T> {
18
18
  listComponent?: ListComponentType;
19
19
  }
20
20
 
21
- export type FlatListSectionListProps<T> = Omit<FlatListProps<T>, "renderItem"> &
21
+ type FlatListSectionListProps<T> = Omit<FlatListProps<T>, "renderItem"> &
22
22
  AdditionalSectionListProps<T>;
23
23
 
24
- export type FlashListSectionListProps<T> = Omit<
25
- FlashListProps<T>,
26
- "renderItem"
27
- > &
24
+ type FlashListSectionListProps<T> = Omit<FlashListProps<T>, "renderItem"> &
28
25
  AdditionalSectionListProps<T>;
29
26
 
30
27
  interface SectionListDataItem<T> {
@@ -1,6 +1,2 @@
1
1
  export { default as SectionList } from "./SectionList";
2
2
  export { default as SectionHeader } from "./SectionHeader";
3
- export type {
4
- FlatListSectionListProps,
5
- FlashListSectionListProps,
6
- } from "./SectionList";
@@ -9,10 +9,10 @@ interface AdditionalSwipeableListProps {
9
9
  listComponent?: ListComponentType;
10
10
  }
11
11
 
12
- export type FlatListSwipeableListProps<T> = FlatListProps<T> &
12
+ type FlatListSwipeableListProps<T> = FlatListProps<T> &
13
13
  AdditionalSwipeableListProps;
14
14
 
15
- export type FlashListSwipeableListProps<T> = FlashListProps<T> &
15
+ type FlashListSwipeableListProps<T> = FlashListProps<T> &
16
16
  AdditionalSwipeableListProps;
17
17
 
18
18
  type SwipeableListContextType = {
@@ -1,7 +1,3 @@
1
1
  export { default as SwipeableItem } from "./SwipeableItem";
2
2
  export { default as SwipeableItemButton } from "./SwipeableItemButton";
3
3
  export { default as SwipeableList } from "./SwipeableList";
4
- export type {
5
- FlashListSwipeableListProps,
6
- FlatListSwipeableListProps,
7
- } from "./SwipeableList";
@@ -1,14 +1,18 @@
1
1
  import React from "react";
2
- import { TextInput as NativeTextInput, } from "react-native";
2
+ import { TextInput as NativeTextInput, Platform, } from "react-native";
3
3
  import { useDebounce, useOnUpdate } from "../hooks";
4
- const TextInput = React.forwardRef(({ onChangeTextDelayed, changeTextDelay = 500, value, ...rest }, ref) => {
4
+ const TextInput = React.forwardRef(({ onChangeTextDelayed, changeTextDelay = 500, webShowOutline = true, style, value, ...rest }, ref) => {
5
5
  const delayedValue = useDebounce(value, changeTextDelay);
6
6
  useOnUpdate(() => {
7
7
  if (delayedValue !== undefined) {
8
8
  onChangeTextDelayed === null || onChangeTextDelayed === void 0 ? void 0 : onChangeTextDelayed(delayedValue);
9
9
  }
10
10
  }, [delayedValue]);
11
- return (React.createElement(NativeTextInput, { testID: "native-text-input", ref: ref, value: value, ...rest }));
11
+ return (React.createElement(NativeTextInput, { testID: "native-text-input", ref: ref, value: value, style: [
12
+ //@ts-ignore Web specific prop. Removes default blue outline that appears on the hidden TextInput
13
+ Platform.OS === "web" && !webShowOutline ? { outlineWidth: 0 } : {},
14
+ style,
15
+ ], ...rest }));
12
16
  });
13
17
  export default TextInput;
14
18
  //# sourceMappingURL=TextInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,IAAI,eAAe,GAE7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOpD,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAChC,CAAC,EAAE,mBAAmB,EAAE,eAAe,GAAG,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAEzD,WAAW,CAAC,GAAG,EAAE;QACf,IAAI,YAAY,KAAK,SAAS,EAAE;YAC9B,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAG,YAAY,CAAC,CAAC;SACrC;IACH,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,oBAAC,eAAe,IACd,MAAM,EAAC,mBAAmB,EAC1B,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,IAAI,eAAe,EAE5B,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQpD,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAChC,CACE,EACE,mBAAmB,EACnB,eAAe,GAAG,GAAG,EACrB,cAAc,GAAG,IAAI,EACrB,KAAK,EACL,KAAK,EACL,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAEzD,WAAW,CAAC,GAAG,EAAE;QACf,IAAI,YAAY,KAAK,SAAS,EAAE;YAC9B,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAG,YAAY,CAAC,CAAC;SACrC;IACH,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,oBAAC,eAAe,IACd,MAAM,EAAC,mBAAmB,EAC1B,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE;YACL,iGAAiG;YACjG,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;YACnE,KAAK;SACN,KACG,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -2,16 +2,28 @@ import React from "react";
2
2
  import {
3
3
  TextInput as NativeTextInput,
4
4
  TextInputProps as NativeTextInputProps,
5
+ Platform,
5
6
  } from "react-native";
6
7
  import { useDebounce, useOnUpdate } from "../hooks";
7
8
 
8
9
  export interface TextInputProps extends NativeTextInputProps {
10
+ webShowOutline?: boolean;
9
11
  onChangeTextDelayed?: (text: string) => void;
10
12
  changeTextDelay?: number;
11
13
  }
12
14
 
13
15
  const TextInput = React.forwardRef<NativeTextInput, TextInputProps>(
14
- ({ onChangeTextDelayed, changeTextDelay = 500, value, ...rest }, ref) => {
16
+ (
17
+ {
18
+ onChangeTextDelayed,
19
+ changeTextDelay = 500,
20
+ webShowOutline = true,
21
+ style,
22
+ value,
23
+ ...rest
24
+ },
25
+ ref
26
+ ) => {
15
27
  const delayedValue = useDebounce(value, changeTextDelay);
16
28
 
17
29
  useOnUpdate(() => {
@@ -25,6 +37,11 @@ const TextInput = React.forwardRef<NativeTextInput, TextInputProps>(
25
37
  testID="native-text-input"
26
38
  ref={ref}
27
39
  value={value}
40
+ style={[
41
+ //@ts-ignore Web specific prop. Removes default blue outline that appears on the hidden TextInput
42
+ Platform.OS === "web" && !webShowOutline ? { outlineWidth: 0 } : {},
43
+ style,
44
+ ]}
28
45
  {...rest}
29
46
  />
30
47
  );
package/src/index.js CHANGED
@@ -43,13 +43,6 @@ export { default as VideoPlayer } from "./components/MediaPlayer/VideoPlayer";
43
43
  export { PinInput, CustomPinInputCell, PinInputText as CustomPinInputText, } from "./components/PinInput";
44
44
  export { AspectRatio, Circle, Center, HStack, VStack, ZStack, Spacer, Square, } from "./components/Layout";
45
45
  export { default as KeyboardAvoidingView } from "./components/KeyboardAvoidingView";
46
- export { default as SimpleStyleFlashList } from "./components/SimpleStyleScrollables/SimpleStyleFlashList";
47
- export { default as SimpleStyleFlatList } from "./components/SimpleStyleScrollables/SimpleStyleFlatList";
48
- export { default as SimpleStyleKeyboardAwareScrollView } from "./components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView";
49
- export { default as SimpleStyleMasonryFlashList } from "./components/SimpleStyleScrollables/SimpleStyleMasonryFlashList";
50
- export { default as SimpleStyleScrollView } from "./components/SimpleStyleScrollables/SimpleStyleScrollView";
51
- export { default as SimpleStyleSectionList } from "./components/SimpleStyleScrollables/SimpleStyleSectionList";
52
- export { default as SimpleStyleSwipeableList } from "./components/SimpleStyleScrollables/SimpleStyleSwipeableList";
53
46
  /* Deprecated: Fix or Delete! */
54
47
  export { default as AccordionItem } from "./deprecated-components/AccordionItem";
55
48
  export { default as AvatarEdit } from "./deprecated-components/AvatarEdit";
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,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;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,I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A8B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EACL,MAAM,IAAI,gBAAgB,EAC1B,MAAM,IAAI,gBAAgB,EAC1B,MAAM,IAAI,gBAAgB,EAC1B,GAAG,EACH,KAAK,GACN,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,2CAA2C,CAAC"}
package/src/index.tsx CHANGED
@@ -70,13 +70,6 @@ export {
70
70
  Square,
71
71
  } from "./components/Layout";
72
72
  export { default as KeyboardAvoidingView } from "./components/KeyboardAvoidingView";
73
- export { default as SimpleStyleFlashList } from "./components/SimpleStyleScrollables/SimpleStyleFlashList";
74
- export { default as SimpleStyleFlatList } from "./components/SimpleStyleScrollables/SimpleStyleFlatList";
75
- export { default as SimpleStyleKeyboardAwareScrollView } from "./components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView";
76
- export { default as SimpleStyleMasonryFlashList } from "./components/SimpleStyleScrollables/SimpleStyleMasonryFlashList";
77
- export { default as SimpleStyleScrollView } from "./components/SimpleStyleScrollables/SimpleStyleScrollView";
78
- export { default as SimpleStyleSectionList } from "./components/SimpleStyleScrollables/SimpleStyleSectionList";
79
- export { default as SimpleStyleSwipeableList } from "./components/SimpleStyleScrollables/SimpleStyleSwipeableList";
80
73
 
81
74
  /* Deprecated: Fix or Delete! */
82
75
  export { default as AccordionItem } from "./deprecated-components/AccordionItem";
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleFlashList.tsx";import React from"react";import{FlashList}from"@shopify/flash-list";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleFlashList=function SimpleStyleFlashList(_ref){var styleProp=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),measuredWidth=_React$useState2[0],setMeasuredWidth=_React$useState2[1];var _React$useState3=React.useState(),_React$useState4=_slicedToArray(_React$useState3,2),measuredHeight=_React$useState4[0],setMeasuredHeight=_React$useState4[1];var _useSplitContentConta=useSplitContentContainerStyles(styleProp,measuredWidth,measuredHeight),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(FlashList,Object.assign({onLayout:function onLayout(event){setMeasuredWidth(event.nativeEvent.layout.width);setMeasuredHeight(event.nativeEvent.layout.height);},style:style,contentContainerStyle:contentContainerStyle},rest));};export default SimpleStyleFlashList;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx";import React from"react";import{FlatList}from"react-native";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleFlatList=function SimpleStyleFlatList(_ref){var styleProp=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),measuredWidth=_React$useState2[0],setMeasuredWidth=_React$useState2[1];var _React$useState3=React.useState(),_React$useState4=_slicedToArray(_React$useState3,2),measuredHeight=_React$useState4[0],setMeasuredHeight=_React$useState4[1];var _useSplitContentConta=useSplitContentContainerStyles(styleProp,measuredWidth,measuredHeight),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(FlatList,Object.assign({onLayout:function onLayout(event){setMeasuredWidth(event.nativeEvent.layout.width);setMeasuredHeight(event.nativeEvent.layout.height);},style:style,contentContainerStyle:contentContainerStyle},rest));};export default SimpleStyleFlatList;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.tsx";import React from"react";import{KeyboardAwareScrollView}from"react-native-keyboard-aware-scroll-view";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleKeyboardAwareScrollView=function SimpleStyleKeyboardAwareScrollView(_ref){var styleProp=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),measuredWidth=_React$useState2[0],setMeasuredWidth=_React$useState2[1];var _React$useState3=React.useState(),_React$useState4=_slicedToArray(_React$useState3,2),measuredHeight=_React$useState4[0],setMeasuredHeight=_React$useState4[1];var _useSplitContentConta=useSplitContentContainerStyles(styleProp,measuredWidth,measuredHeight),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(KeyboardAwareScrollView,Object.assign({onLayout:function onLayout(event){setMeasuredWidth(event.nativeEvent.layout.width);setMeasuredHeight(event.nativeEvent.layout.height);},style:style,contentContainerStyle:contentContainerStyle},rest));};export default SimpleStyleKeyboardAwareScrollView;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.tsx";import React from"react";import{MasonryFlashList}from"@shopify/flash-list";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleMasonryFlashList=function SimpleStyleMasonryFlashList(_ref){var styleProp=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),measuredWidth=_React$useState2[0],setMeasuredWidth=_React$useState2[1];var _React$useState3=React.useState(),_React$useState4=_slicedToArray(_React$useState3,2),measuredHeight=_React$useState4[0],setMeasuredHeight=_React$useState4[1];var _useSplitContentConta=useSplitContentContainerStyles(styleProp,measuredWidth,measuredHeight),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(MasonryFlashList,Object.assign({onLayout:function onLayout(event){setMeasuredWidth(event.nativeEvent.layout.width);setMeasuredHeight(event.nativeEvent.layout.height);},style:style,contentContainerStyle:contentContainerStyle},rest));};export default SimpleStyleMasonryFlashList;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleScrollView.tsx";import React from"react";import{ScrollView}from"react-native";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleScrollView=function SimpleStyleScrollView(_ref){var styleProp=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),measuredWidth=_React$useState2[0],setMeasuredWidth=_React$useState2[1];var _React$useState3=React.useState(),_React$useState4=_slicedToArray(_React$useState3,2),measuredHeight=_React$useState4[0],setMeasuredHeight=_React$useState4[1];var _useSplitContentConta=useSplitContentContainerStyles(styleProp,measuredWidth,measuredHeight),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(ScrollView,Object.assign({onLayout:function onLayout(event){setMeasuredWidth(event.nativeEvent.layout.width);setMeasuredHeight(event.nativeEvent.layout.height);},style:style,contentContainerStyle:contentContainerStyle},rest));};export default SimpleStyleScrollView;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleSectionList.tsx";import React from"react";import{SectionList}from"../SectionList";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleSectionList=function SimpleStyleSectionList(_ref){var styleProp=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),measuredWidth=_React$useState2[0],setMeasuredWidth=_React$useState2[1];var _React$useState3=React.useState(),_React$useState4=_slicedToArray(_React$useState3,2),measuredHeight=_React$useState4[0],setMeasuredHeight=_React$useState4[1];var _useSplitContentConta=useSplitContentContainerStyles(styleProp,measuredWidth,measuredHeight),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(SectionList,Object.assign({onLayout:function onLayout(event){setMeasuredWidth(event.nativeEvent.layout.width);setMeasuredHeight(event.nativeEvent.layout.height);},style:style,contentContainerStyle:contentContainerStyle},rest));};export default SimpleStyleSectionList;
@@ -1 +0,0 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx";import React from"react";import{SwipeableList}from"../SwipeableItem";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleSwipeableList=function SimpleStyleSwipeableList(_ref){var styleProp=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(),_React$useState2=_slicedToArray(_React$useState,2),measuredWidth=_React$useState2[0],setMeasuredWidth=_React$useState2[1];var _React$useState3=React.useState(),_React$useState4=_slicedToArray(_React$useState3,2),measuredHeight=_React$useState4[0],setMeasuredHeight=_React$useState4[1];var _useSplitContentConta=useSplitContentContainerStyles(styleProp,measuredWidth,measuredHeight),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(SwipeableList,Object.assign({onLayout:function onLayout(event){setMeasuredWidth(event.nativeEvent.layout.width);setMeasuredHeight(event.nativeEvent.layout.height);},style:style,contentContainerStyle:contentContainerStyle},rest));};export default SimpleStyleSwipeableList;
@@ -1 +0,0 @@
1
- import{StyleSheet}from"react-native";import{pick,omit}from"lodash";import{useDeepCompareMemo}from"../../utilities";export var contentContainerStyleNames=["padding","paddingBottom","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical","justifyContent","alignItems","alignContent","flexDirection","flexWrap"];export default function useSplitContentContainerStyles(originalStyle,measuredWidth,measuredHeight){return useDeepCompareMemo(function(){var flattenedStyle=StyleSheet.flatten(originalStyle);var contentContainerStyle=pick(flattenedStyle,contentContainerStyleNames);if(measuredWidth){contentContainerStyle.minWidth=measuredWidth;}if(measuredHeight){contentContainerStyle.minHeight=measuredHeight;}var style=omit(flattenedStyle,contentContainerStyleNames);if(style.flex===undefined){style=Object.assign({flexGrow:0},style);}else if(style.flexGrow===undefined){style=Object.assign({flexGrow:style.flex},style);}return{style:style,contentContainerStyle:contentContainerStyle};},[originalStyle,measuredWidth,measuredHeight]);}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import type { FlashListProps } from "@shopify/flash-list";
3
- /**
4
- * A FlashList wrapper that takes a single `style` prop and internally extracts
5
- * the appropriate style keys into the `contentContainerStyle`
6
- */
7
- declare const SimpleStyleFlashList: <T extends unknown>({ style: styleProp, ...rest }: Omit<FlashListProps<T>, "contentContainerStyle">) => React.JSX.Element;
8
- export default SimpleStyleFlashList;
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { FlashList } from "@shopify/flash-list";
3
- import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
4
- /**
5
- * A FlashList wrapper that takes a single `style` prop and internally extracts
6
- * the appropriate style keys into the `contentContainerStyle`
7
- */
8
- const SimpleStyleFlashList = ({ style: styleProp, ...rest }) => {
9
- const [measuredWidth, setMeasuredWidth] = React.useState();
10
- const [measuredHeight, setMeasuredHeight] = React.useState();
11
- const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp, measuredWidth, measuredHeight);
12
- return (React.createElement(FlashList, { onLayout: (event) => {
13
- setMeasuredWidth(event.nativeEvent.layout.width);
14
- setMeasuredHeight(event.nativeEvent.layout.height);
15
- }, style: style, contentContainerStyle: contentContainerStyle, ...rest }));
16
- };
17
- export default SimpleStyleFlashList;
18
- //# sourceMappingURL=SimpleStyleFlashList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleStyleFlashList.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAgB,EAC3C,KAAK,EAAE,SAAS,EAChB,GAAG,IAAI,EAC0C,EAAE,EAAE;IACrD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IAErE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,8BAA8B,CACrE,SAAS,EACT,aAAa,EACb,cAAc,CACf,CAAC;IAEF,OAAO,CACL,oBAAC,SAAS,IACR,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqC,KACxD,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import type { FlatListProps } from "react-native";
3
- /**
4
- * A FlatList wrapper that takes a single `style` prop and internally extracts
5
- * the appropriate style keys into the `contentContainerStyle`
6
- */
7
- declare const SimpleStyleFlatList: <T extends unknown>({ style: styleProp, ...rest }: Omit<FlatListProps<T>, "contentContainerStyle">) => React.JSX.Element;
8
- export default SimpleStyleFlatList;
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { FlatList } from "react-native";
3
- import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
4
- /**
5
- * A FlatList wrapper that takes a single `style` prop and internally extracts
6
- * the appropriate style keys into the `contentContainerStyle`
7
- */
8
- const SimpleStyleFlatList = ({ style: styleProp, ...rest }) => {
9
- const [measuredWidth, setMeasuredWidth] = React.useState();
10
- const [measuredHeight, setMeasuredHeight] = React.useState();
11
- const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp, measuredWidth, measuredHeight);
12
- return (React.createElement(FlatList, { onLayout: (event) => {
13
- setMeasuredWidth(event.nativeEvent.layout.width);
14
- setMeasuredHeight(event.nativeEvent.layout.height);
15
- }, style: style, contentContainerStyle: contentContainerStyle, ...rest }));
16
- };
17
- export default SimpleStyleFlatList;
18
- //# sourceMappingURL=SimpleStyleFlatList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleStyleFlatList.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,mBAAmB,GAAG,CAAgB,EAC1C,KAAK,EAAE,SAAS,EAChB,GAAG,IAAI,EACyC,EAAE,EAAE;IACpD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IAErE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,8BAA8B,CACrE,SAAS,EACT,aAAa,EACb,cAAc,CACf,CAAC;IAEF,OAAO,CACL,oBAAC,QAAQ,IACP,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,KACxC,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import type { KeyboardAwareScrollViewProps } from "react-native-keyboard-aware-scroll-view";
3
- /**
4
- * A KeyboardAwareScrollView wrapper that takes a single `style` prop and internally extracts
5
- * the appropriate style keys into the `contentContainerStyle`
6
- */
7
- declare const SimpleStyleKeyboardAwareScrollView: React.FC<Omit<KeyboardAwareScrollViewProps, "contentContainerStyle">>;
8
- export default SimpleStyleKeyboardAwareScrollView;
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
3
- import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
4
- /**
5
- * A KeyboardAwareScrollView wrapper that takes a single `style` prop and internally extracts
6
- * the appropriate style keys into the `contentContainerStyle`
7
- */
8
- const SimpleStyleKeyboardAwareScrollView = ({ style: styleProp, ...rest }) => {
9
- const [measuredWidth, setMeasuredWidth] = React.useState();
10
- const [measuredHeight, setMeasuredHeight] = React.useState();
11
- const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp, measuredWidth, measuredHeight);
12
- return (React.createElement(KeyboardAwareScrollView, { onLayout: (event) => {
13
- setMeasuredWidth(event.nativeEvent.layout.width);
14
- setMeasuredHeight(event.nativeEvent.layout.height);
15
- }, style: style, contentContainerStyle: contentContainerStyle, ...rest }));
16
- };
17
- export default SimpleStyleKeyboardAwareScrollView;
18
- //# sourceMappingURL=SimpleStyleKeyboardAwareScrollView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleStyleKeyboardAwareScrollView.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,kCAAkC,GAEpC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IAErE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,8BAA8B,CACrE,SAAS,EACT,aAAa,EACb,cAAc,CACf,CAAC;IAEF,OAAO,CACL,oBAAC,uBAAuB,IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,KACxC,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import type { MasonryFlashListProps } from "@shopify/flash-list";
3
- /**
4
- * A MasonryFlashList wrapper that takes a single `style` prop and internally extracts
5
- * the appropriate style keys into the `contentContainerStyle`
6
- */
7
- declare const SimpleStyleMasonryFlashList: <T extends unknown>({ style: styleProp, ...rest }: Omit<MasonryFlashListProps<T>, "contentContainerStyle">) => React.JSX.Element;
8
- export default SimpleStyleMasonryFlashList;
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { MasonryFlashList } from "@shopify/flash-list";
3
- import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
4
- /**
5
- * A MasonryFlashList wrapper that takes a single `style` prop and internally extracts
6
- * the appropriate style keys into the `contentContainerStyle`
7
- */
8
- const SimpleStyleMasonryFlashList = ({ style: styleProp, ...rest }) => {
9
- const [measuredWidth, setMeasuredWidth] = React.useState();
10
- const [measuredHeight, setMeasuredHeight] = React.useState();
11
- const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp, measuredWidth, measuredHeight);
12
- return (React.createElement(MasonryFlashList, { onLayout: (event) => {
13
- setMeasuredWidth(event.nativeEvent.layout.width);
14
- setMeasuredHeight(event.nativeEvent.layout.height);
15
- }, style: style, contentContainerStyle: contentContainerStyle, ...rest }));
16
- };
17
- export default SimpleStyleMasonryFlashList;
18
- //# sourceMappingURL=SimpleStyleMasonryFlashList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleStyleMasonryFlashList.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,2BAA2B,GAAG,CAAgB,EAClD,KAAK,EAAE,SAAS,EAChB,GAAG,IAAI,EACiD,EAAE,EAAE;IAC5D,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IAErE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,8BAA8B,CACrE,SAAS,EACT,aAAa,EACb,cAAc,CACf,CAAC;IAEF,OAAO,CACL,oBAAC,gBAAgB,IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqC,KACxD,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import type { ScrollViewProps } from "react-native";
3
- /**
4
- * A ScrollView wrapper that takes a single `style` prop and internally extracts
5
- * the appropriate style keys into the `contentContainerStyle`
6
- */
7
- declare const SimpleStyleScrollView: React.FC<Omit<ScrollViewProps, "contentContainerStyle">>;
8
- export default SimpleStyleScrollView;
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- import { ScrollView } from "react-native";
3
- import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
4
- /**
5
- * A ScrollView wrapper that takes a single `style` prop and internally extracts
6
- * the appropriate style keys into the `contentContainerStyle`
7
- */
8
- const SimpleStyleScrollView = ({ style: styleProp, ...rest }) => {
9
- const [measuredWidth, setMeasuredWidth] = React.useState();
10
- const [measuredHeight, setMeasuredHeight] = React.useState();
11
- const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp, measuredWidth, measuredHeight);
12
- return (React.createElement(ScrollView, { onLayout: (event) => {
13
- setMeasuredWidth(event.nativeEvent.layout.width);
14
- setMeasuredHeight(event.nativeEvent.layout.height);
15
- }, style: style, contentContainerStyle: contentContainerStyle, ...rest }));
16
- };
17
- export default SimpleStyleScrollView;
18
- //# sourceMappingURL=SimpleStyleScrollView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleStyleScrollView.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,qBAAqB,GAEvB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IAErE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,8BAA8B,CACrE,SAAS,EACT,aAAa,EACb,cAAc,CACf,CAAC;IAEF,OAAO,CACL,oBAAC,UAAU,IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,KACxC,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import type { FlatListSectionListProps, FlashListSectionListProps } from "../SectionList";
3
- /**
4
- * A SectionList wrapper that takes a single `style` prop and internally extracts
5
- * the appropriate style keys into the `contentContainerStyle`
6
- */
7
- declare const SimpleStyleSectionList: <T extends {
8
- [key: string]: any;
9
- }>({ style: styleProp, ...rest }: Omit<FlatListSectionListProps<T> | FlashListSectionListProps<T>, "contentContainerStyle">) => React.JSX.Element;
10
- export default SimpleStyleSectionList;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import { SectionList } from "../SectionList";
3
- import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
4
- /**
5
- * A SectionList wrapper that takes a single `style` prop and internally extracts
6
- * the appropriate style keys into the `contentContainerStyle`
7
- */
8
- const SimpleStyleSectionList = ({ style: styleProp, ...rest }) => {
9
- const [measuredWidth, setMeasuredWidth] = React.useState();
10
- const [measuredHeight, setMeasuredHeight] = React.useState();
11
- const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp, measuredWidth, measuredHeight);
12
- return (
13
- //@ts-ignore contentContainerStyle has different types for FlashList and FlatList implmentations and confuses TS
14
- React.createElement(SectionList, { onLayout: (event) => {
15
- setMeasuredWidth(event.nativeEvent.layout.width);
16
- setMeasuredHeight(event.nativeEvent.layout.height);
17
- }, style: style, contentContainerStyle: contentContainerStyle, ...rest }));
18
- };
19
- export default SimpleStyleSectionList;
20
- //# sourceMappingURL=SimpleStyleSectionList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleStyleSectionList.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleSectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,sBAAsB,GAAG,CAAmC,EAChE,KAAK,EAAE,SAAS,EAChB,GAAG,IAAI,EAIR,EAAE,EAAE;IACH,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IAErE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,8BAA8B,CACrE,SAAS,EACT,aAAa,EACb,cAAc,CACf,CAAC;IAEF,OAAO;IACL,gHAAgH;IAChH,oBAAC,WAAW,IACV,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,KACxC,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import type { FlashListSwipeableListProps, FlatListSwipeableListProps } from "../SwipeableItem";
3
- /**
4
- * A SwipeableList wrapper that takes a single `style` prop and internally extracts
5
- * the appropriate style keys into the `contentContainerStyle`
6
- */
7
- declare const SimpleStyleSwipeableList: <T extends {
8
- [key: string]: any;
9
- }>({ style: styleProp, ...rest }: Omit<FlashListSwipeableListProps<T> | FlatListSwipeableListProps<T>, "contentContainerStyle">) => React.JSX.Element;
10
- export default SimpleStyleSwipeableList;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import { SwipeableList } from "../SwipeableItem";
3
- import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
4
- /**
5
- * A SwipeableList wrapper that takes a single `style` prop and internally extracts
6
- * the appropriate style keys into the `contentContainerStyle`
7
- */
8
- const SimpleStyleSwipeableList = ({ style: styleProp, ...rest }) => {
9
- const [measuredWidth, setMeasuredWidth] = React.useState();
10
- const [measuredHeight, setMeasuredHeight] = React.useState();
11
- const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp, measuredWidth, measuredHeight);
12
- return (
13
- //@ts-ignore contentContainerStyle has different types for FlashList and FlatList implmentations and confuses TS
14
- React.createElement(SwipeableList, { onLayout: (event) => {
15
- setMeasuredWidth(event.nativeEvent.layout.width);
16
- setMeasuredHeight(event.nativeEvent.layout.height);
17
- }, style: style, contentContainerStyle: contentContainerStyle, ...rest }));
18
- };
19
- export default SimpleStyleSwipeableList;
20
- //# sourceMappingURL=SimpleStyleSwipeableList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleStyleSwipeableList.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,wBAAwB,GAAG,CAAmC,EAClE,KAAK,EAAE,SAAS,EAChB,GAAG,IAAI,EAIR,EAAE,EAAE;IACH,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IAErE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,8BAA8B,CACrE,SAAS,EACT,aAAa,EACb,cAAc,CACf,CAAC;IAEF,OAAO;IACL,gHAAgH;IAChH,oBAAC,aAAa,IACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,KACxC,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1,8 +0,0 @@
1
- import { StyleProp, ViewStyle } from "react-native";
2
- interface Styles {
3
- style?: StyleProp<ViewStyle>;
4
- contentContainerStyle?: StyleProp<ViewStyle>;
5
- }
6
- export declare const contentContainerStyleNames: string[];
7
- export default function useSplitContentContainerStyles(originalStyle: StyleProp<ViewStyle>, measuredWidth?: number, measuredHeight?: number): Styles;
8
- export {};
@@ -1,43 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { pick, omit } from "lodash";
3
- import { useDeepCompareMemo } from "../../utilities";
4
- export const contentContainerStyleNames = [
5
- "padding",
6
- "paddingBottom",
7
- "paddingEnd",
8
- "paddingHorizontal",
9
- "paddingLeft",
10
- "paddingRight",
11
- "paddingStart",
12
- "paddingTop",
13
- "paddingVertical",
14
- "justifyContent",
15
- "alignItems",
16
- "alignContent",
17
- "flexDirection",
18
- "flexWrap",
19
- ];
20
- export default function useSplitContentContainerStyles(originalStyle, measuredWidth, measuredHeight) {
21
- return useDeepCompareMemo(() => {
22
- const flattenedStyle = StyleSheet.flatten(originalStyle);
23
- let contentContainerStyle = pick(flattenedStyle, contentContainerStyleNames);
24
- // contentContainerStyle should always at least fill the parent to ensure sizing changes reflects properly on component and children
25
- if (measuredWidth) {
26
- contentContainerStyle.minWidth = measuredWidth;
27
- }
28
- if (measuredHeight) {
29
- contentContainerStyle.minHeight = measuredHeight;
30
- }
31
- let style = omit(flattenedStyle, contentContainerStyleNames);
32
- // ScrollView's implementation defaults flexGrow to 1, which prevents the ability to set a static size or use a flex larger than 1
33
- // See: https://github.com/facebook/react-native/issues/3422
34
- if (style.flex === undefined) {
35
- style = { flexGrow: 0, ...style };
36
- }
37
- else if (style.flexGrow === undefined) {
38
- style = { flexGrow: style.flex, ...style };
39
- }
40
- return { style, contentContainerStyle };
41
- }, [originalStyle, measuredWidth, measuredHeight]);
42
- }
43
- //# sourceMappingURL=useSplitContentContainerStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSplitContentContainerStyles.js","sourceRoot":"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C5C;QAED,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC1C,CAAC,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;AACrD,CAAC"}
@@ -1,3 +0,0 @@
1
- ### Why do we need these components?
2
-
3
- At it's current state the Draftbit builder has a single interface for setting the styles of a component. With these scrollable components, there are 2 style props `style` and `contentContainerStyle`. To simplify the codegen on the draftbit side and hide the complexity from the user, these components take a single style and distrubte them across both style props appropriately.