@draftbit/core 49.5.2-ff55cf.2 → 49.5.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 (552) hide show
  1. package/lib/commonjs/Provider.js +1 -1
  2. package/lib/commonjs/components/AccordionGroup.js +1 -1
  3. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  4. package/lib/commonjs/components/Button.js +1 -1
  5. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  6. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -1
  7. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  8. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -1
  9. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +1 -1
  10. package/lib/commonjs/components/Divider.js +1 -1
  11. package/lib/commonjs/components/Elevation.js +1 -1
  12. package/lib/commonjs/components/IconButton.js +1 -1
  13. package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -1
  14. package/lib/commonjs/components/MediaPlayer/AudioPlayer/index.js +1 -1
  15. package/lib/commonjs/components/Picker/NativePicker.js +1 -1
  16. package/lib/commonjs/components/Picker/dropdown/DropDownModalPicker.js +1 -1
  17. package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +1 -1
  18. package/lib/commonjs/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  19. package/lib/commonjs/components/Picker/index.js +1 -1
  20. package/lib/commonjs/components/PinInput/PinInput.js +1 -1
  21. package/lib/commonjs/components/PinInput/PinInputText.js +1 -1
  22. package/lib/commonjs/components/Portal/Portal.js +1 -1
  23. package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -1
  24. package/lib/commonjs/components/Progress/CircularProgress/index.js +1 -1
  25. package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -1
  26. package/lib/commonjs/components/Progress/LinearProgress/index.js +1 -1
  27. package/lib/commonjs/components/ProgressIndicator.js +1 -1
  28. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  29. package/lib/commonjs/components/Row.js +1 -1
  30. package/lib/commonjs/components/ScreenContainer.js +1 -1
  31. package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
  32. package/lib/commonjs/components/SectionList/SectionList.js +1 -1
  33. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlashList.js +1 -1
  34. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlatList.js +1 -1
  35. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +1 -1
  36. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +1 -1
  37. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleScrollView.js +1 -1
  38. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSectionList.js +1 -1
  39. package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +1 -1
  40. package/lib/commonjs/components/Slider.js +1 -1
  41. package/lib/commonjs/components/StarRating.js +1 -1
  42. package/lib/commonjs/components/Stepper.js +1 -1
  43. package/lib/commonjs/components/Surface.js +1 -1
  44. package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
  45. package/lib/commonjs/components/SwipeableItem/SwipeableList.js +1 -1
  46. package/lib/commonjs/components/Swiper/Swiper.js +1 -1
  47. package/lib/commonjs/components/Switch.js +1 -1
  48. package/lib/commonjs/components/TabView/TabView.js +1 -1
  49. package/lib/commonjs/components/Table/Table.js +1 -1
  50. package/lib/commonjs/components/Table/TableRow.js +1 -1
  51. package/lib/commonjs/components/Text.js +1 -1
  52. package/lib/commonjs/components/TextField.js +1 -1
  53. package/lib/commonjs/components/TextInput.js +1 -1
  54. package/lib/commonjs/components/Typography.js +1 -1
  55. package/lib/commonjs/deprecated-components/AccordionItem.js +1 -1
  56. package/lib/commonjs/deprecated-components/AvatarEdit.js +1 -1
  57. package/lib/commonjs/deprecated-components/Banner.js +1 -1
  58. package/lib/commonjs/deprecated-components/Card.js +1 -1
  59. package/lib/commonjs/deprecated-components/Container.js +1 -1
  60. package/lib/commonjs/deprecated-components/DeprecatedButton.js +1 -1
  61. package/lib/commonjs/deprecated-components/DeprecatedCardWrapper.js +1 -1
  62. package/lib/commonjs/deprecated-components/DeprecatedFAB.js +1 -1
  63. package/lib/commonjs/deprecated-components/FAB.js +1 -1
  64. package/lib/commonjs/deprecated-components/FieldSearchBarFull.js +1 -1
  65. package/lib/commonjs/deprecated-components/ProgressCircle.js +1 -1
  66. package/lib/commonjs/deprecated-components/RadioButtonFieldGroup.js +1 -1
  67. package/lib/commonjs/deprecated-components/RowBodyIcon.js +1 -1
  68. package/lib/commonjs/deprecated-components/RowHeadlineImageCaption.js +1 -1
  69. package/lib/commonjs/deprecated-components/RowHeadlineImageIcon.js +1 -1
  70. package/lib/commonjs/deprecated-components/ToggleButton.js +1 -1
  71. package/lib/commonjs/index.js +1 -1
  72. package/lib/commonjs/styles/DarkTheme.js +1 -0
  73. package/lib/commonjs/styles/DefaultTheme.js +1 -0
  74. package/lib/commonjs/styles/fonts.js +1 -0
  75. package/lib/commonjs/styles/overlay.js +1 -0
  76. package/lib/commonjs/styles/shadow.js +1 -0
  77. package/lib/commonjs/theming.js +1 -0
  78. package/lib/typescript/src/Provider.d.ts +5 -7
  79. package/lib/typescript/src/Provider.js +4 -4
  80. package/lib/typescript/src/Provider.js.map +1 -1
  81. package/lib/typescript/src/components/AccordionGroup.d.ts +5 -3
  82. package/lib/typescript/src/components/AccordionGroup.js +3 -3
  83. package/lib/typescript/src/components/AccordionGroup.js.map +1 -1
  84. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +5 -3
  85. package/lib/typescript/src/components/BottomSheet/BottomSheet.js +4 -4
  86. package/lib/typescript/src/components/BottomSheet/BottomSheet.js.map +1 -1
  87. package/lib/typescript/src/components/Button.js +6 -8
  88. package/lib/typescript/src/components/Button.js.map +1 -1
  89. package/lib/typescript/src/components/Checkbox/Checkbox.js +3 -3
  90. package/lib/typescript/src/components/Checkbox/Checkbox.js.map +1 -1
  91. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +2 -4
  92. package/lib/typescript/src/components/Checkbox/CheckboxRow.js +6 -7
  93. package/lib/typescript/src/components/Checkbox/CheckboxRow.js.map +1 -1
  94. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +5 -3
  95. package/lib/typescript/src/components/DatePicker/DatePicker.js +23 -24
  96. package/lib/typescript/src/components/DatePicker/DatePicker.js.map +1 -1
  97. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +5010 -4
  98. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js +6 -8
  99. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  100. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +2 -2
  101. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +5 -3
  102. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  103. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  104. package/lib/typescript/src/components/Divider.d.ts +5 -3
  105. package/lib/typescript/src/components/Divider.js +2 -2
  106. package/lib/typescript/src/components/Divider.js.map +1 -1
  107. package/lib/typescript/src/components/Elevation.d.ts +5 -3
  108. package/lib/typescript/src/components/Elevation.js +4 -3
  109. package/lib/typescript/src/components/Elevation.js.map +1 -1
  110. package/lib/typescript/src/components/FormRow.d.ts +2 -1
  111. package/lib/typescript/src/components/FormRow.js.map +1 -1
  112. package/lib/typescript/src/components/IconButton.d.ts +5 -3
  113. package/lib/typescript/src/components/IconButton.js +2 -2
  114. package/lib/typescript/src/components/IconButton.js.map +1 -1
  115. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +2 -0
  116. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.d.ts +4 -5
  117. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +13 -10
  118. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  119. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.d.ts +4 -2
  120. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js +3 -1
  121. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
  122. package/lib/typescript/src/components/Picker/NativePicker.d.ts +3 -1
  123. package/lib/typescript/src/components/Picker/NativePicker.js +2 -5
  124. package/lib/typescript/src/components/Picker/NativePicker.js.map +1 -1
  125. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +2 -2
  126. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.d.ts +3 -1
  127. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js +2 -2
  128. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -1
  129. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +3 -1
  130. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +2 -2
  131. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
  132. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +3 -1
  133. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  134. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
  135. package/lib/typescript/src/components/Picker/index.d.ts +3 -1
  136. package/lib/typescript/src/components/Picker/index.js +1 -1
  137. package/lib/typescript/src/components/Picker/index.js.map +1 -1
  138. package/lib/typescript/src/components/PinInput/PinInput.d.ts +5 -3
  139. package/lib/typescript/src/components/PinInput/PinInput.js +4 -4
  140. package/lib/typescript/src/components/PinInput/PinInput.js.map +1 -1
  141. package/lib/typescript/src/components/PinInput/PinInputText.d.ts +5 -3
  142. package/lib/typescript/src/components/PinInput/PinInputText.js +2 -2
  143. package/lib/typescript/src/components/PinInput/PinInputText.js.map +1 -1
  144. package/lib/typescript/src/components/Portal/Portal.d.ts +9 -1
  145. package/lib/typescript/src/components/Portal/Portal.js +5 -3
  146. package/lib/typescript/src/components/Portal/Portal.js.map +1 -1
  147. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
  148. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  149. package/lib/typescript/src/components/Progress/CircularProgress/index.d.ts +3 -1
  150. package/lib/typescript/src/components/Progress/CircularProgress/index.js +1 -1
  151. package/lib/typescript/src/components/Progress/CircularProgress/index.js.map +1 -1
  152. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
  153. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  154. package/lib/typescript/src/components/Progress/LinearProgress/index.d.ts +3 -1
  155. package/lib/typescript/src/components/Progress/LinearProgress/index.js +1 -1
  156. package/lib/typescript/src/components/Progress/LinearProgress/index.js.map +1 -1
  157. package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +2 -2
  158. package/lib/typescript/src/components/ProgressIndicator.d.ts +13 -10
  159. package/lib/typescript/src/components/ProgressIndicator.js +1 -1
  160. package/lib/typescript/src/components/ProgressIndicator.js.map +1 -1
  161. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +2 -2
  162. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +2 -4
  163. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js +3 -4
  164. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js.map +1 -1
  165. package/lib/typescript/src/components/Row.d.ts +5 -3
  166. package/lib/typescript/src/components/Row.js +1 -1
  167. package/lib/typescript/src/components/Row.js.map +1 -1
  168. package/lib/typescript/src/components/ScreenContainer.d.ts +6 -3
  169. package/lib/typescript/src/components/ScreenContainer.js +2 -3
  170. package/lib/typescript/src/components/ScreenContainer.js.map +1 -1
  171. package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +5 -3
  172. package/lib/typescript/src/components/SectionList/SectionHeader.js +3 -3
  173. package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -1
  174. package/lib/typescript/src/components/SectionList/SectionList.d.ts +6 -4
  175. package/lib/typescript/src/components/SectionList/SectionList.js +4 -4
  176. package/lib/typescript/src/components/SectionList/SectionList.js.map +1 -1
  177. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.d.ts +2 -1
  178. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +3 -3
  179. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +1 -1
  180. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.d.ts +2 -1
  181. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +3 -3
  182. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +1 -1
  183. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.d.ts +2 -1
  184. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +3 -3
  185. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +1 -1
  186. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.d.ts +2 -2
  187. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +3 -3
  188. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +1 -1
  189. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.d.ts +2 -1
  190. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +3 -3
  191. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +1 -1
  192. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.d.ts +6 -2
  193. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +3 -3
  194. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +1 -1
  195. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.d.ts +6 -2
  196. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +3 -3
  197. package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +1 -1
  198. package/lib/typescript/src/components/Slider.d.ts +6 -3
  199. package/lib/typescript/src/components/Slider.js +6 -6
  200. package/lib/typescript/src/components/Slider.js.map +1 -1
  201. package/lib/typescript/src/components/StarRating.d.ts +5 -3
  202. package/lib/typescript/src/components/StarRating.js +1 -1
  203. package/lib/typescript/src/components/StarRating.js.map +1 -1
  204. package/lib/typescript/src/components/Stepper.d.ts +5 -3
  205. package/lib/typescript/src/components/Stepper.js +2 -3
  206. package/lib/typescript/src/components/Stepper.js.map +1 -1
  207. package/lib/typescript/src/components/Surface.d.ts +5 -3
  208. package/lib/typescript/src/components/Surface.js +10 -3
  209. package/lib/typescript/src/components/Surface.js.map +1 -1
  210. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +5 -3
  211. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +5 -10
  212. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  213. package/lib/typescript/src/components/SwipeableItem/SwipeableList.d.ts +3 -3
  214. package/lib/typescript/src/components/SwipeableItem/SwipeableList.js +4 -4
  215. package/lib/typescript/src/components/SwipeableItem/SwipeableList.js.map +1 -1
  216. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -4
  217. package/lib/typescript/src/components/Swiper/Swiper.js +2 -3
  218. package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
  219. package/lib/typescript/src/components/Switch.d.ts +24 -7
  220. package/lib/typescript/src/components/Switch.js +4 -3
  221. package/lib/typescript/src/components/Switch.js.map +1 -1
  222. package/lib/typescript/src/components/TabView/TabView.d.ts +7 -3
  223. package/lib/typescript/src/components/TabView/TabView.js +21 -6
  224. package/lib/typescript/src/components/TabView/TabView.js.map +1 -1
  225. package/lib/typescript/src/components/Table/Table.d.ts +5 -3
  226. package/lib/typescript/src/components/Table/Table.js +2 -2
  227. package/lib/typescript/src/components/Table/Table.js.map +1 -1
  228. package/lib/typescript/src/components/Table/TableRow.d.ts +5 -3
  229. package/lib/typescript/src/components/Table/TableRow.js +2 -4
  230. package/lib/typescript/src/components/Table/TableRow.js.map +1 -1
  231. package/lib/typescript/src/components/Text.d.ts +9 -3
  232. package/lib/typescript/src/components/Text.js +2 -2
  233. package/lib/typescript/src/components/Text.js.map +1 -1
  234. package/lib/typescript/src/components/TextField.d.ts +41 -4
  235. package/lib/typescript/src/components/TextField.js +20 -22
  236. package/lib/typescript/src/components/TextField.js.map +1 -1
  237. package/lib/typescript/src/components/TextInput.js +0 -3
  238. package/lib/typescript/src/components/TextInput.js.map +1 -1
  239. package/lib/typescript/src/components/Typography.d.ts +11 -5
  240. package/lib/typescript/src/components/Typography.js +4 -4
  241. package/lib/typescript/src/components/Typography.js.map +1 -1
  242. package/lib/typescript/src/deprecated-components/AccordionItem.d.ts +5 -3
  243. package/lib/typescript/src/deprecated-components/AccordionItem.js +2 -2
  244. package/lib/typescript/src/deprecated-components/AccordionItem.js.map +1 -1
  245. package/lib/typescript/src/deprecated-components/AvatarEdit.d.ts +5 -3
  246. package/lib/typescript/src/deprecated-components/AvatarEdit.js +4 -4
  247. package/lib/typescript/src/deprecated-components/AvatarEdit.js.map +1 -1
  248. package/lib/typescript/src/deprecated-components/Banner.d.ts +5 -3
  249. package/lib/typescript/src/deprecated-components/Banner.js +5 -4
  250. package/lib/typescript/src/deprecated-components/Banner.js.map +1 -1
  251. package/lib/typescript/src/deprecated-components/Card.d.ts +18 -6
  252. package/lib/typescript/src/deprecated-components/Card.js +3 -3
  253. package/lib/typescript/src/deprecated-components/Card.js.map +1 -1
  254. package/lib/typescript/src/deprecated-components/CheckboxGroup.d.ts +2 -2
  255. package/lib/typescript/src/deprecated-components/Container.d.ts +5 -3
  256. package/lib/typescript/src/deprecated-components/Container.js +1 -1
  257. package/lib/typescript/src/deprecated-components/Container.js.map +1 -1
  258. package/lib/typescript/src/deprecated-components/DeprecatedButton.d.ts +5 -3
  259. package/lib/typescript/src/deprecated-components/DeprecatedButton.js +8 -8
  260. package/lib/typescript/src/deprecated-components/DeprecatedButton.js.map +1 -1
  261. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.d.ts +5 -3
  262. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
  263. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
  264. package/lib/typescript/src/deprecated-components/DeprecatedFAB.d.ts +5 -3
  265. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js +8 -8
  266. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js.map +1 -1
  267. package/lib/typescript/src/deprecated-components/FAB.d.ts +8 -3
  268. package/lib/typescript/src/deprecated-components/FAB.js +2 -2
  269. package/lib/typescript/src/deprecated-components/FAB.js.map +1 -1
  270. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.d.ts +5 -3
  271. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js +4 -4
  272. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
  273. package/lib/typescript/src/deprecated-components/ProgressCircle.d.ts +8 -5
  274. package/lib/typescript/src/deprecated-components/ProgressCircle.js +3 -3
  275. package/lib/typescript/src/deprecated-components/ProgressCircle.js.map +1 -1
  276. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.d.ts +3 -1
  277. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
  278. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
  279. package/lib/typescript/src/deprecated-components/RowBodyIcon.d.ts +5 -3
  280. package/lib/typescript/src/deprecated-components/RowBodyIcon.js +2 -2
  281. package/lib/typescript/src/deprecated-components/RowBodyIcon.js.map +1 -1
  282. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.d.ts +5 -3
  283. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
  284. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
  285. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.d.ts +5 -3
  286. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
  287. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
  288. package/lib/typescript/src/deprecated-components/ToggleButton.d.ts +9 -6
  289. package/lib/typescript/src/deprecated-components/ToggleButton.js +5 -5
  290. package/lib/typescript/src/deprecated-components/ToggleButton.js.map +1 -1
  291. package/lib/typescript/src/index.d.ts +2 -0
  292. package/lib/typescript/src/index.js +2 -0
  293. package/lib/typescript/src/index.js.map +1 -1
  294. package/lib/typescript/src/styles/DarkTheme.d.ts +3 -0
  295. package/lib/typescript/src/styles/DarkTheme.js +27 -0
  296. package/lib/typescript/src/styles/DarkTheme.js.map +1 -0
  297. package/lib/typescript/src/styles/DefaultTheme.d.ts +1670 -0
  298. package/lib/typescript/src/styles/DefaultTheme.js +112 -0
  299. package/lib/typescript/src/styles/DefaultTheme.js.map +1 -0
  300. package/lib/typescript/src/styles/fonts.d.ts +5 -0
  301. package/lib/typescript/src/styles/fonts.js +63 -0
  302. package/lib/typescript/src/styles/fonts.js.map +1 -0
  303. package/lib/typescript/src/styles/overlay.d.ts +2 -0
  304. package/lib/typescript/src/styles/overlay.js +61 -0
  305. package/lib/typescript/src/styles/overlay.js.map +1 -0
  306. package/lib/typescript/src/styles/shadow.d.ts +23 -0
  307. package/lib/typescript/src/styles/shadow.js +52 -0
  308. package/lib/typescript/src/styles/shadow.js.map +1 -0
  309. package/lib/typescript/src/theming.d.ts +8 -0
  310. package/lib/typescript/src/theming.js +4 -0
  311. package/lib/typescript/src/theming.js.map +1 -0
  312. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  313. package/package.json +5 -4
  314. package/src/Provider.js +4 -4
  315. package/src/Provider.js.map +1 -1
  316. package/src/Provider.tsx +12 -15
  317. package/src/components/AccordionGroup.js +3 -3
  318. package/src/components/AccordionGroup.js.map +1 -1
  319. package/src/components/AccordionGroup.tsx +5 -5
  320. package/src/components/BottomSheet/BottomSheet.js +4 -4
  321. package/src/components/BottomSheet/BottomSheet.js.map +1 -1
  322. package/src/components/BottomSheet/BottomSheet.tsx +7 -7
  323. package/src/components/Button.js +6 -8
  324. package/src/components/Button.js.map +1 -1
  325. package/src/components/Button.tsx +10 -10
  326. package/src/components/Checkbox/Checkbox.js +3 -3
  327. package/src/components/Checkbox/Checkbox.js.map +1 -1
  328. package/src/components/Checkbox/Checkbox.tsx +3 -3
  329. package/src/components/Checkbox/CheckboxRow.js +6 -7
  330. package/src/components/Checkbox/CheckboxRow.js.map +1 -1
  331. package/src/components/Checkbox/CheckboxRow.tsx +5 -12
  332. package/src/components/DatePicker/DatePicker.js +23 -24
  333. package/src/components/DatePicker/DatePicker.js.map +1 -1
  334. package/src/components/DatePicker/DatePicker.tsx +24 -25
  335. package/src/components/DatePicker/DatePickerComponent.web.js +6 -8
  336. package/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  337. package/src/components/DatePicker/DatePickerComponent.web.tsx +8 -15
  338. package/src/components/DatePicker/DatePickerComponentType.ts +3 -2
  339. package/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  340. package/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  341. package/src/components/DeckSwiper/DeckSwiperCard.tsx +5 -5
  342. package/src/components/Divider.js +2 -2
  343. package/src/components/Divider.js.map +1 -1
  344. package/src/components/Divider.tsx +4 -4
  345. package/src/components/Elevation.js +4 -3
  346. package/src/components/Elevation.js.map +1 -1
  347. package/src/components/Elevation.tsx +6 -5
  348. package/src/components/FormRow.js.map +1 -1
  349. package/src/components/FormRow.tsx +2 -1
  350. package/src/components/IconButton.js +2 -2
  351. package/src/components/IconButton.js.map +1 -1
  352. package/src/components/IconButton.tsx +4 -4
  353. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +2 -0
  354. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +13 -10
  355. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  356. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +19 -19
  357. package/src/components/MediaPlayer/AudioPlayer/index.js +3 -1
  358. package/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
  359. package/src/components/MediaPlayer/AudioPlayer/index.tsx +3 -1
  360. package/src/components/Picker/NativePicker.js +2 -5
  361. package/src/components/Picker/NativePicker.js.map +1 -1
  362. package/src/components/Picker/NativePicker.tsx +2 -5
  363. package/src/components/Picker/PickerCommon.ts +2 -2
  364. package/src/components/Picker/dropdown/DropDownModalPicker.js +2 -2
  365. package/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -1
  366. package/src/components/Picker/dropdown/DropDownModalPicker.tsx +5 -5
  367. package/src/components/Picker/dropdown/DropDownPicker.js +2 -2
  368. package/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
  369. package/src/components/Picker/dropdown/DropDownPicker.tsx +5 -5
  370. package/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  371. package/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
  372. package/src/components/Picker/dropdown/MultiSelectPicker.tsx +1 -1
  373. package/src/components/Picker/index.js +1 -1
  374. package/src/components/Picker/index.js.map +1 -1
  375. package/src/components/Picker/index.tsx +1 -1
  376. package/src/components/PinInput/PinInput.js +4 -4
  377. package/src/components/PinInput/PinInput.js.map +1 -1
  378. package/src/components/PinInput/PinInput.tsx +6 -6
  379. package/src/components/PinInput/PinInputText.js +2 -2
  380. package/src/components/PinInput/PinInputText.js.map +1 -1
  381. package/src/components/PinInput/PinInputText.tsx +4 -4
  382. package/src/components/Portal/Portal.js +5 -3
  383. package/src/components/Portal/Portal.js.map +1 -1
  384. package/src/components/Portal/Portal.tsx +10 -3
  385. package/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
  386. package/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  387. package/src/components/Progress/CircularProgress/CircularProgress.tsx +2 -2
  388. package/src/components/Progress/CircularProgress/index.js +1 -1
  389. package/src/components/Progress/CircularProgress/index.js.map +1 -1
  390. package/src/components/Progress/CircularProgress/index.tsx +1 -1
  391. package/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
  392. package/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  393. package/src/components/Progress/LinearProgress/LinearProgress.tsx +2 -2
  394. package/src/components/Progress/LinearProgress/index.js +1 -1
  395. package/src/components/Progress/LinearProgress/index.js.map +1 -1
  396. package/src/components/Progress/LinearProgress/index.tsx +1 -1
  397. package/src/components/Progress/ProgressCommon.ts +2 -2
  398. package/src/components/ProgressIndicator.js +1 -1
  399. package/src/components/ProgressIndicator.js.map +1 -1
  400. package/src/components/ProgressIndicator.tsx +11 -10
  401. package/src/components/RadioButton/RadioButtonGroup.tsx +2 -2
  402. package/src/components/RadioButton/RadioButtonRow.js +3 -4
  403. package/src/components/RadioButton/RadioButtonRow.js.map +1 -1
  404. package/src/components/RadioButton/RadioButtonRow.tsx +2 -9
  405. package/src/components/Row.js +1 -1
  406. package/src/components/Row.js.map +1 -1
  407. package/src/components/Row.tsx +3 -3
  408. package/src/components/ScreenContainer.js +2 -3
  409. package/src/components/ScreenContainer.js.map +1 -1
  410. package/src/components/ScreenContainer.tsx +4 -5
  411. package/src/components/SectionList/SectionHeader.js +3 -3
  412. package/src/components/SectionList/SectionHeader.js.map +1 -1
  413. package/src/components/SectionList/SectionHeader.tsx +5 -5
  414. package/src/components/SectionList/SectionList.js +4 -4
  415. package/src/components/SectionList/SectionList.js.map +1 -1
  416. package/src/components/SectionList/SectionList.tsx +152 -145
  417. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +3 -3
  418. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +1 -1
  419. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.tsx +22 -16
  420. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +3 -3
  421. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +1 -1
  422. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx +22 -16
  423. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +3 -3
  424. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +1 -1
  425. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.tsx +20 -13
  426. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +3 -3
  427. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +1 -1
  428. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.tsx +27 -17
  429. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +3 -3
  430. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +1 -1
  431. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.tsx +20 -13
  432. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +3 -3
  433. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +1 -1
  434. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.tsx +28 -20
  435. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +3 -3
  436. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +1 -1
  437. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx +28 -20
  438. package/src/components/Slider.js +6 -6
  439. package/src/components/Slider.js.map +1 -1
  440. package/src/components/Slider.tsx +8 -8
  441. package/src/components/StarRating.js +1 -1
  442. package/src/components/StarRating.js.map +1 -1
  443. package/src/components/StarRating.tsx +3 -3
  444. package/src/components/Stepper.js +2 -3
  445. package/src/components/Stepper.js.map +1 -1
  446. package/src/components/Stepper.tsx +4 -5
  447. package/src/components/Surface.js +10 -3
  448. package/src/components/Surface.js.map +1 -1
  449. package/src/components/Surface.tsx +12 -5
  450. package/src/components/SwipeableItem/SwipeableItem.js +5 -10
  451. package/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  452. package/src/components/SwipeableItem/SwipeableItem.tsx +7 -13
  453. package/src/components/SwipeableItem/SwipeableList.js +4 -4
  454. package/src/components/SwipeableItem/SwipeableList.js.map +1 -1
  455. package/src/components/SwipeableItem/SwipeableList.tsx +47 -32
  456. package/src/components/Swiper/Swiper.js +2 -3
  457. package/src/components/Swiper/Swiper.js.map +1 -1
  458. package/src/components/Swiper/Swiper.tsx +3 -6
  459. package/src/components/Switch.js +4 -3
  460. package/src/components/Switch.js.map +1 -1
  461. package/src/components/Switch.tsx +7 -7
  462. package/src/components/TabView/TabView.js +21 -6
  463. package/src/components/TabView/TabView.js.map +1 -1
  464. package/src/components/TabView/TabView.tsx +26 -7
  465. package/src/components/Table/Table.js +2 -2
  466. package/src/components/Table/Table.js.map +1 -1
  467. package/src/components/Table/Table.tsx +4 -4
  468. package/src/components/Table/TableRow.js +2 -4
  469. package/src/components/Table/TableRow.js.map +1 -1
  470. package/src/components/Table/TableRow.tsx +4 -6
  471. package/src/components/Text.js +2 -2
  472. package/src/components/Text.js.map +1 -1
  473. package/src/components/Text.tsx +4 -4
  474. package/src/components/TextField.js +20 -22
  475. package/src/components/TextField.js.map +1 -1
  476. package/src/components/TextField.tsx +23 -26
  477. package/src/components/TextInput.js +0 -3
  478. package/src/components/TextInput.js.map +1 -1
  479. package/src/components/TextInput.tsx +0 -3
  480. package/src/components/Typography.js +4 -4
  481. package/src/components/Typography.js.map +1 -1
  482. package/src/components/Typography.tsx +6 -6
  483. package/src/deprecated-components/AccordionItem.js +2 -2
  484. package/src/deprecated-components/AccordionItem.js.map +1 -1
  485. package/src/deprecated-components/AccordionItem.tsx +4 -4
  486. package/src/deprecated-components/AvatarEdit.js +4 -4
  487. package/src/deprecated-components/AvatarEdit.js.map +1 -1
  488. package/src/deprecated-components/AvatarEdit.tsx +6 -6
  489. package/src/deprecated-components/Banner.js +5 -4
  490. package/src/deprecated-components/Banner.js.map +1 -1
  491. package/src/deprecated-components/Banner.tsx +10 -6
  492. package/src/deprecated-components/Card.js +3 -3
  493. package/src/deprecated-components/Card.js.map +1 -1
  494. package/src/deprecated-components/Card.tsx +6 -10
  495. package/src/deprecated-components/CheckboxGroup.tsx +2 -2
  496. package/src/deprecated-components/Container.js +1 -1
  497. package/src/deprecated-components/Container.js.map +1 -1
  498. package/src/deprecated-components/Container.tsx +3 -3
  499. package/src/deprecated-components/DeprecatedButton.js +8 -8
  500. package/src/deprecated-components/DeprecatedButton.js.map +1 -1
  501. package/src/deprecated-components/DeprecatedButton.tsx +10 -10
  502. package/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
  503. package/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
  504. package/src/deprecated-components/DeprecatedCardWrapper.tsx +3 -3
  505. package/src/deprecated-components/DeprecatedFAB.js +8 -8
  506. package/src/deprecated-components/DeprecatedFAB.js.map +1 -1
  507. package/src/deprecated-components/DeprecatedFAB.tsx +10 -10
  508. package/src/deprecated-components/FAB.js +2 -2
  509. package/src/deprecated-components/FAB.js.map +1 -1
  510. package/src/deprecated-components/FAB.tsx +4 -4
  511. package/src/deprecated-components/FieldSearchBarFull.js +4 -4
  512. package/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
  513. package/src/deprecated-components/FieldSearchBarFull.tsx +6 -6
  514. package/src/deprecated-components/ProgressCircle.js +3 -3
  515. package/src/deprecated-components/ProgressCircle.js.map +1 -1
  516. package/src/deprecated-components/ProgressCircle.tsx +8 -7
  517. package/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
  518. package/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
  519. package/src/deprecated-components/RadioButtonFieldGroup.tsx +1 -1
  520. package/src/deprecated-components/RowBodyIcon.js +2 -2
  521. package/src/deprecated-components/RowBodyIcon.js.map +1 -1
  522. package/src/deprecated-components/RowBodyIcon.tsx +6 -6
  523. package/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
  524. package/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
  525. package/src/deprecated-components/RowHeadlineImageCaption.tsx +6 -6
  526. package/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
  527. package/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
  528. package/src/deprecated-components/RowHeadlineImageIcon.tsx +6 -6
  529. package/src/deprecated-components/ToggleButton.js +5 -5
  530. package/src/deprecated-components/ToggleButton.js.map +1 -1
  531. package/src/deprecated-components/ToggleButton.tsx +11 -12
  532. package/src/index.js +2 -0
  533. package/src/index.js.map +1 -1
  534. package/src/index.tsx +2 -0
  535. package/src/styles/DarkTheme.js +27 -0
  536. package/src/styles/DarkTheme.js.map +1 -0
  537. package/src/styles/DarkTheme.tsx +30 -0
  538. package/src/styles/DefaultTheme.js +112 -0
  539. package/src/styles/DefaultTheme.js.map +1 -0
  540. package/src/styles/DefaultTheme.tsx +114 -0
  541. package/src/styles/fonts.js +63 -0
  542. package/src/styles/fonts.js.map +1 -0
  543. package/src/styles/fonts.tsx +67 -0
  544. package/src/styles/overlay.js +61 -0
  545. package/src/styles/overlay.js.map +1 -0
  546. package/src/styles/overlay.tsx +69 -0
  547. package/src/styles/shadow.js +52 -0
  548. package/src/styles/shadow.js.map +1 -0
  549. package/src/styles/shadow.tsx +55 -0
  550. package/src/theming.js +4 -0
  551. package/src/theming.js.map +1 -0
  552. package/src/theming.tsx +6 -0
@@ -0,0 +1,112 @@
1
+ import { systemWeights } from "react-native-typography";
2
+ import configureFonts from "./fonts";
3
+ const DefaultTheme = {
4
+ disabledOpacity: 0.5,
5
+ roundness: 8,
6
+ dark: false,
7
+ mode: "exact",
8
+ borderRadius: {
9
+ global: 6,
10
+ button: 24,
11
+ },
12
+ colors: {
13
+ primary: "rgba(90, 69, 255, 1)",
14
+ secondary: "rgba(59, 201, 234, 1)",
15
+ surface: "rgba(255, 255, 255, 1)",
16
+ background: "rgba(251, 252, 253, 1)",
17
+ error: "rgba(255, 69, 100, 1)",
18
+ divider: "rgba(200, 200, 200, 1)",
19
+ strong: "rgba(18, 20, 44, 1)",
20
+ medium: "rgba(70, 78, 88, 1)",
21
+ strongInverse: "rgba(255, 255, 255, 1)",
22
+ mediumInverse: "rgba(255, 255, 255, 0.87)",
23
+ lightInverse: "rgba(255, 255, 255, 0.68)",
24
+ light: "rgba(165, 173, 183, 1)",
25
+ text: "#000",
26
+ placeholder: "#333",
27
+ disabled: "rgba(0, 0, 0, 0.25)",
28
+ },
29
+ fonts: configureFonts(),
30
+ typography: {
31
+ headline1: {
32
+ ...systemWeights.regular,
33
+ fontSize: 60,
34
+ letterSpacing: 0,
35
+ lineHeight: 71,
36
+ },
37
+ headline2: {
38
+ ...systemWeights.regular,
39
+ fontSize: 48,
40
+ letterSpacing: 0,
41
+ lineHeight: 58,
42
+ },
43
+ headline3: {
44
+ ...systemWeights.regular,
45
+ fontSize: 34,
46
+ letterSpacing: 0,
47
+ lineHeight: 40,
48
+ },
49
+ headline4: {
50
+ ...systemWeights.regular,
51
+ fontSize: 24,
52
+ letterSpacing: 0,
53
+ lineHeight: 34,
54
+ },
55
+ headline5: {
56
+ ...systemWeights.regular,
57
+ fontSize: 20,
58
+ letterSpacing: 0,
59
+ lineHeight: 26,
60
+ },
61
+ subtitle1: {
62
+ ...systemWeights.regular,
63
+ fontSize: 16,
64
+ letterSpacing: 0,
65
+ lineHeight: 26,
66
+ },
67
+ subtitle2: {
68
+ ...systemWeights.regular,
69
+ fontSize: 14,
70
+ letterSpacing: 0,
71
+ lineHeight: 22,
72
+ },
73
+ body1: {
74
+ ...systemWeights.regular,
75
+ fontSize: 16,
76
+ letterSpacing: 0,
77
+ lineHeight: 26,
78
+ },
79
+ body2: {
80
+ ...systemWeights.regular,
81
+ fontSize: 14,
82
+ letterSpacing: 0,
83
+ lineHeight: 22,
84
+ },
85
+ button: {
86
+ ...systemWeights.regular,
87
+ fontSize: 14,
88
+ letterSpacing: 0,
89
+ lineHeight: 16,
90
+ },
91
+ caption: {
92
+ ...systemWeights.regular,
93
+ fontSize: 12,
94
+ letterSpacing: 0,
95
+ lineHeight: 16,
96
+ },
97
+ overline: {
98
+ ...systemWeights.regular,
99
+ fontSize: 12,
100
+ letterSpacing: 2,
101
+ lineHeight: 16,
102
+ },
103
+ headline6: {
104
+ ...systemWeights.regular,
105
+ fontSize: 16,
106
+ letterSpacing: 0,
107
+ lineHeight: 24,
108
+ },
109
+ },
110
+ };
111
+ export default DefaultTheme;
112
+ //# sourceMappingURL=DefaultTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultTheme.js","sourceRoot":"","sources":["DefaultTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,cAAc,MAAM,SAAS,CAAC;AAErC,MAAM,YAAY,GAAG;IACnB,eAAe,EAAE,GAAG;IACpB,SAAS,EAAE,CAAC;IACZ,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,OAAO;IACb,YAAY,EAAE;QACZ,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,EAAE;KACX;IACD,MAAM,EAAE;QACN,OAAO,EAAE,sBAAsB;QAC/B,SAAS,EAAE,uBAAuB;QAClC,OAAO,EAAE,wBAAwB;QACjC,UAAU,EAAE,wBAAwB;QACpC,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE,wBAAwB;QACjC,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,wBAAwB;QACvC,aAAa,EAAE,2BAA2B;QAC1C,YAAY,EAAE,2BAA2B;QACzC,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE,qBAAqB;KAChC;IACD,KAAK,EAAE,cAAc,EAAE;IACvB,UAAU,EAAE;QACV,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,KAAK,EAAE;YACL,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,KAAK,EAAE;YACL,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,MAAM,EAAE;YACN,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,OAAO,EAAE;YACP,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,QAAQ,EAAE;YACR,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;QACD,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,OAAO;YACxB,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,EAAE;SACf;KACF;CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,114 @@
1
+ import { systemWeights } from "react-native-typography";
2
+ import configureFonts from "./fonts";
3
+
4
+ const DefaultTheme = {
5
+ disabledOpacity: 0.5,
6
+ roundness: 8,
7
+ dark: false,
8
+ mode: "exact",
9
+ borderRadius: {
10
+ global: 6,
11
+ button: 24,
12
+ },
13
+ colors: {
14
+ primary: "rgba(90, 69, 255, 1)",
15
+ secondary: "rgba(59, 201, 234, 1)",
16
+ surface: "rgba(255, 255, 255, 1)",
17
+ background: "rgba(251, 252, 253, 1)",
18
+ error: "rgba(255, 69, 100, 1)",
19
+ divider: "rgba(200, 200, 200, 1)",
20
+ strong: "rgba(18, 20, 44, 1)",
21
+ medium: "rgba(70, 78, 88, 1)",
22
+ strongInverse: "rgba(255, 255, 255, 1)",
23
+ mediumInverse: "rgba(255, 255, 255, 0.87)",
24
+ lightInverse: "rgba(255, 255, 255, 0.68)",
25
+ light: "rgba(165, 173, 183, 1)",
26
+ text: "#000",
27
+ placeholder: "#333",
28
+ disabled: "rgba(0, 0, 0, 0.25)",
29
+ },
30
+ fonts: configureFonts(),
31
+ typography: {
32
+ headline1: {
33
+ ...systemWeights.regular,
34
+ fontSize: 60,
35
+ letterSpacing: 0,
36
+ lineHeight: 71,
37
+ },
38
+ headline2: {
39
+ ...systemWeights.regular,
40
+ fontSize: 48,
41
+ letterSpacing: 0,
42
+ lineHeight: 58,
43
+ },
44
+ headline3: {
45
+ ...systemWeights.regular,
46
+ fontSize: 34,
47
+ letterSpacing: 0,
48
+ lineHeight: 40,
49
+ },
50
+ headline4: {
51
+ ...systemWeights.regular,
52
+ fontSize: 24,
53
+ letterSpacing: 0,
54
+ lineHeight: 34,
55
+ },
56
+ headline5: {
57
+ ...systemWeights.regular,
58
+ fontSize: 20,
59
+ letterSpacing: 0,
60
+ lineHeight: 26,
61
+ },
62
+ subtitle1: {
63
+ ...systemWeights.regular,
64
+ fontSize: 16,
65
+ letterSpacing: 0,
66
+ lineHeight: 26,
67
+ },
68
+ subtitle2: {
69
+ ...systemWeights.regular,
70
+ fontSize: 14,
71
+ letterSpacing: 0,
72
+ lineHeight: 22,
73
+ },
74
+ body1: {
75
+ ...systemWeights.regular,
76
+ fontSize: 16,
77
+ letterSpacing: 0,
78
+ lineHeight: 26,
79
+ },
80
+ body2: {
81
+ ...systemWeights.regular,
82
+ fontSize: 14,
83
+ letterSpacing: 0,
84
+ lineHeight: 22,
85
+ },
86
+ button: {
87
+ ...systemWeights.regular,
88
+ fontSize: 14,
89
+ letterSpacing: 0,
90
+ lineHeight: 16,
91
+ },
92
+ caption: {
93
+ ...systemWeights.regular,
94
+ fontSize: 12,
95
+ letterSpacing: 0,
96
+ lineHeight: 16,
97
+ },
98
+ overline: {
99
+ ...systemWeights.regular,
100
+ fontSize: 12,
101
+ letterSpacing: 2,
102
+ lineHeight: 16,
103
+ },
104
+ headline6: {
105
+ ...systemWeights.regular,
106
+ fontSize: 16,
107
+ letterSpacing: 0,
108
+ lineHeight: 24,
109
+ },
110
+ },
111
+ };
112
+
113
+ export default DefaultTheme;
114
+ export type Theme = typeof DefaultTheme;
@@ -0,0 +1,63 @@
1
+ /* https://github.com/callstack/react-native-paper/blob/main/src/styles/fonts.tsx */
2
+ import { Platform } from "react-native";
3
+ const fontConfig = {
4
+ web: {
5
+ regular: {
6
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
7
+ fontWeight: "400",
8
+ },
9
+ medium: {
10
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
11
+ fontWeight: "500",
12
+ },
13
+ light: {
14
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
15
+ fontWeight: "300",
16
+ },
17
+ thin: {
18
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
19
+ fontWeight: "100",
20
+ },
21
+ },
22
+ ios: {
23
+ regular: {
24
+ fontFamily: "System",
25
+ fontWeight: "400",
26
+ },
27
+ medium: {
28
+ fontFamily: "System",
29
+ fontWeight: "500",
30
+ },
31
+ light: {
32
+ fontFamily: "System",
33
+ fontWeight: "300",
34
+ },
35
+ thin: {
36
+ fontFamily: "System",
37
+ fontWeight: "100",
38
+ },
39
+ },
40
+ default: {
41
+ regular: {
42
+ fontFamily: "sans-serif",
43
+ fontWeight: "normal",
44
+ },
45
+ medium: {
46
+ fontFamily: "sans-serif-medium",
47
+ fontWeight: "normal",
48
+ },
49
+ light: {
50
+ fontFamily: "sans-serif-light",
51
+ fontWeight: "normal",
52
+ },
53
+ thin: {
54
+ fontFamily: "sans-serif-thin",
55
+ fontWeight: "normal",
56
+ },
57
+ },
58
+ };
59
+ export default function configureFonts(config) {
60
+ const fonts = Platform.select({ ...fontConfig, ...config });
61
+ return fonts;
62
+ }
63
+ //# sourceMappingURL=fonts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fonts.js","sourceRoot":"","sources":["fonts.tsx"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,OAAO,EAAE,QAAQ,EAAkB,MAAM,cAAc,CAAC;AAGxD,MAAM,UAAU,GAAG;IACjB,GAAG,EAAE;QACH,OAAO,EAAE;YACP,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;QACD,MAAM,EAAE;YACN,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;QACD,KAAK,EAAE;YACL,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,wDAAwD;YACpE,UAAU,EAAE,KAAc;SAC3B;KACF;IACD,GAAG,EAAE;QACH,OAAO,EAAE;YACP,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;QACD,MAAM,EAAE;YACN,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;QACD,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,KAAc;SAC3B;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,QAAoB;SACjC;QACD,MAAM,EAAE;YACN,UAAU,EAAE,mBAAmB;YAC/B,UAAU,EAAE,QAAoB;SACjC;QACD,KAAK,EAAE;YACL,UAAU,EAAE,kBAAkB;YAC9B,UAAU,EAAE,QAAoB;SACjC;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,iBAAiB;YAC7B,UAAU,EAAE,QAAoB;SACjC;KACF;CACF,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,MAEtC;IACC,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,EAAE,CAAU,CAAC;IACrE,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,67 @@
1
+ /* https://github.com/callstack/react-native-paper/blob/main/src/styles/fonts.tsx */
2
+ import { Platform, PlatformOSType } from "react-native";
3
+ import type { Fonts } from "@draftbit/types";
4
+
5
+ const fontConfig = {
6
+ web: {
7
+ regular: {
8
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
9
+ fontWeight: "400" as "400",
10
+ },
11
+ medium: {
12
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
13
+ fontWeight: "500" as "500",
14
+ },
15
+ light: {
16
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
17
+ fontWeight: "300" as "300",
18
+ },
19
+ thin: {
20
+ fontFamily: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif',
21
+ fontWeight: "100" as "100",
22
+ },
23
+ },
24
+ ios: {
25
+ regular: {
26
+ fontFamily: "System",
27
+ fontWeight: "400" as "400",
28
+ },
29
+ medium: {
30
+ fontFamily: "System",
31
+ fontWeight: "500" as "500",
32
+ },
33
+ light: {
34
+ fontFamily: "System",
35
+ fontWeight: "300" as "300",
36
+ },
37
+ thin: {
38
+ fontFamily: "System",
39
+ fontWeight: "100" as "100",
40
+ },
41
+ },
42
+ default: {
43
+ regular: {
44
+ fontFamily: "sans-serif",
45
+ fontWeight: "normal" as "normal",
46
+ },
47
+ medium: {
48
+ fontFamily: "sans-serif-medium",
49
+ fontWeight: "normal" as "normal",
50
+ },
51
+ light: {
52
+ fontFamily: "sans-serif-light",
53
+ fontWeight: "normal" as "normal",
54
+ },
55
+ thin: {
56
+ fontFamily: "sans-serif-thin",
57
+ fontWeight: "normal" as "normal",
58
+ },
59
+ },
60
+ };
61
+
62
+ export default function configureFonts(config?: {
63
+ [platform in PlatformOSType | "default"]?: Fonts;
64
+ }): Fonts {
65
+ const fonts = Platform.select({ ...fontConfig, ...config }) as Fonts;
66
+ return fonts;
67
+ }
@@ -0,0 +1,61 @@
1
+ /* Copied from https://github.com/callstack/react-native-paper/blob/main/src/styles/overlay.tsx */
2
+ import color from "color";
3
+ import { Animated } from "react-native";
4
+ import DarkTheme from "./DarkTheme";
5
+ const isAnimatedValue = (it) => it instanceof Animated.Value;
6
+ export default function overlay(elevation, surfaceColor = DarkTheme.colors.surface) {
7
+ if (isAnimatedValue(elevation)) {
8
+ const inputRange = [0, 1, 2, 3, 8, 24];
9
+ // @ts-expect-error: TS doesn't seem to refine the type correctly
10
+ return elevation.interpolate({
11
+ inputRange,
12
+ outputRange: inputRange.map((e) => {
13
+ return calculateColor(surfaceColor, e);
14
+ }),
15
+ });
16
+ }
17
+ // @ts-expect-error: TS doesn't seem to refine the type correctly
18
+ return calculateColor(surfaceColor, elevation);
19
+ }
20
+ function calculateColor(surfaceColor, elevation = 1) {
21
+ let overlayTransparency;
22
+ if (elevation >= 1 && elevation <= 24) {
23
+ overlayTransparency = elevationOverlayTransparency[elevation];
24
+ }
25
+ else if (elevation > 24) {
26
+ overlayTransparency = elevationOverlayTransparency[24];
27
+ }
28
+ else {
29
+ overlayTransparency = elevationOverlayTransparency[1];
30
+ }
31
+ return color(surfaceColor)
32
+ .mix(color("white"), overlayTransparency * 0.01)
33
+ .hex();
34
+ }
35
+ const elevationOverlayTransparency = {
36
+ 1: 5,
37
+ 2: 7,
38
+ 3: 8,
39
+ 4: 9,
40
+ 5: 10,
41
+ 6: 11,
42
+ 7: 11.5,
43
+ 8: 12,
44
+ 9: 12.5,
45
+ 10: 13,
46
+ 11: 13.5,
47
+ 12: 14,
48
+ 13: 14.25,
49
+ 14: 14.5,
50
+ 15: 14.75,
51
+ 16: 15,
52
+ 17: 15.12,
53
+ 18: 15.24,
54
+ 19: 15.36,
55
+ 20: 15.48,
56
+ 21: 15.6,
57
+ 22: 15.72,
58
+ 23: 15.84,
59
+ 24: 16,
60
+ };
61
+ //# sourceMappingURL=overlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.js","sourceRoot":"","sources":["overlay.tsx"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,eAAe,GAAG,CACtB,EAA4D,EACtC,EAAE,CAAC,EAAE,YAAY,QAAQ,CAAC,KAAK,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,SAAY,EACZ,eAAuB,SAAS,CAAC,MAAM,CAAC,OAAO;IAE/C,IAAI,eAAe,CAAC,SAAS,CAAC,EAAE;QAC9B,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAEvC,iEAAiE;QACjE,OAAO,SAAS,CAAC,WAAW,CAAC;YAC3B,UAAU;YACV,WAAW,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAChC,OAAO,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;YACzC,CAAC,CAAC;SACH,CAAC,CAAC;KACJ;IAED,iEAAiE;IACjE,OAAO,cAAc,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,cAAc,CAAC,YAAoB,EAAE,YAAoB,CAAC;IACjE,IAAI,mBAA2B,CAAC;IAChC,IAAI,SAAS,IAAI,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE;QACrC,mBAAmB,GAAG,4BAA4B,CAAC,SAAS,CAAC,CAAC;KAC/D;SAAM,IAAI,SAAS,GAAG,EAAE,EAAE;QACzB,mBAAmB,GAAG,4BAA4B,CAAC,EAAE,CAAC,CAAC;KACxD;SAAM;QACL,mBAAmB,GAAG,4BAA4B,CAAC,CAAC,CAAC,CAAC;KACvD;IACD,OAAO,KAAK,CAAC,YAAY,CAAC;SACvB,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;SAC/C,GAAG,EAAE,CAAC;AACX,CAAC;AAED,MAAM,4BAA4B,GAA2B;IAC3D,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,IAAI;IACP,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,IAAI;IACP,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,EAAE;CACP,CAAC"}
@@ -0,0 +1,69 @@
1
+ /* Copied from https://github.com/callstack/react-native-paper/blob/main/src/styles/overlay.tsx */
2
+ import color from "color";
3
+ import { Animated } from "react-native";
4
+ import DarkTheme from "./DarkTheme";
5
+
6
+ const isAnimatedValue = (
7
+ it: number | Animated.AnimatedInterpolation<string | number>
8
+ ): it is Animated.Value => it instanceof Animated.Value;
9
+
10
+ export default function overlay<T extends Animated.Value | number>(
11
+ elevation: T,
12
+ surfaceColor: string = DarkTheme.colors.surface
13
+ ): T extends number ? string : Animated.AnimatedInterpolation<string | number> {
14
+ if (isAnimatedValue(elevation)) {
15
+ const inputRange = [0, 1, 2, 3, 8, 24];
16
+
17
+ // @ts-expect-error: TS doesn't seem to refine the type correctly
18
+ return elevation.interpolate({
19
+ inputRange,
20
+ outputRange: inputRange.map((e) => {
21
+ return calculateColor(surfaceColor, e);
22
+ }),
23
+ });
24
+ }
25
+
26
+ // @ts-expect-error: TS doesn't seem to refine the type correctly
27
+ return calculateColor(surfaceColor, elevation);
28
+ }
29
+
30
+ function calculateColor(surfaceColor: string, elevation: number = 1) {
31
+ let overlayTransparency: number;
32
+ if (elevation >= 1 && elevation <= 24) {
33
+ overlayTransparency = elevationOverlayTransparency[elevation];
34
+ } else if (elevation > 24) {
35
+ overlayTransparency = elevationOverlayTransparency[24];
36
+ } else {
37
+ overlayTransparency = elevationOverlayTransparency[1];
38
+ }
39
+ return color(surfaceColor)
40
+ .mix(color("white"), overlayTransparency * 0.01)
41
+ .hex();
42
+ }
43
+
44
+ const elevationOverlayTransparency: Record<string, number> = {
45
+ 1: 5,
46
+ 2: 7,
47
+ 3: 8,
48
+ 4: 9,
49
+ 5: 10,
50
+ 6: 11,
51
+ 7: 11.5,
52
+ 8: 12,
53
+ 9: 12.5,
54
+ 10: 13,
55
+ 11: 13.5,
56
+ 12: 14,
57
+ 13: 14.25,
58
+ 14: 14.5,
59
+ 15: 14.75,
60
+ 16: 15,
61
+ 17: 15.12,
62
+ 18: 15.24,
63
+ 19: 15.36,
64
+ 20: 15.48,
65
+ 21: 15.6,
66
+ 22: 15.72,
67
+ 23: 15.84,
68
+ 24: 16,
69
+ };
@@ -0,0 +1,52 @@
1
+ import { Animated } from "react-native";
2
+ const SHADOW_COLOR = "#000";
3
+ const SHADOW_OPACITY = 0.24;
4
+ export default function shadow(elevation = 0) {
5
+ if (elevation instanceof Animated.Value) {
6
+ const inputRange = [0, 1, 2, 3, 8, 24];
7
+ return {
8
+ shadowColor: SHADOW_COLOR,
9
+ shadowOffset: {
10
+ width: new Animated.Value(0),
11
+ height: elevation.interpolate({
12
+ inputRange,
13
+ outputRange: [0, 0.5, 0.75, 2, 7, 23],
14
+ }),
15
+ },
16
+ shadowOpacity: new Animated.Value(SHADOW_OPACITY),
17
+ shadowRadius: elevation.interpolate({
18
+ inputRange,
19
+ outputRange: [0, 0.75, 1.5, 3, 8, 24],
20
+ }),
21
+ };
22
+ }
23
+ else {
24
+ if (elevation === 0) {
25
+ return {};
26
+ }
27
+ let height, radius;
28
+ switch (elevation) {
29
+ case 1:
30
+ height = 0.5;
31
+ radius = 0.75;
32
+ break;
33
+ case 2:
34
+ height = 0.75;
35
+ radius = 1.5;
36
+ break;
37
+ default:
38
+ height = elevation - 1;
39
+ radius = elevation;
40
+ }
41
+ return {
42
+ shadowColor: SHADOW_COLOR,
43
+ shadowOffset: {
44
+ width: 0,
45
+ height,
46
+ },
47
+ shadowOpacity: SHADOW_OPACITY,
48
+ shadowRadius: radius,
49
+ };
50
+ }
51
+ }
52
+ //# sourceMappingURL=shadow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadow.js","sourceRoot":"","sources":["shadow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,YAAY,GAAG,MAAM,CAAC;AAC5B,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,YAAqC,CAAC;IACnE,IAAI,SAAS,YAAY,QAAQ,CAAC,KAAK,EAAE;QACvC,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAEvC,OAAO;YACL,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE;gBACZ,KAAK,EAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5B,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC;oBAC5B,UAAU;oBACV,WAAW,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;iBACtC,CAAC;aACH;YACD,aAAa,EAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC;YACjD,YAAY,EAAE,SAAS,CAAC,WAAW,CAAC;gBAClC,UAAU;gBACV,WAAW,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;aACtC,CAAC;SACH,CAAC;KACH;SAAM;QACL,IAAI,SAAS,KAAK,CAAC,EAAE;YACnB,OAAO,EAAE,CAAC;SACX;QAED,IAAI,MAAM,EAAE,MAAM,CAAC;QACnB,QAAQ,SAAS,EAAE;YACjB,KAAK,CAAC;gBACJ,MAAM,GAAG,GAAG,CAAC;gBACb,MAAM,GAAG,IAAI,CAAC;gBACd,MAAM;YACR,KAAK,CAAC;gBACJ,MAAM,GAAG,IAAI,CAAC;gBACd,MAAM,GAAG,GAAG,CAAC;gBACb,MAAM;YACR;gBACE,MAAM,GAAG,SAAS,GAAG,CAAC,CAAC;gBACvB,MAAM,GAAG,SAAS,CAAC;SACtB;QAED,OAAO;YACL,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE;gBACZ,KAAK,EAAE,CAAC;gBACR,MAAM;aACP;YACD,aAAa,EAAE,cAAc;YAC7B,YAAY,EAAE,MAAM;SACrB,CAAC;KACH;AACH,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { Animated } from "react-native";
2
+
3
+ const SHADOW_COLOR = "#000";
4
+ const SHADOW_OPACITY = 0.24;
5
+
6
+ export default function shadow(elevation: number | Animated.Value = 0) {
7
+ if (elevation instanceof Animated.Value) {
8
+ const inputRange = [0, 1, 2, 3, 8, 24];
9
+
10
+ return {
11
+ shadowColor: SHADOW_COLOR,
12
+ shadowOffset: {
13
+ width: new Animated.Value(0),
14
+ height: elevation.interpolate({
15
+ inputRange,
16
+ outputRange: [0, 0.5, 0.75, 2, 7, 23],
17
+ }),
18
+ },
19
+ shadowOpacity: new Animated.Value(SHADOW_OPACITY),
20
+ shadowRadius: elevation.interpolate({
21
+ inputRange,
22
+ outputRange: [0, 0.75, 1.5, 3, 8, 24],
23
+ }),
24
+ };
25
+ } else {
26
+ if (elevation === 0) {
27
+ return {};
28
+ }
29
+
30
+ let height, radius;
31
+ switch (elevation) {
32
+ case 1:
33
+ height = 0.5;
34
+ radius = 0.75;
35
+ break;
36
+ case 2:
37
+ height = 0.75;
38
+ radius = 1.5;
39
+ break;
40
+ default:
41
+ height = elevation - 1;
42
+ radius = elevation;
43
+ }
44
+
45
+ return {
46
+ shadowColor: SHADOW_COLOR,
47
+ shadowOffset: {
48
+ width: 0,
49
+ height,
50
+ },
51
+ shadowOpacity: SHADOW_OPACITY,
52
+ shadowRadius: radius,
53
+ };
54
+ }
55
+ }
package/src/theming.js ADDED
@@ -0,0 +1,4 @@
1
+ import { createTheming } from "@draftbit/react-theme-provider";
2
+ import DefaultTheme from "./styles/DefaultTheme";
3
+ export const { ThemeProvider, withTheme, useTheme } = createTheming(DefaultTheme);
4
+ //# sourceMappingURL=theming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theming.js","sourceRoot":"","sources":["theming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAGjD,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,GACjD,aAAa,CAAQ,YAAY,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { createTheming } from "@draftbit/react-theme-provider";
2
+ import DefaultTheme from "./styles/DefaultTheme";
3
+ import type { Theme } from "@draftbit/types";
4
+
5
+ export const { ThemeProvider, withTheme, useTheme } =
6
+ createTheming<Theme>(DefaultTheme);