@draftbit/core 54.0.3 → 54.0.4-6c949a.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 (326) hide show
  1. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +6 -4
  3. package/src/Provider.js +0 -10
  4. package/src/Provider.js.map +0 -1
  5. package/src/components/AccordionGroup.js +0 -51
  6. package/src/components/AccordionGroup.js.map +0 -1
  7. package/src/components/ActionSheet/ActionSheet.js +0 -46
  8. package/src/components/ActionSheet/ActionSheet.js.map +0 -1
  9. package/src/components/ActionSheet/ActionSheetCancel.js +0 -7
  10. package/src/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  11. package/src/components/ActionSheet/ActionSheetItem.js +0 -31
  12. package/src/components/ActionSheet/ActionSheetItem.js.map +0 -1
  13. package/src/components/ActionSheet/index.js +0 -4
  14. package/src/components/ActionSheet/index.js.map +0 -1
  15. package/src/components/AspectRatio.js +0 -19
  16. package/src/components/AspectRatio.js.map +0 -1
  17. package/src/components/BottomSheet/BottomSheet.js +0 -76
  18. package/src/components/BottomSheet/BottomSheet.js.map +0 -1
  19. package/src/components/BottomSheet/index.js +0 -2
  20. package/src/components/BottomSheet/index.js.map +0 -1
  21. package/src/components/Button.js +0 -119
  22. package/src/components/Button.js.map +0 -1
  23. package/src/components/Checkbox/Checkbox.js +0 -63
  24. package/src/components/Checkbox/Checkbox.js.map +0 -1
  25. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  26. package/src/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  27. package/src/components/Checkbox/CheckboxRow.js +0 -79
  28. package/src/components/Checkbox/CheckboxRow.js.map +0 -1
  29. package/src/components/Checkbox/context.js +0 -15
  30. package/src/components/Checkbox/context.js.map +0 -1
  31. package/src/components/Checkbox/index.js +0 -3
  32. package/src/components/Checkbox/index.js.map +0 -1
  33. package/src/components/Config.js +0 -65
  34. package/src/components/Config.js.map +0 -1
  35. package/src/components/DatePicker/DatePicker.js +0 -418
  36. package/src/components/DatePicker/DatePicker.js.map +0 -1
  37. package/src/components/DatePicker/DatePickerComponent.js +0 -17
  38. package/src/components/DatePicker/DatePickerComponent.js.map +0 -1
  39. package/src/components/DatePicker/DatePickerComponent.web.js +0 -57
  40. package/src/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  41. package/src/components/DatePicker/DatePickerComponentType.js +0 -2
  42. package/src/components/DatePicker/DatePickerComponentType.js.map +0 -1
  43. package/src/components/DatePicker/parseDate.js +0 -12
  44. package/src/components/DatePicker/parseDate.js.map +0 -1
  45. package/src/components/DeckSwiper/DeckSwiper.js +0 -116
  46. package/src/components/DeckSwiper/DeckSwiper.js.map +0 -1
  47. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
  48. package/src/components/DeckSwiper/DeckSwiperCard.js.map +0 -1
  49. package/src/components/DeckSwiper/index.js +0 -3
  50. package/src/components/DeckSwiper/index.js.map +0 -1
  51. package/src/components/Divider.js +0 -14
  52. package/src/components/Divider.js.map +0 -1
  53. package/src/components/Elevation.js +0 -20
  54. package/src/components/Elevation.js.map +0 -1
  55. package/src/components/ExpoImage.js +0 -44
  56. package/src/components/ExpoImage.js.map +0 -1
  57. package/src/components/FlatList.js +0 -7
  58. package/src/components/FlatList.js.map +0 -1
  59. package/src/components/FormRow.js +0 -20
  60. package/src/components/FormRow.js.map +0 -1
  61. package/src/components/IconButton.js +0 -36
  62. package/src/components/IconButton.js.map +0 -1
  63. package/src/components/Image.js +0 -48
  64. package/src/components/Image.js.map +0 -1
  65. package/src/components/KeyboardAvoidingView.js +0 -29
  66. package/src/components/KeyboardAvoidingView.js.map +0 -1
  67. package/src/components/Layout/AspectRatio.js +0 -7
  68. package/src/components/Layout/AspectRatio.js.map +0 -1
  69. package/src/components/Layout/Center.js +0 -15
  70. package/src/components/Layout/Center.js.map +0 -1
  71. package/src/components/Layout/Circle.js +0 -16
  72. package/src/components/Layout/Circle.js.map +0 -1
  73. package/src/components/Layout/HStack.js +0 -12
  74. package/src/components/Layout/HStack.js.map +0 -1
  75. package/src/components/Layout/LayoutCommon.js +0 -8
  76. package/src/components/Layout/LayoutCommon.js.map +0 -1
  77. package/src/components/Layout/Spacer.js +0 -15
  78. package/src/components/Layout/Spacer.js.map +0 -1
  79. package/src/components/Layout/Square.js +0 -25
  80. package/src/components/Layout/Square.js.map +0 -1
  81. package/src/components/Layout/VStack.js +0 -12
  82. package/src/components/Layout/VStack.js.map +0 -1
  83. package/src/components/Layout/ZStack.js +0 -58
  84. package/src/components/Layout/ZStack.js.map +0 -1
  85. package/src/components/Layout/index.js +0 -9
  86. package/src/components/Layout/index.js.map +0 -1
  87. package/src/components/LoadingIndicator.js +0 -38
  88. package/src/components/LoadingIndicator.js.map +0 -1
  89. package/src/components/LottieAnimation.js +0 -12
  90. package/src/components/LottieAnimation.js.map +0 -1
  91. package/src/components/Markdown.js +0 -33
  92. package/src/components/Markdown.js.map +0 -1
  93. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -2
  94. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +0 -1
  95. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -123
  96. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +0 -1
  97. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -90
  98. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +0 -1
  99. package/src/components/MediaPlayer/AudioPlayer/index.js +0 -13
  100. package/src/components/MediaPlayer/AudioPlayer/index.js.map +0 -1
  101. package/src/components/MediaPlayer/MediaPlaybackWrapper.js +0 -42
  102. package/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +0 -1
  103. package/src/components/MediaPlayer/MediaPlayerCommon.js +0 -71
  104. package/src/components/MediaPlayer/MediaPlayerCommon.js.map +0 -1
  105. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +0 -109
  106. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +0 -1
  107. package/src/components/MediaPlayer/VideoPlayer/index.js +0 -2
  108. package/src/components/MediaPlayer/VideoPlayer/index.js.map +0 -1
  109. package/src/components/NumberInput.js +0 -63
  110. package/src/components/NumberInput.js.map +0 -1
  111. package/src/components/Picker/NativePicker.ios.js +0 -77
  112. package/src/components/Picker/NativePicker.ios.js.map +0 -1
  113. package/src/components/Picker/NativePicker.js +0 -73
  114. package/src/components/Picker/NativePicker.js.map +0 -1
  115. package/src/components/Picker/PickerCommon.js +0 -36
  116. package/src/components/Picker/PickerCommon.js.map +0 -1
  117. package/src/components/Picker/PickerInputContainer.js +0 -36
  118. package/src/components/Picker/PickerInputContainer.js.map +0 -1
  119. package/src/components/Picker/dropdown/DropDownModalPicker.js +0 -70
  120. package/src/components/Picker/dropdown/DropDownModalPicker.js.map +0 -1
  121. package/src/components/Picker/dropdown/DropDownPicker.js +0 -61
  122. package/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
  123. package/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
  124. package/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
  125. package/src/components/Picker/dropdown/PickerItem.js +0 -9
  126. package/src/components/Picker/dropdown/PickerItem.js.map +0 -1
  127. package/src/components/Picker/index.js +0 -22
  128. package/src/components/Picker/index.js.map +0 -1
  129. package/src/components/PinInput/CustomPinInputCell.js +0 -11
  130. package/src/components/PinInput/CustomPinInputCell.js.map +0 -1
  131. package/src/components/PinInput/PinInput.js +0 -89
  132. package/src/components/PinInput/PinInput.js.map +0 -1
  133. package/src/components/PinInput/PinInputText.js +0 -14
  134. package/src/components/PinInput/PinInputText.js.map +0 -1
  135. package/src/components/PinInput/index.js +0 -4
  136. package/src/components/PinInput/index.js.map +0 -1
  137. package/src/components/Portal/Portal.js +0 -34
  138. package/src/components/Portal/Portal.js.map +0 -1
  139. package/src/components/Portal/PortalConsumer.js +0 -28
  140. package/src/components/Portal/PortalConsumer.js.map +0 -1
  141. package/src/components/Portal/PortalHost.js +0 -109
  142. package/src/components/Portal/PortalHost.js.map +0 -1
  143. package/src/components/Portal/PortalManager.js +0 -33
  144. package/src/components/Portal/PortalManager.js.map +0 -1
  145. package/src/components/Pressable.js +0 -23
  146. package/src/components/Pressable.js.map +0 -1
  147. package/src/components/Progress/CircularProgress/CircularProgress.js +0 -103
  148. package/src/components/Progress/CircularProgress/CircularProgress.js.map +0 -1
  149. package/src/components/Progress/CircularProgress/index.js +0 -14
  150. package/src/components/Progress/CircularProgress/index.js.map +0 -1
  151. package/src/components/Progress/IndeterminateProgress.js +0 -39
  152. package/src/components/Progress/IndeterminateProgress.js.map +0 -1
  153. package/src/components/Progress/LinearProgress/LinearProgress.js +0 -57
  154. package/src/components/Progress/LinearProgress/LinearProgress.js.map +0 -1
  155. package/src/components/Progress/LinearProgress/index.js +0 -14
  156. package/src/components/Progress/LinearProgress/index.js.map +0 -1
  157. package/src/components/Progress/ProgressCommon.js +0 -2
  158. package/src/components/Progress/ProgressCommon.js.map +0 -1
  159. package/src/components/ProgressIndicator.js +0 -28
  160. package/src/components/ProgressIndicator.js.map +0 -1
  161. package/src/components/RadioButton/RadioButton.js +0 -18
  162. package/src/components/RadioButton/RadioButton.js.map +0 -1
  163. package/src/components/RadioButton/RadioButtonGroup.js +0 -44
  164. package/src/components/RadioButton/RadioButtonGroup.js.map +0 -1
  165. package/src/components/RadioButton/RadioButtonRow.js +0 -79
  166. package/src/components/RadioButton/RadioButtonRow.js.map +0 -1
  167. package/src/components/RadioButton/context.js +0 -15
  168. package/src/components/RadioButton/context.js.map +0 -1
  169. package/src/components/RadioButton/index.js +0 -4
  170. package/src/components/RadioButton/index.js.map +0 -1
  171. package/src/components/Row.js +0 -49
  172. package/src/components/Row.js.map +0 -1
  173. package/src/components/SVG.js +0 -8
  174. package/src/components/SVG.js.map +0 -1
  175. package/src/components/SVG.native.js +0 -10
  176. package/src/components/SVG.native.js.map +0 -1
  177. package/src/components/ScreenContainer.js +0 -42
  178. package/src/components/ScreenContainer.js.map +0 -1
  179. package/src/components/SectionList/SectionHeader.js +0 -14
  180. package/src/components/SectionList/SectionHeader.js.map +0 -1
  181. package/src/components/SectionList/SectionList.js +0 -111
  182. package/src/components/SectionList/SectionList.js.map +0 -1
  183. package/src/components/SectionList/index.js +0 -3
  184. package/src/components/SectionList/index.js.map +0 -1
  185. package/src/components/Shadow.js +0 -26
  186. package/src/components/Shadow.js.map +0 -1
  187. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +0 -13
  188. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +0 -1
  189. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +0 -13
  190. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +0 -1
  191. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +0 -13
  192. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +0 -1
  193. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +0 -13
  194. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +0 -1
  195. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +0 -13
  196. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +0 -1
  197. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +0 -15
  198. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +0 -1
  199. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +0 -15
  200. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +0 -1
  201. package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js +0 -91
  202. package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js.map +0 -1
  203. package/src/components/Slider.js +0 -84
  204. package/src/components/Slider.js.map +0 -1
  205. package/src/components/StarRating.js +0 -51
  206. package/src/components/StarRating.js.map +0 -1
  207. package/src/components/StepIndicator.js +0 -347
  208. package/src/components/StepIndicator.js.map +0 -1
  209. package/src/components/Stepper.js +0 -43
  210. package/src/components/Stepper.js.map +0 -1
  211. package/src/components/Surface.js +0 -55
  212. package/src/components/Surface.js.map +0 -1
  213. package/src/components/SwipeableItem/SwipeableItem.js +0 -124
  214. package/src/components/SwipeableItem/SwipeableItem.js.map +0 -1
  215. package/src/components/SwipeableItem/SwipeableItemButton.js +0 -6
  216. package/src/components/SwipeableItem/SwipeableItemButton.js.map +0 -1
  217. package/src/components/SwipeableItem/SwipeableItemCommon.js +0 -44
  218. package/src/components/SwipeableItem/SwipeableItemCommon.js.map +0 -1
  219. package/src/components/SwipeableItem/SwipeableList.js +0 -29
  220. package/src/components/SwipeableItem/SwipeableList.js.map +0 -1
  221. package/src/components/SwipeableItem/index.js +0 -4
  222. package/src/components/SwipeableItem/index.js.map +0 -1
  223. package/src/components/Swiper/Swiper.js +0 -99
  224. package/src/components/Swiper/Swiper.js.map +0 -1
  225. package/src/components/Swiper/SwiperItem.js +0 -10
  226. package/src/components/Swiper/SwiperItem.js.map +0 -1
  227. package/src/components/Swiper/index.js +0 -3
  228. package/src/components/Swiper/index.js.map +0 -1
  229. package/src/components/Switch.js +0 -56
  230. package/src/components/Switch.js.map +0 -1
  231. package/src/components/TabView/TabView.js +0 -65
  232. package/src/components/TabView/TabView.js.map +0 -1
  233. package/src/components/TabView/TabViewItem.js +0 -12
  234. package/src/components/TabView/TabViewItem.js.map +0 -1
  235. package/src/components/TabView/index.js +0 -3
  236. package/src/components/TabView/index.js.map +0 -1
  237. package/src/components/Table/Table.js +0 -94
  238. package/src/components/Table/Table.js.map +0 -1
  239. package/src/components/Table/TableCell.js +0 -34
  240. package/src/components/Table/TableCell.js.map +0 -1
  241. package/src/components/Table/TableCommon.js +0 -13
  242. package/src/components/Table/TableCommon.js.map +0 -1
  243. package/src/components/Table/TableRow.js +0 -42
  244. package/src/components/Table/TableRow.js.map +0 -1
  245. package/src/components/Table/index.js +0 -4
  246. package/src/components/Table/index.js.map +0 -1
  247. package/src/components/Text.js +0 -25
  248. package/src/components/Text.js.map +0 -1
  249. package/src/components/TextField.js +0 -411
  250. package/src/components/TextField.js.map +0 -1
  251. package/src/components/TextInput.js +0 -25
  252. package/src/components/TextInput.js.map +0 -1
  253. package/src/components/Timer.js +0 -87
  254. package/src/components/Timer.js.map +0 -1
  255. package/src/components/Touchable.js +0 -13
  256. package/src/components/Touchable.js.map +0 -1
  257. package/src/components/Touchable.web.js +0 -3
  258. package/src/components/Touchable.web.js.map +0 -1
  259. package/src/components/Typography.js +0 -37
  260. package/src/components/Typography.js.map +0 -1
  261. package/src/components/YoutubePlayer/YoutubePlayer.js +0 -21
  262. package/src/components/YoutubePlayer/YoutubePlayer.js.map +0 -1
  263. package/src/components/YoutubePlayer/YoutubePlayer.native.js +0 -36
  264. package/src/components/YoutubePlayer/YoutubePlayer.native.js.map +0 -1
  265. package/src/components/YoutubePlayer/YoutubePlayerProps.js +0 -2
  266. package/src/components/YoutubePlayer/YoutubePlayerProps.js.map +0 -1
  267. package/src/components/YoutubePlayer/index.js +0 -2
  268. package/src/components/YoutubePlayer/index.js.map +0 -1
  269. package/src/components/useAuthState.js +0 -35
  270. package/src/components/useAuthState.js.map +0 -1
  271. package/src/constants.js +0 -11
  272. package/src/constants.js.map +0 -1
  273. package/src/deprecated-components/AccordionItem.js +0 -36
  274. package/src/deprecated-components/AccordionItem.js.map +0 -1
  275. package/src/deprecated-components/AnimatedCircularProgress.js +0 -47
  276. package/src/deprecated-components/AnimatedCircularProgress.js.map +0 -1
  277. package/src/deprecated-components/AvatarEdit.js +0 -34
  278. package/src/deprecated-components/AvatarEdit.js.map +0 -1
  279. package/src/deprecated-components/AvoidKeyboardView.js +0 -36
  280. package/src/deprecated-components/AvoidKeyboardView.js.map +0 -1
  281. package/src/deprecated-components/Banner.js +0 -112
  282. package/src/deprecated-components/Banner.js.map +0 -1
  283. package/src/deprecated-components/Card.js +0 -61
  284. package/src/deprecated-components/Card.js.map +0 -1
  285. package/src/deprecated-components/CheckboxGroup.js +0 -25
  286. package/src/deprecated-components/CheckboxGroup.js.map +0 -1
  287. package/src/deprecated-components/CircleImage.js +0 -12
  288. package/src/deprecated-components/CircleImage.js.map +0 -1
  289. package/src/deprecated-components/CircularProgress.js +0 -85
  290. package/src/deprecated-components/CircularProgress.js.map +0 -1
  291. package/src/deprecated-components/Container.js +0 -46
  292. package/src/deprecated-components/Container.js.map +0 -1
  293. package/src/deprecated-components/DeprecatedButton.js +0 -87
  294. package/src/deprecated-components/DeprecatedButton.js.map +0 -1
  295. package/src/deprecated-components/DeprecatedCardWrapper.js +0 -22
  296. package/src/deprecated-components/DeprecatedCardWrapper.js.map +0 -1
  297. package/src/deprecated-components/DeprecatedFAB.js +0 -111
  298. package/src/deprecated-components/DeprecatedFAB.js.map +0 -1
  299. package/src/deprecated-components/FAB.js +0 -50
  300. package/src/deprecated-components/FAB.js.map +0 -1
  301. package/src/deprecated-components/FieldSearchBarFull.js +0 -57
  302. package/src/deprecated-components/FieldSearchBarFull.js.map +0 -1
  303. package/src/deprecated-components/Layout.js +0 -69
  304. package/src/deprecated-components/Layout.js.map +0 -1
  305. package/src/deprecated-components/ProgressBar.js +0 -122
  306. package/src/deprecated-components/ProgressBar.js.map +0 -1
  307. package/src/deprecated-components/ProgressCircle.js +0 -17
  308. package/src/deprecated-components/ProgressCircle.js.map +0 -1
  309. package/src/deprecated-components/RadioButtonFieldGroup.js +0 -21
  310. package/src/deprecated-components/RadioButtonFieldGroup.js.map +0 -1
  311. package/src/deprecated-components/RowBodyIcon.js +0 -12
  312. package/src/deprecated-components/RowBodyIcon.js.map +0 -1
  313. package/src/deprecated-components/RowHeadlineImageCaption.js +0 -16
  314. package/src/deprecated-components/RowHeadlineImageCaption.js.map +0 -1
  315. package/src/deprecated-components/RowHeadlineImageIcon.js +0 -18
  316. package/src/deprecated-components/RowHeadlineImageIcon.js.map +0 -1
  317. package/src/deprecated-components/ToggleButton.js +0 -43
  318. package/src/deprecated-components/ToggleButton.js.map +0 -1
  319. package/src/hooks.js +0 -35
  320. package/src/hooks.js.map +0 -1
  321. package/src/index.js +0 -77
  322. package/src/index.js.map +0 -1
  323. package/src/interfaces/Icon.js +0 -9
  324. package/src/interfaces/Icon.js.map +0 -1
  325. package/src/utilities.js +0 -223
  326. package/src/utilities.js.map +0 -1
@@ -1,57 +0,0 @@
1
- import React from "react";
2
- import { MobileDatePicker, MobileDateTimePicker, MobileTimePicker, StaticDatePicker, StaticDateTimePicker, StaticTimePicker, LocalizationProvider, } from "@mui/x-date-pickers";
3
- import { createTheme as createMuiTheme, ThemeProvider as MuiThemeProvider, } from "@mui/material";
4
- import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFnsV3";
5
- import { withTheme, DefaultTheme } from "@draftbit/theme";
6
- const DatePickerComponent = ({ value, onChange, mode, toggleVisibility, isVisible, minimumDate, maximumDate, inline, theme, }) => {
7
- var _a, _b;
8
- const internalTheme = createMuiTheme({
9
- palette: {
10
- primary: {
11
- main: theme.colors.branding.primary ||
12
- ((_a = DefaultTheme.colors.branding) === null || _a === void 0 ? void 0 : _a.primary),
13
- },
14
- secondary: {
15
- main: theme.colors.branding.secondary ||
16
- ((_b = DefaultTheme.colors.branding) === null || _b === void 0 ? void 0 : _b.secondary),
17
- },
18
- },
19
- });
20
- let Picker;
21
- if (inline) {
22
- switch (mode) {
23
- case "date":
24
- Picker = StaticDatePicker;
25
- break;
26
- case "time":
27
- Picker = StaticTimePicker;
28
- break;
29
- case "datetime":
30
- Picker = StaticDateTimePicker;
31
- break;
32
- }
33
- }
34
- else {
35
- switch (mode) {
36
- case "date":
37
- Picker = MobileDatePicker;
38
- break;
39
- case "time":
40
- Picker = MobileTimePicker;
41
- break;
42
- case "datetime":
43
- Picker = MobileDateTimePicker;
44
- break;
45
- }
46
- }
47
- return (React.createElement(LocalizationProvider, { dateAdapter: AdapterDateFns },
48
- React.createElement(MuiThemeProvider, { theme: internalTheme },
49
- React.createElement(Picker, { value: value, open: isVisible, onAccept: (d) => {
50
- toggleVisibility();
51
- onChange(null, d);
52
- }, onClose: () => toggleVisibility(), slots: {
53
- textField: () => null,
54
- }, minDate: minimumDate, maxDate: maximumDate }))));
55
- };
56
- export default withTheme(DatePickerComponent);
57
- //# sourceMappingURL=DatePickerComponent.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePickerComponent.web.js","sourceRoot":"","sources":["DatePickerComponent.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,IAAI,cAAc,EAC7B,aAAa,IAAI,gBAAgB,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG1D,MAAM,mBAAmB,GAA2C,CAAC,EACnE,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,WAAW,EACX,MAAM,EACN,KAAK,GACN,EAAE,EAAE;;IACH,MAAM,aAAa,GAAG,cAAc,CAAC;QACnC,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EACF,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO;qBAC7B,MAAA,YAAY,CAAC,MAAM,CAAC,QAAQ,0CAAE,OAAO,CAAA;aACxC;YACD,SAAS,EAAE;gBACT,IAAI,EACF,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS;qBAC/B,MAAA,YAAY,CAAC,MAAM,CAAC,QAAQ,0CAAE,SAAS,CAAA;aAC1C;SACF;KACF,CAAC,CAAC;IAEH,IAAI,MAGuB,CAAC;IAE5B,IAAI,MAAM,EAAE,CAAC;QACX,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,MAAM;gBACT,MAAM,GAAG,gBAAgB,CAAC;gBAC1B,MAAM;YACR,KAAK,MAAM;gBACT,MAAM,GAAG,gBAAgB,CAAC;gBAC1B,MAAM;YACR,KAAK,UAAU;gBACb,MAAM,GAAG,oBAAoB,CAAC;gBAC9B,MAAM;QACV,CAAC;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,MAAM;gBACT,MAAM,GAAG,gBAAgB,CAAC;gBAC1B,MAAM;YACR,KAAK,MAAM;gBACT,MAAM,GAAG,gBAAgB,CAAC;gBAC1B,MAAM;YACR,KAAK,UAAU;gBACb,MAAM,GAAG,oBAAoB,CAAC;gBAC9B,MAAM;QACV,CAAC;IACH,CAAC;IAED,OAAO,CACL,oBAAC,oBAAoB,IAAC,WAAW,EAAE,cAAc;QAC/C,oBAAC,gBAAgB,IAAC,KAAK,EAAE,aAAa;YACpC,oBAAC,MAAM,IACL,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;oBACd,gBAAgB,EAAE,CAAC;oBACnB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;gBACpB,CAAC,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,EACjC,KAAK,EAAE;oBACL,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI;iBACtB,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,GACpB,CACe,CACE,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DatePickerComponentType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePickerComponentType.js","sourceRoot":"","sources":["DatePickerComponentType.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- export function parseDate(date) {
2
- if (typeof date === "string") {
3
- const parsed = Date.parse(date);
4
- if (!isNaN(parsed)) {
5
- return new Date(parsed);
6
- }
7
- console.warn("Invalid date string:", `'${date}'.`, "See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format");
8
- return undefined;
9
- }
10
- return date;
11
- }
12
- //# sourceMappingURL=parseDate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseDate.js","sourceRoot":"","sources":["parseDate.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,IAAoB;IAC5C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;YACnB,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO,CAAC,IAAI,CACV,sBAAsB,EACtB,IAAI,IAAI,IAAI,EACZ,mHAAmH,CACpH,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,116 +0,0 @@
1
- import React from "react";
2
- import { StyleSheet, View } from "react-native";
3
- import DeckSwiperComponent from "react-native-deck-swiper";
4
- const DeckSwiper = React.forwardRef(({ onStartSwipe, onEndSwipe, onSwipe, onSwipedLeft, onSwipedRight, onSwipedUp, onSwipedDown, onIndexChanged, onEndReached, startCardIndex = 0, infiniteSwiping = false, verticalEnabled = true, horizontalEnabled = true, visibleCardCount = 1, data, keyExtractor, renderItem, style, children, }, ref) => {
5
- //Both 'renderItem' and 'data' are optional to allow direct children. But if one is included, both need to be included
6
- if ((data && !renderItem) || (renderItem && !data)) {
7
- throw new Error("'renderItem' and 'data' need to both be provided to lazily render. Either remove them entirley or include both");
8
- }
9
- if (data && renderItem && children) {
10
- console.warn("'children' of DeckSwiper ignored due to usage of 'data' and 'renderItem'");
11
- }
12
- const deckSwiperRef = React.useRef(null);
13
- const childrenArray = React.useMemo(() => React.Children.toArray(children), [children]);
14
- // an array of indices based on children count
15
- const cardsFillerData = React.useMemo(() => Array.from(Array(childrenArray.length).keys()), [childrenArray]);
16
- const cardsData = Array.isArray(data) ? data : cardsFillerData;
17
- const renderCard = (card, index) => {
18
- if (renderItem) {
19
- return renderItem({ item: card, index });
20
- }
21
- else {
22
- return React.createElement(React.Fragment, null, childrenArray[index]);
23
- }
24
- };
25
- const renderFirstCard = () => {
26
- if (cardsData.length) {
27
- return renderCard(cardsData[0], 0);
28
- }
29
- return undefined;
30
- };
31
- const cardKeyExtractor = (card) => {
32
- if (keyExtractor) {
33
- return keyExtractor(card);
34
- }
35
- else {
36
- return card === null || card === void 0 ? void 0 : card.toString();
37
- }
38
- };
39
- /*
40
- react-native-deck-swiper does not re-render cards when parent state changes
41
- This forces an update on every re-render to reflect any parent state changes
42
- */
43
- React.useEffect(() => {
44
- var _a;
45
- (_a = deckSwiperRef.current) === null || _a === void 0 ? void 0 : _a.forceUpdate();
46
- });
47
- React.useImperativeHandle(ref, () => ({
48
- swipeCard: (direction) => {
49
- var _a, _b, _c, _d, _e;
50
- switch (direction) {
51
- case "left":
52
- (_a = deckSwiperRef.current) === null || _a === void 0 ? void 0 : _a.swipeLeft();
53
- break;
54
- case "right":
55
- (_b = deckSwiperRef.current) === null || _b === void 0 ? void 0 : _b.swipeRight();
56
- break;
57
- case "top":
58
- (_c = deckSwiperRef.current) === null || _c === void 0 ? void 0 : _c.swipeTop();
59
- break;
60
- case "bottom":
61
- (_d = deckSwiperRef.current) === null || _d === void 0 ? void 0 : _d.swipeBottom();
62
- break;
63
- default:
64
- (_e = deckSwiperRef.current) === null || _e === void 0 ? void 0 : _e.swipeLeft();
65
- }
66
- },
67
- jumpToCardIndex: (index) => {
68
- var _a;
69
- (_a = deckSwiperRef.current) === null || _a === void 0 ? void 0 : _a.jumpToCardIndex(index);
70
- },
71
- }));
72
- /**
73
- * By default react-native-deck-swiper positions everything with absolute position.
74
- * To overcome this, it is wrapped in a View to be able to add the component in any layout structure.
75
- *
76
- *
77
- * Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird.
78
- * To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space.
79
- * This effectivley makes the default height of the container be the height of the first card.
80
- */
81
- return (React.createElement(View, null,
82
- React.createElement(View, { style: styles.containerHeightFiller }, renderFirstCard()),
83
- React.createElement(DeckSwiperComponent, { ref: deckSwiperRef, cards: cardsData, renderCard: renderCard, keyExtractor: cardKeyExtractor, containerStyle: StyleSheet.flatten([styles.cardsContainer, style]), cardStyle: styles.card, onSwiped: onIndexChanged, onSwipedAll: onEndReached, cardIndex: startCardIndex, infinite: infiniteSwiping, verticalSwipe: verticalEnabled, horizontalSwipe: horizontalEnabled, showSecondCard: visibleCardCount > 1, stackSize: visibleCardCount, backgroundColor: "transparent", cardVerticalMargin: 0, cardHorizontalMargin: 0, onSwipedLeft: (index) => {
84
- onSwipedLeft === null || onSwipedLeft === void 0 ? void 0 : onSwipedLeft(index);
85
- onSwipe === null || onSwipe === void 0 ? void 0 : onSwipe(index);
86
- }, onSwipedRight: (index) => {
87
- onSwipedRight === null || onSwipedRight === void 0 ? void 0 : onSwipedRight(index);
88
- onSwipe === null || onSwipe === void 0 ? void 0 : onSwipe(index);
89
- }, onSwipedTop: (index) => {
90
- onSwipedUp === null || onSwipedUp === void 0 ? void 0 : onSwipedUp(index);
91
- onSwipe === null || onSwipe === void 0 ? void 0 : onSwipe(index);
92
- }, onSwipedBottom: (index) => {
93
- onSwipedDown === null || onSwipedDown === void 0 ? void 0 : onSwipedDown(index);
94
- onSwipe === null || onSwipe === void 0 ? void 0 : onSwipe(index);
95
- },
96
- //@ts-ignore Not typed, but is implemented and works
97
- dragStart: onStartSwipe,
98
- //@ts-ignore
99
- dragEnd: onEndSwipe })));
100
- });
101
- const styles = StyleSheet.create({
102
- cardsContainer: {
103
- position: "absolute",
104
- },
105
- card: {
106
- left: 0,
107
- right: 0,
108
- width: "auto",
109
- height: "auto",
110
- },
111
- containerHeightFiller: {
112
- opacity: 0.0,
113
- },
114
- });
115
- export default DeckSwiper;
116
- //# sourceMappingURL=DeckSwiper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeckSwiper.js","sourceRoot":"","sources":["DeckSwiper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AA2B3D,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACjC,CACE,EACE,YAAY,EACZ,UAAU,EACV,OAAO,EACP,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,cAAc,GAAG,CAAC,EAClB,eAAe,GAAG,KAAK,EACvB,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,gBAAgB,GAAG,CAAC,EACpB,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,KAAK,EACL,QAAQ,GACoC,EAC9C,GAA6B,EAC7B,EAAE;IACF,sHAAsH;IACtH,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CACb,gHAAgH,CACjH,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,IAAI,UAAU,IAAI,QAAQ,EAAE,CAAC;QACnC,OAAO,CAAC,IAAI,CACV,0EAA0E,CAC3E,CAAC;IACJ,CAAC;IAED,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAyB,IAAI,CAAC,CAAC;IAEjE,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CACjC,GAAG,EAAE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MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,GAAG;KACb;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
4
- const DeckSwiperCard = ({ style, children, theme }) => (React.createElement(View, { style: [
5
- styles.card,
6
- {
7
- backgroundColor: theme.colors.background.base,
8
- borderColor: theme.colors.border.base,
9
- },
10
- style,
11
- ] }, children));
12
- const styles = StyleSheet.create({
13
- card: {
14
- alignItems: "center",
15
- justifyContent: "center",
16
- padding: 20,
17
- borderWidth: 2,
18
- },
19
- });
20
- export default withTheme(DeckSwiperCard);
21
- //# sourceMappingURL=DeckSwiperCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeckSwiperCard.js","sourceRoot":"","sources":["DeckSwiperCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAwB,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAO5C,MAAM,cAAc,GAEhB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAClC,oBAAC,IAAI,IACH,KAAK,EAAE;QACL,MAAM,CAAC,IAAI;QACX;YACE,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI;YAC7C,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI;SACtC;QACD,KAAK;KACN,IAEA,QAAQ,CACJ,CACR,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,CAAC;KACf;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,cAAc,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as DeckSwiper } from "./DeckSwiper";
2
- export { default as DeckSwiperCard } from "./DeckSwiperCard";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- import { StyleSheet, View } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
4
- const Divider = ({ style, color, theme: { colors }, ...rest }) => {
5
- return (React.createElement(View, { style: [
6
- {
7
- backgroundColor: color || colors.border.base,
8
- height: StyleSheet.hairlineWidth,
9
- },
10
- style,
11
- ], ...rest }));
12
- };
13
- export default withTheme(Divider);
14
- //# sourceMappingURL=Divider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Divider.js","sourceRoot":"","sources":["Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAS5C,MAAM,OAAO,GAA6C,CAAC,EACzD,KAAK,EACL,KAAK,EACL,KAAK,EAAE,EAAE,MAAM,EAAE,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,eAAe,EAAE,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI;gBAC5C,MAAM,EAAE,UAAU,CAAC,aAAa;aACjC;YACD,KAAK;SACN,KACG,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,OAAO,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import { Animated, StyleSheet, View, } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
4
- /* directly copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx#L62 */
5
- const Elevation = ({ style, theme, children, ...rest }) => {
6
- const { elevation = 4, borderRadius: radius } = StyleSheet.flatten(style) || {};
7
- const { colors } = theme;
8
- const borderRadius = radius;
9
- return (React.createElement(Animated.View, { ...rest, style: [
10
- {
11
- borderRadius,
12
- backgroundColor: colors.background.base,
13
- },
14
- elevation ? { elevation } : null,
15
- style,
16
- ] },
17
- React.createElement(View, { style: { overflow: "hidden", borderRadius } }, children)));
18
- };
19
- export default withTheme(Elevation);
20
- //# sourceMappingURL=Elevation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Elevation.js","sourceRoot":"","sources":["Elevation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EACR,UAAU,EAIV,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,mHAAmH;AACnH,MAAM,SAAS,GAA6C,CAAC,EAC3D,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,EAAE,SAAS,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAC3C,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAClC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,MAAM,YAAY,GAAG,MAAM,CAAC;IAE5B,OAAO,CACL,oBAAC,QAAQ,CAAC,IAAI,OACR,IAAI,EACR,KAAK,EAAE;YACL;gBACE,YAAY;gBACZ,eAAe,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;aACxC;YACD,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI;YAChC,KAAK;SACN;QAED,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAG,QAAQ,CAAQ,CACtD,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,SAAS,CAAC,CAAC"}
@@ -1,44 +0,0 @@
1
- import React from "react";
2
- import { Image, } from "expo-image";
3
- import Config from "./Config";
4
- const resizeModeToContentFit = (resizeMode) => {
5
- var _a;
6
- const mapping = {
7
- cover: "cover",
8
- contain: "contain",
9
- stretch: "fill",
10
- repeat: "none",
11
- center: "scale-down",
12
- };
13
- return (_a = mapping[resizeMode]) !== null && _a !== void 0 ? _a : "cover";
14
- };
15
- const ExpoImage = ({ source, resizeMode = "cover", style, transitionDuration = 300, transitionEffect = "cross-dissolve", transitionTiming = "ease-in-out", contentFit = "cover", contentPosition = "center", cachePolicy = "memory-disk", allowDownscaling = true, blurRadius, blurhash, cacheKey, ...props }) => {
16
- let imageSource = source !== null && source !== void 0 ? source : Config.placeholderImageURL;
17
- if (cacheKey) {
18
- if (source && typeof source === "object" && "uri" in source) {
19
- imageSource = {
20
- ...source,
21
- cacheKey,
22
- };
23
- }
24
- else if (typeof source === "string") {
25
- imageSource = {
26
- uri: source,
27
- cacheKey,
28
- };
29
- }
30
- }
31
- const finalContentFit = resizeMode
32
- ? resizeModeToContentFit(resizeMode)
33
- : contentFit;
34
- const transition = {
35
- timing: transitionTiming,
36
- duration: transitionDuration,
37
- effect: transitionEffect,
38
- };
39
- return (React.createElement(Image, { ...props, source: imageSource, contentFit: finalContentFit, placeholder: {
40
- blurhash,
41
- }, transition: transition, contentPosition: contentPosition, cachePolicy: cachePolicy, allowDownscaling: allowDownscaling, blurRadius: blurRadius, style: style }));
42
- };
43
- export default ExpoImage;
44
- //# sourceMappingURL=ExpoImage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,CAAC;IACH,CAAC;IAED,MAAM,eAAe,GAAG,UAAU;QAChC,CAAC,CAAC,sBAAsB,CAAC,UAAU,CAAC;QACpC,CAAC,CAAC,UAAU,CAAC;IAEf,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,gBAAgB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,MAAM,EAAE,gBAAgB;KACzB,CAAC;IAEF,OAAO,CACL,oBAAC,KAAK,OACA,KAAK,EACT,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,eAAe,EAC3B,WAAW,EAAE;YACX,QAAQ;SACT,EACD,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { FlatList as FlatListComponent } from "react-native-gesture-handler";
3
- const FlatList = React.forwardRef(({ numColumns, ...rest }, ref) => {
4
- return (React.createElement(FlatListComponent, { key: numColumns, numColumns: numColumns, ref: ref, ...rest }));
5
- });
6
- export default FlatList;
7
- //# sourceMappingURL=FlatList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FlatList.js","sourceRoot":"","sources":["FlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAG7E,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CACE,EAAE,UAAU,EAAE,GAAG,IAAI,EAAoB,EACzC,GAAiC,EACjC,EAAE;IACF,OAAO,CACL,oBAAC,iBAAiB,IAChB,GAAG,EAAE,UAAU,EACf,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,KACJ,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import { Text, StyleSheet } from "react-native";
3
- import { extractStyles } from "../utilities";
4
- import Touchable from "./Touchable";
5
- export default function FormRow({ disabled, direction, children, label, style, onPress, ...rest }) {
6
- const { textStyles, viewStyles } = extractStyles(style);
7
- return (React.createElement(Touchable, { disabled: disabled, onPress: onPress, style: [styles.row, { flexDirection: direction }, viewStyles], ...rest },
8
- React.createElement(Text, { style: textStyles }, label),
9
- children));
10
- }
11
- const styles = StyleSheet.create({
12
- row: {
13
- marginLeft: 8,
14
- marginRight: 8,
15
- flexDirection: "row",
16
- justifyContent: "space-between",
17
- alignItems: "center",
18
- },
19
- });
20
- //# sourceMappingURL=FormRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormRow.js","sourceRoot":"","sources":["FormRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAwB,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,SAAS,MAAM,aAAa,CAAC;AAWpC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,OAAO,EACP,GAAG,IAAI,EACD;IACN,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,CACL,oBAAC,SAAS,IACR,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,UAAU,CAAC,KACzD,IAAI;QAER,oBAAC,IAAI,IAAC,KAAK,EAAE,UAAU,IAAG,KAAK,CAAQ;QACtC,QAAQ,CACC,CACb,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE;QACH,UAAU,EAAE,CAAC;QACb,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC"}
@@ -1,36 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, ActivityIndicator, Pressable, Platform, } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
4
- const IconButton = ({ Icon, icon, color: customColor, size = 32, disabled, loading = false, onPress, theme, style, activeOpacity = 0.8, disabledOpacity = 0.8, ...props }) => {
5
- const iconColor = customColor || theme.colors.branding.primary;
6
- return (React.createElement(Pressable, { onPress: onPress, disabled: disabled || loading, style: ({ pressed }) => {
7
- return [
8
- styles.container,
9
- {
10
- opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
11
- width: size,
12
- height: size,
13
- alignItems: "center",
14
- justifyContent: "center",
15
- },
16
- style,
17
- ];
18
- }, ...props },
19
- React.createElement(View, null,
20
- icon && !loading ? (React.createElement(Icon, { name: icon, size: size - 2, color: iconColor })) : null,
21
- loading ? React.createElement(ActivityIndicator, { size: "small", color: iconColor }) : null)));
22
- };
23
- const styles = StyleSheet.create({
24
- container: {
25
- alignItems: "center",
26
- justifyContent: "center",
27
- ...Platform.select({
28
- web: {
29
- cursor: "pointer",
30
- userSelect: "none",
31
- },
32
- }),
33
- },
34
- });
35
- export default withTheme(IconButton);
36
- //# sourceMappingURL=IconButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconButton.js","sourceRoot":"","sources":["IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EACJ,UAAU,EACV,iBAAiB,EAGjB,SAAS,EAET,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OA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AM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,GAAG,QAAQ,CAAC,MAAM,CAAC;YACjB,GAAG,EAAE;gBACH,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,MAAM;aACnB;SACF,CAAC;KACH;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,UAAU,CAAC,CAAC"}
@@ -1,48 +0,0 @@
1
- /* README: Internal Image component used for stuff like Card. DO NOT EXPORT! */
2
- import React from "react";
3
- import { Image as NativeImage, StyleSheet, } from "react-native";
4
- import Config from "./Config";
5
- import AspectRatio from "./AspectRatio";
6
- const generateDimensions = ({ aspectRatio, width, height, }) => {
7
- if (aspectRatio && !width && !height) {
8
- return {
9
- aspectRatio,
10
- width: "100%",
11
- };
12
- }
13
- if (aspectRatio && height) {
14
- return {
15
- aspectRatio,
16
- height,
17
- width: aspectRatio * height,
18
- };
19
- }
20
- if (aspectRatio && width) {
21
- return {
22
- aspectRatio,
23
- width,
24
- height: width / aspectRatio,
25
- };
26
- }
27
- return { width, height };
28
- };
29
- const Image = ({ source, resizeMode = "cover", style, ...props }) => {
30
- const imageSource = source === null || source === undefined
31
- ? Config.placeholderImageURL
32
- : source;
33
- const styles = StyleSheet.flatten(style || {});
34
- const { aspectRatio, width, height } = generateDimensions(styles);
35
- if (aspectRatio) {
36
- return (React.createElement(AspectRatio, { style: [style, { width, height, aspectRatio }] },
37
- React.createElement(NativeImage, { ...props, source: imageSource, resizeMode: resizeMode, style: [
38
- style,
39
- {
40
- height: "100%",
41
- width: "100%",
42
- },
43
- ] })));
44
- }
45
- return (React.createElement(NativeImage, { ...props, source: source, resizeMode: resizeMode, style: style }));
46
- };
47
- export default Image;
48
- //# sourceMappingURL=Image.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image.js","sourceRoot":"","sources":["Image.tsx"],"names":[],"mappings":"AAAA,+EAA+E;AAC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CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,CAAyB;YAEtE,oBAAC,WAAW,OACN,KAAK,EACT,MAAM,EAAE,WAAkC,EAC1C,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE;oBACL,KAAK;oBACL;wBACE,MAAM,EAAE,MAAM;wBACd,KAAK,EAAE,MAAM;qBACd;iBACF,GACD,CACU,CACf,CAAC;IACJ,CAAC;IAED,OAAO,CACL,oBAAC,WAAW,OACN,KAAK,EACT,MAAM,EAAE,MAA6B,EACrC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- import { KeyboardAvoidingView as KeyboardAvoidingViewComponent, Platform, } from "react-native";
3
- const isIos = Platform.OS === "ios";
4
- const isAndroid = Platform.OS === "android";
5
- const KeyboardAvoidingView = ({ behavior = "padding", keyboardVerticalOffset = 0, androidBehavior, androidKeyboardVerticalOffset, iosBehavior, iosKeyboardVerticalOffset, ...rest }) => {
6
- let behaviorResult;
7
- if (isIos && iosBehavior !== undefined) {
8
- behaviorResult = iosBehavior;
9
- }
10
- else if (isAndroid && androidBehavior !== undefined) {
11
- behaviorResult = androidBehavior;
12
- }
13
- else {
14
- behaviorResult = behavior;
15
- }
16
- let keyboardVerticalOffsetResult;
17
- if (isIos && iosKeyboardVerticalOffset !== undefined) {
18
- keyboardVerticalOffsetResult = iosKeyboardVerticalOffset;
19
- }
20
- else if (isAndroid && androidKeyboardVerticalOffset !== undefined) {
21
- keyboardVerticalOffsetResult = androidKeyboardVerticalOffset;
22
- }
23
- else {
24
- keyboardVerticalOffsetResult = keyboardVerticalOffset;
25
- }
26
- return (React.createElement(KeyboardAvoidingViewComponent, { behavior: behaviorResult !== null && behaviorResult !== void 0 ? behaviorResult : undefined, keyboardVerticalOffset: keyboardVerticalOffsetResult, ...rest }));
27
- };
28
- export default KeyboardAvoidingView;
29
- //# sourceMappingURL=KeyboardAvoidingView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyboardAvoidingView.js","sourceRoot":"","sources":["KeyboardAvoidingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,oBAAoB,IAAI,6BAA6B,EACrD,QAAQ,GAET,MAAM,cAAc,CAAC;AAEtB,MAAM,KAAK,GAAG,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC;AACpC,MAAM,SAAS,GAAG,QAAQ,CAAC,EAAE,KAAK,SAAS,CAAC;AAc5C,MAAM,oBAAoB,GAAwC,CAAC,EACjE,QAAQ,GAAG,SAAS,EACpB,sBAAsB,GAAG,CAAC,EAC1B,eAAe,EACf,6BAA6B,EAC7B,WAAW,EACX,yBAAyB,EACzB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,IAAI,cAA4C,CAAC;IAEjD,IAAI,KAAK,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QACvC,cAAc,GAAG,WAAW,CAAC;IAC/B,CAAC;SAAM,IAAI,SAAS,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QACtD,cAAc,GAAG,eAAe,CAAC;IACnC,CAAC;SAAM,CAAC;QACN,cAAc,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED,IAAI,4BAAoC,CAAC;IAEzC,IAAI,KAAK,IAAI,yBAAyB,KAAK,SAAS,EAAE,CAAC;QACrD,4BAA4B,GAAG,yBAAyB,CAAC;IAC3D,CAAC;SAAM,IAAI,SAAS,IAAI,6BAA6B,KAAK,SAAS,EAAE,CAAC;QACpE,4BAA4B,GAAG,6BAA6B,CAAC;IAC/D,CAAC;SAAM,CAAC;QACN,4BAA4B,GAAG,sBAAsB,CAAC;IACxD,CAAC;IAED,OAAO,CACL,oBAAC,6BAA6B,IAC5B,QAAQ,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,SAAS,EACrC,sBAAsB,EAAE,4BAA4B,KAChD,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- const AspectRatio = ({ aspectRatio = 1, style, ...rest }) => {
4
- return React.createElement(View, { ...rest, style: [{ aspectRatio }, style] });
5
- };
6
- export default AspectRatio;
7
- //# sourceMappingURL=AspectRatio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AspectRatio.js","sourceRoot":"","sources":["AspectRatio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAM/C,MAAM,WAAW,GAA+B,CAAC,EAC/C,WAAW,GAAG,CAAC,EACf,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,oBAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,CAAC,GAAI,CAAC;AAC7D,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { convertBackwardCompatiblePropsToStyle } from "./LayoutCommon";
4
- const Center = ({ style, ...rest }) => {
5
- const backwardsCompatibleStyle = convertBackwardCompatiblePropsToStyle(rest);
6
- return (React.createElement(View, { ...rest, style: [styles.center, backwardsCompatibleStyle, style] }));
7
- };
8
- const styles = StyleSheet.create({
9
- center: {
10
- alignItems: "center",
11
- justifyContent: "center",
12
- },
13
- });
14
- export default Center;
15
- //# sourceMappingURL=Center.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Center.js","sourceRoot":"","sources":["Center.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,qCAAqC,EAAE,MAAM,gBAAgB,CAAC;AAEvE,MAAM,MAAM,GAAwB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzD,MAAM,wBAAwB,GAAG,qCAAqC,CAAC,IAAI,CAAC,CAAC;IAC7E,OAAO,CACL,oBAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,KAAK,CAAC,GAAI,CAC5E,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { StyleSheet } from "react-native";
3
- import Square from "./Square";
4
- import { pick } from "lodash";
5
- import { convertBackwardCompatiblePropsToStyle } from "./LayoutCommon";
6
- const Circle = ({ size, style, ...rest }) => {
7
- const backwardsCompatibleStyle = pick(convertBackwardCompatiblePropsToStyle(rest), "backgroundColor");
8
- return (React.createElement(Square, { ...rest, size: size, style: [backwardsCompatibleStyle, style, styles.circle] }));
9
- };
10
- const styles = StyleSheet.create({
11
- circle: {
12
- borderRadius: 1000, // Border radius maxes out as a circle, use an overly large number to ensure circle in all cases
13
- },
14
- });
15
- export default Circle;
16
- //# sourceMappingURL=Circle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Circle.js","sourceRoot":"","sources":["Circle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,qCAAqC,EAAE,MAAM,gBAAgB,CAAC;AAMvE,MAAM,MAAM,GAA0B,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjE,MAAM,wBAAwB,GAAG,IAAI,CACnC,qCAAqC,CAAC,IAAI,CAAC,EAC3C,iBAAiB,CAClB,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,OACD,IAAI,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,CAAC,wBAAwB,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,GACvD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,YAAY,EAAE,IAAI,EAAE,gGAAgG;KACrH;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- const HStack = ({ style, ...rest }) => {
4
- return React.createElement(View, { ...rest, style: [styles.hStack, style] });
5
- };
6
- const styles = StyleSheet.create({
7
- hStack: {
8
- flexDirection: "row",
9
- },
10
- });
11
- export default HStack;
12
- //# sourceMappingURL=HStack.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HStack.js","sourceRoot":"","sources":["HStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,GAAwB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,oBAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAI,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,8 +0,0 @@
1
- export function convertBackwardCompatiblePropsToStyle(props) {
2
- return {
3
- width: props.width,
4
- height: props.height,
5
- backgroundColor: props.bgColor,
6
- };
7
- }
8
- //# sourceMappingURL=LayoutCommon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LayoutCommon.js","sourceRoot":"","sources":["LayoutCommon.ts"],"names":[],"mappings":"AAgBA,MAAM,UAAU,qCAAqC,CACnD,KAA2C;IAE3C,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,eAAe,EAAE,KAAK,CAAC,OAAO;KAC/B,CAAC;AACJ,CAAC"}
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- const Spacer = ({ top = 8, right = 8, bottom = 8, left = 8, style, }) => {
4
- return (React.createElement(View, { style: [
5
- style,
6
- {
7
- paddingRight: right,
8
- paddingTop: top,
9
- paddingLeft: left,
10
- paddingBottom: bottom,
11
- },
12
- ] }));
13
- };
14
- export default Spacer;
15
- //# sourceMappingURL=Spacer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spacer.js","sourceRoot":"","sources":["Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAU1D,MAAM,MAAM,GAA0B,CAAC,EACrC,GAAG,GAAG,CAAC,EACP,KAAK,GAAG,CAAC,EACT,MAAM,GAAG,CAAC,EACV,IAAI,GAAG,CAAC,EACR,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL,KAAK;YACL;gBACE,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,GAAG;gBACf,WAAW,EAAE,IAAI;gBACjB,aAAa,EAAE,MAAM;aACtB;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}