@draftbit/core 50.1.2 → 50.1.3-13d35c.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 (489) 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/Slider.js +1 -1
  33. package/lib/commonjs/components/StarRating.js +1 -1
  34. package/lib/commonjs/components/Stepper.js +1 -1
  35. package/lib/commonjs/components/Surface.js +1 -1
  36. package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
  37. package/lib/commonjs/components/Swiper/Swiper.js +1 -1
  38. package/lib/commonjs/components/Switch.js +1 -1
  39. package/lib/commonjs/components/TabView/TabView.js +1 -1
  40. package/lib/commonjs/components/Table/Table.js +1 -1
  41. package/lib/commonjs/components/Table/TableRow.js +1 -1
  42. package/lib/commonjs/components/Text.js +1 -1
  43. package/lib/commonjs/components/TextField.js +1 -1
  44. package/lib/commonjs/components/TextInput.js +1 -1
  45. package/lib/commonjs/components/Typography.js +1 -1
  46. package/lib/commonjs/deprecated-components/AccordionItem.js +1 -1
  47. package/lib/commonjs/deprecated-components/AvatarEdit.js +1 -1
  48. package/lib/commonjs/deprecated-components/Banner.js +1 -1
  49. package/lib/commonjs/deprecated-components/Card.js +1 -1
  50. package/lib/commonjs/deprecated-components/Container.js +1 -1
  51. package/lib/commonjs/deprecated-components/DeprecatedButton.js +1 -1
  52. package/lib/commonjs/deprecated-components/DeprecatedCardWrapper.js +1 -1
  53. package/lib/commonjs/deprecated-components/DeprecatedFAB.js +1 -1
  54. package/lib/commonjs/deprecated-components/FAB.js +1 -1
  55. package/lib/commonjs/deprecated-components/FieldSearchBarFull.js +1 -1
  56. package/lib/commonjs/deprecated-components/ProgressCircle.js +1 -1
  57. package/lib/commonjs/deprecated-components/RadioButtonFieldGroup.js +1 -1
  58. package/lib/commonjs/deprecated-components/RowBodyIcon.js +1 -1
  59. package/lib/commonjs/deprecated-components/RowHeadlineImageCaption.js +1 -1
  60. package/lib/commonjs/deprecated-components/RowHeadlineImageIcon.js +1 -1
  61. package/lib/commonjs/deprecated-components/ToggleButton.js +1 -1
  62. package/lib/commonjs/index.js +1 -1
  63. package/lib/typescript/src/Provider.d.ts +7 -5
  64. package/lib/typescript/src/Provider.js +4 -4
  65. package/lib/typescript/src/Provider.js.map +1 -1
  66. package/lib/typescript/src/components/AccordionGroup.d.ts +3 -5
  67. package/lib/typescript/src/components/AccordionGroup.js +3 -3
  68. package/lib/typescript/src/components/AccordionGroup.js.map +1 -1
  69. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +3 -5
  70. package/lib/typescript/src/components/BottomSheet/BottomSheet.js +4 -4
  71. package/lib/typescript/src/components/BottomSheet/BottomSheet.js.map +1 -1
  72. package/lib/typescript/src/components/Button.js +8 -6
  73. package/lib/typescript/src/components/Button.js.map +1 -1
  74. package/lib/typescript/src/components/Checkbox/Checkbox.js +3 -3
  75. package/lib/typescript/src/components/Checkbox/Checkbox.js.map +1 -1
  76. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +4 -2
  77. package/lib/typescript/src/components/Checkbox/CheckboxRow.js +4 -3
  78. package/lib/typescript/src/components/Checkbox/CheckboxRow.js.map +1 -1
  79. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +3 -5
  80. package/lib/typescript/src/components/DatePicker/DatePicker.js +24 -23
  81. package/lib/typescript/src/components/DatePicker/DatePicker.js.map +1 -1
  82. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +4 -12654
  83. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js +8 -6
  84. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  85. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +2 -2
  86. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +3 -5
  87. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  88. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  89. package/lib/typescript/src/components/Divider.d.ts +3 -5
  90. package/lib/typescript/src/components/Divider.js +2 -2
  91. package/lib/typescript/src/components/Divider.js.map +1 -1
  92. package/lib/typescript/src/components/Elevation.d.ts +3 -5
  93. package/lib/typescript/src/components/Elevation.js +3 -4
  94. package/lib/typescript/src/components/Elevation.js.map +1 -1
  95. package/lib/typescript/src/components/FormRow.d.ts +1 -2
  96. package/lib/typescript/src/components/FormRow.js.map +1 -1
  97. package/lib/typescript/src/components/IconButton.d.ts +3 -5
  98. package/lib/typescript/src/components/IconButton.js +2 -2
  99. package/lib/typescript/src/components/IconButton.js.map +1 -1
  100. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +0 -2
  101. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.d.ts +5 -4
  102. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +10 -13
  103. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  104. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.d.ts +2 -4
  105. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js +1 -3
  106. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
  107. package/lib/typescript/src/components/Picker/NativePicker.d.ts +1 -3
  108. package/lib/typescript/src/components/Picker/NativePicker.js +5 -2
  109. package/lib/typescript/src/components/Picker/NativePicker.js.map +1 -1
  110. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +2 -2
  111. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.d.ts +1 -3
  112. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js +2 -2
  113. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -1
  114. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +1 -3
  115. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +2 -2
  116. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
  117. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +1 -3
  118. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  119. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
  120. package/lib/typescript/src/components/Picker/index.d.ts +1 -3
  121. package/lib/typescript/src/components/Picker/index.js +1 -1
  122. package/lib/typescript/src/components/Picker/index.js.map +1 -1
  123. package/lib/typescript/src/components/PinInput/PinInput.d.ts +3 -5
  124. package/lib/typescript/src/components/PinInput/PinInput.js +4 -4
  125. package/lib/typescript/src/components/PinInput/PinInput.js.map +1 -1
  126. package/lib/typescript/src/components/PinInput/PinInputText.d.ts +3 -5
  127. package/lib/typescript/src/components/PinInput/PinInputText.js +2 -2
  128. package/lib/typescript/src/components/PinInput/PinInputText.js.map +1 -1
  129. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -9
  130. package/lib/typescript/src/components/Portal/Portal.js +3 -5
  131. package/lib/typescript/src/components/Portal/Portal.js.map +1 -1
  132. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
  133. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  134. package/lib/typescript/src/components/Progress/CircularProgress/index.d.ts +1 -3
  135. package/lib/typescript/src/components/Progress/CircularProgress/index.js +1 -1
  136. package/lib/typescript/src/components/Progress/CircularProgress/index.js.map +1 -1
  137. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
  138. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  139. package/lib/typescript/src/components/Progress/LinearProgress/index.d.ts +1 -3
  140. package/lib/typescript/src/components/Progress/LinearProgress/index.js +1 -1
  141. package/lib/typescript/src/components/Progress/LinearProgress/index.js.map +1 -1
  142. package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +2 -2
  143. package/lib/typescript/src/components/ProgressIndicator.d.ts +10 -13
  144. package/lib/typescript/src/components/ProgressIndicator.js +1 -1
  145. package/lib/typescript/src/components/ProgressIndicator.js.map +1 -1
  146. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +2 -2
  147. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +4 -2
  148. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js +4 -3
  149. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js.map +1 -1
  150. package/lib/typescript/src/components/Row.d.ts +3 -5
  151. package/lib/typescript/src/components/Row.js +1 -1
  152. package/lib/typescript/src/components/Row.js.map +1 -1
  153. package/lib/typescript/src/components/ScreenContainer.d.ts +3 -6
  154. package/lib/typescript/src/components/ScreenContainer.js +2 -2
  155. package/lib/typescript/src/components/ScreenContainer.js.map +1 -1
  156. package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +3 -5
  157. package/lib/typescript/src/components/SectionList/SectionHeader.js +3 -3
  158. package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -1
  159. package/lib/typescript/src/components/Slider.d.ts +3 -6
  160. package/lib/typescript/src/components/Slider.js +6 -6
  161. package/lib/typescript/src/components/Slider.js.map +1 -1
  162. package/lib/typescript/src/components/StarRating.d.ts +3 -5
  163. package/lib/typescript/src/components/StarRating.js +1 -1
  164. package/lib/typescript/src/components/StarRating.js.map +1 -1
  165. package/lib/typescript/src/components/Stepper.d.ts +3 -5
  166. package/lib/typescript/src/components/Stepper.js +3 -2
  167. package/lib/typescript/src/components/Stepper.js.map +1 -1
  168. package/lib/typescript/src/components/Surface.d.ts +3 -5
  169. package/lib/typescript/src/components/Surface.js +3 -10
  170. package/lib/typescript/src/components/Surface.js.map +1 -1
  171. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +3 -5
  172. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +10 -5
  173. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  174. package/lib/typescript/src/components/Swiper/Swiper.d.ts +4 -2
  175. package/lib/typescript/src/components/Swiper/Swiper.js +3 -2
  176. package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
  177. package/lib/typescript/src/components/Switch.d.ts +7 -24
  178. package/lib/typescript/src/components/Switch.js +3 -4
  179. package/lib/typescript/src/components/Switch.js.map +1 -1
  180. package/lib/typescript/src/components/TabView/TabView.d.ts +3 -5
  181. package/lib/typescript/src/components/TabView/TabView.js +4 -4
  182. package/lib/typescript/src/components/TabView/TabView.js.map +1 -1
  183. package/lib/typescript/src/components/Table/Table.d.ts +3 -5
  184. package/lib/typescript/src/components/Table/Table.js +2 -2
  185. package/lib/typescript/src/components/Table/Table.js.map +1 -1
  186. package/lib/typescript/src/components/Table/TableRow.d.ts +3 -5
  187. package/lib/typescript/src/components/Table/TableRow.js +4 -2
  188. package/lib/typescript/src/components/Table/TableRow.js.map +1 -1
  189. package/lib/typescript/src/components/Text.d.ts +3 -9
  190. package/lib/typescript/src/components/Text.js +2 -2
  191. package/lib/typescript/src/components/Text.js.map +1 -1
  192. package/lib/typescript/src/components/TextField.d.ts +4 -41
  193. package/lib/typescript/src/components/TextField.js +22 -20
  194. package/lib/typescript/src/components/TextField.js.map +1 -1
  195. package/lib/typescript/src/components/TextInput.js +3 -0
  196. package/lib/typescript/src/components/TextInput.js.map +1 -1
  197. package/lib/typescript/src/components/Typography.d.ts +5 -11
  198. package/lib/typescript/src/components/Typography.js +4 -4
  199. package/lib/typescript/src/components/Typography.js.map +1 -1
  200. package/lib/typescript/src/deprecated-components/AccordionItem.d.ts +3 -5
  201. package/lib/typescript/src/deprecated-components/AccordionItem.js +2 -2
  202. package/lib/typescript/src/deprecated-components/AccordionItem.js.map +1 -1
  203. package/lib/typescript/src/deprecated-components/AvatarEdit.d.ts +3 -5
  204. package/lib/typescript/src/deprecated-components/AvatarEdit.js +4 -4
  205. package/lib/typescript/src/deprecated-components/AvatarEdit.js.map +1 -1
  206. package/lib/typescript/src/deprecated-components/Banner.d.ts +3 -5
  207. package/lib/typescript/src/deprecated-components/Banner.js +4 -5
  208. package/lib/typescript/src/deprecated-components/Banner.js.map +1 -1
  209. package/lib/typescript/src/deprecated-components/Card.d.ts +6 -18
  210. package/lib/typescript/src/deprecated-components/Card.js +3 -3
  211. package/lib/typescript/src/deprecated-components/Card.js.map +1 -1
  212. package/lib/typescript/src/deprecated-components/CheckboxGroup.d.ts +2 -2
  213. package/lib/typescript/src/deprecated-components/Container.d.ts +3 -5
  214. package/lib/typescript/src/deprecated-components/Container.js +1 -1
  215. package/lib/typescript/src/deprecated-components/Container.js.map +1 -1
  216. package/lib/typescript/src/deprecated-components/DeprecatedButton.d.ts +3 -5
  217. package/lib/typescript/src/deprecated-components/DeprecatedButton.js +8 -8
  218. package/lib/typescript/src/deprecated-components/DeprecatedButton.js.map +1 -1
  219. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.d.ts +3 -5
  220. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
  221. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
  222. package/lib/typescript/src/deprecated-components/DeprecatedFAB.d.ts +3 -5
  223. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js +8 -8
  224. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js.map +1 -1
  225. package/lib/typescript/src/deprecated-components/FAB.d.ts +3 -8
  226. package/lib/typescript/src/deprecated-components/FAB.js +2 -2
  227. package/lib/typescript/src/deprecated-components/FAB.js.map +1 -1
  228. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.d.ts +3 -5
  229. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js +4 -4
  230. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
  231. package/lib/typescript/src/deprecated-components/ProgressCircle.d.ts +5 -8
  232. package/lib/typescript/src/deprecated-components/ProgressCircle.js +3 -3
  233. package/lib/typescript/src/deprecated-components/ProgressCircle.js.map +1 -1
  234. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.d.ts +1 -3
  235. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
  236. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
  237. package/lib/typescript/src/deprecated-components/RowBodyIcon.d.ts +3 -5
  238. package/lib/typescript/src/deprecated-components/RowBodyIcon.js +2 -2
  239. package/lib/typescript/src/deprecated-components/RowBodyIcon.js.map +1 -1
  240. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.d.ts +3 -5
  241. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
  242. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
  243. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.d.ts +3 -5
  244. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
  245. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
  246. package/lib/typescript/src/deprecated-components/ToggleButton.d.ts +6 -9
  247. package/lib/typescript/src/deprecated-components/ToggleButton.js +5 -5
  248. package/lib/typescript/src/deprecated-components/ToggleButton.js.map +1 -1
  249. package/lib/typescript/src/index.d.ts +0 -2
  250. package/lib/typescript/src/index.js +0 -2
  251. package/lib/typescript/src/index.js.map +1 -1
  252. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  253. package/package.json +5 -5
  254. package/src/Provider.js +4 -4
  255. package/src/Provider.js.map +1 -1
  256. package/src/Provider.tsx +15 -12
  257. package/src/components/AccordionGroup.js +3 -3
  258. package/src/components/AccordionGroup.js.map +1 -1
  259. package/src/components/AccordionGroup.tsx +5 -5
  260. package/src/components/BottomSheet/BottomSheet.js +4 -4
  261. package/src/components/BottomSheet/BottomSheet.js.map +1 -1
  262. package/src/components/BottomSheet/BottomSheet.tsx +7 -7
  263. package/src/components/Button.js +8 -6
  264. package/src/components/Button.js.map +1 -1
  265. package/src/components/Button.tsx +10 -10
  266. package/src/components/Checkbox/Checkbox.js +3 -3
  267. package/src/components/Checkbox/Checkbox.js.map +1 -1
  268. package/src/components/Checkbox/Checkbox.tsx +3 -3
  269. package/src/components/Checkbox/CheckboxRow.js +4 -3
  270. package/src/components/Checkbox/CheckboxRow.js.map +1 -1
  271. package/src/components/Checkbox/CheckboxRow.tsx +9 -2
  272. package/src/components/DatePicker/DatePicker.js +24 -23
  273. package/src/components/DatePicker/DatePicker.js.map +1 -1
  274. package/src/components/DatePicker/DatePicker.tsx +25 -24
  275. package/src/components/DatePicker/DatePickerComponent.web.js +8 -6
  276. package/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  277. package/src/components/DatePicker/DatePickerComponent.web.tsx +15 -8
  278. package/src/components/DatePicker/DatePickerComponentType.ts +2 -3
  279. package/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  280. package/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  281. package/src/components/DeckSwiper/DeckSwiperCard.tsx +5 -5
  282. package/src/components/Divider.js +2 -2
  283. package/src/components/Divider.js.map +1 -1
  284. package/src/components/Divider.tsx +4 -4
  285. package/src/components/Elevation.js +3 -4
  286. package/src/components/Elevation.js.map +1 -1
  287. package/src/components/Elevation.tsx +5 -6
  288. package/src/components/FormRow.js.map +1 -1
  289. package/src/components/FormRow.tsx +1 -2
  290. package/src/components/IconButton.js +2 -2
  291. package/src/components/IconButton.js.map +1 -1
  292. package/src/components/IconButton.tsx +4 -4
  293. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +0 -2
  294. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +10 -13
  295. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  296. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +19 -19
  297. package/src/components/MediaPlayer/AudioPlayer/index.js +1 -3
  298. package/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
  299. package/src/components/MediaPlayer/AudioPlayer/index.tsx +1 -3
  300. package/src/components/Picker/NativePicker.js +5 -2
  301. package/src/components/Picker/NativePicker.js.map +1 -1
  302. package/src/components/Picker/NativePicker.tsx +5 -2
  303. package/src/components/Picker/PickerCommon.ts +2 -2
  304. package/src/components/Picker/dropdown/DropDownModalPicker.js +2 -2
  305. package/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -1
  306. package/src/components/Picker/dropdown/DropDownModalPicker.tsx +5 -5
  307. package/src/components/Picker/dropdown/DropDownPicker.js +2 -2
  308. package/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
  309. package/src/components/Picker/dropdown/DropDownPicker.tsx +5 -5
  310. package/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  311. package/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
  312. package/src/components/Picker/dropdown/MultiSelectPicker.tsx +1 -1
  313. package/src/components/Picker/index.js +1 -1
  314. package/src/components/Picker/index.js.map +1 -1
  315. package/src/components/Picker/index.tsx +1 -1
  316. package/src/components/PinInput/PinInput.js +4 -4
  317. package/src/components/PinInput/PinInput.js.map +1 -1
  318. package/src/components/PinInput/PinInput.tsx +6 -6
  319. package/src/components/PinInput/PinInputText.js +2 -2
  320. package/src/components/PinInput/PinInputText.js.map +1 -1
  321. package/src/components/PinInput/PinInputText.tsx +4 -4
  322. package/src/components/Portal/Portal.js +3 -5
  323. package/src/components/Portal/Portal.js.map +1 -1
  324. package/src/components/Portal/Portal.tsx +3 -10
  325. package/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
  326. package/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  327. package/src/components/Progress/CircularProgress/CircularProgress.tsx +2 -2
  328. package/src/components/Progress/CircularProgress/index.js +1 -1
  329. package/src/components/Progress/CircularProgress/index.js.map +1 -1
  330. package/src/components/Progress/CircularProgress/index.tsx +1 -1
  331. package/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
  332. package/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  333. package/src/components/Progress/LinearProgress/LinearProgress.tsx +2 -2
  334. package/src/components/Progress/LinearProgress/index.js +1 -1
  335. package/src/components/Progress/LinearProgress/index.js.map +1 -1
  336. package/src/components/Progress/LinearProgress/index.tsx +1 -1
  337. package/src/components/Progress/ProgressCommon.ts +2 -2
  338. package/src/components/ProgressIndicator.js +1 -1
  339. package/src/components/ProgressIndicator.js.map +1 -1
  340. package/src/components/ProgressIndicator.tsx +10 -11
  341. package/src/components/RadioButton/RadioButtonGroup.tsx +2 -2
  342. package/src/components/RadioButton/RadioButtonRow.js +4 -3
  343. package/src/components/RadioButton/RadioButtonRow.js.map +1 -1
  344. package/src/components/RadioButton/RadioButtonRow.tsx +9 -2
  345. package/src/components/Row.js +1 -1
  346. package/src/components/Row.js.map +1 -1
  347. package/src/components/Row.tsx +3 -3
  348. package/src/components/ScreenContainer.js +2 -2
  349. package/src/components/ScreenContainer.js.map +1 -1
  350. package/src/components/ScreenContainer.tsx +4 -4
  351. package/src/components/SectionList/SectionHeader.js +3 -3
  352. package/src/components/SectionList/SectionHeader.js.map +1 -1
  353. package/src/components/SectionList/SectionHeader.tsx +5 -5
  354. package/src/components/Slider.js +6 -6
  355. package/src/components/Slider.js.map +1 -1
  356. package/src/components/Slider.tsx +8 -8
  357. package/src/components/StarRating.js +1 -1
  358. package/src/components/StarRating.js.map +1 -1
  359. package/src/components/StarRating.tsx +3 -3
  360. package/src/components/Stepper.js +3 -2
  361. package/src/components/Stepper.js.map +1 -1
  362. package/src/components/Stepper.tsx +5 -4
  363. package/src/components/Surface.js +3 -10
  364. package/src/components/Surface.js.map +1 -1
  365. package/src/components/Surface.tsx +5 -12
  366. package/src/components/SwipeableItem/SwipeableItem.js +10 -5
  367. package/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  368. package/src/components/SwipeableItem/SwipeableItem.tsx +13 -7
  369. package/src/components/Swiper/Swiper.js +3 -2
  370. package/src/components/Swiper/Swiper.js.map +1 -1
  371. package/src/components/Swiper/Swiper.tsx +6 -3
  372. package/src/components/Switch.js +3 -4
  373. package/src/components/Switch.js.map +1 -1
  374. package/src/components/Switch.tsx +7 -7
  375. package/src/components/TabView/TabView.js +4 -4
  376. package/src/components/TabView/TabView.js.map +1 -1
  377. package/src/components/TabView/TabView.tsx +7 -7
  378. package/src/components/Table/Table.js +2 -2
  379. package/src/components/Table/Table.js.map +1 -1
  380. package/src/components/Table/Table.tsx +4 -4
  381. package/src/components/Table/TableRow.js +4 -2
  382. package/src/components/Table/TableRow.js.map +1 -1
  383. package/src/components/Table/TableRow.tsx +6 -4
  384. package/src/components/Text.js +2 -2
  385. package/src/components/Text.js.map +1 -1
  386. package/src/components/Text.tsx +4 -4
  387. package/src/components/TextField.js +22 -20
  388. package/src/components/TextField.js.map +1 -1
  389. package/src/components/TextField.tsx +26 -23
  390. package/src/components/TextInput.js +3 -0
  391. package/src/components/TextInput.js.map +1 -1
  392. package/src/components/TextInput.tsx +3 -0
  393. package/src/components/Typography.js +4 -4
  394. package/src/components/Typography.js.map +1 -1
  395. package/src/components/Typography.tsx +6 -6
  396. package/src/deprecated-components/AccordionItem.js +2 -2
  397. package/src/deprecated-components/AccordionItem.js.map +1 -1
  398. package/src/deprecated-components/AccordionItem.tsx +4 -4
  399. package/src/deprecated-components/AvatarEdit.js +4 -4
  400. package/src/deprecated-components/AvatarEdit.js.map +1 -1
  401. package/src/deprecated-components/AvatarEdit.tsx +6 -6
  402. package/src/deprecated-components/Banner.js +4 -5
  403. package/src/deprecated-components/Banner.js.map +1 -1
  404. package/src/deprecated-components/Banner.tsx +6 -10
  405. package/src/deprecated-components/Card.js +3 -3
  406. package/src/deprecated-components/Card.js.map +1 -1
  407. package/src/deprecated-components/Card.tsx +10 -6
  408. package/src/deprecated-components/CheckboxGroup.tsx +2 -2
  409. package/src/deprecated-components/Container.js +1 -1
  410. package/src/deprecated-components/Container.js.map +1 -1
  411. package/src/deprecated-components/Container.tsx +3 -3
  412. package/src/deprecated-components/DeprecatedButton.js +8 -8
  413. package/src/deprecated-components/DeprecatedButton.js.map +1 -1
  414. package/src/deprecated-components/DeprecatedButton.tsx +10 -10
  415. package/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
  416. package/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
  417. package/src/deprecated-components/DeprecatedCardWrapper.tsx +3 -3
  418. package/src/deprecated-components/DeprecatedFAB.js +8 -8
  419. package/src/deprecated-components/DeprecatedFAB.js.map +1 -1
  420. package/src/deprecated-components/DeprecatedFAB.tsx +10 -10
  421. package/src/deprecated-components/FAB.js +2 -2
  422. package/src/deprecated-components/FAB.js.map +1 -1
  423. package/src/deprecated-components/FAB.tsx +4 -4
  424. package/src/deprecated-components/FieldSearchBarFull.js +4 -4
  425. package/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
  426. package/src/deprecated-components/FieldSearchBarFull.tsx +6 -6
  427. package/src/deprecated-components/ProgressCircle.js +3 -3
  428. package/src/deprecated-components/ProgressCircle.js.map +1 -1
  429. package/src/deprecated-components/ProgressCircle.tsx +7 -8
  430. package/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
  431. package/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
  432. package/src/deprecated-components/RadioButtonFieldGroup.tsx +1 -1
  433. package/src/deprecated-components/RowBodyIcon.js +2 -2
  434. package/src/deprecated-components/RowBodyIcon.js.map +1 -1
  435. package/src/deprecated-components/RowBodyIcon.tsx +6 -6
  436. package/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
  437. package/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
  438. package/src/deprecated-components/RowHeadlineImageCaption.tsx +6 -6
  439. package/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
  440. package/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
  441. package/src/deprecated-components/RowHeadlineImageIcon.tsx +6 -6
  442. package/src/deprecated-components/ToggleButton.js +5 -5
  443. package/src/deprecated-components/ToggleButton.js.map +1 -1
  444. package/src/deprecated-components/ToggleButton.tsx +12 -11
  445. package/src/index.js +0 -2
  446. package/src/index.js.map +1 -1
  447. package/src/index.tsx +0 -2
  448. package/lib/commonjs/styles/DarkTheme.js +0 -1
  449. package/lib/commonjs/styles/DefaultTheme.js +0 -1
  450. package/lib/commonjs/styles/fonts.js +0 -1
  451. package/lib/commonjs/styles/overlay.js +0 -1
  452. package/lib/commonjs/styles/shadow.js +0 -1
  453. package/lib/commonjs/theming.js +0 -1
  454. package/lib/typescript/src/styles/DarkTheme.d.ts +0 -3
  455. package/lib/typescript/src/styles/DarkTheme.js +0 -27
  456. package/lib/typescript/src/styles/DarkTheme.js.map +0 -1
  457. package/lib/typescript/src/styles/DefaultTheme.d.ts +0 -4218
  458. package/lib/typescript/src/styles/DefaultTheme.js +0 -112
  459. package/lib/typescript/src/styles/DefaultTheme.js.map +0 -1
  460. package/lib/typescript/src/styles/fonts.d.ts +0 -5
  461. package/lib/typescript/src/styles/fonts.js +0 -63
  462. package/lib/typescript/src/styles/fonts.js.map +0 -1
  463. package/lib/typescript/src/styles/overlay.d.ts +0 -2
  464. package/lib/typescript/src/styles/overlay.js +0 -61
  465. package/lib/typescript/src/styles/overlay.js.map +0 -1
  466. package/lib/typescript/src/styles/shadow.d.ts +0 -23
  467. package/lib/typescript/src/styles/shadow.js +0 -52
  468. package/lib/typescript/src/styles/shadow.js.map +0 -1
  469. package/lib/typescript/src/theming.d.ts +0 -8
  470. package/lib/typescript/src/theming.js +0 -4
  471. package/lib/typescript/src/theming.js.map +0 -1
  472. package/src/styles/DarkTheme.js +0 -27
  473. package/src/styles/DarkTheme.js.map +0 -1
  474. package/src/styles/DarkTheme.tsx +0 -30
  475. package/src/styles/DefaultTheme.js +0 -112
  476. package/src/styles/DefaultTheme.js.map +0 -1
  477. package/src/styles/DefaultTheme.tsx +0 -114
  478. package/src/styles/fonts.js +0 -63
  479. package/src/styles/fonts.js.map +0 -1
  480. package/src/styles/fonts.tsx +0 -67
  481. package/src/styles/overlay.js +0 -61
  482. package/src/styles/overlay.js.map +0 -1
  483. package/src/styles/overlay.tsx +0 -69
  484. package/src/styles/shadow.js +0 -52
  485. package/src/styles/shadow.js.map +0 -1
  486. package/src/styles/shadow.tsx +0 -55
  487. package/src/theming.js +0 -4
  488. package/src/theming.js.map +0 -1
  489. package/src/theming.tsx +0 -6
@@ -1,63 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,67 +0,0 @@
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
- }
@@ -1,61 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,69 +0,0 @@
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
- };
@@ -1,52 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,55 +0,0 @@
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 DELETED
@@ -1,4 +0,0 @@
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
@@ -1 +0,0 @@
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"}
package/src/theming.tsx DELETED
@@ -1,6 +0,0 @@
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);